/* Blue Canvas control panel.
   Palette and type deliberately match the printed documents, so the panel
   reads as the same business rather than a different tool. */

:root {
  --navy: #2B5279;
  --navy-dark: #1D3A57;
  --gold: #E8A33D;
  --ink: #33424E;
  --ink-soft: #4C5C68;
  --rule: #C9D5DE;
  --pale: #F4F8FA;
  --cream: #FDF7EC;
  --white: #FFFFFF;
  --green: #2F7A5B;
  --amber: #9A6A12;
  --grey: #7C8994;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, system-ui, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --shadow: 0 1px 2px rgba(29, 58, 87, .06), 0 8px 24px rgba(29, 58, 87, .07);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--pale);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-dark);
  margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0; }
a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule); }
a:hover { border-bottom-color: var(--navy); }

/* --------------------------------------------------------------- login */
.gate {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 62%, #34618c 100%);
  padding: var(--s5); z-index: 60;
}
.gate-card {
  width: 100%; max-width: 380px; background: var(--white);
  border-radius: 3px; padding: var(--s7) var(--s6) var(--s6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28); text-align: center;
}
.gate-mark { color: var(--navy); margin-bottom: var(--s4); }
.gate-sub { font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--grey); margin-top: var(--s2); }
#pw {
  width: 100%; margin-top: var(--s6); padding: 11px 13px;
  border: 1px solid var(--rule); border-radius: 2px; font: inherit;
  background: var(--pale);
}
#pw:focus { outline: none; border-color: var(--navy); background: var(--white); }
.gate-err { color: #A03528; font-size: 13px; min-height: 18px; margin-top: var(--s3); }
.gate-note { font-size: 12px; color: var(--grey); line-height: 1.45;
  margin-top: var(--s4); text-align: left; }

/* --------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.rail {
  background: var(--navy-dark); color: #DCE7F0;
  display: flex; flex-direction: column; padding: var(--s5) 0;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: var(--s3); align-items: center;
  padding: 0 var(--s5) var(--s6); color: var(--white); }
.brand strong { display: block; font-family: var(--serif); font-size: 16px; }
.brand span { display: block; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: #8EA9C2; }

.tabs { display: flex; flex-direction: column; }
.tab {
  display: flex; align-items: center; gap: var(--s3);
  background: none; border: 0; border-left: 3px solid transparent;
  color: #B9CEE0; font: inherit; text-align: left; cursor: pointer;
  padding: 11px var(--s5); transition: background .14s, color .14s;
}
.tab:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.tab.on { background: rgba(255, 255, 255, .10); color: var(--white);
  border-left-color: var(--gold); font-weight: 600; }
.tab-n { font-family: var(--serif); font-size: 12px; color: var(--gold);
  width: 14px; }

.rail-foot { margin-top: auto; padding: var(--s5) var(--s5) 0; }
.clock { font-size: 12px; color: #8EA9C2; font-variant-numeric: tabular-nums; }
.rail-note { font-size: 11.5px; color: #7E9AB4; line-height: 1.5;
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, .12); }

.main { padding: var(--s6) var(--s7) var(--s8); max-width: 1180px; }

/* ---------------------------------------------------------- page header */
.ph { margin-bottom: var(--s6); }
.ph .kicker { font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; }
.ph h1 { font-size: 27px; margin-top: var(--s2); }
.ph .lede { color: var(--ink-soft); margin-top: var(--s3); max-width: 66ch; }

/* --------------------------------------------------------------- counts */
.counts { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.count {
  background: var(--white); border: 1px solid var(--rule); border-radius: 2px;
  padding: var(--s3) var(--s4); min-width: 132px;
}
.count b { display: block; font-family: var(--serif); font-size: 25px;
  color: var(--navy); line-height: 1.1; }
.count span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--grey); }
.count.g b { color: var(--green); }
.count.a b { color: var(--amber); }
.count.x b { color: var(--grey); }

/* --------------------------------------------------------------- groups */
.group { margin-bottom: var(--s7); }
.group-head { display: flex; align-items: baseline; gap: var(--s3);
  padding-bottom: var(--s3); margin-bottom: var(--s4);
  border-bottom: 1px solid var(--rule); }
.group-head h2 { font-size: 17px; }
.group-head .n { font-size: 12px; color: var(--grey); }

.cards { display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 2px;
  padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3);
  transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: #A9BDCC; }
