/* Responder Path: design foundation (2026-11-12, from the student portal mockup).
   Warm paper background, white panels with thin rules, near-black ink, one burnt-orange accent for actions and
   "your next step", green/amber/red only for meaning. IBM Plex Sans for text, IBM Plex Mono for codes, IDs and
   numbers (self-hosted, OFL). Flat: no shadows, small radii. */
@font-face { font-family:"Plex"; src:url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Plex"; src:url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"Plex"; src:url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"Plex"; src:url("/fonts/IBMPlexSans-Bold.woff2") format("woff2"); font-weight:700 800; font-display:swap; }
@font-face { font-family:"Plex Mono"; src:url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Plex Mono"; src:url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight:500 700; font-display:swap; }
:root {
  --bg:#f7f6f2; --surface:#fff; --surface-2:#f2f0ea; --surface-3:#e9e6de;
  --line:#e4e0d7; --line-2:#d3cec3;
  --ink:#1a1d21; --ink-2:#3d424a; --muted:#5f646c;
  /* One accent: burnt orange for actions and "your next step". */
  --primary:#b3400a; --primary-hover:#8f3308; --primary-soft:#fbede4;
  --next:#b3400a; --next-hover:#8f3308; --next-ink:#fff; --next-soft:#fbede4;
  --brand:#b3400a;
  --danger:#a8261b; --danger-soft:#fbeceb;
  --ok:#2f6b3a; --ok-soft:#e7f1e8;
  --warn:#7a5200; --warn-soft:#fff4cc;
  --nav:#ffffff; --nav-ink:#3d424a; --nav-hover:#f2f0ea; --nav-active:#fbede4;
  --accent:var(--primary); --accent-ink:#fff; --card:var(--surface);
  --radius:6px; --radius-sm:4px;
  --shadow:none;
  --focus:0 0 0 3px rgb(179 64 10 / .25);
  --mono:"Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:15px/1.55 "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; }
h1 { font-size:26px; line-height:1.25; font-weight:700; letter-spacing:-.015em; margin:4px 0 6px; }
h2 { font-size:17px; font-weight:650; letter-spacing:-.005em; margin:28px 0 10px; }
h3 { font-size:15px; font-weight:650; }
a { color:var(--primary); text-underline-offset:2px; }
code { font-size:12.5px; background:var(--surface-2); padding:1px 5px; border-radius:4px; word-break:break-all; }
.muted { color:var(--muted); } .small { font-size:13px; }
.eyebrow { text-transform:uppercase; letter-spacing:.07em; font-size:11.5px; font-weight:600; color:var(--muted); margin:10px 0 0; }
.footnote { margin-top:32px; }
:focus-visible { outline:none; box-shadow:var(--focus); border-radius:6px; }

/* ---------- app frame ---------- */
.banner { background:#fff6dc; color:#5c4300; text-align:center; font-size:13px; padding:5px 16px; border-bottom:1px solid #f0dca0; }
.shell { display:grid; grid-template-columns:252px minmax(0, 1fr); min-height:100vh; }
.shell.bare { grid-template-columns:minmax(0, 1fr); }
.side { background:var(--nav); color:var(--nav-ink); position:sticky; top:0; height:100vh; overflow-y:auto; padding:16px 12px 14px; display:flex; flex-direction:column; gap:2px; }
.side .mark { color:#fff; padding:4px 10px 14px; }
.side .school { margin:4px 0 12px; padding:10px; border-radius:var(--radius-sm); background:var(--nav-hover); color:#fff; font-size:13.5px; font-weight:600; line-height:1.3; }
.side .school small { display:block; color:var(--nav-ink); font-weight:500; font-size:12px; margin-top:2px; }
.side .school select { width:100%; margin-top:6px; background:var(--nav); color:#fff; border:1px solid #33455f; font-size:13px; }
.side .sect { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:#7d8ba0; margin:14px 10px 4px; font-weight:600; }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border:0; border-radius:var(--radius-sm); background:none; color:var(--nav-ink);
  font:inherit; font-size:14px; font-weight:500; text-align:left; cursor:pointer; text-decoration:none; }
.nav-item:hover { background:var(--nav-hover); color:#fff; }
.nav-item.on { background:var(--nav-active); color:#fff; }
.nav-item .ic { flex:none; opacity:.9; }
.nav-item span.lbl { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.side .grow { flex:1; }
.side .me { border-top:1px solid #22324a; margin-top:10px; padding:12px 10px 2px; font-size:13px; }
.side .me b { display:block; color:#fff; font-weight:600; }
.side .me button { margin-top:6px; color:var(--nav-ink); }
.top { display:flex; align-items:center; gap:12px; min-height:58px; padding:0 28px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.top .crumb { font-size:13.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.top .who { margin-left:auto; color:var(--muted); font-size:13.5px; display:flex; gap:12px; align-items:center; }
.menu-btn { display:none; }
main { max-width:1120px; padding:26px 28px 72px; }
.shell.bare main { margin:0 auto; }
.mark { display:inline-flex; align-items:center; gap:9px; font-size:17px; letter-spacing:-.01em; color:var(--ink); font-weight:450; white-space:nowrap; }
.mark b { font-weight:750; }
.mark svg { flex:none; }
@media (max-width:900px) {
  .shell { grid-template-columns:minmax(0, 1fr); }
  .side { position:fixed; inset:0 auto 0 0; width:270px; z-index:20; transform:translateX(-100%); transition:transform .18s ease; box-shadow:0 0 0 100vmax transparent; }
  .side.open { transform:none; }
  .scrim { position:fixed; inset:0; z-index:15; background:rgb(14 26 43 / .45); }
  .menu-btn { display:inline-flex; }
  .top { padding:0 14px; }
  main { padding:20px 16px 64px; }
}

/* ---------- controls ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; font:inherit; font-size:14px; font-weight:550; min-height:38px; padding:0 15px;
  border-radius:var(--radius-sm); border:1px solid var(--line-2); background:var(--surface); color:var(--ink); cursor:pointer; text-decoration:none; white-space:nowrap; }
.btn:hover:not(:disabled) { background:var(--surface-2); }
.btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; }
.btn.primary:hover:not(:disabled) { background:var(--primary-hover); }
.btn.next { background:var(--next); border-color:var(--next); color:var(--next-ink); font-weight:650; }
.btn.next:hover:not(:disabled) { background:var(--next-hover); border-color:var(--next-hover); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; }
button.link { background:none; border:0; color:var(--primary); cursor:pointer; font:inherit; font-weight:500; padding:0; }
button.link:hover:not(:disabled) { text-decoration:underline; text-underline-offset:2px; }
button.link:disabled { color:var(--muted); cursor:not-allowed; }
#back, button.link.back { font-size:13.5px; color:var(--muted); font-weight:500; }
#back:hover { color:var(--ink); }
input, select, textarea { font:inherit; color:var(--ink); }
select { padding:6px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.spread { justify-content:space-between; }
.grow { flex:1; }
.stack { display:flex; flex-direction:column; gap:12px; }
.stack label, .cols label { display:flex; flex-direction:column; gap:5px; font-size:13.5px; font-weight:550; color:var(--ink-2); }
.stack input:not([type=checkbox]):not([type=radio]):not([type=file]), .cols input:not([type=checkbox]):not([type=radio]):not([type=file]), .cols select, .bp select, .bp input:not([type=checkbox]):not([type=radio]), .stack select, .stack textarea, textarea {
  font:inherit; font-weight:400; color:var(--ink); padding:8px 11px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
textarea { width:100%; font-size:15px; line-height:1.5; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--primary); box-shadow:var(--focus); }
.bp input { width:80px; }
label.check { flex-direction:row !important; align-items:flex-start; gap:9px; color:var(--ink); font-weight:450 !important; }
label.check input { margin-top:4px; accent-color:var(--primary); }
.cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.panel, .card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; }
.panel + .panel, form.panel { margin-top:14px; }
.panel > h2:first-child { margin-top:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px; }
button.card { text-align:left; font:inherit; color:inherit; cursor:pointer; transition:border-color .12s, box-shadow .12s; }
button.card:hover { border-color:var(--line-2); box-shadow:0 2px 10px rgb(14 26 43 / .08); }
.name { font-weight:650; } .title { color:var(--muted); font-size:13.5px; }
.chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:600; padding:2px 9px; border-radius:99px; background:var(--surface-2); color:var(--ink-2); margin:4px 4px 0 0; line-height:1.5; }
.chip.ok { background:var(--ok-soft); color:var(--ok); } .chip.warn { background:var(--warn-soft); color:var(--warn); }
.badge { display:inline-block; min-width:20px; padding:0 6px; border-radius:99px; background:var(--next); color:var(--next-ink); font-size:11.5px; font-weight:700; text-align:center; line-height:20px; }
table { width:100%; border-collapse:separate; border-spacing:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; font-size:14px; box-shadow:var(--shadow); }
th, td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
tbody tr:last-child td { border-bottom:0; }
th { background:var(--surface-2); font-weight:600; font-size:12.5px; color:var(--ink-2); }
.state { font-size:12px; font-weight:650; } .state.approved { color:var(--ok); }
.error { color:var(--danger); min-height:1em; margin:0; font-size:14px; }
.ok { color:var(--ok); } .bad { color:var(--danger); font-weight:600; }
.notice { background:var(--warn-soft); border:1px solid #f1d9a6; padding:11px 14px; border-radius:var(--radius-sm); color:#4d3a12; }
.switch { float:right; }
@media (max-width:600px) { th:nth-child(3), td:nth-child(3) { display:none; } }

/* ---------- page parts ---------- */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:6px; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:14px 0 18px; overflow-x:auto; }
.tabs button { background:none; border:0; border-bottom:2px solid transparent; padding:10px 12px; font:inherit; font-size:14px; font-weight:550; color:var(--muted); cursor:pointer; white-space:nowrap; }
.tabs button.on { color:var(--ink); border-bottom-color:var(--primary); }
.tabs button:hover { color:var(--ink); }
.stat { display:flex; flex-direction:column; gap:2px; }
.stat b { font-size:24px; font-weight:700; letter-spacing:-.01em; }
.stat span { font-size:13px; color:var(--muted); }
.todo { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.todo:last-child { border-bottom:0; }
.todo .ic-wrap { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--primary-soft); color:var(--primary); flex:none; }
.todo .ic-wrap.warn { background:var(--warn-soft); color:var(--warn); } .todo .ic-wrap.next { background:var(--next-soft); color:#9a5b00; } .todo .ic-wrap.ok { background:var(--ok-soft); color:var(--ok); }
.todo .t { flex:1; min-width:0; } .todo .t b { display:block; font-weight:600; } .todo .t span { font-size:13px; color:var(--muted); }
.progress { height:6px; background:var(--surface-3); border-radius:99px; overflow:hidden; } .progress span { display:block; height:100%; background:var(--next); border-radius:99px; }
.course-card { display:flex; flex-direction:column; gap:10px; }
.course-card .code { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.03em; }
.course-card h3 { margin:0; font-size:16px; }
.dash { display:grid; grid-template-columns:minmax(0, 2fr) minmax(260px, 1fr); gap:18px; align-items:start; }
@media (max-width:900px) { .dash { grid-template-columns:minmax(0, 1fr); } }
.empty { text-align:center; padding:28px 16px; color:var(--muted); }

/* ---------- sign-in (persona picker) ---------- */
.landing { max-width:980px; margin:0 auto; }
.landing h1 { font-size:30px; }
.persona .name { font-size:15px; }

/* ---------- orientation & receipt ---------- */
.orient { max-width:680px; margin:0 auto; }
.facts { padding-left:20px; line-height:1.8; }
.receipt { display:flex; gap:32px; margin:20px 0; padding:18px 20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.receipt div { display:flex; flex-direction:column; }
.receipt b { font-size:20px; letter-spacing:.03em; }
.score { font-size:28px; font-weight:700; }
.timeline tr.integrity td { background:#fff7ec; }
.timeline.only-integrity tr.routine { display:none; }

/* ---------- certification-style test screen ---------- */
body.exam-mode .top, body.exam-mode .banner, body.exam-mode .side { display:none; }
body.exam-mode .shell { grid-template-columns:minmax(0, 1fr); }
body.exam-mode main { max-width:none; padding:0; }
body.exam-mode { background:#fff; user-select:none; -webkit-user-select:none; }
body.exam-mode textarea, body.exam-mode input { user-select:text; -webkit-user-select:text; }
.exam { min-height:100vh; display:flex; flex-direction:column; position:relative; }
.exam-bar { display:flex; align-items:center; gap:20px; padding:10px 24px; background:#1f2d3a; color:#fff; font-size:15px; position:sticky; top:0; z-index:3; }
.exam-title { font-weight:600; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exam-pos { color:#cfd9e2; }
.exam-save { font-size:13px; color:#cfd9e2; min-width:120px; text-align:right; }
.exam-save.ok { color:#9ee2b3; } .exam-save.pending { color:#ffe08a; } .exam-save.bad { color:#ffb4ae; font-weight:600; }
.exam-timer { font-variant-numeric:tabular-nums; font-weight:700; font-size:18px; background:#2c3e50; padding:3px 10px; border-radius:4px; min-width:76px; text-align:center; }
.exam-timer.low { background:#b4231f; }
.exam-body { flex:1; display:flex; justify-content:center; padding:40px 20px; position:relative; z-index:1; }
.exam-item { width:100%; max-width:760px; }
.stem { font-size:20px; line-height:1.55; margin:0 0 24px; }
.hint { color:var(--muted); margin:-12px 0 16px; }
.opts { display:flex; flex-direction:column; gap:10px; }
.opt { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border:1px solid var(--line); border-radius:8px; cursor:pointer; background:#fff; font-size:17px; }
.opt:hover { border-color:var(--line-2); }
.opt:has(input:checked) { border-color:#1f2d3a; background:#eef3f8; box-shadow:inset 3px 0 0 #1f2d3a; }
.opt input { margin-top:5px; }
.opt-label { font-weight:700; width:18px; }
.num input { font-size:20px; width:180px; padding:8px 10px; }
textarea { width:100%; font:inherit; font-size:16px; padding:12px; border:1px solid var(--line); border-radius:8px; }
.qnav { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; padding:10px 20px 16px; position:relative; z-index:3; }
.qnav button { width:38px; height:38px; border-radius:6px; border:1px solid var(--line); background:#fff; font:inherit; font-size:14px; cursor:pointer; }
.qnav button.done { background:#e8eef5; border-color:var(--line-2); }
.qnav button.on { border:2px solid #1f2d3a; font-weight:700; }
.exam-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 24px; border-top:1px solid var(--line); background:#fafbfc; position:sticky; bottom:0; z-index:3; }
.exam-foot .btn { min-width:130px; font-size:16px; padding:10px 18px; }
.confirm { margin-top:24px; padding:16px; border:2px solid #1f2d3a; border-radius:8px; background:#fff; }
.watermark { position:fixed; inset:0; pointer-events:none; z-index:2; display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:120px; overflow:hidden; opacity:.07; }
.watermark span { transform:rotate(-24deg); white-space:nowrap; font-size:18px; font-weight:600; align-self:center; justify-self:center; color:#000; }
.flash { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); background:#1f2d3a; color:#fff; padding:10px 16px; border-radius:6px; z-index:5; font-size:14px; }
@media (max-width:600px) {
  .exam-bar { gap:10px; padding:8px 12px; font-size:13px; flex-wrap:wrap; }
  .exam-title { flex-basis:100%; }
  .exam-save { min-width:0; }
  .stem { font-size:18px; }
  .exam-foot .muted { display:none; }
  .watermark { grid-template-columns:repeat(2, 1fr); }
}

/* ---------- question bank ---------- */
.filters { margin:16px 0 10px; } .filters label { display:flex; gap:8px; align-items:center; font-size:14px; }
.filters .grow { flex:1; min-width:200px; } .filters input { flex:1; font:inherit; padding:5px 10px; border:1px solid var(--line); border-radius:6px; }
a.btn { text-decoration:none; }
table.clickable tbody tr[data-q] { cursor:pointer; }
table.clickable tbody tr[data-q]:hover td, table.clickable tbody tr[data-q]:focus td { background:#f3f6f9; }
td.clip { max-width:420px; }
.steps { display:flex; gap:8px; list-style:none; padding:0; margin:8px 0 18px; counter-reset:step; flex-wrap:wrap; }
.steps li { counter-increment:step; font-size:13px; color:var(--muted); padding:4px 12px 4px 8px; border-radius:99px; background:var(--surface-2); }
.steps li::before { content:counter(step); display:inline-block; width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%; background:#fff; margin-right:6px; font-size:11px; }
.steps li.on { background:var(--ink); color:#fff; } .steps li.on::before { color:var(--ink); }
.tiles { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0; }
.tile { display:flex; flex-direction:column; min-width:110px; padding:10px 14px; background:var(--card); border:1px solid var(--line); border-radius:8px; font:inherit; color:inherit; text-align:left; }
button.tile { cursor:pointer; } button.tile.on { border-color:var(--ink); box-shadow:inset 0 -3px 0 var(--ink); }
.tile b { font-size:22px; } .tile span { font-size:13px; color:var(--muted); }
.pre { white-space:pre-wrap; }
.rs { font-size:12px; font-weight:600; padding:1px 8px; border-radius:99px; white-space:nowrap; }
.rs.new { background:#e6f4ea; color:var(--ok); } .rs.changed { background:#e5eefa; color:#2b5b8a; }
.rs.unchanged { background:var(--surface-2); color:var(--muted); } .rs.error { background:var(--danger-soft); color:var(--danger); }
.preview tr.st-error td { background:#fff8f7; }
.opts-mini { margin:6px 0 0; padding-left:0; list-style:none; font-size:13px; color:var(--muted); }
.opts-mini li.key, .opts-view li.key { color:var(--ok); font-weight:600; }
.errs { margin:0; padding-left:18px; color:var(--danger); font-size:13px; }
fieldset { border:0; padding:0; margin:0; } legend { font-weight:600; font-size:14px; margin-bottom:4px; }
.stem-view { font-size:18px; margin:6px 0 14px; }
.opts-view { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.opts-view li { display:flex; gap:10px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; font-weight:400; color:var(--ink); }
.opts-view li.key { border-color:var(--ok); background:#f2faf4; }
.opts-view li.key > div { color:var(--ink); font-weight:400; }
table.kv th { width:180px; background:var(--surface-2); }
@media (max-width:600px) { .preview th:nth-child(5), .preview td:nth-child(5) { display:none; } }

/* ---------- grading ---------- */
.spread { justify-content:space-between; }
.answer { background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:10px 12px; }
.grade-form textarea { font-size:15px; }
.grade-form .cols input { width:140px; }
table + .panel, table + form.panel { margin-top:16px; }
#act .cols input { max-width:160px; } .panel > h2:first-child { margin-top:0; }

/* ---------- review policy & student review ---------- */
.policy { margin:14px 0 6px; } .policy label { display:flex; gap:8px; align-items:center; font-size:14px; }
.policy input { flex:1; min-width:180px; font:inherit; padding:6px 10px; border:1px solid var(--line); border-radius:6px; }
.review { list-style:none; padding:0; display:flex; flex-direction:column; gap:12px; text-align:left; }
.rv-opts { list-style:none; padding:0; display:flex; flex-direction:column; gap:6px; }
.rv-opts li { display:flex; gap:10px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; }
.rv-opts li.key { border-color:var(--ok); background:#f2faf4; }
.rv-opts li.mine:not(.key) { border-color:#e2a29f; background:#fff6f5; }

/* ---------- analytics ---------- */
.hist-fig { margin:0; }
.hist { display:flex; align-items:flex-end; gap:2px; height:180px; padding:0 2px; border-bottom:1px solid var(--line-2); background:var(--card); }
.hbin { flex:1; height:100%; display:flex; align-items:flex-end; position:relative; outline:none; }
.hbar { width:100%; background:var(--primary); border-radius:4px 4px 0 0; min-height:0; }
.hbar.zero { height:0; }
.hbin:hover .hbar, .hbin:focus .hbar { background:#1f2d3a; }
.htip { display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); white-space:nowrap; background:#1f2d3a; color:#fff; font-size:12px; padding:4px 8px; border-radius:4px; z-index:2; }
.hbin:hover .htip, .hbin:focus .htip { display:block; }
.hbin { align-items:flex-end; }
.hist-axis { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); padding:2px 0 6px; }
.hist-fig figcaption { margin-top:4px; }
.items tr.flagged > td { background:#fffaf2; }
.items .clip { max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
button.chip.flag { border:0; cursor:pointer; font:inherit; font-size:12px; text-align:left; }
.dist td { background:var(--surface-2); }
.dist-table { border:0; background:transparent; }
.dist-table td { border:0; padding:4px 8px; }
.dist-table .dl { width:24px; font-weight:700; } .dist-table .db { width:30%; } .dist-table .dn { width:110px; white-space:nowrap; color:var(--muted); }
.bar { display:block; height:10px; background:var(--primary); border-radius:0 4px 4px 0; min-width:2px; }
@media (max-width:700px) { .items th:nth-child(5), .items td:nth-child(5), .items th:nth-child(6), .items td:nth-child(6) { display:none; } .items .clip { max-width:180px; } }
@media (max-width:600px) { .items th:nth-child(3), .items td:nth-child(3) { display:table-cell; } }
.bar.zero { min-width:0; }

/* ---------- gradebook ---------- */
.grow { flex:1; }
.scroll-x { overflow-x:auto; margin-top:14px; border:1px solid var(--line); border-radius:8px; }
.scroll-x table { border:0; border-radius:0; }
table.gb th, table.gb td { white-space:nowrap; text-align:center; }
table.gb th.sticky, table.gb td.sticky { position:sticky; left:0; z-index:1; text-align:left; background:var(--card); }
table.gb th.sticky { background:var(--surface-2); }
table.gb th.grp { background:#e3e9f0; }
table.gb th.item { font-weight:600; font-size:13px; }
table.gb td.editable { cursor:pointer; }
table.gb td.editable:hover, table.gb td.editable:focus { background:#f3f6f9; outline:none; }
table.gb tr.why td { text-align:left; white-space:normal; background:var(--surface-2); }
.gs { font-size:12px; font-weight:600; padding:1px 8px; border-radius:99px; background:var(--surface-2); color:var(--muted); }
.gs.missing { background:var(--danger-soft); color:var(--danger); } .gs.ungraded { background:#fff1e0; color:#8a4b00; } .gs.excused { background:#e5eefa; color:#2b5b8a; }
.unrel { color:#c58a00; font-size:10px; vertical-align:super; }
#wform label { display:flex; gap:6px; align-items:center; font-size:14px; } #wform input { width:70px; font:inherit; padding:4px 8px; border:1px solid var(--line); border-radius:6px; }
td.num { text-align:right; white-space:nowrap; width:140px; }
@media (max-width:600px) { table.gb th:nth-child(3), table.gb td:nth-child(3) { display:table-cell; } }
.why-inner { position:sticky; left:12px; display:block; max-width:min(860px, 82vw); white-space:normal; }

/* ---------- messages ---------- */

.badge { display:inline-block; min-width:20px; padding:0 6px; border-radius:99px; background:var(--next); color:var(--next-ink); font-size:12px; font-weight:700; text-align:center; line-height:20px; }
.msg-layout { display:grid; grid-template-columns:260px 1fr; gap:16px; align-items:start; }
.msg-list h3 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:14px 0 6px; }
.msg-list ul { list-style:none; margin:0; padding:0; }
.msg-list .ch { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; text-align:left; font:inherit; font-size:14px; padding:7px 10px; border:0; border-radius:6px; background:none; color:var(--ink); cursor:pointer; }
.msg-list .ch:hover { background:var(--surface-2); } .msg-list .ch.on { background:var(--primary-soft); color:var(--primary); font-weight:600; }
.msg-list .panel { margin-top:16px; }
.msg-main { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 16px; min-height:min(78vh, 760px); display:flex; flex-direction:column; min-width:0; }
.conv-head h2 { margin:0 0 8px; }
.pinned { background:#f2faf4; border:1px solid #cfe8d6; border-radius:6px; padding:8px 10px; font-size:14px; margin-bottom:8px; display:flex; flex-direction:column; gap:4px; }
.msgs { flex:1; overflow-y:auto; max-height:62vh; min-height:240px; display:flex; flex-direction:column; gap:10px; padding:4px 2px 10px; }
.msg { border:1px solid var(--line); border-radius:10px; padding:10px 14px; max-width:85%; background:#fff; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.msg.mine { align-self:flex-end; background:#eef3f8; }
.msg.ann { border-color:#f0dca0; background:#fffbef; }
.msg.hid { opacity:.75; border-style:dashed; }
.msg header { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; margin-bottom:2px; }
.msg header .chip { margin:0; }
.msg .acts { margin-top:4px; gap:14px; }
.hide-form { margin-top:6px; display:flex; gap:6px; } .hide-form input { flex:1; font:inherit; font-size:14px; padding:5px 8px; border:1px solid var(--line); border-radius:6px; }
.hidden-note { color:#8a4b00; margin:4px 0 0; }
.compose { border-top:1px solid var(--line); padding-top:10px; display:flex; flex-direction:column; gap:6px; }
.compose textarea { font-size:16px; line-height:1.5; min-height:140px; max-height:50vh; width:100%; box-sizing:border-box; padding:12px 14px; resize:vertical; }
.compose .btn.primary { min-width:120px; min-height:44px; font-size:16px; }
.mobile-only { display:none; }
@media (max-width:760px) {
  .msg-layout { grid-template-columns:1fr; }
  .msg-layout.has-channel .msg-list { display:none; }
  .msg-layout:not(.has-channel) .msg-main { display:none; }
  .mobile-only { display:inline; }
  .msg { max-width:100%; }
}

/* ---------- lessons & files ---------- */
.module { margin-bottom:12px; } .module h3 { margin:0; font-size:16px; }
.lessons { margin:8px 0 0; padding-left:0; list-style:none; } .lessons li { margin:4px 0; }
.meter { height:8px; background:var(--surface-2); border-radius:99px; overflow:hidden; } .meter span { display:block; height:100%; background:var(--primary); }
.meter.warn span { background:#c58a00; }
.lesson { max-width:760px; }
.block-text h3 { font-size:20px; margin:8px 0 4px; } .block-text h4 { font-size:16px; margin:8px 0 4px; } .block-text p { margin:8px 0; }
.block-video h3 { font-size:16px; margin:0 0 6px; }
.block-video video { width:100%; border-radius:8px; background:#000; }
.frame { position:relative; padding-top:56.25%; border-radius:8px; overflow:hidden; background:#000; }
.frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.block-document img { max-width:100%; border-radius:8px; border:1px solid var(--line); }
.doc { display:flex; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.doc-icon { font-size:11px; font-weight:700; color:#fff; background:var(--primary); border-radius:4px; padding:8px 6px; }
.check-box { border:1px solid #cfdbe8; background:#f7fafd; border-radius:8px; padding:12px 14px; }
.check-box .stem-q { font-size:17px; margin:4px 0 10px; }
.check-box .opt { font-size:15px; padding:10px 12px; }
.check-box .opt.right { border-color:var(--ok); background:#f2faf4; } .check-box .opt.wrong { border-color:#e2a29f; background:#fff6f5; }
.check-box .row { margin-top:10px; }
.eblock textarea, .eblock select { width:100%; }
.add-blocks { margin:12px 0; }
.check-box .opt { flex-direction:row; align-items:flex-start; color:var(--ink); gap:12px; }
#done { max-width:72ch; }
a { color:var(--primary); }

/* ---------- frame extras ---------- */
.avatar { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--primary-soft); color:var(--primary); font-size:12px; font-weight:700; flex:none; }
.avatar.lg { width:40px; height:40px; font-size:14px; }
.who-name { color:var(--ink-2); font-weight:550; }
@media (max-width:600px) { .who-name { display:none; } }
button.course-open { text-align:left; color:var(--ink); display:flex; flex-direction:column; gap:2px; }
button.course-open:hover h3 { color:var(--primary); }
.course-card .todo { padding:10px 0 0; border-bottom:0; border-top:1px solid var(--line); }
.persona { display:flex; flex-direction:column; gap:10px; }
td.num, th.num { text-align:right; white-space:nowrap; }
.empty .ic { color:var(--ok); }
.icon-btn.menu-btn { display:none; }
.top .crumb { display:none; }
@media (max-width:900px) { .icon-btn.menu-btn { display:inline-flex; } .top .crumb { display:block; } }
.side .mark svg rect { fill:#1d3050; }

/* ---------- skills ---------- */
.steps-edit input[data-t] { width:100%; font:inherit; padding:7px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); }
.steps-edit td { vertical-align:middle; }
.skill-row { padding:14px 18px; }
.skills-matrix th, .skills-matrix td { white-space:nowrap; }
.skills-matrix th.sticky, .skills-matrix td.sticky { position:sticky; left:0; background:var(--surface); z-index:1; }
.skills-matrix th.sticky { background:var(--surface-2); }
.score-box { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.score-box b { font-size:26px; font-weight:750; } .score-box span:last-child { font-size:12.5px; color:var(--muted); }
.verdict { display:inline-flex; align-items:center; gap:6px; font-weight:650; font-size:14px; padding:4px 12px; border-radius:99px; }
.verdict.pass { background:var(--ok-soft); color:var(--ok); } .verdict.fail { background:var(--danger-soft); color:var(--danger); } .verdict.open { background:var(--surface-2); color:var(--ink-2); }
.eval-steps { list-style:none; counter-reset:st; padding:0; margin:16px 0; display:flex; flex-direction:column; gap:8px; }
.eval-steps li { counter-increment:st; display:flex; align-items:center; gap:14px; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.eval-steps li::before { content:counter(st); font-weight:700; color:var(--muted); width:22px; }
.eval-steps li.met { border-color:#b7dfc6; background:#f4fbf6; } .eval-steps li.missed { border-color:#efc3bf; background:#fff7f6; }
.eval-steps .st { flex:1; display:flex; flex-direction:column; gap:2px; font-size:15.5px; }
.eval-steps .crit { color:var(--danger); }
.eval-steps .res { font-weight:600; font-size:14px; display:inline-flex; gap:4px; align-items:center; }
.seg { display:inline-flex; border:1px solid var(--line-2); border-radius:10px; overflow:hidden; flex:none; }
.seg button { font:inherit; font-size:15px; font-weight:600; min-width:92px; min-height:44px; padding:0 14px; border:0; background:var(--surface); color:var(--ink-2); cursor:pointer; }
.seg button + button { border-left:1px solid var(--line-2); }
.seg button[data-v="1"].on { background:var(--ok); color:#fff; } .seg button[data-v="0"].on { background:var(--danger); color:#fff; }
details.panel summary { cursor:pointer; font-weight:600; }
@media (max-width:600px) { .eval-steps li { flex-wrap:wrap; } .seg { width:100%; } .seg button { flex:1; } }

/* ---------------------------------------------------------------- question tags, filters, exam builder sections */
button.link.danger { color:var(--danger); }
.chip.tag { background:var(--primary-soft); color:var(--primary-hover); font-weight:600; }
.chip.tag .x { background:none; border:0; padding:0 0 0 2px; margin:0; font:inherit; font-size:14px; line-height:1; color:inherit; cursor:pointer; opacity:.7; }
.chip.tag .x:hover { opacity:1; }
.tagpick { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; }
.tagpick select, .bulk select, .filterbar select, .section-card select, .section-card input[type=number], #qfN, #qfG {
  font:inherit; font-size:14px; padding:5px 9px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); }
.tagpick select { margin:4px 0 0; max-width:100%; }
.section-card input[type=number], #qfN { width:76px; }
.toggles { display:inline-flex; border:1px solid var(--line-2); border-radius:var(--radius-sm); overflow:hidden; }
.toggle { font:inherit; font-size:13px; padding:5px 11px; border:0; background:var(--surface); color:var(--ink-2); cursor:pointer; }
.toggle + .toggle { border-left:1px solid var(--line-2); }
.toggle[aria-pressed=true] { background:var(--primary); color:#fff; }
.filterbar { margin:16px 0 10px; gap:10px; }
.filterbar label { flex-direction:row !important; align-items:center; gap:8px; font-weight:500 !important; }
.filterbar input[type=search] { flex:1; min-width:160px; }
.bulk { position:sticky; top:8px; z-index:2; background:var(--next-soft); border:1px solid #f3d29c; border-radius:var(--radius-sm); padding:9px 14px; margin:8px 0; }
th.cb, td.cb { width:34px; padding-right:0; }
td.cb input, th.cb input { accent-color:var(--primary); width:16px; height:16px; }
.section-card { border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:var(--radius-sm); padding:12px 14px; display:flex; flex-direction:column; gap:8px; background:var(--surface); }
.section-card .lbl { min-width:66px; }
.section-card label.row { flex-direction:row; align-items:center; font-weight:500; }
.avail { font-weight:600; }
.fixed-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.fixed-list li { display:flex; gap:8px; align-items:center; }
.fixed-list .clip, .pick-row .clip { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.picker { background:var(--surface-2); box-shadow:none; }
.pick-list { max-height:360px; overflow:auto; display:flex; flex-direction:column; gap:2px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:6px; }
.pick-row { padding:6px 8px; border-radius:6px; font-size:14px; }
.pick-row:hover { background:var(--surface-2); }
.taggroup .tagtree { list-style:none; margin:0 0 10px; padding:0; }
.tagtree li { border-bottom:1px solid var(--line); padding:7px 0; }
.tagtree li.d1 { padding-left:24px; } .tagtree li.d2 { padding-left:48px; } .tagtree li.d3 { padding-left:72px; }
.tagtree li.d1 b, .tagtree li.d2 b, .tagtree li.d3 b { font-weight:550; }
.inline-edit form { margin-top:8px; }
.inline-edit input, .taggroup form input { font:inherit; padding:6px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); }
.taggroup h2 { margin:0; }
@media (max-width:600px) {
  .section-card .lbl { min-width:0; }
  .tagtree li.d1 { padding-left:12px; } .tagtree li.d2 { padding-left:24px; } .tagtree li.d3 { padding-left:36px; }
}

/* ---------------------------------------------------------------- layouts, credit review, release steps */
.layout-pick label { flex-direction:column; display:flex; gap:5px; font-size:13.5px; font-weight:550; color:var(--ink-2); }
.layout-pick select, #byId, #layoutName, .section-card input.idp { font:inherit; font-size:14px; padding:6px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
.section-card input.idp { width:110px; }
#layoutName { min-width:200px; }
.steps-line { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.steps-line span { font-size:13px; font-weight:600; padding:5px 11px; border-radius:99px; }
.steps-line .todo-step { background:var(--next-soft); color:#6b4300; }
.steps-line .done-step { background:var(--ok-soft); color:var(--ok); }
table.credit td.decide { min-width:360px; }
table.credit .seg button { white-space:nowrap; }
table.credit tr.undecided td:first-child { box-shadow:inset 3px 0 0 var(--next); }
table.credit .seg button { font-size:13px; min-width:0; min-height:34px; padding:0 10px; }
table.credit .seg button.on { background:var(--primary); color:#fff; }
table.credit .seg button[data-d=dropped].on { background:var(--danger); }
table.credit .reason { display:block; width:100%; margin-top:6px; font:inherit; font-size:13.5px; padding:6px 9px; border:1px solid var(--line-2); border-radius:var(--radius-sm); }
table.credit .error { min-height:0; }
@media (max-width:700px) { table.credit th:nth-child(4), table.credit td:nth-child(4), table.credit th:nth-child(5), table.credit td:nth-child(5) { display:none; } table.credit td.decide { min-width:0; } }
table.credit .accept-form { margin-top:8px; padding:10px 12px; background:var(--surface-2); border-radius:var(--radius-sm); display:flex; flex-direction:column; gap:6px; }
table.credit .accept-form input[type=number], table.credit .accept-form .alt-texts { font:inherit; font-size:13.5px; padding:5px 8px; border:1px solid var(--line-2); border-radius:6px; }
table.credit .accept-form .alt-texts { width:100%; }
table.credit .seg button[data-d=accept_also].on { background:var(--next); color:var(--next-ink); }
.btn.small-btn { padding:6px 12px; font-size:13.5px; }

/* ---------------------------------------------------------------- clinical log and preceptor verification */
.clinical-layout { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:16px; align-items:start; margin-top:14px; }
@media (max-width:860px) { .clinical-layout { grid-template-columns:1fr; } }
.qr-box svg { width:100%; max-width:280px; height:auto; display:block; margin:4px auto 8px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:12.5px; }
.break { word-break:break-all; }
ul.plain { list-style:none; margin:0; padding:0; }
.verified-card { border-left:4px solid var(--ok); }
.verified-card .row { gap:12px; margin-bottom:8px; }
.skill-line input, .skill-line select { font:inherit; font-size:14px; padding:6px 9px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
.skill-line input[type=number] { width:70px; }
.verify { max-width:720px; margin:0 auto; padding:8px 0 40px; }
.verify .panel { margin-top:14px; }
.done-panel { text-align:center; }
.done-panel .ic-wrap { margin:6px auto 0; }
.verified-card .ic-wrap, .done-panel .ic-wrap { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--ok-soft); color:var(--ok); flex:none; }
.verify table.kv th { width:32%; } @media (max-width:600px) { .verify table.kv th, .verify table.kv td { padding:8px 10px; } }

/* ---------- school setup ---------- */
.two { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:900px) { .two { grid-template-columns:1fr; } }
.program h3 { font-size:15px; margin:10px 0 8px; }
.inline-form { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.inline-form input { font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); min-width:0; flex:1 1 130px; }
.row.end { justify-content:flex-end; align-self:end; }
details.panel summary { cursor:pointer; font-weight:600; }
details.panel[open] summary { margin-bottom:10px; }
.pick-filter { width:100%; margin-bottom:8px; font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); }

/* ---------- people ---------- */
.landing.narrow { max-width:520px; }
.row-error td { background:var(--bad-bg, #fdecea); }
.chip.bad { background:#fdecea; color:#a61b1b; }
.btn.danger { border-color:#e0b4b4; color:#a61b1b; }
.signin-alt { margin-top:28px; } .signin h2 { margin-top:0; }
table tr[data-p] { cursor:pointer; }

/* Clinical patient care note */
.note-head { margin: 1rem 0 .25rem; font-size: 1rem; }
table.vitals th, table.vitals td { padding: .25rem .4rem; white-space: nowrap; }
table.vitals-edit { border-collapse: collapse; }
table.vitals-edit th { font-size: .8rem; font-weight: 600; text-align: left; padding: 0 .2rem; }
table.vitals-edit td { padding: .15rem .2rem; }
table.vitals-edit input { width: 4.6rem; min-width: 0; }
.iv-line { flex-wrap: wrap; gap: .35rem; }
.iv-line input.short { width: 6rem; }
.iv-line input.grow { flex: 1 1 10rem; }
fieldset { border: 1px solid var(--line, #d8dde3); border-radius: 8px; padding: .6rem .8rem; }
legend { font-weight: 600; padding: 0 .3rem; }

/* Records: completion roster and printable student record */
.roster-table td { vertical-align: top; }
.record-course h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
@media print {
  .side, .top, #scrim, #demo-banner, .no-print, #print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .record-course { break-inside: auto; }
  a.link { color: inherit; text-decoration: none; }
}

/* Courses for sale: public course page, certificate and wallet card */
.chip.ok-chip { background:var(--ok-soft); color:var(--ok); }
.learn { max-width:860px; margin:0 auto; }
.learn .product h2 { margin-top:0; }
.facts { margin:8px 0 14px; padding-left:18px; color:var(--ink-2); }
.facts li { margin:3px 0; }
.cols2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:18px; margin-top:22px; align-items:start; }
.h-quiet { margin-top:0; }
.stack.mini { gap:8px; margin:6px 0 12px; }
.cert-line { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:9px 12px; border-radius:var(--radius-sm); background:var(--ok-soft); }
.cert-line.bad { background:var(--danger-soft); font-weight:500; }
.num-input { width:92px; }
.grow-input { flex:1 1 280px; min-width:0; }
table.inner { margin:4px 0; font-size:13.5px; }
.certificate { background:#fff; border:2px solid var(--nav); outline:6px solid var(--primary-soft); outline-offset:-12px; border-radius:6px;
  padding:44px 40px 30px; margin:18px 0; text-align:center; }
.cert-kicker { text-transform:uppercase; letter-spacing:.18em; font-size:13px; font-weight:700; color:var(--primary); margin:0; }
.cert-course { font-size:26px; margin:10px 0 18px; }
.cert-small { margin:4px 0; color:var(--ink-2); }
.cert-name { font-size:30px; font-weight:700; letter-spacing:-.01em; margin:8px 0; border-bottom:1px solid var(--line-2); display:inline-block; padding:0 24px 4px; }
.cert-meta { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin:26px 0 14px; text-align:left; }
.cert-meta div { display:flex; flex-direction:column; border-top:1px solid var(--line); padding-top:6px; }
.cert-meta span { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.cert-verify, .cert-disclaimer { font-size:12px; color:var(--muted); margin:4px 0; word-break:break-all; }
.wallet { width:3.375in; min-height:2.125in; border:1.5px solid var(--nav); border-radius:10px; padding:12px 14px; margin:8px 0 18px;
  background:#fff; display:flex; flex-direction:column; gap:3px; }
.wallet p { margin:0; }
.w-kicker { font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--primary); font-weight:700; }
.w-course { font-size:13px; font-weight:700; }
.w-name { font-size:16px; font-weight:700; margin-top:4px !important; }
.w-meta { display:flex; flex-direction:column; font-size:10.5px; color:var(--ink-2); margin-top:auto; }
.w-id { font-size:9px; color:var(--muted); }
@media (max-width:600px) { .certificate { padding:30px 16px 22px; } .cert-name { font-size:24px; padding:0 8px 4px; } .cert-course { font-size:21px; } }
@media print {
  .learn { max-width:none; }
  .certificate { margin:0 0 .4in; break-inside:avoid; }
  .wallet { break-inside:avoid; }
}
.cert-sign { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:end; margin:30px 0 4px; text-align:left; }
.cert-issuer, .cert-signer { display:flex; flex-direction:column; gap:2px; }
.cert-issuer span { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.cert-issuer b { font-size:18px; }
.cert-issuer small, .cert-signer small { color:var(--ink-2); font-size:13px; }
.cert-signer { align-items:stretch; }
.sig-img { height:64px; max-width:100%; object-fit:contain; object-position:left bottom; }
.sig-blank { display:block; height:64px; }
.sig-line { display:block; border-top:1.5px solid var(--ink); margin:2px 0 4px; }
.cert-meta { grid-template-columns:repeat(3, 1fr); }
.certrow td { background:var(--surface-2); }
.certrow summary { cursor:pointer; padding:4px 0; }
.cert-form { margin:10px 0; }
.sig-pad { display:block; width:100%; max-width:600px; height:auto; aspect-ratio:600 / 160; background:#fff; border:1px dashed var(--line-2); border-radius:var(--radius-sm); touch-action:none; cursor:crosshair; margin:6px 0 10px; }
.file-btn { cursor:pointer; }
@media (max-width:600px) { .cert-sign { grid-template-columns:1fr; } .cert-meta { grid-template-columns:1fr; } }
.cert-foot { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:8px; }
.cert-qr svg { width:84px; height:84px; display:block; }
.cert-foot .cert-verify { text-align:left; margin:0; }
.w-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; }
.w-qr svg { width:52px; height:52px; display:block; }
.narrow-form { max-width:520px; }
.catalog-signin { margin-top:28px; }

/* ---- seats for organizations */
.notice.ok-note { background:var(--ok-soft); border-color:transparent; color:var(--ink); }
.seats-box { margin-top:12px; border-top:1px solid var(--line, #e3e7ee); padding-top:10px; }
.seats-box summary { cursor:pointer; padding:4px 0; }
.seats-box .stack { margin-top:8px; max-width:520px; }
.seat-total { font-weight:600; margin:0; }
.redeem-box { margin-top:18px; }
.redeem-box input { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform:uppercase; letter-spacing:.06em; max-width:220px; }
.seat-order { margin-bottom:16px; }
.seat-order h3 { margin:16px 0 4px; font-size:15px; }
.seat-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:12px; margin:10px 0; }
.code-pill { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:17px; font-weight:700; letter-spacing:.08em; padding:6px 12px; border-radius:var(--radius-sm); background:var(--primary-soft); color:var(--primary-hover); }
.seat-order textarea { min-width:220px; flex:1; }
.tier-row { gap:12px; align-items:center; }
.tier-row label { display:flex; gap:6px; align-items:center; }
@media (max-width:640px) { .seat-order .grow-input { width:100%; } }

/* ---- lesson-to-lesson navigation */
.lesson-nav { margin:18px 0 8px; }
.lesson-nav .btn { max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:640px) { .lesson-nav .row { flex-direction:column-reverse; align-items:stretch; gap:8px; } .lesson-nav .btn { max-width:none; } }
.email-text { white-space:pre-wrap; word-break:break-word; background:var(--surface-2); padding:12px 14px; border-radius:var(--radius-sm); font-size:13px; max-height:420px; overflow:auto; }

/* ---- owner console: income bars */
.bars { display:flex; align-items:flex-end; gap:10px; height:200px; padding:8px 0 4px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.bar-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; min-width:0; }
.bar { width:100%; max-width:56px; background:var(--primary, #0e7069); border-radius:4px 4px 0 0; }
.bar-val { font-size:11px; color:var(--muted); margin-bottom:4px; white-space:nowrap; }
.bar-lbl { font-size:12px; color:var(--muted); margin-top:6px; }

/* ---- owner console stat cards */
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; margin:14px 0 18px; }
.cards .stat { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px 16px; }

/* ---- owner console */
.cards .stat.kpi b { font-size:22px; }
.cards .stat.kpi small { display:block; margin-top:2px; }
.owner-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; align-items:start; }
.owner-grid > .panel { margin:0; }
.school-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:12px; margin-top:8px; }
.school-card { text-align:left; display:flex; flex-direction:column; gap:4px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); font:inherit; color:inherit; cursor:pointer; }
.school-card:hover, .school-card:focus-visible { border-color:var(--primary); background:var(--primary-soft); }
table.clickable tbody tr[data-go] { cursor:pointer; }
table.clickable tbody tr[data-go]:hover td, table.clickable tbody tr[data-go]:focus td { background:#f3f6f9; }
.add-admin { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.add-admin summary { cursor:pointer; }
.todo .btn + .link { margin-left:6px; }

/* ---- skill sheets v2: sections, practice/graded, tablet bar */
.eval-sections { counter-reset:st; }
.eval-sections .eval-steps { counter-reset:none; margin:8px 0 18px; }
.eval-sec-head { display:flex; align-items:center; gap:12px; margin-top:14px; padding-bottom:6px; border-bottom:2px solid var(--primary-soft); }
.eval-sec-head h2 { margin:0; font-size:17px; flex:1; }
.sec-score { font-weight:700; font-size:14px; color:var(--primary); white-space:nowrap; }
.small-btn { padding:6px 12px; font-size:13px; min-height:36px; }
.seg button { min-height:44px; min-width:76px; font-size:15px; }
.mode-seg { margin-top:8px; }
.eval-bar { position:sticky; bottom:0; z-index:4; margin:16px -4px 0; padding:10px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 -4px 14px rgba(14,26,43,.08); }
.eval-bar-in { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.eval-bar-in b { font-size:18px; }
.eval-bar .grow { flex:1; }
.eval-bar .btn { min-height:44px; }
.staff-note { border-left:4px solid var(--warn); }
.sec-edit .sec-head { gap:10px; align-items:center; margin-bottom:8px; }
.sec-title { flex:1; min-width:220px; font-weight:600; font-size:15px; }
@media print { .eval-bar, .mode-seg { display:none !important; } }
.mode-seg button.on { background:var(--primary); color:#fff; }
.gb th.nocount, .gb td.nocount { background:#f7f8fa; color:var(--muted); }
.gb th.grp.nocount { font-style:italic; }
/* School billing */
.price-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin-top:6px; }
.price-grid label { font-size:13px; }
#bForm .grow, #book .grow { grid-column:1 / -1; }
td.nowrap { white-space:nowrap; }
ul.tight { margin:4px 0 0; padding-left:18px; } ul.tight li { margin:3px 0; }
.row.wrap { flex-wrap:wrap; margin:12px 0; }
details.inline { display:inline-block; } details.inline > summary { list-style:none; } details.inline > summary::-webkit-details-marker { display:none; }
.buy-form { align-items:end; padding:12px; margin-top:12px; background:var(--primary-soft, #e8f3f2); border-radius:var(--radius-sm); }
.buy-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.buy-form select { font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.buy-form #buyTotal { align-self:center; font-size:15px; }
.access-banner { margin:0 0 16px; }
.school-access { display:flex; flex-direction:column; gap:6px; margin:6px 0 18px; }
.school-access .row { justify-content:space-between; padding:8px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.tier-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin:10px 0; }
.tier-card { display:flex; flex-direction:column; gap:6px; padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.tier-card.on { border:2px solid var(--primary); }
.tier-card .tier-price { font-size:22px; font-weight:700; } .tier-card .tier-price small { font-size:13px; font-weight:400; color:var(--muted); }
.tier-card .btn { margin-top:auto; }
.buy-form label input, .buy-form label select { flex:none; }
.buy-form label input { width:110px; }
/* Clinical shifts with several patients */
.patient { border-top:1px solid var(--line); padding-top:12px; margin-top:14px; }
.patient h3 { margin:0 0 6px; font-size:15px; }
.tracked-skills td { vertical-align:middle; }
.tracked-skills tr.on td:first-child { font-weight:600; }
.tracked-skills tr.on { background:var(--ok-soft); }
.stepper { display:inline-flex; align-items:center; gap:6px; }
.stepper input { width:56px; text-align:center; font:inherit; padding:6px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.stepper .btn { min-width:40px; min-height:40px; font-size:18px; padding:0; }
.track-edit input:not([type=number]) { min-width:200px; }
.track-edit input[type=number] { width:80px; }
.track-edit input, .track-edit select { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.pt-row .btn, .pt-row .link { flex:none; }
.skill-progress td, .skill-progress th { white-space:nowrap; }
.kind-seg { margin:0 0 4px; } .kind-seg button.on { background:var(--primary); color:#fff; }
/* Video library and playlists */
ol.pl-items { margin:0; padding-left:22px; } ol.pl-items li { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--line); }
.pl-progress td, .pl-progress th { text-align:center; } .pl-progress td:first-child, .pl-progress th:first-child { text-align:left; }
.pl-progress .ok-cell { background:var(--ok-soft); font-weight:600; }
.watch-layout { display:grid; grid-template-columns:minmax(0, 2.2fr) minmax(220px, 1fr); gap:18px; align-items:start; }
@media (max-width:860px) { .watch-layout { grid-template-columns:1fr; } }
ol.pl-list { margin:0; padding:10px 10px 10px 30px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
ol.pl-list li { padding:6px 0; display:flex; justify-content:space-between; gap:8px; } ol.pl-list li.on button { font-weight:700; }
ol.pl-list .ok { color:var(--ok, #1a7f4b); font-weight:600; }
#assign { align-items:flex-end; } #assign select { flex:1 1 100%; min-width:0; }
#assign label { display:flex; flex-direction:column; gap:4px; } #assign label input { flex:none; } #assign .btn { flex:none; }

/* Owner console > Outreach: suggested replies and agent keys */
.inner-panel { margin:12px 0; border:1px solid var(--line); box-shadow:none; }
.inner-panel label { display:block; margin:8px 0; }
.inner-panel input, .inner-panel textarea { width:100%; box-sizing:border-box; }
.keybox { display:block; padding:8px 10px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius-sm); word-break:break-all; font-size:13px; flex:1; min-width:0; }

/* Demo sign-in page: grouped by role, with level chips and a "Try" hint per person */
.demo-jump { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 6px; }
.demo-jump a { padding:6px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink-2); text-decoration:none; font-size:14px; font-weight:600; }
.demo-jump a:hover { border-color:var(--primary); color:var(--primary); }
.demo-group { margin-top:22px; }
.demo-group h2 { margin-bottom:2px; }
.demo-group > p { margin:0 0 12px; }
.persona .chips { display:flex; flex-wrap:wrap; gap:6px; }
.persona .try { margin:0; color:var(--ink-2); text-align:left; line-height:1.45; }
.chip.level-emt { background:var(--primary-soft); color:var(--primary); }
.chip.level-aemt { background:var(--next-soft); color:var(--warn); }
.chip.level-paramedic { background:var(--danger-soft); color:var(--danger); }
.persona > .row { flex-wrap:nowrap; align-items:flex-start; }
.persona > .row > div { min-width:0; }
/* CPR course rosters */
table.clickable tbody tr[data-k] { cursor:pointer; }
table.clickable tbody tr[data-k]:hover td, table.clickable tbody tr[data-k]:focus td { background:#f3f6f9; }
.cpr-add { align-items:flex-end; margin:0 0 12px; }
.cpr-add label { display:flex; flex-direction:column; gap:5px; font-size:13.5px; font-weight:550; color:var(--ink-2); flex:1 1 260px; }
.cpr-add select, #addI, #addSt { font:inherit; padding:7px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); max-width:100%; }
#walk { margin:0 0 12px; } #walk summary { cursor:pointer; font-weight:600; } #walk form { margin-top:12px; align-items:end; }
.cpr-students td, .cpr-creds td, table[data-cpr] td { vertical-align:middle; }
.cpr-students input, .cpr-students select, .cpr-creds input, tr[data-i] input { font:inherit; font-size:13.5px; padding:6px 8px; border:1px solid var(--line-2); border-radius:6px; background:var(--surface); min-width:0; }
.cpr-students input:disabled, .cpr-students select:disabled, tr[data-i] input:disabled { background:var(--surface-2); color:var(--ink-2); }
/* Students table: fixed columns so everything fits a 1280px laptop window without sideways scrolling. */
table.cpr-students { table-layout:fixed; min-width:720px; }
table.cpr-students th, table.cpr-students td { padding:8px 6px; }
table.cpr-students th:first-child, table.cpr-students td:first-child { padding-left:12px; }
table.cpr-students col.c-name { width:auto; } table.cpr-students col.c-cred { width:96px; } table.cpr-students col.c-num { width:64px; }
table.cpr-students col.c-skill { width:72px; } table.cpr-students col.c-res { width:108px; } table.cpr-students col.c-date { width:136px; } table.cpr-students col.c-act { width:64px; }
table.cpr-students input, table.cpr-students select { width:100%; }
table.cpr-students td.num { width:auto; font-size:13px; }
.cpr-meta { overflow-wrap:anywhere; line-height:1.4; margin-top:2px; }
tr.cpr-more td { background:var(--surface-2); }
tr.cpr-more .cols { grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); }
tr.cpr-more label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:550; color:var(--ink-2); }
.cpr-forms { margin-top:22px; } .cpr-forms h2 { margin-top:0; }
.cpr-forms td.num { width:auto; } .cpr-forms .file-btn { min-height:32px; padding:0 12px; font-size:13px; }
table.cpr-map td { vertical-align:middle; } table.cpr-map select { font:inherit; font-size:13.5px; padding:6px 8px; border:1px solid var(--line-2); border-radius:6px; max-width:100%; }
.variant-slot select, .variant-slot input { width:100%; }
.cpr-creds input { width:100%; min-width:120px; }
.cpr-print { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px 26px; margin-top:14px; }
.cpr-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; border-bottom:2px solid var(--ink); padding-bottom:8px; }
.cpr-head h1 { margin:2px 0 0; }
.cpr-school { font-weight:600; text-align:right; }
.cpr-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); border:1px solid var(--line-2); border-radius:6px; margin:14px 0 4px; overflow:hidden; }
.cpr-cell { padding:7px 10px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); min-width:0; }
.cpr-cell span { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.cpr-cell b { display:block; font-weight:550; overflow-wrap:anywhere; }
.cpr-print h2 { margin:18px 0 6px; font-size:15px; }
table.cpr-table { box-shadow:none; border-radius:6px; font-size:12.5px; }
table.cpr-table th, table.cpr-table td { padding:6px 8px; }
.cpr-count { margin:10px 0 0; }
.cpr-sign { display:grid; grid-template-columns:2fr 1fr; gap:40px; margin:42px 0 6px; }
.cpr-sign small { color:var(--ink-2); font-size:12.5px; }
.cpr-foot { margin-top:22px; padding-top:8px; border-top:1px solid var(--line); font-size:11.5px; color:var(--muted); }
@media (max-width:760px) { .cpr-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .cpr-print { padding:14px; } .cpr-sign { grid-template-columns:1fr; gap:28px; } }
@page cprRoster { size:landscape; margin:.4in; }
@media print {
  .cpr-print { page:cprRoster; border:0; padding:0; margin:0; }
  .cpr-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  table.cpr-table { font-size:10.5px; break-inside:auto; } table.cpr-table tr { break-inside:avoid; }
  table.cpr-table thead { display:table-header-group; }
  .cpr-sign { break-inside:avoid; }
}
#guest { margin:12px 0 0; } #guest summary { cursor:pointer; font-weight:600; } #guest form { margin-top:10px; align-items:end; }

/* Privacy policy, site footer, demo tracking notice */
.policy { max-width:720px; }
.policy h2 { margin-top:24px; }
.site-foot { padding:12px 24px 20px; font-size:13px; text-align:center; }
dialog.notice { max-width:480px; width:calc(100% - 32px); border:0; border-radius:12px; padding:24px; background:var(--surface); color:var(--ink); }
dialog.notice::backdrop { background:rgba(14,26,43,.55); }
dialog.notice h2 { margin-top:0; }
@media print { .site-foot { display:none; } }

/* ---------------- Item Lab (beta question review): public pages, mobile first ---------------- */
.lab-page { max-width:760px; margin:0 auto; padding:8px 0 40px; }
.lab-head { display:flex; align-items:center; gap:10px; margin:4px 0 18px; }
.lab-tag { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:var(--primary-soft); color:var(--primary-hover); padding:2px 9px; border-radius:99px; }
.lab-h1 { font-size:26px; line-height:1.25; margin:0 0 10px; }
.lab-counter { font-weight:600; color:var(--primary-hover); margin:0 0 14px; }
.lab-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin:0 0 14px; box-shadow:var(--shadow); }
.lab-box h2 { font-size:17px; margin:0 0 8px; }
.lab-box p { margin:0 0 10px; line-height:1.55; }
.lab-before { border-left:4px solid var(--primary); }
.lab-info { border-left:4px solid var(--line-2); }
.lab-bottom { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-top:6px; }
.lab-agree { font-weight:600 !important; }
.lab-radios { border:0; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.lab-radios legend { font-weight:600; margin-bottom:4px; }
.lab-bar { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:10px 0 14px; border-bottom:1px solid var(--line); margin-bottom:14px; font-size:14px; color:var(--ink-2); }
.lab-card { position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.lab-card > * { position:relative; z-index:1; }
.lab-card .lab-wm { position:absolute; inset:-40px; z-index:2; pointer-events:none; display:grid; grid-template-columns:repeat(3, 1fr); grid-auto-rows:90px; opacity:.07; }
.lab-wm span { transform:rotate(-24deg); white-space:nowrap; font-size:13px; font-weight:600; align-self:center; justify-self:center; color:#000; }
.lab-case { border-bottom:1px dashed var(--line-2); margin-bottom:14px; padding-bottom:6px; }
.lab-case-prev { opacity:.85; margin-bottom:12px; }
.lab-case-prev .opt { font-size:15px; padding:9px 12px; }
.lab-stem-sm { font-size:16px; margin:2px 0 8px; }
.lab-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.lab-step { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line-2); border-radius:8px; background:#fff; cursor:grab; }
.lab-num { font-weight:700; width:22px; text-align:center; color:var(--primary-hover); }
.lab-step .icon-btn { width:34px; height:34px; }
.lab-cats { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; margin-bottom:10px; }
.lab-cat { border:2px dashed var(--line-2); border-radius:8px; padding:10px; min-height:70px; background:var(--surface-2); }
.lab-cat-drop { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.lab-sort { display:flex; flex-direction:column; gap:8px; }
.lab-chipcard { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; background:#fff; cursor:grab; }
.lab-chipcard select { max-width:100%; }
.lab-review { margin-top:14px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); }
.lab-review h2 { font-size:16px; margin:0 0 8px; }
.lab-scale { border:0; padding:0; margin:0 0 12px; display:flex; flex-wrap:wrap; gap:6px; }
.lab-scale legend { font-weight:600; margin-bottom:6px; width:100%; }
.lab-scale .req { font-weight:400; color:var(--muted); font-size:13px; }
.lab-pill { position:relative; }
.lab-pill input { position:absolute; opacity:0; inset:0; }
.lab-pill span { display:inline-block; padding:7px 12px; border:1px solid var(--line-2); border-radius:99px; background:#fff; font-size:14px; cursor:pointer; }
.lab-pill input:checked + span { background:var(--primary); color:#fff; border-color:var(--primary); }
.lab-pill input:focus-visible + span { outline:2px solid var(--primary); outline-offset:2px; }
.lab-review textarea { width:100%; }
.lab-foot { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-top:14px; }
.lab-stay { margin-bottom:12px; }
.lab-recap { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:6px; }
.lab-recap li { display:flex; justify-content:space-between; align-items:center; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface); font-size:14px; }
.lab-score { display:flex; align-items:baseline; gap:10px; margin:10px 0 14px; }
.lab-score b { font-size:44px; color:var(--primary-hover); }
.lab-domains { margin-bottom:12px; }
.lab-disclaimer { margin:6px 0; }
.chip.band-above { background:var(--ok-soft); color:var(--ok); } .chip.band-near { background:var(--warn-soft); color:var(--warn); } .chip.band-below { background:#fdecea; color:#a61b1b; }
.lab-verify { max-width:460px; }
.lab-flag { color:#a61b1b; font-weight:600; }
.lab-url { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.lab-url code { font-size:13px; }
/* Hotspot questions: a picture the participant places markers on (hotspot.js). */
.hs { position:relative; margin-top:6px; }
.hs-frame { overflow:auto; border:1px solid var(--line); border-radius:var(--radius-sm); background:#f6f4ef; max-height:78vh; }
.hs-stage { position:relative; width:100%; line-height:0; outline:none; }
.hs-stage:focus-visible { box-shadow:0 0 0 3px var(--primary-soft), inset 0 0 0 2px var(--primary); }
.hs-img { display:block; width:100%; height:auto; cursor:crosshair; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.hs[data-locked] .hs-img { cursor:default; }
.hs-marker { position:absolute; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; border:2px solid #fff; background:transparent;
  box-shadow:0 0 0 2px #0e1a2b, inset 0 0 0 2px #0e1a2b, 0 2px 6px rgb(0 0 0 / .4); touch-action:none; cursor:grab; line-height:1; z-index:3; }
.hs-marker::before, .hs-marker::after { content:""; position:absolute; left:50%; top:50%; background:#fff; box-shadow:0 0 0 1px #0e1a2b; transform:translate(-50%, -50%); }
.hs-marker::before { width:2px; height:12px; } .hs-marker::after { width:12px; height:2px; }
.hs-marker span { position:absolute; top:-26px; left:50%; transform:translateX(-50%); background:#0e1a2b; color:#fff; font-size:12px; font-weight:700; border-radius:9px; padding:2px 7px; }
.hs-marker span:empty { display:none; }
.hs-marker.is-selected { box-shadow:0 0 0 2px #0e1a2b, inset 0 0 0 2px #0e1a2b, 0 0 0 6px rgb(255 214 0 / .85), 0 2px 6px rgb(0 0 0 / .4); }
.hs[data-locked] .hs-marker { cursor:default; opacity:.9; }
.hs-tools { margin-top:8px; gap:8px; align-items:center; }
.hs-loupe { position:absolute; z-index:5; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 2px #0e1a2b, 0 6px 18px rgb(0 0 0 / .35); background-repeat:no-repeat; pointer-events:none; }
.hs-loupe::after { content:""; position:absolute; left:50%; top:50%; width:14px; height:14px; margin:-7px 0 0 -7px; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 2px #0e1a2b; }
/* Owner: region editor and click heatmap. */
.hs-edit .hs-img { cursor:crosshair; }
.hs-svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.hs-svg .t { fill:rgb(47 107 58 / .28); stroke:#2f6b3a; stroke-width:3; vector-effect:non-scaling-stroke; }
.hs-svg .d { fill:rgb(31 78 121 / .18); stroke:#1f4e79; stroke-width:2; stroke-dasharray:6 4; vector-effect:non-scaling-stroke; }
.hs-svg .sel { stroke-width:3; }
.hs-svg .draft { fill:none; stroke:#b3400a; stroke-width:2; stroke-dasharray:4 3; vector-effect:non-scaling-stroke; }
.hs-svg .ok { fill:#2f6b3a; } .hs-svg .no { fill:#b3400a; } .hs-svg .hit { fill-opacity:.8; stroke:#fff; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.hs-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:13px; margin:8px 0; }
.hs-legend i { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:5px; vertical-align:-1px; }
.hs-legend .ok { background:#2f6b3a; } .hs-legend .no { background:#b3400a; } .hs-legend .t { background:rgb(47 107 58 / .45); border-radius:3px; } .hs-legend .d { background:rgb(31 78 121 / .35); border-radius:3px; }
.hs-regions { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:10px; }
.hs-region { border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; background:var(--surface); }
.hs-region.is-sel { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-soft); }
.hs-test { font-weight:600; }
@media (max-width:640px) { .lab-h1 { font-size:22px; } .lab-card { padding:14px; } .stem { font-size:17px; } }
@media print { .lab-card, .lab-review, .lab-case { display:none !important; } }
/* Outreach: status chips and the school list pager */
.chip.info { background:var(--primary-soft); color:var(--primary-hover); }
.pager { align-items:center; justify-content:flex-start; margin-top:10px; }
/* Item Lab owner page: tabs, filters, paged questions, a question's full view */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
#labTabs { margin-top:10px; }
#labPanel:focus { outline:none; }
.lab-steps { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.lab-steps li { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.lab-steps li.done { background:var(--ok-soft); border-color:transparent; }
.lab-steps li.done > span:nth-child(2) { color:var(--ink-2); }
.lab-check { width:22px; height:22px; flex:none; border-radius:99px; border:2px solid var(--line-2); display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--ok); }
.lab-steps li.done .lab-check { border-color:var(--ok); background:var(--surface); }
.lab-filters { display:flex; flex-wrap:wrap; gap:10px 12px; align-items:flex-end; margin-bottom:10px; }
.lab-filters label:not(.check) { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; color:var(--ink-2); }
.lab-filters select, .lab-filters input[type=search] { max-width:220px; }
.lab-filters .lab-search { flex:1 1 240px; }
.lab-filters .lab-search input { max-width:none; width:100%; }
.lab-bulk { margin:6px 0; }
.lab-confirm { margin:6px 0; padding:10px 12px; background:var(--danger-soft); border-radius:var(--radius-sm); }
.lab-qtable tr[data-itemrow] { cursor:pointer; }
.lab-qtable tr[data-itemrow]:hover td { background:var(--surface-2); }
.lab-detail-row > td { background:var(--surface-2); padding:4px 10px 14px; }
.lab-detail { max-width:900px; }
.lab-detail-head { justify-content:space-between; }
.lab-detail-head h3 { margin:8px 0 0; flex:1 1 auto; }
.lab-full-stem { white-space:pre-wrap; font-size:15px; background:var(--surface); padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--line); }
.lab-full-opts { padding-left:0; list-style:none; display:grid; gap:6px; }
.lab-full-opts li { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 10px; }
.lab-full-opts li.is-key { border-color:var(--ok); box-shadow:inset 3px 0 0 var(--ok); }
.lab-dl { display:grid; grid-template-columns:max-content 1fr; gap:6px 14px; margin:10px 0; font-size:14px; }
.lab-dl dt { font-weight:600; color:var(--ink-2); }
.lab-dl dd { margin:0; }
.lab-anchors { list-style:none; padding:0; display:grid; gap:4px; margin:8px 0; }
.lab-anchors li { display:flex; gap:8px; align-items:center; }
tr.lab-current td { background:var(--primary-soft); }
@media (max-width:640px) { .lab-dl { grid-template-columns:1fr; } .lab-filters select, .lab-filters input[type=search] { max-width:none; } .lab-filters label:not(.check) { flex:1 1 140px; } }
.lab-qtable td:nth-child(2), .lab-qtable td:nth-child(4) { white-space:nowrap; }

/* Skills stations (0039): pick a sheet, then grade students one after another; team members recorded, not graded. */
.station-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; margin:10px 0 14px; }
.station-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.station-card .btn { align-self:flex-start; }
.station-meta { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:14px; }
.station-meta .chip { margin:0; }
details.overview summary { cursor:pointer; font-weight:600; }
.station-switch { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; color:var(--ink-2); }
.station-switch select { font:inherit; font-size:15px; min-height:44px; padding:0 10px; border:1px solid var(--line-2); border-radius:8px; background:var(--surface); }
.station-list { display:flex; flex-direction:column; gap:8px; }
.station-row { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 14px; display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; }
.station-row .who { flex:1 1 220px; min-width:0; }
.station-row .who b { font-size:16px; }
.station-row .who .chip { margin:4px 6px 0 0; }
.station-row .acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.btn.big { min-height:48px; min-width:110px; font-size:15px; }
.excuse-form { flex-basis:100%; border-top:1px solid var(--line); padding-top:10px; }
.excuse-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.excuse-form input { font:inherit; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; }
.team-panel { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.team-panel label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.team-panel select { font:inherit; min-height:44px; padding:0 10px; border:1px solid var(--line-2); border-radius:8px; background:var(--surface); }
.team-line { display:flex; gap:8px; align-items:center; color:var(--ink-2); }
.sub-h { font-size:16px; margin:18px 0 4px; }
.plain-list { margin:6px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:4px; }
@media (max-width:640px) { .station-row .acts { width:100%; } .station-row .acts .btn.big { flex:1; } }
.filterbar label.grow { flex:1 1 260px; }
.filterbar label.grow input[type=search] { flex:1; min-height:44px; font-size:16px; padding:0 12px; }

/* Course rosters and the school-wide student list */
.roster-add { margin:4px 0 10px; }
.cand-list { display:flex; flex-direction:column; gap:6px; max-height:320px; overflow:auto; padding:2px; }
.cand-list label.check { display:flex; gap:10px; align-items:flex-start; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-weight:400; }
.roster-table td.acts { white-space:nowrap; text-align:right; }
.roster-table tr.muted-row td { color:var(--muted); }
.roster-table .chip.tag { text-decoration:none; }
.remove-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.remove-form input { font:inherit; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; }
.paste-table td { vertical-align:top; }
.paste-table td:first-child { color:var(--muted); width:36px; }

/* School setup requests: public form and owner review */
.setup-form { max-width:760px; margin:0 auto; padding:24px 0 48px; }
.setup-form fieldset { border:1px solid var(--line); margin:0; }
.setup-form legend { font-weight:700; padding:0 6px; }
.setup-form .row .check { font-weight:500; }
.setup-done { max-width:560px; margin:40px auto; text-align:center; }
.made-link { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; border-top:1px solid var(--line); padding-top:12px; }
.made-link label { flex:1 1 360px; display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.made-link input, .inline-link { font:inherit; font-size:13px; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; width:100%; max-width:560px; }
.request-card h3 { margin:0; }
.req-dl { display:grid; grid-template-columns:140px 1fr; gap:6px 14px; margin:12px 0; }
.req-dl dt { color:var(--muted); font-size:13px; font-weight:600; }
.req-dl dd { margin:0; }
.approve-form { border-top:1px solid var(--line); padding-top:12px; }
@media (max-width:640px) { .req-dl { grid-template-columns:1fr; } }
.approve-form label.grow, .approve-form .row.end { grid-column:1 / -1; }
.approve-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }

/* ---- scheduled release (Post on) and the course schedule ---- */
.chip.lock { background:var(--surface-2); color:var(--ink-2); font-weight:600; }
.chip.lock::before { content:""; width:9px; height:10px; border:2px solid currentColor; border-radius:2px; border-top-width:4px; box-sizing:border-box; margin-right:2px; }
.module.locked h3, .lessons li.locked > span:first-child, .todo.locked b { color:var(--ink-2); }
.lessons li.locked { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
fieldset.postwhen { border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; margin:0; }
fieldset.postwhen legend { font-weight:600; padding:0 4px; }
.whenform { margin:8px 0; }
.sched-day h2 { font-size:16px; margin:18px 0 6px; }
ul.sched { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
ul.sched li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
ul.sched li.past { opacity:.65; }
ul.sched li .grow { flex:1 1 220px; min-width:0; }
.sched-time { font-variant-numeric:tabular-nums; font-weight:600; min-width:72px; }
.sched-edit { flex-basis:100%; gap:8px; align-items:flex-end; }
.warn-text { color:var(--warn); }
.honor { border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:var(--radius-sm); padding:10px 14px; background:var(--surface); }
.honor p { margin:6px 0 8px; }
.cols .span-all { grid-column:1 / -1; margin:0; }

/* ---- Data section ---- */
.data-filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; align-items:end; }
.data-filters label { min-width:0; }
.data-filters select, .data-filters input { width:100%; min-width:0; box-sizing:border-box; }
.data-filters input.narrow { width:70px; }
.data-table { width:100%; }
.data-table tr.flagged > td { background:var(--warn-soft); }
.data-table .clip { display:block; max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.spark { font-variant-numeric:tabular-nums; font-weight:600; }
.flag-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.flag-list li { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:8px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.flag-list .clip { flex:1 1 200px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.exam-stat h2 { margin:0; font-size:18px; }
@media (max-width:600px) { .data-table .clip { max-width:160px; } }
.wrow { gap:10px; align-items:flex-end; } input.narrow { width:72px; }

/* ---- attendance ---- */
ul.roll { list-style:none; padding:0; margin:12px 0; display:flex; flex-direction:column; gap:6px; }
ul.roll li { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
ul.roll li .who { flex:1 1 180px; min-width:0; }
ul.roll li.st-present { border-left-color:var(--ok); } ul.roll li.st-late, ul.roll li.st-left_early { border-left-color:var(--warn); }
ul.roll li.st-absent { border-left-color:var(--danger); } ul.roll li.st-excused { border-left-color:var(--primary); }
.roll-seg { display:flex; flex-wrap:wrap; gap:4px; }
.roll-seg button { min-height:40px; padding:6px 10px; border:1px solid var(--line); background:var(--surface); border-radius:8px; font:inherit; font-size:13px; cursor:pointer; }
.roll-seg button.on { background:var(--primary); color:#fff; border-color:var(--primary); }
.roll-actions { flex-wrap:wrap; gap:8px; }
.checkin-code { text-align:center; }
.bigcode { font-size:clamp(48px, 12vw, 96px); font-weight:700; letter-spacing:.08em; font-variant-numeric:tabular-nums; line-height:1.1; }
.checkin-form { flex-wrap:wrap; gap:10px; align-items:flex-end; }

/* ---- uploads ---- */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.dropzone { border:2px dashed var(--line-2, var(--line)); border-radius:var(--radius-sm); padding:18px; text-align:center; background:var(--surface-2); }
.dropzone.over { border-color:var(--primary); background:var(--primary-soft); }
.dropzone label.link { cursor:pointer; text-decoration:underline; color:var(--primary); }
.upload-queue { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.upload-queue li { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.upload-queue li.failed .grow { color:var(--danger); }
.upload-queue progress { width:140px; }

/* ---- student course home: continue, coming up, progress (portal mockup) ---- */
.upnext { display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); gap:14px; margin:6px 0 18px; }
@media (max-width:760px) { .upnext { grid-template-columns:1fr; } }
.upnext .continue { border-left:4px solid var(--brand); display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.upnext .continue h2 { margin:0; font-size:20px; }
.progress-line { display:flex; flex-direction:column; gap:4px; width:100%; margin-top:6px; }
.duesoon ul { list-style:none; padding:0; margin:6px 0 0; display:flex; flex-direction:column; gap:8px; }
.duesoon li { display:flex; flex-direction:column; gap:2px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.duesoon li:last-child { border-bottom:0; }
.duesoon li.now b { color:var(--ok); }
fieldset.gbq { border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; margin:0; }
fieldset.gbq legend { font-weight:600; padding:0 4px; }
fieldset.gbq.missing { border-color:var(--danger); background:var(--danger-soft); }
.req { color:var(--danger); font-weight:500; font-size:13px; }
.person-row { display:grid; grid-template-columns:auto repeat(3, minmax(0, 1fr)) auto; gap:10px; align-items:end; }
@media (max-width:760px) { .person-row { grid-template-columns:1fr; border-bottom:1px solid var(--line); padding-bottom:10px; } }


/* =====================================================================================================
   Design pass 2026-11-12 (Brandon: "less AI-looking; match the student portal mockup"). Overrides above.
   ===================================================================================================== */
h1 { font-size:28px; font-weight:600; letter-spacing:-.01em; }
h2 { font-size:18px; font-weight:600; letter-spacing:0; }
h3 { font-weight:600; }
a { color:var(--ink-2); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
a:hover { color:var(--primary); text-decoration-color:currentColor; }
.eyebrow { font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.08em; color:var(--muted); }
code, kbd, .mono, .num, .sched-time, .spark, .bigcode { font-family:var(--mono); }

/* Buttons: one height, centred icon and text, flat. Primary = the one main action on a screen. */
.btn, a.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:0 14px; font-size:14px; font-weight:500; line-height:1.2;
  border-radius:var(--radius-sm); border:1px solid var(--line-2); background:var(--surface); color:var(--ink); box-shadow:none; text-decoration:none; vertical-align:middle; }
.btn svg, a.btn svg { flex:none; display:block; }
.btn:hover:not(:disabled), a.btn:hover { background:var(--surface-2); border-color:var(--ink-2); color:var(--ink); }
.btn.primary, a.btn.primary, .btn.next, a.btn.next { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:600; }
.btn.primary:hover:not(:disabled), a.btn.primary:hover, .btn.next:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); color:#fff; }
.btn.danger { color:var(--danger); border-color:#e7c1bd; }
.btn.big { min-height:44px; padding:0 22px; font-size:15px; }
.btn.small, .btn.small-btn { min-height:30px; padding:0 10px; font-size:13px; }
button.link { color:var(--ink-2); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
button.link:hover:not(:disabled) { color:var(--primary); text-decoration-color:currentColor; }
.page-head { align-items:flex-end; }
.page-head .row { gap:8px; }

/* Inputs never wider than their box; labels and rows wrap instead of spilling. */
input, select, textarea { max-width:100%; min-width:0; }
.stack input:not([type=checkbox]):not([type=radio]):not([type=file]), .cols input, .cols select, .stack select, .stack textarea, textarea, select {
  border-radius:var(--radius-sm); border-color:var(--line-2); padding:8px 10px; }
.cols > *, .row > *, .stack > *, .page-head > * { min-width:0; }
.cols label, .stack label { min-width:0; }
.cols input, .cols select, .cols textarea, .stack > label > input, .stack > label > select { width:100%; }
p, li, td, dd, label, h1, h2, h3 { overflow-wrap:break-word; }

/* Panels and tables: flat, thin rules. */
.panel, .card { border-radius:var(--radius); border-color:var(--line); box-shadow:none; }
table { border-radius:var(--radius); box-shadow:none; border-color:var(--line); }
th { background:var(--surface-2); font-size:12px; font-weight:600; color:var(--ink-2); text-transform:none; }
.chip { border-radius:3px; font-weight:500; padding:1px 7px; font-size:12px; }
.chip.info { background:var(--primary-soft); color:var(--primary-hover); }
.tile { border-radius:var(--radius); } .tile b { font-family:var(--mono); font-weight:500; font-size:22px; }
.tabs button.on { border-bottom-color:var(--primary); }
.notice { border-radius:var(--radius-sm); }

/* Side navigation: light, like the mockup's top bar; the current page gets an orange rule. */
.side { background:#fff; color:var(--ink-2); border-right:1px solid var(--line); }
.side .mark { color:var(--ink); }
.side .school { background:var(--surface-2); color:var(--ink); border:1px solid var(--line); }
.side .school small { color:var(--muted); }
.side .school select { background:#fff; color:var(--ink); border-color:var(--line-2); }
.side .sect { color:var(--muted); font-family:var(--mono); font-weight:500; letter-spacing:.08em; }
.nav-item { color:var(--ink-2); border-radius:var(--radius-sm); }
.nav-item:hover { background:var(--surface-2); color:var(--ink); }
.nav-item.on { background:var(--primary-soft); color:var(--primary-hover); box-shadow:inset 3px 0 0 var(--primary); font-weight:600; }
.side .me { border-top-color:var(--line); }
.side .me b { color:var(--ink); }
.side .me button { color:var(--muted); }
.top { background:#fff; }
.banner { background:var(--warn-soft); border-bottom-color:#efd98a; }

/* Student course home: the dark "continue" card from the mockup. */
.upnext .continue { background:var(--ink); color:#fff; border:0; border-left:0; }
.upnext .continue .eyebrow { color:#f0a374; }
.upnext .continue h2 { color:#fff; }
.upnext .continue .muted { color:#c9cbd0; }
.upnext .continue .meter { background:#3d424a; }
.upnext .continue .meter span { background:#e07a3c; }
.duesoon li { border-bottom-color:var(--line); }
.meter span { background:var(--primary); }
.roll-seg button.on { background:var(--ink); border-color:var(--ink); }
.dropzone.over { border-color:var(--primary); }
.mark b { color:var(--primary); }
.mark .wm { font-weight:650; color:var(--ink); } .mark b { font-weight:650; }

/* School setup hub, setup wizard, guide (2026-11-12) */
.getting-started .meter { margin:2px 0 4px; }
.steps-list { list-style:none; margin:0; padding:0; display:grid; gap:0; }
.steps-list li { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line-soft, #eeece6); min-width:0; }
.steps-list li:first-child { border-top:0; }
.steps-list .grow { flex:1; min-width:0; }
.steps-list .tick { width:22px; height:22px; flex:none; border:1.5px solid var(--line, #dedbd3); border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:13px; color:#fff; }
.steps-list li.done .tick { background:var(--ok); border-color:var(--ok); }
.steps-list li.done .grow { color:var(--muted); }
.hub-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; margin:18px 0; }
.hub-card { background:var(--surface, #fff); border:1px solid var(--line, #dedbd3); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.hub-card h3 { margin:0; font-size:15px; }
.hub-card p { margin:0; flex:1; }
.hub-card .row { flex-wrap:wrap; gap:8px; }
.setup-banner { display:flex; flex-wrap:wrap; align-items:center; gap:16px; border-left:3px solid var(--primary); margin-bottom:18px; }
.setup-banner .grow { flex:1; min-width:220px; }
.setup-banner h2 { margin:2px 0 4px; }
.wizard { display:grid; grid-template-columns:minmax(0, 280px) minmax(0, 1fr); gap:18px; align-items:start; margin-bottom:14px; }
.wiz-steps { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.wiz-steps button { display:flex; gap:10px; align-items:center; width:100%; text-align:left; padding:8px 10px; border-radius:var(--radius-sm); color:var(--ink); text-decoration:none; }
.wiz-steps li.on button { background:var(--primary-soft); font-weight:600; }
.wiz-steps .num { width:24px; height:24px; flex:none; border-radius:50%; border:1.5px solid var(--line, #dedbd3); display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-family:var(--mono); }
.wiz-steps li.done .num { background:var(--ok); border-color:var(--ok); color:#fff; }
.wiz-steps li.on .num { border-color:var(--primary); color:var(--primary); }
.wiz-body p { max-width:65ch; }
.wiz-nav { border-top:1px solid var(--line-soft, #eeece6); padding-top:12px; margin-top:4px; }
.guide { display:grid; grid-template-columns:minmax(0, 240px) minmax(0, 1fr); gap:18px; align-items:start; }
.guide-toc { position:sticky; top:12px; }
.guide-toc ul { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.guide-toc a { display:block; padding:6px 8px; border-radius:var(--radius-sm); text-decoration:none; color:var(--ink); }
.guide-toc a:hover { background:var(--primary-soft); }
.guide-body section { scroll-margin-top:16px; }
.guide-body ul { margin:0; padding-left:20px; display:grid; gap:8px; max-width:70ch; }
#grading, #tzPanel, #honorPanel, #courses-sec { scroll-margin-top:16px; }
@media (max-width: 760px) {
  .wizard, .guide { grid-template-columns:minmax(0, 1fr); }
  .guide-toc { position:static; }
}

/* Layout fixes from the automated layout check (2026-11-12) */
td.num .btn, td.num button, td.num a.btn { font-family:"Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
input[type=checkbox], input[type=radio] { width:auto !important; max-width:none; min-width:0; flex:none; }
table.kv { table-layout:fixed; width:100%; }
table.kv th { width:32%; }
table.kv td { overflow-wrap:anywhere; min-width:0; }
table.kv td .scroll-x { margin-top:0; max-width:100%; }
@media (max-width: 600px) {
  table { font-size:13.5px; }
  th, td { padding:8px 6px; }
  td.num .btn { padding-inline:10px; }
}
/* Base look for any text field that no other rule styles (zero specificity, so existing rules win). */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), select) {
  font:inherit; padding:7px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); }
.grow-row { display:grid; grid-template-columns:minmax(0, 1fr) 110px 110px auto; gap:12px; align-items:end; }
.grow-row label { display:flex; flex-direction:column; gap:4px; font-weight:600; font-size:14px; min-width:0; }
.grow-row input { width:100%; }
.grow-row .link { padding-bottom:8px; }
@media (max-width: 600px) { .grow-row { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); } }
.wiz-steps .num { font-family:"Plex", system-ui, sans-serif; }
.wiz-steps li.done.on .num { color:#fff; border-color:var(--ok); }
.wiz-body > * { margin:0; }
.wiz-body { gap:14px; }
@media (max-width: 600px) { td .small, td.small { overflow-wrap:anywhere; } }

/* Textbook owner preview (2026-11-13): reading layout from the portal mockup */
.seg button.on { background:var(--ink); color:#fff; }
.tb-part h2 { margin:0; }
.tb-chapter h3 { margin:10px 0 4px; font-size:15px; }
.tb-lessons { margin:0; padding-left:18px; display:grid; gap:4px; }
.tb-reader { display:grid; grid-template-columns:minmax(0, 220px) minmax(0, 1fr); gap:28px; align-items:start; }
.tb-toc { position:sticky; top:12px; padding:14px; }
.tb-toc ul { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:4px; font-size:13.5px; }
.tb-toc li.l3 { padding-left:12px; }
.tb-toc a { color:var(--ink-2); text-decoration:none; } .tb-toc a:hover { color:var(--primary); }
.tb-text { max-width:72ch; font-size:16.5px; line-height:1.7; min-width:0; }
.tb-text h2 { margin:34px 0 8px; padding-top:14px; border-top:1px solid var(--line); font-size:22px; scroll-margin-top:16px; }
.tb-text h3 { margin:24px 0 6px; font-size:18px; scroll-margin-top:16px; }
.tb-text h4, .tb-text h5 { margin:18px 0 4px; font-size:16px; }
.tb-text p { margin:0 0 12px; }
.tb-text ul, .tb-text ol { margin:0 0 12px; padding-left:22px; }
.tb-text li { margin:3px 0; }
.tb-text table { font-size:14.5px; line-height:1.45; }
.tb-text .scroll-x { margin:8px 0 16px; }
.tb-box { margin:12px 0 16px; padding:12px 16px; border-left:3px solid var(--primary); background:var(--primary-soft); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.tb-box p:last-child { margin-bottom:0; }
.tb-code { white-space:pre-wrap; background:var(--surface-2); padding:10px 12px; border-radius:var(--radius-sm); font-size:13.5px; overflow-x:auto; }
.tb-nav { margin-top:28px; border-top:1px solid var(--line); padding-top:14px; }
@media (max-width: 860px) { .tb-reader { grid-template-columns:minmax(0, 1fr); } .tb-toc { position:static; } .tb-text { font-size:16px; } }
.gb .chg { color:var(--primary); font-size:12px; cursor:help; }
.gb td.editable { cursor:pointer; }
/* Google Slides published to the web, in a lesson */
.slides-frame { position:relative; width:100%; aspect-ratio:16 / 9.4; max-width:100%; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.slides-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
/* Clinical requirements */
.req-list { display:grid; gap:10px; max-width:640px; margin:6px 0; }
.req-row .meter { margin-top:4px; }
.req-cat .small { line-height:2; }
label.check.inline { display:inline-flex; margin-right:10px; font-weight:400; }
.rem-item { flex-wrap:wrap; }
.rem-item .row { flex-wrap:wrap; gap:6px; }
.rem-item .rem-note { min-width:0; flex:1 1 200px; }
.rem-item.completed .t b { color:var(--muted); }

/* ---------- lesson reading and editing (2026-11-16) ---------- */
.lesson { max-width:72ch; }
.lesson .block-text { line-height:1.7; }
.lesson[data-size="1"] .block-text { font-size:15px; }
.lesson[data-size="2"] .block-text { font-size:17px; }
.lesson[data-size="3"] .block-text { font-size:19px; }
.lesson[data-size="4"] .block-text { font-size:21px; }
.lesson[data-size="5"] .block-text { font-size:23px; }
.lesson[data-size] .block-text h3 { font-size:1.3em; } .lesson[data-size] .block-text h4 { font-size:1.1em; }
.lesson[data-size="4"] .check-box .stem-q, .lesson[data-size="5"] .check-box .stem-q { font-size:20px; }
.lesson[data-size="4"] .check-box .opt, .lesson[data-size="5"] .check-box .opt { font-size:18px; }
.textsize { gap:6px; margin:4px 0 10px; }
.textsize .btn[aria-pressed="true"] { border-color:var(--primary); }
.fmt-bar { display:flex; gap:4px; margin-bottom:4px; }
.fmt-bar button { min-width:36px; padding:4px 8px; border:1px solid var(--line-2); border-radius:6px; background:var(--surface-2); color:var(--ink); font:inherit; font-size:13px; cursor:pointer; }
.fmt-bar button:hover { background:var(--surface-3); }
textarea.autogrow { resize:vertical; min-height:120px; line-height:1.6; }
.insert-at { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:-4px 0; padding:2px 0; opacity:.55; }
.insert-at:hover, .insert-at:focus-within { opacity:1; }
.insert-menu { display:flex; flex-wrap:wrap; gap:6px; }
.savebar { position:sticky; bottom:0; z-index:5; background:var(--surface); border-top:1px solid var(--line); padding:10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); margin-top:12px; }
.lessons li { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:6px 0; border-bottom:1px solid var(--line); }
.lessons li:last-child { border-bottom:0; }
.lesson-tools { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; margin-left:auto; }
.lesson-tools select { width:auto; padding:2px 6px; font-size:13px; }
.link[disabled] { opacity:.35; cursor:default; }

/* ---------- school branding (2026-11-16) ---------- */
.brand-signin { max-width:440px; margin:6vh auto 0; display:flex; flex-direction:column; gap:16px; }
.brand-head { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; }
.brand-head h1 { margin:0; text-wrap:balance; }
.brand-logo { max-width:min(280px, 100%); max-height:120px; object-fit:contain; }
.brand-logo.preview { max-width:220px; max-height:90px; padding:8px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; }
.brand-foot { text-align:center; }
.brand-logo-row { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.side .school .school-logo { display:block; max-width:100%; max-height:56px; object-fit:contain; margin:0 0 8px; background:#fff; border-radius:6px; padding:4px; }
code.copyable { padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface-2); overflow-wrap:anywhere; user-select:all; }
input[type="color"] { width:48px !important; height:38px; padding:2px; flex:none; }

/* ---------- two-step sign-in (2026-11-16) ---------- */
.qr-box { width:200px; max-width:100%; margin:10px 0; padding:8px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); }
.qr-box svg { display:block; width:100%; height:auto; }
pre.codes { font-size:15px; line-height:1.7; padding:10px 14px; background:var(--surface-2); border:1px solid var(--line); border-radius:6px; columns:2; max-width:320px; }
.recovery { border-left:4px solid var(--warn); }

/* ---------- maintenance mode (2026-11-16) ---------- */
.maint-banner { background:var(--warn-soft, #fff4d6); color:var(--ink); border-bottom:1px solid var(--line); }
.maint-banner.on { background:#fde8e6; }
.maint-banner a { color:inherit; }
.maint-page { text-align:center; margin-top:10vh; }
.maint-page details { text-align:left; margin-top:24px; }
.danger-zone { border-left:4px solid var(--bad, #b42318); }
/* Live class form: the meeting choice gets its own full row (its labels wrapped one word per line in a grid cell). */
.cols > .meet-how { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.cols > .meet-how legend { width: 100%; }

/* Course tabs: one section of the course at a time. */
.ctabs { display:flex; gap:2px; margin:14px 0 22px; border-bottom:2px solid var(--ink); overflow-x:auto; scrollbar-width:none; }
.ctabs::-webkit-scrollbar { display:none; }
.ctabs button { font:inherit; font-weight:600; font-size:15px; color:var(--muted); background:none; border:0; border-top:4px solid transparent; padding:10px 16px 11px; white-space:nowrap; cursor:pointer; }
.ctabs button:hover { color:var(--ink); background:var(--surface-2); }
.ctabs button[aria-selected="true"] { color:#fff; background:var(--ink); border-top-color:var(--primary); }
.ctabs button:focus-visible { outline:0; box-shadow:var(--focus); }
.cpane > :first-child, .cpane > section:first-child > h2:first-child { margin-top:0; }
@media (max-width:640px) { .ctabs { margin:10px -16px 18px; padding:0 16px; } .ctabs button { padding:9px 12px 10px; font-size:14px; } }

/* Lesson text: callouts, highlight, and the write-on-the-page editor. */
.block-text mark { background:#f9dcc8; color:inherit; padding:0 .1em; }
.block-text ol, .block-text ul { padding-left:1.4em; }
.block-text a { color:var(--primary); text-underline-offset:2px; }
.callout { margin:16px 0; padding:12px 16px 12px 18px; border-left:6px solid var(--primary); background:var(--primary-soft); }
.callout::before { content:"Key point"; display:block; font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--primary); margin-bottom:4px; }
.callout[data-kind="caution"] { border-left-color:var(--danger); background:var(--danger-soft); }
.callout[data-kind="caution"]::before { content:"Caution"; color:var(--danger); }
.callout[data-kind="think"]::before { content:"Think about it this way"; }
.callout > p { margin:0 0 8px; } .callout > p:last-child { margin-bottom:0; }
.fmt-bar { flex-wrap:wrap; align-items:center; position:sticky; top:0; z-index:2; background:var(--surface); padding:6px 0; border-bottom:1px solid var(--line); margin-bottom:0; }
.fmt-bar select { width:auto; padding:4px 8px; font-size:13px; }
.fmt-bar mark { background:#f9dcc8; padding:0 3px; }
.fmt-link { display:flex; gap:4px; align-items:center; flex-wrap:wrap; flex-basis:100%; }
.fmt-link input { width:min(340px, 100%); padding:4px 8px; font-size:13px; }
.rte { min-height:140px; padding:14px 4px 10px; font-size:16px; outline:0; overflow-wrap:anywhere; }
.rte:focus-visible { box-shadow:inset 3px 0 0 var(--primary); }
.rte > :first-child { margin-top:0; }
.rte p { margin:0 0 12px; }
.eblock .drag { cursor:grab; color:var(--muted); letter-spacing:-2px; padding:2px 6px 2px 0; user-select:none; }
.eblock.dragging { opacity:.45; }
.eblock.drop-here { box-shadow:0 -4px 0 var(--primary); }

/* Lesson editor: course outline beside the page. */
.ed-wrap { display:grid; grid-template-columns:minmax(0, 1fr); gap:0 28px; align-items:start; }
.ed-main { min-width:0; }
.ed-outline { border:1px solid var(--line); background:var(--surface); padding:8px 12px; margin-bottom:12px; font-size:14px; }
.ed-outline summary { font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); cursor:pointer; padding:4px 0; }
.eo-ch { font-weight:700; margin:12px 0 4px; } .eo-ch span { font-family:var(--mono); font-weight:500; color:var(--primary); }
.eo-les { display:block; padding:5px 8px; border-left:3px solid transparent; text-decoration:none; color:var(--ink); overflow-wrap:anywhere; }
.eo-les:hover { background:var(--surface-2); }
.eo-les.on { background:var(--ink); color:#fff; border-left-color:var(--primary); }
.eo-les .chip { font-size:10px; }
.eo-add { display:flex; gap:6px; align-items:center; margin:4px 0 0 8px; }
.eo-add input { flex:1; min-width:0; padding:3px 6px; font-size:13px; }
@media (min-width:1100px) {
  .ed-wrap { grid-template-columns:230px minmax(0, 1fr); }
  .ed-outline { position:sticky; top:12px; max-height:calc(100vh - 110px); overflow:auto; margin-bottom:0; }
  .ed-outline summary { pointer-events:none; list-style:none; } .ed-outline summary::-webkit-details-marker { display:none; }
}

/* Course overview: "Needs you". */
.needs { border-top:2px solid var(--ink); margin-bottom:26px; }
.need { display:grid; grid-template-columns:56px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:13px 0; border-bottom:1px solid var(--line-2); }
.need-n { font-family:var(--mono); font-size:28px; line-height:1; color:var(--primary); font-variant-numeric:tabular-nums; }
.need-t b { display:block; font-size:16px; } .need-t span { color:var(--muted); font-size:13.5px; overflow-wrap:anywhere; }
.need-none { padding:14px 0; margin:0; }
@media (max-width:520px) { .need { grid-template-columns:40px minmax(0, 1fr); } .need .btn { grid-column:2; justify-self:start; } .need-n { font-size:22px; } }

/* Gradebook: one-line column headers with an options menu, missing-work marker, type-to-enter scores. */
table.gb th.item { white-space:nowrap; vertical-align:bottom; position:relative; }
table.gb th.item .item-t { display:inline-block; max-width:16ch; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }
table.gb .item-note { display:block; }
.colopt { display:inline-block; }
.colopt summary { list-style:none; cursor:pointer; padding:0 6px; font-weight:700; border-radius:var(--radius-sm); }
.colopt summary::-webkit-details-marker { display:none; }
.colopt summary:hover, .colopt[open] summary { background:var(--surface-3); }
.colopt-menu { position:absolute; right:0; top:100%; z-index:5; min-width:230px; display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--surface); border:2px solid var(--ink); text-align:left; white-space:normal; font-weight:400; }
.colopt-menu p { margin:0; } .colopt-menu select { width:100%; }
table.gb tr.has-missing > td.sticky { box-shadow:inset 4px 0 0 var(--danger); }
.gb-miss-key { display:inline-block; width:4px; height:12px; background:var(--danger); vertical-align:-1px; }
table.gb td.editable:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.gb-quick { width:5.5em; padding:3px 6px; font:inherit; text-align:right; }
.gb-how { margin-top:6px; } .gb-how summary { cursor:pointer; font-size:13.5px; color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; }
.gb-key kbd { font-family:var(--mono); font-size:11px; border:1px solid var(--line-2); padding:0 4px; }

/* In-page dialogs (questions and notices), in place of the browser's pop-ups. */
dialog.rp-dialog { border:2px solid var(--ink); border-radius:0; padding:22px 22px 18px; width:min(440px, calc(100vw - 32px)); background:var(--surface); color:var(--ink); }
dialog.rp-dialog::backdrop { background:rgb(22 24 27 / .55); }
.rp-dialog-msg { margin:0; font-size:16px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.rp-dialog-input { width:100%; }
.rp-dialog-actions { justify-content:flex-end; gap:8px; margin-top:4px; }
/* Course content: editing controls show only while "Edit course" is on. */
#content:not(.editing) :is(.edit-only, .mod-tools, .lesson-moves) { display:none; }
.btn.switch { display:inline-flex; align-items:center; gap:8px; margin-left:auto; }
.switch-box { width:34px; height:18px; border:2px solid var(--ink); position:relative; flex:none; }
.switch-box::after { content:""; position:absolute; top:2px; left:2px; width:10px; height:10px; background:var(--ink); transition:left .12s; }
.btn.switch[aria-pressed="true"] { border-color:var(--primary); }
.btn.switch[aria-pressed="true"] .switch-box { border-color:var(--primary); }
.btn.switch[aria-pressed="true"] .switch-box::after { left:18px; background:var(--primary); }
@media (prefers-reduced-motion:reduce) { .switch-box::after { transition:none; } }

/* Search from anywhere. */
.search-btn { display:inline-flex; align-items:center; gap:10px; margin-left:auto; padding:6px 10px 6px 12px; border:1px solid var(--line-2); background:var(--surface-2); color:var(--muted); font:inherit; font-size:13.5px; cursor:pointer; min-width:150px; justify-content:space-between; }
.search-btn:hover { border-color:var(--ink); color:var(--ink); }
.search-btn kbd, .search-hint kbd { font-family:var(--mono); font-size:11px; border:1px solid var(--line-2); padding:0 5px; background:var(--surface); }
.search-btn + .who { margin-left:0; }
dialog.search-box { border:2px solid var(--ink); border-radius:0; padding:0; width:min(620px, calc(100vw - 24px)); margin-top:9vh; background:var(--surface); color:var(--ink); max-height:78vh; overflow:hidden; }
dialog.search-box[open] { display:flex; flex-direction:column; }
dialog.search-box::backdrop { background:rgb(22 24 27 / .55); }
.search-box input { width:100%; border:0; border-bottom:2px solid var(--ink); border-radius:0; padding:16px 18px; font-size:19px; font-weight:600; outline:0; box-shadow:none; }
#searchList { overflow:auto; }
.search-grp { font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0; padding:12px 18px 4px; }
.search-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:center; padding:9px 18px; cursor:pointer; }
.search-row b { display:block; font-weight:600; overflow-wrap:anywhere; } .search-row small { color:var(--muted); font-size:13px; }
.search-row em { font-style:normal; font-family:var(--mono); font-size:11px; color:var(--muted); }
.search-row[aria-selected="true"] { background:var(--ink); color:#fff; }
.search-row[aria-selected="true"] small, .search-row[aria-selected="true"] em { color:#c9c4ba; }
.search-none { padding:16px 18px; margin:0; }
.search-hint { margin:0; padding:8px 18px; border-top:1px solid var(--line); }
@media (max-width:640px) { .search-btn { min-width:0; } .search-btn span { display:none; } .search-btn::before { content:"Search"; } .search-btn kbd, .search-hint { display:none; } dialog.search-box { margin-top:12px; } }

/* Menu height on phones: 100vh is taller than the visible screen while the browser's address bar shows, which pushed
   "Sign out" (the last thing in the menu) below the edge where it could not be reached. Use the visible height, keep
   the name and Sign out pinned to the bottom of the menu, and clear the phone's home-indicator area. */
.side { height:100dvh; padding-bottom:0; }
.side .me { position:sticky; bottom:0; padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px)); background:#fff; z-index:1; }
.side .me button { min-height:36px; }
@media (max-width: 900px) { .side { height:auto; top:0; bottom:0; max-height:100dvh; } }

/* Lesson text: tables. Lesson editor: history panel. */
.block-text table { width:100%; margin:14px 0; border-collapse:collapse; background:var(--surface); table-layout:auto; }
.block-text th, .block-text td { border:1px solid var(--line-2); padding:7px 10px; vertical-align:top; text-align:left; overflow-wrap:anywhere; }
.block-text th { background:var(--surface-2); font-weight:600; }
.rte td, .rte th { min-width:3em; height:2.2em; }
.rte td:focus-within, .rte th:focus-within { box-shadow:inset 0 0 0 2px var(--primary); }
ul.lhist { list-style:none; margin:0 0 10px; padding:0; }
ul.lhist li { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
ul.lhist li span { display:block; } ul.lhist .chip { display:inline-block; }
.hist-prev { color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Lesson editor: write a knowledge check in place. */
.kc-new { margin-top:8px; } .kc-new summary { cursor:pointer; font-size:14px; text-decoration:underline; text-underline-offset:3px; color:var(--ink-2); }
.kc-new > .stack { margin-top:10px; padding:12px; border:1px solid var(--line-2); background:var(--surface-2); }
.kc-opt { gap:8px; align-items:center; flex-wrap:nowrap; } .kc-opt input[type="radio"] { flex:none; width:auto; } .kc-opt input:not([type="radio"]) { flex:1; min-width:0; }
.eblock .kc-new textarea { width:100%; }

/* =====================================================================================================================
   FIELD MANUAL (Brandon, approved from mockups 2026-11-17; built 2026-11-20). One layer over everything above:
   a dark band across the top, paper background, square corners, rules instead of boxes, large plain numbers, and the
   accent colour (the school's own, when it has one) kept for the one main action and for section markers.
   ===================================================================================================================== */
:root {
  --bg:#f4f1ea; --surface:#fbf9f4; --surface-2:#efebe1; --surface-3:#e4dfd3; --card:var(--surface);
  --line:#d9d3c6; --line-2:#c2bbab; --ink:#16181b; --ink-2:#3a3e45; --muted:#5b5f66;
  --radius:0px; --radius-sm:0px;
  --nav:#f4f1ea; --nav-hover:#e9e5da; --nav-active:#16181b;
  --band:#16181b; --band-ink:#f4f1ea; --band-muted:#b9b4aa;
}
body { background:var(--bg); }

/* ---- the band */
.top { background:var(--band); color:var(--band-ink); border-bottom:0; min-height:60px; }
.top .crumb { color:var(--band-ink); font-weight:700; font-size:15.5px; letter-spacing:.01em; }
.top .who, .top .who .who-name { color:var(--band-ink); }
.top .who .link { color:var(--band-muted); }
.top .avatar { background:var(--primary); color:#fff; border-radius:0; font-family:var(--mono); font-weight:500; }
.top .mark { color:var(--band-ink); }
.top .icon-btn, .top .menu-btn { color:var(--band-ink); border-color:#3a3e45; background:transparent; border-radius:0; }
.search-btn { background:#24272c; border-color:#3a3e45; color:#9aa0a8; }
.search-btn:hover { border-color:var(--band-ink); color:var(--band-ink); }
.search-btn kbd { background:transparent; border-color:#4a4f57; color:#9aa0a8; }
.banner { border-radius:0; }

/* ---- side menu: paper, with the top of it joining the band */
.side { background:var(--bg); border-right:2px solid var(--ink); }
.side > .mark, .side > a.mark { background:var(--band); color:var(--band-ink); margin:-16px -12px 14px; padding:0 22px; min-height:60px; display:flex; align-items:center; }
.side .mark svg rect { fill:var(--primary); }
.side .school { background:transparent; border:0; border-bottom:2px solid var(--ink); border-radius:0; padding:2px 10px 12px; font-size:15px; font-weight:700; }
.side .school small { font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.side .sect { font-family:var(--mono); font-size:11px; letter-spacing:.12em; }
.nav-item { border-radius:0; border-left:3px solid transparent; }
.nav-item:hover { background:var(--nav-hover); }
.nav-item.on { background:var(--ink); color:#fff; box-shadow:none; border-left-color:var(--primary); }
.nav-item.on .ic { opacity:1; }
.side .me { background:var(--bg); border-top:2px solid var(--ink); }
.badge { border-radius:0; font-family:var(--mono); }

/* ---- type */
h1 { font-size:34px; line-height:1.08; letter-spacing:-.022em; font-weight:700; margin:2px 0 8px; text-wrap:balance; }
main h2 { font-family:var(--mono); font-size:12.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); margin:32px 0 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
main h2::before { content:""; width:26px; height:6px; background:var(--primary); flex:none; }
main h3 { font-size:18px; letter-spacing:-.01em; }
.eyebrow { font-family:var(--mono); font-size:11.5px; letter-spacing:.12em; color:var(--muted); }
.page-head { border-bottom:8px solid var(--ink); padding-bottom:14px; margin-bottom:22px; align-items:flex-end; }
.page-head h1 { margin-bottom:0; }
/* headings that are titles inside a block, not section markers */
.upnext .continue h2, .panel.empty h2, .rp-dialog h2, .lesson h2, .block-text h2, .cert h2, .product h2 { font-family:inherit; font-size:20px; font-weight:700; letter-spacing:-.01em; text-transform:none; display:block; }
.upnext .continue h2::before, .panel.empty h2::before, .lesson h2::before, .block-text h2::before, .cert h2::before, .product h2::before { content:none; }

/* ---- controls */
.btn, a.btn { border-radius:0; border:2px solid var(--ink); background:transparent; color:var(--ink); font-weight:600; min-height:38px; }
.btn:hover:not(:disabled), a.btn:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.primary, a.btn.primary, .btn.next, a.btn.next { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:700; }
.btn.primary:hover:not(:disabled), a.btn.primary:hover, .btn.next:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); color:#fff; }
.btn.small, .btn.small-btn { border-width:1.5px; min-height:30px; }
.btn.danger { border-color:var(--danger); color:var(--danger); }
.btn.danger:hover:not(:disabled) { background:var(--danger); border-color:var(--danger); color:#fff; }
.btn.switch:hover:not(:disabled) { background:transparent; color:var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { border-radius:0; border-color:var(--line-2); background:#fff; }
.link { text-underline-offset:3px; }

/* ---- surfaces: flat, square; rules carry the structure */
.panel, .card { border-radius:0; background:var(--surface); border:1px solid var(--line-2); box-shadow:none; }
.module.panel { border:0; border-top:2px solid var(--ink); background:transparent; padding:16px 0 10px; }
.module.panel + .module.panel { margin-top:6px; }
details.panel > summary { cursor:pointer; }
table { border-radius:0; border:0; border-top:2px solid var(--ink); background:transparent; box-shadow:none; }
th { background:transparent; font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--line-2); }
td { border-bottom:1px solid var(--line); }
table.gb th.item, table.gb th.item b { font-family:inherit; letter-spacing:0; text-transform:none; font-size:13px; color:var(--ink); }
table.gb th.grp { background:var(--surface-2); }
table.gb th.sticky, table.gb td.sticky { background:var(--bg); }
table.kv th, table.gb tr.why td { background:var(--surface-2); }
.block-text table { border:0; background:var(--surface); } .block-text th { font-family:inherit; font-size:inherit; letter-spacing:0; text-transform:none; color:var(--ink); background:var(--surface-2); }
table.clickable tbody tr:hover td, table.gb td.editable:hover, table.gb td.editable:focus { background:var(--surface-2); }
.chip { border-radius:0; background:transparent; border:1.5px solid currentColor; font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; padding:1px 6px; color:var(--muted); }
.chip.ok, .chip.ok-chip, .chip.band-above { background:transparent; color:var(--ok); }
.chip.warn, .chip.band-near, .chip.level-aemt { background:transparent; color:var(--warn); }
.chip.bad, .chip.band-below, .chip.level-paramedic { background:transparent; color:var(--danger); }
.chip.info, .chip.tag, .chip.level-emt { background:transparent; color:var(--primary); }
.gs { border-radius:0; }
.notice { border-radius:0; }
.tile { border-radius:0; border:0; border-top:2px solid var(--ink); background:transparent; padding:10px 14px 10px 0; min-width:120px; }
.tile b { font-family:inherit; font-weight:700; font-size:34px; letter-spacing:-.03em; line-height:1; }
.meter, .meter span, progress { border-radius:0; }

/* ---- home: rules, numbers, no pastel icon squares */
.todo { border-bottom:1px solid var(--line-2); padding:14px 0; }
.todo .ic-wrap { display:none; }
.todo .t b { font-size:16px; }
.dash > * > .panel, .dash .panel { border:0; border-top:2px solid var(--ink); background:transparent; padding:6px 0 0; }
.upnext .continue { border-radius:0; padding:24px 26px; }
.upnext .continue .eyebrow { color:color-mix(in srgb, var(--primary) 55%, #fff); }
.need-n { font-size:30px; }
.ctabs { border-bottom-width:2px; }
.ctabs button { font-size:15px; }

/* ---- dialogs and search already follow this look; align the leftovers */
.avatar { border-radius:0; }
.scrim { background:rgb(22 24 27 / .55); }

/* ---- phone: bottom bar */
.botnav { display:none; }
@media (max-width:900px) {
  body.in-school:not(.exam-mode) .botnav:not([hidden]) { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; position:fixed; left:0; right:0; bottom:0; z-index:12; background:var(--band); padding-bottom:env(safe-area-inset-bottom, 0px); }
  .botnav a, .botnav button { display:flex; flex-direction:column; align-items:center; gap:3px; padding:9px 4px 10px; border:0; border-top:4px solid transparent; background:none; color:var(--band-muted); font:inherit; font-size:11.5px; font-weight:600; text-decoration:none; cursor:pointer; }
  .botnav a.on { color:#fff; border-top-color:var(--primary); }
  .botnav svg { display:block; }
  body.in-school:not(.exam-mode) main { padding-bottom:104px; }
  body.in-school:not(.exam-mode) .savebar { bottom:calc(58px + env(safe-area-inset-bottom, 0px)); }
  body.in-school .site-foot { padding-bottom:80px; }
  .side { z-index:20; }
  h1 { font-size:28px; }
  .page-head { border-bottom-width:6px; }
  .search-btn { background:transparent; }
}
@media (max-width:640px) { .top .who .who-name { display:none; } }

/* Field manual: home pages. */
.top .mark .wm, .side > .mark .wm, .side > a.mark .wm { color:var(--band-ink); }
.hello h1 { font-size:54px; letter-spacing:-.03em; line-height:.98; }
.hello-date { text-align:right; font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.hello-date b { display:block; font-family:inherit; font-family:"Plex", system-ui, sans-serif; font-size:26px; letter-spacing:-.01em; text-transform:none; color:var(--ink); font-weight:700; }
.course-card { border:0; border-top:2px solid var(--ink); background:transparent; padding:14px 0 6px; gap:12px; }
.course-card h3 { font-size:22px; letter-spacing:-.015em; }
.course-card .code { font-family:var(--mono); letter-spacing:.1em; }
.course-card .stat { text-align:right; } .course-card .stat b { display:block; font-size:44px; font-weight:700; letter-spacing:-.04em; line-height:.9; } .course-card .stat span { font-size:12.5px; color:var(--muted); }
.course-card .progress, .course-card .progress span { border-radius:0; } .course-card .progress { height:8px; background:var(--line); } .course-card .progress span { background:var(--ink); }
.course-card .todo { border-top:1px solid var(--line-2); padding:14px 0 4px; }
.course-card .todo.todo-next { background:var(--ink); color:#f4f1ea; border:0; padding:20px 22px; margin:4px 0 2px; }
.todo.todo-next .t b { font-size:22px; letter-spacing:-.015em; line-height:1.15; }
.todo.todo-next .t span { color:color-mix(in srgb, var(--primary) 55%, #fff); font-family:var(--mono); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; display:block; margin-bottom:4px; }
.todo.todo-next .t { display:flex; flex-direction:column-reverse; }
.todo.todo-next .btn { min-height:46px; padding:0 22px; font-size:16px; }
.panel.empty { border:0; border-top:2px solid var(--ink); background:transparent; }
@media (max-width:640px) {
  .hello h1 { font-size:40px; } .hello { flex-direction:column; align-items:flex-start; } .hello-date { text-align:left; }
  .course-card .todo.todo-next { flex-direction:column; align-items:stretch; } .todo.todo-next .btn { width:100%; }
}
/* Field manual: review flags on the analytics table read as plain words, so the table still fits the page. */
.chip.flag { font-family:inherit; text-transform:none; letter-spacing:0; font-size:12px; border:0; padding:1px 0; text-align:left; white-space:normal; text-decoration:underline; text-underline-offset:3px; }
table th { overflow-wrap:anywhere; }

/* Account security: sign-in help on a person's page, the school's sign-in security page. */
dl.kv { display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:8px 0 12px; }
dl.kv dt { color:var(--muted); font-size:13px; } dl.kv dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.panel-inset { border-left:3px solid var(--ink); padding:4px 0 4px 14px; margin:10px 0; max-width:520px; }
table.plain { width:100%; border-collapse:collapse; } table.plain td, table.plain th { padding:8px 10px 8px 0; border-bottom:1px solid var(--line-2); text-align:left; vertical-align:top; }
table.plain td.right { text-align:right; padding-right:0; }
.row.wrap { flex-wrap:wrap; }
#signInHelp { border-top:1px solid var(--line-2); margin-top:14px; padding-top:12px; }
@media (max-width:560px) { dl.kv { grid-template-columns:1fr; gap:0 0; } dl.kv dd { margin-bottom:8px; } }
#signInHelp details { margin-bottom:16px; }
.notice.twostep-due { margin-bottom:22px; }

/* =====================================================================================================================
   READABILITY (Brandon, 2026-11-20: "text very difficult to read"). Larger body text, darker secondary text, a lighter
   page, and labels in the ordinary typeface at a readable size: the small, wide-spaced, all-capitals typewriter labels
   are kept only for the few short tags where they cannot be mistaken for content (course codes, status tags).
   ===================================================================================================================== */
:root { --bg:#f8f6f1; --surface:#fffefb; --surface-2:#f1ede4; --muted:#40444b; --ink-2:#2a2d33; --line:#cfc8b9; --line-2:#b3ab9a; }
body { font-size:16.5px; line-height:1.6; }
.small { font-size:14.5px; } .muted { color:var(--muted); }
p, li, td, dd, label { overflow-wrap:break-word; }
main h2 { font-family:inherit; font-size:21px; font-weight:700; letter-spacing:-.01em; text-transform:none; margin:34px 0 12px; }
main h2::before { width:6px; height:20px; }
main h3 { font-size:18.5px; }
.eyebrow { font-size:13px; letter-spacing:.08em; color:var(--ink-2); }
th { font-family:inherit; font-size:14px; font-weight:600; letter-spacing:.01em; text-transform:none; color:var(--ink-2); }
td { font-size:16px; }
.chip { font-family:inherit; font-size:13px; font-weight:600; letter-spacing:.01em; text-transform:none; padding:1px 8px; }
.chip.ok, .chip.ok-chip, .chip.band-above { color:#1c6b3a; } .chip.warn, .chip.band-near, .chip.level-aemt { color:#8a5200; } .chip.bad, .chip.band-below, .chip.level-paramedic { color:#a3221b; }
.side .nav-item, .side a.nav-item { font-size:15.5px; }
.side .sect { font-family:inherit; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--ink-2); }
.side .school small { font-family:inherit; font-size:13px; letter-spacing:.03em; }
.course-card .code { font-size:13px; } .course-card .stat span { font-size:14px; }
.hello-date { font-family:inherit; font-size:14px; letter-spacing:.04em; color:var(--ink-2); }
.todo.todo-next .t span { font-family:inherit; font-size:13.5px; font-weight:600; letter-spacing:.04em; color:#ffc9a8; }
.todo .t span, .todo .t b { line-height:1.4; } .todo .t b { font-size:17px; }
.btn { font-size:15.5px; } .btn.small, .small-btn { font-size:14.5px; }
input, select, textarea { font-size:16px; }
.notice { font-size:16px; }
table.gb th.item, table.gb th.item b { font-size:14.5px; }
.ctabs button { font-size:16px; }
dl.kv dt { font-size:14.5px; }
@media (max-width:640px) { body { font-size:16.5px; } main h2 { font-size:19px; } }

/* A student's page for course staff. */
.stu-head { align-items:flex-end; }
.stu-step { display:flex; flex-direction:column; gap:8px; align-items:flex-end; } .stu-step select { min-width:220px; }
.stu-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:0; border-top:2px solid var(--ink); border-bottom:1px solid var(--line-2); margin:18px 0 14px; }
.stu-fact { text-align:left; background:none; border:0; border-right:1px solid var(--line); padding:14px 16px 12px 0; margin-right:16px; font:inherit; color:inherit; cursor:pointer; }
.stu-fact:last-child { border-right:0; }
.stu-fact b { display:block; font-size:34px; font-weight:700; letter-spacing:-.03em; line-height:1.05; } .stu-fact b small { font-size:17px; font-weight:500; color:var(--muted); letter-spacing:0; }
.stu-fact span { font-size:14.5px; color:var(--muted); }
.stu-fact:hover b, .stu-fact:focus-visible b { color:var(--primary); }
.stu-nav { display:flex; flex-wrap:wrap; gap:8px; position:sticky; top:0; z-index:5; background:var(--bg); padding:10px 0; border-bottom:1px solid var(--line); }
.stu-nav .grow { flex:1 1 20px; }
[id^="sec-"] { scroll-margin-top:70px; }
a.stu-open { font-size:13.5px; font-weight:600; white-space:nowrap; margin-left:6px; }
tr.focus-row > td { background:#fff3d6 !important; box-shadow:inset 0 2px 0 var(--primary), inset 0 -2px 0 var(--primary); }
@media (max-width:700px) { .stu-step { align-items:stretch; width:100%; } .stu-step select { width:100%; } .stu-fact { border-right:0; border-bottom:1px solid var(--line); margin-right:0; } }
/* Column headings never break in the middle of a word. */
table th { overflow-wrap:normal; word-break:normal; hyphens:none; }
#prTable th { white-space:nowrap; }

/* "Back to <student>": shown above pages opened from a student's page. */
.return-bar { display:flex; align-items:center; gap:10px 16px; flex-wrap:wrap; max-width:1120px; margin:14px 28px 0; padding:10px 16px; background:var(--surface); border:1px solid var(--line-2); border-left:6px solid var(--primary); font-size:15.5px; }
.return-bar[hidden] { display:none; }
.return-bar .return-to { font-weight:700; color:var(--ink); text-decoration:none; }
.return-bar .return-to:hover { text-decoration:underline; }
.return-bar .muted { flex:1; min-width:0; }
@media (max-width:700px) { .return-bar { margin:10px 16px 0; } }

/* Item Lab: a kept share link in the Share links table. */
.lab-link code { display:inline-block; max-width:34ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }

/* Item Lab: four places, one search, and the less-used controls folded away. */
.lab-find { position:relative; display:grid; gap:4px; max-width:720px; margin:14px 0 18px; }
.lab-find label { font-weight:600; }
.lab-find input { width:100%; padding:11px 14px; font-size:16.5px; }
.lab-find-out { border:1px solid var(--line-2); background:var(--surface); padding:6px 16px 12px; max-height:60vh; overflow:auto; }
.lab-find-out[hidden] { display:none; }
.lab-find-out h3 { font-size:14px; margin:12px 0 4px; }
.lab-find-out ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.lab-crumb { margin:14px 0 4px; display:flex; gap:14px; align-items:baseline; flex-wrap:wrap; }
.lab-more { margin:10px 0; }
.lab-more > summary { cursor:pointer; font-weight:600; padding:6px 0; }
.lab-more[open] > summary { margin-bottom:8px; }
#selRow[hidden] { display:none; }

/* =====================================================================================================================
   ROUTE LOOK (Brandon, 2026-11-28: "this is the kind of design that I wanted for everything"). One layer over
   everything above, matching the public home page: the Figtree typeface, deep navy for the frame (top band, side menu,
   "continue" cards), a warm light page for reading, white rounded cards, pill-shaped tags and tabs, and orange kept for
   the main action and "you are here". A school's own colour still replaces the orange (applyAccent in brand.js).
   Reading surfaces stay light on purpose: lessons, exams and the gradebook are read for long stretches.
   ===================================================================================================================== */
@font-face { font-family:"Figtree"; src:url("/fonts/Figtree-Variable.woff2") format("woff2"); font-weight:300 900; font-display:swap; }
:root {
  --bg:#f5f2ec; --surface:#ffffff; --surface-2:#f3efe7; --surface-3:#e8e2d6; --card:var(--surface);
  --line:#e6e0d5; --line-2:#d2cabb; --ink:#1c2430; --ink-2:#34404e; --muted:#4d5766;
  --primary:#c24e0c; --primary-hover:#a3400a; --primary-soft:#ffeada; --brand:#c24e0c;
  --next:var(--primary); --next-hover:var(--primary-hover); --next-soft:var(--primary-soft);
  --navy:#0e1621; --navy-2:#18263a; --navy-3:#24344a; --navy-ink:#f3efe8; --navy-muted:#9fb0c3;
  --on-navy:color-mix(in srgb, var(--primary) 45%, #ffb066);
  --band:var(--navy); --band-ink:var(--navy-ink); --band-muted:var(--navy-muted);
  --nav:var(--navy); --nav-ink:#c6d0dc; --nav-hover:var(--navy-2); --nav-active:var(--navy-2);
  --radius:18px; --radius-sm:12px;
  --focus:0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
}
body { font-family:"Figtree", "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); }

/* ---- frame: navy band and side menu */
.top { background:var(--navy); color:var(--navy-ink); min-height:62px; }
.top .avatar { border-radius:50%; font-family:inherit; font-weight:800; background:var(--on-navy); color:#1a1005; }
.top .icon-btn, .top .menu-btn { border-radius:12px; border-color:var(--navy-3); }
.search-btn { background:var(--navy-2); border-color:transparent; color:var(--navy-muted); border-radius:999px; }
.search-btn:hover { border-color:var(--navy-muted); color:var(--navy-ink); }
.search-btn kbd { border-color:var(--navy-3); color:var(--navy-muted); border-radius:6px; }
.side { background:var(--navy); color:var(--nav-ink); border-right:0; }
.side > .mark, .side > a.mark { background:transparent; min-height:62px; }
.side .mark svg rect { fill:var(--primary); }
.side .school { color:#fff; border-bottom:1px solid var(--navy-3); padding:2px 10px 14px; }
.side .school small { color:var(--navy-muted); }
.side .school select { background:var(--navy-2); color:#fff; border-color:var(--navy-3); border-radius:10px; }
.side .sect { color:var(--navy-muted); }
.nav-item, .side a.nav-item { border-radius:12px; border-left:0; color:var(--nav-ink); margin:1px 0; }
.nav-item:hover { background:var(--navy-2); color:#fff; }
.nav-item.on { background:var(--navy-2); color:#fff; box-shadow:inset 4px 0 0 var(--on-navy); }
.side .me { background:var(--navy); border-top:1px solid var(--navy-3); }
.side .me b { color:#fff; } .side .me button, .side .me .link { color:var(--navy-muted); }
.badge { border-radius:999px; font-family:inherit; background:var(--on-navy); color:#1a1005; }
.banner { border-radius:0; }

/* ---- type */
h1 { font-weight:800; letter-spacing:-.025em; }
main h2 { font-size:22px; font-weight:800; letter-spacing:-.015em; }
main h2::before { content:none; }
main h3 { font-weight:700; }
.eyebrow { font-family:inherit; font-weight:700; letter-spacing:.02em; text-transform:none; font-size:15px; color:var(--primary); }
.page-head { border-bottom:0; padding-bottom:6px; margin-bottom:18px; }
a, .link { color:var(--primary); }
code { border-radius:8px; }

/* ---- controls */
.btn, a.btn { border-radius:12px; border:1.5px solid var(--line-2); background:var(--surface); color:var(--ink); font-weight:650; min-height:40px; padding:0 16px; }
.btn:hover:not(:disabled), a.btn:hover { background:var(--surface-2); color:var(--ink); border-color:var(--ink-2); }
.btn.primary, a.btn.primary, .btn.next, a.btn.next { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:700; }
.btn.primary:hover:not(:disabled), a.btn.primary:hover, .btn.next:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); color:#fff; }
.btn.small, .btn.small-btn { border-width:1.5px; min-height:32px; border-radius:10px; padding:0 12px; }
.btn.danger { border-color:color-mix(in srgb, var(--danger) 45%, #fff); color:var(--danger); background:var(--surface); }
.btn.danger:hover:not(:disabled) { background:var(--danger); border-color:var(--danger); color:#fff; }
.btn.switch:hover:not(:disabled) { background:var(--surface); color:var(--ink); }
.icon-btn { border-radius:12px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { border-radius:12px; border-color:var(--line-2); background:#fff; }
.avatar { border-radius:50%; }

/* ---- surfaces: white rounded cards on the warm page */
.panel, .card { border-radius:var(--radius); background:var(--surface); border:1px solid var(--line); }
.module.panel { border:1px solid var(--line); background:var(--surface); padding:18px 22px 14px; border-radius:var(--radius); }
.module.panel + .module.panel { margin-top:14px; }
.panel.empty { border:1px dashed var(--line-2); background:transparent; border-radius:var(--radius); }
.dash > * > .panel, .dash .panel { border:1px solid var(--line); background:var(--surface); padding:18px 22px; border-radius:var(--radius); }
.notice { border-radius:14px; }
.gs, .meter, .meter span, progress { border-radius:999px; }
.rp-dialog, dialog { border-radius:22px; }
.return-bar { border-radius:14px; border:1px solid var(--line); border-left:6px solid var(--primary); }
.lab-find-out { border-radius:14px; }
.savebar { background:var(--bg); }

/* ---- tables: light rules, no heavy bar */
table { border-top:1px solid var(--line-2); }
th { color:var(--ink-2); font-weight:700; border-bottom:1px solid var(--line-2); }
td { border-bottom:1px solid var(--line); }
table.gb th.grp, table.kv th, table.gb tr.why td { background:var(--surface-2); }
table.gb th.sticky, table.gb td.sticky { background:var(--bg); }
.panel table.gb th.sticky, .panel table.gb td.sticky { background:var(--surface); }
.block-text table { border-radius:12px; overflow:hidden; }

/* ---- tags: soft pills that say what they mean */
.chip { border-radius:999px; border:0; background:var(--surface-3); color:var(--ink-2); font-weight:700; font-size:13px; padding:3px 11px; }
.chip.ok, .chip.ok-chip, .chip.band-above { background:var(--ok-soft); color:#1c6b3a; }
.chip.warn, .chip.band-near, .chip.level-aemt { background:var(--warn-soft); color:#7a4a00; }
.chip.bad, .chip.band-below, .chip.level-paramedic { background:var(--danger-soft); color:#a3221b; }
.chip.info, .chip.tag, .chip.level-emt { background:var(--primary-soft); color:var(--primary-hover); }
/* A tag stays on one line inside a table on a wide screen; anywhere narrow it may wrap so the page never scrolls sideways. */
@media (min-width:901px) { td .chip { white-space:nowrap; } }
.chip.flag { background:transparent; border-radius:0; padding:1px 0; white-space:normal; }

/* ---- tabs: pills; the one you are on is navy */
.ctabs, .tabs { border-bottom:0; gap:6px; flex-wrap:nowrap; padding:4px 0; }
.ctabs button, .tabs button { border:0; border-radius:999px; padding:9px 18px; font-weight:700; color:var(--ink-2); background:transparent; }
.ctabs button:hover, .tabs button:hover { background:var(--surface-3); color:var(--ink); }
.ctabs button[aria-selected="true"], .tabs button.on, .tabs button[aria-selected="true"] { background:var(--navy); color:#fff; border-color:transparent; }

/* ---- numbers */
.tile { border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); padding:14px 18px; min-width:128px; }
.tile b { font-weight:800; }
.cards .stat { border-radius:var(--radius); border:1px solid var(--line); background:var(--surface); padding:16px 18px; }
.need-n { font-family:inherit; font-weight:800; }
.needs { border-top:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:4px 20px; }
.need:last-child { border-bottom:0; }

/* ---- home and course: the journey */
.hello h1 { font-size:46px; letter-spacing:-.03em; line-height:1.02; }
.hello-date b { font-family:inherit; font-weight:800; }
.course-card { border:1px solid var(--line); background:var(--surface); border-radius:22px; padding:22px 24px 16px; }
.course-card h3 { font-weight:800; }
.course-card .code { font-family:inherit; font-weight:700; letter-spacing:.02em; color:var(--primary); }
.course-card .stat b { font-weight:800; }
.course-card .progress, .course-card .progress span { border-radius:999px; }
.course-card .progress { background:var(--surface-3); height:8px; }
.course-card .progress span { background:linear-gradient(90deg, var(--primary), var(--on-navy)); }
.course-card .todo.todo-next, .upnext .continue { background:var(--navy); color:var(--navy-ink); border-radius:22px 22px 22px 64px; }
.upnext .continue { padding:26px 30px 30px; }
.upnext .continue .eyebrow, .todo.todo-next .t span { color:var(--on-navy); }
.upnext .continue .muted { color:var(--navy-muted); }
.upnext .continue .meter { background:var(--navy-3); }
.upnext .continue .meter span { background:linear-gradient(90deg, var(--primary), var(--on-navy)); }
.todo { border-bottom:1px solid var(--line); }
.stu-nav .btn { border-radius:999px; }

/* ---- exams: the same frame colours, nothing else changed */
.exam-bar { background:var(--navy); }
.exam-timer { background:var(--navy-2); border-radius:10px; }
.opt { border-radius:14px; }
.opt:has(input:checked) { border-color:var(--navy); background:#eef2f7; box-shadow:inset 4px 0 0 var(--navy); }

/* ---- phone */
@media (max-width:900px) {
  body.in-school:not(.exam-mode) .botnav:not([hidden]) { background:var(--navy); }
  .botnav a, .botnav button { color:var(--navy-muted); border-top-width:3px; }
  .botnav a.on { color:#fff; border-top-color:var(--on-navy); }
  .hello h1 { font-size:38px; }
  .course-card { padding:18px 16px 12px; }
}

/* Demo front page: "Select your journey". A navy dispatch band, then three seats that phase in one after another. */
.landing.demo-start { max-width:1080px; }
.demo-hero { position:relative; background:var(--navy); color:var(--navy-ink); border-radius:26px 26px 26px 90px; padding:38px 44px 30px 56px; margin:8px 0 0; overflow:hidden; }
.demo-hero h1 { color:#fff; font-size:clamp(38px, 5.4vw, 60px); line-height:1.02; letter-spacing:-.03em; margin:10px 0 12px; }
.demo-tone { display:flex; align-items:center; gap:10px; margin:0; font-weight:700; font-size:14.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--on-navy); }
.beacon { width:10px; height:10px; border-radius:50%; background:var(--on-navy); flex:none; }
.demo-lead { font-size:19px; max-width:38em; margin:0; color:#cfd8e3; }
.demo-routeline { display:block; width:100%; height:54px; margin-top:18px; }
.demo-routeline path { stroke:var(--on-navy); }
.demo-routeline circle { fill:var(--navy); stroke:var(--on-navy); stroke-width:4; }
.role-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; margin:22px 0 30px; }
.role-card { position:relative; display:flex; flex-direction:column; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:22px 22px 22px 64px; padding:24px 26px 28px 30px; }
.role-card h2 { margin:2px 0 0; font-size:28px; }
.role-card p { margin:0; }
.role-card .btn { margin-top:auto; align-self:flex-start; min-height:48px; padding:0 22px; font-size:16.5px; }
.role-card .small { margin-bottom:14px; }
.role-call { display:flex; align-items:center; gap:10px; font-weight:700; font-size:13.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); }
.role-n { width:34px; height:34px; border-radius:50%; background:var(--navy); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; letter-spacing:0; }
.role-card:hover { border-color:var(--primary); }
.more-people { margin-bottom:14px; } .more-people > summary { cursor:pointer; font-weight:700; }
@media (max-width:860px) { .role-grid { grid-template-columns:minmax(0, 1fr); } .demo-hero { padding:28px 24px 22px 30px; border-radius:22px 22px 22px 56px; } }
@keyframes rp-phase-in { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
@keyframes rp-beacon { 0%, 100% { opacity:1; box-shadow:0 0 0 0 color-mix(in srgb, var(--on-navy) 60%, transparent); } 50% { opacity:.45; box-shadow:0 0 0 8px transparent; } }
@keyframes rp-route-run { to { stroke-dashoffset:-42; } }
@media (prefers-reduced-motion: no-preference) {
  .demo-start .phase { animation:rp-phase-in .55s cubic-bezier(.2, .7, .2, 1) both; }
  .demo-hero .phase:nth-child(1) { animation-delay:.05s; } .demo-hero .phase:nth-child(2) { animation-delay:.18s; }
  .demo-hero .phase:nth-child(3) { animation-delay:.32s; } .demo-hero .phase:nth-child(4) { animation-delay:.46s; }
  .role-grid .phase:nth-child(1) { animation-delay:.62s; } .role-grid .phase:nth-child(2) { animation-delay:.78s; } .role-grid .phase:nth-child(3) { animation-delay:.94s; }
  .demo-start > details.phase { animation-delay:1.15s; }
  .beacon { animation:rp-beacon 1.8s ease-in-out infinite; }
  .demo-routeline path { animation:rp-route-run 2.2s linear infinite; }
  .tour { animation:rp-phase-in .35s ease-out both; }
}

/* Demo tour panel: sits over the page's bottom corner, out of the way of the page it describes. */
.tour { position:fixed; right:20px; bottom:20px; z-index:30; width:min(400px, calc(100vw - 32px)); background:var(--navy); color:var(--navy-ink); border-radius:22px 22px 22px 56px; padding:20px 22px 20px 26px; box-shadow:0 18px 50px -12px rgb(14 22 33 / .55); }
.tour h2 { margin:6px 0 4px; font-size:21px; font-weight:800; color:#fff; letter-spacing:-.015em; }
.tour h2::before { content:none; }
.tour p { margin:0; color:#d3dbe5; font-size:15.5px; line-height:1.5; }
.tour .tour-kicker { color:var(--on-navy); font-weight:700; font-size:14px; }
.tour-route { display:flex; align-items:center; gap:0; margin:10px 0 2px; }
.tour-route span { width:12px; height:12px; border-radius:50%; border:2px solid var(--navy-3); flex:none; position:relative; }
.tour-route span + span { margin-left:22px; }
.tour-route span + span::before { content:""; position:absolute; right:100%; top:50%; width:22px; height:2px; margin:-1px 2px 0 0; background:var(--navy-3); }
.tour-route span.done { background:var(--on-navy); border-color:var(--on-navy); }
.tour-route span.done + span::before { background:var(--on-navy); }
.tour-route span.here { background:#fff; border-color:var(--on-navy); box-shadow:0 0 0 4px color-mix(in srgb, var(--on-navy) 30%, transparent); }
.tour-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:16px; }
.tour .btn { background:transparent; color:#fff; border-color:var(--navy-3); }
.tour .btn:hover:not(:disabled) { background:var(--navy-2); color:#fff; border-color:var(--navy-muted); }
.tour .btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; }
.tour .btn.primary:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); }
.tour .link { color:var(--navy-muted); margin-left:auto; }
body.exam-mode .tour { display:none; }
body.has-tour:not(.exam-mode) main { padding-bottom:300px; }
@media (max-width:900px) { body.in-school .tour { bottom:calc(72px + env(safe-area-inset-bottom, 0px)); right:16px; } }

/* Write a question by hand. */
.qw { max-width:860px; }
.qw .panel > h2 { margin-top:0; }
.kind-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kind-grid.two-up { grid-template-columns:repeat(2, minmax(0, 220px)); }
.kind { display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding:14px 16px; border:1.5px solid var(--line-2); border-radius:16px; background:var(--surface); cursor:pointer; }
.kind > span { display:flex; flex-direction:column; gap:2px; min-width:0; }
.kind input { margin-top:5px; flex:none; }
.kind:hover { border-color:var(--ink-2); }
.kind:has(input:checked) { border-color:var(--navy); background:#eef2f7; box-shadow:inset 4px 0 0 var(--navy); }
.fmt-bar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.fmt-bar .btn { min-width:38px; font-size:16px; }
.qw textarea { width:100%; resize:vertical; font-size:17px; line-height:1.5; }
.qw-preview:not(:empty) { border-left:4px solid var(--line-2); padding:2px 0 2px 14px; }
.qw-preview .pre, .stem-view, .pre { white-space:pre-wrap; }
.choices { display:grid; gap:10px; }
.choice { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border:1.5px solid var(--line-2); border-radius:16px; background:var(--surface); }
.choice.is-right { border-color:var(--ok); background:var(--ok-soft); }
.choice-mark { display:flex; flex-direction:column; align-items:center; gap:4px; font-weight:800; width:34px; flex:none; padding-top:6px; cursor:pointer; }
.choice-mark input { width:20px; height:20px; }
.choice details { margin-top:4px; } .choice details summary { cursor:pointer; color:var(--muted); }
.narrow-num { max-width:160px; }
@media (max-width:700px) { .kind-grid { grid-template-columns:minmax(0, 1fr); } .choice { flex-wrap:wrap; } }

/* Skill sheets: preview before publishing, scenarios, retire. */
.preview-sheet { border:2px dashed var(--line-2); background:var(--surface); margin-top:14px; }
.preview-sheet .preview-title { font-size:26px; font-weight:800; margin:2px 0 4px; }
/* Scenario panel: the navy card an evaluator reads from, beside the sheet. */
.eval-two { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); gap:22px; align-items:start; }
.eval-side { display:grid; gap:14px; min-width:0; position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto; border-radius:var(--radius); }
.eval-main { min-width:0; }
@media (max-width:980px) { .eval-two { grid-template-columns:minmax(0, 1fr); } .eval-side { position:static; max-height:none; overflow:visible; } }
.scen-panel { background:var(--navy); color:var(--on-navy); border-radius:var(--radius) var(--radius) var(--radius) 48px; padding:20px 22px 24px; min-width:0; }
.scen-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.scen-eyebrow { margin:0; font-weight:700; color:#e58a45; }
.scen-pick { min-width:0; max-width:100%; flex:1 1 180px; } .scen-eyebrow { flex:none; }
.scen-pick select { width:100%; max-width:100%; background:#18263a; color:#fff; border:0; border-radius:12px; padding:9px 12px; font:inherit; font-weight:600; }
.scen-chip { padding:6px 12px; border-radius:999px; background:#18263a; color:#fff; font-weight:600; font-size:14.5px; }
.scen-read { margin-top:12px; font-size:19px; line-height:1.55; color:#fff; }
.scen-read > :first-child, .scen-ask .block-text > :first-child { margin-top:0; } .scen-read > :last-child, .scen-ask .block-text > :last-child { margin-bottom:0; }
.scen-ask { margin-top:14px; padding:12px 16px; border-radius:16px; background:#18263a; color:#d3dbe5; }
.scen-label { margin:16px 0 8px; font-weight:700; font-size:13.5px; letter-spacing:.05em; text-transform:uppercase; color:#9fb0c3; }
.scen-ask .scen-label { margin:0 0 6px; color:#e58a45; }
.scen-sets { display:grid; gap:10px; }
.scen-set { border-radius:16px; background:#18263a; padding:4px 14px; }
.scen-set summary { display:flex; align-items:center; gap:10px; padding:10px 0; cursor:pointer; list-style:none; min-height:44px; }
.scen-set summary::-webkit-details-marker { display:none; }
.scen-set summary b { flex:1; color:#fff; font-size:17px; }
.scen-dot { width:12px; height:12px; border-radius:50%; border:2px solid #5b6b80; flex:none; } .scen-dot.on { background:#e58a45; border-color:#e58a45; }
.scen-when, .scen-foot { font-size:14px; color:#9fb0c3; }
.scen-foot { margin:14px 0 0; }
.scen-vrow { display:flex; align-items:center; gap:12px; padding:7px 0; border-top:1px solid #24344a; font-size:16.5px; }
.scen-vrow > span:first-child { flex:1; color:#9fb0c3; min-width:0; } .scen-vrow b { color:#fff; text-align:right; overflow-wrap:anywhere; }
.scen-note > span:first-child { color:#d3dbe5; }
.scen-give { font:inherit; font-size:14px; font-weight:700; min-width:68px; min-height:36px; padding:0 12px; border-radius:10px; border:1.5px solid #5b6b80; background:transparent; color:#fff; cursor:pointer; flex:none; }
.scen-give.on { background:#e58a45; border-color:#e58a45; color:#1a1005; font-variant-numeric:tabular-nums; }
.scen-at { font-size:14px; font-weight:700; color:#e58a45; font-variant-numeric:tabular-nums; flex:none; }
.scen-all { margin:8px 0 10px; }
.scen-row.is-retired { opacity:.7; } .scen-sum { margin:4px 0 0; }
.scen-form h3 { margin:6px 0 0; font-size:18px; }
.vit-set { border:1.5px solid var(--line-2); border-radius:16px; padding:14px 16px; margin:0; display:grid; gap:10px; min-width:0; }
.vit-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.vit-set details summary { cursor:pointer; color:var(--muted); font-size:14.5px; } .vit-set details .vit-grid { margin-top:8px; }
@media (max-width:700px) { .vit-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.scen-preview { max-width:560px; }
/* Station clock and recorded times. */
.clock-box { display:grid; gap:10px; margin:0; }
.clock-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.clock-top .eyebrow { margin:0; }
.clock-now { font-size:38px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1; }
.quick-marks .btn { min-height:40px; }
.clock-box details summary { cursor:pointer; font-weight:600; min-height:36px; }
.rate-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:10px; }
.rate-tap { min-height:64px; padding:0 22px; font-size:16px; touch-action:manipulation; }
.rate-now { font-size:24px; font-weight:800; font-variant-numeric:tabular-nums; } .rate-row p { margin:0; }
.time-list { list-style:none; margin:0; padding:0; display:grid; }
.time-list li { display:flex; align-items:center; gap:12px; padding:6px 0; border-top:1px solid var(--line); }
.time-list li b { min-width:3.2em; font-variant-numeric:tabular-nums; } .time-list li span { flex:1; min-width:0; overflow-wrap:anywhere; }
.time-list .x { border:0; background:none; font-size:20px; line-height:1; color:var(--muted); cursor:pointer; min-width:36px; min-height:36px; }
.times-panel h2 { margin:0 0 4px; font-size:19px; }
.file-btn { cursor:pointer; }
@media (max-width:600px) { .cert-sign { grid-template-columns:1fr; } .cert-meta { grid-template-columns:1fr; } }
.cert-foot { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:8px; }
.cert-qr svg { width:84px; height:84px; display:block; }
.cert-foot .cert-verify { text-align:left; margin:0; }
.w-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; }
.w-qr svg { width:52px; height:52px; display:block; }
.narrow-form { max-width:520px; }
.catalog-signin { margin-top:28px; }

/* ---- seats for organizations */
.notice.ok-note { background:var(--ok-soft); border-color:transparent; color:var(--ink); }
.seats-box { margin-top:12px; border-top:1px solid var(--line, #e3e7ee); padding-top:10px; }
.seats-box summary { cursor:pointer; padding:4px 0; }
.seats-box .stack { margin-top:8px; max-width:520px; }
.seat-total { font-weight:600; margin:0; }
.redeem-box { margin-top:18px; }
.redeem-box input { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform:uppercase; letter-spacing:.06em; max-width:220px; }
.seat-order { margin-bottom:16px; }
.seat-order h3 { margin:16px 0 4px; font-size:15px; }
.seat-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:12px; margin:10px 0; }
.code-pill { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:17px; font-weight:700; letter-spacing:.08em; padding:6px 12px; border-radius:var(--radius-sm); background:var(--primary-soft); color:var(--primary-hover); }
.seat-order textarea { min-width:220px; flex:1; }
.tier-row { gap:12px; align-items:center; }
.tier-row label { display:flex; gap:6px; align-items:center; }
@media (max-width:640px) { .seat-order .grow-input { width:100%; } }

/* ---- lesson-to-lesson navigation */
.lesson-nav { margin:18px 0 8px; }
.lesson-nav .btn { max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:640px) { .lesson-nav .row { flex-direction:column-reverse; align-items:stretch; gap:8px; } .lesson-nav .btn { max-width:none; } }
.email-text { white-space:pre-wrap; word-break:break-word; background:var(--surface-2); padding:12px 14px; border-radius:var(--radius-sm); font-size:13px; max-height:420px; overflow:auto; }

/* ---- owner console: income bars */
.bars { display:flex; align-items:flex-end; gap:10px; height:200px; padding:8px 0 4px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.bar-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; min-width:0; }
.bar { width:100%; max-width:56px; background:var(--primary, #0e7069); border-radius:4px 4px 0 0; }
.bar-val { font-size:11px; color:var(--muted); margin-bottom:4px; white-space:nowrap; }
.bar-lbl { font-size:12px; color:var(--muted); margin-top:6px; }

/* ---- owner console stat cards */
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; margin:14px 0 18px; }
.cards .stat { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px 16px; }

/* ---- owner console */
.cards .stat.kpi b { font-size:22px; }
.cards .stat.kpi small { display:block; margin-top:2px; }
.owner-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; align-items:start; }
.owner-grid > .panel { margin:0; }
.school-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:12px; margin-top:8px; }
.school-card { text-align:left; display:flex; flex-direction:column; gap:4px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); font:inherit; color:inherit; cursor:pointer; }
.school-card:hover, .school-card:focus-visible { border-color:var(--primary); background:var(--primary-soft); }
table.clickable tbody tr[data-go] { cursor:pointer; }
table.clickable tbody tr[data-go]:hover td, table.clickable tbody tr[data-go]:focus td { background:#f3f6f9; }
.add-admin { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.add-admin summary { cursor:pointer; }
.todo .btn + .link { margin-left:6px; }

/* ---- skill sheets v2: sections, practice/graded, tablet bar */
.eval-sections { counter-reset:st; }
.eval-sections .eval-steps { counter-reset:none; margin:8px 0 18px; }
.eval-sec-head { display:flex; align-items:center; gap:12px; margin-top:14px; padding-bottom:6px; border-bottom:2px solid var(--primary-soft); }
.eval-sec-head h2 { margin:0; font-size:17px; flex:1; }
.sec-score { font-weight:700; font-size:14px; color:var(--primary); white-space:nowrap; }
.small-btn { padding:6px 12px; font-size:13px; min-height:36px; }
.seg button { min-height:44px; min-width:76px; font-size:15px; }
.mode-seg { margin-top:8px; }
.eval-bar { position:sticky; bottom:0; z-index:4; margin:16px -4px 0; padding:10px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 -4px 14px rgba(14,26,43,.08); }
.eval-bar-in { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.eval-bar-in b { font-size:18px; }
.eval-bar .grow { flex:1; }
.eval-bar .btn { min-height:44px; }
.staff-note { border-left:4px solid var(--warn); }
.sec-edit .sec-head { gap:10px; align-items:center; margin-bottom:8px; }
.sec-title { flex:1; min-width:220px; font-weight:600; font-size:15px; }
@media print { .eval-bar, .mode-seg { display:none !important; } }
.mode-seg button.on { background:var(--primary); color:#fff; }
.gb th.nocount, .gb td.nocount { background:#f7f8fa; color:var(--muted); }
.gb th.grp.nocount { font-style:italic; }
/* School billing */
.price-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin-top:6px; }
.price-grid label { font-size:13px; }
#bForm .grow, #book .grow { grid-column:1 / -1; }
td.nowrap { white-space:nowrap; }
ul.tight { margin:4px 0 0; padding-left:18px; } ul.tight li { margin:3px 0; }
.row.wrap { flex-wrap:wrap; margin:12px 0; }
details.inline { display:inline-block; } details.inline > summary { list-style:none; } details.inline > summary::-webkit-details-marker { display:none; }
.buy-form { align-items:end; padding:12px; margin-top:12px; background:var(--primary-soft, #e8f3f2); border-radius:var(--radius-sm); }
.buy-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.buy-form select { font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.buy-form #buyTotal { align-self:center; font-size:15px; }
.access-banner { margin:0 0 16px; }
.school-access { display:flex; flex-direction:column; gap:6px; margin:6px 0 18px; }
.school-access .row { justify-content:space-between; padding:8px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.tier-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin:10px 0; }
.tier-card { display:flex; flex-direction:column; gap:6px; padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.tier-card.on { border:2px solid var(--primary); }
.tier-card .tier-price { font-size:22px; font-weight:700; } .tier-card .tier-price small { font-size:13px; font-weight:400; color:var(--muted); }
.tier-card .btn { margin-top:auto; }
.buy-form label input, .buy-form label select { flex:none; }
.buy-form label input { width:110px; }
/* Clinical shifts with several patients */
.patient { border-top:1px solid var(--line); padding-top:12px; margin-top:14px; }
.patient h3 { margin:0 0 6px; font-size:15px; }
.tracked-skills td { vertical-align:middle; }
.tracked-skills tr.on td:first-child { font-weight:600; }
.tracked-skills tr.on { background:var(--ok-soft); }
.stepper { display:inline-flex; align-items:center; gap:6px; }
.stepper input { width:56px; text-align:center; font:inherit; padding:6px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.stepper .btn { min-width:40px; min-height:40px; font-size:18px; padding:0; }
.track-edit input:not([type=number]) { min-width:200px; }
.track-edit input[type=number] { width:80px; }
.track-edit input, .track-edit select { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.pt-row .btn, .pt-row .link { flex:none; }
.skill-progress td, .skill-progress th { white-space:nowrap; }
.kind-seg { margin:0 0 4px; } .kind-seg button.on { background:var(--primary); color:#fff; }
/* Video library and playlists */
ol.pl-items { margin:0; padding-left:22px; } ol.pl-items li { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--line); }
.pl-progress td, .pl-progress th { text-align:center; } .pl-progress td:first-child, .pl-progress th:first-child { text-align:left; }
.pl-progress .ok-cell { background:var(--ok-soft); font-weight:600; }
.watch-layout { display:grid; grid-template-columns:minmax(0, 2.2fr) minmax(220px, 1fr); gap:18px; align-items:start; }
@media (max-width:860px) { .watch-layout { grid-template-columns:1fr; } }
ol.pl-list { margin:0; padding:10px 10px 10px 30px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
ol.pl-list li { padding:6px 0; display:flex; justify-content:space-between; gap:8px; } ol.pl-list li.on button { font-weight:700; }
ol.pl-list .ok { color:var(--ok, #1a7f4b); font-weight:600; }
#assign { align-items:flex-end; } #assign select { flex:1 1 100%; min-width:0; }
#assign label { display:flex; flex-direction:column; gap:4px; } #assign label input { flex:none; } #assign .btn { flex:none; }

/* Owner console > Outreach: suggested replies and agent keys */
.inner-panel { margin:12px 0; border:1px solid var(--line); box-shadow:none; }
.inner-panel label { display:block; margin:8px 0; }
.inner-panel input, .inner-panel textarea { width:100%; box-sizing:border-box; }
.keybox { display:block; padding:8px 10px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius-sm); word-break:break-all; font-size:13px; flex:1; min-width:0; }

/* Demo sign-in page: grouped by role, with level chips and a "Try" hint per person */
.demo-jump { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 6px; }
.demo-jump a { padding:6px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink-2); text-decoration:none; font-size:14px; font-weight:600; }
.demo-jump a:hover { border-color:var(--primary); color:var(--primary); }
.demo-group { margin-top:22px; }
.demo-group h2 { margin-bottom:2px; }
.demo-group > p { margin:0 0 12px; }
.persona .chips { display:flex; flex-wrap:wrap; gap:6px; }
.persona .try { margin:0; color:var(--ink-2); text-align:left; line-height:1.45; }
.chip.level-emt { background:var(--primary-soft); color:var(--primary); }
.chip.level-aemt { background:var(--next-soft); color:var(--warn); }
.chip.level-paramedic { background:var(--danger-soft); color:var(--danger); }
.persona > .row { flex-wrap:nowrap; align-items:flex-start; }
.persona > .row > div { min-width:0; }
/* CPR course rosters */
table.clickable tbody tr[data-k] { cursor:pointer; }
table.clickable tbody tr[data-k]:hover td, table.clickable tbody tr[data-k]:focus td { background:#f3f6f9; }
.cpr-add { align-items:flex-end; margin:0 0 12px; }
.cpr-add label { display:flex; flex-direction:column; gap:5px; font-size:13.5px; font-weight:550; color:var(--ink-2); flex:1 1 260px; }
.cpr-add select, #addI, #addSt { font:inherit; padding:7px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); max-width:100%; }
#walk { margin:0 0 12px; } #walk summary { cursor:pointer; font-weight:600; } #walk form { margin-top:12px; align-items:end; }
.cpr-students td, .cpr-creds td, table[data-cpr] td { vertical-align:middle; }
.cpr-students input, .cpr-students select, .cpr-creds input, tr[data-i] input { font:inherit; font-size:13.5px; padding:6px 8px; border:1px solid var(--line-2); border-radius:6px; background:var(--surface); min-width:0; }
.cpr-students input:disabled, .cpr-students select:disabled, tr[data-i] input:disabled { background:var(--surface-2); color:var(--ink-2); }
/* Students table: fixed columns so everything fits a 1280px laptop window without sideways scrolling. */
table.cpr-students { table-layout:fixed; min-width:720px; }
table.cpr-students th, table.cpr-students td { padding:8px 6px; }
table.cpr-students th:first-child, table.cpr-students td:first-child { padding-left:12px; }
table.cpr-students col.c-name { width:auto; } table.cpr-students col.c-cred { width:96px; } table.cpr-students col.c-num { width:64px; }
table.cpr-students col.c-skill { width:72px; } table.cpr-students col.c-res { width:108px; } table.cpr-students col.c-date { width:136px; } table.cpr-students col.c-act { width:64px; }
table.cpr-students input, table.cpr-students select { width:100%; }
table.cpr-students td.num { width:auto; font-size:13px; }
.cpr-meta { overflow-wrap:anywhere; line-height:1.4; margin-top:2px; }
tr.cpr-more td { background:var(--surface-2); }
tr.cpr-more .cols { grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); }
tr.cpr-more label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:550; color:var(--ink-2); }
.cpr-forms { margin-top:22px; } .cpr-forms h2 { margin-top:0; }
.cpr-forms td.num { width:auto; } .cpr-forms .file-btn { min-height:32px; padding:0 12px; font-size:13px; }
table.cpr-map td { vertical-align:middle; } table.cpr-map select { font:inherit; font-size:13.5px; padding:6px 8px; border:1px solid var(--line-2); border-radius:6px; max-width:100%; }
.variant-slot select, .variant-slot input { width:100%; }
.cpr-creds input { width:100%; min-width:120px; }
.cpr-print { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px 26px; margin-top:14px; }
.cpr-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; border-bottom:2px solid var(--ink); padding-bottom:8px; }
.cpr-head h1 { margin:2px 0 0; }
.cpr-school { font-weight:600; text-align:right; }
.cpr-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); border:1px solid var(--line-2); border-radius:6px; margin:14px 0 4px; overflow:hidden; }
.cpr-cell { padding:7px 10px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); min-width:0; }
.cpr-cell span { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.cpr-cell b { display:block; font-weight:550; overflow-wrap:anywhere; }
.cpr-print h2 { margin:18px 0 6px; font-size:15px; }
table.cpr-table { box-shadow:none; border-radius:6px; font-size:12.5px; }
table.cpr-table th, table.cpr-table td { padding:6px 8px; }
.cpr-count { margin:10px 0 0; }
.cpr-sign { display:grid; grid-template-columns:2fr 1fr; gap:40px; margin:42px 0 6px; }
.cpr-sign small { color:var(--ink-2); font-size:12.5px; }
.cpr-foot { margin-top:22px; padding-top:8px; border-top:1px solid var(--line); font-size:11.5px; color:var(--muted); }
@media (max-width:760px) { .cpr-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .cpr-print { padding:14px; } .cpr-sign { grid-template-columns:1fr; gap:28px; } }
@page cprRoster { size:landscape; margin:.4in; }
@media print {
  .cpr-print { page:cprRoster; border:0; padding:0; margin:0; }
  .cpr-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  table.cpr-table { font-size:10.5px; break-inside:auto; } table.cpr-table tr { break-inside:avoid; }
  table.cpr-table thead { display:table-header-group; }
  .cpr-sign { break-inside:avoid; }
}
#guest { margin:12px 0 0; } #guest summary { cursor:pointer; font-weight:600; } #guest form { margin-top:10px; align-items:end; }

/* Privacy policy, site footer, demo tracking notice */
.policy { max-width:720px; }
.policy h2 { margin-top:24px; }
.site-foot { padding:12px 24px 20px; font-size:13px; text-align:center; }
dialog.notice { max-width:480px; width:calc(100% - 32px); border:0; border-radius:12px; padding:24px; background:var(--surface); color:var(--ink); }
dialog.notice::backdrop { background:rgba(14,26,43,.55); }
dialog.notice h2 { margin-top:0; }
@media print { .site-foot { display:none; } }

/* ---------------- Item Lab (beta question review): public pages, mobile first ---------------- */
.lab-page { max-width:760px; margin:0 auto; padding:8px 0 40px; }
.lab-head { display:flex; align-items:center; gap:10px; margin:4px 0 18px; }
.lab-tag { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:var(--primary-soft); color:var(--primary-hover); padding:2px 9px; border-radius:99px; }
.lab-h1 { font-size:26px; line-height:1.25; margin:0 0 10px; }
.lab-counter { font-weight:600; color:var(--primary-hover); margin:0 0 14px; }
.lab-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin:0 0 14px; box-shadow:var(--shadow); }
.lab-box h2 { font-size:17px; margin:0 0 8px; }
.lab-box p { margin:0 0 10px; line-height:1.55; }
.lab-before { border-left:4px solid var(--primary); }
.lab-info { border-left:4px solid var(--line-2); }
.lab-bottom { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-top:6px; }
.lab-agree { font-weight:600 !important; }
.lab-radios { border:0; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.lab-radios legend { font-weight:600; margin-bottom:4px; }
.lab-bar { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:10px 0 14px; border-bottom:1px solid var(--line); margin-bottom:14px; font-size:14px; color:var(--ink-2); }
.lab-card { position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.lab-card > * { position:relative; z-index:1; }
.lab-card .lab-wm { position:absolute; inset:-40px; z-index:2; pointer-events:none; display:grid; grid-template-columns:repeat(3, 1fr); grid-auto-rows:90px; opacity:.07; }
.lab-wm span { transform:rotate(-24deg); white-space:nowrap; font-size:13px; font-weight:600; align-self:center; justify-self:center; color:#000; }
.lab-case { border-bottom:1px dashed var(--line-2); margin-bottom:14px; padding-bottom:6px; }
.lab-case-prev { opacity:.85; margin-bottom:12px; }
.lab-case-prev .opt { font-size:15px; padding:9px 12px; }
.lab-stem-sm { font-size:16px; margin:2px 0 8px; }
.lab-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.lab-step { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line-2); border-radius:8px; background:#fff; cursor:grab; }
.lab-num { font-weight:700; width:22px; text-align:center; color:var(--primary-hover); }
.lab-step .icon-btn { width:34px; height:34px; }
.lab-cats { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; margin-bottom:10px; }
.lab-cat { border:2px dashed var(--line-2); border-radius:8px; padding:10px; min-height:70px; background:var(--surface-2); }
.lab-cat-drop { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.lab-sort { display:flex; flex-direction:column; gap:8px; }
.lab-chipcard { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; background:#fff; cursor:grab; }
.lab-chipcard select { max-width:100%; }
.lab-review { margin-top:14px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); }
.lab-review h2 { font-size:16px; margin:0 0 8px; }
.lab-scale { border:0; padding:0; margin:0 0 12px; display:flex; flex-wrap:wrap; gap:6px; }
.lab-scale legend { font-weight:600; margin-bottom:6px; width:100%; }
.lab-scale .req { font-weight:400; color:var(--muted); font-size:13px; }
.lab-pill { position:relative; }
.lab-pill input { position:absolute; opacity:0; inset:0; }
.lab-pill span { display:inline-block; padding:7px 12px; border:1px solid var(--line-2); border-radius:99px; background:#fff; font-size:14px; cursor:pointer; }
.lab-pill input:checked + span { background:var(--primary); color:#fff; border-color:var(--primary); }
.lab-pill input:focus-visible + span { outline:2px solid var(--primary); outline-offset:2px; }
.lab-review textarea { width:100%; }
.lab-foot { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-top:14px; }
.lab-stay { margin-bottom:12px; }
.lab-recap { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:6px; }
.lab-recap li { display:flex; justify-content:space-between; align-items:center; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface); font-size:14px; }
.lab-score { display:flex; align-items:baseline; gap:10px; margin:10px 0 14px; }
.lab-score b { font-size:44px; color:var(--primary-hover); }
.lab-domains { margin-bottom:12px; }
.lab-disclaimer { margin:6px 0; }
.chip.band-above { background:var(--ok-soft); color:var(--ok); } .chip.band-near { background:var(--warn-soft); color:var(--warn); } .chip.band-below { background:#fdecea; color:#a61b1b; }
.lab-verify { max-width:460px; }
.lab-flag { color:#a61b1b; font-weight:600; }
.lab-url { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.lab-url code { font-size:13px; }
/* Hotspot questions: a picture the participant places markers on (hotspot.js). */
.hs { position:relative; margin-top:6px; }
.hs-frame { overflow:auto; border:1px solid var(--line); border-radius:var(--radius-sm); background:#f6f4ef; max-height:78vh; }
.hs-stage { position:relative; width:100%; line-height:0; outline:none; }
.hs-stage:focus-visible { box-shadow:0 0 0 3px var(--primary-soft), inset 0 0 0 2px var(--primary); }
.hs-img { display:block; width:100%; height:auto; cursor:crosshair; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.hs[data-locked] .hs-img { cursor:default; }
.hs-marker { position:absolute; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; border:2px solid #fff; background:transparent;
  box-shadow:0 0 0 2px #0e1a2b, inset 0 0 0 2px #0e1a2b, 0 2px 6px rgb(0 0 0 / .4); touch-action:none; cursor:grab; line-height:1; z-index:3; }
.hs-marker::before, .hs-marker::after { content:""; position:absolute; left:50%; top:50%; background:#fff; box-shadow:0 0 0 1px #0e1a2b; transform:translate(-50%, -50%); }
.hs-marker::before { width:2px; height:12px; } .hs-marker::after { width:12px; height:2px; }
.hs-marker span { position:absolute; top:-26px; left:50%; transform:translateX(-50%); background:#0e1a2b; color:#fff; font-size:12px; font-weight:700; border-radius:9px; padding:2px 7px; }
.hs-marker span:empty { display:none; }
.hs-marker.is-selected { box-shadow:0 0 0 2px #0e1a2b, inset 0 0 0 2px #0e1a2b, 0 0 0 6px rgb(255 214 0 / .85), 0 2px 6px rgb(0 0 0 / .4); }
.hs[data-locked] .hs-marker { cursor:default; opacity:.9; }
.hs-tools { margin-top:8px; gap:8px; align-items:center; }
.hs-loupe { position:absolute; z-index:5; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 2px #0e1a2b, 0 6px 18px rgb(0 0 0 / .35); background-repeat:no-repeat; pointer-events:none; }
.hs-loupe::after { content:""; position:absolute; left:50%; top:50%; width:14px; height:14px; margin:-7px 0 0 -7px; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 2px #0e1a2b; }
/* Owner: region editor and click heatmap. */
.hs-edit .hs-img { cursor:crosshair; }
.hs-svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.hs-svg .t { fill:rgb(47 107 58 / .28); stroke:#2f6b3a; stroke-width:3; vector-effect:non-scaling-stroke; }
.hs-svg .d { fill:rgb(31 78 121 / .18); stroke:#1f4e79; stroke-width:2; stroke-dasharray:6 4; vector-effect:non-scaling-stroke; }
.hs-svg .sel { stroke-width:3; }
.hs-svg .draft { fill:none; stroke:#b3400a; stroke-width:2; stroke-dasharray:4 3; vector-effect:non-scaling-stroke; }
.hs-svg .ok { fill:#2f6b3a; } .hs-svg .no { fill:#b3400a; } .hs-svg .hit { fill-opacity:.8; stroke:#fff; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.hs-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:13px; margin:8px 0; }
.hs-legend i { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:5px; vertical-align:-1px; }
.hs-legend .ok { background:#2f6b3a; } .hs-legend .no { background:#b3400a; } .hs-legend .t { background:rgb(47 107 58 / .45); border-radius:3px; } .hs-legend .d { background:rgb(31 78 121 / .35); border-radius:3px; }
.hs-regions { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:10px; }
.hs-region { border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; background:var(--surface); }
.hs-region.is-sel { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-soft); }
.hs-test { font-weight:600; }
@media (max-width:640px) { .lab-h1 { font-size:22px; } .lab-card { padding:14px; } .stem { font-size:17px; } }
@media print { .lab-card, .lab-review, .lab-case { display:none !important; } }
/* Outreach: status chips and the school list pager */
.chip.info { background:var(--primary-soft); color:var(--primary-hover); }
.pager { align-items:center; justify-content:flex-start; margin-top:10px; }
/* Item Lab owner page: tabs, filters, paged questions, a question's full view */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
#labTabs { margin-top:10px; }
#labPanel:focus { outline:none; }
.lab-steps { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.lab-steps li { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.lab-steps li.done { background:var(--ok-soft); border-color:transparent; }
.lab-steps li.done > span:nth-child(2) { color:var(--ink-2); }
.lab-check { width:22px; height:22px; flex:none; border-radius:99px; border:2px solid var(--line-2); display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--ok); }
.lab-steps li.done .lab-check { border-color:var(--ok); background:var(--surface); }
.lab-filters { display:flex; flex-wrap:wrap; gap:10px 12px; align-items:flex-end; margin-bottom:10px; }
.lab-filters label:not(.check) { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; color:var(--ink-2); }
.lab-filters select, .lab-filters input[type=search] { max-width:220px; }
.lab-filters .lab-search { flex:1 1 240px; }
.lab-filters .lab-search input { max-width:none; width:100%; }
.lab-bulk { margin:6px 0; }
.lab-confirm { margin:6px 0; padding:10px 12px; background:var(--danger-soft); border-radius:var(--radius-sm); }
.lab-qtable tr[data-itemrow] { cursor:pointer; }
.lab-qtable tr[data-itemrow]:hover td { background:var(--surface-2); }
.lab-detail-row > td { background:var(--surface-2); padding:4px 10px 14px; }
.lab-detail { max-width:900px; }
.lab-detail-head { justify-content:space-between; }
.lab-detail-head h3 { margin:8px 0 0; flex:1 1 auto; }
.lab-full-stem { white-space:pre-wrap; font-size:15px; background:var(--surface); padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--line); }
.lab-full-opts { padding-left:0; list-style:none; display:grid; gap:6px; }
.lab-full-opts li { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 10px; }
.lab-full-opts li.is-key { border-color:var(--ok); box-shadow:inset 3px 0 0 var(--ok); }
.lab-dl { display:grid; grid-template-columns:max-content 1fr; gap:6px 14px; margin:10px 0; font-size:14px; }
.lab-dl dt { font-weight:600; color:var(--ink-2); }
.lab-dl dd { margin:0; }
.lab-anchors { list-style:none; padding:0; display:grid; gap:4px; margin:8px 0; }
.lab-anchors li { display:flex; gap:8px; align-items:center; }
tr.lab-current td { background:var(--primary-soft); }
@media (max-width:640px) { .lab-dl { grid-template-columns:1fr; } .lab-filters select, .lab-filters input[type=search] { max-width:none; } .lab-filters label:not(.check) { flex:1 1 140px; } }
.lab-qtable td:nth-child(2), .lab-qtable td:nth-child(4) { white-space:nowrap; }

/* Skills stations (0039): pick a sheet, then grade students one after another; team members recorded, not graded. */
.station-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; margin:10px 0 14px; }
.station-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.station-card .btn { align-self:flex-start; }
.station-meta { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:14px; }
.station-meta .chip { margin:0; }
details.overview summary { cursor:pointer; font-weight:600; }
.station-switch { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; color:var(--ink-2); }
.station-switch select { font:inherit; font-size:15px; min-height:44px; padding:0 10px; border:1px solid var(--line-2); border-radius:8px; background:var(--surface); }
.station-list { display:flex; flex-direction:column; gap:8px; }
.station-row { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 14px; display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; }
.station-row .who { flex:1 1 220px; min-width:0; }
.station-row .who b { font-size:16px; }
.station-row .who .chip { margin:4px 6px 0 0; }
.station-row .acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.btn.big { min-height:48px; min-width:110px; font-size:15px; }
.excuse-form { flex-basis:100%; border-top:1px solid var(--line); padding-top:10px; }
.excuse-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.excuse-form input { font:inherit; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; }
.team-panel { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.team-panel label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.team-panel select { font:inherit; min-height:44px; padding:0 10px; border:1px solid var(--line-2); border-radius:8px; background:var(--surface); }
.team-line { display:flex; gap:8px; align-items:center; color:var(--ink-2); }
.sub-h { font-size:16px; margin:18px 0 4px; }
.plain-list { margin:6px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:4px; }
@media (max-width:640px) { .station-row .acts { width:100%; } .station-row .acts .btn.big { flex:1; } }
.filterbar label.grow { flex:1 1 260px; }
.filterbar label.grow input[type=search] { flex:1; min-height:44px; font-size:16px; padding:0 12px; }

/* Course rosters and the school-wide student list */
.roster-add { margin:4px 0 10px; }
.cand-list { display:flex; flex-direction:column; gap:6px; max-height:320px; overflow:auto; padding:2px; }
.cand-list label.check { display:flex; gap:10px; align-items:flex-start; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-weight:400; }
.roster-table td.acts { white-space:nowrap; text-align:right; }
.roster-table tr.muted-row td { color:var(--muted); }
.roster-table .chip.tag { text-decoration:none; }
.remove-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.remove-form input { font:inherit; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; }
.paste-table td { vertical-align:top; }
.paste-table td:first-child { color:var(--muted); width:36px; }

/* School setup requests: public form and owner review */
.setup-form { max-width:760px; margin:0 auto; padding:24px 0 48px; }
.setup-form fieldset { border:1px solid var(--line); margin:0; }
.setup-form legend { font-weight:700; padding:0 6px; }
.setup-form .row .check { font-weight:500; }
.setup-done { max-width:560px; margin:40px auto; text-align:center; }
.made-link { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; border-top:1px solid var(--line); padding-top:12px; }
.made-link label { flex:1 1 360px; display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }
.made-link input, .inline-link { font:inherit; font-size:13px; padding:8px 10px; border:1px solid var(--line-2); border-radius:8px; width:100%; max-width:560px; }
.request-card h3 { margin:0; }
.req-dl { display:grid; grid-template-columns:140px 1fr; gap:6px 14px; margin:12px 0; }
.req-dl dt { color:var(--muted); font-size:13px; font-weight:600; }
.req-dl dd { margin:0; }
.approve-form { border-top:1px solid var(--line); padding-top:12px; }
@media (max-width:640px) { .req-dl { grid-template-columns:1fr; } }
.approve-form label.grow, .approve-form .row.end { grid-column:1 / -1; }
.approve-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:550; }

/* ---- scheduled release (Post on) and the course schedule ---- */
.chip.lock { background:var(--surface-2); color:var(--ink-2); font-weight:600; }
.chip.lock::before { content:""; width:9px; height:10px; border:2px solid currentColor; border-radius:2px; border-top-width:4px; box-sizing:border-box; margin-right:2px; }
.module.locked h3, .lessons li.locked > span:first-child, .todo.locked b { color:var(--ink-2); }
.lessons li.locked { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
fieldset.postwhen { border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; margin:0; }
fieldset.postwhen legend { font-weight:600; padding:0 4px; }
.whenform { margin:8px 0; }
.sched-day h2 { font-size:16px; margin:18px 0 6px; }
ul.sched { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
ul.sched li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
ul.sched li.past { opacity:.65; }
ul.sched li .grow { flex:1 1 220px; min-width:0; }
.sched-time { font-variant-numeric:tabular-nums; font-weight:600; min-width:72px; }
.sched-edit { flex-basis:100%; gap:8px; align-items:flex-end; }
.warn-text { color:var(--warn); }
.honor { border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:var(--radius-sm); padding:10px 14px; background:var(--surface); }
.honor p { margin:6px 0 8px; }
.cols .span-all { grid-column:1 / -1; margin:0; }

/* ---- Data section ---- */
.data-filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; align-items:end; }
.data-filters label { min-width:0; }
.data-filters select, .data-filters input { width:100%; min-width:0; box-sizing:border-box; }
.data-filters input.narrow { width:70px; }
.data-table { width:100%; }
.data-table tr.flagged > td { background:var(--warn-soft); }
.data-table .clip { display:block; max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.spark { font-variant-numeric:tabular-nums; font-weight:600; }
.flag-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.flag-list li { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:8px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.flag-list .clip { flex:1 1 200px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.exam-stat h2 { margin:0; font-size:18px; }
@media (max-width:600px) { .data-table .clip { max-width:160px; } }
.wrow { gap:10px; align-items:flex-end; } input.narrow { width:72px; }

/* ---- attendance ---- */
ul.roll { list-style:none; padding:0; margin:12px 0; display:flex; flex-direction:column; gap:6px; }
ul.roll li { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
ul.roll li .who { flex:1 1 180px; min-width:0; }
ul.roll li.st-present { border-left-color:var(--ok); } ul.roll li.st-late, ul.roll li.st-left_early { border-left-color:var(--warn); }
ul.roll li.st-absent { border-left-color:var(--danger); } ul.roll li.st-excused { border-left-color:var(--primary); }
.roll-seg { display:flex; flex-wrap:wrap; gap:4px; }
.roll-seg button { min-height:40px; padding:6px 10px; border:1px solid var(--line); background:var(--surface); border-radius:8px; font:inherit; font-size:13px; cursor:pointer; }
.roll-seg button.on { background:var(--primary); color:#fff; border-color:var(--primary); }
.roll-actions { flex-wrap:wrap; gap:8px; }
.checkin-code { text-align:center; }
.bigcode { font-size:clamp(48px, 12vw, 96px); font-weight:700; letter-spacing:.08em; font-variant-numeric:tabular-nums; line-height:1.1; }
.checkin-form { flex-wrap:wrap; gap:10px; align-items:flex-end; }

/* ---- uploads ---- */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.dropzone { border:2px dashed var(--line-2, var(--line)); border-radius:var(--radius-sm); padding:18px; text-align:center; background:var(--surface-2); }
.dropzone.over { border-color:var(--primary); background:var(--primary-soft); }
.dropzone label.link { cursor:pointer; text-decoration:underline; color:var(--primary); }
.upload-queue { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.upload-queue li { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.upload-queue li.failed .grow { color:var(--danger); }
.upload-queue progress { width:140px; }

/* ---- student course home: continue, coming up, progress (portal mockup) ---- */
.upnext { display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); gap:14px; margin:6px 0 18px; }
@media (max-width:760px) { .upnext { grid-template-columns:1fr; } }
.upnext .continue { border-left:4px solid var(--brand); display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.upnext .continue h2 { margin:0; font-size:20px; }
.progress-line { display:flex; flex-direction:column; gap:4px; width:100%; margin-top:6px; }
.duesoon ul { list-style:none; padding:0; margin:6px 0 0; display:flex; flex-direction:column; gap:8px; }
.duesoon li { display:flex; flex-direction:column; gap:2px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.duesoon li:last-child { border-bottom:0; }
.duesoon li.now b { color:var(--ok); }
fieldset.gbq { border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; margin:0; }
fieldset.gbq legend { font-weight:600; padding:0 4px; }
fieldset.gbq.missing { border-color:var(--danger); background:var(--danger-soft); }
.req { color:var(--danger); font-weight:500; font-size:13px; }
.person-row { display:grid; grid-template-columns:auto repeat(3, minmax(0, 1fr)) auto; gap:10px; align-items:end; }
@media (max-width:760px) { .person-row { grid-template-columns:1fr; border-bottom:1px solid var(--line); padding-bottom:10px; } }


/* =====================================================================================================
   Design pass 2026-11-12 (Brandon: "less AI-looking; match the student portal mockup"). Overrides above.
   ===================================================================================================== */
h1 { font-size:28px; font-weight:600; letter-spacing:-.01em; }
h2 { font-size:18px; font-weight:600; letter-spacing:0; }
h3 { font-weight:600; }
a { color:var(--ink-2); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
a:hover { color:var(--primary); text-decoration-color:currentColor; }
.eyebrow { font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.08em; color:var(--muted); }
code, kbd, .mono, .num, .sched-time, .spark, .bigcode { font-family:var(--mono); }

/* Buttons: one height, centred icon and text, flat. Primary = the one main action on a screen. */
.btn, a.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:0 14px; font-size:14px; font-weight:500; line-height:1.2;
  border-radius:var(--radius-sm); border:1px solid var(--line-2); background:var(--surface); color:var(--ink); box-shadow:none; text-decoration:none; vertical-align:middle; }
.btn svg, a.btn svg { flex:none; display:block; }
.btn:hover:not(:disabled), a.btn:hover { background:var(--surface-2); border-color:var(--ink-2); color:var(--ink); }
.btn.primary, a.btn.primary, .btn.next, a.btn.next { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:600; }
.btn.primary:hover:not(:disabled), a.btn.primary:hover, .btn.next:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); color:#fff; }
.btn.danger { color:var(--danger); border-color:#e7c1bd; }
.btn.big { min-height:44px; padding:0 22px; font-size:15px; }
.btn.small, .btn.small-btn { min-height:30px; padding:0 10px; font-size:13px; }
button.link { color:var(--ink-2); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
button.link:hover:not(:disabled) { color:var(--primary); text-decoration-color:currentColor; }
.page-head { align-items:flex-end; }
.page-head .row { gap:8px; }

/* Inputs never wider than their box; labels and rows wrap instead of spilling. */
input, select, textarea { max-width:100%; min-width:0; }
.stack input:not([type=checkbox]):not([type=radio]):not([type=file]), .cols input, .cols select, .stack select, .stack textarea, textarea, select {
  border-radius:var(--radius-sm); border-color:var(--line-2); padding:8px 10px; }
.cols > *, .row > *, .stack > *, .page-head > * { min-width:0; }
.cols label, .stack label { min-width:0; }
.cols input, .cols select, .cols textarea, .stack > label > input, .stack > label > select { width:100%; }
p, li, td, dd, label, h1, h2, h3 { overflow-wrap:break-word; }

/* Panels and tables: flat, thin rules. */
.panel, .card { border-radius:var(--radius); border-color:var(--line); box-shadow:none; }
table { border-radius:var(--radius); box-shadow:none; border-color:var(--line); }
th { background:var(--surface-2); font-size:12px; font-weight:600; color:var(--ink-2); text-transform:none; }
.chip { border-radius:3px; font-weight:500; padding:1px 7px; font-size:12px; }
.chip.info { background:var(--primary-soft); color:var(--primary-hover); }
.tile { border-radius:var(--radius); } .tile b { font-family:var(--mono); font-weight:500; font-size:22px; }
.tabs button.on { border-bottom-color:var(--primary); }
.notice { border-radius:var(--radius-sm); }

/* Side navigation: light, like the mockup's top bar; the current page gets an orange rule. */
.side { background:#fff; color:var(--ink-2); border-right:1px solid var(--line); }
.side .mark { color:var(--ink); }
.side .school { background:var(--surface-2); color:var(--ink); border:1px solid var(--line); }
.side .school small { color:var(--muted); }
.side .school select { background:#fff; color:var(--ink); border-color:var(--line-2); }
.side .sect { color:var(--muted); font-family:var(--mono); font-weight:500; letter-spacing:.08em; }
.nav-item { color:var(--ink-2); border-radius:var(--radius-sm); }
.nav-item:hover { background:var(--surface-2); color:var(--ink); }
.nav-item.on { background:var(--primary-soft); color:var(--primary-hover); box-shadow:inset 3px 0 0 var(--primary); font-weight:600; }
.side .me { border-top-color:var(--line); }
.side .me b { color:var(--ink); }
.side .me button { color:var(--muted); }
.top { background:#fff; }
.banner { background:var(--warn-soft); border-bottom-color:#efd98a; }

/* Student course home: the dark "continue" card from the mockup. */
.upnext .continue { background:var(--ink); color:#fff; border:0; border-left:0; }
.upnext .continue .eyebrow { color:#f0a374; }
.upnext .continue h2 { color:#fff; }
.upnext .continue .muted { color:#c9cbd0; }
.upnext .continue .meter { background:#3d424a; }
.upnext .continue .meter span { background:#e07a3c; }
.duesoon li { border-bottom-color:var(--line); }
.meter span { background:var(--primary); }
.roll-seg button.on { background:var(--ink); border-color:var(--ink); }
.dropzone.over { border-color:var(--primary); }
.mark b { color:var(--primary); }
.mark .wm { font-weight:650; color:var(--ink); } .mark b { font-weight:650; }

/* School setup hub, setup wizard, guide (2026-11-12) */
.getting-started .meter { margin:2px 0 4px; }
.steps-list { list-style:none; margin:0; padding:0; display:grid; gap:0; }
.steps-list li { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line-soft, #eeece6); min-width:0; }
.steps-list li:first-child { border-top:0; }
.steps-list .grow { flex:1; min-width:0; }
.steps-list .tick { width:22px; height:22px; flex:none; border:1.5px solid var(--line, #dedbd3); border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:13px; color:#fff; }
.steps-list li.done .tick { background:var(--ok); border-color:var(--ok); }
.steps-list li.done .grow { color:var(--muted); }
.hub-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; margin:18px 0; }
.hub-card { background:var(--surface, #fff); border:1px solid var(--line, #dedbd3); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.hub-card h3 { margin:0; font-size:15px; }
.hub-card p { margin:0; flex:1; }
.hub-card .row { flex-wrap:wrap; gap:8px; }
.setup-banner { display:flex; flex-wrap:wrap; align-items:center; gap:16px; border-left:3px solid var(--primary); margin-bottom:18px; }
.setup-banner .grow { flex:1; min-width:220px; }
.setup-banner h2 { margin:2px 0 4px; }
.wizard { display:grid; grid-template-columns:minmax(0, 280px) minmax(0, 1fr); gap:18px; align-items:start; margin-bottom:14px; }
.wiz-steps { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.wiz-steps button { display:flex; gap:10px; align-items:center; width:100%; text-align:left; padding:8px 10px; border-radius:var(--radius-sm); color:var(--ink); text-decoration:none; }
.wiz-steps li.on button { background:var(--primary-soft); font-weight:600; }
.wiz-steps .num { width:24px; height:24px; flex:none; border-radius:50%; border:1.5px solid var(--line, #dedbd3); display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-family:var(--mono); }
.wiz-steps li.done .num { background:var(--ok); border-color:var(--ok); color:#fff; }
.wiz-steps li.on .num { border-color:var(--primary); color:var(--primary); }
.wiz-body p { max-width:65ch; }
.wiz-nav { border-top:1px solid var(--line-soft, #eeece6); padding-top:12px; margin-top:4px; }
.guide { display:grid; grid-template-columns:minmax(0, 240px) minmax(0, 1fr); gap:18px; align-items:start; }
.guide-toc { position:sticky; top:12px; }
.guide-toc ul { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.guide-toc a { display:block; padding:6px 8px; border-radius:var(--radius-sm); text-decoration:none; color:var(--ink); }
.guide-toc a:hover { background:var(--primary-soft); }
.guide-body section { scroll-margin-top:16px; }
.guide-body ul { margin:0; padding-left:20px; display:grid; gap:8px; max-width:70ch; }
#grading, #tzPanel, #honorPanel, #courses-sec { scroll-margin-top:16px; }
@media (max-width: 760px) {
  .wizard, .guide { grid-template-columns:minmax(0, 1fr); }
  .guide-toc { position:static; }
}

/* Layout fixes from the automated layout check (2026-11-12) */
td.num .btn, td.num button, td.num a.btn { font-family:"Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
input[type=checkbox], input[type=radio] { width:auto !important; max-width:none; min-width:0; flex:none; }
table.kv { table-layout:fixed; width:100%; }
table.kv th { width:32%; }
table.kv td { overflow-wrap:anywhere; min-width:0; }
table.kv td .scroll-x { margin-top:0; max-width:100%; }
@media (max-width: 600px) {
  table { font-size:13.5px; }
  th, td { padding:8px 6px; }
  td.num .btn { padding-inline:10px; }
}
/* Base look for any text field that no other rule styles (zero specificity, so existing rules win). */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), select) {
  font:inherit; padding:7px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); }
.grow-row { display:grid; grid-template-columns:minmax(0, 1fr) 110px 110px auto; gap:12px; align-items:end; }
.grow-row label { display:flex; flex-direction:column; gap:4px; font-weight:600; font-size:14px; min-width:0; }
.grow-row input { width:100%; }
.grow-row .link { padding-bottom:8px; }
@media (max-width: 600px) { .grow-row { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); } }
.wiz-steps .num { font-family:"Plex", system-ui, sans-serif; }
.wiz-steps li.done.on .num { color:#fff; border-color:var(--ok); }
.wiz-body > * { margin:0; }
.wiz-body { gap:14px; }
@media (max-width: 600px) { td .small, td.small { overflow-wrap:anywhere; } }

/* Textbook owner preview (2026-11-13): reading layout from the portal mockup */
.seg button.on { background:var(--ink); color:#fff; }
.tb-part h2 { margin:0; }
.tb-chapter h3 { margin:10px 0 4px; font-size:15px; }
.tb-lessons { margin:0; padding-left:18px; display:grid; gap:4px; }
.tb-reader { display:grid; grid-template-columns:minmax(0, 220px) minmax(0, 1fr); gap:28px; align-items:start; }
.tb-toc { position:sticky; top:12px; padding:14px; }
.tb-toc ul { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:4px; font-size:13.5px; }
.tb-toc li.l3 { padding-left:12px; }
.tb-toc a { color:var(--ink-2); text-decoration:none; } .tb-toc a:hover { color:var(--primary); }
.tb-text { max-width:72ch; font-size:16.5px; line-height:1.7; min-width:0; }
.tb-text h2 { margin:34px 0 8px; padding-top:14px; border-top:1px solid var(--line); font-size:22px; scroll-margin-top:16px; }
.tb-text h3 { margin:24px 0 6px; font-size:18px; scroll-margin-top:16px; }
.tb-text h4, .tb-text h5 { margin:18px 0 4px; font-size:16px; }
.tb-text p { margin:0 0 12px; }
.tb-text ul, .tb-text ol { margin:0 0 12px; padding-left:22px; }
.tb-text li { margin:3px 0; }
.tb-text table { font-size:14.5px; line-height:1.45; }
.tb-text .scroll-x { margin:8px 0 16px; }
.tb-box { margin:12px 0 16px; padding:12px 16px; border-left:3px solid var(--primary); background:var(--primary-soft); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.tb-box p:last-child { margin-bottom:0; }
.tb-code { white-space:pre-wrap; background:var(--surface-2); padding:10px 12px; border-radius:var(--radius-sm); font-size:13.5px; overflow-x:auto; }
.tb-nav { margin-top:28px; border-top:1px solid var(--line); padding-top:14px; }
@media (max-width: 860px) { .tb-reader { grid-template-columns:minmax(0, 1fr); } .tb-toc { position:static; } .tb-text { font-size:16px; } }
.gb .chg { color:var(--primary); font-size:12px; cursor:help; }
.gb td.editable { cursor:pointer; }
/* Google Slides published to the web, in a lesson */
.slides-frame { position:relative; width:100%; aspect-ratio:16 / 9.4; max-width:100%; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.slides-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
/* Clinical requirements */
.req-list { display:grid; gap:10px; max-width:640px; margin:6px 0; }
.req-row .meter { margin-top:4px; }
.req-cat .small { line-height:2; }
label.check.inline { display:inline-flex; margin-right:10px; font-weight:400; }
.rem-item { flex-wrap:wrap; }
.rem-item .row { flex-wrap:wrap; gap:6px; }
.rem-item .rem-note { min-width:0; flex:1 1 200px; }
.rem-item.completed .t b { color:var(--muted); }

/* ---------- lesson reading and editing (2026-11-16) ---------- */
.lesson { max-width:72ch; }
.lesson .block-text { line-height:1.7; }
.lesson[data-size="1"] .block-text { font-size:15px; }
.lesson[data-size="2"] .block-text { font-size:17px; }
.lesson[data-size="3"] .block-text { font-size:19px; }
.lesson[data-size="4"] .block-text { font-size:21px; }
.lesson[data-size="5"] .block-text { font-size:23px; }
.lesson[data-size] .block-text h3 { font-size:1.3em; } .lesson[data-size] .block-text h4 { font-size:1.1em; }
.lesson[data-size="4"] .check-box .stem-q, .lesson[data-size="5"] .check-box .stem-q { font-size:20px; }
.lesson[data-size="4"] .check-box .opt, .lesson[data-size="5"] .check-box .opt { font-size:18px; }
.textsize { gap:6px; margin:4px 0 10px; }
.textsize .btn[aria-pressed="true"] { border-color:var(--primary); }
.fmt-bar { display:flex; gap:4px; margin-bottom:4px; }
.fmt-bar button { min-width:36px; padding:4px 8px; border:1px solid var(--line-2); border-radius:6px; background:var(--surface-2); color:var(--ink); font:inherit; font-size:13px; cursor:pointer; }
.fmt-bar button:hover { background:var(--surface-3); }
textarea.autogrow { resize:vertical; min-height:120px; line-height:1.6; }
.insert-at { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:-4px 0; padding:2px 0; opacity:.55; }
.insert-at:hover, .insert-at:focus-within { opacity:1; }
.insert-menu { display:flex; flex-wrap:wrap; gap:6px; }
.savebar { position:sticky; bottom:0; z-index:5; background:var(--surface); border-top:1px solid var(--line); padding:10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); margin-top:12px; }
.lessons li { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:6px 0; border-bottom:1px solid var(--line); }
.lessons li:last-child { border-bottom:0; }
.lesson-tools { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; margin-left:auto; }
.lesson-tools select { width:auto; padding:2px 6px; font-size:13px; }
.link[disabled] { opacity:.35; cursor:default; }

/* ---------- school branding (2026-11-16) ---------- */
.brand-signin { max-width:440px; margin:6vh auto 0; display:flex; flex-direction:column; gap:16px; }
.brand-head { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; }
.brand-head h1 { margin:0; text-wrap:balance; }
.brand-logo { max-width:min(280px, 100%); max-height:120px; object-fit:contain; }
.brand-logo.preview { max-width:220px; max-height:90px; padding:8px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; }
.brand-foot { text-align:center; }
.brand-logo-row { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.side .school .school-logo { display:block; max-width:100%; max-height:56px; object-fit:contain; margin:0 0 8px; background:#fff; border-radius:6px; padding:4px; }
code.copyable { padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface-2); overflow-wrap:anywhere; user-select:all; }
input[type="color"] { width:48px !important; height:38px; padding:2px; flex:none; }

/* ---------- two-step sign-in (2026-11-16) ---------- */
.qr-box { width:200px; max-width:100%; margin:10px 0; padding:8px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); }
.qr-box svg { display:block; width:100%; height:auto; }
pre.codes { font-size:15px; line-height:1.7; padding:10px 14px; background:var(--surface-2); border:1px solid var(--line); border-radius:6px; columns:2; max-width:320px; }
.recovery { border-left:4px solid var(--warn); }

/* ---------- maintenance mode (2026-11-16) ---------- */
.maint-banner { background:var(--warn-soft, #fff4d6); color:var(--ink); border-bottom:1px solid var(--line); }
.maint-banner.on { background:#fde8e6; }
.maint-banner a { color:inherit; }
.maint-page { text-align:center; margin-top:10vh; }
.maint-page details { text-align:left; margin-top:24px; }
.danger-zone { border-left:4px solid var(--bad, #b42318); }
/* Live class form: the meeting choice gets its own full row (its labels wrapped one word per line in a grid cell). */
.cols > .meet-how { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.cols > .meet-how legend { width: 100%; }

/* Course tabs: one section of the course at a time. */
.ctabs { display:flex; gap:2px; margin:14px 0 22px; border-bottom:2px solid var(--ink); overflow-x:auto; scrollbar-width:none; }
.ctabs::-webkit-scrollbar { display:none; }
.ctabs button { font:inherit; font-weight:600; font-size:15px; color:var(--muted); background:none; border:0; border-top:4px solid transparent; padding:10px 16px 11px; white-space:nowrap; cursor:pointer; }
.ctabs button:hover { color:var(--ink); background:var(--surface-2); }
.ctabs button[aria-selected="true"] { color:#fff; background:var(--ink); border-top-color:var(--primary); }
.ctabs button:focus-visible { outline:0; box-shadow:var(--focus); }
.cpane > :first-child, .cpane > section:first-child > h2:first-child { margin-top:0; }
@media (max-width:640px) { .ctabs { margin:10px -16px 18px; padding:0 16px; } .ctabs button { padding:9px 12px 10px; font-size:14px; } }

/* Lesson text: callouts, highlight, and the write-on-the-page editor. */
.block-text mark { background:#f9dcc8; color:inherit; padding:0 .1em; }
.block-text ol, .block-text ul { padding-left:1.4em; }
.block-text a { color:var(--primary); text-underline-offset:2px; }
.callout { margin:16px 0; padding:12px 16px 12px 18px; border-left:6px solid var(--primary); background:var(--primary-soft); }
.callout::before { content:"Key point"; display:block; font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--primary); margin-bottom:4px; }
.callout[data-kind="caution"] { border-left-color:var(--danger); background:var(--danger-soft); }
.callout[data-kind="caution"]::before { content:"Caution"; color:var(--danger); }
.callout[data-kind="think"]::before { content:"Think about it this way"; }
.callout > p { margin:0 0 8px; } .callout > p:last-child { margin-bottom:0; }
.fmt-bar { flex-wrap:wrap; align-items:center; position:sticky; top:0; z-index:2; background:var(--surface); padding:6px 0; border-bottom:1px solid var(--line); margin-bottom:0; }
.fmt-bar select { width:auto; padding:4px 8px; font-size:13px; }
.fmt-bar mark { background:#f9dcc8; padding:0 3px; }
.fmt-link { display:flex; gap:4px; align-items:center; flex-wrap:wrap; flex-basis:100%; }
.fmt-link input { width:min(340px, 100%); padding:4px 8px; font-size:13px; }
.rte { min-height:140px; padding:14px 4px 10px; font-size:16px; outline:0; overflow-wrap:anywhere; }
.rte:focus-visible { box-shadow:inset 3px 0 0 var(--primary); }
.rte > :first-child { margin-top:0; }
.rte p { margin:0 0 12px; }
.eblock .drag { cursor:grab; color:var(--muted); letter-spacing:-2px; padding:2px 6px 2px 0; user-select:none; }
.eblock.dragging { opacity:.45; }
.eblock.drop-here { box-shadow:0 -4px 0 var(--primary); }

/* Lesson editor: course outline beside the page. */
.ed-wrap { display:grid; grid-template-columns:minmax(0, 1fr); gap:0 28px; align-items:start; }
.ed-main { min-width:0; }
.ed-outline { border:1px solid var(--line); background:var(--surface); padding:8px 12px; margin-bottom:12px; font-size:14px; }
.ed-outline summary { font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); cursor:pointer; padding:4px 0; }
.eo-ch { font-weight:700; margin:12px 0 4px; } .eo-ch span { font-family:var(--mono); font-weight:500; color:var(--primary); }
.eo-les { display:block; padding:5px 8px; border-left:3px solid transparent; text-decoration:none; color:var(--ink); overflow-wrap:anywhere; }
.eo-les:hover { background:var(--surface-2); }
.eo-les.on { background:var(--ink); color:#fff; border-left-color:var(--primary); }
.eo-les .chip { font-size:10px; }
.eo-add { display:flex; gap:6px; align-items:center; margin:4px 0 0 8px; }
.eo-add input { flex:1; min-width:0; padding:3px 6px; font-size:13px; }
@media (min-width:1100px) {
  .ed-wrap { grid-template-columns:230px minmax(0, 1fr); }
  .ed-outline { position:sticky; top:12px; max-height:calc(100vh - 110px); overflow:auto; margin-bottom:0; }
  .ed-outline summary { pointer-events:none; list-style:none; } .ed-outline summary::-webkit-details-marker { display:none; }
}

/* Course overview: "Needs you". */
.needs { border-top:2px solid var(--ink); margin-bottom:26px; }
.need { display:grid; grid-template-columns:56px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:13px 0; border-bottom:1px solid var(--line-2); }
.need-n { font-family:var(--mono); font-size:28px; line-height:1; color:var(--primary); font-variant-numeric:tabular-nums; }
.need-t b { display:block; font-size:16px; } .need-t span { color:var(--muted); font-size:13.5px; overflow-wrap:anywhere; }
.need-none { padding:14px 0; margin:0; }
@media (max-width:520px) { .need { grid-template-columns:40px minmax(0, 1fr); } .need .btn { grid-column:2; justify-self:start; } .need-n { font-size:22px; } }

/* Gradebook: one-line column headers with an options menu, missing-work marker, type-to-enter scores. */
table.gb th.item { white-space:nowrap; vertical-align:bottom; position:relative; }
table.gb th.item .item-t { display:inline-block; max-width:16ch; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }
table.gb .item-note { display:block; }
.colopt { display:inline-block; }
.colopt summary { list-style:none; cursor:pointer; padding:0 6px; font-weight:700; border-radius:var(--radius-sm); }
.colopt summary::-webkit-details-marker { display:none; }
.colopt summary:hover, .colopt[open] summary { background:var(--surface-3); }
.colopt-menu { position:absolute; right:0; top:100%; z-index:5; min-width:230px; display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--surface); border:2px solid var(--ink); text-align:left; white-space:normal; font-weight:400; }
.colopt-menu p { margin:0; } .colopt-menu select { width:100%; }
table.gb tr.has-missing > td.sticky { box-shadow:inset 4px 0 0 var(--danger); }
.gb-miss-key { display:inline-block; width:4px; height:12px; background:var(--danger); vertical-align:-1px; }
table.gb td.editable:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.gb-quick { width:5.5em; padding:3px 6px; font:inherit; text-align:right; }
.gb-how { margin-top:6px; } .gb-how summary { cursor:pointer; font-size:13.5px; color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; }
.gb-key kbd { font-family:var(--mono); font-size:11px; border:1px solid var(--line-2); padding:0 4px; }

/* In-page dialogs (questions and notices), in place of the browser's pop-ups. */
dialog.rp-dialog { border:2px solid var(--ink); border-radius:0; padding:22px 22px 18px; width:min(440px, calc(100vw - 32px)); background:var(--surface); color:var(--ink); }
dialog.rp-dialog::backdrop { background:rgb(22 24 27 / .55); }
.rp-dialog-msg { margin:0; font-size:16px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.rp-dialog-input { width:100%; }
.rp-dialog-actions { justify-content:flex-end; gap:8px; margin-top:4px; }
/* Course content: editing controls show only while "Edit course" is on. */
#content:not(.editing) :is(.edit-only, .mod-tools, .lesson-moves) { display:none; }
.btn.switch { display:inline-flex; align-items:center; gap:8px; margin-left:auto; }
.switch-box { width:34px; height:18px; border:2px solid var(--ink); position:relative; flex:none; }
.switch-box::after { content:""; position:absolute; top:2px; left:2px; width:10px; height:10px; background:var(--ink); transition:left .12s; }
.btn.switch[aria-pressed="true"] { border-color:var(--primary); }
.btn.switch[aria-pressed="true"] .switch-box { border-color:var(--primary); }
.btn.switch[aria-pressed="true"] .switch-box::after { left:18px; background:var(--primary); }
@media (prefers-reduced-motion:reduce) { .switch-box::after { transition:none; } }

/* Search from anywhere. */
.search-btn { display:inline-flex; align-items:center; gap:10px; margin-left:auto; padding:6px 10px 6px 12px; border:1px solid var(--line-2); background:var(--surface-2); color:var(--muted); font:inherit; font-size:13.5px; cursor:pointer; min-width:150px; justify-content:space-between; }
.search-btn:hover { border-color:var(--ink); color:var(--ink); }
.search-btn kbd, .search-hint kbd { font-family:var(--mono); font-size:11px; border:1px solid var(--line-2); padding:0 5px; background:var(--surface); }
.search-btn + .who { margin-left:0; }
dialog.search-box { border:2px solid var(--ink); border-radius:0; padding:0; width:min(620px, calc(100vw - 24px)); margin-top:9vh; background:var(--surface); color:var(--ink); max-height:78vh; overflow:hidden; }
dialog.search-box[open] { display:flex; flex-direction:column; }
dialog.search-box::backdrop { background:rgb(22 24 27 / .55); }
.search-box input { width:100%; border:0; border-bottom:2px solid var(--ink); border-radius:0; padding:16px 18px; font-size:19px; font-weight:600; outline:0; box-shadow:none; }
#searchList { overflow:auto; }
.search-grp { font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0; padding:12px 18px 4px; }
.search-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:center; padding:9px 18px; cursor:pointer; }
.search-row b { display:block; font-weight:600; overflow-wrap:anywhere; } .search-row small { color:var(--muted); font-size:13px; }
.search-row em { font-style:normal; font-family:var(--mono); font-size:11px; color:var(--muted); }
.search-row[aria-selected="true"] { background:var(--ink); color:#fff; }
.search-row[aria-selected="true"] small, .search-row[aria-selected="true"] em { color:#c9c4ba; }
.search-none { padding:16px 18px; margin:0; }
.search-hint { margin:0; padding:8px 18px; border-top:1px solid var(--line); }
@media (max-width:640px) { .search-btn { min-width:0; } .search-btn span { display:none; } .search-btn::before { content:"Search"; } .search-btn kbd, .search-hint { display:none; } dialog.search-box { margin-top:12px; } }

/* Menu height on phones: 100vh is taller than the visible screen while the browser's address bar shows, which pushed
   "Sign out" (the last thing in the menu) below the edge where it could not be reached. Use the visible height, keep
   the name and Sign out pinned to the bottom of the menu, and clear the phone's home-indicator area. */
.side { height:100dvh; padding-bottom:0; }
.side .me { position:sticky; bottom:0; padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px)); background:#fff; z-index:1; }
.side .me button { min-height:36px; }
@media (max-width: 900px) { .side { height:auto; top:0; bottom:0; max-height:100dvh; } }

/* Lesson text: tables. Lesson editor: history panel. */
.block-text table { width:100%; margin:14px 0; border-collapse:collapse; background:var(--surface); table-layout:auto; }
.block-text th, .block-text td { border:1px solid var(--line-2); padding:7px 10px; vertical-align:top; text-align:left; overflow-wrap:anywhere; }
.block-text th { background:var(--surface-2); font-weight:600; }
.rte td, .rte th { min-width:3em; height:2.2em; }
.rte td:focus-within, .rte th:focus-within { box-shadow:inset 0 0 0 2px var(--primary); }
ul.lhist { list-style:none; margin:0 0 10px; padding:0; }
ul.lhist li { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
ul.lhist li span { display:block; } ul.lhist .chip { display:inline-block; }
.hist-prev { color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Lesson editor: write a knowledge check in place. */
.kc-new { margin-top:8px; } .kc-new summary { cursor:pointer; font-size:14px; text-decoration:underline; text-underline-offset:3px; color:var(--ink-2); }
.kc-new > .stack { margin-top:10px; padding:12px; border:1px solid var(--line-2); background:var(--surface-2); }
.kc-opt { gap:8px; align-items:center; flex-wrap:nowrap; } .kc-opt input[type="radio"] { flex:none; width:auto; } .kc-opt input:not([type="radio"]) { flex:1; min-width:0; }
.eblock .kc-new textarea { width:100%; }

/* =====================================================================================================================
   FIELD MANUAL (Brandon, approved from mockups 2026-11-17; built 2026-11-20). One layer over everything above:
   a dark band across the top, paper background, square corners, rules instead of boxes, large plain numbers, and the
   accent colour (the school's own, when it has one) kept for the one main action and for section markers.
   ===================================================================================================================== */
:root {
  --bg:#f4f1ea; --surface:#fbf9f4; --surface-2:#efebe1; --surface-3:#e4dfd3; --card:var(--surface);
  --line:#d9d3c6; --line-2:#c2bbab; --ink:#16181b; --ink-2:#3a3e45; --muted:#5b5f66;
  --radius:0px; --radius-sm:0px;
  --nav:#f4f1ea; --nav-hover:#e9e5da; --nav-active:#16181b;
  --band:#16181b; --band-ink:#f4f1ea; --band-muted:#b9b4aa;
}
body { background:var(--bg); }

/* ---- the band */
.top { background:var(--band); color:var(--band-ink); border-bottom:0; min-height:60px; }
.top .crumb { color:var(--band-ink); font-weight:700; font-size:15.5px; letter-spacing:.01em; }
.top .who, .top .who .who-name { color:var(--band-ink); }
.top .who .link { color:var(--band-muted); }
.top .avatar { background:var(--primary); color:#fff; border-radius:0; font-family:var(--mono); font-weight:500; }
.top .mark { color:var(--band-ink); }
.top .icon-btn, .top .menu-btn { color:var(--band-ink); border-color:#3a3e45; background:transparent; border-radius:0; }
.search-btn { background:#24272c; border-color:#3a3e45; color:#9aa0a8; }
.search-btn:hover { border-color:var(--band-ink); color:var(--band-ink); }
.search-btn kbd { background:transparent; border-color:#4a4f57; color:#9aa0a8; }
.banner { border-radius:0; }

/* ---- side menu: paper, with the top of it joining the band */
.side { background:var(--bg); border-right:2px solid var(--ink); }
.side > .mark, .side > a.mark { background:var(--band); color:var(--band-ink); margin:-16px -12px 14px; padding:0 22px; min-height:60px; display:flex; align-items:center; }
.side .mark svg rect { fill:var(--primary); }
.side .school { background:transparent; border:0; border-bottom:2px solid var(--ink); border-radius:0; padding:2px 10px 12px; font-size:15px; font-weight:700; }
.side .school small { font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.side .sect { font-family:var(--mono); font-size:11px; letter-spacing:.12em; }
.nav-item { border-radius:0; border-left:3px solid transparent; }
.nav-item:hover { background:var(--nav-hover); }
.nav-item.on { background:var(--ink); color:#fff; box-shadow:none; border-left-color:var(--primary); }
.nav-item.on .ic { opacity:1; }
.side .me { background:var(--bg); border-top:2px solid var(--ink); }
.badge { border-radius:0; font-family:var(--mono); }

/* ---- type */
h1 { font-size:34px; line-height:1.08; letter-spacing:-.022em; font-weight:700; margin:2px 0 8px; text-wrap:balance; }
main h2 { font-family:var(--mono); font-size:12.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); margin:32px 0 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
main h2::before { content:""; width:26px; height:6px; background:var(--primary); flex:none; }
main h3 { font-size:18px; letter-spacing:-.01em; }
.eyebrow { font-family:var(--mono); font-size:11.5px; letter-spacing:.12em; color:var(--muted); }
.page-head { border-bottom:8px solid var(--ink); padding-bottom:14px; margin-bottom:22px; align-items:flex-end; }
.page-head h1 { margin-bottom:0; }
/* headings that are titles inside a block, not section markers */
.upnext .continue h2, .panel.empty h2, .rp-dialog h2, .lesson h2, .block-text h2, .cert h2, .product h2 { font-family:inherit; font-size:20px; font-weight:700; letter-spacing:-.01em; text-transform:none; display:block; }
.upnext .continue h2::before, .panel.empty h2::before, .lesson h2::before, .block-text h2::before, .cert h2::before, .product h2::before { content:none; }

/* ---- controls */
.btn, a.btn { border-radius:0; border:2px solid var(--ink); background:transparent; color:var(--ink); font-weight:600; min-height:38px; }
.btn:hover:not(:disabled), a.btn:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.primary, a.btn.primary, .btn.next, a.btn.next { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:700; }
.btn.primary:hover:not(:disabled), a.btn.primary:hover, .btn.next:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); color:#fff; }
.btn.small, .btn.small-btn { border-width:1.5px; min-height:30px; }
.btn.danger { border-color:var(--danger); color:var(--danger); }
.btn.danger:hover:not(:disabled) { background:var(--danger); border-color:var(--danger); color:#fff; }
.btn.switch:hover:not(:disabled) { background:transparent; color:var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { border-radius:0; border-color:var(--line-2); background:#fff; }
.link { text-underline-offset:3px; }

/* ---- surfaces: flat, square; rules carry the structure */
.panel, .card { border-radius:0; background:var(--surface); border:1px solid var(--line-2); box-shadow:none; }
.module.panel { border:0; border-top:2px solid var(--ink); background:transparent; padding:16px 0 10px; }
.module.panel + .module.panel { margin-top:6px; }
details.panel > summary { cursor:pointer; }
table { border-radius:0; border:0; border-top:2px solid var(--ink); background:transparent; box-shadow:none; }
th { background:transparent; font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--line-2); }
td { border-bottom:1px solid var(--line); }
table.gb th.item, table.gb th.item b { font-family:inherit; letter-spacing:0; text-transform:none; font-size:13px; color:var(--ink); }
table.gb th.grp { background:var(--surface-2); }
table.gb th.sticky, table.gb td.sticky { background:var(--bg); }
table.kv th, table.gb tr.why td { background:var(--surface-2); }
.block-text table { border:0; background:var(--surface); } .block-text th { font-family:inherit; font-size:inherit; letter-spacing:0; text-transform:none; color:var(--ink); background:var(--surface-2); }
table.clickable tbody tr:hover td, table.gb td.editable:hover, table.gb td.editable:focus { background:var(--surface-2); }
.chip { border-radius:0; background:transparent; border:1.5px solid currentColor; font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; padding:1px 6px; color:var(--muted); }
.chip.ok, .chip.ok-chip, .chip.band-above { background:transparent; color:var(--ok); }
.chip.warn, .chip.band-near, .chip.level-aemt { background:transparent; color:var(--warn); }
.chip.bad, .chip.band-below, .chip.level-paramedic { background:transparent; color:var(--danger); }
.chip.info, .chip.tag, .chip.level-emt { background:transparent; color:var(--primary); }
.gs { border-radius:0; }
.notice { border-radius:0; }
.tile { border-radius:0; border:0; border-top:2px solid var(--ink); background:transparent; padding:10px 14px 10px 0; min-width:120px; }
.tile b { font-family:inherit; font-weight:700; font-size:34px; letter-spacing:-.03em; line-height:1; }
.meter, .meter span, progress { border-radius:0; }

/* ---- home: rules, numbers, no pastel icon squares */
.todo { border-bottom:1px solid var(--line-2); padding:14px 0; }
.todo .ic-wrap { display:none; }
.todo .t b { font-size:16px; }
.dash > * > .panel, .dash .panel { border:0; border-top:2px solid var(--ink); background:transparent; padding:6px 0 0; }
.upnext .continue { border-radius:0; padding:24px 26px; }
.upnext .continue .eyebrow { color:color-mix(in srgb, var(--primary) 55%, #fff); }
.need-n { font-size:30px; }
.ctabs { border-bottom-width:2px; }
.ctabs button { font-size:15px; }

/* ---- dialogs and search already follow this look; align the leftovers */
.avatar { border-radius:0; }
.scrim { background:rgb(22 24 27 / .55); }

/* ---- phone: bottom bar */
.botnav { display:none; }
@media (max-width:900px) {
  body.in-school:not(.exam-mode) .botnav:not([hidden]) { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; position:fixed; left:0; right:0; bottom:0; z-index:12; background:var(--band); padding-bottom:env(safe-area-inset-bottom, 0px); }
  .botnav a, .botnav button { display:flex; flex-direction:column; align-items:center; gap:3px; padding:9px 4px 10px; border:0; border-top:4px solid transparent; background:none; color:var(--band-muted); font:inherit; font-size:11.5px; font-weight:600; text-decoration:none; cursor:pointer; }
  .botnav a.on { color:#fff; border-top-color:var(--primary); }
  .botnav svg { display:block; }
  body.in-school:not(.exam-mode) main { padding-bottom:104px; }
  body.in-school:not(.exam-mode) .savebar { bottom:calc(58px + env(safe-area-inset-bottom, 0px)); }
  body.in-school .site-foot { padding-bottom:80px; }
  .side { z-index:20; }
  h1 { font-size:28px; }
  .page-head { border-bottom-width:6px; }
  .search-btn { background:transparent; }
}
@media (max-width:640px) { .top .who .who-name { display:none; } }

/* Field manual: home pages. */
.top .mark .wm, .side > .mark .wm, .side > a.mark .wm { color:var(--band-ink); }
.hello h1 { font-size:54px; letter-spacing:-.03em; line-height:.98; }
.hello-date { text-align:right; font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.hello-date b { display:block; font-family:inherit; font-family:"Plex", system-ui, sans-serif; font-size:26px; letter-spacing:-.01em; text-transform:none; color:var(--ink); font-weight:700; }
.course-card { border:0; border-top:2px solid var(--ink); background:transparent; padding:14px 0 6px; gap:12px; }
.course-card h3 { font-size:22px; letter-spacing:-.015em; }
.course-card .code { font-family:var(--mono); letter-spacing:.1em; }
.course-card .stat { text-align:right; } .course-card .stat b { display:block; font-size:44px; font-weight:700; letter-spacing:-.04em; line-height:.9; } .course-card .stat span { font-size:12.5px; color:var(--muted); }
.course-card .progress, .course-card .progress span { border-radius:0; } .course-card .progress { height:8px; background:var(--line); } .course-card .progress span { background:var(--ink); }
.course-card .todo { border-top:1px solid var(--line-2); padding:14px 0 4px; }
.course-card .todo.todo-next { background:var(--ink); color:#f4f1ea; border:0; padding:20px 22px; margin:4px 0 2px; }
.todo.todo-next .t b { font-size:22px; letter-spacing:-.015em; line-height:1.15; }
.todo.todo-next .t span { color:color-mix(in srgb, var(--primary) 55%, #fff); font-family:var(--mono); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; display:block; margin-bottom:4px; }
.todo.todo-next .t { display:flex; flex-direction:column-reverse; }
.todo.todo-next .btn { min-height:46px; padding:0 22px; font-size:16px; }
.panel.empty { border:0; border-top:2px solid var(--ink); background:transparent; }
@media (max-width:640px) {
  .hello h1 { font-size:40px; } .hello { flex-direction:column; align-items:flex-start; } .hello-date { text-align:left; }
  .course-card .todo.todo-next { flex-direction:column; align-items:stretch; } .todo.todo-next .btn { width:100%; }
}
/* Field manual: review flags on the analytics table read as plain words, so the table still fits the page. */
.chip.flag { font-family:inherit; text-transform:none; letter-spacing:0; font-size:12px; border:0; padding:1px 0; text-align:left; white-space:normal; text-decoration:underline; text-underline-offset:3px; }
table th { overflow-wrap:anywhere; }

/* Account security: sign-in help on a person's page, the school's sign-in security page. */
dl.kv { display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:8px 0 12px; }
dl.kv dt { color:var(--muted); font-size:13px; } dl.kv dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.panel-inset { border-left:3px solid var(--ink); padding:4px 0 4px 14px; margin:10px 0; max-width:520px; }
table.plain { width:100%; border-collapse:collapse; } table.plain td, table.plain th { padding:8px 10px 8px 0; border-bottom:1px solid var(--line-2); text-align:left; vertical-align:top; }
table.plain td.right { text-align:right; padding-right:0; }
.row.wrap { flex-wrap:wrap; }
#signInHelp { border-top:1px solid var(--line-2); margin-top:14px; padding-top:12px; }
@media (max-width:560px) { dl.kv { grid-template-columns:1fr; gap:0 0; } dl.kv dd { margin-bottom:8px; } }
#signInHelp details { margin-bottom:16px; }
.notice.twostep-due { margin-bottom:22px; }

/* =====================================================================================================================
   READABILITY (Brandon, 2026-11-20: "text very difficult to read"). Larger body text, darker secondary text, a lighter
   page, and labels in the ordinary typeface at a readable size: the small, wide-spaced, all-capitals typewriter labels
   are kept only for the few short tags where they cannot be mistaken for content (course codes, status tags).
   ===================================================================================================================== */
:root { --bg:#f8f6f1; --surface:#fffefb; --surface-2:#f1ede4; --muted:#40444b; --ink-2:#2a2d33; --line:#cfc8b9; --line-2:#b3ab9a; }
body { font-size:16.5px; line-height:1.6; }
.small { font-size:14.5px; } .muted { color:var(--muted); }
p, li, td, dd, label { overflow-wrap:break-word; }
main h2 { font-family:inherit; font-size:21px; font-weight:700; letter-spacing:-.01em; text-transform:none; margin:34px 0 12px; }
main h2::before { width:6px; height:20px; }
main h3 { font-size:18.5px; }
.eyebrow { font-size:13px; letter-spacing:.08em; color:var(--ink-2); }
th { font-family:inherit; font-size:14px; font-weight:600; letter-spacing:.01em; text-transform:none; color:var(--ink-2); }
td { font-size:16px; }
.chip { font-family:inherit; font-size:13px; font-weight:600; letter-spacing:.01em; text-transform:none; padding:1px 8px; }
.chip.ok, .chip.ok-chip, .chip.band-above { color:#1c6b3a; } .chip.warn, .chip.band-near, .chip.level-aemt { color:#8a5200; } .chip.bad, .chip.band-below, .chip.level-paramedic { color:#a3221b; }
.side .nav-item, .side a.nav-item { font-size:15.5px; }
.side .sect { font-family:inherit; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--ink-2); }
.side .school small { font-family:inherit; font-size:13px; letter-spacing:.03em; }
.course-card .code { font-size:13px; } .course-card .stat span { font-size:14px; }
.hello-date { font-family:inherit; font-size:14px; letter-spacing:.04em; color:var(--ink-2); }
.todo.todo-next .t span { font-family:inherit; font-size:13.5px; font-weight:600; letter-spacing:.04em; color:#ffc9a8; }
.todo .t span, .todo .t b { line-height:1.4; } .todo .t b { font-size:17px; }
.btn { font-size:15.5px; } .btn.small, .small-btn { font-size:14.5px; }
input, select, textarea { font-size:16px; }
.notice { font-size:16px; }
table.gb th.item, table.gb th.item b { font-size:14.5px; }
.ctabs button { font-size:16px; }
dl.kv dt { font-size:14.5px; }
@media (max-width:640px) { body { font-size:16.5px; } main h2 { font-size:19px; } }

/* A student's page for course staff. */
.stu-head { align-items:flex-end; }
.stu-step { display:flex; flex-direction:column; gap:8px; align-items:flex-end; } .stu-step select { min-width:220px; }
.stu-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:0; border-top:2px solid var(--ink); border-bottom:1px solid var(--line-2); margin:18px 0 14px; }
.stu-fact { text-align:left; background:none; border:0; border-right:1px solid var(--line); padding:14px 16px 12px 0; margin-right:16px; font:inherit; color:inherit; cursor:pointer; }
.stu-fact:last-child { border-right:0; }
.stu-fact b { display:block; font-size:34px; font-weight:700; letter-spacing:-.03em; line-height:1.05; } .stu-fact b small { font-size:17px; font-weight:500; color:var(--muted); letter-spacing:0; }
.stu-fact span { font-size:14.5px; color:var(--muted); }
.stu-fact:hover b, .stu-fact:focus-visible b { color:var(--primary); }
.stu-nav { display:flex; flex-wrap:wrap; gap:8px; position:sticky; top:0; z-index:5; background:var(--bg); padding:10px 0; border-bottom:1px solid var(--line); }
.stu-nav .grow { flex:1 1 20px; }
[id^="sec-"] { scroll-margin-top:70px; }
a.stu-open { font-size:13.5px; font-weight:600; white-space:nowrap; margin-left:6px; }
tr.focus-row > td { background:#fff3d6 !important; box-shadow:inset 0 2px 0 var(--primary), inset 0 -2px 0 var(--primary); }
@media (max-width:700px) { .stu-step { align-items:stretch; width:100%; } .stu-step select { width:100%; } .stu-fact { border-right:0; border-bottom:1px solid var(--line); margin-right:0; } }
/* Column headings never break in the middle of a word. */
table th { overflow-wrap:normal; word-break:normal; hyphens:none; }
#prTable th { white-space:nowrap; }

/* "Back to <student>": shown above pages opened from a student's page. */
.return-bar { display:flex; align-items:center; gap:10px 16px; flex-wrap:wrap; max-width:1120px; margin:14px 28px 0; padding:10px 16px; background:var(--surface); border:1px solid var(--line-2); border-left:6px solid var(--primary); font-size:15.5px; }
.return-bar[hidden] { display:none; }
.return-bar .return-to { font-weight:700; color:var(--ink); text-decoration:none; }
.return-bar .return-to:hover { text-decoration:underline; }
.return-bar .muted { flex:1; min-width:0; }
@media (max-width:700px) { .return-bar { margin:10px 16px 0; } }

/* Item Lab: a kept share link in the Share links table. */
.lab-link code { display:inline-block; max-width:34ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }

/* Item Lab: four places, one search, and the less-used controls folded away. */
.lab-find { position:relative; display:grid; gap:4px; max-width:720px; margin:14px 0 18px; }
.lab-find label { font-weight:600; }
.lab-find input { width:100%; padding:11px 14px; font-size:16.5px; }
.lab-find-out { border:1px solid var(--line-2); background:var(--surface); padding:6px 16px 12px; max-height:60vh; overflow:auto; }
.lab-find-out[hidden] { display:none; }
.lab-find-out h3 { font-size:14px; margin:12px 0 4px; }
.lab-find-out ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.lab-crumb { margin:14px 0 4px; display:flex; gap:14px; align-items:baseline; flex-wrap:wrap; }
.lab-more { margin:10px 0; }
.lab-more > summary { cursor:pointer; font-weight:600; padding:6px 0; }
.lab-more[open] > summary { margin-bottom:8px; }
#selRow[hidden] { display:none; }

/* =====================================================================================================================
   ROUTE LOOK (Brandon, 2026-11-28: "this is the kind of design that I wanted for everything"). One layer over
   everything above, matching the public home page: the Figtree typeface, deep navy for the frame (top band, side menu,
   "continue" cards), a warm light page for reading, white rounded cards, pill-shaped tags and tabs, and orange kept for
   the main action and "you are here". A school's own colour still replaces the orange (applyAccent in brand.js).
   Reading surfaces stay light on purpose: lessons, exams and the gradebook are read for long stretches.
   ===================================================================================================================== */
@font-face { font-family:"Figtree"; src:url("/fonts/Figtree-Variable.woff2") format("woff2"); font-weight:300 900; font-display:swap; }
:root {
  --bg:#f5f2ec; --surface:#ffffff; --surface-2:#f3efe7; --surface-3:#e8e2d6; --card:var(--surface);
  --line:#e6e0d5; --line-2:#d2cabb; --ink:#1c2430; --ink-2:#34404e; --muted:#4d5766;
  --primary:#c24e0c; --primary-hover:#a3400a; --primary-soft:#ffeada; --brand:#c24e0c;
  --next:var(--primary); --next-hover:var(--primary-hover); --next-soft:var(--primary-soft);
  --navy:#0e1621; --navy-2:#18263a; --navy-3:#24344a; --navy-ink:#f3efe8; --navy-muted:#9fb0c3;
  --on-navy:color-mix(in srgb, var(--primary) 45%, #ffb066);
  --band:var(--navy); --band-ink:var(--navy-ink); --band-muted:var(--navy-muted);
  --nav:var(--navy); --nav-ink:#c6d0dc; --nav-hover:var(--navy-2); --nav-active:var(--navy-2);
  --radius:18px; --radius-sm:12px;
  --focus:0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
}
body { font-family:"Figtree", "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); }

/* ---- frame: navy band and side menu */
.top { background:var(--navy); color:var(--navy-ink); min-height:62px; }
.top .avatar { border-radius:50%; font-family:inherit; font-weight:800; background:var(--on-navy); color:#1a1005; }
.top .icon-btn, .top .menu-btn { border-radius:12px; border-color:var(--navy-3); }
.search-btn { background:var(--navy-2); border-color:transparent; color:var(--navy-muted); border-radius:999px; }
.search-btn:hover { border-color:var(--navy-muted); color:var(--navy-ink); }
.search-btn kbd { border-color:var(--navy-3); color:var(--navy-muted); border-radius:6px; }
.side { background:var(--navy); color:var(--nav-ink); border-right:0; }
.side > .mark, .side > a.mark { background:transparent; min-height:62px; }
.side .mark svg rect { fill:var(--primary); }
.side .school { color:#fff; border-bottom:1px solid var(--navy-3); padding:2px 10px 14px; }
.side .school small { color:var(--navy-muted); }
.side .school select { background:var(--navy-2); color:#fff; border-color:var(--navy-3); border-radius:10px; }
.side .sect { color:var(--navy-muted); }
.nav-item, .side a.nav-item { border-radius:12px; border-left:0; color:var(--nav-ink); margin:1px 0; }
.nav-item:hover { background:var(--navy-2); color:#fff; }
.nav-item.on { background:var(--navy-2); color:#fff; box-shadow:inset 4px 0 0 var(--on-navy); }
.side .me { background:var(--navy); border-top:1px solid var(--navy-3); }
.side .me b { color:#fff; } .side .me button, .side .me .link { color:var(--navy-muted); }
.badge { border-radius:999px; font-family:inherit; background:var(--on-navy); color:#1a1005; }
.banner { border-radius:0; }

/* ---- type */
h1 { font-weight:800; letter-spacing:-.025em; }
main h2 { font-size:22px; font-weight:800; letter-spacing:-.015em; }
main h2::before { content:none; }
main h3 { font-weight:700; }
.eyebrow { font-family:inherit; font-weight:700; letter-spacing:.02em; text-transform:none; font-size:15px; color:var(--primary); }
.page-head { border-bottom:0; padding-bottom:6px; margin-bottom:18px; }
a, .link { color:var(--primary); }
code { border-radius:8px; }

/* ---- controls */
.btn, a.btn { border-radius:12px; border:1.5px solid var(--line-2); background:var(--surface); color:var(--ink); font-weight:650; min-height:40px; padding:0 16px; }
.btn:hover:not(:disabled), a.btn:hover { background:var(--surface-2); color:var(--ink); border-color:var(--ink-2); }
.btn.primary, a.btn.primary, .btn.next, a.btn.next { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:700; }
.btn.primary:hover:not(:disabled), a.btn.primary:hover, .btn.next:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); color:#fff; }
.btn.small, .btn.small-btn { border-width:1.5px; min-height:32px; border-radius:10px; padding:0 12px; }
.btn.danger { border-color:color-mix(in srgb, var(--danger) 45%, #fff); color:var(--danger); background:var(--surface); }
.btn.danger:hover:not(:disabled) { background:var(--danger); border-color:var(--danger); color:#fff; }
.btn.switch:hover:not(:disabled) { background:var(--surface); color:var(--ink); }
.icon-btn { border-radius:12px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { border-radius:12px; border-color:var(--line-2); background:#fff; }
.avatar { border-radius:50%; }

/* ---- surfaces: white rounded cards on the warm page */
.panel, .card { border-radius:var(--radius); background:var(--surface); border:1px solid var(--line); }
.module.panel { border:1px solid var(--line); background:var(--surface); padding:18px 22px 14px; border-radius:var(--radius); }
.module.panel + .module.panel { margin-top:14px; }
.panel.empty { border:1px dashed var(--line-2); background:transparent; border-radius:var(--radius); }
.dash > * > .panel, .dash .panel { border:1px solid var(--line); background:var(--surface); padding:18px 22px; border-radius:var(--radius); }
.notice { border-radius:14px; }
.gs, .meter, .meter span, progress { border-radius:999px; }
.rp-dialog, dialog { border-radius:22px; }
.return-bar { border-radius:14px; border:1px solid var(--line); border-left:6px solid var(--primary); }
.lab-find-out { border-radius:14px; }
.savebar { background:var(--bg); }

/* ---- tables: light rules, no heavy bar */
table { border-top:1px solid var(--line-2); }
th { color:var(--ink-2); font-weight:700; border-bottom:1px solid var(--line-2); }
td { border-bottom:1px solid var(--line); }
table.gb th.grp, table.kv th, table.gb tr.why td { background:var(--surface-2); }
table.gb th.sticky, table.gb td.sticky { background:var(--bg); }
.panel table.gb th.sticky, .panel table.gb td.sticky { background:var(--surface); }
.block-text table { border-radius:12px; overflow:hidden; }

/* ---- tags: soft pills that say what they mean */
.chip { border-radius:999px; border:0; background:var(--surface-3); color:var(--ink-2); font-weight:700; font-size:13px; padding:3px 11px; }
.chip.ok, .chip.ok-chip, .chip.band-above { background:var(--ok-soft); color:#1c6b3a; }
.chip.warn, .chip.band-near, .chip.level-aemt { background:var(--warn-soft); color:#7a4a00; }
.chip.bad, .chip.band-below, .chip.level-paramedic { background:var(--danger-soft); color:#a3221b; }
.chip.info, .chip.tag, .chip.level-emt { background:var(--primary-soft); color:var(--primary-hover); }
/* A tag stays on one line inside a table on a wide screen; anywhere narrow it may wrap so the page never scrolls sideways. */
@media (min-width:901px) { td .chip { white-space:nowrap; } }
.chip.flag { background:transparent; border-radius:0; padding:1px 0; white-space:normal; }

/* ---- tabs: pills; the one you are on is navy */
.ctabs, .tabs { border-bottom:0; gap:6px; flex-wrap:nowrap; padding:4px 0; }
.ctabs button, .tabs button { border:0; border-radius:999px; padding:9px 18px; font-weight:700; color:var(--ink-2); background:transparent; }
.ctabs button:hover, .tabs button:hover { background:var(--surface-3); color:var(--ink); }
.ctabs button[aria-selected="true"], .tabs button.on, .tabs button[aria-selected="true"] { background:var(--navy); color:#fff; border-color:transparent; }

/* ---- numbers */
.tile { border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); padding:14px 18px; min-width:128px; }
.tile b { font-weight:800; }
.cards .stat { border-radius:var(--radius); border:1px solid var(--line); background:var(--surface); padding:16px 18px; }
.need-n { font-family:inherit; font-weight:800; }
.needs { border-top:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:4px 20px; }
.need:last-child { border-bottom:0; }

/* ---- home and course: the journey */
.hello h1 { font-size:46px; letter-spacing:-.03em; line-height:1.02; }
.hello-date b { font-family:inherit; font-weight:800; }
.course-card { border:1px solid var(--line); background:var(--surface); border-radius:22px; padding:22px 24px 16px; }
.course-card h3 { font-weight:800; }
.course-card .code { font-family:inherit; font-weight:700; letter-spacing:.02em; color:var(--primary); }
.course-card .stat b { font-weight:800; }
.course-card .progress, .course-card .progress span { border-radius:999px; }
.course-card .progress { background:var(--surface-3); height:8px; }
.course-card .progress span { background:linear-gradient(90deg, var(--primary), var(--on-navy)); }
.course-card .todo.todo-next, .upnext .continue { background:var(--navy); color:var(--navy-ink); border-radius:22px 22px 22px 64px; }
.upnext .continue { padding:26px 30px 30px; }
.upnext .continue .eyebrow, .todo.todo-next .t span { color:var(--on-navy); }
.upnext .continue .muted { color:var(--navy-muted); }
.upnext .continue .meter { background:var(--navy-3); }
.upnext .continue .meter span { background:linear-gradient(90deg, var(--primary), var(--on-navy)); }
.todo { border-bottom:1px solid var(--line); }
.stu-nav .btn { border-radius:999px; }

/* ---- exams: the same frame colours, nothing else changed */
.exam-bar { background:var(--navy); }
.exam-timer { background:var(--navy-2); border-radius:10px; }
.opt { border-radius:14px; }
.opt:has(input:checked) { border-color:var(--navy); background:#eef2f7; box-shadow:inset 4px 0 0 var(--navy); }

/* ---- phone */
@media (max-width:900px) {
  body.in-school:not(.exam-mode) .botnav:not([hidden]) { background:var(--navy); }
  .botnav a, .botnav button { color:var(--navy-muted); border-top-width:3px; }
  .botnav a.on { color:#fff; border-top-color:var(--on-navy); }
  .hello h1 { font-size:38px; }
  .course-card { padding:18px 16px 12px; }
}

/* Demo front page: "Select your journey". A navy dispatch band, then three seats that phase in one after another. */
.landing.demo-start { max-width:1080px; }
.demo-hero { position:relative; background:var(--navy); color:var(--navy-ink); border-radius:26px 26px 26px 90px; padding:38px 44px 30px 56px; margin:8px 0 0; overflow:hidden; }
.demo-hero h1 { color:#fff; font-size:clamp(38px, 5.4vw, 60px); line-height:1.02; letter-spacing:-.03em; margin:10px 0 12px; }
.demo-tone { display:flex; align-items:center; gap:10px; margin:0; font-weight:700; font-size:14.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--on-navy); }
.beacon { width:10px; height:10px; border-radius:50%; background:var(--on-navy); flex:none; }
.demo-lead { font-size:19px; max-width:38em; margin:0; color:#cfd8e3; }
.demo-routeline { display:block; width:100%; height:54px; margin-top:18px; }
.demo-routeline path { stroke:var(--on-navy); }
.demo-routeline circle { fill:var(--navy); stroke:var(--on-navy); stroke-width:4; }
.role-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; margin:22px 0 30px; }
.role-card { position:relative; display:flex; flex-direction:column; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:22px 22px 22px 64px; padding:24px 26px 28px 30px; }
.role-card h2 { margin:2px 0 0; font-size:28px; }
.role-card p { margin:0; }
.role-card .btn { margin-top:auto; align-self:flex-start; min-height:48px; padding:0 22px; font-size:16.5px; }
.role-card .small { margin-bottom:14px; }
.role-call { display:flex; align-items:center; gap:10px; font-weight:700; font-size:13.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); }
.role-n { width:34px; height:34px; border-radius:50%; background:var(--navy); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; letter-spacing:0; }
.role-card:hover { border-color:var(--primary); }
.more-people { margin-bottom:14px; } .more-people > summary { cursor:pointer; font-weight:700; }
@media (max-width:860px) { .role-grid { grid-template-columns:minmax(0, 1fr); } .demo-hero { padding:28px 24px 22px 30px; border-radius:22px 22px 22px 56px; } }
@keyframes rp-phase-in { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
@keyframes rp-beacon { 0%, 100% { opacity:1; box-shadow:0 0 0 0 color-mix(in srgb, var(--on-navy) 60%, transparent); } 50% { opacity:.45; box-shadow:0 0 0 8px transparent; } }
@keyframes rp-route-run { to { stroke-dashoffset:-42; } }
@media (prefers-reduced-motion: no-preference) {
  .demo-start .phase { animation:rp-phase-in .55s cubic-bezier(.2, .7, .2, 1) both; }
  .demo-hero .phase:nth-child(1) { animation-delay:.05s; } .demo-hero .phase:nth-child(2) { animation-delay:.18s; }
  .demo-hero .phase:nth-child(3) { animation-delay:.32s; } .demo-hero .phase:nth-child(4) { animation-delay:.46s; }
  .role-grid .phase:nth-child(1) { animation-delay:.62s; } .role-grid .phase:nth-child(2) { animation-delay:.78s; } .role-grid .phase:nth-child(3) { animation-delay:.94s; }
  .demo-start > details.phase { animation-delay:1.15s; }
  .beacon { animation:rp-beacon 1.8s ease-in-out infinite; }
  .demo-routeline path { animation:rp-route-run 2.2s linear infinite; }
  .tour { animation:rp-phase-in .35s ease-out both; }
}

/* Demo tour panel: sits over the page's bottom corner, out of the way of the page it describes. */
.tour { position:fixed; right:20px; bottom:20px; z-index:30; width:min(400px, calc(100vw - 32px)); background:var(--navy); color:var(--navy-ink); border-radius:22px 22px 22px 56px; padding:20px 22px 20px 26px; box-shadow:0 18px 50px -12px rgb(14 22 33 / .55); }
.tour h2 { margin:6px 0 4px; font-size:21px; font-weight:800; color:#fff; letter-spacing:-.015em; }
.tour h2::before { content:none; }
.tour p { margin:0; color:#d3dbe5; font-size:15.5px; line-height:1.5; }
.tour .tour-kicker { color:var(--on-navy); font-weight:700; font-size:14px; }
.tour-route { display:flex; align-items:center; gap:0; margin:10px 0 2px; }
.tour-route span { width:12px; height:12px; border-radius:50%; border:2px solid var(--navy-3); flex:none; position:relative; }
.tour-route span + span { margin-left:22px; }
.tour-route span + span::before { content:""; position:absolute; right:100%; top:50%; width:22px; height:2px; margin:-1px 2px 0 0; background:var(--navy-3); }
.tour-route span.done { background:var(--on-navy); border-color:var(--on-navy); }
.tour-route span.done + span::before { background:var(--on-navy); }
.tour-route span.here { background:#fff; border-color:var(--on-navy); box-shadow:0 0 0 4px color-mix(in srgb, var(--on-navy) 30%, transparent); }
.tour-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:16px; }
.tour .btn { background:transparent; color:#fff; border-color:var(--navy-3); }
.tour .btn:hover:not(:disabled) { background:var(--navy-2); color:#fff; border-color:var(--navy-muted); }
.tour .btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; }
.tour .btn.primary:hover:not(:disabled) { background:var(--primary-hover); border-color:var(--primary-hover); }
.tour .link { color:var(--navy-muted); margin-left:auto; }
body.exam-mode .tour { display:none; }
body.has-tour:not(.exam-mode) main { padding-bottom:300px; }
@media (max-width:900px) { body.in-school .tour { bottom:calc(72px + env(safe-area-inset-bottom, 0px)); right:16px; } }

/* Write a question by hand. */
.qw { max-width:860px; }
.qw .panel > h2 { margin-top:0; }
.kind-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kind-grid.two-up { grid-template-columns:repeat(2, minmax(0, 220px)); }
.kind { display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding:14px 16px; border:1.5px solid var(--line-2); border-radius:16px; background:var(--surface); cursor:pointer; }
.kind > span { display:flex; flex-direction:column; gap:2px; min-width:0; }
.kind input { margin-top:5px; flex:none; }
.kind:hover { border-color:var(--ink-2); }
.kind:has(input:checked) { border-color:var(--navy); background:#eef2f7; box-shadow:inset 4px 0 0 var(--navy); }
.fmt-bar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.fmt-bar .btn { min-width:38px; font-size:16px; }
.qw textarea { width:100%; resize:vertical; font-size:17px; line-height:1.5; }
.qw-preview:not(:empty) { border-left:4px solid var(--line-2); padding:2px 0 2px 14px; }
.qw-preview .pre, .stem-view, .pre { white-space:pre-wrap; }
.choices { display:grid; gap:10px; }
.choice { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border:1.5px solid var(--line-2); border-radius:16px; background:var(--surface); }
.choice.is-right { border-color:var(--ok); background:var(--ok-soft); }
.choice-mark { display:flex; flex-direction:column; align-items:center; gap:4px; font-weight:800; width:34px; flex:none; padding-top:6px; cursor:pointer; }
.choice-mark input { width:20px; height:20px; }
.choice details { margin-top:4px; } .choice details summary { cursor:pointer; color:var(--muted); }
.narrow-num { max-width:160px; }
@media (max-width:700px) { .kind-grid { grid-template-columns:minmax(0, 1fr); } .choice { flex-wrap:wrap; } }

/* Skill sheets: preview before publishing, scenarios, retire. */
.preview-sheet { border:2px dashed var(--line-2); background:var(--surface); margin-top:14px; }
.preview-sheet .preview-title { font-size:26px; font-weight:800; margin:2px 0 4px; }
.scenario-box { border-left:6px solid var(--navy); }
.scenario-box h2 { margin:0; font-size:19px; }
.scenario-text { max-height:46vh; overflow:auto; padding:4px 2px; font-size:17.5px; line-height:1.6; }
.scenario-text.small { max-height:9.5em; font-size:15px; }
.scenario-text > :first-child { margin-top:0; }
.scen-row.is-retired { opacity:.7; }
.file-btn { cursor:pointer; }
@media print { .preview-sheet { border:0; } }

/* Question banks page. */
.bank-card { display:grid; gap:8px; justify-items:start; text-decoration:none; color:inherit; margin:0; }
.bank-card:hover { border-color:var(--primary); }
.bank-card b { font-size:18px; }
.run-link { display:block; white-space:nowrap; }
.scen-part { display:grid; gap:10px; padding-top:6px; border-top:1px solid var(--line); min-width:0; }
.scen-part p { margin:0; }
.scen-aloud { color:#e58a45; margin-top:16px; }
.scen-panel .scen-ask { margin-top:12px; } .scen-panel .scen-sets { margin-top:10px; }
.scen-part-setup, .scen-part-expected, .scen-part-debrief { background:transparent; border:1.5px dashed #33475f; }
/* A skill sheet attached to a lesson. */
.skill-box { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:16px 20px; display:grid; gap:8px; }
.skill-box h3 { margin:0; font-size:21px; } .skill-box h4 { margin:12px 0 4px; font-size:16px; } .skill-box p { margin:0; }
.skill-items summary { cursor:pointer; font-weight:600; min-height:36px; }
.skill-list { margin:4px 0 0; padding-left:28px; display:grid; gap:6px; }
.skill-list .crit { color:var(--danger); }
