/* ============================================================
   KaNS Test App - Bluebook-style exam shell
   Palette mirrors the real app (navy/blue on white) with a
   KaNS brand accent on the brand mark only.
   ============================================================ */
:root{
  --ink:#1e1e1e;
  --muted:#5b6470;
  --line:#d5d9de;
  --line-soft:#e9ecef;
  --bg:#ffffff;
  --shell:#f6f7f9;
  --blue:#324dc7;          /* Bluebook action blue */
  --blue-dark:#26399c;
  --blue-soft:#e8ecfb;
  --navy:#1a2b5f;
  --brand:#8B3A0F;         /* KaNS */
  --good:#137a3f; --good-soft:#e6f4eb;
  --bad:#b3261e;  --bad-soft:#fbeaea;
  --warn:#b45309;
  --hl-yellow:#ffe066; --hl-pink:#ffc0d3; --hl-blue:#bfe3ff;
  --sans:"Noto Sans",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"Noto Serif",Georgia,Cambria,"Times New Roman",serif;
  --bar:#e6edf8;           /* Bluebook's pale blue-grey header and footer */
  --dash:repeating-linear-gradient(90deg,#1e1e1e 0 11px,transparent 11px 17px);
  --qfont:18px;            /* driven by the text-size control: 16 to 24, 18 to start */
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--sans);color:var(--ink);background:var(--shell);line-height:1.5;
     -webkit-font-smoothing:antialiased;overflow:hidden}
button{font-family:inherit;cursor:pointer}
.hidden{display:none!important}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- generic buttons ---------- */
.btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 18px;
     font-size:14px;font-weight:600;color:var(--ink)}
.btn:hover{background:#f2f4f7}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn-ghost{border:none;background:none;color:var(--blue);font-weight:600;font-size:14px;
           padding:8px 10px;border-radius:8px}
.btn-ghost:hover{background:var(--blue-soft)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.tool{display:flex;flex-direction:column;align-items:center;gap:2px;border:none;background:none;
      font-size:11px;color:var(--ink);padding:4px 10px;border-radius:8px;min-width:56px}
.tool:hover{background:var(--blue-soft)}
.tool.on{background:var(--blue-soft);color:var(--blue-dark)}
.tool svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7}
.tool.textsize{cursor:default;padding:2px 8px}
.tool.textsize:hover{background:none}
.ts-btns{display:flex;gap:3px}
.ts-btns button{border:1px solid #c9cdd2;background:#fff;border-radius:6px;font-weight:700;line-height:1;
                color:var(--ink);padding:3px 7px;cursor:pointer;font-family:inherit}
.ts-btns button:hover{background:var(--blue-soft)}
.ts-btns button:disabled{opacity:.35;cursor:default;background:#fff}
#tsDown{font-size:11px}
#tsUp{font-size:14px}

/* ============================================================
   SETUP / LOGIN
   ============================================================ */
#screen-setup{height:100%;overflow:auto;background:var(--shell)}
.setup-wrap{max-width:820px;margin:0 auto;padding:44px 22px 70px}
.brandline{display:flex;align-items:center;gap:12px;margin-bottom:26px}
.brandline .mark{width:42px;height:42px;border-radius:11px;background:var(--brand);color:#fff;
                 display:grid;place-items:center;font-weight:700;font-size:17px}
.brandline h1{font-size:22px;margin:0;font-weight:700}
.brandline small{display:block;color:var(--muted);font-weight:400;font-size:12px;
                 letter-spacing:.5px;text-transform:uppercase}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:18px}
.card h2{font-size:15px;margin:0 0 4px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}
.card .hint{color:var(--muted);font-size:13px;margin:0 0 16px}
.field{margin-bottom:14px}
label{display:block;font-size:13px;font-weight:600;margin:0 0 6px}
input[type=text],input[type=email],select{width:100%;height:42px;padding:0 12px;border:1px solid var(--line);
  border-radius:9px;font-size:15px;background:#fff;color:var(--ink);font-family:inherit}
input:focus,select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.testlist{max-height:290px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.testrow{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--line-soft);
         cursor:pointer;font-size:14px}
.testrow:last-child{border-bottom:none}
.testrow:hover{background:#f6f8ff}
.testrow.sel{background:var(--blue-soft);box-shadow:inset 3px 0 0 var(--blue)}
.testrow b{flex:1;font-weight:600}
.testrow .meta{color:var(--muted);font-size:12px}
.testrow .warn{color:var(--warn);font-size:11px;font-weight:600}
.setup-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end}
.resume-note{background:#fff8e6;border:1px solid #f0d795;border-radius:10px;padding:12px 14px;
             font-size:13px;display:flex;align-items:center;gap:12px;margin-bottom:18px}
.resume-note b{font-weight:700}
.err{color:var(--bad);font-size:13px;margin-right:auto}

/* ============================================================
   EXAM SHELL  (header / body / footer)
   ============================================================ */
#screen-exam{height:100%;display:flex;flex-direction:column;background:#fff}
.exam-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;
           padding:10px 22px 8px;background:var(--bar);min-height:72px}
