/* © 2026 William C. Chesher. All Rights Reserved. */
/* teacher - Mission Control's desk: the class bar, the crews with presence and what needs you, the crew drawer, the class list, term end, the printed records and PIN slips */

/* The desk builds on launch.css's tokens and never redefines them: graphite, ignition orange as the one
   accent, hairline rules, Barlow Condensed for display, JetBrains Mono for anything a machine says. One
   moving thing at a time; motion runs left to right; everything holds still under reduced motion. */

.desk-page { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 max(16px, 2vw); display: grid; gap: var(--space-5); }
.desk-page[hidden] { display: none; }

/* ---- the class bar: sticky, the room's four hands on one line ---------------------------------------- */
.class-bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-5); align-items: end;
  grid-template-areas: "name tools" "name readouts" "controls controls";
  overflow-x: clip;   /* the release sweep runs past the bar's edge; it never widens the page */
  margin: 0 calc(-1 * max(16px, 2vw)); padding: var(--space-4) max(16px, 2vw) var(--space-3);
  background: var(--glass); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.2); backdrop-filter: blur(var(--blur-glass)) saturate(1.2);
  border-bottom: 1px solid var(--hairline); }
.class-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-line) 30%, var(--accent-line) 70%, transparent); opacity: .7; }
/* On a short screen the bar scrolls away rather than eat the room; the drawer then sits at the top. */
@media (max-height: 899px) { .class-bar { position: relative; } .crew-drawer { --class-bar-height: 0px; } }
.class-name { grid-area: name; display: grid; gap: var(--space-1); min-width: 0; }
.class-name .display-l { font-size: clamp(28px, 3vw, 38px); overflow-wrap: break-word; }
.class-name .eyebrow { color: var(--accent); }
.class-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.class-tools { grid-area: tools; align-self: start; display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; align-items: center; }
/* One code, every period: the desk switches between them here (desk.py ONE CODE) */
.period-switch { display: flex; gap: var(--space-2); align-items: center; }
.period-choice { width: auto; min-width: 12ch; max-width: 28ch; min-height: 44px; font-family: var(--font-mono); font-size: 0.875rem; cursor: pointer; }
/* The room's hands as one console strip: modules side by side, each as wide as its control and the row shared
   out between them, each with its eyebrow on one line, a corner tick, and a hairline between, so every control
   starts on the same rule however its note wraps. */
.class-controls { grid-area: controls; display: flex; flex-wrap: wrap; border-top: 1px solid var(--hairline); margin-top: var(--space-1); }
.class-control { position: relative; flex: 1 1 auto; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-3) var(--space-4) var(--space-2);
  border-left: 1px solid var(--hairline); min-width: 0; }
.class-control[hidden] { display: none; }
.class-control::before { content: ""; position: absolute; left: -1px; top: -1px; width: 10px; height: 10px; pointer-events: none;
  border-left: 1px solid var(--accent-line); border-top: 1px solid var(--accent-line); }
