:root{
    --cb-blue:      #324DC7;
    --cb-blue-dark: #2538A8;
    --cb-blue-bg:   #3B4FC0;
    --cb-navy:      #232C63;
    --cb-lightband: #E3EAF8;
    /* in-test header/footer tint, sampled from
       reference/bluebook-screenshots/30 — the real test chrome isn't white */
    --cb-testchrome:#E6EDF8;
    /* in-test content column, measured from reference 31 */
    --pane-content: 816px;
    --cb-yellow:    #FFCE31;
    --cb-red:       #B72C3D;
    --ink:          #1E1E1E;
    --ink-soft:     #4F5560;
    --line:         #D9D9D9;
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --hl-yellow: #FBF3B6;
    --hl-blue:   #CDE4FB;
    --hl-pink:   #F8D2E2;
    --note-yellow: #FEDB00;   /* saturated noted-span yellow, sampled from screenshot 13 */
    --flag-red: #C23349;      /* bookmark red, sampled from screenshot 15 */
  }
  *{ box-sizing:border-box; }
  /* body grows with its content: a sticky child only sticks within its
     parent's box, so a fixed height:100% would release the top bar after one
     viewport. The full-height screens size themselves in vh, not %. */
  html{ height:100%; }
  body{ min-height:100%; }
  body{ margin:0; font-family:var(--sans); color:var(--ink); background:#fff; -webkit-font-smoothing:antialiased; }
  button{ font-family:inherit; cursor:pointer; }
  .hidden{ display:none !important; }
  :focus-visible{ outline:2px solid var(--cb-blue); outline-offset:2px; }

  .pill{
    border:none; border-radius:24px; padding:12px 30px; font-size:15px; font-weight:700;
    background:var(--cb-blue); color:#fff;
  }
  .pill:hover{ background:var(--cb-blue-dark); }
  .pill.ghost{ background:#fff; color:var(--cb-navy); border:1.5px solid var(--cb-navy); }
  .pill.ghost:hover{ background:#F2F4FB; }
  .pill.yellow{ background:var(--cb-yellow); color:var(--ink); }
  .pill.yellow:hover{ background:#F5C112; }

  /* ================= SIGN IN (Phase F §5, screenshot 21) ================= */
  #screen-signin{
    min-height:100vh; background:var(--cb-blue);
    display:flex; flex-direction:column; align-items:center; padding:60px 20px 200px;
    position:relative; overflow:hidden;
  }
  .tyd-pill{
    position:absolute; top:28px; right:34px; z-index:3;
    display:flex; align-items:center; gap:9px;
    background:#7E96DD; color:#001C7C; border:none; border-radius:24px;
    padding:13px 24px; font-size:15px; font-weight:700;
  }
  .tyd-pill:hover{ background:#8CA2E2; }
  .signin-art{
    position:absolute; left:0; right:0; bottom:0; width:100%; height:220px;
    z-index:0; pointer-events:none;
  }
  .signin-error{
    text-align:left; color:#FFD9DD; background:rgba(183,44,61,.85);
    font-size:13.5px; font-weight:600; border-radius:8px; padding:9px 12px; margin-top:10px;
  }
  .signin-card .signin-error{ color:#7A1420; background:#FBE9EB; }
  .bb-logo{ color:#fff; font-size:34px; font-weight:800; letter-spacing:-0.5px; display:flex; align-items:center; gap:8px; }
  .bb-logo .star{ font-size:30px; transform:rotate(-12deg); display:inline-block; }
  .bb-logo sup{ font-size:11px; font-weight:400; }
  .signin-card{
    background:#fff; border-radius:16px; padding:38px 44px; width:100%; max-width:520px;
    margin-top:48px; box-shadow:0 6px 24px rgba(0,0,0,.18); text-align:center;
    position:relative; z-index:2;
  }
  .signin-card h1{ margin:0 0 26px; font-size:28px; }
  .signin-card label{ display:block; text-align:left; font-size:13px; font-weight:700; margin:0 0 6px; }
  .signin-card input{
    width:100%; padding:12px 14px; font-size:16px; border:1.5px solid #9AA0AE; border-radius:8px;
  }
  .signin-card .pill{ width:100%; margin-top:22px; }
  .signin-note{ margin-top:22px; font-size:13px; color:var(--ink-soft); }
  .signin-footer{ margin-top:auto; color:#C9D2F2; font-size:12px; padding-top:40px; position:relative; z-index:2; }

  /* ================= HOME ================= */
  #screen-home{ min-height:100vh; }
  /* Persistent bar (screenshot 29): pinned while scrolling home and Score
     Details. Opaque background so content scrolls under it, not through it. */
  /* ---------------------------------------------------------------------
     FLOATING LAYERS ARE ID-SCOPED (2026-08-09).
     Every rule below creates a position:fixed / sticky layer, and each was
     previously reachable from a BARE CLASS TOKEN. That is what made
     class="qnav-overlay" — with no style attribute at all — render a
     full-viewport z-index:50 sheet out of a crafted attempt record: planted in
     a choice, every click on screen bubbled to that choice and answered it;
     planted in the passage it swallowed clicks and, because .t-footer is
     unpositioned, Next and Back could not be reached until the timer expired.
     The sanitizer's class allowlist now blocks that particular route, but the
     hazard belonged to the CSS: any FUTURE sink that renders untrusted markup
     would have inherited it, whether or not it used the same sanitizer. So the
     capability is removed at the source — these rules now require the specific
     element, and a stray class token cannot summon a floating layer.
     :where() is used rather than a plain #id prefix because it contributes ZERO
     specificity: the selectors keep the exact weight they had, so nothing
     downstream that overrides them changes behaviour. All eight fixed/sticky
     class rules in this file are covered; there are no others.
     --------------------------------------------------------------------- */
  :where(#appTopBar).home-top{
    display:flex; align-items:center; justify-content:space-between; padding:18px 42px;
    position:sticky; top:0; z-index:60; background:#fff;
  }
  .home-top .bb-logo-sm{ color:var(--cb-blue); font-size:22px; font-weight:800; display:flex; align-items:center; gap:6px; }
  /* wordmark shares the chip's Score-Details-only "back" affordance — same
     scoping as .home-top.on-scoredetails .user-chip below, so it doesn't
     look clickable on Home/Score Calculator, where the click is a no-op */
  .home-top.on-scoredetails .bb-logo-sm{ cursor:pointer; }
  /* sync indicator (Phase H §1) — same quiet treatment as the local pill */
  .sync-dot{
    width:8px; height:8px; border-radius:50%; background:#1E7A43; flex-shrink:0;
  }
  .sync-tag.syncing .sync-dot{ background:#8A6D00; }
  .sync-tag.offline .sync-dot{ background:var(--cb-red); }
  .ta-label{ display:block; font-size:12.5px; font-weight:700; margin:12px 0 5px; }
  #tutorEmail, #tutorPassword{
    width:100%; padding:10px 12px; font-size:15px; border:1.5px solid #9AA0AE; border-radius:8px;
    font-family:var(--sans);
  }

  /* local mode: deliberately quiet — informative, not alarming */
  .local-tag{
    display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600;
    color:var(--ink-soft); background:#F1F2F5; border:1px solid var(--line);
    border-radius:14px; padding:5px 13px; margin:0 auto 0 18px;
  }
  .home-user{ display:flex; align-items:center; gap:10px; font-weight:700; }
  /* The name + avatar. A button so it can carry the Score Details "back"
     action, but styled as the plain chip it has always been — inheriting type
     and colour, with no button chrome. */
  .user-chip{
    display:flex; align-items:center; gap:10px; background:none; border:none;
    padding:0; font:inherit; font-weight:700; color:inherit; border-radius:20px;
  }
  .user-chip:disabled{ opacity:1; }             /* home: inert, but not greyed */
  .home-top.on-scoredetails .user-chip{ cursor:pointer; }
  .home-top.on-scoredetails .user-chip:hover{ text-decoration:underline; }
  .home-top.on-scoredetails .user-chip:hover .avatar{ filter:brightness(1.12); }
  .user-chip:focus-visible{ outline:2px solid var(--cb-blue); outline-offset:3px; }
  .home-user .avatar{
    width:36px; height:36px; border-radius:50%; background:var(--cb-blue); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:15px;
  }
  .welcome-band{
    background:var(--cb-lightband); padding:44px 0;
  }
  .welcome-band h1{
    max-width:1100px; margin:0 auto; padding:0 42px; font-weight:400;
    color:var(--cb-blue); font-size:38px;
  }
  .home-main{ max-width:1100px; margin:0 auto; padding:36px 42px 80px; }
  .home-sectionrow{ display:flex; align-items:center; gap:20px; margin:34px 0 20px; flex-wrap:wrap; }
  .home-sectionrow h2{ margin:0; font-size:28px; }
  /* Active | Past pill toggle (Phase D, screenshot 2): selected segment gets
     a check + dark ring inside a light bordered pill */
  .seg{
    display:flex; border:1.5px solid #B9BDC7; border-radius:22px; font-size:14.5px; font-weight:700;
    background:#fff; padding:0;
  }
  .seg-btn{
    background:none; border:2px solid transparent; border-radius:20px; padding:8px 20px;
    font-size:14.5px; font-weight:700; color:var(--ink); margin:-1px;
  }
  .seg-btn.on{ border-color:var(--ink); background:#fff; }
  .seg-btn.on::before{ content:"✓ "; }
  .no-tests-card{
    border:1px solid var(--line); border-radius:12px; max-width:560px; padding:28px 34px; text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
  }
  .no-tests-card h3{ margin:0 0 10px; font-size:20px; }
  .no-tests-card p{ margin:0; font-size:15px; line-height:1.6; }
  /* static helper, top-right of Your Tests — deliberately not a link: there is
     no self-service path, the tutor is the path */
  .section-aside{ margin-left:auto; font-size:14.5px; color:var(--ink-soft); }
  .past-empty{ margin:0; font-size:15px; color:var(--ink-soft); }
  .practice-cards{ display:flex; gap:22px; flex-wrap:wrap; align-items:flex-start; }
  /* practice cards (Phase D, screenshots 2-3): grey header band with the test
     name, white body with status row + primary action; no trash (deliberate
     deviation — students never delete attempts) */
  .pcard{
    border:1px solid var(--line); border-radius:14px; width:290px; padding:0; text-align:left;
    box-shadow:0 2px 8px rgba(0,0,0,.06); transition:box-shadow .15s, transform .15s; overflow:hidden;
  }
  .pcard.clickable:hover{ box-shadow:0 6px 18px rgba(50,77,199,.18); transform:translateY(-2px); cursor:pointer; }
  .pcard-head{
    background:#EFF1F4; padding:18px 20px; font-size:19px; font-weight:700; line-height:1.3;
    min-height:62px; display:flex; align-items:center;
  }
  .pcard-body{ padding:16px 20px 18px; }
  .pcard-status{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:600; }
  .pcard-status .pc-ico{ color:#5F5E5A; }
  .pcard-status .pc-date{ font-weight:400; color:var(--ink-soft); margin-left:auto; font-size:13px; }
  .pcard-action{ display:flex; justify-content:flex-end; margin-top:16px; }
  .pcard-action .pill{ padding:9px 26px; }
  .pcard-link{
    background:none; border:none; font-size:14.5px; font-weight:700; color:var(--ink);
    text-decoration:underline; text-underline-offset:2px; padding:4px 2px;
  }
  .pc-pending{ font-size:13.5px; color:var(--ink-soft); font-style:italic; }

  /* ================= LOADING ================= */
  #screen-loading{ min-height:100vh; display:flex; flex-direction:column; align-items:center; padding-top:90px; }
  #screen-loading h1{ font-weight:400; font-size:34px; margin:0 0 46px; }
  .loading-card{
    border:1px solid var(--line); border-radius:12px; padding:50px 70px; text-align:center; max-width:580px;
    box-shadow:0 2px 10px rgba(0,0,0,.07);
  }
  .hourglass{ font-size:64px; animation:hgspin 2.4s ease-in-out infinite; display:inline-block; }
  @keyframes hgspin{ 0%,70%{ transform:rotate(0);} 85%,100%{ transform:rotate(180deg);} }
  .loading-card p{ font-size:18px; line-height:1.6; margin:30px 0 0; }

  /* ================= GET READY / INTERSTITIAL ================= */
  #screen-ready{ min-height:100vh; display:flex; flex-direction:column; }
  #screen-ready .ready-body{ flex:1; display:flex; flex-direction:column; align-items:center; padding:60px 20px 20px; }
  #screen-ready h1{ font-weight:400; font-size:34px; margin:0 0 40px; }
  .ready-card{
    border:1px solid var(--line); border-radius:12px; padding:38px 44px; max-width:620px; width:100%;
    box-shadow:0 2px 10px rgba(0,0,0,.07);
  }
  .ready-item{ display:flex; gap:18px; margin-bottom:30px; }
  .pcard-badge.pcard-redo{ font-weight:700; }
  .af-redo{ margin:0 0 12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .ready-item.ready-warn{ background:#FDECEC; border:1px solid #E5A3A3; border-radius:10px; padding:14px 16px; }
  .ready-item:last-child{ margin-bottom:0; }
  .ready-item .ricon{
    width:40px; height:40px; border-radius:50%; background:#EBEBEB; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:19px;
  }
  .ready-item h3{ margin:0 0 6px; font-size:19px; }
  .ready-item p{ margin:0; font-size:15px; line-height:1.55; }
  .ready-footer{
    display:flex; justify-content:flex-end; gap:14px; padding:20px 40px 34px;
  }

  /* ================= TEST SCREEN ================= */
  #screen-test{ display:flex; flex-direction:column; height:100vh; overflow:hidden; position:relative; }
  .t-header{
    position:relative; padding:14px 24px 10px; flex-shrink:0;
    border-bottom:2px dashed var(--ink); background:var(--cb-testchrome);
    display:grid; grid-template-columns:1fr auto 1fr; align-items:start;
  }
  .t-header .th-left h1{ margin:0; font-size:20px; font-weight:700; }
  .dir-toggle{
    background:none; border:none; font-size:15px; font-weight:600; padding:6px 0 0; display:flex; align-items:center; gap:6px;
  }
  .dir-toggle .chev{ transition:transform .15s; font-size:12px; }
  .dir-toggle.open .chev{ transform:rotate(180deg); }
  .th-center{ text-align:center; justify-self:center; }
  .t-timer{ font-size:26px; font-weight:700; letter-spacing:.5px; min-height:32px; }
  .t-timer.warn{ color:var(--cb-red); }
  .t-timer .clock-ico{ font-size:22px; }
  .t-timer .timer-untimed{ display:block; font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--ink-soft); line-height:1; }
  .timer-btn{
    margin-top:2px; background:#fff; border:1.5px solid var(--ink); border-radius:16px;
    font-size:13px; font-weight:700; padding:3px 16px;
  }
  .th-right{ justify-self:end; text-align:right; }
  .battery{ font-size:11.5px; color:var(--ink-soft); margin-bottom:4px; }
  .th-tools{ display:flex; gap:22px; justify-content:flex-end; }
  .th-tool{ background:none; border:none; font-size:12.5px; font-weight:600; color:var(--ink); text-align:center; }
  .th-tool .ticon{ font-size:17px; display:block; margin-bottom:2px; }
  .th-tool.on .tlabel{ text-decoration:underline; text-underline-offset:3px; }

  /* Highlight-mode tooltip (screenshots 16-17): dark card under the
     Highlights & Notes button with an up-arrow pointing at it */
  .hl-mode-wrap{ position:relative; display:inline-block; }
  .hl-tip{
    position:absolute; top:calc(100% + 12px); right:-10px; width:238px; z-index:80;
    background:#3F3F3F; color:#fff; text-align:left; font-size:14.5px; font-weight:400;
    line-height:1.5; padding:12px 14px; border-radius:6px; box-shadow:0 4px 14px rgba(0,0,0,.25);
    pointer-events:none;
  }
  .hl-tip b{ display:block; font-size:15px; }
  .hl-tip::before{
    content:""; position:absolute; top:-9px; right:44px;
    border:9px solid transparent; border-bottom-color:#3F3F3F; border-top:none;
  }

  /* Line Reader (Phase E): dim mask + clear draggable band. Sits above the
     panes but below the directions overlay/popups; dimmed areas are
     click-through so the test stays usable while reading. */
  .line-reader{
    position:absolute; inset:0; z-index:35; display:flex; flex-direction:column;
    pointer-events:none;
  }
  .lr-dim{ background:rgba(30,30,30,.5); }
  .lr-dim:last-child{ flex:1; }
  .lr-band{
    height:96px; flex-shrink:0; pointer-events:auto; cursor:grab; position:relative;
    border-top:2px solid #fff; border-bottom:2px solid #fff;
  }
  .lr-band:active{ cursor:grabbing; }
  .lr-grip{
    position:absolute; left:6px; top:50%; transform:translateY(-50%);
    background:#4A4A4A; color:#fff; border-radius:8px; padding:6px 5px; font-size:13px;
    line-height:1; user-select:none;
  }

  /* More menu (Phase C, screenshot 12) */
  .more-wrap{ position:relative; display:inline-block; }
  .more-menu{
    position:absolute; top:calc(100% + 10px); right:-6px; z-index:80; background:#fff;
    border-radius:10px; box-shadow:0 6px 24px rgba(0,0,0,.28); padding:8px 0; min-width:230px;
  }
  .more-item{
    display:flex; align-items:center; gap:14px; width:100%; background:none; border:none;
    font-size:15px; font-weight:500; color:var(--ink); padding:13px 20px; text-align:left;
  }
  .more-item:hover{ background:#F1F3FA; }

  /* Submitted confirmation (Phase D, score-visibility (b); language from
     screenshot 1's "Your answers have been submitted!") */
  #screen-submitted, #screen-setdone{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; }
  .submitted-card{
    max-width:560px; text-align:center; border:1px solid var(--line); border-radius:16px;
    padding:48px 44px 40px; box-shadow:0 4px 20px rgba(0,0,0,.08);
  }
  .sub-check{
    width:64px; height:64px; border-radius:50%; background:#0B7A3E; color:#fff; font-size:34px;
    display:flex; align-items:center; justify-content:center; margin:0 auto 22px;
  }
  .submitted-card h1{ font-size:26px; margin:0 0 14px; color:#0B7A3E; }
  .submitted-card p{ font-size:15.5px; line-height:1.65; margin:0 0 12px; }
  .submitted-actions{ display:flex; gap:14px; justify-content:center; margin-top:26px; flex-wrap:wrap; }

  /* ================= PHASE F components ================= */
  /* generic modal (device check, bug report, save-fail guard) */
  :where(#deviceModal, #bugModal, #tutorAuthModal, #saveFailModal).modal-overlay{
    position:fixed; inset:0; z-index:120; background:rgba(40,40,40,.5);
    display:flex; align-items:center; justify-content:center; padding:20px;
  }
  .modal-card{
    background:#fff; border-radius:14px; box-shadow:0 10px 36px rgba(0,0,0,.35);
    width:min(520px, 94vw); padding:28px 30px 24px; position:relative; text-align:left;
  }
  .modal-card h2{ margin:0 0 8px; font-size:21px; }
  .modal-sub{ margin:0 0 16px; font-size:14.5px; line-height:1.55; color:var(--ink-soft); }
  .modal-actions{ display:flex; gap:12px; justify-content:flex-end; margin-top:18px; flex-wrap:wrap; }
  .modal-note{ margin-top:12px; font-size:13.5px; font-weight:600; color:#1E7A43; }
  .modal-note.err{ color:var(--cb-red); }
  .panel-x.dark{ position:absolute; top:12px; right:14px; color:var(--ink); }
  #bugText{
    width:100%; font-family:var(--sans); font-size:14.5px; line-height:1.5; color:var(--ink);
    border:1.5px solid #9AA0AE; border-radius:8px; padding:10px 12px; resize:vertical;
  }
  .linklike{
    background:none; border:none; font-size:13.5px; color:var(--cb-blue);
    text-decoration:underline; padding:4px;
  }
  .home-footer{ margin-top:48px; display:flex; justify-content:center; gap:22px; }
  .home-signout{ margin-left:12px; font-size:12.5px; }

  /* device-check rows */
  .devrow{
    display:flex; align-items:center; gap:12px; padding:11px 4px; font-size:15px;
    border-bottom:1px solid var(--line);
  }
  .devrow:last-child{ border-bottom:none; }
  .dev-mark{
    width:26px; height:26px; border-radius:50%; flex-shrink:0; display:flex;
    align-items:center; justify-content:center; font-size:14px; font-weight:800;
    background:#EDEDED; color:var(--ink-soft);
  }
  .devrow.pass .dev-mark{ background:#E3F3E8; color:#1E7A43; }
  .devrow.fail .dev-mark{ background:#FBE9EB; color:var(--cb-red); }
  .dev-note{ margin-left:auto; font-size:12.5px; color:var(--ink-soft); text-align:right; }
  .dev-note .katex{ font-size:15px; }

  /* Start Code screen (screenshot 24: pale green #C9DFD3, white digit boxes) */
  #screen-startcode{ min-height:100vh; display:flex; flex-direction:column; background:#C9DFD3; }
  .sc-topbar{
    background:#fff; display:flex; align-items:center; justify-content:space-between;
    padding:14px 26px; border-bottom:1px solid var(--line);
  }
  .sc-home{
    background:none; border:none; display:flex; align-items:center; gap:9px;
    font-size:15.5px; font-weight:700; color:var(--ink);
  }
  .sc-body{ flex:1; display:flex; flex-direction:column; align-items:center; padding:64px 20px; text-align:center; }
  .sc-body h1{ font-size:40px; font-weight:400; margin:0 0 34px; }
  .sc-sub{ font-size:19px; margin:0 0 14px; }
  /* fixed 6×82px + 5×22px = 602px would overflow any viewport under ~642px
     (phones, split-screen); shrink+wrap the boxes so they stay on-screen */
  .sc-boxes{ display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(10px, 3vw, 22px); margin:36px 0 10px; max-width:100%; }
  .sc-digit{
    width:clamp(48px, 12vw, 82px); height:clamp(52px, 13vw, 86px);
    border:1.5px solid var(--ink); border-radius:12px; background:#fff;
    font-size:clamp(22px, 5vw, 34px); font-weight:700; text-align:center; font-family:var(--sans); color:var(--ink);
  }
  .sc-digit:focus{ border-color:var(--cb-blue); outline:2px solid var(--cb-blue); outline-offset:1px; }
  .sc-error{
    color:#7A1420; background:#FBE9EB; border-radius:8px; padding:10px 16px;
    font-size:14.5px; font-weight:600; margin-bottom:8px;
  }
  .sc-start{ margin-top:26px; padding:14px 40px; font-size:16px; }
  .sc-start:disabled{ opacity:.45; cursor:not-allowed; }

  /* Timing choice screen (assignment options, 2026-11-02): the start-code
     screen's frame with a radio list where the digit boxes would be */
  #screen-timing{ min-height:100vh; display:flex; flex-direction:column; background:#C9DFD3; }
  .tc-options{ display:flex; flex-direction:column; gap:12px; margin:30px 0 10px; width:min(560px, 100%); }
  .tc-opt{
    display:flex; align-items:flex-start; gap:14px; background:#fff; border:1.5px solid var(--ink);
    border-radius:12px; padding:14px 18px; text-align:left; cursor:pointer;
  }
  .tc-opt input{ width:20px; height:20px; margin:3px 0 0; flex:none; accent-color:var(--cb-blue); }
  .tc-opt:has(input:checked){ border-color:var(--cb-blue); outline:2px solid var(--cb-blue); outline-offset:1px; }
  .tc-opt:has(input:focus-visible){ outline:2px solid var(--cb-blue); outline-offset:1px; }
  .tc-opt-text{ display:flex; flex-direction:column; gap:3px; }
  .tc-opt-main{ font-size:17px; font-weight:700; }
  .tc-opt-sub{ font-size:14px; color:var(--ink-soft); line-height:1.4; }
  /* two choice blocks on one screen (partial sittings, 2026-11-02): a small
     heading per block; the tutor-fixed value of a hidden block as one line */
  .tc-block-title{ font-size:18px; font-weight:800; margin:26px 0 0; }
  .tc-block-title + .tc-options{ margin-top:12px; }
  .tc-fixed{ margin-top:18px; font-weight:600; }

  /* five-minute alert (screenshot 23): dark card below the header timer */
  .five-min{
    position:absolute; top:64px; left:50%; transform:translateX(-50%); z-index:95;
    background:#1E1E1E; color:#fff; border-radius:8px; padding:16px 18px;
    display:flex; align-items:flex-start; gap:26px; width:min(430px, 92vw);
    font-size:16.5px; line-height:1.4; box-shadow:0 8px 24px rgba(0,0,0,.35);
  }
  .fm-x{ background:none; border:none; color:#fff; font-size:16px; line-height:1; padding:2px; margin-left:auto; }

  /* Highlight-mode cursor (screenshot 18): I-beam + marker, hotspot at the
     marker tip */
  /* Every annotatable region gets the affordance, not just the passage —
     highlighting covers the stem and each choice's text too. */
  .t-body.hl-mode .passage-text,
  .t-body.hl-mode .q-text,
  .t-body.hl-mode .ctext{
    cursor:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='none' stroke='%231E1E1E' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 4h6M6 4v18M3 22h6'/%3E%3C/g%3E%3Cpath d='M16 4.5l7 7-6 6-7-7z' fill='%23fff' stroke='%231E1E1E' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M10 10.5l7 7-10 2.8z' fill='%231E1E1E'/%3E%3C/svg%3E") 7 20, text;
  }

  .t-body{ flex:1; display:flex; overflow:hidden; position:relative; margin-top:6px; }
  .pane{ overflow-y:auto; padding:26px 40px 60px; }
  /* Cap each pane's content and centre it, instead of letting the column grow
     with the monitor (reference 31 vs our 32): measured against 31 at a 1920
     viewport, the real app's content is ~816px in a ~960px pane in BOTH panes.
     Kept at (0,1,0) specificity on purpose so the components that carry their
     own narrower cap — .fig-frame at 470px — still win. */
  .pane > *{ max-width:var(--pane-content); margin-left:auto; margin-right:auto; }
  .pane > .keypad{ margin:0; }        /* dragged, position:fixed — never centred */
  .pane-left{ width:50%; }
  .pane-right{ flex:1; }
  .t-body.single .pane-left, .t-body.single #divider{ display:none; }
  .t-body.single .pane-right{ max-width:860px; margin:0 auto; }
  #divider{
    width:3px; background:#8b8b8b; position:relative; flex-shrink:0; cursor:col-resize;
  }
  #divider .grip{
    position:absolute; top:200px; left:50%; transform:translateX(-50%);
    width:22px; height:34px; background:#f2f2f2; border:1px solid #8b8b8b; border-radius:4px;
    display:flex; align-items:center; justify-content:center; font-size:11px; color:#555; user-select:none;
  }

  /* Leading measured off the references, not guessed: body text in 31, 33 and
     35 sits on a consistent 28-29px line pitch. We were at 17.5 x 1.75 =
     30.6px, the loosest thing on the page, so this is the one place our text
     genuinely ran taller than the real app. 1.64 lands on 28.7px.
     Font-size deliberately unchanged — measured, our glyphs are already
     NARROWER than the reference's (an 86-character reference line renders
     664px in Georgia 17.5 where the real app fills 766px), so shrinking would
     move away from parity, not toward it. See the commit message. */
  .passage-text{
    font-family:var(--serif); font-size:17.5px; line-height:1.64;
    max-width:var(--pane-content); white-space:pre-wrap;
  }
  /* Bluebook's selection blue, on every region a selection can be turned into
     a highlight — otherwise the stem and choices drag in the OS default and
     look like a different app mid-gesture. */
  .passage-text ::selection, .passage-text::selection,
  .q-text ::selection, .q-text::selection,
  .ctext ::selection, .ctext::selection{ background:#BBD3F5; }
  .hl{ cursor:pointer; }
  .hl.c-yellow{ background:var(--hl-yellow); }
  .hl.c-blue{ background:var(--hl-blue); }
  .hl.c-pink{ background:var(--hl-pink); }
  .hl.c-none{ background:transparent; }
  .hl.u-solid{ text-decoration:underline; text-decoration-style:solid; text-decoration-thickness:2px; }
  .hl.u-dashed{ text-decoration:underline; text-decoration-style:dashed; text-decoration-thickness:2px; }
  .hl.u-dotted{ text-decoration:underline; text-decoration-style:dotted; text-decoration-thickness:2px; }
  /* BLUEBOOK-PARITY B: a noted span goes fully saturated yellow only while the
     notes rail is open (screenshot 13); collapsed rail = normal highlight (14) */
  .t-body.notes-open .hl[data-note-id]{ background:var(--note-yellow); }

  .q-head{
    display:flex; align-items:stretch; margin-bottom:18px; border-bottom:2px solid var(--ink); position:relative;
  }
  .q-num{
    background:var(--ink); color:#fff; font-weight:700; font-size:16px; min-width:34px;
    display:flex; align-items:center; justify-content:center; padding:8px 10px;
  }
  .q-flag{
    flex:1; background:#F3F3F3; border:none; display:flex; align-items:center; gap:8px;
    font-size:14.5px; font-weight:600; padding:0 14px; text-align:left;
  }
  .q-flag .bkm{ display:flex; align-items:center; }
  .q-flag .bkm svg path{ fill:none; stroke:#555; }
  .q-flag.on{ text-decoration:underline; }
  .q-flag.on .bkm svg path{ fill:var(--flag-red); stroke:var(--flag-red); }
  /* Review only: sits where the ABC toggle does in a live sitting, so the
     header band keeps its shape. */
  .rv-time{
    background:#F3F3F3; border-left:1px solid #d5d5d5; padding:0 14px;
    display:flex; align-items:center; gap:5px; white-space:nowrap;
    font-size:13px; font-weight:700; color:var(--ink-soft);
  }
  .rv-visits{ font-weight:400; font-size:12px; }
  .abc-toggle{
    background:#F3F3F3; border:none; border-left:1px solid #d5d5d5; padding:0 14px;
    font-size:11px; font-weight:800; letter-spacing:.5px; position:relative;
  }
  .abc-toggle .abctxt{ text-decoration:line-through; }
  .abc-toggle.on{ background:var(--cb-navy); color:#fff; }

  .q-text{
    font-family:var(--serif); font-size:17.5px; line-height:1.6; margin-bottom:22px; white-space:pre-wrap; max-width:760px;
  }
  .choices{ display:flex; flex-direction:column; gap:14px; max-width:760px; }
  .choice-row{ display:flex; align-items:center; gap:12px; }
  .choice{
    flex:1; display:flex; align-items:center; gap:14px; border:1.5px solid var(--ink);
    border-radius:8px; padding:12px 16px; font-family:var(--serif); font-size:16.5px; line-height:1.45;
    background:#fff; cursor:pointer; position:relative;
  }
  /* Math choices read at the stem's size. They were a point smaller, which is
     barely visible in prose but obvious in KaTeX — a fraction or exponent in a
     choice came out noticeably smaller than the same expression in the stem
     (reference 22/23 sets them equal). Scoped to Math so RW is untouched. */
  .t-body.math .choice{ font-size:17.5px; }
  /* Stimulus stacked above the stem in the single Math column. */
  .q-stimulus{ margin-bottom:22px; }
  .q-stimulus .passage-text{ max-width:none; }
  .choice:hover{ background:#FAFAFA; }
  .choice .clabel{
    width:27px; height:27px; border-radius:50%; border:1.5px solid var(--ink); flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    font-family:var(--sans); font-size:13px; font-weight:700;
  }
  .choice.selected{ border-color:var(--cb-blue); border-width:2px; }
  .choice.selected .clabel{ background:var(--cb-blue); border-color:var(--cb-blue); color:#fff; }
  .choice.eliminated{ color:#999; }
  /* BLUEBOOK-PARITY A1: the strikethrough runs edge to edge across the whole
     choice container — through the letter badge — and overhangs the box border
     ~4px each side (measured from reference/bluebook-screenshots/10). */
  .choice.eliminated::after{
    content:""; position:absolute; left:-5px; right:-5px; top:50%; height:2px;
    margin-top:-1px; background:var(--ink); pointer-events:none;
  }
  .choice.eliminated .clabel{ border-color:#999; color:#999; }
  /* A highlight inside a crossed-out choice: the choice greys its text to
     #999, which over a pastel fill drops to ~2.3:1 and is unreadable. Restore
     full ink inside the highlight — the strikethrough still carries the
     crossed-out meaning, and the highlighted words stay legible (~13:1). */
  .choice.eliminated .hl{ color:var(--ink); }
  /* ---- image answer choices (2026-10-07, IMAGE-CHOICES-SPEC.md) ----
     One choice per row, stacked, like every Bluebook choice list; the image
     sits where the text would, capped so it is never wider than the stem
     column and every choice has a predictable height (four capped choices
     still scroll the pane — the cap buys consistency, not a no-scroll fit).
     The 320×220 cap is a judgement — none of the reference captures shows a
     graph-choice item — provisional until a real capture settles it. The
     letter badge centres on the image through .choice's align-items; .rv-mark
     lands to its right because .cimg is flex:0 1 auto (in a review pane
     narrower than ~515px the image, the only flexible item, yields to the
     nowrap mark — revisit with the capture-driven layout pass). Not
     .fig-imgwrap: that is the stem figure's zoom contract. */
  .choice .cimg{ flex:0 1 auto; min-width:0; position:relative; display:inline-flex; }
  .choice .cimg img{ display:block; width:auto; max-width:min(100%, 320px); max-height:220px;
    -webkit-user-drag:none; user-select:none; }
  /* greyed as crossed-out text is (#999); the edge-to-edge strike above still runs across it */
  .choice.eliminated .cimg img{ opacity:.35; }
  /* a malformed entry renders this, never a blank box (choiceBodyHtml) */
  .choice .cimg-missing{ font-family:var(--sans); font-size:13px; color:#8a6d00; background:#FFF6D6;
    border:1px dashed #c9a300; border-radius:6px; padding:10px 14px; }
  /* held ready, NOT applied: the 2×2 grid, should a Bluebook capture show
     graph choices two per row. Literally CSS-only — the :has() keys on the
     choice-img class buildQuestionHtml already puts on an image choice, so
     uncommenting these two lines flips image items (and only them).
  .choices:has(.choice-img){ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .choices:has(.choice-img) .choice-row{ min-width:0; }  */
  .elim-btn{
    width:30px; height:30px; border-radius:50%; border:1.5px solid var(--ink); background:#fff;
    font-size:12px; font-weight:700; position:relative; flex-shrink:0; display:none;
    align-items:center; justify-content:center;
  }
  /* horizontal line through the letter, overhanging the circle ~4px each side
     (screenshot 10 — the real icon's strike is level, not slanted) */
  .elim-btn::after{
    content:""; position:absolute; left:-4px; right:-4px; top:50%; height:1.5px;
    margin-top:-1px; background:var(--ink);
  }
  .elim-mode .elim-btn{ display:flex; }
  .elim-undo{
    display:none; background:none; border:none; font-size:13px; font-weight:700;
    text-decoration:underline; flex-shrink:0; padding:4px;
  }
  .elim-mode .choice-row.is-elim .elim-undo{ display:inline; }
  .elim-mode .choice-row.is-elim .elim-btn{ display:none; }

  /* SPR (student-produced response) */
  .spr-dir{ font-family:var(--serif); max-width:700px; }
  .spr-dir h2{ font-size:22px; margin:0 0 18px; }
  .spr-dir ul{ padding-left:22px; margin:0 0 26px; }
  .spr-dir li{ font-size:16px; line-height:1.6; margin-bottom:12px; }
  .spr-extitle{ text-align:center; font-size:16.5px; margin-bottom:8px; }
  .spr-table{ border-collapse:collapse; margin:0 auto; font-size:15px; font-family:var(--serif); }
  .spr-table th, .spr-table td{ border:1px solid #444; padding:10px 16px; text-align:center; vertical-align:middle; }
  .spr-table code{ background:#eee; padding:2px 7px; display:inline-block; margin:2px 0; font-size:13.5px; font-family:var(--mono, monospace); }
  /* One block that flows in the pane's centred content column; everything
     inside stays left-aligned, like the stem and the choices. */
  .spr-answer{ text-align:left; }
  .spr-input{
    width:150px; font-size:22px; font-family:var(--sans); padding:12px 14px;
    border:1.5px solid var(--ink); border-radius:10px;
  }
  .spr-input:focus{ border-color:var(--cb-blue); }
  .ap-label{ font-family:var(--serif); font-weight:700; font-size:22px; margin:32px 0 14px; }
  .ap-val{ font-family:var(--serif); font-size:24px; }
  .frac{ font-family:var(--serif); font-size:22px; display:inline-flex; align-items:center; gap:4px; }
  .fstack{ display:inline-flex; flex-direction:column; align-items:center; line-height:1.15; }
  .fbar{ width:100%; height:1.5px; background:#111; margin:2px 0; }
  .keypad-toggle{
    background:#1E1E1E; color:#fff; border:none; border-radius:22px; padding:10px 20px;
    font-size:14.5px; font-weight:700; margin-top:28px; display:inline-flex; gap:8px; align-items:center;
  }
  :where(#keypad).keypad{
    position:fixed; z-index:90; background:#fff; border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.35); width:276px;
  }
  .keypad-head{
    background:#1E1E1E; color:#fff; border-radius:12px 12px 0 0; display:flex; align-items:center;
    padding:10px 14px; font-weight:700; cursor:move; user-select:none;
  }
  .kp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:14px 14px 0; }
  .kp-row5{ display:grid; grid-template-columns:repeat(5,1fr); gap:8px; padding:10px 14px 14px; }
  .keypad button[data-k]{
    font-size:19px; font-weight:600; padding:11px 0; border:1px solid #cfcfcf; border-radius:10px;
    background:#fff; box-shadow:0 2px 0 #d8d8d8;
  }
  .keypad button[data-k]:active{ transform:translateY(1px); box-shadow:none; }

  .t-footer{
    flex-shrink:0; border-top:2px dashed var(--ink); padding:14px 30px;
    background:var(--cb-testchrome);
    display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  }
  /* The footer sits ABOVE the question-navigator scrim (2026-08-09). That scrim
     is position:fixed;inset:0;z-index:50, so while the navigator was open it
     covered the whole screen INCLUDING Next and Back, and the footer is
     unpositioned. A click on Next then landed on the scrim, which only closes
     the navigator — so the first click was spent dismissing and a second was
     needed to move. On the Check Your Work page Next is the only way forward,
     which is why that is where it reads as being stuck.
     Raising the footer makes Next and Back reachable in one click; navigate()
     closes the navigator itself, so the click still dismisses AND advances.
     60 clears the scrim (50) and the popup (55); the popup sits at bottom:84px
     and never overlaps the footer, so nothing is drawn over.
     :where(#tFooter) keeps the stacking capability off the bare class token and
     contributes zero specificity — same reasoning as the floating layers above. */
  :where(#tFooter).t-footer{ position:relative; z-index:60; }
  .tf-name{ font-size:17px; font-weight:700; }
  .qnav-btn{
    justify-self:center; background:var(--ink); color:#fff; border:none; border-radius:8px;
    font-size:15px; font-weight:700; padding:11px 20px; display:flex; align-items:center; gap:10px;
  }
  .qnav-btn .chev{ font-size:11px; transition:transform .15s; }
  .qnav-btn.open .chev{ transform:rotate(180deg); }
  .tf-right{ justify-self:end; display:flex; gap:12px; }

  /* Directions popup */
  .dir-overlay{
    position:absolute; inset:0; background:rgba(60,60,60,.45); z-index:40;
  }
  .dir-panel{
    position:absolute; top:0; left:26px; width:min(880px, 78%); background:#fff;
    border-radius:0 0 10px 10px; padding:30px 36px 24px; box-shadow:0 10px 30px rgba(0,0,0,.3);
    max-height:75vh; overflow-y:auto;
  }
  .dir-panel::before{
    content:""; position:absolute; top:-12px; left:34px; border:12px solid transparent; border-bottom-color:#fff; border-top:none;
  }
  .dir-panel p{ font-family:var(--serif); font-size:16.5px; line-height:1.65; margin:0 0 16px; }
  .dir-panel .close-row{ display:flex; justify-content:flex-end; }

  /* Highlight popup — geometry measured from reference/bluebook-screenshots/06–08:
     ~40px swatches, U dropdown with caret, trash in an outlined circle. The
     separator + note button to the right of the trash arrive with Phase B. */
  .hl-popup{
    position:absolute; z-index:60; background:#fff; border-radius:32px; padding:8px 14px;
    box-shadow:0 4px 18px rgba(0,0,0,.3); display:flex; align-items:center; gap:13px;
  }
  .hl-dot{
    width:40px; height:40px; border-radius:50%; border:1.5px solid #C9C9C9; cursor:pointer;
    display:flex; align-items:center; justify-content:center; padding:0;
  }
  .hl-dot.y{ background:var(--hl-yellow); }
  .hl-dot.b{ background:var(--hl-blue); }
  .hl-dot.p{ background:var(--hl-pink); }
  /* active swatch = last-used color (default yellow): dark ring + droplet
     glyph, screenshots 18-20 — the color mode-drag and underline pairing use */
  .hl-dot .drop{ display:none; }
  .hl-dot.active .drop{ display:block; }
  .hl-dot.active{ box-shadow:0 0 0 2px #fff, 0 0 0 4px #4A4A4A; }
  .hl-dot .drop path{ stroke:#1E1E1E; stroke-width:1.3; }
  .hl-dot.y .drop path{ fill:#F4CE0D; }
  .hl-dot.b .drop path{ fill:#8FC0EE; }
  .hl-dot.p .drop path{ fill:#F0A0C4; }
  .hl-sep{ width:1px; height:38px; background:#ddd; }
  .hl-tool{ background:none; border:none; padding:0; color:var(--ink); }
  .hl-u-wrap{ position:relative; display:flex; align-items:center; }
  .hl-u{ display:flex; align-items:center; gap:5px; padding:2px 3px; }
  .u-glyph{ display:flex; align-items:center; }
  .u-caret{
    width:7px; height:7px; border-right:1.8px solid var(--ink); border-bottom:1.8px solid var(--ink);
    transform:rotate(45deg); margin-top:-4px; transition:transform .12s;
  }
  .hl-u.open .u-caret{ transform:rotate(225deg); margin-top:4px; }
  .hl-trash{
    width:40px; height:40px; border-radius:50%; border:1.5px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
  }
  .hl-trash:hover{ background:#F5F5F5; }
  .hl-note{
    width:44px; height:44px; border-radius:50%; border:1.5px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
  }
  .hl-note:hover{ background:#F5F5F5; }

  /* Notes rail (Phase B — screenshots 13/14) */
  .notes-rail{
    width:290px; flex-shrink:0; background:#F0F0F0; position:relative;
    display:flex; flex-direction:column;
  }
  .notes-rail.collapsed{ width:20px; }
  .notes-rail.collapsed .notes-cards{ display:none; }
  .notes-cards{
    flex:1; overflow-y:auto; padding:16px 12px 60px; display:flex; flex-direction:column; gap:14px;
  }
  .note-card{ background:#fff; border:2px solid var(--ink); border-radius:12px; overflow:hidden; }
  .note-head{ background:var(--note-yellow); display:flex; align-items:center; gap:8px; padding:7px 8px 7px 12px; }
  .note-title{
    flex:1; min-width:0; font-size:13.5px; font-weight:700; color:var(--ink);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .note-trash{
    width:32px; height:32px; border-radius:50%; background:#fff; border:none; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; color:var(--ink);
  }
  .note-body-ta{
    display:block; width:100%; border:none; resize:none; outline:none; background:#fff;
    font-family:var(--sans); font-size:14.5px; line-height:1.5; color:var(--ink);
    padding:10px 12px 14px; min-height:64px;
  }
  .note-body-ta::placeholder{ color:#9E9E9E; }
  .notes-chev{
    position:absolute; bottom:44px; width:30px; height:36px; padding:0; z-index:5;
    background:#757575; border:2px solid #E4E4E4; display:flex; align-items:center; justify-content:center;
  }
  .notes-rail:not(.collapsed) .notes-chev{ left:0; border-left:none; border-radius:0 20px 20px 0; }
  .notes-rail.collapsed .notes-chev{ left:-30px; border-right:none; border-radius:20px 0 0 20px; }
  .notes-rail.collapsed .notes-chev svg{ transform:scaleX(-1); }
  .notes-chev:hover{ background:#5F5F5F; }
  .u-menu{
    position:absolute; top:44px; left:50%; transform:translateX(-50%); background:#fff; border-radius:10px;
    box-shadow:0 4px 16px rgba(0,0,0,.28); padding:6px 0; display:flex; flex-direction:column; min-width:74px; z-index:70;
  }
  .u-menu button{ background:none; border:none; padding:10px 12px; font-size:15px; font-weight:700; }
  .u-menu button:hover{ background:#F1F3FA; }
  .u-menu .u-solid{ text-decoration:underline; }
  .u-menu .u-dashed{ text-decoration:underline; text-decoration-style:dashed; }
  .u-menu .u-dotted{ text-decoration:underline; text-decoration-style:dotted; }

  /* Question navigator popup */
  :where(#qnavOverlay).qnav-overlay{ position:fixed; inset:0; z-index:50; }
  :where(#qnavPopup).qnav-popup{
    position:fixed; bottom:84px; left:50%; transform:translateX(-50%); z-index:55;
    background:#fff; border-radius:12px; box-shadow:0 8px 34px rgba(0,0,0,.32);
    padding:22px 30px 24px; width:min(640px, 92vw);
  }
  .qnav-popup::after{
    content:""; position:absolute; bottom:-11px; left:50%; transform:translateX(-50%);
    border:11px solid transparent; border-top-color:#fff; border-bottom:none;
  }
  .qnav-title{ text-align:center; font-size:18px; font-weight:700; margin:0 34px 16px; }
  .qnav-close{
    position:absolute; top:14px; right:14px; background:none; border:none; font-size:20px; line-height:1;
  }
  .qnav-legend{
    display:flex; justify-content:center; gap:26px; font-size:13.5px; font-weight:600;
    border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:10px 0; margin-bottom:20px;
  }
  .qnav-legend span{ display:flex; align-items:center; gap:7px; }
  .lg-pin, .lg-flag{ display:flex; align-items:center; }
  /* CORRECTED 2026-08-19 against reference/bluebook-screenshots/44.png (Check
     Your Work, Math) and 45.png (in-test navigator popup, R&W) — screenshot
     15 alone read as a border-style swap (dashed unanswered / solid
     answered, numeral always blue), which is what this rule used to encode.
     Pixel-sampled from 44 and 45: answered is a FILL INVERSION, not a border
     swap — solid var(--cb-blue) fill, WHITE numeral, no visible border.
     Measured colors: the unanswered numeral ink (#324DC7) and the answered
     fill (#324DC7) are the exact same value in BOTH references, and it's
     already our --cb-blue token — one color, inverted between text and fill,
     nothing new to introduce. Cells also measure perfectly square (1:1) in
     both refs, where ours was 38x34. */
  .lg-dash{ width:15px; height:15px; border:1.5px dashed var(--ink); display:inline-block; }
  .qnav-grid{
    display:grid; grid-template-columns:repeat(10, 1fr); gap:16px 10px; padding:16px 4px 6px; justify-items:center;
  }
  .qcell{
    position:relative; width:38px; height:38px; font-size:15px; font-weight:700; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    border:1.5px dashed var(--ink); color:var(--cb-blue); background:#fff;
  }
  .qcell.answered{ background:var(--cb-blue); border:1.5px solid var(--cb-blue); color:#fff; }
  .qcell.current{ text-decoration:underline; text-underline-offset:2px; }
  .qcell .cellpin{
    position:absolute; top:-20px; left:50%; transform:translateX(-50%); display:flex;
  }
  .qcell .cellflag{
    position:absolute; top:-7px; right:-6px; display:flex;
  }
  .qnav-gotoreview{ display:flex; justify-content:center; margin-top:18px; }
  .qnav-gotoreview .pill{ background:#fff; color:var(--cb-blue); border:1.5px solid var(--cb-blue); }
  .qnav-gotoreview .pill:hover{ background:#F2F5FD; }

  /* Check your work (review view) */
  .review-wrap{ max-width:760px; margin:0 auto; padding:40px 24px 60px; text-align:center; }
  .review-wrap h1{ font-weight:400; font-size:32px; margin:0 0 14px; }
  .review-wrap .rv-sub{ font-size:15.5px; line-height:1.6; margin:0 auto 30px; max-width:620px; }
  .review-box{
    border:1px solid var(--line); border-radius:12px; padding:22px 26px; box-shadow:0 2px 10px rgba(0,0,0,.07);
  }
  .review-box .qnav-title{ margin-bottom:14px; }

  /* ================= MODULE OVER / BREAK ================= */
  #screen-moduleover{
    min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; padding:20px;
  }
  #screen-moduleover h1{ color:#4B5AD1; font-weight:400; font-size:36px; margin:0 0 34px; }
  #screen-moduleover p{ font-size:19px; margin:0 0 18px; }
  .dotspin{ margin-top:44px; display:flex; gap:9px; }
  .dotspin span{ width:9px; height:9px; border-radius:50%; background:#1E1E1E; animation:dsp 1.1s infinite ease-in-out; }
  .dotspin span:nth-child(2){ animation-delay:.12s; }
  .dotspin span:nth-child(3){ animation-delay:.24s; }
  .dotspin span:nth-child(4){ animation-delay:.36s; }
  .dotspin span:nth-child(5){ animation-delay:.48s; }
  @keyframes dsp{ 0%,60%,100%{ opacity:.22; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-6px); } }

  #screen-break{
    min-height:100vh; background:#1C1C1C; color:#fff; position:relative;
    display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:20px;
  }
  #screen-break .brk-batt{
    position:absolute; top:22px; right:26px; background:#3A3A3A; border-radius:6px;
    padding:8px 14px; font-size:13px; font-weight:700;
  }
  #screen-break .brk-timer{ font-size:58px; font-weight:700; margin-bottom:26px; letter-spacing:1px; }
  #screen-break h1{ font-size:38px; margin:0 0 22px; font-weight:700; }
  #screen-break p{ font-size:19px; margin:0 0 40px; color:#E8E8E8; }
  #screen-break .brk-name{ position:absolute; bottom:26px; left:30px; font-size:19px; font-weight:700; }

  /* ================= CALCULATOR PANEL (Desmos) ================= */
  :where(#calcPanel).calc-panel{
    position:fixed; top:92px; left:14px; width:480px; height:560px; min-width:330px; min-height:380px;
    background:#fff; border-radius:8px; box-shadow:0 10px 34px rgba(0,0,0,.35); z-index:80;
    display:flex; flex-direction:column; resize:both; overflow:hidden;
  }
  .calc-head{
    background:#2A2A2A; color:#fff; display:flex; align-items:center; padding:8px 10px; gap:10px;
    cursor:move; flex-shrink:0; user-select:none;
  }
  .calc-tabs{ display:flex; background:#4a4a4a; border-radius:6px; overflow:hidden; }
  .calc-tabs button{ background:transparent; color:#ddd; border:none; padding:6px 14px; font-size:13px; font-weight:700; }
  .calc-tabs button.on{ background:#fff; color:#111; }
  .calc-drag{ margin-left:auto; letter-spacing:2px; color:#bbb; }
  .panel-x{ background:none; border:none; color:#fff; font-size:17px; line-height:1; }
  .calc-body{ flex:1; position:relative; }
  .calc-body > div{ position:absolute; inset:0; }
  .calc-msg{
    display:flex; align-items:center; justify-content:center; text-align:center;
    padding:24px; font-size:14.5px; color:var(--ink-soft); background:#fff;
  }

  /* ================= REFERENCE PANEL ================= */
  .ref-panel{
    position:absolute; top:0; right:0; bottom:0; width:560px; max-width:92%;
    background:#fff; box-shadow:-8px 0 26px rgba(0,0,0,.22); z-index:70; display:flex; flex-direction:column;
  }
  .ref-panel.expanded{ width:min(980px, 94%); }
  .ref-head{ display:flex; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line); }
  .ref-head h2{ margin:0; font-size:20px; }
  .ref-head .rh-btns{ margin-left:auto; display:flex; gap:16px; }
  .ref-head button{ background:none; border:none; font-size:18px; color:#111; }
  .ref-body{ flex:1; overflow-y:auto; padding:26px 30px 50px; }
  .ref-grid{ display:grid; grid-template-columns:1fr 1fr; gap:36px 26px; align-items:end; }
  .ref-fig{ text-align:center; font-family:var(--serif); }
  .ref-fig svg{ max-width:100%; height:auto; }
  .ref-fig .rf-f{ margin-top:10px; font-size:16.5px; }
  .ref-span{ grid-column:1/-1; text-align:center; font-family:var(--serif); font-weight:700; font-size:17px; margin-top:-14px; }
  .ref-facts{
    font-family:var(--serif); font-size:15.5px; margin-top:36px; border-top:1px solid var(--line);
    padding-top:22px; line-height:1.9;
  }

  /* ================= FIGURE FRAME / ZOOM ================= */
  /* v1.2 addendum tokens. Measured from reference 31 (quote indents 40px from
     the passage's left edge; the credit right-aligns) and 34 (bullet text sits
     ~21px right of the dot, and wrapped lines hang to the text, not the dot —
     which is what a plain <ul><li> already does). */
  .fmt-bullets{ margin:10px 0; padding-left:40px; list-style:disc; }
  .fmt-bullets li{ margin:6px 0; padding-left:3px; }
  .fmt-quote{ margin:10px 0 10px 40px; }
  /* Fill-in blank: one fixed width test-wide, however many underscores the
     source data happens to carry (52px, measured from reference 33). */
  /* test-content load failure — shares the loading screen's centred card */
  #screen-loaderror{
    min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;
  }
  .loaderr-card{ max-width:520px; text-align:center; }
  .loaderr-card h1{ font-size:24px; margin:0 0 12px; }
  .loaderr-card p{ font-size:15.5px; line-height:1.6; color:var(--ink-soft); margin:0 0 22px; }
  .loaderr-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

  .fmt-blank{
    display:inline-block; width:52px; border-bottom:2px solid currentColor;
    margin:0 2px; vertical-align:baseline;
  }
  .fmt-credit{ margin-top:16px; text-align:right; font-size:14.5px; }

  /* A notch smaller than before (520 -> 470 frame; the image cap of that day
     has since moved again — see the height-cap note below): the diagrams in
     this bank are roughly square and were taking more of the column than they
     need. Fit-on-first-view is unchanged — the image still caps on both axes
     so the whole thing is visible at 100% — and zoom releases those caps (see
     .fig-imgwrap img). */
  .fig-frame{ border:1px solid #9a9a9a; border-radius:6px; max-width:470px; margin:0 auto 26px; background:#fff; }
  .fig-toolbar{
    display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:7px 12px;
    border-bottom:1px solid #e2e2e2; font-size:13.5px; font-weight:600;
  }
  .fig-toolbar button{ background:none; border:none; font-size:14px; font-weight:700; }
  .fig-toolbar .sep{ width:1px; height:16px; background:#ccc; }
  .fig-imgwrap{ overflow:auto; max-height:640px; padding:14px; text-align:center; }
  /* Fit on first view: at 100% the whole diagram is visible inside the frame,
     no scrolling. width:auto with both caps keeps the aspect ratio rather than
     letterboxing. ZOOM CONTRACT (attachFigureHandlers): any level other than
     100% sets an explicit width and clears BOTH of these caps inline — max-width
     beats width, so clearing only max-height leaves zoom clamped to the wrapper
     (the 2026-09-06 bug). Add a cap here and the handler must release it too.
     The overflow lands in .fig-imgwrap above, the scroll container — the pane
     and the page never grow. */
  /* Height cap raised 300 -> 560 (2026-08-15). Measured against reference 33,
     whose figure container runs 613px tall by 574px wide — 21.9 lines of body
     text where our 300px cap allowed 10.5, so Bluebook shows a figure about
     twice as tall relative to the prose. The two data charts that prompted this
     were both cap-limited with resolution to spare, not starved of pixels:
     202503usv1/re1-q10 is 683x698 natural and was rendering at 0.43 scale,
     202506asiav2/re1-q13 is 356x379 and was rendering at 0.79. Nothing is
     upscaled — width:auto with both caps only ever shrinks, so the 8 figures
     whose natural height is already under the cap are untouched.
     The wrapper's max-height moves with it (380 -> 640, the same ~80px of
     padding headroom) so "fit on first view, no scrolling" still holds; leaving
     it at 380 would have turned the extra height straight into a scrollbar.
     .fig-frame's max-width:470px is now the binding constraint for anything
     wider than about 440px of content — raising this cap does not widen those. */
  .fig-imgwrap img{ width:auto; max-width:100%; max-height:560px; }
  .fig-caption{ font-family:var(--serif); text-align:center; padding:0 12px 14px; font-size:15.5px; }
  /* a figure outside the data:-only grammar (figureSrc, 2026-10-07): visible, never a blank frame */
  .fig-missing{ font-family:var(--sans); font-size:13px; color:#8a6d00; background:#FFF6D6;
    border:1px dashed #c9a300; border-radius:6px; padding:18px 14px; }
  /* A figure TITLE sits above the image (see figureFrameHtml for what that
     placement rests on). It takes the padding on the other side so the gap
     lands between title and plot, not under the toolbar. Weight follows the
     table caption, which is the closest established surface. */
  .fig-caption.fig-title{ padding:12px 12px 0; font-weight:700; }
  :where(#figOverlay).fig-overlay{
    position:fixed; inset:0; background:rgba(40,40,40,.55); z-index:120;
    display:flex; align-items:center; justify-content:center;
  }
  .fig-overlay .fo-card{
    background:#fff; padding:34px 22px 22px; border-radius:8px; max-width:82vw; max-height:84vh;
    overflow:auto; position:relative;
  }
  .fig-overlay img{ max-width:74vw; }
  .fig-overlay .panel-x{ position:absolute; top:8px; right:10px; color:#111; }

  @media (max-width:860px){
    .t-body{ flex-direction:column; }
    .pane-left{ width:100% !important; max-height:45vh; border-bottom:1px solid var(--line); }
    #divider{ display:none; }
    .qnav-grid{ grid-template-columns:repeat(6,1fr); }
    .welcome-band h1{ font-size:28px; }
  }
  /* ---- schema v1.1 rich content ---- */
  /* Table: lighter rules and tighter cells than the old 1.5px/#333 block, which
     read heavier than anything in the reference set. The header is a notch
     smaller and tighter still — a wide header label ("Estimated electricity…")
     was forcing the whole column wider than its data needed. */
  /* A table's title: a short title-case run that precedes {{table}} in the
     data. Bold and centred over the (centred) table; the adjacency rule pulls
     the table up under it so they read as one titled unit. */
  /* Regular weight (2026-08-04, reversing 36fbcd9's bold on David's read of
     real output): centered title position carries the meaning; bold was too
     heavy against the passage text. */
  .fmt-caption{
    font-weight:400; text-align:center; margin:14px auto 4px; max-width:520px;
    line-height:1.3;
  }
  .fmt-caption + .fmt-table{ margin-top:2px; }
  /* Paired-passage "Text 1" / "Text 2" headers. Bold, at body size, separated
     from the preceding text by WHITESPACE ONLY.
     Measured against reference/bluebook-screenshots/42.png, a real cross-text
     question — the capture 36fbcd9 was built without. That commit added a top
     rule and said it matched Bluebook; it does not. In the capture every pixel
     between Text 1's last line and the "Text 2" label is pure white, and no
     horizontal run of 150px or more exists anywhere in the passage column even
     at a near-white threshold, which would have caught a rule far lighter than
     the #D9D9D9 we were drawing. There is no rule.
     The two gaps are set from that capture, in multiples of the body line
     pitch so the numbers survive a font-size change:
       last body baseline -> next label baseline = 2.464x  (69px / 28px there)
       label baseline -> its own first body line = 1.232x  (34.5px / 28px)
     Our pitch is 28.69px, so these land at 70.7px and 35.3px; the margins
     below measure 2.464x and 1.229x. The label swallows the {{br}}s around it,
     so these margins are the only spacing. */
  .fmt-passage-label{
    font-weight:700; font-size:1.02em; margin:42px 0 6px;
  }
  .fmt-passage-label:first-child{ margin-top:0; }

  .fmt-table{ border-collapse:collapse; margin:12px auto; background:#fff; }
  /* Fraction size inside a table cell, measured against reference 35 (the SPR
     directions' Examples table, whose Answer column stacks 2/3 beside a plain
     3.5). Bluebook sets the fraction's digits to 0.885 of a full-size digit in
     the same cell; ours rendered 0.704 through the inline path — a 20% under-
     shoot in a context nobody had checked. render.js now pins table cells to
     display style, which alone lands 1.005; this brings it to a measured 0.884.
     Scoped to .fmt-table, so prose (0.700, matching Bluebook's 0.688) and
     answer choices (1.000) are untouched — neither is inside a table.
     CONFIDENCE: 0.885 is ONE fraction, measured at +/-0.5px on an 11.5/13 ink
     ratio, so the defensible band is about 0.85-0.92 and any value from 0.86em
     to 0.90em sits inside it. 0.88em is the midpoint, not a precise target. A
     second capture containing a table-cell fraction would firm this up — that
     is a standing job for the next reference screenshot. */
  /* Fraction size in an ANSWER CHOICE, measured from reference 43 — a Math
     multiple-choice item whose choice A is a stacked fraction, 2(n+p) over 7,
     with choices B/C/D carrying full-size digits in the same boxes. That makes
     it a genuine like-for-like: fraction digits 11px against full-size digits
     15px, both readings doubled and both agreeing exactly (numerator 2 and
     denominator 7 at 11px; B's 2 and C's 7 at 15px).
       measured ratio 0.733, band 0.677-0.793 at +/-0.5px
     It REPLACES the 0.885 proxy, which came from a table cell in reference 35
     standing in for a choice. That proxy is now known to be wrong: 0.885 falls
     OUTSIDE this band, while Bluebook's own inline prose value (0.688) and ours
     (0.700) fall inside it. A choice fraction is set essentially like a prose
     fraction, NOT like a standalone table value — so d814cb0's promotion of
     choices to display style was in the wrong direction, and 1.000 over-shoots
     by 1.36x rather than the 1.13x the proxy implied.
     0.733 is the measured value and is used as measured; it is not rounded to
     the prose 0.700, though the two are indistinguishable inside the band.
     A table cell nested inside a choice keeps the table value — the rule below
     is one step more specific so it wins regardless of source order. */
  .ctext .mfrac{ font-size:0.733em; }
  /* Applied ONCE per fraction, not once per level. Without this reset an em
     multiplier compounds through nesting: a fraction inside a fraction took
     0.733 twice and landed at 0.376, which also ate into the \textstyle fix
     that keeps a fraction in a superscript from rendering at scriptscript size.
     TeX's own script-size reduction still applies to the inner one, so it comes
     out at 0.733 x 0.7. Two instances library-wide — 202606asiav1/ma1-q7/c1 and
     ma2-q7/c1 — but the semantics are what matter, not the count. */
  .ctext .mfrac .mfrac{ font-size:1em; }
  .fmt-table .mfrac{ font-size:0.88em; }
  .ctext .fmt-table .mfrac{ font-size:0.88em; }
  .fmt-table th, .fmt-table td{
    border:1px solid #8a8a8a; padding:7px 14px; text-align:center;
    white-space:normal; font-size:inherit; line-height:1.4;
  }
  .fmt-table th{
    /* regular weight (2026-08-04, same read as the caption de-bolding —
       browsers bold th by default, so this must be explicit) */
    font-weight:400; font-size:0.88em; line-height:1.25; padding:6px 10px;
    vertical-align:bottom;
  }
  /* A note that belongs to the table above it: smaller, tucked close, and
     centred with it. Negative top margin pulls it against the table's bottom
     rule rather than floating a paragraph-gap away. */
  .fmt-tnote{
    margin:-6px auto 12px; font-size:0.82em; line-height:1.35;
    color:var(--ink-soft); text-align:center; max-width:520px;
  }
  .katex{ font-size:1.08em; }
  .katex-display{ margin:10px 0; }
  .ctext .katex-display{ margin:2px 0; text-align:left; }
  /* Lead-in: display math or a table that opens a stem, set apart and centred
     above the prose (reference 35, where the equation's midpoint matches the
     column's to the pixel). Equations a touch larger than the stem, as there. */
  .q-lead{
    /* same type base as the stem, so the multiplier below is measured against
       the stem's math rather than the pane's default 16px */
    font-family:var(--serif); font-size:17.5px;
    text-align:center; margin:2px 0 20px;
  }
  .q-lead .katex{ font-size:1.18em; }
  .q-lead .katex-display{ margin:6px 0; }
  .q-lead .katex-display + .katex-display{ margin-top:2px; }  /* systems stay one block */
  .q-lead .fmt-table{ margin:0 auto; }
  .katex-fallback{ font-family:ui-monospace,Menlo,Consolas,monospace; background:#f4f4f6;
    border:1px dashed #bbb; border-radius:4px; padding:0 4px; }

  /* ================= SIGN-IN: conditions toggle (ATTEMPTS-SPEC §10) ================= */
  /* (conditions toggle removed in Phase F §2 — the start-code ceremony sets
     proctored/self-administered now) */

  /* ================= SUBMITTED: save note ================= */
  .res-save-note{ margin-top:14px; font-size:13px; color:var(--ink-soft); }

  /* ================= TUTOR DASHBOARD ================= */
  #screen-dashboard{ min-height:100vh; background:#F6F7FB; padding-bottom:60px; }
  .dash-top{ display:flex; align-items:center; justify-content:space-between; padding:16px 32px;
    background:#fff; border-bottom:1px solid var(--line); flex-wrap:wrap; gap:10px; }
  .dash-tag{ font-size:12px; font-weight:700; color:var(--cb-blue); background:var(--cb-lightband);
    border-radius:12px; padding:3px 10px; margin-left:10px; }
  .dash-topbtns{ display:flex; gap:8px; flex-wrap:wrap; }
  .dash-topbtns .pill{ padding:8px 16px; font-size:13px; }
  .pill.ghost.danger{ color:var(--cb-red); border-color:var(--cb-red); }
  .pill.ghost.danger:hover{ background:#FBE9EB; }
  .pill.ghost.danger:disabled{ opacity:.45; cursor:not-allowed; background:#fff; }
  .dash-status{ padding:10px 32px; font-size:13.5px; color:var(--ink-soft); }
  /* 2026-11-10: when the lists were last read, and the three banners above the status line */
  .dash-updated{ align-self:center; font-size:12.5px; color:var(--ink-soft); white-space:nowrap; }
  .dash-banner{ margin:10px 32px 0; padding:10px 14px; border-radius:8px; font-size:13px;
    background:#FFF6E0; border:1px solid #EAD28A; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .dash-banner.err{ background:#FDECEC; border-color:#E5A3A3; }
  .dash-filters{ display:flex; gap:18px; padding:4px 32px 12px; align-items:center; flex-wrap:wrap; }
  .dash-filters label{ font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; }
  .dash-filters select{ padding:6px 10px; border:1.5px solid #9AA0AE; border-radius:8px; font-size:13.5px; }
  .dash-loadfile input{ font-size:12.5px; }
  .dash-tabs{ display:flex; gap:4px; padding:0 32px; border-bottom:2px solid var(--line); }
  .dash-tabs button{ border:none; background:none; padding:10px 18px; font-size:14px; font-weight:700;
    color:var(--ink-soft); border-bottom:3px solid transparent; margin-bottom:-2px; }
  .dash-tabs button.on{ color:var(--cb-blue); border-bottom-color:var(--cb-blue); }
  .dash-body{ padding:20px 32px; }
  .dash-empty{ color:var(--ink-soft); font-size:14px; }
  .dash-hint{ color:var(--ink-soft); font-size:12.5px; }
  .dash-warn{ background:#FFF6E0; border:1px solid #EAD28A; border-radius:8px; padding:10px 14px; font-size:13px; }

  .dtable{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line);
    border-radius:10px; overflow:hidden; font-size:13.5px; }
  .dtable th{ text-align:left; padding:10px 14px; background:var(--cb-lightband); font-size:12px;
    text-transform:uppercase; letter-spacing:.4px; cursor:pointer; user-select:none; white-space:nowrap; }
  .dtable td{ padding:9px 14px; border-top:1px solid #EDEFF5; }
  .dtable tbody tr{ cursor:pointer; }
  .dtable tbody tr:hover{ background:#F2F5FD; }
  .dtable.slim th{ cursor:default; }
  .dstatus{ font-size:11px; font-weight:800; padding:3px 10px; border-radius:20px; text-transform:uppercase; }
  .dstatus.ok{ background:#E3F3E8; color:#1E7A43; }
  .dstatus.warn{ background:#FFF3D6; color:#8A6D00; }
  .dstatus.to{ background:#FBE9EB; color:var(--cb-red); }
  /* inline-block: the pill moves to the next line WHOLE instead of slicing
     its background across two lines (it carries "(student-selected)" now) */
  .dstatus.tm{ background:#EDE7FB; color:#4A3A8A; text-transform:none; display:inline-block; }
  /* code shown beside a resolved name — both stay searchable */
  .dcode{ color:var(--ink-soft); font-size:12px; letter-spacing:.3px; }
  /* score release toggle (Phase D, score-visibility (b)) */
  .dash-rel{
    font-size:12px; font-weight:700; padding:4px 12px; border-radius:16px;
    border:1.5px solid var(--cb-blue); background:#fff; color:var(--cb-blue);
  }
  .dash-rel.rel-on{ background:#E3F3E8; border-color:#1E7A43; color:#1E7A43; }
  /* delete-an-attempt (dashboard.js deleteAttempt) — same pill, red instead
     of blue, matching the .dstatus.to "timed-out" red already in this file */
  .dash-rel.dash-danger{ border-color:var(--cb-red); color:var(--cb-red); }
  .dash-rel.dash-danger:hover{ background:#FBE9EB; }
  /* tombstones (2026-09-18): a deleted record stays listed, marked and muted */
  .dstatus.del{ background:#ECEEF3; color:#5B6270; }
  .dtable tbody tr.tomb td{ opacity:.55; }
  .dtable tbody tr.tomb td:first-child{ text-decoration:line-through; text-decoration-color:#9AA0AE; }
  .dcard.deleted{ border-style:dashed; }
  .dcard h3 .student-del{ margin-left:10px; }
  /* the confirmation panel: type the code back */
  .dtc-facts{ margin:10px 0 12px; font-size:14px; line-height:1.7; }
  .dtc-ask{ margin-top:14px; }
  .dtc-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; }
  .dtc-input{ font-size:16px; letter-spacing:2px; padding:8px 12px; border:1.5px solid #9AA0AE;
    border-radius:8px; font-family:var(--sans); text-transform:uppercase; width:190px; }
  .dash-rel.dash-danger:disabled{ opacity:.45; cursor:not-allowed; background:#fff; }
  /* Phase F §3: assignment panel */
  .assign-form{ margin-bottom:22px; }
  .af-grid{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:14px 18px;
    margin:12px 0 16px;
  }
  .af-grid label, .af-grid .af-field{ display:flex; flex-direction:column; gap:6px; font-size:12.5px; font-weight:700; }
  .af-grid select, .af-grid input{
    font-size:13.5px; padding:8px 10px; border:1.5px solid #9AA0AE; border-radius:8px; font-family:var(--sans);
  }
  .af-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
  /* bulk assign (2026-11-02): the Test control is a multi-select tall enough
     to show the whole manifest (never a truncated list), with its two
     select-all buttons beneath; the student-choice checkboxes sit in a row */
  .af-grid label.af-tests{ grid-column:1 / -1; }
  /* two tracks for the free-entry field: it shares its row with Generate, and one track leaves about 106px, which clips its placeholder */
  @media (min-width:600px){ .af-grid label.af-codes{ grid-column:span 2; } }
  .af-grid select[multiple].af-multi{ min-height:120px; }
  .af-selrow{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-weight:400; }
  .af-selrow .dash-rel{ margin:0; }
  .af-allowed{ display:flex; gap:12px 18px; flex-wrap:wrap; font-weight:600; font-size:12.5px; }
  .af-allowed label{ display:flex; flex-direction:row; align-items:center; gap:6px; font-weight:600; }
  .af-allowed input{ width:16px; height:16px; margin:0; }
  .af-code{
    margin-top:16px; padding:14px 18px; background:#F4F8F4; border:1.5px solid #1E7A43;
    border-radius:10px; font-size:13px; font-weight:700; color:#1E7A43;
  }
  .af-code-big{ font-size:44px; letter-spacing:10px; color:var(--ink); margin-top:4px; }
  .af-codegen{ display:flex; gap:8px; align-items:center; }
  .af-codegen input{ flex:1; min-width:0; }
  .af-codegen .pill{ padding:8px 14px; font-size:12.5px; white-space:nowrap; }
  .dcard h3 .copy-link{ margin-left:10px; }
  .assign-reset{ margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
  .assign-reset h3{ margin:0 0 4px; font-size:15px; }
  .assign-reset select{ font-size:13.5px; padding:8px 10px; border:1.5px solid #9AA0AE; border-radius:8px; font-family:var(--sans); }
  /* Phase F §9: bug report cards */
  .bug-card{ margin-bottom:14px; }
  .bug-head{ display:flex; align-items:center; gap:10px; }
  .bug-head .bug-dismiss{ margin-left:auto; }
  .bug-text{ margin:8px 0 0; font-size:14px; line-height:1.5; white-space:pre-wrap; }

  .dcard{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 22px; margin-bottom:16px; }
  .dcard.lead{ border-color:var(--cb-red); border-width:2px; }
  .dcard h3{ margin:0 0 8px; font-size:15.5px; }
  .dcard-sub{ font-weight:400; font-size:12.5px; color:var(--ink-soft); }

  .quad-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; max-width:640px; }
  .quad{ border-radius:10px; padding:14px 16px; font-size:13px; }
  .quad b{ display:block; font-size:22px; }
  .quad span{ display:block; color:var(--ink-soft); font-size:11.5px; margin-top:2px; }
  .quad.q-nw{ background:#FBE9EB; }
  .quad.q-fw{ background:#FFF3D6; }
  .quad.q-fr{ background:#E8ECFB; }
  .quad.q-nr{ background:#E3F3E8; }

  .pace-row{ display:grid; grid-template-columns:220px 1fr 130px; gap:12px; align-items:center;
    font-size:12.5px; margin-bottom:6px; }
  .pace-bar{ height:10px; background:#EDEFF5; border-radius:6px; overflow:hidden; }
  .pace-bar div{ height:100%; background:var(--cb-blue); border-radius:6px; }
  .pace-bar div.over{ background:var(--cb-red); }

  .ditem{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 16px; margin-bottom:10px; }
  .ditem.hard{ border-left:4px solid var(--cb-red); }
  .ditem-head{ display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; margin-bottom:6px; }
  .ditem-skill{ font-size:12px; color:var(--ink-soft); }
  .ditem-stats{ font-size:12.5px; color:var(--ink-soft); margin-left:auto; }
  .ditem-q{ font-size:13.5px; font-family:var(--serif); }

  :where(#dashDetail).dash-detail{ position:fixed; inset:0; background:rgba(20,24,48,.45); z-index:60;
    display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; overflow:auto; }
  .dash-detail-card{ background:#fff; border-radius:14px; max-width:900px; width:100%;
    padding:26px 30px; position:relative; }
  .dash-detail-card h2{ margin:0 0 4px; font-size:20px; }
  .dash-qlist{ margin-top:16px; }
  .qri-meta{ font-size:13px; }
  .dflag{ color:#8A6D00; font-weight:700; }
  .dmod{ display:inline-block; font-size:12px; background:var(--cb-lightband); border-radius:12px;
    padding:3px 10px; margin:2px 4px 2px 0; }

  /* ================= SCORE DETAILS (Phase G §4-§7) ================= */
  #screen-scoredetails{ min-height:100vh; background:#fff; }
  .sd-root{ max-width:1080px; margin:0 auto; }
  .sd-hero{ background:var(--cb-blue); color:#fff; padding:30px 42px 34px; }
  .sd-hero-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
  .sd-hero h1{ margin:0; font-size:40px; font-weight:400; }
  .sd-hero-sub{ font-size:16px; margin-top:6px; color:#DCE4F8; }
  /* code stays visible beside the name so a printed report is still matchable
     back to the pseudonymous records */
  .sd-code{ opacity:.75; font-size:14px; letter-spacing:.4px; }
  .sd-badge{ background:#EDE7FB; color:#4A3A8A; border-radius:12px; padding:2px 10px; font-size:13px; font-weight:700; }
  /* "(student-selected)" after a timing badge (2026-11-02): the Est.-style
     honest mark — same weight, quieter colour, the reason in its title */
  .sd-sel{ font-size:.86em; font-weight:600; opacity:.8; cursor:help; white-space:nowrap; }
  .sd-home{ background:rgba(255,255,255,.15); border:1.5px solid rgba(255,255,255,.6); color:#fff;
    border-radius:22px; padding:9px 20px; font-size:14.5px; font-weight:700; flex-shrink:0; }
  .sd-home:hover{ background:rgba(255,255,255,.25); }
  .sd-hero-body{ display:flex; gap:60px; align-items:flex-end; margin:26px 0 24px; flex-wrap:wrap; }
  .sd-hero-lbl{ font-size:14px; font-weight:700; letter-spacing:.5px; }
  .sd-hero-num{ font-size:66px; font-weight:800; line-height:1; }
  .sd-hero-of{ font-size:28px; font-weight:400; margin-left:8px; color:#DCE4F8; }
  .sd-hero-range{ font-size:13px; color:#DCE4F8; margin-top:4px; }
  .sd-hero-sections{ display:flex; gap:40px; }
  .sd-sec-lbl{ font-size:15px; font-weight:700; }
  .sd-sec-range{ font-size:12px; color:#DCE4F8; }
  .sd-sec-num{ font-size:34px; font-weight:800; }
  .sd-est{ font-size:.42em; font-weight:700; vertical-align:super; margin-left:3px; color:#FFE08A; }
  .sd-hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
  .sd-hero-actions .pill{ background:var(--cb-yellow); color:var(--ink); }
  .sd-hero-actions .pill.ghost{ background:transparent; color:#fff; border:1.5px solid #fff; }
  .sd-body{ padding:32px 42px 80px; }

  /* ===== Score Calculator (reporting layer) =====
     Deliberately built from the Score Details vocabulary — same hero band,
     same Est. treatment, same Back affordance — because it is the same kind of
     surface and should not read as a different product. */
  .scalc-root{ max-width:1080px; margin:0 auto; }
  .scalc-hero{ background:var(--cb-blue); color:#fff; padding:30px 42px 30px; }
  .scalc-hero-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
  .scalc-hero h1{ margin:0; font-size:40px; font-weight:400; }
  .scalc-sub{ font-size:15px; margin-top:6px; color:#DCE4F8; max-width:70ch; }
  .scalc-out{ display:flex; gap:60px; align-items:flex-end; margin-top:24px; flex-wrap:wrap; }
  .scalc-lbl{ font-size:14px; font-weight:700; letter-spacing:.5px; }
  .scalc-num{ font-size:66px; font-weight:800; line-height:1; }
  .scalc-range{ font-size:13px; color:#DCE4F8; margin-top:4px; }
  .scalc-sections{ display:flex; gap:40px; }
  .scalc-sec-lbl{ font-size:15px; font-weight:700; }
  .scalc-sec-range{ font-size:12px; color:#DCE4F8; }
  .scalc-sec-num{ font-size:34px; font-weight:800; }
  .scalc-sec-raw{ font-size:12.5px; color:#DCE4F8; }
  .scalc-body{ padding:32px 42px 80px; }
  .scalc-panel{ margin-bottom:30px; }
  .scalc-panel h2{ font-size:22px; font-weight:400; margin:0 0 14px; }
  .scalc-row{ margin-bottom:18px; max-width:620px; }
  .scalc-row-head{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
  .scalc-row-head label{ font-size:15px; font-weight:700; }
  .scalc-val{ font-size:15px; font-variant-numeric:tabular-nums; }
  .scalc-of{ color:var(--ink-soft); font-weight:400; margin-left:3px; }
  /* the track is positioned so the "you are here" marker can sit on it */
  .scalc-track{ position:relative; margin-top:6px; }
  .scalc-track input[type=range]{ width:100%; display:block; }
  .scalc-mark{ position:absolute; top:-3px; width:2px; height:18px; background:var(--cb-blue);
    border-radius:1px; pointer-events:none; opacity:.55; transform:translateX(-1px); }
  .scalc-note{ color:var(--ink-soft); font-size:13.5px; max-width:80ch; margin:6px 0 0; }
  .scalc-actions{ margin-top:18px; }
  .scalc-unavailable{ color:var(--ink-soft); font-size:14.5px; max-width:80ch; }
  .scalc-hero .scalc-unavailable{ color:#DCE4F8; }
  .sd-muted{ color:var(--ink-soft); font-size:14px; }
  .sd-ks h2, .sd-questions h2{ font-size:26px; font-weight:400; margin:0 0 4px; }
  .sd-ks-section{ margin-top:22px; }
  .sd-ks-section h3{ font-size:18px; margin:0 0 12px; }
  .sd-ks-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:20px 40px; }
  .sd-ks-name{ font-size:15px; font-weight:700; }
  .sd-ks-count{ font-size:13px; color:var(--ink-soft); margin:2px 0 8px; }
  .sd-bar{ display:flex; gap:4px; }
  .sd-bar span{ flex:1; height:12px; border-radius:2px; background:#E3E6EE; }
  .sd-bar span.on{ background:var(--cb-blue); }
  /* Fine skills beneath a domain (2026-08-18): a subtle indented list under the
     domain's bar. Only shows for tagged questions; a fully untagged test has
     none. Kept quiet so the domain remains the headline of each card. */
  .sd-ks-skills{ list-style:none; margin:10px 0 0; padding:0; border-top:1px solid var(--line); }
  .sd-ks-skills li{ display:flex; justify-content:space-between; gap:12px; align-items:baseline;
    padding:5px 0 0; font-size:12.5px; }
  .sd-ks-skills .sk-name{ color:var(--ink-soft); }
  .sd-ks-skills .sk-count{ color:var(--ink-soft); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .sd-questions{ margin-top:44px; }
  .sd-tabs{ display:flex; gap:8px; border-bottom:1px solid var(--line); margin:14px 0 0; flex-wrap:wrap; }
  .sd-tab{ background:none; border:none; border-bottom:3px solid transparent; padding:12px 18px;
    font-size:15px; font-weight:700; color:var(--ink-soft); margin-bottom:-1px; }
  .sd-tab.on{ color:var(--ink); border-bottom-color:var(--cb-blue); }
  .sd-table-controls{ display:flex; justify-content:space-between; align-items:center; margin:16px 0 10px; flex-wrap:wrap; gap:12px; }
  .sd-toggle{ font-size:14.5px; font-weight:600; display:flex; align-items:center; gap:8px; }
  .sd-view{ font-size:13.5px; color:var(--ink-soft); display:flex; align-items:center; gap:6px; }
  .sd-view-btn{ background:none; border:1.5px solid var(--line); border-radius:6px; padding:5px 11px; font-size:13.5px; font-weight:700; }
  .sd-view-btn.on{ background:var(--cb-blue); color:#fff; border-color:var(--cb-blue); }
  .sd-table-wrap{ overflow-x:auto; }
  .sd-table{ width:100%; border-collapse:collapse; font-size:14.5px; }
  .sd-table th, .sd-table td{ text-align:left; padding:11px 12px; border-bottom:1px solid var(--line); }
  .sd-table th{ font-size:12.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--ink-soft); }
  .sd-correct-col{ font-weight:700; }
  .sd-hidden{ color:#C4C4C4; }
  .sd-ok{ color:#1E7A43; font-weight:700; }
  .sd-bad{ color:var(--cb-red); font-weight:700; }
  .sd-omit{ color:var(--ink-soft); font-style:italic; }
  .sd-nokey{ color:var(--ink-soft); }
  .sd-review-link{ background:none; border:none; color:var(--cb-blue); font-weight:700; text-decoration:underline; font-size:14px; }
  .sd-pager{ display:flex; align-items:center; gap:16px; justify-content:center; margin-top:18px; font-size:14px; }
  .sd-page-btn{ background:#fff; border:1.5px solid var(--cb-blue); color:var(--cb-blue); border-radius:8px; padding:7px 18px; font-weight:700; }
  .sd-page-btn:disabled{ opacity:.4; border-color:var(--line); color:var(--ink-soft); }

  /* ---- Module summary strips (2026-08-02): one row per module under the
     hero — label, raw score, and a numbered chip per question colored by
     outcome. Chips are buttons; each opens Review Mode at its question. ---- */
  .sd-modstrips{ margin:0 0 40px; }
  .sd-strip{ padding:14px 0 12px; border-bottom:1px solid var(--line); }
  .sd-strip:last-child{ border-bottom:none; }
  .sd-strip-head{ display:flex; align-items:baseline; gap:14px; margin-bottom:10px; }
  .sd-strip-label{ font-size:15px; font-weight:700; }
  .sd-strip-raw{ font-size:14px; color:var(--ink-soft); font-weight:700; }
  .sd-chips{ display:flex; flex-wrap:wrap; gap:6px; }
  .sd-chip{
    min-width:34px; height:30px; padding:0 6px; border-radius:7px; border:1.5px solid transparent;
    font-size:13.5px; font-weight:700; color:#fff; cursor:pointer;
  }
  .sd-chip.ok{ background:#1E7A43; }
  .sd-chip.bad{ background:var(--cb-red); }
  .sd-chip.omit{ background:#fff; color:var(--ink-soft); border-color:#B9BECD; }
  .sd-chip.nokey{ background:#E8E8EE; color:#555; }
  .sd-chip:hover{ filter:brightness(1.12); box-shadow:0 1px 5px rgba(0,0,0,.25); }
  .sd-chip.omit:hover{ filter:none; background:#F2F5FD; }

  /* ---- Review Mode (read-only replay in the real test UI) ---- */
  .rv-back{
    background:none; border:none; color:var(--cb-blue); font-weight:700; font-size:14.5px;
    padding:4px 10px 4px 0; cursor:pointer; white-space:nowrap;
  }
  .rv-back:hover{ text-decoration:underline; }
  .timer-review{ font-weight:700; font-size:19px; letter-spacing:.4px; }
  /* answers are frozen: the choice tiles stop advertising clickability */
  .review-mode .choice{ cursor:default; }
  .review-mode .choice:hover{ background:#fff; }
  .choice.rv-key{ border-color:#1E7A43; box-shadow:inset 0 0 0 1px #1E7A43; }
  .choice.rv-wrong{ border-color:var(--cb-red); box-shadow:inset 0 0 0 1px var(--cb-red); }
  .rv-mark{ margin-left:auto; padding-left:12px; font-size:12.5px; font-weight:800; white-space:nowrap; align-self:center; }
  .rv-mark.ok{ color:#1E7A43; }
  .rv-mark.you{ color:var(--cb-red); }
  .rv-omitted{
    margin:6px 0 0; font-size:14.5px; font-weight:700; color:var(--ink-soft);
    border:1.5px dashed #B9BECD; border-radius:8px; padding:10px 14px; display:inline-block;
  }
  .rv-banner{ margin-top:16px; border-radius:8px; padding:12px 16px; font-size:15px; font-weight:700; color:#fff; display:inline-block; }
  .rv-banner.bad{ background:var(--cb-red); }
  .rv-banner.ok{ background:#1E7A43; }
  .rv-banner.neutral{ background:#5F5E5A; }
  .rv-spr-key{ margin-top:12px; font-size:15px; }
  .rv-spr-alt{ color:var(--ink-soft); }
  .rv-rationale{ margin-top:26px; border-top:1px solid var(--line); padding-top:16px; }
  .rv-rationale h3{ font-size:16px; margin:0 0 8px; font-family:var(--sans); }
  .rv-rat-body{ font-family:var(--serif); font-size:15.5px; line-height:1.6; }
  /* navigator cells as an outcome map, echoing the chips */
  .qcell.rv-ok{ background:#1E7A43; border:1.5px solid #1E7A43; color:#fff; }
  .qcell.rv-bad{ background:var(--cb-red); border:1.5px solid var(--cb-red); color:#fff; }
  .qcell.rv-omit{ background:#fff; color:var(--ink-soft); }   /* keeps the dashed border */
  .qcell.rv-nokey{ background:#E8E8EE; border:1.5px solid #E8E8EE; color:#555; }
  .lg-sq{ display:inline-block; width:13px; height:13px; border-radius:3px; vertical-align:-2px; margin-right:5px; border:1px solid transparent; }
  .lg-sq.rv-ok{ background:#1E7A43; }
  .lg-sq.rv-bad{ background:var(--cb-red); }
  .lg-sq.rv-omit{ background:#fff; border-color:#B9BECD; }

  /* Past card score line (§6) */
  .pcard-badge{ display:inline-block; background:#EDE7FB; color:#4A3A8A; border-radius:12px;
    padding:2px 10px; font-size:12px; font-weight:700; margin-top:8px; }
  .pcard-total{ font-size:30px; font-weight:800; margin-top:10px; }
  .pcard-total-range{ display:block; font-size:11px; font-weight:400; color:var(--ink-soft); }
  .pcard-total-of{ font-size:14px; font-weight:400; color:var(--ink-soft); margin-left:6px; }

  /* Download Score Report — one-page US Letter print (§7) */
  @media print{
    @page{ size:letter; margin:0.5in; }
    body{ background:#fff; }
    body *{ visibility:hidden; }
    #screen-scoredetails, #screen-scoredetails *{ visibility:visible; }
    #screen-scoredetails{ position:absolute; inset:0; }
    .sd-hero{ background:#fff !important; color:#000 !important; padding:0 0 12px; border-bottom:2px solid #000; }
    .sd-hero-sub, .sd-hero-range, .sd-hero-of, .sd-sec-range{ color:#333 !important; }
    /* the module strips are navigation into Review Mode — meaningless on
       paper, so the printed report keeps its pre-redesign layout */
    .sd-home, .sd-hero-actions, .sd-tabs, .sd-table-controls, .sd-pager, .sd-review-link,
    .sd-modstrips{ display:none !important; }
    .sd-hero h1{ font-size:26px; }
    .sd-hero h1::before{ content:"Ace SAT — "; }
    .sd-hero-num{ font-size:44px; color:#000; }
    .sd-sec-num{ color:#000; }
    .sd-est{ color:#7a5c00 !important; }
    .sd-body{ padding:12px 0; }
    .sd-bar span.on{ background:#000 !important; }
    .sd-bar span{ background:#ddd !important; }
    .sd-questions{ margin-top:16px; }
    .sd-table{ font-size:11px; }
    .sd-table th, .sd-table td{ padding:3px 6px; }
    .sd-ks-grid{ gap:8px 24px; }
  }

  /* ============ Custom practice sets (2026-08-31) ============ */
  /* set-completion screen — the whole "results" surface for a set: raw N/M,
     no scaled anything (contract 5) */
  .setdone-score{ margin:6px 0 14px; }
  .setdone-num{ font-size:44px; font-weight:800; color:var(--ink); }
  .setdone-of{ font-size:18px; color:var(--ink-soft); }

  /* set-review notices (contract 7): drift = the form moved on; err = the
     recorded question can't be resolved at all. Rendered only in review. */
  .rv-notice{ margin:0 0 14px; padding:10px 14px; border-radius:8px;
    font-size:13.5px; line-height:1.5; border:1px solid; }
  .rv-notice.warn{ background:#FFF7E0; border-color:#E3C55A; color:#6b5200; }
  .rv-notice.err{ background:#FDEBEC; border-color:#E39A9F; color:#8f1f27; }

  /* ---- dashboard: Question Bank + Practice Sets tabs (2026-08-31) ---- */
  .bank-filters input#bankSearch{ flex:1; min-width:220px; padding:8px 12px;
    border:1px solid #C9CFDE; border-radius:8px; font-size:13.5px; }
  .bank-filters select{ padding:8px 10px; border:1px solid #C9CFDE; border-radius:8px; }
  .bank-stem{ display:block; color:var(--ink-soft); font-size:12.5px; margin-top:2px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:520px; }
  .setref-row, .setpick-row{ display:flex; align-items:center; gap:10px;
    padding:7px 10px; border-bottom:1px solid #EDEFF5; }
  .setpick-row.is-retired{ opacity:.62; }
  .setref-n{ font-weight:800; color:var(--ink-soft); min-width:20px; text-align:right; }
  .setref-main, .setpick-main{ flex:1; min-width:0; font-size:13.5px; }
  .setref-btns{ display:flex; gap:4px; }
  .setpick-cols{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:14px; }
  .setpick-mod{ margin-bottom:12px; }
  .setpick-modhead{ display:flex; align-items:center; justify-content:space-between;
    padding:6px 0; border-bottom:2px solid #E3E6EF; }
  .set-builder h4{ margin:16px 0 6px; font-size:14px; }
  .setref-list{ border:1px solid #E3E6EF; border-radius:8px; max-height:300px; overflow:auto; }
  .setpick-cols > div{ border:1px solid #E3E6EF; border-radius:8px; padding:10px 12px;
    max-height:420px; overflow:auto; }

  /* ---- canonical-id awareness (2026-09-07): provenance + seen marks ----
     A mark is a .dstatus badge (red .to = seen, amber .warn = reskin, green
     .ok = unseen) sized for an inline row; a notice or overlap box is an
     .rv-notice.warn — one palette each, defined once above. */
  .canon-prov{ display:inline-block; color:var(--ink-soft); font-size:11.5px; margin-left:4px; }
  .canon-prov.reskin{ color:#7A5A00; }
  .canon-mark{ font-size:10px; padding:2px 7px; letter-spacing:.3px; vertical-align:middle; }
  .canon-mark.unindexed{ background:#EEF0F5; color:var(--ink-soft); }
  .canon-via{ color:var(--ink-soft); font-size:11.5px; }
  .setpick-row.is-held{ opacity:.62; }
  .canon-notice{ margin:8px 0; padding:8px 12px; font-size:13px; line-height:1.45; }
  .canon-notice.loading{ border:1px solid #D5D9E4; border-radius:8px; background:#EEF0F5; color:var(--ink-soft); }
  .canon-assign{ margin-top:10px; }
  .canon-overlap{ margin:8px 0 0; padding:10px 14px; font-size:13.5px; line-height:1.5; }
  .canon-overlap.none{ border:1px solid #E3E6EF; border-radius:8px; background:#F4F6FA; color:var(--ink-soft); }
  .canon-overlap ul{ margin:4px 0 4px 18px; padding:0; }
  .canon-overlap details{ margin:4px 0; }
  .canon-overlap .canon-items{ max-height:220px; overflow:auto; font-size:12.5px; }

  /* ---- tutor test viewer (2026-10-21) ----
     The bar sits between the test header and #tBody. Its height is FIXED and
     nothing in it wraps (ellipsis instead), so the panes get the same box on
     every question and with Show answers on or off — what a Stage-3 read sees
     in the pane is laid out at a constant size. Tutor-coloured on purpose:
     it is not student chrome. */
  .tv-bar{ flex-shrink:0; height:64px; overflow:hidden; background:#FFF6D6;
    border-bottom:1px solid #E3C55A; padding:0 24px; font-family:var(--sans); }
  .tv-row{ display:flex; align-items:center; gap:18px; height:38px; white-space:nowrap; }
  .tv-mods{ display:flex; gap:4px; flex-shrink:0; }
  .tv-mod{ border:1.5px solid var(--cb-navy); background:#fff; color:var(--cb-navy);
    border-radius:14px; padding:3px 12px; font-size:12.5px; font-weight:700; }
  .tv-mod.on{ background:var(--cb-navy); color:#fff; }
  .tv-goto{ display:flex; align-items:center; gap:6px; min-width:0; flex:1; }
  .tv-goto input{ width:170px; flex-shrink:0; padding:4px 8px; border:1.5px solid #9AA0AE;
    border-radius:6px; font-size:13px; }
  .tv-btn{ border:1.5px solid var(--cb-navy); background:#fff; color:var(--cb-navy);
    border-radius:6px; padding:3px 10px; font-size:12.5px; font-weight:700; flex-shrink:0; }
  .tv-msg{ font-size:12.5px; color:#8f1f27; overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .tv-answers{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700;
    flex-shrink:0; cursor:pointer; }
  .tv-info{ display:flex; align-items:center; gap:16px; height:24px; white-space:nowrap;
    font-size:12.5px; color:#5b4a00; overflow:hidden; }
  .tv-id{ font-family:var(--mono, monospace); font-weight:700; flex-shrink:0; }
  .tv-skill{ overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .tv-ver{ flex-shrink:0; }
  .tv-nokey{ flex-shrink:0; font-weight:800; color:#8f1f27; }

  /* dashboard Tests tab: every manifest form, each opening the viewer */
  .tv-tests-goto{ display:flex; align-items:center; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
  .tv-tests-goto label{ font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; }
  .tv-tests-goto input{ width:260px; padding:7px 10px; border:1.5px solid #9AA0AE;
    border-radius:8px; font-size:13.5px; }
  .tv-tests-msg{ margin:0 0 12px; font-size:13.5px; }
  .tv-picks{ display:flex; gap:8px; flex-wrap:wrap; margin:-4px 0 14px; }
  .tv-open{ background:none; border:none; padding:0; color:var(--cb-blue); font-weight:700;
    font-size:13.5px; text-align:left; text-decoration:underline; }
  .tv-tests .tv-mono{ font-family:var(--mono, monospace); font-size:12.5px; }
  .tv-tests tbody tr{ cursor:default; }