.head-l h2{font-size:15px;font-weight:700;margin:0}
.head-l p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.head-l .dirlink{font-size:13px;color:var(--ink);background:none;border:none;padding:2px 0;font-weight:600}
.head-l .dirlink:hover{text-decoration:underline}
.head-c{text-align:center;min-width:130px}
.clock{font-size:26px;font-weight:700;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.clock.low{color:var(--bad)}
.clock-hidden{height:34px;display:grid;place-items:center}
.clock-hidden svg{width:22px;height:22px;stroke:var(--ink);fill:none;stroke-width:1.7}
.head-c .btn-ghost{font-size:12px;padding:1px 12px;margin-top:2px;border:1px solid #1e1e1e;
                   border-radius:999px;background:#fff;color:var(--ink)}
.head-c .btn-ghost:hover{background:#f2f4f7}
.head-r{display:flex;justify-content:flex-end;gap:4px}
.head-rule{height:2px;background:var(--dash)}

.exam-body{flex:1;min-height:0;display:flex;position:relative}
.pane{overflow:auto;padding:22px 26px 40px;min-width:0}
.pane-l{flex:1;border-right:1px solid var(--line)}
.pane-r{flex:1}
.exam-body.single .pane-l{display:none}
.exam-body.single .pane-r{flex:1;max-width:760px;margin:0 auto}
.splitter{width:6px;cursor:col-resize;background:transparent;flex:0 0 6px;margin:0 -3px;z-index:3}
.splitter:hover{background:var(--blue-soft)}

/* question typography */
/* Bluebook sets the question itself (passage, stem, choices) in a serif face and
   keeps the sans face for the controls around it */
.qtext,.passage{font-size:var(--qfont);line-height:1.62;font-family:var(--serif)}
.passage p{margin:0 0 14px}
.passage ul{margin:0 0 14px;padding-left:22px}
.passage li{margin:0 0 6px}
.qtext p{margin:0 0 12px}
.qbar{display:flex;align-items:center;gap:12px;background:#eef0f3;border-radius:6px;padding:6px 10px;margin-bottom:16px}
.qnum{width:26px;height:26px;border-radius:4px;background:#1e1e1e;color:#fff;display:grid;place-items:center;
      font-size:14px;font-weight:700;flex:0 0 auto}
.markbtn{display:flex;align-items:center;gap:6px;border:none;background:none;font-size:13px;font-weight:600;
         padding:4px 6px;border-radius:6px}
.markbtn:hover{background:#e0e3e8}
.markbtn svg{width:15px;height:17px;stroke:#1e1e1e;fill:none;stroke-width:1.8}
.markbtn.on svg{fill:#d92d20;stroke:#d92d20}
.markbtn.on span{text-decoration:underline;text-underline-offset:3px}
.qbar .spacer{flex:1}
/* Report a problem (R26): deliberately quiet until used, and amber - not the
   red of Mark for Review - so the two are never confused */
.reportbtn{display:flex;align-items:center;gap:5px;border:none;background:none;font-size:12px;
           font-weight:600;color:#5b6470;padding:4px 8px;border-radius:6px;white-space:nowrap}
.reportbtn:hover{background:#e0e3e8;color:#1e1e1e}
.reportbtn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6;
               stroke-linejoin:round;stroke-linecap:round}
.reportbtn.on{color:#8a4b00;background:#fff1d6}
.reportbtn.on svg{fill:#f5b638;stroke:#8a4b00}
#toast{position:fixed;left:50%;bottom:86px;transform:translate(-50%,12px);z-index:120;
       background:#1e1e1e;color:#fff;font-size:14px;padding:10px 16px;border-radius:10px;
       box-shadow:0 8px 24px rgba(0,0,0,.22);opacity:0;pointer-events:none;
       transition:opacity .18s ease,transform .18s ease;max-width:min(520px,92vw);text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){#toast{transition:none}}
.reported-note{background:#fff8e6;border:1px solid #f0d795;border-radius:10px;padding:10px 14px;
               font-size:14px;color:#6b4a00;margin:-12px 0 22px}
.abcbtn{border:1px solid #1e1e1e;background:#fff;border-radius:999px;font-size:12px;font-weight:700;
        padding:3px 10px;letter-spacing:.5px}
.abcbtn .strike{text-decoration:line-through}
.abcbtn.on{background:#1e1e1e;color:#fff}

.choices{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.choice{display:flex;align-items:stretch;gap:8px}
.choice-main{flex:1;display:flex;align-items:center;gap:12px;border:2px solid var(--line);
             border-radius:9px;padding:11px 14px;background:#fff;text-align:left;font-size:var(--qfont);
             line-height:1.55;color:var(--ink)}
.choice-main:hover{border-color:#9aa4b2;background:#fafbfc}
.choice-main .L{width:25px;height:25px;flex:0 0 25px;border:1px solid #1e1e1e;border-radius:50%;
                display:grid;place-items:center;font-size:13px;font-weight:700;align-self:flex-start}
/* the option text arrives wrapped in <p>; without this its default margin
   pushes it below the letter badge */
.choice-main .ctext{flex:1;min-width:0;font-family:var(--serif)}
.choice-main .ctext p{margin:0}
.choice-main .ctext p + p{margin-top:8px}
.choice-main .cimg{max-width:min(100%,260px);max-height:220px;height:auto;display:block;border:1px solid var(--line-soft);border-radius:4px}
/* redrawn vector choices have no pixel size of their own: give all four the same width */
.choice-main .cimg[src$=".svg"]{width:240px}
/* a picture choice is taller than one line, so pin the letter to the top */
.choice-main:has(.cimg){align-items:flex-start}
.choice.sel .choice-main{border-color:var(--blue);background:var(--blue-soft)}
.choice.sel .choice-main .L{background:var(--blue);border-color:var(--blue);color:#fff}
.choice.out .choice-main{opacity:.5}
.choice.out .choice-main .ctext{text-decoration:line-through}
.choice.out .choice-main .L{text-decoration:line-through}
.crossbtn{width:30px;flex:0 0 30px;border:none;background:none;border-radius:50%;font-size:12px;
          font-weight:700;color:#1e1e1e;align-self:center;display:none}
.eliminating .crossbtn{display:block}
.crossbtn:hover{background:#eef0f3}
.crossbtn u{text-decoration:line-through}
.choice .undo{font-size:11px;font-weight:700}

/* student-produced response: a short box with a rule to write on, the preview
   below it, and the keypad toggle (Bluebook) */
.spr{margin-top:22px}
.spr input[type=text]{width:104px;height:56px;padding:0 12px 6px;border:1px solid #1e1e1e;border-radius:8px;
  font-family:ui-monospace,Consolas,"Courier New",monospace;font-size:21px;letter-spacing:1px;
  background:linear-gradient(#1e1e1e,#1e1e1e) no-repeat 10px calc(100% - 11px)/calc(100% - 20px) 1px,#fff}
.spr .preview{margin-top:34px;min-height:40px;display:flex;align-items:center;gap:10px;
  font-family:var(--serif);font-size:calc(var(--qfont) + 5px);color:var(--ink)}
.spr .preview .pv .katex{font-size:1em}
.kpbtn{margin-top:22px;display:inline-flex;align-items:center;gap:8px;border:none;border-radius:999px;
  background:#1e1e1e;color:#fff;font-size:13px;font-weight:600;padding:8px 16px}
.kpbtn:hover{background:#3a3a3a}
.kpbtn svg{width:24px;height:16px;fill:none;stroke:#fff;stroke-width:1.3}
.sprdir{font-family:var(--serif);font-size:15px;line-height:1.55}
.sprdir h3{font-size:20px;margin:4px 0 14px}
.sprdir ul{padding-left:22px;margin:0 0 22px}
.sprdir li{margin-bottom:4px}
table.sprex{border-collapse:collapse;margin:0 auto;font-size:14px}
table.sprex caption{padding-bottom:10px}
table.sprex th,table.sprex td{border:1px solid #1e1e1e;padding:12px 14px;text-align:center;font-weight:400;
  vertical-align:middle;line-height:1.9}
table.sprex code,.modal code{font-family:ui-monospace,Consolas,"Courier New",monospace;font-size:12.5px;
  background:#ececec;border-radius:3px;padding:1px 4px}
.modal .sprex{margin:8px auto 4px}

/* on-screen keypad */
.keypad{position:fixed;z-index:80;right:12%;top:42%;width:312px;background:#fff;border:1px solid #9aa0a8;
  box-shadow:0 8px 24px rgba(0,0,0,.18);user-select:none}
.keypad .panel-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:#1e1e1e;
  color:#fff;padding:8px 10px;cursor:move}
.keypad .panel-head b{font-size:15px}
.keypad .grip{display:grid;grid-template-columns:repeat(3,4px);gap:3px}
.keypad .grip i{width:4px;height:4px;border-radius:50%;background:#fff}
.keypad .close{justify-self:end;border:none;background:none;color:#fff;font-size:24px;line-height:1;padding:0 4px}
.kpkeys{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:10px}
.kpkey{grid-column:span 2;height:44px;border:1px solid #d7dade;border-radius:7px;background:#fff;
  box-shadow:0 2px 0 #c9cdd2;font-size:26px;color:#1e1e1e}
.kpkey:hover{background:#f1f3f5}
.kpkey:active{box-shadow:none;transform:translateY(2px)}
/* bottom row: - . 0 / delete, the zero key twice as wide */
.kpkeys .kpkey:nth-child(n+10){grid-column:span 1}
.kpkeys .kpkey.zero{grid-column:span 2}
.kpkey.back svg{width:24px;height:17px;fill:none;stroke:#1e1e1e;stroke-width:1.6;stroke-linejoin:round}

/* figure zoom bar */
.figbox{display:inline-block;max-width:100%;border:1px solid #d9dde2;border-radius:6px;background:#fff;
  vertical-align:top}
.figbar{display:flex;align-items:center;justify-content:center;gap:6px;background:#f2f3f5;
  border-bottom:1px solid #d9dde2;border-radius:6px 6px 0 0;padding:4px 8px;font-size:13px}
.figbar button{border:none;background:none;border-radius:5px;padding:3px 5px;color:#1e1e1e;line-height:0}
.figbar button:hover:not([disabled]){background:#e2e5e9}
.figbar button[disabled]{opacity:.35;cursor:default}
.figbar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.figbar .fzpct{min-width:40px;text-align:center;font-variant-numeric:tabular-nums}
.figbar .fzreset{line-height:1.2;font-size:13px}
.figbar .fzsep{width:1px;height:16px;background:#b9bec5;margin:0 2px}
.figview{max-width:100%;overflow:hidden}
.figview.zoomed{overflow:auto}
.figview img{display:block;margin:0 auto}
figure.qvis .figview img{border:none;border-radius:0 0 6px 6px}
/* inside the shrink-to-fit zoom box a percentage cap would size against the box
   itself and stretch it, so the caps there are in pixels */
figure.qvis .figbox img.fig-sq{max-width:380px}
figure.qvis .figbox img.fig-wide{max-width:600px}
figure.qvis .figbox img.fig-tall{max-width:320px}
.figview{max-width:calc(100vw - 90px)}
.figfull{padding:3vh 3vw}
.figfull-card{background:#fff;border-radius:10px;max-width:94vw;max-height:94vh;display:flex;flex-direction:column;
  overflow:hidden}
.figfull-head{display:flex;justify-content:flex-end;padding:4px 6px;background:#f2f3f5}
.figfull-head .close{border:none;background:none;font-size:26px;line-height:1;padding:0 8px;border-radius:6px}
.figfull-card img{max-width:92vw;max-height:84vh;object-fit:contain;margin:12px}

/* figures & tables inside questions */
figure.qvis{margin:0 0 18px;text-align:center}
figure.qvis figcaption.fignote{font-size:calc(var(--qfont) * .8);color:var(--ink);margin-top:6px;line-height:1.3}
figure.qvis img{max-width:100%;max-height:430px;border:1px solid var(--line-soft);border-radius:6px}
/* standard display sizes by shape - an image is never stretched past its own size */
figure.qvis img.fig-sq,figure.qvis img.fig-wide,figure.qvis img.fig-tall,figure.qvis img.fig-crop{height:auto;object-fit:contain}
figure.qvis img.fig-sq{max-width:min(100%,380px);max-height:380px}
figure.qvis img.fig-wide{max-width:min(100%,600px);max-height:320px}
figure.qvis img.fig-tall{max-width:min(100%,320px);max-height:400px}
figure.qvis img.fig-crop{max-width:min(100%,720px);max-height:none}
figure.qvis figcaption{font-size:calc(var(--qfont) - 4px);color:var(--muted);margin-top:6px}
table.qtbl{border-collapse:collapse;margin:0 auto 18px;font-size:calc(var(--qfont) - 2px)}
table.qtbl th,table.qtbl td{border:1px solid #1e1e1e;padding:6px 12px;text-align:center}
table.qtbl th{background:#f2f4f7;font-weight:700}
.nofig{border:1px dashed #d9a441;background:#fff8e6;border-radius:9px;padding:12px 14px;
       font-size:13px;color:#7a5310;text-align:left}

/* highlights */
.hl{background:var(--hl-yellow);border-radius:2px;cursor:pointer}
.hl.pink{background:var(--hl-pink)}
.hl.blue{background:var(--hl-blue)}
.hl.nocolor{background:none}
.hl.u-solid,.hl.u-dashed,.hl.u-dotted{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.hl.u-dashed{text-decoration-style:dashed}
.hl.u-dotted{text-decoration-style:dotted}
/* tables inside a passage or an answer choice (formatted text, spec R25) */
.passage table,.qtext table,table.ctbl{border-collapse:collapse;margin:6px 0}
.passage td,.passage th,.qtext td,.qtext th,table.ctbl td,table.ctbl th{border:1px solid #9aa3ad;padding:3px 6px;text-align:center}
/* data tables rebuilt from pictures (image plan step 1): header row shaded, wide tables scroll
   inside their own box instead of pushing the page sideways, title and note sit tight to it */
.passage,.qtext{min-width:0}
/* fit-content, not max-content: header cells wrap to the pane before the table scrolls (Sanjeev, 24-10-2026, Test 43 RW M2 Q12:
   five long headers made it wider than the passage pane) */
.passage table,.qtext table{display:block;max-width:100%;overflow-x:auto;width:fit-content;font-size:.94em}
.passage th,.qtext th,table.ctbl th{background:#f2f4f7;font-weight:600}
.passage th.ttl,.qtext th.ttl,table.ctbl th.ttl{background:#fff;font-weight:700}
.passage p.ttl,.qtext p.ttl{margin:10px 0 2px;text-align:center}
.passage p.note,.qtext p.note{margin:2px 0 10px;color:#5b6470}

/* footer */
.exam-foot{position:relative;background:var(--bar);display:grid;
           grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:14px 22px 12px}
.exam-foot::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--dash)}
.whoami{font-size:14px;font-weight:600;color:#1e1e1e;justify-self:start;
        max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.navbtn{background:#1e1e1e;color:#fff;border:none;border-radius:8px;padding:9px 16px;font-size:14px;
        font-weight:600;display:flex;align-items:center;gap:8px}
.navbtn svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:2.4}
.navbtn[aria-expanded="true"] svg{transform:rotate(180deg)}
.foot-r{justify-self:end;display:flex;gap:10px}

/* question menu (Bluebook's navigator) */
#navpop{position:absolute;left:50%;transform:translateX(-50%);bottom:84px;z-index:55;width:min(560px,94vw);
        background:#fff;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.25);padding:22px 26px 20px}
#navpop::after{content:"";position:absolute;left:50%;bottom:-11px;width:22px;height:22px;background:#fff;
        transform:translateX(-50%) rotate(45deg);box-shadow:4px 4px 8px rgba(0,0,0,.08)}
#navpop h3{margin:0 30px 14px;text-align:center;font-size:19px;line-height:1.3;text-wrap:balance}
.navclose{position:absolute;top:14px;right:16px;border:none;background:none;font-size:28px;line-height:1;
          padding:2px 8px;border-radius:6px;color:#1e1e1e}
.navclose:hover{background:#f1f3f5}
#navpop .legend{display:flex;gap:26px;justify-content:center;font-size:14px;color:#1e1e1e;
                padding:12px 0;border-top:1px solid #d5d9de;border-bottom:1px solid #d5d9de;margin-bottom:22px;flex-wrap:wrap}
#navpop .legend span{display:flex;align-items:center;gap:7px}
#navpop .legend svg.lg{width:15px;height:18px;fill:none;stroke:#1e1e1e;stroke-width:1.6}
#navpop .legend svg.bm,.navq svg.bm{fill:#c8102e;stroke:none}
.lg-unans{width:17px;height:17px;border:1px dashed #1e1e1e}
.navgrid{display:grid;grid-template-columns:repeat(10,1fr);gap:22px 12px;padding-top:10px}
.navq{position:relative;height:34px;border:1px dashed #1e1e1e;background:#fff;padding:0;
      font-size:17px;font-weight:700;color:var(--blue)}
.navq:hover{background:#f1f4fd}
.navq.ans{background:var(--blue);border:1px solid var(--blue);color:#fff}
.navq.cur .n{text-decoration:underline;text-underline-offset:3px}
.navq .pin{position:absolute;left:50%;top:-22px;transform:translateX(-50%);width:13px;height:17px;
           fill:none;stroke:#1e1e1e;stroke-width:1.6}
.navq .bm{position:absolute;top:-6px;right:-5px;width:10px;height:13px}
.navreview{border:1px solid var(--blue);background:#fff;color:var(--blue);border-radius:999px;
           padding:7px 20px;font-size:14px;font-weight:600}
.navreview:hover{background:#f1f4fd}
.navcell{position:relative;height:34px;border:1px dashed #9aa4b2;border-radius:4px;background:#fff;
         font-size:13px;font-weight:600;color:#1e1e1e}
.navcell.ans{background:var(--blue);border:1px solid var(--blue);color:#fff}
.navcell.cur{outline:2px solid #1e1e1e;outline-offset:2px}
.navcell .flag{position:absolute;top:-7px;right:-5px;font-size:11px;color:#d92d20}
#navpop .navfoot{display:flex;justify-content:center;margin-top:16px}

/* ============================================================
   MODALS / PANELS
   ============================================================ */
.overlay{position:fixed;inset:0;background:rgba(20,24,31,.45);display:grid;place-items:center;z-index:100;
         padding:20px}
.modal{background:#fff;border-radius:14px;max-width:560px;width:100%;padding:26px 28px;
       box-shadow:0 16px 44px rgba(0,0,0,.3);max-height:86vh;overflow:auto}
.modal h2{margin:0 0 10px;font-size:19px}
.modal p{font-size:14px;color:#3d4653}
.modal .acts{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.modal.wide{max-width:820px}
.modal ol,.modal ul{font-size:14px;color:#3d4653}

/* floating tool panels (calculator / reference / notes) */
.panel{position:fixed;z-index:90;background:#fff;border:1px solid var(--line);border-radius:12px;
       box-shadow:0 12px 34px rgba(0,0,0,.24);display:flex;flex-direction:column;overflow:hidden}
.panel-head{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f2f4f7;
            border-bottom:1px solid var(--line);cursor:move;user-select:none}
.panel-head b{font-size:13px;flex:1}
.panel-head button{border:none;background:none;font-size:17px;line-height:1;padding:2px 7px;border-radius:6px}
.panel-head button:hover{background:#e2e6ea}
.panel-body{flex:1;overflow:auto;padding:12px}
/* drag the bottom-right corner to resize a tool panel */
.panel{min-width:300px;min-height:240px}
/* calculator: docked on the left, Graphing and Scientific tabs */
#calcPanel.docked{width:420px;left:0;top:96px;height:60vh;border-radius:0;border:none;
  border-right:1px solid var(--line);box-shadow:none;min-width:0;z-index:40}
#calcPanel .panel-head{background:#1e1e1e;color:#fff;cursor:default;border-bottom:none;padding:7px 8px;
  display:flex;align-items:center;justify-content:space-between;gap:8px}
#calcPanel .ctabs{display:flex;border:1px solid #6b6b6b;border-radius:7px;overflow:hidden;justify-self:start}
#calcPanel .ctab{display:flex;align-items:center;gap:5px;border:none;background:none;color:#fff;font-size:13px;
  font-weight:600;padding:5px 9px;border-radius:6px}
#calcPanel .ctab svg{width:17px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4}
#calcPanel .ctab.on{background:#fff;color:#1e1e1e;text-decoration:underline;text-underline-offset:3px}
#calcPanel .close{justify-self:end;color:#fff;font-size:24px;line-height:1}
#calcPanel .close:hover{background:#3a3a3a}
#calcPanel .panel-body{padding:0;position:relative}
#desmos,#desmosSci{width:100%;height:100%}
.calcmsg{padding:18px;font-size:13px;color:var(--muted)}
.edge-resize{position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:ew-resize;z-index:2}
.edge-resize:hover{background:rgba(50,77,199,.25)}
/* the reference sheet docks on the right between header and footer */
#refPanel.docked{width:460px;right:0;top:96px;height:60vh;border-radius:0;border:none;
  border-left:1px solid var(--line);box-shadow:none;min-width:0;z-index:40}
#refPanel.docked.wide{width:min(900px,70vw);box-shadow:-10px 0 30px rgba(0,0,0,.18)}
#refPanel .panel-head{background:#1e1e1e;color:#fff;cursor:default;border-bottom:none;padding:10px 12px 10px 18px}
#refPanel .panel-head b{font-size:16px}
#refPanel .panel-head button{color:#fff;line-height:0}
#refPanel .panel-head button:hover{background:#3a3a3a}
#refPanel .panel-head .close{font-size:24px;line-height:1}
#refPanel .expand svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:1.6}
#refPanel .panel-body{padding:18px 26px}

/* fallback calculator */
.fcalc{padding:14px;display:flex;flex-direction:column;height:100%;gap:10px}
.fcalc .disp{border:1px solid var(--line);border-radius:8px;padding:10px 12px;text-align:right;
             font-family:var(--serif);font-size:22px;min-height:46px;overflow:auto;background:#fbfbfc}
.fcalc .keys{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;flex:1}
.fcalc .keys button{border:1px solid var(--line);background:#fff;border-radius:8px;font-size:14px;font-weight:600}
.fcalc .keys button:hover{background:#eef1f5}
.fcalc .keys .op{background:#f2f4f7}
.fcalc .keys .eq{background:var(--blue);color:#fff;border-color:var(--blue)}
.fcalc .note{font-size:11px;color:var(--muted);text-align:center}

/* reference sheet */
.refsheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:26px 20px}
.refitem{text-align:left;font-size:16px}
.refitem.wide{grid-column:1/-1;text-align:center}
.refitem .fig{display:flex;justify-content:center;gap:14px;margin-bottom:8px}
.refitem .fig svg{max-width:100%;height:auto;overflow:visible}
.refitem svg path,.refitem svg circle,.refitem svg ellipse,.refitem svg rect{fill:none;stroke:#1e1e1e;stroke-width:1.3}
.refitem svg .thin{stroke-width:1}
.refitem svg .dash{stroke-dasharray:3 3}
.refitem svg circle.dot{fill:#1e1e1e;stroke:none}
.refitem svg text{font:italic 13px var(--serif);fill:#1e1e1e}
.refitem .fm{padding-left:16px}
.refitem .cap{font-family:var(--serif);font-weight:700;font-size:16px}
.reffoot{margin-top:26px;font-family:var(--serif);font-size:16px;color:var(--ink)}
.reffoot p{margin:0 0 18px}


/* ============================================================
   REVIEW / BREAK / TRANSITION / REPORT
   ============================================================ */
.center-screen{height:100%;overflow:auto;display:flex;flex-direction:column;background:#fff}
.center-inner{flex:1;display:grid;place-items:center;padding:34px 22px}
.center-box{max-width:760px;width:100%;text-align:center}
.center-box h1{font-size:26px;margin:0 0 6px}
.center-box .sub{color:var(--muted);font-size:15px;margin:0 0 26px}
.review-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:10px;max-width:520px;margin:22px auto 0}

/* yellow action button, as on Bluebook's break and closing screens */
.btn-yellow{border:1px solid #1e1e1e;background:#fedb00;color:#1e1e1e;border-radius:999px;padding:11px 24px;
            font-size:15px;font-weight:700}
.btn-yellow:hover{background:#f2cf00}
.darkname{position:absolute;left:44px;bottom:26px;font-size:19px;font-weight:700;color:inherit}

/* break: dark screen, the clock on the left, the rules on the right */
#screen-break{position:relative;height:100%;overflow:auto;background:#1e1e1e;color:#fff}
.break-grid{min-height:100%;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;padding:60px 60px 90px}
.break-l{display:flex;flex-direction:column;align-items:center;gap:32px}
.breakbox{border:1px solid #bfbfbf;border-radius:8px;padding:18px 40px 10px;text-align:center}
.breakbox .lbl{font-size:19px;font-weight:700}
.bigclock{font-size:76px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.break-r{max-width:440px;font-size:16px;line-height:1.55}
.break-r h1{font-size:32px;margin:0 0 14px}
.break-r h2{font-size:32px;line-height:1.2;margin:0 0 18px}
.break-r hr{border:none;border-top:1px solid #bfbfbf;margin:26px 0}
.break-r ol{padding-left:22px}
.break-r li{margin-bottom:10px}

/* between modules and the end of the test */
#screen-message{position:relative}
#screen-message .center-box{max-width:520px}
#screen-message h1{font-size:32px;font-weight:400;margin:0 0 22px}
#screen-message p{font-size:19px;margin:0 0 14px}
#screen-message .btn-yellow{margin-top:26px}
.msg-plain h1{color:var(--blue)}
.msg-plain .darkname{display:none}
.msg-dark{background:#1e1e1e;color:#fff}
.msg-dark h1{font-weight:700}
.msg-finished{background:#1b2a6b;color:#fff}
.msg-finished .center-box{max-width:620px}
.msg-finished h1{font-weight:700}
.msg-finished .darkname{display:none}
.donecard{display:flex;align-items:center;gap:30px;background:#fff;color:var(--ink);border-radius:10px;
          padding:34px 38px;text-align:left}
.donecard svg{flex:0 0 96px;width:96px;height:96px;fill:#e6edf8;stroke:var(--blue);stroke-width:3;
              stroke-linecap:round;stroke-linejoin:round}
.donecard p{font-size:18px;margin:0}
.spinner{position:relative;width:46px;height:46px;margin:44px auto 0}
.spinner i{position:absolute;left:50%;top:0;width:7px;height:7px;margin-left:-3.5px;border-radius:50%;
           background:#1e1e1e;transform-origin:3.5px 23px;animation:spin-fade 1s linear infinite}
.spinner i:nth-child(2){transform:rotate(45deg);animation-delay:-.875s}
.spinner i:nth-child(3){transform:rotate(90deg);animation-delay:-.75s}
.spinner i:nth-child(4){transform:rotate(135deg);animation-delay:-.625s}
.spinner i:nth-child(5){transform:rotate(180deg);animation-delay:-.5s}
.spinner i:nth-child(6){transform:rotate(225deg);animation-delay:-.375s}
.spinner i:nth-child(7){transform:rotate(270deg);animation-delay:-.25s}
.spinner i:nth-child(8){transform:rotate(315deg);animation-delay:-.125s}
@keyframes spin-fade{0%{opacity:1}100%{opacity:.12}}
@media (prefers-reduced-motion:reduce){.spinner i{animation:none;opacity:.6}}
@media (max-width:900px){.break-grid{grid-template-columns:1fr;padding:34px 22px 90px}}

/* score report */
.report{max-width:960px;margin:0 auto;padding:34px 22px 80px}
.report h1{font-size:26px;margin:0 0 4px}
.report .sub{color:var(--muted);margin:0 0 26px}
.scorecards{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px;margin-bottom:24px}
.scard{border:1px solid var(--line);border-radius:14px;padding:20px;text-align:center;background:#fff}
.scard.total{background:var(--navy);color:#fff;border-color:var(--navy)}
.scard .lbl{font-size:12px;text-transform:uppercase;letter-spacing:.7px;opacity:.8}
.scard .val{font-size:40px;font-weight:700;line-height:1.1;margin:6px 0 2px}
.scard .raw{font-size:13px;opacity:.75}
.rtable{width:100%;border-collapse:collapse;font-size:14px;background:#fff;
        border:1px solid var(--line);border-radius:12px;overflow:hidden}
.rtable th,.rtable td{padding:10px 14px;border-bottom:1px solid var(--line-soft);text-align:left}
.rtable th{background:#f6f7f9;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.rtable tr:last-child td{border-bottom:none}
.rtable td.num,.rtable th.num{text-align:right;font-variant-numeric:tabular-nums}
/* the count columns stay narrow so each number sits under its heading */
.rtable th.num{width:1%;white-space:nowrap}
.bar{height:8px;background:var(--line-soft);border-radius:999px;overflow:hidden;min-width:90px}
.bar i{display:block;height:100%;background:var(--blue)}
.qchips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.qchip{width:34px;height:30px;border-radius:6px;display:grid;place-items:center;font-size:12px;
       font-weight:700;border:1px solid var(--line)}
.qchip.ok{background:var(--good-soft);border-color:#bfe0cc;color:var(--good)}
.qchip.no{background:var(--bad-soft);border-color:#eebfbc;color:var(--bad)}
.qchip.skip{background:#f2f4f7;color:var(--muted)}
.sec-h{font-size:14px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);
       margin:30px 0 12px;font-weight:700}
.exportbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;background:#fff;border:1px solid var(--line);
           border-radius:12px;padding:16px 18px;margin-top:14px}
.exportbar .grow{flex:1;font-size:13px;color:var(--muted)}
.sendstate{font-size:13px;font-weight:600}
.sendstate.ok{color:var(--good)} .sendstate.bad{color:var(--bad)}

/* katex sizing inside questions */
.katex{font-size:1.04em}
.katex-display{margin:.7em 0}

@media (max-width:900px){
  .exam-body{flex-direction:column}
  .pane-l{border-right:none;border-bottom:1px solid var(--line);max-height:44%}
  .splitter{display:none}
  .scorecards{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .exam-head{grid-template-columns:1fr auto;row-gap:6px}
  .head-r{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}
}

/* ============================================================
   HIGHLIGHT TOOLBAR / NOTES COLUMN / MORE MENU / LINE READER
   ============================================================ */
.hltip{position:fixed;z-index:95;background:#3a3a3a;color:#fff;font-size:14px;line-height:1.4;
  padding:9px 13px;border-radius:7px;max-width:220px;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.hltools{position:fixed;z-index:70;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #cfd3d8;
  border-radius:999px;padding:5px 9px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.hltools .sw{width:32px;height:32px;border-radius:50%;border:1px solid #9aa0a8;display:grid;place-items:center;padding:0}
.hltools .sw-yellow{background:var(--hl-yellow)}
.hltools .sw-blue{background:var(--hl-blue)}
.hltools .sw-pink{background:var(--hl-pink)}
.hltools .sw.on{box-shadow:0 0 0 2px #fff,0 0 0 4px #1e1e1e}
.hltools .sw svg{width:10px;height:13px;fill:#1e1e1e}
.hltools .tsep{width:1px;height:24px;background:#d5d9de}
.hltools .tbtn{width:34px;height:34px;border:1px solid #9aa0a8;border-radius:50%;background:#fff;display:grid;place-items:center;padding:0}
.hltools .tbtn[disabled]{opacity:.35;cursor:default}
.hltools .tbtn svg{width:16px;height:16px;fill:none;stroke:#1e1e1e;stroke-width:1.4;stroke-linejoin:round}
.hltools .tbtn:hover:not([disabled]),.hltools .ubtn:hover{background:#f1f3f5}
.uwrap{position:relative}
.ubtn{display:flex;align-items:center;gap:3px;border:none;background:none;border-radius:8px;padding:3px 5px}
.ubtn .U{font-weight:700;font-size:15px;text-decoration:underline}
.ubtn .ulines{display:none}
.ubtn svg{width:9px;height:6px;fill:none;stroke:#1e1e1e;stroke-width:1.5}
.umenu{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#fff;border:1px solid #cfd3d8;
  border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.16);display:flex;flex-direction:column;padding:4px;min-width:62px}
.uopt{border:none;background:none;padding:5px 10px;border-radius:5px;font-size:13px}
.uopt:hover,.uopt.on{background:#eef1f5}
.uopt .U{font-weight:700;font-size:15px;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.uopt .u-dashed{text-decoration-style:dashed}
.uopt .u-dotted{text-decoration-style:dotted}

/* notes column beside the passage */
.notewrap{position:relative;display:flex;flex:0 0 auto}
.notecol{width:250px;overflow:auto;padding:22px 12px;border-right:1px solid var(--line);background:#fff;
  display:flex;flex-direction:column;gap:14px}
.notetoggle{position:absolute;bottom:18px;left:-15px;z-index:4;width:30px;height:30px;border-radius:50%;
  border:1px solid #1e1e1e;background:#fff;display:grid;place-items:center;padding:0}
.notetoggle svg{width:9px;height:12px;fill:none;stroke:#1e1e1e;stroke-width:1.8}
.notetoggle.shut svg{transform:rotate(180deg)}
.notecard{position:relative;border:2px solid #1e1e1e;border-radius:7px;background:#fff;overflow:hidden;flex:0 0 auto}
.notecard .nhead{display:flex;align-items:center;gap:8px;padding:7px 9px;background:var(--hl-yellow)}
.notecard.blue .nhead{background:var(--hl-blue)}
.notecard.pink .nhead{background:var(--hl-pink)}
.notecard .nquote{flex:1;min-width:0;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notecard .ndel{border:none;background:none;padding:2px;line-height:0;border-radius:5px}
.notecard .ndel svg{width:15px;height:16px;fill:none;stroke:#1e1e1e;stroke-width:1.4}
.notecard textarea{display:block;width:100%;min-height:70px;border:none;resize:vertical;padding:9px;font:13px/1.45 var(--sans);color:var(--ink)}
.notecard textarea:focus{outline:2px solid var(--blue);outline-offset:-2px}
.nconfirm{position:absolute;inset:0;background:#2b2b2b;color:#fff;display:flex;flex-wrap:wrap;align-items:center;
  justify-content:center;gap:10px 16px;padding:8px;font-size:14px}
.nconfirm b{flex-basis:100%;text-align:center}
.nconfirm button{border:1px solid #fff;background:none;color:#fff;border-radius:999px;padding:3px 14px;font-weight:600}
.nconfirm .nyes{border-color:transparent}

/* More menu */
.morewrap{position:relative}
.moremenu{position:absolute;top:calc(100% + 8px);right:0;z-index:96;background:#fff;border-radius:10px;min-width:230px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);padding:8px 0;display:flex;flex-direction:column}
.moremenu button{display:flex;align-items:center;gap:14px;border:none;background:none;text-align:left;font-size:16px;
  padding:12px 22px;color:var(--ink)}
.moremenu button:hover,.moremenu button:focus-visible{background:#f1f3f5}
.moremenu svg{width:22px;height:22px;fill:none;stroke:#1e1e1e;stroke-width:1.5}
.moremenu .lr-item[aria-pressed="true"]{font-weight:700}
#moreTool svg circle{fill:currentColor}

.kbtable{width:100%;border-collapse:collapse;font-size:14px}
.kbtable th{background:#4a4a4a;color:#fff;text-align:left;padding:9px 10px}
.kbtable td{border:1px solid #d5d9de;padding:8px 10px;font-weight:600}
.kbtable td + td{font-weight:400;white-space:nowrap}
.kbtable kbd{font:inherit}

/* line reader: dark band, clear strip, the page stays clickable through the strip */
.linereader{position:fixed;z-index:75;display:flex;flex-direction:column;pointer-events:none}
.linereader .lr-top,.linereader .lr-bottom{background:rgba(30,30,30,.9);color:#fff;pointer-events:auto}
.linereader .lr-top{padding:8px 12px 10px;text-align:center}
.lr-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.lr-grip{grid-column:2;display:grid;grid-template-columns:repeat(3,5px);gap:4px;border:2px solid #fff;border-radius:9px;
  background:none;padding:8px 10px;cursor:move}
.lr-grip i{width:5px;height:5px;border-radius:50%;background:#fff}
.lr-grip:focus-visible{outline:3px solid #9db4ff}
.lr-exp,.lr-close{border:none;background:none;color:#fff;padding:4px;border-radius:5px}
.lr-bar .lr-exp{grid-column:3;grid-row:1;justify-self:end;margin-right:40px;line-height:0}
.lr-exp svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.6}
.lr-bar .lr-close{grid-column:3;grid-row:1;justify-self:end;font-size:26px;line-height:1}
.linereader p{margin:8px 0 0;font-size:14px;font-weight:600}
.lr-window{height:30px;border-top:1px solid rgba(30,30,30,.9);border-bottom:1px solid rgba(30,30,30,.9)}
.linereader .lr-bottom{height:34px;display:grid;place-items:center}
.lr-size{border:none;background:none;line-height:0;padding:6px;cursor:ns-resize;border-radius:5px}
.lr-size svg{width:13px;height:9px;fill:#fff}

/* sign-in screen (config.source = "supabase") */
.signin-wrap{margin:auto;padding:32px 20px;width:100%;max-width:420px;display:flex;flex-direction:column;
  align-items:stretch;gap:18px}
.signin-logo{width:150px;height:auto;align-self:center}
.signin-wrap .card{margin:0}
.signin-wrap h2{margin:0 0 6px}
.signin-msg{font-size:14px;color:#b42318;margin:0 0 10px;min-height:19px}
.signin-foot{font-size:13px;color:var(--muted);text-align:center;margin:0}
.brandlogo{width:76px;height:auto;display:block}
.brandline h1{font-size:19px}

/* dashboard (config.source = "supabase") */
.home-wrap{margin:0 auto;padding:26px 20px 60px;width:100%;max-width:880px}
.home-wrap .brandline{position:relative}
.home-wrap .brandline h1{font-size:21px}
.home-out{position:absolute;right:0;top:4px}
.home-wrap .card{margin-bottom:18px}
.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.card-h h2{margin:0}
.card-h .count{font-size:13px;color:var(--muted)}
.home-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media (max-width:760px){.home-cols{grid-template-columns:1fr}}
.card.guide{background:#f3f7ff;border-color:#c9dcff}
.card.guide ul{margin:0 0 10px;padding-left:20px;font-size:14.5px;line-height:1.55}
.card.guide li{margin-bottom:4px}
.guide-foot{font-size:13.5px;color:var(--muted);margin:0 0 12px}
ol.actions{list-style:none;margin:0;padding:0}
ol.actions li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:11px 0;border-top:1px solid #eceeed}
ol.actions li:first-child{border-top:none}
.atitle{font-weight:700;font-size:15.5px}
.ameta{color:var(--muted);font-size:13.5px;margin-top:2px}
.ameta span + span:before{content:"\00b7";margin:0 6px}
.bigscore{font-size:32px;font-weight:700;line-height:1.1}
.bigscore small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:2px}
.scorerow{display:flex;gap:26px;align-items:flex-end;flex-wrap:wrap}
.spark{margin-top:12px;width:100%;height:56px;display:block}
ul.areas{list-style:none;margin:0;padding:0}
ul.areas li{display:grid;grid-template-columns:minmax(0,1fr) 74px 44px;gap:10px;align-items:center;
  padding:6px 0;font-size:14.5px}
ul.areas .bar{height:7px;border-radius:99px;background:#eceeed;overflow:hidden}
ul.areas .bar i{display:block;height:100%;background:var(--brand)}
ul.areas .pct{text-align:right;color:var(--muted);font-size:13.5px}
.famgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.fam{border:1px solid #e3e6ea;border-radius:10px;padding:10px 12px}
.fam b{display:block;font-size:14.5px}
.fam span{font-size:13px;color:var(--muted)}
.linkbtn{border:none;background:none;color:var(--brand);font-weight:700;font-size:13.5px;cursor:pointer}
.empty-line{color:var(--muted);font-size:14.5px;margin:0}

/* admin: looking at a student's dashboard */
.adminbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;
  background:#1e1e1e;color:#fff;border-radius:10px}
.adminbar label{font-size:13px;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.adminbar input,.adminbar select{font:inherit;font-size:14px;padding:6px 8px;border-radius:7px;
  border:1px solid #444;background:#fff;color:#1e1e1e;max-width:320px}
.adminbar #adminCount{font-size:13px;opacity:.75;margin-left:auto}
.viewing-note{margin:0 0 14px;padding:9px 13px;border-radius:9px;background:#fff6e5;border:1px solid #f0d49b;
  font-size:14px;color:#6b4e12}
body.viewing .btn-primary{display:none}

/* test-admin: allocating tests */
.barbtn{border:1px solid #666;background:none;color:#fff;border-radius:7px;padding:5px 11px;font-size:13.5px}
.barbtn:hover{background:#333}
.allocrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.allocrow select,.allocrow input[type=search],.allocrow input[type=text],.allocrow input[type=date]{
  font:inherit;font-size:14.5px;padding:7px 9px;border:1px solid #d7dbe0;border-radius:8px;background:#fff}
.allocrow select#allocTest{min-width:320px;max-width:100%}
.allocrow label{font-size:14px;color:var(--muted)}
.tick{display:inline-flex;align-items:center;gap:6px}
table.alloctable{width:100%;border-collapse:collapse;font-size:14.5px}
table.alloctable th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.05em;
  color:var(--muted);font-weight:700;padding:7px 10px;border-bottom:1px solid #e3e6ea}
table.alloctable td{padding:7px 10px;border-bottom:1px solid #f1f3f5}
table.alloctable tr:last-child td{border-bottom:none}
table.alloctable .num{text-align:right;font-variant-numeric:tabular-nums}
.pill{display:inline-block;font-size:12px;font-weight:700;border-radius:99px;padding:1px 9px}
.pill.warn{background:#fdf0d5;color:#8a5a00}
.pill.ok{background:#e4f4ea;color:#23804b}
.pill.muted{background:#eef0f2;color:#5f6866}
.alloc-result{font-size:14.5px;margin:10px 0 0}
.alloc-result.good{color:#23804b}
.alloc-result.bad{color:#b42318}

.rtable td small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}

/* suggestions and free slots */
table.suggest td{vertical-align:top}
table.suggest .why{font-size:12.5px;color:var(--muted);max-width:340px}
table.suggest select{font:inherit;font-size:13.5px;padding:4px 6px;border:1px solid #d7dbe0;border-radius:6px;max-width:210px}
.spark-mini{display:inline-block;vertical-align:middle;margin-left:6px}
.trend-rising{color:#23804b;font-weight:700}
.trend-falling{color:#b42318;font-weight:700}
.trend-steady{color:#5f6866}
.trend-new{color:#8a5a00}
.freeslots{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.freeslots label{display:inline-flex;align-items:center;gap:7px;border:1px solid #d7dbe0;border-radius:99px;
  padding:6px 13px;font-size:14px;background:#fff;cursor:pointer}
.freeslots label.on{border-color:var(--brand);background:#fdf4ec}
#satSchoolRow{display:inline-flex;margin-bottom:12px;font-size:14.5px}
table.alloctable td small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}

/* the student's week, and the review queue */
.weekgrid{display:grid;grid-template-columns:auto repeat(3, minmax(0,1fr));gap:6px;margin-bottom:12px;max-width:560px}
.weekgrid .hd{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);align-self:center}
.weekgrid .day{font-size:14px;color:var(--ink);align-self:center;padding-right:6px}
.weekgrid button{border:1px solid #d7dbe0;background:#fff;border-radius:8px;padding:7px 0;font-size:13px;
  color:var(--muted);cursor:pointer}
.weekgrid button.on{border-color:var(--brand);background:#fdf4ec;color:var(--brand);font-weight:700}
.freewhen{font-size:12.5px;color:var(--muted);max-width:260px}

/* the student record: registration details, and who may change them */
.fieldgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 18px}
.fieldgrid .fgroup{grid-column:1/-1;margin:12px 0 0;font-size:12px;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted);border-bottom:1px solid #eef0f2;padding-bottom:5px;font-weight:700}
.fieldgrid .fgroup:first-child{margin-top:0}
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field label{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.field input,.field select{font:inherit;font-size:14.5px;padding:7px 9px;border:1px solid #d7dbe0;
  border-radius:8px;background:#fff;min-width:0;width:100%}
.field input[type=checkbox]{width:18px;height:18px;align-self:flex-start;margin-top:3px}
.field .ro{font-size:14.5px;padding:6px 0;min-height:21px;border-bottom:1px dotted #dfe3e8}
.field .ro.empty{color:var(--muted)}
.field small{color:var(--muted);font-size:12px;line-height:1.4}
.field .pill{font-size:10.5px;letter-spacing:.02em;text-transform:none}
.changelog{margin-top:16px;font-size:13.5px}
.changelog summary{cursor:pointer;color:var(--brand);font-weight:700;font-size:13px}
.changelog ul{list-style:none;margin:10px 0 0;padding:0}
.changelog li{padding:5px 0;border-bottom:1px solid #f1f3f5;color:var(--muted)}
.changelog li b{color:var(--ink)}
.changelog li:last-child{border-bottom:none}
table.alloctable tr.clickable{cursor:pointer}
table.alloctable tr.clickable:hover td{background:#f7f9fb}
table.alloctable tr.picked td{background:#fdf4ec}
.btn-save{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-save:hover{background:var(--blue-dark);border-color:var(--blue-dark)}

/* the confirm card between "Start test" and question 1 (R32.1) */
.confirm-box{text-align:left}
.confirm-box h1{text-align:center}
.confirm-box .sub{text-align:center;margin-bottom:24px}
.cflist{margin:0 0 28px;padding-left:24px;font-size:15px;line-height:1.55}
.cflist li{margin:0 0 13px;padding-left:4px}
.cflist li:last-child{margin-bottom:0}
.confirm-actions{display:flex;gap:12px;align-items:center;justify-content:center}
.confirm-actions .err{margin-right:auto}


/* ============================================================
   The portal's look, outside the test itself (04-10-2026)

   A student comes here from the portal with one sign-in, so the screens around a test - sign-in,
   the dashboard, the picker, the confirm card, the report - wear the portal's colours and type:
   brown headings in Lexend, teal actions, Source Sans for reading. The test itself (the exam, its
   review page and the break) keeps Bluebook's blue and Noto, because looking like the real test
   is what it is for.
   ============================================================ */
.screen:not(#screen-exam):not(#screen-review):not(#screen-break){
  --blue:#035b52; --blue-dark:#024139; --blue-soft:#e2f0ee; --navy:#723500;
  --ink:#1f2322; --muted:#5f6866; --line:#dfe3e1; --line-soft:#eceeed; --shell:#f4f5f4;
  --sans:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-family:var(--sans);color:var(--ink);
}
.screen:not(#screen-exam):not(#screen-review):not(#screen-break).center-screen{background:#f4f5f4}
.screen:not(#screen-exam):not(#screen-review):not(#screen-break) :is(h1,h2,h3){
  font-family:"Lexend",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:600;color:#723500;letter-spacing:0;text-transform:none}
.screen:not(#screen-exam):not(#screen-review):not(#screen-break) .card{border-radius:14px;border-color:#dfe3e1}
.screen:not(#screen-exam):not(#screen-review):not(#screen-break) .btn{border-radius:10px;font-weight:600}
.signin-wrap .card h2{font-size:20px}
.to-portal{font:600 14px "Source Sans 3",system-ui,sans-serif;color:#035b52;text-decoration:none;border-bottom:1px solid #b9d8d3;padding-bottom:1px}
.to-portal:hover{border-color:#035b52}