.class-control > .eyebrow { margin: 0; min-height: 1.3em; white-space: nowrap; }
.class-control .hold-frame { gap: var(--space-1); }
.class-control .hold-note { font-size: 12px; max-width: 30ch; }
.class-control .reply { font-size: 13px; max-width: 34ch; }
.released-now { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--text); }
/* The parts, numbered: lit when open, half-lit at the cut, the next one armed and breathing for the hold. */
.released-track { display: flex; gap: 3px; }
.released-track span { display: grid; place-items: center; width: 22px; height: 18px; font-family: var(--font-mono); font-size: 10px; line-height: 1;
  color: var(--text-muted); border: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.released-track span.is-open { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.released-track span.is-cut { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border-color: var(--accent); color: var(--text); }
.released-track span.is-next { border-color: var(--accent-line); color: var(--text); }
:root:not(.is-still) .released-track span.is-next { animation: ln-breathe-box 3s ease-in-out infinite; }

/* The room at a glance: station time, crews, students on station, the crews that need Mission Control. */
.readouts { grid-area: readouts; justify-self: end; display: flex; margin: 0; border: 1px solid var(--hairline); background: var(--veil-1); }
.readout-cell { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-left: 1px solid var(--hairline); min-width: 8ch; }
.readout-cell:first-child { border-left: 0; }
.readout-cell dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.readout-cell dd { margin: 0; font-family: var(--font-mono); font-size: 20px; line-height: 1.1; letter-spacing: .06em; color: var(--text); font-variant-numeric: tabular-nums; }
.readout-clock dd { color: var(--accent); min-width: 8ch; }
.readout-needs.is-lit { background: var(--accent-wash); box-shadow: inset 0 -2px 0 var(--accent); }
.readout-needs.is-lit dd { color: var(--accent); }
:root:not(.is-still) .readout-needs.is-lit dd { animation: ln-breathe-text 3s ease-in-out infinite; }

/* The traffic line: the room's latest move, the accent landing then cooling. */
.traffic { flex: 1 1 100%; display: flex; align-items: baseline; gap: var(--space-2); margin: 0; min-width: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.traffic[hidden] { display: none; }
.traffic-tag { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); padding: 2px 5px; border: 1px solid var(--hairline); }
.traffic-line { min-width: 0; color: var(--text-secondary); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.traffic-line.is-fresh { animation: desk-land 1600ms var(--ease-machined) both; }

/* A release: one ignition sweep across the bar, left to right, then gone. */
.class-bar.is-releasing::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--accent-wash) 40%, var(--accent-glow) 50%, var(--accent-wash) 60%, transparent);
  transform: translateX(-100%); }
:root:not(.is-still) .class-bar.is-releasing::before { animation: ln-scan 1400ms var(--ease-machined) both; }
.pace-choices { display: flex; border: 1px solid var(--edge); width: max-content; }
.pace-choice { min-height: 44px; min-width: 52px; padding: 0 var(--space-3); font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em;
  color: var(--text-secondary); background: transparent; border: 0; border-left: 1px solid var(--edge); cursor: pointer;
  transition: background-color var(--flow-ui, 240ms) var(--ease-machined), color var(--flow-ui, 240ms) var(--ease-machined); }
.pace-choice:first-child { border-left: 0; }
.pace-choice:hover { color: var(--text); background: var(--veil-1); }
.pace-choice[aria-checked="true"] { color: var(--text); background: var(--veil-2); box-shadow: inset 0 -2px 0 var(--accent); }
.pace-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .pace-choice { transition: none; } }
.floor-state { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.floor-state.is-held { color: var(--text); }

/* ---- eyes up, as the desk shows it: the room is held -------------------------------------------------- */
.desk-page.is-eyes-up .class-bar { border-bottom-color: var(--accent-line); }
.eyes-banner { display: none; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-wash), transparent 60%), var(--surface); }
.desk-page.is-eyes-up .eyes-banner { display: flex; animation: desk-enter-left var(--flow-ui, 240ms) var(--ease-machined) both; }
.eyes-banner .mark { flex: none; }
.eyes-banner p { margin: 0; font-family: var(--font-mono); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--text); }
.eyes-banner p + p { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text-secondary); }

/* ---- the room: crews on the left, the drawer on the right ---------------------------------------------- */
.desk-room { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.desk-room.has-drawer { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); }
@media (max-width: 1080px) { .desk-room.has-drawer { grid-template-columns: minmax(0, 1fr); } }

.crew-board { width: 100%; border-collapse: collapse; font-size: 14px; }
.crew-board th { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
  text-align: left; padding: 0 var(--space-3) var(--space-2); white-space: nowrap; }
