/* Light tokens only (house rule). One color per grading value (spec § 7.3); Solo ✓ and Discussed are a plain ✓. */
:root {
  --bg: #f9fafb;
  --surface: #fff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #9ca3af;
  --head: #f9fafb;
  --group: #f3f4f6;
  --sub: #fafafa;
  --unassigned: #f3f4f6;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --amber: #b45309;
  --check: #fef3c7;
  --warn-bg: #fffbeb;
  --warn-line: #f59e0b;
  --error-bg: #fef2f2;
  --error-line: #dc2626;
  --g-proficient: #d1fae5; --g-safe: #e0f2fe; --g-assisted: #fde2c8; --g-demonstrated: #f3e8ff;
  --g-remediate: #fee2e2; --g-progressing: #fef9c3; --g-below: #fee2e2; --g-above: #d1fae5;
  --hold: #b91c1c; --hold-bg: #fef2f2; --topbar: #fff;
  --font: 12px/1.3 -apple-system, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: var(--font); }
/* The page fills the window and only the grid scrolls, so its frozen rows and column stay in view. */
body { height: 100vh; display: flex; flex-direction: column; }
main { padding: 10px 14px; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
main > * { flex: 0 0 auto; }
/* F4: the grid takes the window. It grows into every pixel the one-line boxes above and the docked lesson
   bar below leave, and never drops under half the window (35% while the bar's details are open), so an opened
   differences box (capped at 25%) never pushes the bar off the bottom. */
main > .scroller { flex: 1 1 0; min-height: 50vh; }
main.bar-open > .scroller { min-height: 35vh; }
a { color: var(--accent); }
h1 { font-size: 15px; margin: 0; white-space: nowrap; }
h2 { font-size: 13px; margin: 0 0 6px; }
.note { color: var(--muted); }
.top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; min-width: 0; white-space: nowrap; }
.top .course { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.top .acts { margin-left: auto; display: flex; gap: 6px; flex: 0 0 auto; }
.top .back { text-decoration: none; }
.course { color: var(--muted); }

.msg { margin: 8px 14px 0; padding: 6px 10px; border: 1px solid var(--error-line); background: var(--error-bg); border-radius: 4px; }
.warn { color: var(--amber); }
.warn.box { color: var(--ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 4px; padding: 6px 10px; margin: 0 0 10px; }
.warn.box ul { margin: 4px 0 0; padding-left: 20px; }

/* Student list */
.students { list-style: none; padding: 0; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); max-width: 520px; }
.students li { padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.students li:last-child { border-bottom: 0; }
.add { background: var(--surface); border: 1px solid var(--line); padding: 10px; max-width: 520px; }
.add input { font: inherit; padding: 3px 6px; border: 1px solid #d1d5db; border-radius: 3px; }
/* No double-tap-to-zoom wait on a touch screen: a tap on a control acts at once (Blair, iPad, 2026-12-04). */
button, a.btn, .ch, .gb, select, input[type=checkbox], input[type=radio] { touch-action: manipulation; }
button { font: inherit; padding: 3px 10px; border-radius: 4px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.add button[type=submit] { background: var(--ink); color: var(--surface); }

/* Hours strip (F7): one line. The hours scroll sideways inside the strip when they do not fit; the milestones
   chip stays at the right and opens its list as a popover over the grid, so opening it moves nothing. */
.hours { position: relative; display: flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: 10px; min-width: 0; }
.strip { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 3px; flex: 1 1 auto; min-width: 0; scrollbar-width: thin; }
.chip { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); padding: 0 4px;
  border-radius: 3px; line-height: 15px; }
.chip strong { font-weight: 600; }
button.chip.ms-tog { font: inherit; font-size: 10px; color: var(--ink); cursor: pointer; border-style: dashed; }
.ms-pop { position: absolute; right: 0; top: 100%; z-index: 6; margin: 2px 0 0; padding: 4px 10px 4px 22px; min-width: 220px;
  max-height: 50vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12); font-size: 11px; }
.ms-pop li { margin: 1px 0; color: var(--muted); }
.ms-pop li.done { color: var(--ink); }

/* Grid */
.scroller { overflow: auto; border: 1px solid var(--line); background: var(--surface); }
.tt { border-collapse: separate; border-spacing: 0; }
.tt th, .tt td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2px 6px;
  text-align: center; white-space: nowrap; background: var(--surface); min-width: 34px; font-weight: 400; }
/* Header rows stick one under another: each row carries --r (its index), and every header row is
   exactly --hrow tall, so a cell's top offset is --r × --hrow. (Sticky thead bled body text through
   the frozen block in Chrome, so each cell sticks instead.) */
.tt { --hrow: 18px; }
.tt thead th, .tt thead td { position: sticky; top: calc(var(--r, 0) * var(--hrow)); z-index: 2;
  background: var(--head); height: var(--hrow); line-height: 13px; padding-top: 2px; padding-bottom: 2px; }
.tt thead tr.hl th { font-weight: 600; }
.tt thead tr.hd td, .tt thead tr.hd .nm { font-size: 11px; color: var(--ink-soft); }
.tt thead .fz .nm, .tt thead .fz .lat { padding-top: 1px; padding-bottom: 1px; line-height: 13px; }
.tt thead tr.hd .nm { text-align: right; color: var(--muted); }
.tt thead tr:last-child th, .tt thead tr:last-child td { box-shadow: inset 0 -2px 0 var(--line-strong); }
/* A stage check or the end-of-course check: its title in the header, on its own color. */
.tt thead th.chk { background: var(--check); box-shadow: inset 0 3px 0 var(--amber); }
.tt thead tr:last-child th.chk { box-shadow: inset 0 3px 0 var(--amber), inset 0 -2px 0 var(--line-strong); }
.tt th.inc { background: repeating-linear-gradient(45deg, var(--head), var(--head) 4px, var(--group) 4px, var(--group) 8px); }

/* The frozen block: task name and Latest in one cell so they cannot drift apart. */
.tt .fz { position: sticky; left: 0; z-index: 1; padding: 0; border-right: 3px solid var(--line-strong); text-align: left; }
.tt thead .fz { z-index: 3; }
.fz .in { display: flex; width: 320px; }
.fz .nm { flex: 0 0 266px; text-align: left; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; }
.fz .lat { flex: 0 0 54px; font-weight: 700; padding: 2px 0; text-align: center; border-left: 1px solid var(--line); }
.tt thead tr.hl .lat { font-weight: 600; }

/* Times and landings (F7): body rows under the three sticky header rows, scrolling with the tasks. Collapsed,
   one summary row; opened, the twelve rows beneath it. */
.tt tr.tl td, .tt tr.tm td { background: var(--head); font-size: 11px; color: var(--ink-soft); }
.tt tr.tl td.ed, .tt tr.tm td.ed { background: var(--accent-soft); }
.tt tr.tl .bx { color: var(--ink-soft); font-size: 11px; }
.tt tr.tm .nm { text-align: right; color: var(--muted); }
.tt tr.tl td, .tt tr.tm.end td { box-shadow: inset 0 -1px 0 var(--line-strong); }
.tt tr.grp td { background: var(--group); font-weight: 600; text-transform: uppercase; font-size: 11px; text-align: left; }
.tt tr.grp.orphan td { color: var(--amber); }
.tt tr.sub td { background: var(--sub); font-style: italic; color: var(--muted); text-align: left; }
.tt tr.sub.pf .nm, .tt tr.sub.more .nm { font-style: normal; }
.tt tr.sub.more .bx { font-size: 11px; letter-spacing: -.1px; }
.tt tr.sub.pf .bx.on { font-weight: 700; color: var(--ink); text-decoration: underline; }
.tt .skip { font-size: 10px; font-weight: 600; color: var(--amber); border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; }
.tt tr.ob .nm { padding-left: 26px; color: var(--ink-soft); font-size: 11px; }
.tt tr.comp .nm strong { font-weight: 600; }
.tt td.un { color: var(--faint); background: var(--unassigned); }
.tt td.fo { background: var(--accent-soft); }

.g-proficient { background: var(--g-proficient) !important; } .g-safe { background: var(--g-safe) !important; }
.g-assisted { background: var(--g-assisted) !important; } .g-demonstrated { background: var(--g-demonstrated) !important; }
.g-remediate { background: var(--g-remediate) !important; } .g-progressing { background: var(--g-progressing) !important; }
.g-below { background: var(--g-below); } .g-above { background: var(--g-above); }
.g-deferred { color: var(--amber); font-weight: 700; }
.g-solo, .g-discussed { color: var(--ink); }
.ir { font-size: 9px; color: var(--muted); vertical-align: super; margin-left: 1px; line-height: 0; }
.imp { font-size: 9px; color: var(--muted); font-weight: 400; vertical-align: super; line-height: 0; }
.mk { font-weight: 400; }
.open { color: var(--muted); }
.tog { border: 0; padding: 0 2px; background: none; color: var(--ink-soft); }

/* The editing column: the lesson being graded, wide, immediately right of Latest.
   Assigned rows are blue (#dbeafe); unassigned rows white with faint pickers. */
.tt td.ed, .tt th.ed { border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.tt td.ed { background: var(--accent-soft); }
.tt tbody td.ed { min-width: 168px; text-align: left; padding: 1px 4px; }
.tt td.ed.un { background: var(--surface); }
.tt thead th.ed, .tt thead td.ed { background: var(--accent-soft); text-align: left; }
.tt thead th.ed { font-weight: 600; }
.tt td.ed button { font-size: 11px; line-height: 13px; height: 16px; padding: 0; border-radius: 3px;
  border: 1px solid #cbd5e1; background: var(--surface); color: var(--ink); vertical-align: middle; }
/* Grade buttons: at least 44 px for touch (spec § 8). This lesson's expected level has a filled corner; the stage's
   an outline. The pressed one is the grade recorded. */
.gb { min-width: 44px; min-height: 44px; position: relative; font: inherit; font-size: 11px; padding: 0 3px; margin: 1px 2px 1px 0;
  border: 1px solid #cbd5e1; border-radius: 4px; background: var(--surface); color: var(--ink); vertical-align: middle; }
.tt td.ed .gb { min-width: 44px; min-height: 44px; height: auto; padding: 0 3px; margin: 1px 2px 1px 0; }
.gb.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.gb.exp::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0;
  border-color: transparent var(--accent) transparent transparent; }
.gb.exp-stage { outline: 2px dashed var(--accent); outline-offset: -4px; }
.tt td.ed .nb { min-width: 30px; min-height: 30px; height: auto; color: var(--muted); margin-left: 2px; }
.tt td.ed .nb.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.tt td.ed .nb.unsaved { color: var(--amber); border-color: var(--amber); border-style: dashed; }
.nb.unsaved .dirty { color: var(--amber); font-weight: 700; margin-left: 1px; }
.tt td.ed .tg { padding: 0 6px; margin-right: 2px; border-radius: 8px; font-size: 10px; color: var(--muted); }
.tt td.ed.un .gb:not(.on) { border-color: var(--line); color: var(--faint); }
.tt td.ed .tg.on { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.tt td.ed .best { color: var(--faint); font-size: 10px; margin-left: 4px; }
.tt td.ed .slot { display: inline-block; width: 9px; font-size: 9px; color: var(--muted); vertical-align: middle; }
.tt th a { color: inherit; text-decoration: none; }
.tt th a:hover { text-decoration: underline; color: var(--accent); }

/* Lesson bar, docked below the grid. Collapsed it is one line: what is open and what to do next. Open, its
   details scroll inside it, so the grid keeps its rows. */
.lbar { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  margin-top: 4px; padding: 3px 10px; }
.lbar.open { max-height: 30vh; overflow-x: hidden; overflow-y: auto; padding-bottom: 8px; min-width: 0; }
.lb-head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.lbar:not(.open) .lb-head { align-items: flex-start; }
.lbar.open .lb-head { position: sticky; top: -3px; background: var(--surface); z-index: 1; padding: 2px 0; margin-bottom: 4px; }
.lb-what { flex: 1 1 auto; min-width: 0; }
.lb-head .next { font-weight: 600; color: var(--ink); }
.lb-head .nb { color: var(--amber); margin-left: 6px; display: inline-block; }
.lb-head > .bx, .lb-head > .pri { flex: 0 0 auto; white-space: nowrap; }
.lb-links { margin-bottom: 6px; }
.lb-links .fcl { overflow-wrap: anywhere; }
.lb-links select { font: inherit; }
.bx { border: 0; background: none; padding: 0 2px; color: var(--accent); cursor: pointer; font: inherit; }
fieldset.lb-body { border: 0; margin: 0; padding: 0; min-width: 0; }   /* a read-only lesson's details */
.lb-body { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-start; }
.lb-body > .lb-col { flex: 1 1 240px; min-width: 0; }
.lb-body > .lb-col:first-child { flex: 0 1 auto; max-width: 100%; }
.lb-body > .lb-col:last-child { flex: 1.4 1 280px; max-height: 18vh; overflow-y: auto; }
.lb-lab { color: var(--muted); font-size: 10px; text-transform: uppercase; display: block; margin: 0 0 2px; }
.lb-links .lb-lab { display: inline; }
.muted { color: var(--muted); }
.counts { border-collapse: collapse; }
.counts th { font-weight: 400; color: var(--muted); font-size: 10px; padding: 0 2px; text-align: center; }
.counts th.rl { text-align: right; padding-right: 6px; white-space: nowrap; }
.counts td { padding: 1px 2px; text-align: center; }
.counts .sep { border-left: 1px solid var(--line); padding-left: 6px; }
.counts tr.ro td { color: var(--muted); text-align: right; padding-right: 7px; }
.counts input.f { width: 40px; font: inherit; text-align: right; padding: 1px 4px; border: 1px solid #d1d5db; border-radius: 3px; }
.share-err, .blockers { margin: 4px 0 0; padding-left: 16px; color: var(--amber); }
.chs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.ch { min-height: 44px; padding: 0 10px; border-color: #cbd5e1; }
.ch.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.internal-note { color: var(--muted); font-size: 10.5px; margin: 2px 0 6px; }
.std.ok { color: #047857; font-weight: 600; margin: 4px 0; } .std.no { color: var(--amber); font-weight: 600; margin: 4px 0 0; }
.reasons { margin: 0 0 6px; padding-left: 16px; color: var(--amber); font-size: 11px; }
.sign button.pri { min-height: 44px; padding: 0 16px; }
.signed p { margin: 2px 0; }
.signed input { font: inherit; padding: 2px 4px; text-transform: none; }
.route { margin: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.route .apt { font: inherit; width: 64px; padding: 2px 4px; text-transform: uppercase; border: 1px solid #d1d5db; border-radius: 3px; }
.xc { margin: 2px 0 6px; } .xc .ok { color: #047857; font-weight: 600; }
.ci-times, .ci-link { margin: 2px 0 6px; }
.note-ed { border: 1px solid var(--accent); background: var(--accent-soft); padding: 6px 8px; margin: 4px 0; }
.note-ed textarea { background: var(--surface); }
.hist { margin: 2px 0 6px; padding-left: 16px; font-size: 11px; } .hist .who { color: var(--muted); }
.history summary { cursor: pointer; color: var(--muted); }
/* Finish and sign: the dialog sits in the lesson bar, over nothing, so the lesson stays in view behind it. */
.dialog { border: 2px solid var(--ink); background: var(--surface); border-radius: 6px; padding: 10px 12px; margin: 6px 0; }
.dialog .summary { margin: 4px 0; padding-left: 16px; }
.dialog .certify { font-weight: 600; margin: 8px 0; }
.dialog .acts button { min-height: 44px; padding: 0 18px; }
.dialog .keep { display: block; margin: 6px 0; }
.dialog .unsaved-notes { border-left: 3px solid var(--amber); padding: 2px 0 4px 8px; margin: 8px 0; }
.dialog .unsaved-notes ul { margin: 4px 0; padding-left: 16px; }
.dialog .unsaved-note { margin: 4px 0; }
.dialog .unsaved-note .acts { display: block; margin-top: 2px; }
.dialog .unsaved-notes button { min-height: 44px; padding: 0 14px; }
.lbar textarea { width: 100%; font: inherit; padding: 3px 5px; border: 1px solid #d1d5db; border-radius: 3px; resize: vertical; }
.standards, .objectives { margin: 0 0 6px; padding-left: 16px; color: var(--ink-soft); font-size: 11px; }
.outcomes .oc { margin-bottom: 4px; }
.outcomes .oc .blockers { margin-top: 2px; font-size: 11px; }
button.pri { background: var(--ink); color: var(--surface); }
button:disabled { opacity: .4; cursor: not-allowed; }
.recorded { color: var(--ink-soft); font-size: 11px; }
.err { color: var(--error-line); margin-top: 4px; }
.lb-head .err { margin-left: 8px; }

/* New lesson form */
.nl { background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; margin: 0 0 10px; }
.nl select, .nl input { font: inherit; padding: 2px 4px; }

/* A message beside a grid control that the server refused. */
.pop { position: fixed; z-index: 10; max-width: 360px; padding: 4px 8px; background: var(--error-bg);
  border: 1px solid var(--error-line); border-radius: 4px; color: var(--ink); font: var(--font); }
body[data-busy] { cursor: progress; }

/* Flight Circle differences and record notices: one line each until opened; opened, a capped box that scrolls. */
.checks, .notices { margin: 0 0 4px; padding: 1px 8px; border: 1px solid #d9b44a; background: #fff8e1; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notices { border-color: var(--line-strong); background: var(--group); }
.checks .bx, .notices .bx { color: var(--ink); font-weight: 600; }
.checks-box, .notices-box { max-height: 25vh; overflow: auto; white-space: normal; padding: 2px 0 4px; }
.checks-box h3 { font-size: 11px; margin: 6px 0 1px; color: var(--ink-soft); }
.checks-box ul, .notices-box ul { margin: 0; padding-left: 18px; }

/* Import past lessons panel. It scrolls on its own so the grid below keeps its room. */
.imports { background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; margin: 0 0 10px;
  max-height: 42vh; overflow: auto; }
.imports h2 { font-size: 13px; margin: 0 0 2px; }
.imports > .note { margin: 0 0 6px; color: var(--ink-soft); }
.imports .props { list-style: none; margin: 0; padding: 0; }
.imports .prop { border-top: 1px solid var(--line); padding: 6px 0; }
.imports .prop.recent { border: 1px solid var(--accent); background: var(--accent-soft); padding: 6px 8px; margin-bottom: 6px; }
.imports .ph { margin-bottom: 4px; }
.imports .pf { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.imports select, .imports input { font: inherit; padding: 2px 4px; }
.imports .pt { color: var(--ink-soft); }
.imports .pn { margin: 4px 0; white-space: pre-wrap; }
.imports .imp-un { margin: 4px 0; }
.imports .imp-un ul { margin: 2px 0 0; padding-left: 18px; }
.imports .imp-un li { margin: 2px 0; }
.imports .ia { color: var(--muted); font-size: 11px; }
.imports .ig { background: var(--group); border-radius: 3px; padding: 0 4px; }
.imports .imp-un select { max-width: 340px; }
.imports .pa { margin-top: 4px; }
/* An observable behavior's toggle carried from an earlier lesson: on, but not this lesson's own entry. */
.tt td.ed .tg.on.inh { background: var(--accent-soft); color: var(--accent); }
.tt th.ed .done { color: var(--ink-soft); font-size: 11px; line-height: 1; padding: 0 3px; }
.lb-head > button[data-act="done"] { flex: 0 0 auto; white-space: nowrap; }
/* F12: Print briefing (a link that looks like a button) and the flight date. */
a.btn { font: inherit; padding: 3px 10px; border-radius: 4px; border: 1px solid var(--ink); background: var(--surface);
  color: var(--ink); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
a.btn:hover { background: var(--ink); color: var(--surface); }
.lb-links .lb-date { display: block; margin: 3px 0; }
.lb-date input { font: inherit; font-size: 12px; text-transform: none; color: var(--ink); }

/* Grade legend (spec § 7.3): one line above the grid; hover a key for what the value means. */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 4px; font-size: 10.5px; }
.legend .key { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; cursor: help; white-space: nowrap; }
.legend .mk-exp, .legend .mk-stage { color: var(--accent); }
.legend .chk-flag { margin-left: 4px; }
/* Next-check chips: red below the recommend bar, amber below the pass bar. */
.chk-flag { display: inline-block; font-size: 10px; line-height: 1.2; border: 1px solid; border-radius: 3px; padding: 0 3px;
  white-space: nowrap; vertical-align: baseline; }
.chk-flag.red { border-color: var(--error-line); background: var(--error-bg); color: #b91c1c; }
.chk-flag.amber { border-color: var(--warn-line); background: var(--warn-bg); color: var(--amber); }
.check-sum { display: inline-block; margin: 0 0 6px; padding: 2px 8px; font-size: 11px; background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: 3px; }
.nm.has-flag { display: flex; align-items: baseline; }
.nm.has-flag .lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm .chk-flag { flex: 0 0 auto; margin-left: 5px; }

/* Every page: the white top bar (school, page, person, Sign out; mockup C). */
.topbar { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 6px 14px; background: var(--topbar);
  border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar .school { font-weight: 700; }
.topbar .page { color: var(--ink-soft); }
.topbar .person { margin-left: auto; color: var(--ink-soft); }
.topbar form { margin: 0; }
.topbar button { min-height: 32px; }
/* The folder: the red On hold banner, open items and the draft-levels notice, above the grid. */
.hold-banner { margin: 0 0 6px; padding: 6px 10px; background: var(--hold-bg); border: 2px solid var(--hold); color: var(--hold);
  border-radius: 4px; }
.hold-banner .who { color: var(--ink-soft); font-size: 11px; }
/* The chief's marks (plan 3): the close-out banner, prior-training credit, and a declined deviation's column. */
.closeout { margin: 0 0 6px; padding: 6px 10px; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 4px; }
.closeout .note { color: var(--ink-soft); }
.closeout .who { color: var(--ink-soft); font-size: 11px; }
.credits { margin: 2px 0 4px; padding-left: 18px; color: var(--ink-soft); }
.tt th.dev-declined { box-shadow: inset 0 -3px 0 var(--hold); }
.lb-marks { margin: 2px 0 4px; padding-left: 18px; color: var(--ink-soft); }
.lb-marks .dev-declined strong { color: var(--hold); }
.hold-banner .release-hold { color: var(--ink); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.hold-banner textarea, .hold-banner select { font: inherit; }
.hold-banner .release-hold button { min-height: 44px; }
.open-items { margin: 0 0 6px; padding: 4px 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 4px;
  max-height: 18vh; overflow: auto; }
.open-items h2 { font-size: 12px; margin: 0 0 2px; }
.open-items ul { margin: 0; padding-left: 18px; }
.open-items .who { color: var(--muted); font-size: 11px; }
.levels-notice { display: inline-block; margin: 0 0 4px; padding: 1px 8px; border: 1px dashed var(--line-strong); border-radius: 3px;
  color: var(--ink-soft); font-size: 11px; }
.top .nextl { color: var(--ink-soft); }
.nl .reason textarea { width: 100%; font: inherit; }
.nl-next { margin-right: 6px; }
/* My students. */
.mystudents { max-width: 760px; }
.mystudents h2 { margin: 18px 0 6px; }
.mystudents table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); margin: 0 0 16px; }
.mystudents th, .mystudents td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mystudents th { color: var(--muted); font-weight: 400; font-size: 11px; text-transform: uppercase; }
.badge { display: inline-block; font-size: 11px; border-radius: 10px; padding: 1px 8px; margin-left: 4px; }
.badge.hold { background: var(--hold-bg); color: var(--hold); border: 1px solid var(--hold); font-weight: 700; }
.badge.items { background: var(--warn-bg); color: var(--amber); border: 1px solid var(--warn-line); }
.search { margin: 0 0 8px; } .search input { font: inherit; padding: 6px 8px; min-width: 260px; }
/* Landing. */
.landing { max-width: 420px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 6px; }
.landing button { min-height: 44px; padding: 0 16px; margin-top: 10px; }
.landing label { display: block; margin: 10px 0; }
.signin-message { color: var(--error-line); }
.landing input[type=password] { display: block; font: inherit; padding: 6px 8px; }
.landing .actions { display: flex; align-items: center; gap: 14px; }
.msg.ok { border-color: #16a34a; background: #f0fdf4; }
.topbar .nav { display: flex; gap: 14px; }
.topbar .nav a { color: var(--ink-soft); text-decoration: none; }
.topbar .nav a[aria-current=page] { color: var(--ink); font-weight: 600; }
.topbar .nav .badge.count { background: var(--hold); color: #fff; font-weight: 700; }
.topbar .nav .badge.count.flights { background: var(--warn-bg); color: var(--amber); border: 1px solid var(--warn-line); }
.flights-todo td form { display: inline-flex; gap: 6px; margin: 0; }

/* Registered shared devices (spec 5.2): name buttons and the PIN pad, sized for a finger. */
.names { list-style: none; padding: 0; margin: 10px 0 0; }
.names li { margin: 8px 0; }
.name-button { display: block; min-height: 44px; line-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.pin-pad input[name=pin] { display: block; width: 100%; font-size: 24px; letter-spacing: 0.3em; text-align: center; margin: 8px 0; box-sizing: border-box; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; justify-content: center; }
.landing .pin-keys button { width: 64px; height: 64px; min-height: 64px; margin: 0; padding: 0; font-size: 22px; }
.landing .pin-keys button.pri { font-size: 14px; }
.devices td, .devices th { padding: 4px 8px; text-align: left; }
.register { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 12px 0 20px; }
.register label { display: flex; flex-direction: column; gap: 4px; }
.register input, .register select { font: inherit; padding: 6px 8px; min-width: 200px; }
.register button { min-height: 34px; padding: 0 14px; }
.idle-warning { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--error-line); background: var(--error-bg); }
.idle-warning[hidden] { display: none; }

/* Feedback button and box: bottom right, clear of the page's own controls and of the idle banner (top). */
.feedback-button { position: fixed; right: 16px; bottom: 16px; z-index: 50; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 22px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
/* The lesson bar is docked at the bottom of the window, under the Feedback button's corner: it keeps the button's
   width (85 px at right: 16 px) clear on its right, open or collapsed, so the button never covers Details, Done or
   any other control in it (Blair, iPad, 2026-12-04). */
body:has(.feedback-button) .lbar { padding-right: 104px; }
.feedback-aiming, .feedback-aiming * { cursor: crosshair !important; }
.feedback-box { position: fixed; z-index: 60; width: 280px; padding: 10px; background: #fff; border: 1px solid #888;
  border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.feedback-box textarea { width: 100%; box-sizing: border-box; }
.feedback-msg { margin: 4px 0; min-height: 1.2em; }
@media print { .feedback-ui { display: none; } }