.card.featured { border-left: 3px solid var(--gold); }
.card.blocked { background: #FAFBFC; }
.card-top { display: flex; justify-content: space-between; gap: var(--s3);
  align-items: flex-start; }
.card h4 { font-size: 15.5px; }
.card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.card-foot { margin-top: auto; display: flex; align-items: center;
  gap: var(--s3); flex-wrap: wrap; }
.taskids { font-size: 11px; color: var(--grey); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- chips */
/* inline-block matters: a plain inline element with vertical padding does not
   grow its line box, so a chip on its own line inside a table cell overlapped
   the text above it. */
.chip { display: inline-block; font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600; padding: 3px 7px;
  border-radius: 2px; white-space: nowrap; }
.chip.run { background: #E7F1EC; color: var(--green); }
.chip.prepare { background: var(--cream); color: var(--amber); }
.chip.open { background: var(--cream); color: #7A5310; }
.chip.blocked { background: #EFF2F4; color: var(--grey); }
.chip.free { background: var(--pale); color: var(--ink-soft); }
.chip.connector { background: #E9EFF6; color: var(--navy); }
.chip.warn { background: var(--cream); color: var(--amber); }
.chip.warn + br, td > .chip.warn { margin-top: 4px; }
.chip.band { background: #E9EFF6; color: var(--navy); text-transform: none;
  letter-spacing: 0; font-size: 11.5px; }

/* -------------------------------------------------------------- buttons */
.btn { font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  border-radius: 2px; padding: 8px 15px; border: 1px solid transparent;
  transition: background .14s, color .14s, border-color .14s; }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: var(--navy-dark); }
.btn.primary:disabled { background: #A9BDCC; cursor: not-allowed; }
/* Gold marks the buttons that open one of the Google Forms. A different
   colour from Run on purpose: Run does the work, Open only takes you to the
   place where you do it yourself. */
.btn.gold { background: var(--cream); color: #7A5310;
  border-color: #E3C88A; }
.btn.gold:hover { background: #F7E9CC; border-color: var(--gold); }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.btn.ghost { background: var(--white); color: var(--navy);
  border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.flat { background: none; color: var(--navy); padding: 6px 0;
  text-decoration: underline; text-underline-offset: 3px; }
.btn.small { font-size: 12.5px; padding: 6px 11px; }
.btn.wide { width: 100%; margin-top: var(--s4); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--rule); font-size: 13.5px; }
.tbl th { text-align: left; background: var(--navy); color: var(--white);
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  padding: 9px var(--s3); font-weight: 600; }
.tbl td { padding: 9px var(--s3); border-top: 1px solid #E3EAF0;
  vertical-align: top; }
.tbl tr:hover td { background: var(--pale); }
.tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .muted { color: var(--grey); }
.tbl code { font-size: 12px; color: var(--navy); background: var(--pale);
  padding: 1px 5px; border-radius: 2px; }

/* ------------------------------------------------------------- workflow */
.wf { background: var(--white); border: 1px solid var(--rule);
  margin-bottom: var(--s4); }
.wf-head { display: flex; gap: var(--s4); align-items: center; width: 100%;
  background: none; border: 0; font: inherit; text-align: left;
  cursor: pointer; padding: var(--s4); }
.wf-head:hover { background: var(--pale); }
.wf-no { font-family: var(--serif); font-size: 21px; color: var(--gold);
  width: 30px; flex: none; }
.wf-head h3 { font-size: 16.5px; }
.wf-head .what { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.wf-meta { margin-left: auto; display: flex; gap: var(--s2); flex: none; }
.wf-body { padding: 0 var(--s4) var(--s4) 62px; }
.wf-verdict { font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--navy-dark); border-left: 2px solid var(--gold);
  padding-left: var(--s3); margin-bottom: var(--s4); }
.wf-body h4 { margin: var(--s4) 0 var(--s2); font-size: 13px;
  text-transform: uppercase; letter-spacing: .07em; color: var(--grey);
  font-family: var(--sans); }
.wf-body ul { margin: 0; padding-left: 18px; font-size: 13.5px;
  color: var(--ink-soft); }
.wf-body ul li { margin-bottom: 3px; }
.inline-btns { display: flex; gap: var(--s2); flex-wrap: wrap;
  margin-top: var(--s3); }

/* ------------------------------------------------------------- drawer */
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(560px, 92vw);
  background: var(--white); box-shadow: -8px 0 40px rgba(29, 58, 87, .2);
  z-index: 50; display: flex; flex-direction: column;
}
.scrim { position: fixed; inset: 0; background: rgba(29, 58, 87, .3); z-index: 45; }
.drawer-head { display: flex; justify-content: space-between; gap: var(--s3);
  padding: var(--s5); border-bottom: 1px solid var(--rule); align-items: flex-start; }
.dr-state { font-size: 12.5px; color: var(--grey); margin-top: var(--s1); }
.dr-state.running { color: var(--navy); font-weight: 600; }
.dr-state.done { color: var(--green); font-weight: 600; }
.dr-state.failed { color: #A03528; font-weight: 600; }
.dr-form { padding: var(--s5); border-bottom: 1px solid var(--rule);
  display: grid; gap: var(--s3); overflow-y: auto; max-height: 42vh; }
.dr-form.empty { display: none; }
.fld label { display: block; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--grey); margin-bottom: var(--s1);
  font-weight: 600; }
.fld input, .fld select { width: 100%; padding: 8px 10px; font: inherit;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--pale); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--navy);
  background: var(--white); }
.warn { background: var(--cream); border-left: 3px solid var(--gold);
  padding: var(--s3); font-size: 13px; color: var(--amber); }
.log { flex: 1; margin: 0; padding: var(--s4) var(--s5); overflow: auto;
  background: #F7F9FB; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; line-height: 1.55; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; }
.log:empty { display: none; }
.dr-files { padding: 0 var(--s5); }
.dr-files:empty { display: none; }
.filerow { display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) 0; border-bottom: 1px solid #E3EAF0; font-size: 13px; }
.drawer-foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: var(--s3); }
.dr-hint { font-size: 12px; color: var(--grey); }

/* --------------------------------------------------------------- states */
.skel { background: linear-gradient(90deg, #E9EEF3 25%, #F4F8FA 50%, #E9EEF3 75%);
  background-size: 200% 100%; animation: sh 1.3s infinite;
  border-radius: 2px; height: 78px; }
@keyframes sh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state { background: var(--white); border: 1px dashed var(--rule);
  padding: var(--s6); text-align: center; color: var(--grey); font-size: 14px; }
.err { background: #FBEEEC; border-left: 3px solid #A03528; padding: var(--s4);
  font-size: 13.5px; color: #7C2B20; }

/* ----------------------------------------------------------- university */
.uni { background: var(--white); border: 1px solid var(--rule);
  margin-bottom: var(--s4); }
.uni-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s3); flex-wrap: wrap; }
.uni-head h3 { font-size: 17px; }
.uni-head .src { font-size: 12px; margin-top: var(--s1); }
.uni-body { padding: var(--s4) var(--s5) var(--s5); }
.round { border-left: 2px solid var(--rule); padding: 0 0 var(--s4) var(--s4);
  margin-left: var(--s2); position: relative; }
.round:last-child { padding-bottom: 0; }
.round::before { content: ""; position: absolute; left: -5px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.round.live { border-left-color: var(--gold); }
.round.live::before { background: var(--gold); }
.round h4 { font-size: 14px; }
.round dl { display: grid; grid-template-columns: 148px 1fr; gap: 2px var(--s3);
  margin: var(--s2) 0 0; font-size: 13px; }
.round dt { color: var(--grey); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .06em; padding-top: 2px; font-weight: 600; }
.round dd { margin: 0; color: var(--ink-soft); }
.status { font-size: 11px; }
.disclosure { font-size: 13px; color: var(--ink-soft); background: var(--cream);
  border-left: 3px solid var(--gold); padding: var(--s4); margin-bottom: var(--s5); }

details.proc { margin-top: var(--s4); border-top: 1px solid var(--rule);
  padding-top: var(--s3); }
details.proc summary { cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--navy); }
details.proc .pb { margin-top: var(--s3); font-size: 13.5px;
  color: var(--ink-soft); display: grid; gap: var(--s3); }
details.proc h5 { margin: 0 0 var(--s1); font-size: 11.5px; color: var(--grey);
  text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
details.proc ul { margin: 0; padding-left: 18px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .rail-foot { display: none; }
  .main { padding: var(--s5) var(--s4) var(--s7); }
  .round dl { grid-template-columns: 1fr; }

  /* Stop the page scrolling sideways on a phone. Grid children default to
     min-width:auto, so one long word or a wide table drags the whole
     layout past the viewport and clips every card on the right. */
  .shell, .main, .rail { min-width: 0; }
  .cards { grid-template-columns: 1fr; }
  .card, .card-top, .card-foot { min-width: 0; }
  .card-top { flex-wrap: wrap; }
  .card-foot { flex-wrap: wrap; row-gap: var(--s2); }
  .drawer { width: 100%; max-width: 100%; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 560px; }
}

/* Wide tables get their own scroller at every width, so the table scrolls
   instead of the page. */
.tbl-wrap { max-width: 100%; overflow-x: auto; }

/* ------------------------------------------------------------ resources */
.group-note { color: var(--grey); font-size: 13.5px; max-width: 62ch;
  margin: 0 0 var(--s4); }
.res-list { display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.res { display: flex; align-items: center; gap: var(--s3);
  background: var(--white); padding: 13px var(--s4); flex-wrap: wrap; }
.res-t { font-weight: 600; font-size: 14px; color: var(--ink); min-width: 0; }
.res-f { color: var(--grey); font-size: 12.5px; margin-right: auto;
  min-width: 0; }
.res-a { font-size: 13px; font-weight: 600; color: var(--navy);
  text-decoration: none; border: 1px solid var(--rule); border-radius: 2px;
  padding: 5px 12px; white-space: nowrap; transition: border-color .14s; }
.res-a:hover { border-color: var(--navy); }
.res-a.ghost { color: var(--grey); }
@media (max-width: 700px) {
  .res { align-items: flex-start; }
  .res-f { margin-right: 0; flex-basis: 100%; }
}

/* The standing note at the top of a tab. Was being written into the markup
   with no rule behind it, so it read as stray body text. */
.disclose { background: var(--cream); border-left: 3px solid var(--amber);
  border-radius: 0 2px 2px 0; padding: var(--s3) var(--s4);
  margin: 0 0 var(--s6); font-size: 13.5px; color: var(--ink-soft);
  max-width: 78ch; line-height: 1.55; }
.disclose b { color: var(--ink); }

/* invoicing */
.rf-form { max-width: 460px; }
.rf-btns { display: flex; gap: var(--s3); align-items: center;
  margin-top: var(--s4); flex-wrap: wrap; }
.ok-note { background: #EEF5EF; border-left: 3px solid #3F7A4F;
  padding: var(--s4); font-size: 13.5px; margin-top: var(--s4); }
#rf-out, #rf-list { margin-top: var(--s4); }

/* dashboard */
.kpis { display: grid; gap: var(--s3); margin-bottom: var(--s6);
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.kpi { background: var(--white); border: 1px solid var(--rule);
  border-radius: 3px; padding: var(--s4); display: flex; flex-direction: column;
  gap: 4px; border-left: 3px solid var(--navy); }
.kpi.warn { border-left-color: var(--amber); }
.kpi-l { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--grey); }
.kpi-v { font-family: var(--display, inherit); font-size: 25px;
  line-height: 1.1; color: var(--navy); font-weight: 600; }
.kpi-n { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.bars { display: flex; flex-direction: column; gap: var(--s3); max-width: 640px; }
.bar-row { display: grid; grid-template-columns: 72px 1fr 84px;
  align-items: center; gap: var(--s3); font-size: 13px; }
.bar-t { display: flex; height: 16px; background: #EDF1F4; border-radius: 2px;
  overflow: hidden; }
.bar-t i { background: var(--navy); display: block; }
.bar-t u { background: #C6D3DE; display: block; }
.bar-v { text-align: right; color: var(--ink-soft); }
.att { margin-bottom: var(--s4); }
.att h4 { font-size: 14px; margin-bottom: 3px; }
.att h4 .n { color: var(--grey); font-size: 12px; font-weight: 400; }
.att p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.tw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--grey); padding: 8px 12px;
  border-bottom: 1px solid var(--rule); font-weight: 600; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #EEF1F4; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.tot td { font-weight: 600; background: #F7F9FB; }
.small { font-size: 12.5px; }

/* three-part bars + transposed table */
.bar-t i.c1 { background: var(--navy); }
.bar-t i.c2 { background: #7E9CBF; }
.bar-t i.c3 { background: #C8A96B; }
.bar-t i.c4 { background: #CBD5DD; }
.legend { display: flex; gap: var(--s4); margin-bottom: var(--s3);
  font-size: 12.5px; color: var(--ink-soft); }
.legend .lg { display: flex; align-items: center; gap: 6px; }
.sw { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.sw.c1 { background: var(--navy); } .sw.c2 { background: #7E9CBF; }
.sw.c3 { background: #C8A96B; } .sw.c4 { background: #CBD5DD; }
.tbl.grid th.rh { text-align: left; vertical-align: top; padding-top: 12px;
  font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--navy);
  border-bottom: 1px solid #EEF1F4; width: 110px; }
.tbl.grid td.mh { color: var(--ink-soft); white-space: nowrap; }
.tbl.grid tr.blk td, .tbl.grid tr.blk th { border-top: 1px solid var(--rule); }
.tbl.grid .ltd { background: #F7F9FB; }

.tbl.grid th.rh { background: #FFFFFF; color: var(--navy); font-weight: 600; }
.tbl.grid th.rh-h { background: transparent; }
.kpi-v .kpi-sm { font-size: 17px; line-height: 1.3; display: inline-block; }

/* labelled stacks + wider session columns */
.bar-t { height: 26px; }
.bar-t i { display: flex; align-items: center; justify-content: flex-end;
  padding-right: 7px; overflow: hidden; }
.bar-t i em { font-style: normal; font-size: 11px; color: #FFFFFF;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-t i.c2 em, .bar-t i.c3 em { color: #23364B; }
.tbl th .sub { font-size: 10px; letter-spacing: .04em; color: var(--tan);
  display: block; text-transform: none; }
.tbl td.gap { color: #B07A22; font-weight: 600; }

/* The estimate row in the yearly chart: same shape, quieter ink. */
.bar-row.est { opacity: .62; }
.bar-row.est .bar-k { font-style: italic; }
.bars + .muted.small { margin-top: 18px; max-width: 78ch; line-height: 1.55; }

/* A switch reads as one line, so the label sits beside the box rather than
   above it the way every other field does. */
.fld.switch label{display:flex;align-items:center;gap:9px;cursor:pointer;
  font-weight:500;text-transform:none;letter-spacing:0;font-size:14.5px}
.fld.switch input{width:17px;height:17px;margin:0;accent-color:var(--navy);flex:0 0 auto}
.fld.switch .dr-hint{margin:7px 0 0;padding-left:26px}

/* ------------------------------------------------- the step table ------ */
/* The control panel is now the step list rather than a wall of cards, so the
   table has to be comfortable to read down: the number column narrow and
   quiet, the button column fixed so the buttons line up in a straight edge. */
table.tbl.steps td { vertical-align: middle; }
table.tbl.steps tr.phase td {
  background: var(--pale); font-family: var(--serif); font-weight: 600;
  color: var(--navy-dark); letter-spacing: .01em;
}
table.tbl.steps tr.runnable { background: rgba(48, 88, 136, .035); }
table.tbl.steps tr.runnable:hover { background: rgba(48, 88, 136, .075); }
table.tbl.steps td.tno {
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--navy); font-size: .82rem; white-space: nowrap;
}
/* A step can honestly have more than one button -- at P3.6 you set a test,
   read the results, check what is loaded or refresh the roster -- so the cell
   stacks them rather than showing only the first and hiding the rest. */
table.tbl.steps td.do { text-align: right; }
table.tbl.steps td.do .stack {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
table.tbl.steps td.do .btn { min-width: 74px; }
/* A named button carries the job's name rather than the word Run, so it needs
   room and a common width -- four buttons of four different widths read as
   clutter rather than as a set. */
table.tbl.steps td.do .btn.named {
  min-width: 210px; text-align: left; font-weight: 500;
  white-space: normal; line-height: 1.25;
}
.stepwhat {
  display: block; margin-top: 2px; font-size: .78rem; color: #6C7A88;
}
/* The row a button covers but does not live on. Said in words rather than
   drawn as a second identical button, which is what made the list look as
   though the same job were done twice. */
.stepwhat.also { color: #94A2AF; font-style: italic; }
.nowt {
  font-size: .78rem; color: #94A2AF; font-style: italic;
  letter-spacing: .01em;
}

/* The cards have not gone, they have moved below the list and folded shut,
   because they are the long explanation rather than the thing you came for. */
details.backup {
  margin-top: 26px; border-top: 1px solid var(--rule); padding-top: 14px;
}
details.backup > summary {
  cursor: pointer; font-family: var(--serif); font-size: 1.02rem;
  color: var(--navy-dark); padding: 6px 0; list-style: none;
  display: flex; align-items: baseline; gap: 10px;
}
details.backup > summary::-webkit-details-marker { display: none; }
details.backup > summary::before {
  content: "\25B8"; color: var(--navy); font-size: .8rem;
  transition: transform .15s ease;
}
details.backup[open] > summary::before { transform: rotate(90deg); }
details.backup > summary .n {
  font-family: var(--sans); font-size: .8rem; color: #8B98A5;
}
details.backup .cards { margin-top: 14px; }
h3.bk {
  margin: 26px 0 0; font-family: var(--serif); font-size: .98rem;
  color: var(--navy-dark); font-weight: 600;
}

/* ------------------------------------------------------------- classroom --
   A name list on the left, one student's classroom on the right. Two columns
   because the job is comparing: you pick a name, read, pick the next. A
   dropdown would hide the roll and make you click twice for every look. */
.crwrap {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 18px;
  align-items: start;
}
.crlist {
  border: 1px solid var(--rule); border-radius: 3px; background: #fff;
  overflow: hidden; position: sticky; top: 18px;
}
.crlist-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: var(--pale);
  border-bottom: 1px solid var(--rule);
  font-size: .74rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--grey); font-weight: 600;
}
.crlist-head .btn { margin-left: auto; }
.crname {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 12px; border: 0; border-bottom: 1px solid #EDF2F6;
  background: #fff; font: inherit; line-height: 1.3;
}
.crname:last-child { border-bottom: 0; }
.crname:hover { background: var(--pale); }
.crname strong { display: block; font-size: .88rem; color: var(--ink); }
.crname span { display: block; font-size: .74rem; color: var(--grey); }
.crname.on { background: var(--navy); }
.crname.on strong, .crname.on span { color: #fff; }
.crname.on span { color: #C7D8E6; }

.crbody { min-width: 0; }
.crempty {
  border: 1px dashed var(--rule); border-radius: 3px; padding: 30px 26px;
  background: var(--pale); color: var(--grey);
}
.crempty h3 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; }
.crempty p { margin: 0; font-size: .86rem; max-width: 52ch; line-height: 1.55; }

.crhead {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 2px solid var(--navy);
}
.crhead h2 { margin: 0; font-size: 1.22rem; color: var(--navy-dark); }
.crhead p { margin: 2px 0 0; font-size: .8rem; }
.crhead .btn { margin-left: auto; flex: none; }
.counts.tight { margin: 0 0 14px; }

/* One section of the course, with its material and its assignment. */
.crsec {
  border: 1px solid var(--rule); border-radius: 3px; background: #fff;
  margin-bottom: 14px; overflow: hidden;
}
.crsec-h {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 13px; background: var(--pale);
  border-bottom: 1px solid var(--rule);
}
.crsec-h h3 { margin: 0; font-size: .95rem; color: var(--navy-dark); }
.crsec-n {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey); font-weight: 700;
}
.crit {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px; padding: 12px 13px; border-bottom: 1px solid #EDF2F6;
}
.crit:last-child { border-bottom: 0; }
.crit-k {
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 700; color: var(--grey); padding-top: 2px;
}
.crit.in  { background: #F6FBF8; }
.crit.in  .crit-k { color: var(--green); }
.crit.out .crit-k { color: var(--amber); }
.crit-b strong { display: block; font-size: .9rem; color: var(--ink); }
.crit-b p {
  margin: 4px 0 0; font-size: .83rem; color: #55636F; line-height: 1.55;
  max-width: 76ch;
}
.crit-m {
  display: block; margin-top: 5px; font-size: .74rem; color: var(--grey);
}
.crit-m a { color: var(--navy); }

/* The student's own words, shown as written. */
.crans {
  margin-top: 9px; border-left: 3px solid var(--green);
  background: #F4F9F6; padding: 8px 11px; border-radius: 0 3px 3px 0;
}
.crans-h {
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 700; color: var(--green); margin-bottom: 4px;
}
.crans p {
  margin: 0; font-size: .85rem; color: var(--ink); line-height: 1.6;
  white-space: pre-wrap; max-width: 76ch;
}
.crwait {
  margin-top: 8px; font-size: .8rem; color: var(--amber); font-weight: 600;
}
.crul { margin: 0; padding: 10px 13px 12px 30px; font-size: .86rem; }
.crul li { margin-bottom: 3px; }
.crfoot { font-size: .74rem; color: var(--grey); margin: 10px 0 0; }
.disclose.warn-soft {
  background: var(--cream); border-color: #E3C88A; color: #6B4A0F;
}
.muted.pad { padding: 14px 12px; font-size: .84rem; }
.muted.small { font-size: .76rem; }

/* Question-by-question strip for one sitting. */
.cratt {
  border-top: 1px solid var(--rule); padding: 11px 13px; background: var(--pale);
}
.cratt-h {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 9px; font-size: .88rem;
}
.cratt-h .btn { margin-left: auto; }
.crqs { display: flex; flex-wrap: wrap; gap: 4px; }
.crq {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 3px; cursor: default;
  font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.crq.ok { background: #E3F1E9; color: #1F5B41; border-color: #B9DCC9; }
.crq.no { background: #FBE9EC; color: #8A2436; border-color: #EEC2CB; }
.crq.na { background: #EEF2F5; color: var(--grey); border-color: var(--rule); }

@media (max-width: 900px) {
  .crwrap { grid-template-columns: 1fr; }
  .crlist { position: static; }
  .crit { grid-template-columns: 1fr; gap: 4px; }
}

/* -------------------------------------- what a student handed in as a file */
.crfiles{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.crfile{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;
  border:1px solid var(--green);border-radius:5px;background:#fff;
  color:var(--green);font-size:13.5px;font-weight:600;text-decoration:none}
.crfile::before{content:"\2193";font-weight:700}
.crfile:hover{background:var(--green);color:#fff}
.crfile.link::before{content:"\2197"}
.crfile.link{border-color:var(--navy);color:var(--navy)}
.crfile.link:hover{background:var(--navy);color:#fff}

/* ------------------------------- putting one thing into one classroom ---- */
.crgive{border:1px solid var(--rule);border-radius:7px;background:var(--pale);
  padding:18px 20px 16px;margin:22px 0}
.crgive-h h3{margin:0 0 4px;font-size:16px;color:var(--navy-dark)}
.crgive-h .muted{margin:0 0 14px;font-size:13.5px;line-height:1.55}
.crgive-row{display:grid;grid-template-columns:112px minmax(0,1fr) 148px 96px;
  gap:9px;align-items:center;margin-bottom:10px}
/* Rows without a date leave that column empty so every button lines up. */
.crgive-row.nodate select{grid-column:2 / 4}
.crgive-row label{font-size:13.5px;font-weight:600;color:var(--ink)}
.crgive-row select,.crgive-row input{font:inherit;font-size:13.5px;padding:7px 9px;
  border:1px solid var(--rule);border-radius:5px;background:#fff;color:var(--ink);
  min-width:0}
.crgive-row input[type=date]{width:100%}
.crgive-row select:focus,.crgive-row input:focus{outline:2px solid var(--navy);
  outline-offset:1px}
.crgive-row .btn.small{white-space:nowrap;width:100%;justify-content:center}
.crgive-note{grid-column:2 / -1;margin-top:-2px}
.crgive-said{margin:12px 0 0;font-size:13.5px;line-height:1.55;min-height:1px}
.crgive-said.good{color:var(--green);font-weight:600}
.crgive-said.bad{color:#A3453C;font-weight:600}

@media (max-width:900px){
  .crgive-row{grid-template-columns:1fr;gap:7px}
  .crgive-row input[type=date]{width:100%}
  .crgive-row.nodate select{grid-column:1}
  .crgive-row .btn.small{width:auto}
  .crgive-note{grid-column:1}
}

/* A button that has been pressed once and is waiting for the second press. */
.crgive-row .btn.armed{background:var(--gold);border-color:var(--gold);color:#3A2B10}
.crgive-row .btn.armed:hover{background:#D9932F;border-color:#D9932F}

/* Assignment briefs are written as a) b) c) on their own lines. Without this
   the browser would run them together into one paragraph. */
.crit-b p{white-space:pre-line}

/* ------------------------------------------------ marking an assignment */
/* Sits inside the assignment block, below whatever was handed in. Deliberately
   quiet: it is a working tool, not a headline. The pale-cream ground is the
   panel's signal for "this is yours only and goes no further". */
.crmark{margin-top:10px;padding:10px 12px;background:var(--cream);
        border:1px solid var(--rule);border-radius:6px}
.crmark.done{border-left:3px solid var(--gold)}
.crmark-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crmark-h label{font-size:13px;font-weight:600;color:var(--ink)}
.crmark-in{width:74px;padding:5px 7px;border:1px solid var(--rule);border-radius:4px;
           font:inherit;font-variant-numeric:tabular-nums lining-nums;text-align:right}
.crmark-in:focus{outline:2px solid var(--navy);outline-offset:1px}
.crmark-of{font-size:12px;color:var(--grey)}
.crmark-band{font-size:12px;font-weight:600;color:var(--navy);
             padding:2px 8px;background:#fff;border:1px solid var(--rule);border-radius:10px}
.crmark-note{width:100%;margin-top:7px;padding:5px 7px;border:1px solid var(--rule);
             border-radius:4px;font:inherit;font-size:13px}
.crmark-m{display:block;margin-top:6px;font-size:11.5px;color:var(--grey)}
.crmark .btn.ghost{background:transparent;color:var(--grey);border:1px solid var(--rule)}
.crmark .btn.armed{background:var(--gold);color:#1D3A57;border-color:var(--gold)}

/* The two averages that feed the readiness index. */
.crfeed{display:flex;gap:22px;flex-wrap:wrap;align-items:baseline;
        margin:0 0 14px;padding:11px 14px;background:var(--pale);
        border:1px solid var(--rule);border-radius:6px}
.crfeed b{font-size:19px;color:var(--navy);font-variant-numeric:tabular-nums lining-nums}
.crfeed span{font-size:12px;color:var(--grey);display:block}
.crfeed .crfeed-i{min-width:120px}

/* ---------------------------------------------- the six pressed most often */
/* Above the step table, deliberately not styled as a hero. Six equal tiles,
   numbered in the order he named them, so the row reads as a habit rather
   than a menu. Narrow enough that all six fit one line on a laptop and wrap
   to two threes rather than an awkward five-and-one. */
.pinned{margin-bottom:26px}
.pins{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pin{position:relative;padding:14px 15px 13px;background:#fff;
     border:1px solid var(--rule);border-top:3px solid var(--navy);
     border-radius:6px;display:flex;flex-direction:column;gap:7px}
.pin.off{border-top-color:var(--rule);background:var(--pale)}
.pin-n{position:absolute;top:11px;right:13px;font-size:11px;font-weight:700;
       color:var(--grey);font-variant-numeric:tabular-nums lining-nums}
.pin h4{margin:0;padding-right:18px;font-size:14.5px;line-height:1.3;
        color:var(--navy);font-weight:600}
.pin.off h4{color:var(--ink)}
.pin p{margin:0;font-size:12.5px;line-height:1.45;color:var(--grey);flex:1}
.pin-foot{margin-top:3px}
.pin-soon{display:inline-block;font-size:11.5px;font-weight:600;color:var(--amber);
          padding:3px 9px;background:var(--cream);border:1px solid var(--rule);
          border-radius:10px}
@media (max-width:900px){.pins{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.pins{grid-template-columns:1fr}}

/* ---- the seven readiness parameters you type in yourself ---- */
.seven { border: 1px solid var(--rule); border-radius: 10px;
  background: #fff; padding: 18px 20px; margin: 18px 0; }
.sv-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; }
.sv-head h3 { margin: 0; font-size: 17px; color: var(--navy-dark); }
.sv-count { font-size: 12px; color: var(--grey); border: 1px solid var(--rule);
  border-radius: 20px; padding: 2px 11px; white-space: nowrap; }
.sv-count.ok { color: var(--green); border-color: var(--green); }
.sv-why { margin: 8px 0 14px; font-size: 13px; color: var(--ink);
  line-height: 1.55; max-width: 66ch; }
.sv-said { margin: 0 0 12px; font-size: 13px; color: var(--ink);
  background: var(--pale); border-radius: 6px; padding: 8px 12px; }
.sv-said.good { background: #EAF5EF; color: var(--green); }
.sv-said.bad { background: #FBEDE9; color: #9A3B2C; }
.sv-grid { display: flex; flex-direction: column; gap: 2px; }
.sv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px; align-items: start; padding: 12px 0;
  border-top: 1px solid var(--rule); }
.sv-row:first-child { border-top: 0; }
.sv-l { min-width: 0; }
.sv-l label { display: block; font-weight: 600; font-size: 14px;
  color: var(--navy-dark); }
.sv-help { display: block; font-size: 12px; color: var(--grey);
  line-height: 1.5; margin-top: 2px; max-width: 52ch; }
.sv-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end; }
.sv-in { border: 1px solid var(--rule); border-radius: 6px; padding: 6px 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; }
input.sv-in { width: 68px; text-align: center; }
select.sv-in { max-width: 300px; font-size: 13px; }
.sv-in:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.sv-of { font-size: 12px; color: var(--grey); white-space: nowrap; }
.sv-m { grid-column: 1 / -1; font-size: 11px; color: var(--grey);
  line-height: 1.5; }
.sv-row.done .sv-m { color: var(--green); }
.sv-clear.armed, .crmark .btn.armed { background: #FBEDE9; color: #9A3B2C;
  border-color: #E3B8AE; }
.sv-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sv-foot .muted { font-size: 12px; max-width: 48ch; line-height: 1.5; }
.sv-res { margin-top: 14px; background: var(--pale); border-radius: 8px;
  padding: 14px 16px; }
.sv-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sv-num b { font-size: 30px; color: var(--navy-dark); line-height: 1;
  font-variant-numeric: tabular-nums lining-nums; }
.sv-num span { font-size: 13px; color: var(--ink); }
.sv-res .muted { font-size: 12px; margin: 6px 0 0; }
.sv-gap { font-size: 12px; color: var(--amber); margin: 8px 0 0;
  line-height: 1.55; max-width: 62ch; }
.sv-res details { margin-top: 10px; }
.sv-res summary { font-size: 12px; color: var(--navy); cursor: pointer; }
.sv-src { margin: 8px 0 0; padding-left: 18px; font-size: 12px;
  color: var(--ink); line-height: 1.7; }
@media (max-width: 620px) {
  .sv-row { grid-template-columns: 1fr; }
  .sv-r { justify-content: flex-start; }
  select.sv-in { max-width: 100%; }
}
/* What the chosen ECA band actually means, in full, rather than truncated
   inside the dropdown where only the first few words survive. */
.sv-band { display: block; font-size: 12px; color: var(--grey);
  line-height: 1.5; max-width: 26ch; text-align: right; }
select.sv-in { max-width: 170px; }
/* The ECA row carries an extra line of meaning on the right, which was
   stealing width from the label on its left. Hold the label column. */
.sv-l { min-width: 52%; }