.crew-board td { padding: var(--space-3); border-top: 1px solid var(--hairline); vertical-align: top; color: var(--text-secondary); }
.crew-board tbody tr { cursor: pointer; transition: background-color var(--flow-ui, 240ms) var(--ease-machined); }
.crew-board tbody tr:hover td { background: var(--veil-1); }
.crew-board tbody tr[aria-selected="true"] td { background: var(--veil-2); }
.crew-board tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.crew-board tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.crew-board .crew-code { font-family: var(--font-mono); font-size: 17px; letter-spacing: .2em; color: var(--text); white-space: nowrap; }
.crew-board tbody tr.is-needs td:first-child { box-shadow: inset 2px 0 0 var(--accent-line); }
.crew-board tbody tr.is-needs .crew-code { color: var(--accent); }
.crew-board .number { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.crew-board th.number { text-align: right; }

.seat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.seat { display: flex; align-items: center; gap: var(--space-2); white-space: nowrap; color: var(--text); }
.seat .seat-chair { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--text-muted); min-width: 22px; }
.seat .seat-presence { font-size: 12px; color: var(--text-muted); }
.seat-empty { color: var(--text-muted); }

.where { display: grid; gap: 2px; }
.where .where-step { color: var(--text); }
.where .where-part { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-muted); }
.where .where-ending { font-size: 13px; color: var(--text-secondary); }
.where .where-pad { margin-top: var(--space-1); width: min(100%, 300px); }
.where .where-pad svg { display: block; width: 100%; height: auto; }
.where .where-pad.is-building, .where .where-pad.is-slipped { opacity: .75; }

.needs-list { display: grid; gap: 4px; justify-items: start; }
.needs-tag { display: inline-block; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--edge); padding: 5px 7px; }
.needs-tag.is-ruling { border-color: var(--flare); box-shadow: 0 0 10px var(--flare-glow); }
.needs-tag.is-poll { border-color: var(--flare); color: var(--text); }
.needs-tag.is-waiting { border-color: var(--accent-line); color: var(--text); }
.needs-tag.is-out_of_step { border-color: var(--accent-line); color: var(--text); }   /* a console behind the log: a reload fixes it */
.needs-tag.is-stuck { border-style: dashed; color: var(--text-secondary); }   /* L19: a quiet mark, never an alarm */
.needs-none { color: var(--text-muted); }

/* ---- the crew drawer --------------------------------------------------------------------------------- */
.crew-drawer { position: sticky; top: calc(var(--class-bar-height, 180px) + var(--space-3)); max-height: calc(100vh - var(--class-bar-height, 180px) - var(--space-5)); overflow: auto;
  display: grid; gap: var(--space-4); align-content: start; border-left: 1px solid var(--hairline); padding: 0 0 var(--space-5) var(--space-5); }
.crew-drawer[hidden] { display: none; }
.crew-drawer.is-entering { animation: desk-enter-left var(--flow-ui, 240ms) var(--ease-machined) both; }
@media (max-width: 1080px) { .crew-drawer { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--hairline); padding: var(--space-5) 0 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
.drawer-code { font-family: var(--font-mono); font-size: 40px; line-height: 1; letter-spacing: .22em; color: var(--text); margin: var(--space-1) 0 0; }
.drawer-band { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.drawer-band > .eyebrow { margin: 0; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.member-row .who { display: flex; align-items: center; gap: var(--space-2); color: var(--text); }
.member-row .member-presence { font-size: 12px; color: var(--text-muted); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.directive-form { display: grid; gap: var(--space-2); }
.directive-form .field-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.directive-form select, .directive-form textarea { font: inherit; }
.directive-form textarea { min-height: 72px; resize: vertical; }
.directive-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-left: auto; }
.directive-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.directive-list li { padding: var(--space-2) var(--space-3); border-left: 2px solid var(--accent-line); background: var(--veil-1); font-size: 14px; color: var(--text); }
.directive-list .meta { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }

.ruling { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--flare); box-shadow: inset 0 0 0 1px var(--flare-glow); }
.ruling .eyebrow { color: var(--text); }
.ruling p { margin: 0; font-size: 14px; color: var(--text-secondary); max-width: 46ch; }
.stand-in { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--accent-line); }
.stand-in .eyebrow { color: var(--text); }
.stand-in p { margin: 0; font-size: 14px; color: var(--text-secondary); max-width: 46ch; }
.stand-in-hold { display: grid; gap: var(--space-2); justify-items: start; }
.stand-in-hold .input { width: 100%; }
.ruling-choices { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.budget-move { display: grid; gap: var(--space-2); }
.budget-move input { max-width: 12ch; font-family: var(--font-mono); }
.budget-move p, .drawer-band > .body-s { margin: 0; }
.budget-move textarea, .drawer-band textarea { font: inherit; resize: vertical; width: 100%; }

/* Under the crews board: mission news (the real record) and the class's intern quips */
.desk-main { display: grid; gap: var(--space-5); min-width: 0; }
.news-list, .quip-list { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
/* Mission news as a dossier wall: cards side by side, each action on one baseline at the foot of its card. */
.news-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-item { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-left: 2px solid var(--accent-line); background: var(--veil-1); }
.news-item > :last-child { margin-top: var(--space-2); }
.news-item.is-released { border-left-color: var(--hairline); opacity: .72; }
.news-item p { margin: 0; }
.news-item .meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.news-headline { font-family: var(--font-display); font-size: 18px; letter-spacing: .02em; color: var(--text); }
.news-item .body-s { color: var(--text-secondary); max-width: 64ch; }
.quip-form { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.quip-form .field-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.quip-form input { flex: 1 1 24ch; min-width: 0; }
.quip-form p { margin: 0; }
.quip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--hairline); }
.quip-words { flex: 1 1 28ch; margin: 0; color: var(--text); }

.crew-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; font-size: 14px; }
.crew-log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-3); padding: 6px 0; border-top: 1px solid var(--hairline); color: var(--text-secondary); }
.crew-log li:first-child { border-top: 0; }
.crew-log time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.crew-log li.is-fresh { animation: desk-land 900ms var(--ease-machined) both; }
.log-more { justify-self: start; }

/* ---- the class list: the paste, the PINs, crews dealt and adjusted ----------------------------------------- */
.class-list-page { display: grid; gap: var(--space-5); max-width: 1080px; }
.class-list-page[hidden] { display: none; }
.class-list-page .ln-panel { display: grid; gap: var(--space-3); }
.list-load > summary { list-style: none; justify-self: start; width: max-content; }
.list-load > summary::-webkit-details-marker { display: none; }
.list-load[open] > summary { margin-bottom: var(--space-3); }
.list-paste { width: 100%; min-height: 160px; resize: vertical; font-family: var(--font-mono); font-size: 14px; }
.list-board tbody tr { cursor: default; }
.list-board tbody tr:hover td, .list-board tbody tr:hover th { background: var(--veil-1); }
.list-board th[scope="row"] { text-align: left; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; white-space: normal;
  padding: var(--space-3); border-top: 1px solid var(--hairline); vertical-align: middle; }
.list-board td { vertical-align: middle; }
.list-board .mono { color: var(--text); letter-spacing: .08em; }
.list-name { display: block; color: var(--text); }
.list-full { display: block; font-size: 12px; color: var(--text-muted); }
.list-crew { font-family: var(--font-mono); letter-spacing: .16em; color: var(--text); }
.list-crew.is-locked::after { content: " / locked"; letter-spacing: .08em; font-size: 11px; color: var(--text-muted); }
.list-crew-select { min-height: 36px; padding: 4px 8px; font-family: var(--font-mono); font-size: 13px; }
.list-locked { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.list-actions { text-align: right; white-space: nowrap; }
/* The supported path's prompt record, under the student's switch: the help each answer took, by Part. */
.list-prompts { margin-top: var(--space-2); text-align: left; white-space: normal; }
.list-prompts summary { cursor: pointer; font-size: 12px; color: var(--text-secondary); }
.list-prompts-table { margin-top: var(--space-2); border-collapse: collapse; font-size: 12px; }
.list-board .list-prompts-table th, .list-board .list-prompts-table td { padding: 2px var(--space-2); font-size: 12px; line-height: 1.5;
  border-top: 1px solid var(--hairline); text-align: right; vertical-align: baseline; background: none; }
.list-board .list-prompts-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-muted); }
.list-board .list-prompts-table tbody th { text-align: left; color: var(--text-muted); font-size: 12px; }
.deal-panel { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--accent-line); background: var(--veil-1); }
.deal-panel[hidden] { display: none; }
.deal-panel > p { margin: 0; }
.deal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.deal-list li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--space-3); color: var(--text); padding: 4px 0; border-top: 1px solid var(--hairline); }
.deal-number { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }

/* ---- term end: the export above the purge ------------------------------------------------------------- */
.term-end { display: grid; gap: var(--space-5); max-width: 880px; }
.term-end[hidden] { display: none; }
.export-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.purge-page { border-top: 1px solid var(--hairline); }
.purge-page fieldset { border: 1px solid var(--edge); padding: var(--space-3) var(--space-4); margin: 0; display: grid; gap: var(--space-2); }
.purge-page legend { padding: 0 var(--space-2); }
.purge-page label.choice { display: flex; gap: var(--space-3); align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.purge-page input[type="radio"] { width: 18px; height: 18px; accent-color: var(--text); }
.back-link { justify-self: start; }

.desk-footer-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.desk-footer-links a, .desk-footer-links button { color: var(--text-secondary); font-size: 13px; }

/* ---- narrow: the bar stacks, nothing breaks a word ------------------------------------------------------ */
@media (max-width: 1080px) {
  .class-bar { grid-template-areas: "name tools" "readouts readouts" "controls controls"; }
  .readouts { justify-self: start; }
}
@media (max-width: 720px) {
  .class-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "readouts" "tools" "controls"; }
  .class-tools { justify-content: flex-start; }
  .readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-self: stretch; }
  .readout-cell:nth-child(odd) { border-left: 0; }
  .readout-cell:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .period-switch { flex: 1 1 100%; }
  .period-choice { flex: 1; max-width: none; }
}

/* ---- motion (the house's: enter from the left, the accent lands then cools) ------------------------------ */
@keyframes desk-enter-left { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes desk-land { 0% { color: var(--accent); } 100% { color: var(--text-secondary); } }
@media (prefers-reduced-motion: reduce) {
  .desk-page.is-eyes-up .eyes-banner, .crew-drawer.is-entering, .crew-log li.is-fresh { animation: none; }
  .crew-board tbody tr { transition: none; }
  .traffic-line.is-fresh { animation: none; }
}

/* ---- the draws, in the drawer: opened on request ------------------------------------------------------- */
.draws-band > summary { cursor: pointer; }
.timeline-band > summary { cursor: pointer; }
.timeline-table { width: 100%; border-collapse: collapse; margin-top: var(--space-2); font-size: 0.875rem; }
.timeline-table th, .timeline-table td { text-align: left; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--hairline); vertical-align: top; }
.timeline-table thead th { font-weight: 600; }
.timeline-table tbody th { font-weight: 400; }
.timeline-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.timeline-table tr.is-current th { font-weight: 600; }
.draws { display: grid; gap: var(--space-2); }
.draws p { margin: 0; }
.draws-seed { overflow-wrap: anywhere; }
.draws-counts { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.draws-counts li { display: grid; gap: 2px; }
.draws-counts .data { overflow-wrap: anywhere; }

/* ---- the printed records: one page per crew ----------------------------------------------------------- */
.print-records { display: none; }
@media print {
  body.is-printing > *:not(.print-records) { display: none !important; }
  body.is-printing .print-records { display: block; color: #000; background: #fff; font-family: var(--font-body); font-size: 11pt; }
  .print-record { break-after: page; padding: 0; }
  .print-record:last-child { break-after: auto; }
  .print-record h1 { font-family: var(--font-display); font-size: 22pt; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4pt; }
  .print-record h2 { font-family: var(--font-mono); font-size: 9pt; letter-spacing: .2em; text-transform: uppercase; margin: 14pt 0 4pt; border-bottom: .5pt solid #000; padding-bottom: 2pt; }
  .print-record .meta { font-family: var(--font-mono); font-size: 9pt; letter-spacing: .08em; }
  .print-record ol, .print-record ul { margin: 0; padding-left: 16pt; }
  .print-record li { margin: 2pt 0; }
  .print-record .why { display: block; font-style: italic; }
  .print-record li.is-hal { border-left: 2pt solid #000; padding-left: 4pt; }
  .print-record li.is-hal .why { font-style: normal; font-weight: 600; }
  .print-record .by { font-family: var(--font-mono); font-size: 8pt; letter-spacing: .1em; text-transform: uppercase; }
  /* PIN slips: a grid to cut apart, three across, every slip whole on its page */
  .print-slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .print-slip { break-inside: avoid; border: .5pt dashed #000; padding: 10pt 12pt; display: grid; gap: 3pt; }
  .print-slip p { margin: 0; }
  .print-slip .slip-brand { display: flex; align-items: center; justify-content: space-between; gap: 8pt;
    font-family: var(--font-mono); font-size: 7pt; letter-spacing: .2em; text-transform: uppercase; }
  .print-slip .lockup { height: 11pt; width: auto; }
  .print-slip .lockup .orbit, .print-slip .lockup .transfer { stroke: #000; }
  .print-slip .lockup .sun, .print-slip .lockup .earth, .print-slip .lockup .wordmark { fill: #000; }
  .print-slip .lockup .mars { fill: var(--accent); }
  .print-slip .slip-name { font-family: var(--font-display); font-size: 16pt; letter-spacing: .04em; }
  .print-slip dl { margin: 2pt 0; display: grid; grid-template-columns: auto 1fr; gap: 1pt 8pt; align-items: baseline; }
  .print-slip dt { font-family: var(--font-mono); font-size: 7pt; letter-spacing: .16em; text-transform: uppercase; }
  .print-slip dd { margin: 0; font-family: var(--font-mono); font-size: 15pt; letter-spacing: .14em; }
  .print-slip .slip-address { font-family: var(--font-mono); font-size: 9pt; }
  .print-slip .slip-note { font-size: 7.5pt; }
}

/* The mission, picked when the class is made: a fieldset holding the shared segments. */
.mission-field { border: 0; margin: 0; padding: 0; min-width: 0; }

.chip.is-counter { border-style: dashed; }

/* Mission Alpha's class spread and evidence grid: alpha.css's panel, card and table, its tokens with launch's as the
   fallback. Choices, never a score (H6): the bars count crews, the grid cells are words. */
.spread-room { margin-top: var(--al-space-5, var(--space-5)); min-width: 0; }
.spread-room > .al-panel { min-width: 0; }
.spread-heading { margin: 0; font-family: var(--al-font-stencil, var(--font-display)); font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: var(--al-text, var(--text)); }
.spread-lede { margin: var(--al-space-2, 8px) 0 0; max-width: 72ch; font-family: var(--al-font-body, var(--font-body, inherit)); font-size: 0.875rem; color: var(--al-text-secondary, var(--text-secondary)); }
.spread-boards { display: grid; gap: var(--al-space-4, var(--space-4)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: var(--al-space-4, var(--space-4)); }
.spread-board { display: grid; gap: var(--al-space-2, var(--space-2)); align-content: start; min-width: 0; }
.spread-title { margin: 0; font-family: var(--al-font-stencil, var(--font-display)); font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--al-text, var(--text)); }
.spread-label { margin: 0; font-family: var(--al-font-mono, var(--font-mono)); font-size: 0.6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--al-text-muted, var(--text-muted)); }
.spread-bars { list-style: none; margin: var(--al-space-1, 4px) 0 0; padding: 0; display: grid; gap: var(--al-space-2, 8px); }
.spread-bar { display: grid; grid-template-columns: minmax(0, 1fr) 7ch; gap: 4px var(--al-space-2, var(--space-2)); align-items: center; }
.spread-value { grid-column: 1 / -1; font-family: var(--al-font-body, var(--font-body, inherit)); font-size: 0.875rem; color: var(--al-text, var(--text)); overflow-wrap: anywhere; }
.spread-track { height: 10px; background: var(--al-well, var(--veil-1)); }
.spread-fill { display: block; height: 100%; background: var(--al-lamp, var(--accent)); }
.spread-bar.is-hal .spread-value { font-family: var(--al-font-mono, var(--font-mono)); color: var(--al-text-secondary, var(--text-secondary)); }
.spread-bar.is-hal .spread-fill { background: transparent; box-shadow: inset 0 0 0 1px var(--al-edge, var(--edge)); }
.spread-crews { font-family: var(--al-font-mono, var(--font-mono)); font-size: 0.75rem; text-align: right; color: var(--al-text-muted, var(--text-muted)); }
.spread-shown { display: grid; gap: var(--al-space-2, 8px); justify-items: start; margin-top: var(--al-space-4, var(--space-4)); }
.spread-shown-words { margin: 0; font-family: var(--al-font-body, var(--font-body, inherit)); color: var(--al-lamp, var(--accent)); overflow-wrap: anywhere; }
.grid-table { min-width: max-content; }
.grid-table thead th:first-child, .grid-table tbody th { position: sticky; left: 0; background: var(--al-surface, var(--surface)); z-index: 1; }
.grid-idea { text-align: center; font-family: var(--al-font-mono, var(--font-mono)); }
.grid-key { columns: 2 24rem; column-gap: var(--al-space-6, var(--space-6, 24px)); margin: var(--al-space-4, var(--space-4)) 0 0; padding-left: 2.5em; color: var(--al-text-secondary, var(--text-secondary)); }
.grid-key li { break-inside: avoid; }
.grid-name { display: block; font-family: var(--al-font-body, var(--font-body, inherit)); white-space: nowrap; color: var(--al-text, var(--text)); }
.grid-crew { display: block; font-size: 0.6875rem; color: var(--al-text-muted, var(--text-muted)); }
.grid-cell { min-width: 7ch; max-width: 9ch; white-space: normal; }
.grid-cell.is-chose_why { color: var(--al-text, var(--text)); box-shadow: inset 2px 0 0 var(--al-lamp, var(--accent)); }
.grid-cell.is-not_yet { color: var(--al-text-muted, var(--text-muted)); }
.drawer-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.drawer-choices li { display: grid; gap: 4px; justify-items: start; }
.drawer-choice-why { font-family: var(--al-font-story, Georgia, serif); font-size: 0.875rem; overflow-wrap: anywhere; }
.drawer-case-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.drawer-case-list li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.drawer-journal summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; }

/* What to reteach (Luna), for the teacher only: one card a concept, its Glitch brief to copy */
.reteach-list { display: grid; gap: var(--al-space-4, var(--space-4)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: var(--al-space-4, var(--space-4)); }
.reteach-card .panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.reteach-card .is-due { color: var(--al-warn, #ffb347); font-weight: 600; }
.reteach-brief { white-space: pre-wrap; max-height: 18em; overflow: auto; margin: 6px 0 0; }
.drawer-luna-board { border-top: 1px solid var(--hairline, #2c2c31); padding: 8px 0; }
.drawer-luna-runs { margin: 4px 0 4px 1.2em; }
