/* GRE AIYAZ portal shell — black / white / gold, matching the trainers.

   Every colour is a token, so dark mode is a swap of the token block
   rather than a second stylesheet. Order matters below:
     1. :root                        the light palette (the default)
     2. prefers-color-scheme: dark   follow the phone's own setting,
                                     unless the student picked light
     3. [data-theme="dark"]          an explicit choice always wins

   Dark IS Slate Blue (Aiyaz, Oct 2026): the old warm-black dark is gone,
   so blocks 2 and 3 carry the Slate Blue values, and a page stamped dark
   before its palette arrives is already Slate Blue. Soft Dark, further
   down, is the one other dark.
*/

/* ---- the typeface: Inter (Oct 2026) ----
   Aiyaz: "the overall fonts seem a bit squeezed. can they be made a bit
   taller so that readability is better" — and of the three he was shown,
   he picked Inter. Its small letters are taller than the system fonts'
   (Segoe UI on Windows, San Francisco on a Mac, Roboto on Android), so the
   same size reads bigger without spreading the line out; and it is the
   same face on every phone and laptop instead of whichever one the device
   happens to have.

   Served from this site (/fonts), not from Google, so nothing is asked of
   anyone else's server. One variable file holds every weight the portal
   uses (400 to 800); the browser fetches only the files for the letters on
   the page — the Latin one (48 KB, once) nearly always, the extended-Latin
   one only for a name with an accent, the italic ones only for italics.
   While it loads, the page shows in the old font (font-display: swap), so
   nothing ever waits on it. The trainers keep their own fonts. */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'),
      url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'),
      url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,
    U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,
    U+A720-A7FF}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;
  src:url(/fonts/inter-latin-wght-italic.woff2) format('woff2-variations'),
      url(/fonts/inter-latin-wght-italic.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;
  src:url(/fonts/inter-latin-ext-wght-italic.woff2) format('woff2-variations'),
      url(/fonts/inter-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,
    U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,
    U+A720-A7FF}

:root{
  --disp:'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;

  --cream:#fdfaf3;          /* page */
  --surface:#fff;           /* cards */
  --surface-2:#fffdf8;      /* inputs, insets */
  --surface-3:#faf7ef;      /* locked / disabled */
  --line:#efe6d2;           /* card borders */
  --line-soft:#f3ecdb;      /* row dividers */
  --line-input:#e6dcc4;

  --ink:#16130f;            /* primary text */
  --grey:#6b675f;           /* secondary text */
  --muted:#7a5c10;          /* small gold-ish labels */
  --num:#2b2d38;            /* big numbers */

  --dark:#17140f;           /* the top bar — dark in both themes */
  --bar-btn:#2a241a; --bar-btn-line:#3a3225; --bar-btn-hover:#3a3225;
  --bar-sub:#b9b6c4;

  --gold:#c9a227; --gold-deep:#b8860b; --gold-line:#ecd9a5;
  --gold-bg:#fbf3e0; --gold-light:#eecd84;

  --glow:rgba(226,190,90,.34);
  --shadow:0 6px 24px rgba(60,45,10,.07);
  --shadow-sm:0 5px 18px rgba(60,45,10,.055);
  --shadow-h:0 12px 28px rgba(120,90,10,.16);

  --ok-bg:#eef7ee; --ok-line:#cfe6cf; --ok-ink:#2f6b34;
  --warn-bg:#fdf6e7; --warn-line:#ecd9a5; --warn-ink:#8a6a12;
  --bad-bg:#fdf2f2; --bad-line:#f0cfcf; --bad-ink:#8a2b2b;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --cream:#121720; --surface:#171d27; --surface-2:#1b222d; --surface-3:#141a23;
    --line:#26303d; --line-soft:#1f2833; --line-input:#303b4a;
    --ink:#d7dde6; --grey:#8d97a6; --muted:#d9b871; --num:#e3e8ef;
    --dark:#0e131a; --bar-btn:#1c2431; --bar-btn-line:#2c3746; --bar-btn-hover:#26303d;
    --bar-sub:#9aa5b4;
    --gold-deep:#dfb96e; --gold-line:#3f4152; --gold-bg:#1e2533;
    --tile:linear-gradient(155deg,#2b3543,#1a222d); --tile-line:#3a4657;
    --glow:rgba(226,190,90,.12);
    --shadow:0 6px 24px rgba(0,0,0,.5); --shadow-sm:0 5px 18px rgba(0,0,0,.4);
    --shadow-h:0 12px 28px rgba(0,0,0,.55);
    --ok-bg:#16261f; --ok-line:#2e5140; --ok-ink:#8fd3ad;
    --warn-bg:#26241a; --warn-line:#484026; --warn-ink:#e0bb6e;
    --bad-bg:#2a191d; --bad-line:#573039; --bad-ink:#efa3ac;
  }
}
:root[data-theme="dark"]{
  --cream:#121720; --surface:#171d27; --surface-2:#1b222d; --surface-3:#141a23;
  --line:#26303d; --line-soft:#1f2833; --line-input:#303b4a;
  --ink:#d7dde6; --grey:#8d97a6; --muted:#d9b871; --num:#e3e8ef;
  --dark:#0e131a; --bar-btn:#1c2431; --bar-btn-line:#2c3746; --bar-btn-hover:#26303d;
  --bar-sub:#9aa5b4;
  --gold-deep:#dfb96e; --gold-line:#3f4152; --gold-bg:#1e2533;
  --tile:linear-gradient(155deg,#2b3543,#1a222d); --tile-line:#3a4657;
  --glow:rgba(226,190,90,.12);
  --shadow:0 6px 24px rgba(0,0,0,.5); --shadow-sm:0 5px 18px rgba(0,0,0,.4);
  --shadow-h:0 12px 28px rgba(0,0,0,.55);
  --ok-bg:#16261f; --ok-line:#2e5140; --ok-ink:#8fd3ad;
  --warn-bg:#26241a; --warn-line:#484026; --warn-ink:#e0bb6e;
  --bad-bg:#2a191d; --bad-line:#573039; --bad-ink:#efa3ac;
}

*{box-sizing:border-box;margin:0;padding:0}
/* A rule that sets display beats the browser's own [hidden], so anything
   given display:flex or display:inline-block quietly stops being hideable.
   Say it once, here, rather than remembering it at every call site. */
[hidden]{display:none!important}
html,body{min-height:100%}
html{background:var(--cream)}
body{
  font-family:var(--disp);background:var(--cream);color:var(--ink);
  display:flex;flex-direction:column;min-height:100vh;position:relative;
  -webkit-font-smoothing:antialiased;
}
/* Opened from the Home Screen (iOS 26). Safari no longer reads theme-color:
   the strip behind the clock takes the page's background colour and fades
   softly into the top of the page, which blurred the top of the dark bar.
   There, the page's colour is the bar's, and the cream is painted over it
   as a picture, so the page itself looks exactly as before. iOS also blurs
   the first thirty-odd points under the clock, whatever is there: the bar
   is taller by that much, so its logo and icons sit clear of it, on the
   bar's own dark. (ga-standalone is set by shared/theme.js for an iOS that
   does not report display-mode.) */
@media (display-mode: standalone){
  html,body{background-color:var(--dark);background-image:linear-gradient(var(--cream),var(--cream))}
  .bar{padding-top:28px}
  .nsheet .top{height:76px;padding-top:28px}
}
html.ga-standalone,html.ga-standalone body{background-color:var(--dark);
  background-image:linear-gradient(var(--cream),var(--cream))}
html.ga-standalone .bar{padding-top:28px}
html.ga-standalone .nsheet .top{height:76px;padding-top:28px}
body::before{
  content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:min(900px,94%);height:340px;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at top,var(--glow),rgba(226,190,90,0) 68%);
}
.wrap{position:relative;z-index:2;flex:1;width:100%;max-width:1040px;margin:0 auto;
  padding:clamp(22px,5vh,54px) 22px clamp(30px,5vh,60px)}
.wrap.wide{max-width:1290px}
.mark{width:clamp(64px,9vh,92px);height:clamp(64px,9vh,92px);border-radius:50%;
  display:block;margin:0 auto 16px;box-shadow:0 12px 30px rgba(120,90,10,.26)}
h1{font-size:clamp(23px,3.6vh,33px);font-weight:800;letter-spacing:.4px;line-height:1.12;text-align:center}
h1 .gold{color:var(--gold-deep)}
.seg{display:block;width:max-content;margin:12px auto 0;padding:7px 22px;border-radius:999px;
  background:var(--gold-bg);border:1px solid var(--gold-line);color:var(--muted);
  font-size:11.5px;font-weight:700;letter-spacing:2.4px;text-transform:uppercase}
.diamond{margin:22px auto;width:100%;max-width:620px;display:flex;align-items:center;gap:14px}
.diamond::before,.diamond::after{content:'';flex:1;height:1px;
  background:linear-gradient(90deg,rgba(201,162,39,0),rgba(201,162,39,.45),rgba(201,162,39,0))}
.diamond i{width:8px;height:8px;background:var(--gold);transform:rotate(45deg);display:block}

/* ---- card / panel ---- */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;
  box-shadow:var(--shadow);padding:26px}
.panel.narrow{max-width:400px;margin:0 auto}

/* ---- form ---- */
label{display:block;font-size:11px;font-weight:700;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--muted);margin:0 0 7px}
input[type=email],input[type=password],input[type=text],textarea,select{
  width:100%;padding:13px 14px;font-size:16px;font-family:inherit;color:var(--ink);
  background:var(--surface-2);border:1px solid var(--line-input);border-radius:10px;outline:none;transition:.15s}
input:focus,textarea:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,.18)}
::placeholder{color:var(--grey);opacity:.75}
.field{margin-bottom:16px}
.btn{width:100%;padding:14px 18px;font:800 14px/1 var(--disp);letter-spacing:.7px;
  color:#fdfaf3;background:var(--dark);border:1px solid #000;border-radius:10px;
  cursor:pointer;transition:.15s}
.btn:hover{background:#241f16}
.btn:disabled{opacity:.55;cursor:progress}
.btn.ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line-input)}
.btn.ghost:hover{background:var(--gold-bg);border-color:var(--gold-line)}
.btn.small{width:auto;padding:9px 16px;font-size:12.5px}
:root[data-theme="dark"] .btn{background:var(--gold-deep);color:#17140f;border-color:#8a6a12}
:root[data-theme="dark"] .btn:hover{background:#eecd84}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .btn{background:var(--gold-deep);color:#17140f;border-color:#8a6a12}
  :root:not([data-theme="light"]) .btn:hover{background:#eecd84}
}
.msg{display:none;margin:0 0 16px;padding:12px 14px;border-radius:10px;font-size:13.5px;line-height:1.5}
.msg.on{display:block}
.msg.bad{background:var(--bad-bg);border:1px solid var(--bad-line);color:var(--bad-ink)}
.msg.info{background:var(--gold-bg);border:1px solid var(--gold-line);color:var(--muted)}
/* Not a failure and not a nothing: something is about to be lost and
   the reader has to choose. Reads as the gold notice, but in the
   page's own ink so the words carry their weight. */
.msg.warn{background:var(--gold-bg);border:1px solid var(--gold);color:var(--ink)}
.msg.warn .btn{margin:0}
.hint{font-size:12.5px;color:var(--grey);text-align:center;margin-top:16px;line-height:1.6}
.hint a{color:var(--gold-deep);font-weight:700;text-decoration:none}
.hint a:hover{text-decoration:underline}

/* ---- app grid ---- */
.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;align-items:stretch}
/* The dashboard is the only page that should fill the viewport: one row of
   five rooms, grown into whatever height is left over, rather than a fixed
   card height with a dead band underneath. Capped so it stays a card and
   not a column on a tall monitor. */
@media(min-width:1151px){
  .rooms{flex:1;display:flex;flex-direction:column;min-height:0}
  .rooms .grid{flex:1;grid-auto-rows:minmax(320px,1fr);max-height:400px}
}
@media(max-width:1150px){.grid{grid-template-columns:repeat(3,1fr);gap:13px}}
@media(max-width:860px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.app{display:flex;flex-direction:column;gap:11px;text-decoration:none;color:inherit;
  background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px 19px 20px;
  min-height:330px;box-shadow:var(--shadow-sm);transition:.16s ease}
.app:hover{border-color:#d9bf72;box-shadow:var(--shadow-h);transform:translateY(-3px)}
.app.locked{opacity:.62;pointer-events:none;background:var(--surface-3)}
/* Gold glyph on a black squircle — the brand's icon chip. */
.app .ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;margin-bottom:5px;
  background:var(--tile,linear-gradient(155deg,#221d15,#100e0b));
  color:var(--gold-light,#eecd84);
  border:1px solid var(--tile-line,#352d1d);box-shadow:0 4px 12px rgba(30,22,6,.28),
  inset 0 1px 0 rgba(255,255,255,.06)}
.app .ic svg{width:23px;height:23px;display:block}
.app:hover .ic{color:#fff}
.app.locked .ic{background:linear-gradient(155deg,#3a352c,#2b2823);
  color:#a49a86;border-color:#4a4335;box-shadow:none}
.app .t{font-size:16.5px;font-weight:800;letter-spacing:.1px;line-height:1.28}
.app .b{font-size:14.5px;color:var(--grey);line-height:1.5}
.app .go{margin-top:auto;padding-top:18px;font-size:10px;font-weight:800;letter-spacing:1.5px;
  text-transform:uppercase;color:var(--gold-deep)}
.app.locked .go{color:var(--grey)}
/* A room this login has that is still being built: it opens (on a page
   saying so), so it is not greyed, but it does not promise a room yet. */
.app.soon .go{color:var(--grey)}

/* One card per row on a phone, so it must be sized by its own content —
   a fixed height here just leaves a hole in every card and makes the page
   five screens long. This has to come AFTER the rules above: it is the same
   specificity, so source order is what decides. */
@media(max-width:560px){
  .app{min-height:0;padding:16px 16px 14px;gap:9px}
  .app .ic{width:40px;height:40px;border-radius:12px;margin-bottom:2px}
  .app .ic svg{width:20px;height:20px}
  .app .t{font-size:16px}
  .app .b{font-size:14px}
  .app .go{padding-top:14px}
}

/* ---- the rooms, one block per course (GRE, IBA) ----
   The course a login has comes first in full cards. A course it has
   none of follows in one short greyed row — there to see, not pushing
   their own rooms down the page. */
.rgroups{display:flex;flex-direction:column;gap:26px}
.rgroup h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 11px;
  font:800 11px/1.2 var(--disp);letter-spacing:1.9px;text-transform:uppercase;color:var(--muted)}
.rgroup h2 .n{font-size:11.5px;font-weight:700;letter-spacing:.2px;text-transform:none;color:var(--grey)}
.rgroup.off h2{color:var(--grey)}
/* (.rooms .grid fills the window with one tall row on a desktop; not this one.) */
.rooms .rgroup.off .grid{grid-auto-rows:auto;max-height:none}
.rgroup.off .app{min-height:0;flex-direction:row;align-items:center;gap:11px;
  padding:11px 13px;border-radius:14px}
.rgroup.off .app .ic{width:34px;height:34px;border-radius:10px;margin:0}
.rgroup.off .app .ic svg{width:17px;height:17px}
.rgroup.off .app .t{font-size:14px;line-height:1.3}
.rgroup.off .app .b,
.rgroup.off .app .go{display:none}
@media(max-width:560px){.rgroup.off .grid{grid-template-columns:1fr 1fr;gap:9px}}

/* ---- the Welcome Room (Oct 2026) ----
   The one room every login has, whatever its course: one slim,
   gold-edged card above the courses. Slim on purpose — on a laptop the
   student's own rooms still fit on the first screen. Its heading is a
   richer gold than the courses' but still reads at 5:1 on the page. */
:root{--wel-ink:#8a6408;--wel-line:#d9bf72}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--wel-ink:var(--gold-deep);--wel-line:#3f4152}
}
:root[data-theme="dark"]{--wel-ink:var(--gold-deep);--wel-line:#3f4152}
:root[data-palette="soft"]{--wel-line:#585f52}
.rgroup.wel h2{color:var(--wel-ink)}
/* (not the tall row the course rooms fill on a desktop, and one column
   at every width) */
.rooms .rgroup.wel .grid,
.rgroup.wel .grid{grid-template-columns:1fr;grid-auto-rows:auto;max-height:none}
.rgroup.wel .app{min-height:0;flex-direction:row;align-items:center;gap:16px;
  padding:16px 22px 16px 18px;border:1.5px solid var(--wel-line);background-color:var(--surface);
  background-image:linear-gradient(100deg,var(--gold-bg) 0%,transparent 72%)}
/* press.css gives every room card its sheen through background-image,
   from a stronger selector; this keeps the sheen AND the gold wash. */
:root body.pg .rgroup.wel .app{
  background-image:var(--press-sheen,linear-gradient(transparent,transparent)),
                   linear-gradient(100deg,var(--gold-bg) 0%,transparent 72%)}
/* In the dark themes the edge is the theme's own gold, mixed down
   (a browser that cannot mix keeps the plain colour above). */
:root[data-theme="dark"] .rgroup.wel .app{
  border-color:color-mix(in srgb,var(--gold-deep) 40%,var(--surface))}
.rgroup.wel .app:hover,
:root[data-theme] .rgroup.wel .app:hover{border-color:var(--gold)}
.rgroup.wel .app .ic{margin:0}
.rgroup.wel .app .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.rgroup.wel .app .go{margin:0;padding:0;white-space:nowrap}
@media(max-width:560px){
  .rgroup.wel .app{flex-wrap:wrap;gap:12px;padding:14px 15px}
  .rgroup.wel .app .go{width:100%;padding-left:52px}
}

/* ---- top bar: Apple's way (Oct 2026) ----
   Aiyaz: "in the top row menu, can we make it like Apple?" — and of the
   three he was shown, he picked A. A dark strip 48px tall; inside it, on
   the same width as the page, the logo and the portal's places spread
   evenly from edge to edge, then two small icons — Display settings and
   the Profile menu. Plain words, no pills, no gold rule; the page you are
   on is the brighter, bolder one. The same bar on every page, so it is
   always in the same place.

   On a phone — or any window too narrow for the words, which
   shared/nav.js measures — the words fold into a two-line menu button
   that opens a full-screen list, the way Apple's does. The icons stay.
   Your name is no longer in the bar; it heads the Profile menu. */
.bar{position:relative;z-index:3;background:var(--dark);color:rgba(255,255,255,.8)}
.bar .in{max-width:1040px;height:48px;margin:0 auto;padding:0 22px;
  display:flex;align-items:center;justify-content:space-between;gap:10px}
.bar a,.bar button{flex-shrink:0;display:flex;align-items:center;margin:0;padding:0;
  background:none;border:0;border-radius:6px;color:rgba(255,255,255,.8);
  font:400 12.5px/1 var(--disp);letter-spacing:-.1px;white-space:nowrap;
  text-decoration:none;cursor:pointer;transition:color .15s}
.bar a:hover,.bar button:hover{color:#fff}
.bar a[aria-current="page"]{color:#fff;font-weight:600}
.bar a:focus-visible,.bar button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.bar .nl{height:48px}
.bar a.home{height:48px;padding:0 2px}
.bar a.home img{width:24px;height:24px;border-radius:50%;display:block;transition:box-shadow .15s}
.bar a.home:hover img{box-shadow:0 0 0 2px var(--gold)}
/* the two icons, and on a phone the menu button */
.bar .ib{width:32px;height:32px;justify-content:center}
.bar .ib svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bar button.ga-theme svg{width:16px;height:16px;stroke-width:1.7}
.bar .ib[aria-expanded="true"]{color:#fff}
.bar .nmenu{display:none;position:relative}
.bar .nmenu svg{width:19px;height:19px}
/* something waiting behind the menu — a doubt, a reply */
.bar .nmenu.dot::after{content:'';position:absolute;top:9px;right:8px;width:8px;height:8px;
  border-radius:50%;background:#e0453a;box-shadow:0 0 0 2px var(--dark)}

/* A phone, or a window too narrow for the words: logo on the left, the
   three icons on the right. Said twice — once by width, so a phone gets
   it before any script has run, and once as .tight, which shared/nav.js
   sets when the words do not fit (a narrow laptop window at a big text
   size, say). */
@media(max-width:720px){
  .bar .in{justify-content:flex-start;gap:0;padding:0 6px 0 16px}
  .bar .nl{display:none}
  .bar .ib{width:42px;height:42px}
  .bar button.ga-theme{margin-left:auto}
  .bar .nmenu{display:flex}
}
.bar.tight .in{justify-content:flex-start;gap:0;padding:0 6px 0 16px}
.bar.tight .nl{display:none}
.bar.tight .ib{width:42px;height:42px}
.bar.tight button.ga-theme{margin-left:auto}
.bar.tight .nmenu{display:flex}

/* ---- the phone menu (shared/nav.js) ----
   The whole screen, dark, the places in large type and then the two
   things the icons do, spelled out. */
.nsheet{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;
  background:var(--dark);color:#f2ece0;overflow-y:auto;overscroll-behavior:contain;
  font-family:var(--disp);opacity:0;transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease}
.nsheet.on{opacity:1;transform:none}
.nsheet[hidden]{display:none}
.nsheet .top{flex-shrink:0;height:48px;display:flex;align-items:center;padding:0 6px 0 16px}
.nsheet .top a{display:flex;align-items:center;height:48px;padding:0 2px;border-radius:6px}
.nsheet .top img{width:24px;height:24px;border-radius:50%;display:block}
.nsheet .x{margin-left:auto;width:42px;height:42px;display:flex;align-items:center;
  justify-content:center;background:none;border:0;border-radius:6px;padding:0;
  color:rgba(255,255,255,.8);cursor:pointer}
.nsheet .x svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round}
.nsheet .list{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:22px 40px 0}
.nsheet .list a{display:flex;align-items:center;gap:10px;font:700 27px/1.15 var(--disp);
  letter-spacing:-.3px;color:rgba(255,255,255,.86);text-decoration:none;border-radius:6px}
.nsheet .list a:hover,.nsheet .list a[aria-current="page"]{color:#fff}
.nsheet .list .bdg{min-width:22px;height:22px;padding:0 7px;margin:0;background:#e0453a;
  color:#fff;font:700 12.5px/22px var(--disp);letter-spacing:0}
.nsheet .rule{flex-shrink:0;height:1px;margin:32px 40px 22px;background:rgba(255,255,255,.12)}
.nsheet .more{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:0 40px 40px}
.nsheet .more button{display:flex;align-items:center;gap:12px;padding:8px 0;background:none;
  border:0;border-radius:6px;color:rgba(255,255,255,.78);font:600 16px/1.3 var(--disp);
  cursor:pointer;text-align:left}
.nsheet .more button:hover{color:#fff}
.nsheet .more svg{width:18px;height:18px;display:block;flex-shrink:0;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nsheet a:focus-visible,.nsheet button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
html.nav-open,html.nav-open body{overflow:hidden}
@media (prefers-reduced-motion: reduce){.nsheet{transition:none;transform:none}}

/* ---- what one page used to keep in the bar ----
   The teacher's Edit on the Runbook, the way back from a leaderboard:
   no longer in the bar, which is the same everywhere now, but at the top
   of their own page. */
.pgacts{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.pgacts .sp{margin-left:auto}
.pgacts .btn{display:inline-flex;align-items:center;width:auto;text-decoration:none}
.backlink{display:inline-flex;align-items:center;gap:7px;padding:6px 0;
  font:600 13px/1 var(--disp);color:var(--gold-text);text-decoration:none}
.backlink::before{content:'';width:6px;height:6px;margin-top:1px;
  border-left:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg)}
.backlink:hover{text-decoration:underline;text-underline-offset:3px}

/* ---- the Profile menu (shared/profile-menu.js) ----
   One button at the right of the bar; pressed, a card drops down under
   it: who is signed in, their batch, student ID, where the login is in
   use, and Sign Out. */
.pmenu-pop{position:fixed;z-index:60;width:330px;max-width:calc(100vw - 32px);
  background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;
  box-shadow:0 18px 44px rgba(20,14,4,.28);padding:8px;font-family:var(--disp);outline:none}
.pmenu-pop[hidden]{display:none}
.pmenu-pop .pm-who{display:flex;align-items:center;gap:12px;padding:10px 10px 12px}
.pmenu-pop .av{flex:none;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;font:800 16px/1 var(--disp);letter-spacing:.5px;
  background:var(--tile,linear-gradient(155deg,#221d15,#100e0b));color:var(--gold-light,#eecd84);
  border:1px solid var(--tile-line,#352d1d)}
.pmenu-pop .pm-id{min-width:0}
.pmenu-pop .nm{font:800 16px/1.3 var(--disp);color:var(--ink)}
.pmenu-pop .em{font-size:13px;line-height:1.4;color:var(--grey);overflow-wrap:anywhere}
.pmenu-pop .pm-facts{display:grid;grid-template-columns:auto 1fr;gap:9px 14px;margin:0;
  padding:12px 10px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.pmenu-pop dt{font:800 10.5px/1.6 var(--disp);letter-spacing:1px;text-transform:uppercase;color:var(--grey)}
.pmenu-pop dd{margin:0;font-size:14px;line-height:1.45;color:var(--ink);font-weight:700;min-width:0}
.pmenu-pop dd .dim{font-weight:400}
.pmenu-pop dd .sm{display:block;font-size:12.5px;font-weight:400;color:var(--grey)}
.pmenu-pop dd .this{display:inline-block;margin-left:6px;vertical-align:1px;font:800 9.5px/1 var(--disp);
  letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);background:var(--gold-bg);
  border:1px solid var(--gold-line);border-radius:999px;padding:3px 7px}
.pmenu-pop .pm-note{margin:0;padding:10px 10px 4px;font-size:12px;line-height:1.5;color:var(--grey)}
.pmenu-pop .pm-out{display:flex;align-items:center;gap:12px;width:100%;margin-top:4px;padding:8px 10px;
  border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer;text-align:left;
  font:700 14.5px/1 var(--disp)}
.pmenu-pop .pm-out:hover,.pmenu-pop .pm-out:focus-visible{background:var(--surface-2);outline:none}
.pmenu-pop .pm-out:disabled{opacity:.6;cursor:default}
.pmenu-pop .pm-out .ic{flex:none;width:36px;height:36px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;background:var(--surface-3);border:1px solid var(--line)}
.pmenu-pop .pm-out .ic svg{width:18px;height:18px;display:block}

/* ---- device rows ---- */
.rows{list-style:none;margin:16px 0 0}
.rows li{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line-soft)}
.rows li:first-child{border-top:0}
.rows .n{font-size:14px;font-weight:700}
.rows .m{font-size:12px;color:var(--grey);margin-top:2px}
.rows .this{font-size:10px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;
  color:var(--gold-deep);background:var(--gold-bg);border:1px solid var(--gold-line);
  border-radius:999px;padding:4px 9px}
.rows .sp{margin-left:auto}
footer{position:relative;z-index:2;text-align:center;font-size:11.5px;color:var(--grey);
  padding:18px;letter-spacing:.3px}

/* ---- score history ---- */
.hero{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}
@media(max-width:620px){.hero{grid-template-columns:1fr}}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px;
  box-shadow:var(--shadow-sm)}
.tile .k{font-size:10.5px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.tile .v{font-size:38px;font-weight:800;line-height:1.05;margin-top:8px;color:var(--num);
  font-variant-numeric:tabular-nums}
.tile .s{font-size:12.5px;color:var(--grey);margin-top:4px}
.chart{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:20px 18px 12px;
  margin-bottom:16px;position:relative}
.chart h2{font-size:14px;font-weight:800;letter-spacing:.3px;margin-bottom:2px}
.chart .cap{font-size:12.5px;color:var(--grey);margin-bottom:12px}
.chart svg{display:block;width:100%;height:auto;overflow:visible}
.legend{display:flex;gap:18px;margin-bottom:10px;font-size:12.5px;color:var(--grey)}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;
  vertical-align:-1px}
.tip{position:absolute;pointer-events:none;opacity:0;transition:opacity .1s;z-index:5;
  background:#17140f;color:#fdfaf3;border:1px solid #c9a227;border-radius:9px;padding:8px 11px;
  font-size:12px;line-height:1.5;white-space:nowrap;transform:translate(-50%,-115%);
  box-shadow:0 8px 22px rgba(0,0,0,.3)}
.tip.on{opacity:1}
.tip b{font-weight:800}
table.att{width:100%;border-collapse:collapse;font-size:13.5px}
table.att th{text-align:left;font-size:10.5px;font-weight:800;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--muted);padding:0 10px 10px 0;border-bottom:1px solid var(--gold-line)}
table.att td{padding:11px 10px 11px 0;border-bottom:1px solid var(--line-soft);font-variant-numeric:tabular-nums}
table.att td.n{font-weight:800;color:var(--num)}
.scroller{overflow-x:auto}
.empty{text-align:center;color:var(--grey);font-size:14px;padding:38px 10px;line-height:1.7}

/* ---- admin console ---- */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.toolbar input[type=text]{width:auto;flex:1;min-width:200px;padding:10px 13px;font-size:14px}
.chip{padding:8px 14px;font:700 12px/1 var(--disp);border-radius:999px;cursor:pointer;
  background:var(--surface);border:1px solid var(--line-input);color:var(--ink)}
.chip:hover{border-color:var(--gold-line);background:var(--gold-bg)}
.chip.on{background:var(--dark);color:#fdfaf3;border-color:#000}
:root[data-theme="dark"] .chip.on{background:var(--gold-deep);color:#17140f;border-color:#8a6a12}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .chip.on{background:var(--gold-deep);color:#17140f;border-color:#8a6a12}
}
table.roster{width:100%;border-collapse:collapse;font-size:13px}
table.roster th{text-align:left;font-size:10px;font-weight:800;letter-spacing:1.4px;
  text-transform:uppercase;color:var(--muted);padding:0 9px 9px 0;border-bottom:1px solid var(--gold-line);
  white-space:nowrap}
table.roster td{padding:10px 9px 10px 0;border-bottom:1px solid var(--line-soft);vertical-align:top;
  font-variant-numeric:tabular-nums}
table.roster tr:hover td{background:var(--surface-2)}
table.roster .nm{font-weight:800;color:var(--num)}
table.roster .em{font-size:11.5px;color:var(--grey)}
.pill{display:inline-block;font-size:10px;font-weight:800;letter-spacing:1.1px;
  text-transform:uppercase;border-radius:999px;padding:3px 8px;white-space:nowrap}
.pill.active{background:var(--ok-bg);border:1px solid var(--ok-line);color:var(--ok-ink)}
.pill.paused{background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn-ink)}
.pill.expired{background:var(--bad-bg);border:1px solid var(--bad-line);color:var(--bad-ink)}
.appdots{display:flex;gap:4px}
.appdots i{width:20px;height:20px;border-radius:6px;font:800 9px/20px var(--disp);
  text-align:center;background:var(--surface-3);color:var(--grey)}
.appdots i.on{background:var(--dark);color:#fdfaf3}
:root[data-theme="dark"] .appdots i.on{background:var(--gold-deep);color:#17140f}
.warn{color:var(--bad-ink);font-weight:700}
.dim{color:var(--grey)}

/* ================= Tasks =================
   The same look wherever a task appears: on the student's own
   dashboard, and inside a student's sheet in the teacher console. */
.tasks{margin:0 0 22px}

/* ---------- the same list, read by the teacher ----------
   One person's tasks look the same whoever is reading them. What
   changes is that he is reading everybody's at once, so each card has
   to say whose it is. */
.whose{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;
       margin:20px 0 9px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.whose:first-child{margin-top:0}
.whose b{font:800 14.5px/1.25 var(--disp);color:var(--ink)}
.whose .bch{font-size:11.5px;font-weight:700;color:var(--grey);
            letter-spacing:.06em;text-transform:uppercase}
.whose .n{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--grey)}
.whose .n.late{color:var(--bad-ink)}
.whose a{font-size:11.5px;font-weight:700;color:var(--gold-deep);text-decoration:none}
.whose a:hover{text-decoration:underline}
.task .nm{display:block;font:700 11.5px/1 var(--disp);letter-spacing:.06em;
          text-transform:uppercase;color:var(--grey);margin:0 0 6px}

.tasks .thd{display:flex;align-items:baseline;gap:9px;margin-bottom:10px}
.tasks .thd h2{font:800 11px/1 var(--disp);letter-spacing:1.9px;text-transform:uppercase;
               color:var(--muted);margin:0}
.tasks .thd .n{font-size:11.5px;color:var(--grey);font-weight:700}

.task{background:var(--surface);border:1px solid var(--line);border-left-width:4px;
      border-radius:12px;padding:12px 14px;margin-bottom:9px;box-shadow:var(--shadow-sm)}
.task.p-high{border-left-color:#c0392b}
.task.p-normal{border-left-color:var(--gold-deep)}
.task.p-low{border-left-color:var(--line-input)}
.task.done{opacity:.55;box-shadow:none}
.task.done .ti{text-decoration:line-through}

.task .top{display:flex;align-items:flex-start;gap:10px}
.task .ti{font:700 14.5px/1.4 var(--disp);color:var(--ink);flex:1;min-width:0}
.task .de{font-size:13px;color:var(--grey);line-height:1.55;margin:5px 0 0}
/* the detail is rendered Markdown now, so it can carry a bullet or a
   bold date; keep it visually a paragraph rather than a document */
.task .de>*{margin:0}
.task .de>*+*{margin-top:6px}
.task .de ul,.task .de ol{padding-left:20px}
.task .de strong{color:var(--ink)}
.task .de a{color:var(--gold-deep)}
.task .due{font-size:11.5px;font-weight:800;letter-spacing:.3px;white-space:nowrap;
           border-radius:999px;padding:3px 10px;border:1px solid var(--line)}
.task .due.late{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad-ink)}
.task .due.soon{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}
.task .due.calm{color:var(--grey)}
.task .due.ok{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ok-ink)}

.task .tick{flex-shrink:0;width:26px;height:26px;border-radius:8px;cursor:pointer;
            border:1.5px solid var(--line-input);background:var(--surface-2);
            display:flex;align-items:center;justify-content:center;padding:0;color:transparent}
.task .tick:hover{border-color:var(--gold-deep)}
.task.done .tick{background:var(--gold-deep);border-color:var(--gold-deep);color:#17140f}
.task .tick svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3.2;
                stroke-linecap:round;stroke-linejoin:round}

.task .foot{display:flex;align-items:center;gap:10px;margin-top:9px;flex-wrap:wrap}
.task .foot .lk{background:none;border:0;padding:0;cursor:pointer;font:700 11.5px/1 var(--disp);
                letter-spacing:.4px;color:var(--gold-deep)}
.task .foot .lk:hover{text-decoration:underline}
.task .foot .rm{margin-left:auto;color:var(--grey)}
.task .foot .rm:hover{color:var(--bad-ink)}

.task .thread{margin-top:10px;border-top:1px solid var(--line-soft);padding-top:9px}
.task .thread[hidden]{display:none}
.rep{font-size:13px;line-height:1.55;padding:6px 0;border-top:1px solid var(--line-soft)}
.rep:first-child{border-top:0}
.rep .wo{font-size:10.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;
         color:var(--muted);margin-right:7px}
.rep .wo.them{color:var(--grey)}
.rep .wh{font-size:11px;color:var(--grey);margin-left:6px}
.task .rbox{display:flex;gap:8px;margin-top:8px}
.task .rbox input{flex:1;padding:8px 11px;font-size:13.5px;border-radius:9px}
.task .rbox button{padding:8px 14px;font-size:12.5px;border-radius:9px;cursor:pointer;
                   background:var(--dark);color:#fdfaf3;border:1px solid var(--gold);font-weight:700}

.tdone summary{cursor:pointer;font:700 11px/1 var(--disp);letter-spacing:1.4px;
               text-transform:uppercase;color:var(--grey);padding:6px 0}

/* the little assign form in the teacher console */
.tnew{background:var(--surface-2);border:1px dashed var(--line-input);border-radius:12px;
      padding:12px 13px;margin-top:4px}
.tnew .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tnew input,.tnew select,.tnew textarea{width:100%;padding:8px 11px;font-size:13.5px;border-radius:9px}
.tnew textarea{min-height:150px;resize:vertical;font-family:inherit}
.tnew label{display:block;font-size:10.5px;font-weight:700;letter-spacing:.7px;
            text-transform:uppercase;color:var(--grey);margin:9px 0 4px}
.tnew label:first-child{margin-top:0}

/* the roster column */
td .tcount{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.6px;
           border-radius:999px;padding:2px 8px;border:1px solid var(--line);color:var(--grey)}
td .tcount.late{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad-ink)}
td .tcount.soon{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}

/* ============================================================
   The Batch Runbook — a document, so it is set like one.
   Wider line height, a real measure, and headings that give the
   long class-records list some structure to hang on.
   ============================================================ */
/* Oct 2026: a size up, with more room between lines and paragraphs —
   the Inter option he picked (16.5 on 1.75, from 15.5 on 1.72). */
.rb{max-width:840px;margin:0 auto;font-size:16.5px;line-height:1.75;color:var(--ink)}
.rb > :first-child{margin-top:0}
.rb h2{font-size:20.5px;font-weight:800;letter-spacing:.1px;margin:40px 0 6px;
       padding-bottom:9px;border-bottom:1px solid var(--gold-line)}
.rb h3{font-size:17.5px;font-weight:800;letter-spacing:.1px;margin:30px 0 6px;
       color:var(--muted)}
.rb h4{font-size:15.5px;font-weight:800;margin:22px 0 4px}
.rb h5{font-size:13.5px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;
       color:var(--grey);margin:20px 0 4px}
.rb p{margin:14px 0}
.rb ul,.rb ol{margin:14px 0 14px 24px}
.rb li{margin:7px 0}
.rb li > ul,.rb li > ol{margin:4px 0 4px 20px}
.rb a{color:var(--gold-deep);font-weight:600;text-decoration:none;
      border-bottom:1px solid var(--gold-line);word-break:break-word}
.rb a:hover{border-bottom-color:var(--gold-deep)}
.rb strong{font-weight:800}
.rb hr{border:0;border-top:1px solid var(--line);margin:26px 0}
.rb blockquote{margin:14px 0;padding:11px 16px;border-left:3px solid var(--gold-deep);
               background:var(--gold-bg);border-radius:0 10px 10px 0;
               font-size:15.5px;color:var(--muted)}
.rb code{font:600 13.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
         background:var(--surface-3);border:1px solid var(--line);border-radius:6px;padding:1px 6px}
.rb .tw{overflow-x:auto;margin:14px 0;border:1px solid var(--line);border-radius:12px;
        background:var(--surface)}
.rb table{border-collapse:collapse;width:100%;font-size:14.5px}
.rb th,.rb td{text-align:left;padding:10px 14px;border-top:1px solid var(--line-soft);
              vertical-align:top}
/* the first column is usually a date or a number and should stay on one
   line; everything after it may wrap rather than push the table sideways */
.rb th,.rb td:first-child{white-space:nowrap}
.rb thead th{border-top:0;background:var(--surface-2);font-size:10.5px;font-weight:800;
             letter-spacing:1.3px;text-transform:uppercase;color:var(--muted)}
.rb tbody tr:hover{background:var(--gold-bg)}
@media(max-width:560px){.rb{font-size:16px}.rb th,.rb td{padding:9px 11px}}

.rb section{scroll-margin-top:16px}
.rb section[hidden]{display:none}

/* contents, and the find box */
.rbtop{display:flex;gap:10px;flex-wrap:wrap;align-items:center;
       max-width:840px;margin:0 auto 6px}
.rbtop input[type=text]{flex:1;min-width:190px;width:auto;padding:10px 13px;font-size:14px}
.rbtoc{display:flex;gap:7px;flex-wrap:wrap;max-width:840px;margin:0 auto 20px}
.rbtoc a{padding:6px 13px;border-radius:999px;font:700 11.5px/1 var(--disp);letter-spacing:.5px;
         text-decoration:none;color:var(--grey);background:var(--surface);
         border:1px solid var(--line)}
.rbtoc a:hover{border-color:var(--gold-line);background:var(--gold-bg);color:var(--muted)}
.rbstamp{text-align:center;font-size:12px;color:var(--grey);margin:-10px 0 16px;min-height:1em}

/* the teacher's editor */
.rbed{max-width:1180px;margin:0 auto}
.rbed .cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
@media(max-width:900px){.rbed .cols{grid-template-columns:1fr}}
.rbed textarea{width:100%;min-height:62vh;padding:15px 16px;border-radius:12px;resize:vertical;
               font:400 13.5px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
               background:var(--surface-2);color:var(--ink);border:1px solid var(--line-input)}
.rbed .pv{background:var(--surface);border:1px solid var(--line);border-radius:14px;
          padding:18px 20px;max-height:62vh;overflow:auto}
.rbed .pv .rb{font-size:15.5px}
.rbed .lbl{font-size:10.5px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;
           color:var(--grey);margin:0 0 7px}
.rbed .acts{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
.rbed .acts .sp{margin-left:auto}
.rbed select{width:auto;padding:9px 12px;font-size:13.5px;border-radius:9px}
.rbed .cheat{font-size:12px;color:var(--grey);line-height:1.7;margin-top:12px}
.rbed .cheat code{font:600 12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
                  background:var(--surface-3);border:1px solid var(--line);
                  border-radius:5px;padding:1px 5px}

/* the line on the dashboard */
.rblink{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;
        background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--gold-deep);
        border-radius:12px;padding:13px 16px;margin:0 0 22px;box-shadow:var(--shadow-sm)}
.rblink:hover{border-color:var(--gold-line);border-left-color:var(--gold-deep);
              box-shadow:var(--shadow-h)}
.rblink .t{font:800 14.5px/1.3 var(--disp)}
.rblink .m{font-size:12px;color:var(--grey);margin-top:2px}
.rblink .go{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:1.5px;
            text-transform:uppercase;color:var(--gold-deep);white-space:nowrap}
/* the Student Guide's line (Nov 2026): the same line, with a book */
.rblink.gline .gi{flex:none;width:34px;height:34px;border-radius:10px;background:var(--gold-bg);
  border:1px solid var(--gold-line);display:flex;align-items:center;justify-content:center;color:var(--gold-ink)}
.rblink.gline .gi svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}

/* a reply that arrived while the thread was folded away */
.task .foot .lk.new::after{content:'';display:inline-block;width:7px;height:7px;
  border-radius:50%;background:var(--bad-ink);margin-left:7px;vertical-align:middle}

/* ============================================================
   Two more dark palettes.

   These sit AFTER the light/dark blocks on purpose: same
   specificity, later in the file, so whichever one is stamped on
   <html> wins. Nothing above this line had to change.

   The mode and the tint are two separate attributes:
     data-theme="dark"      what every existing rule, and every
                            trainer, already understands
     data-palette="slate"   which dark
   so a room that only knows about light and dark still goes dark
   correctly and simply picks up the new colours on top.
   ============================================================ */

/* --- Slate Blue: cool blue-grey, the tone editors settle on --- */
:root[data-palette="slate"]{
  --cream:#121720; --surface:#171d27; --surface-2:#1b222d; --surface-3:#141a23;
  --line:#26303d; --line-soft:#1f2833; --line-input:#303b4a;
  --ink:#d7dde6; --grey:#8d97a6; --muted:#d9b871; --num:#e3e8ef;
  --dark:#0e131a; --bar-btn:#1c2431; --bar-btn-line:#2c3746; --bar-btn-hover:#26303d;
  --bar-sub:#9aa5b4;
  --gold-deep:#dfb96e; --gold-line:#3f4152; --gold-bg:#1e2533;
  --tile:linear-gradient(155deg,#2b3543,#1a222d); --tile-line:#3a4657;
  --glow:rgba(226,190,90,.12);
  --shadow:0 6px 24px rgba(0,0,0,.5); --shadow-sm:0 5px 18px rgba(0,0,0,.4);
  --shadow-h:0 12px 28px rgba(0,0,0,.55);
  --ok-bg:#16261f; --ok-line:#2e5140; --ok-ink:#8fd3ad;
  --warn-bg:#26241a; --warn-line:#484026; --warn-ink:#e0bb6e;
  --bad-bg:#2a191d; --bad-line:#573039; --bad-ink:#efa3ac;
}

/* --- Soft Dark: dim rather than dark, lowest contrast --- */
:root[data-palette="soft"]{
  --cream:#2c3034; --surface:#34393e; --surface-2:#383e44; --surface-3:#30353a;
  --line:#454c53; --line-soft:#3d4349; --line-input:#4f575f;
  --ink:#dcdfe3; --grey:#a6aeb7; --muted:#e3c47f; --num:#e7eaee;
  --dark:#23272b; --bar-btn:#343a40; --bar-btn-line:#48505a; --bar-btn-hover:#3d444b;
  --bar-sub:#aeb6bf;
  --gold-deep:#e6c47c; --gold-line:#585f52; --gold-bg:#3a3c38;
  --tile:linear-gradient(155deg,#4a5158,#383e44); --tile-line:#5a636c;
  --glow:rgba(230,196,124,.14);
  --shadow:0 6px 24px rgba(0,0,0,.3); --shadow-sm:0 5px 18px rgba(0,0,0,.25);
  --shadow-h:0 12px 28px rgba(0,0,0,.36);
  --ok-bg:#2c3a30; --ok-line:#456150; --ok-ink:#a6d9b4;
  --warn-bg:#3a3830; --warn-line:#5c5540; --warn-ink:#e6c47c;
  --bad-bg:#3d2e2e; --bad-line:#6b4747; --bad-ink:#f2b0b0;
}

/* ---------- text size ----------
   Everything in this stylesheet is sized in pixels, and converting
   430 lines of it to relative units to support four sizes would be
   a large change to a stylesheet that is currently correct. Scaling
   the page instead gets the same result — type, spacing and touch
   targets all grow together, which is what someone asking for
   bigger text actually wants.

   Never during a timed test: the size a mock was drawn at is the
   size it stays.
   The guard is in the script rather than here: an exam page is never
   stamped with a size at all, so there is no rule to fight. */
:root[data-text="sm"]{ zoom:0.92 }
:root[data-text="lg"]{ zoom:1.10 }
:root[data-text="xl"]{ zoom:1.22 }

/* ---------- the Display panel ---------- */
.ga-sheet{position:fixed;inset:0;z-index:10000;display:none;
          background:rgba(10,8,4,.55);backdrop-filter:blur(2px);
          align-items:center;justify-content:center;padding:18px}
.ga-sheet.on{display:flex}
.ga-panel{background:var(--surface);color:var(--ink);border:1px solid var(--line);
          border-radius:18px;box-shadow:var(--shadow-h);width:100%;max-width:430px;
          padding:22px;max-height:88vh;overflow:auto;
          font-family:var(--disp)}
.ga-panel h2{font-size:17px;font-weight:800;letter-spacing:-.1px;margin-bottom:6px}
.ga-panel .say{font-size:13px;line-height:1.6;color:var(--grey);margin-bottom:18px}
.ga-panel .lb{display:block;font-size:10.5px;font-weight:800;letter-spacing:1.5px;
              text-transform:uppercase;color:var(--grey);margin:0 0 8px}
.ga-panel .set{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.ga-panel .set button{font:700 12.5px/1 var(--disp);padding:9px 14px;border-radius:999px;
                      cursor:pointer;background:var(--surface-2);color:var(--ink);
                      border:1px solid var(--line-input);display:inline-flex;
                      align-items:center;gap:8px}
.ga-panel .set button:hover{border-color:var(--gold-line);background:var(--gold-bg)}
.ga-panel .set button[aria-pressed="true"]{background:var(--gold-deep);color:#17140f;
                                           border-color:var(--gold-deep)}
.ga-panel .set button:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.ga-panel .set button i{width:12px;height:12px;border-radius:4px;display:block;flex:none;
                        border:1px solid rgba(128,128,128,.45)}
.ga-panel .done{width:100%;padding:13px 18px;font:800 13px/1 var(--disp);letter-spacing:.7px;
                border-radius:11px;cursor:pointer;background:var(--dark);color:#fdfaf3;
                border:1px solid var(--gold)}
:root[data-theme="dark"] .ga-panel .done{background:var(--gold-deep);color:#17140f;
                                         border-color:var(--gold-deep)}
.ga-panel .tip{font-size:12px;line-height:1.6;color:var(--grey);margin-top:14px;text-align:center}

/* ---------- the two boards ---------- */
/* Two cards normally, three once there are archived runbooks to
   offer. Stated as a modifier rather than a media query because it
   depends on what exists, not on how wide the window is. */
.rbpick.three{grid-template-columns:repeat(3,1fr)}
@media(max-width:880px){.rbpick.three{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.rbpick.three{grid-template-columns:1fr}}
.rbpick{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:840px;
        margin:0 auto 22px}
@media(max-width:640px){.rbpick{grid-template-columns:1fr}}
/* one card on the row (the Individual Runbook retired, Nov 2026): it takes the row */
.rbpick.one{grid-template-columns:1fr}
.rbpick .rbcard{display:flex;align-items:flex-start;gap:13px;text-align:left;cursor:pointer;
                background:var(--surface);border:1px solid var(--line);border-radius:16px;
                padding:15px 16px;box-shadow:var(--shadow-sm);color:var(--ink);
                font-family:var(--disp)}
.rbpick .rbcard:hover{border-color:var(--gold-line);box-shadow:var(--shadow-h)}
.rbpick .rbcard[aria-pressed="true"]{border-color:var(--gold-deep);background:var(--gold-bg)}
.rbpick .rbcard:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
/* A board this login has not been given (the Individual Runbook, for a
   student it is not ticked for): still shown, greyed, does nothing. */
.rbpick .rbcard.off{cursor:not-allowed;opacity:.62;background:var(--surface-3);box-shadow:none;
  border-color:var(--line)}
.rbpick .rbcard.off:hover{border-color:var(--line);box-shadow:none}
.rbpick .rbcard.off .ic{background:linear-gradient(155deg,#3a352c,#2b2823);
  color:#a49a86;border-color:#4a4335}
.rbpick .ic{width:38px;height:38px;border-radius:11px;flex:none;display:flex;
            align-items:center;justify-content:center;
            background:var(--tile,linear-gradient(155deg,#221d15,#100e0b));
            color:var(--gold-light,#eecd84);border:1px solid var(--tile-line,#352d1d)}
.rbpick .ic svg{width:19px;height:19px;display:block}
.rbpick .tx{display:block;min-width:0}
.rbpick .t{display:block;font-size:15px;font-weight:800;line-height:1.3}
.rbpick .m{display:block;font-size:12.5px;color:var(--grey);line-height:1.5;margin-top:3px}

/* the count of things you have not read */
.bdg{display:inline-block;min-width:19px;height:19px;padding:0 6px;margin-left:8px;
     border-radius:999px;background:var(--bad-ink);color:var(--cream);
     font:800 11px/19px var(--disp);text-align:center;font-style:normal;vertical-align:middle}
.bar .bdg{min-width:16px;height:16px;padding:0 5px;margin-left:6px;background:#e0453a;
  color:#fff;font:700 10px/16px var(--disp);letter-spacing:0}

.mfilt{display:flex;gap:8px;flex-wrap:wrap}
#mine{max-width:840px;margin:0 auto}
#mine .rbtop{margin-bottom:14px}
#mine .tasks{margin:0}
.tasks .tall{display:inline-block;margin-top:4px;font:700 11.5px/1 var(--disp);
             letter-spacing:.4px;color:var(--gold-deep);text-decoration:none}
.tasks .tall:hover{text-decoration:underline}

/* the Tasks cell is a way into that student's Individual Runbook */
td .tlink{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:inherit}
td .tlink:hover .tcount,td .tlink:hover .tnone{border-color:var(--gold-deep);color:var(--gold-deep)}
td .tnone{display:inline-block;font:800 10.5px/1 var(--disp);letter-spacing:.6px;
          text-transform:uppercase;border-radius:999px;padding:3px 9px;
          border:1px dashed var(--line);color:var(--grey)}
td .tlink .bdg{margin-left:0}

/* batch filters, wrapped onto a row of their own */
.toolbar .bsep{flex-basis:100%;height:0}
.toolbar .bchips{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.toolbar .chip.b{display:inline-flex;align-items:center;gap:7px}
.toolbar .chip.b i{font-style:normal;font-size:10.5px;font-weight:800;opacity:.7;
                   background:var(--surface-3);border-radius:999px;padding:1px 6px}
.toolbar .chip.b.on i{background:rgba(255,255,255,.18);opacity:.95}

/* Payment filters. Same shape as the batch chips — they sit on the same
   row and behave the same way — with one exception: Overdue is money
   already late, so it carries the warning colour even before it is
   pressed. Pressed, it goes back to looking like every other chip,
   because then the list underneath is the message. */
.toolbar .chip.b.pay.late:not(.on){border-color:var(--bad-line);color:var(--bad-ink)}
.toolbar .chip.b.pay.late:not(.on) i{background:var(--bad-bg)}

/* A tile that goes somewhere. Reads as a tile until the pointer is on
   it, so a row of tiles does not turn into a row of buttons. */
a.tile{display:block;text-decoration:none;color:inherit;transition:border-color .15s,
       box-shadow .15s,transform .15s}
a.tile:hover{border-color:var(--gold-line);box-shadow:var(--shadow);transform:translateY(-2px)}
a.tile .s{color:var(--gold-deep);font-weight:700}
:root[data-theme="dark"] a.tile .s{color:var(--gold)}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) a.tile .s{color:var(--gold)}
}

/* The student's own number, on their Profile. Big, because the whole
   point of it is to be read out or quoted. */
.idcard{text-align:center;padding:18px 0 22px;border-bottom:1px solid var(--line-soft)}
.idcard .k{font-size:10.5px;font-weight:800;letter-spacing:2px;text-transform:uppercase;
           color:var(--muted)}
.idcard .v{font-size:46px;font-weight:800;line-height:1.05;margin-top:8px;
           letter-spacing:4px;font-variant-numeric:tabular-nums;color:var(--gold-deep)}
:root[data-theme="dark"] .idcard .v{color:var(--gold)}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .idcard .v{color:var(--gold)}
}

/* The same three facts, one quiet line, at the top of a student's own
   Individual Runbook — so the number is in front of them where they are
   already reading what they owe their teacher. */
.whoami{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:baseline;
        font-size:12.5px;color:var(--grey);margin:0 0 14px}
.whoami b{font-weight:800;color:var(--gold-deep);font-variant-numeric:tabular-nums;
          letter-spacing:.6px}
:root[data-theme="dark"] .whoami b{color:var(--gold)}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .whoami b{color:var(--gold)}
}

/* the student's ID — first column, and read as a number, so it lines up
   digit under digit down the page */
td.sno{font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:.6px;
       color:var(--gold-deep);white-space:nowrap}
:root[data-theme="dark"] td.sno{color:var(--gold)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) td.sno{color:var(--gold)}}

/* the roster column */
td .pay{display:inline-block;line-height:1.25}
td .pay .pamt{font-weight:800;font-variant-numeric:tabular-nums}
td .pay.late .pamt{color:var(--bad-ink)}
td .pay.late .em{color:var(--bad-ink);font-weight:700}
td .pay.soon .pamt{color:var(--warn-ink)}
td .pay.soon .em{color:var(--warn-ink);font-weight:700}

/* what they owe, in their panel */
#sheet h3 .pnow{float:right;font-size:11px;font-weight:700;letter-spacing:.3px;
                text-transform:none;color:var(--grey)}



/* ---------- Archived Runbooks from Previous Batches ----------
   A plain list of the batches that have finished. One row each, with
   the batch and when it was last touched; tapping one opens it in the
   same reader the current runbook uses, so nothing about reading it
   is different. */
.arclist{max-width:840px;margin:0 auto;display:grid;gap:10px}
.arcrow{display:flex;align-items:center;gap:14px;width:100%;text-align:left;
        cursor:pointer;background:var(--card);border:1px solid var(--line);
        border-radius:14px;padding:15px 17px;font:inherit;color:inherit;
        transition:border-color .15s,box-shadow .15s}
.arcrow:hover{border-color:var(--gold-line);box-shadow:var(--shadow-h)}
.arcrow:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.arcrow .bn{font-size:15px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
.arcrow .ti{flex:1 1 auto;min-width:0;font-size:13.5px;color:var(--grey);
            overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arcrow .go{flex:none;font-size:12px;font-weight:800;color:var(--gold-deep);
            letter-spacing:1px;text-transform:uppercase}
@media(max-width:520px){
  .arcrow{flex-wrap:wrap;gap:6px 12px}
  .arcrow .ti{flex-basis:100%;white-space:normal}
  .arcrow .go{margin-left:auto}
}

/* Coming back out of an archived runbook. In flow rather than
   floating, so it never lands on the reader's own contents list. */
.arcback{display:inline-flex;align-items:center;gap:7px;cursor:pointer;
         background:transparent;border:1px solid var(--line);border-radius:999px;
         padding:8px 15px;margin:0 0 14px;font:700 12.5px/1 var(--disp);
         color:var(--ink);letter-spacing:.3px}
.arcback:hover{border-color:var(--gold-line);background:var(--gold-bg)}

/* The teacher's archive switch, under the board picker.
   It is a <label>, and the global label rule sets everything in this
   portal in small uppercase — right for a field name above a box,
   wrong for a sentence — so those three properties are put back. */
.arcset{display:flex;align-items:flex-start;gap:10px;margin:12px 0 18px;
        max-width:720px;font:400 13px/1.55 var(--body,inherit);
        text-transform:none;letter-spacing:normal;font-weight:400;
        color:var(--grey);cursor:pointer}
.arcset b{font-weight:800;color:var(--ink)}
.arcset input{flex:none;width:17px;height:17px;margin-top:1px;
              accent-color:var(--gold-deep);cursor:pointer}
.arcnew{display:flex;gap:8px;align-items:center;margin:12px 0 0;flex-wrap:wrap}
.arcnew input[type=text]{max-width:220px;text-transform:none;letter-spacing:normal}


/* The rendered view of the teacher's private file, under the box it is
   typed in. Only shown once there is something in the text that will
   actually look different — an empty preview under every student is
   clutter. */
#sheet .fprev{margin:9px 0 0;padding:12px 13px;border:1px dashed var(--line);
              border-radius:11px;background:var(--surface-2);
              font-size:13.5px;line-height:1.6;color:var(--ink)}
#sheet .fprev[hidden]{display:none}
#sheet .fprev>*{margin:0}
#sheet .fprev>*+*{margin-top:8px}
#sheet .fprev h2,#sheet .fprev h3,#sheet .fprev h4{font-size:14px;font-weight:800}
#sheet .fprev ul,#sheet .fprev ol{padding-left:20px}
#sheet .fprev a{color:var(--gold-deep)}


/* ================================================================
   A STUDENT ASKING FOR A PLAN OF THEIR OWN
   ----------------------------------------
   Everything in this block sits inside the Individual Runbook, on
   both sides of it: the student sees one button and, once they have
   pressed it, a form and then a line saying it is with him. He sees
   the same rows as cards at the top of the section, above the tasks,
   because a request that has not been answered outranks a task that
   has.

   Prefixed rq- throughout. This section is drawn into a page that
   already has .task, .whose, .chip and .card of its own, and a short
   generic name here is a guess about what the rest of the page is
   not using.
   ================================================================ */

/* ---------- the student's way in ---------- */
.rqask{max-width:840px;margin:0 auto 18px}
.rqask .btn{width:auto}
.rqcall{display:flex;align-items:center;gap:16px;flex-wrap:wrap;
        background:var(--gold-bg);border:1px solid var(--gold-line);
        border-radius:14px;padding:16px 18px}
.rqcall .t{font:800 14.5px/1.3 var(--disp);color:var(--ink)}
.rqcall .m{font-size:13px;line-height:1.6;color:var(--grey);margin:4px 0 0;
           max-width:52ch}
.rqcall .sp{flex:1 1 auto}

/* Once it is sent. Deliberately quiet — it is a receipt, not news. */
.rqwait{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
        background:var(--surface);border:1px solid var(--line);
        border-radius:14px;padding:14px 17px;max-width:840px;margin:0 auto 18px}
.rqwait .dot{flex:none;width:9px;height:9px;border-radius:50%;
             background:var(--gold-deep)}
.rqwait .t{font:800 13.5px/1.3 var(--disp);color:var(--ink)}
.rqwait .m{font-size:12.5px;color:var(--grey)}
.rqwait .m b{color:var(--ink)}

/* ---------- the form ---------- */
.rqf{max-width:840px;margin:0 auto 18px;background:var(--surface);
     border:1px solid var(--line);border-radius:16px;padding:20px 20px 18px;
     box-shadow:var(--shadow-sm)}
.rqf h3{margin:0 0 4px;font:800 17px/1.25 var(--disp);color:var(--ink)}
.rqf .lead{margin:0 0 18px;font-size:13.5px;line-height:1.65;color:var(--grey);
           max-width:60ch}
.rqbox{margin:0 0 16px}
.rqbox label{margin:0 0 6px}
.rqbox .rqhelp{margin:0 0 7px;font-size:12px;line-height:1.5;color:var(--grey);
               text-align:left;text-transform:none;letter-spacing:normal;font-weight:400}
.rqbox input[type=number],.rqbox input[type=date],
.rqset input[type=date]{width:100%;padding:12px 14px;margin:0 0 4px;
  font:400 15px/1.4 var(--body,inherit);color:var(--ink);background:var(--surface-2);
  border:1px solid var(--line-input);border-radius:10px;
  text-transform:none;letter-spacing:normal}
.rqbox input[type=number]:focus,.rqbox input[type=date]:focus,
.rqset input[type=date]:focus{border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,162,39,.18);outline:none}
.rqbox textarea{min-height:82px;resize:vertical}
.rqbox input[type=number]{max-width:150px}
.rqbox input[type=date]{max-width:220px}
.rqbox.short input{max-width:340px}
.rqbox.miss textarea,.rqbox.miss input{border-color:var(--bad-line);
                                       background:var(--bad-bg)}
.rqacts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
        margin:4px 0 0;padding:14px 0 0;border-top:1px solid var(--line-soft)}
.rqacts .sp{flex:1 1 auto}
.rqacts .btn{width:auto}
.rqnote{font-size:12.5px;color:var(--grey);line-height:1.5;max-width:44ch}

/* ---------- his side: one request, as a card ---------- */
.rqlist{max-width:840px;margin:0 auto 22px;display:grid;gap:12px}
.rqhead{max-width:840px;margin:0 auto 10px;display:flex;align-items:baseline;
        gap:10px;flex-wrap:wrap}
.rqhead .t{font:800 13px/1 var(--disp);letter-spacing:1.4px;
           text-transform:uppercase;color:var(--muted)}
.rqhead .n{font-size:12.5px;color:var(--grey)}

.rqcard{background:var(--surface);border:1px solid var(--line);
        border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden}
.rqcard.new{border-color:var(--gold-line);box-shadow:0 0 0 3px var(--glow)}
.rqcard>summary{list-style:none;cursor:pointer;padding:15px 17px;
                display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.rqcard>summary::-webkit-details-marker{display:none}
.rqcard>summary:hover{background:var(--gold-bg)}
.rqcard>summary b{font:800 15px/1.3 var(--disp);color:var(--ink)}
.rqcard>summary .bch{font:700 11px/1 var(--disp);letter-spacing:.8px;
                     padding:4px 8px;border-radius:999px;background:var(--gold-bg);
                     border:1px solid var(--gold-line);color:var(--muted)}
.rqcard>summary .sp{flex:1 1 auto}
.rqcard>summary .when{font-size:12px;color:var(--grey);white-space:nowrap}
.rqcard>summary .tag{font:800 10.5px/1 var(--disp);letter-spacing:1px;
                     text-transform:uppercase;padding:4px 8px;border-radius:999px;
                     background:var(--gold-deep);color:#17140f}
.rqcard .why{flex-basis:100%;margin:2px 0 0;font-size:13px;line-height:1.55;
             color:var(--grey);overflow:hidden;text-overflow:ellipsis;
             display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rqcard[open] .why{display:none}
.rqbody{padding:2px 17px 17px;border-top:1px solid var(--line-soft)}

/* what they wrote */
.rqans{margin:0 0 14px}
.rqans dt{font:700 11px/1 var(--disp);letter-spacing:1.4px;text-transform:uppercase;
          color:var(--muted);margin:14px 0 5px}
.rqans dd{margin:0;font-size:13.5px;line-height:1.65;color:var(--ink);
          white-space:pre-wrap}

/* and what the platform already knew */
.rqsnap{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0;padding:13px 0 0;
        border-top:1px dashed var(--line)}
.rqsnap .p{font:700 12px/1 var(--disp);padding:6px 10px;border-radius:999px;
           background:var(--surface-2);border:1px solid var(--line);
           color:var(--grey)}
.rqsnap .p b{color:var(--ink);font-weight:800}

/* setting tasks from it, without leaving the page */
.rqset{margin:16px 0 0;padding:15px 0 0;border-top:1px solid var(--line-soft)}
.rqset .row{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}
.rqset .row input[type=text]{flex:1 1 260px;min-width:0}
.rqset .row input[type=date]{flex:0 0 165px}
.rqset textarea{min-height:190px;max-height:70vh;resize:vertical}   /* several paragraphs in view */
.rqset .go{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 0}
.rqset .go .sp{flex:1 1 auto}
.rqset .btn{width:auto}
.rqmade{margin:12px 0 0;display:grid;gap:7px}
.rqmade .one{display:flex;align-items:baseline;gap:9px;font-size:13px;
             color:var(--ink);background:var(--ok-bg);border:1px solid var(--ok-line);
             border-radius:10px;padding:9px 12px}
.rqmade .one .tick{color:var(--ok-ink);font-weight:800}
.rqmade .one .due{margin-left:auto;font-size:12px;color:var(--grey);white-space:nowrap}
/* ---------- what came before: earlier requests, and what came of them ---------- */
.rqcard>summary .rpt{font:800 10.5px/1 var(--disp);letter-spacing:.8px;text-transform:uppercase;
                     padding:4px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.rqans dd.was{margin:4px 0 0;padding:6px 10px;border-left:3px solid var(--line);
              background:var(--surface-2);border-radius:0 8px 8px 0;font-size:12.5px;color:var(--grey)}
.rqans dd.was span{display:block;font:700 10.5px/1.4 var(--disp);letter-spacing:1px;
                   text-transform:uppercase;color:var(--muted)}
.rqhist{margin:16px 0 0;padding:15px 0 0;border-top:1px solid var(--line-soft)}
.rqhist-h{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 10px;
          font:800 12px/1.3 var(--disp);letter-spacing:1.3px;text-transform:uppercase;color:var(--ink)}
.rqhist-h .n{font-family:inherit;font-weight:600;font-size:12.5px;line-height:1.4;
             letter-spacing:0;text-transform:none;color:var(--grey)}
.rqold{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);margin:0 0 8px}
.rqold>summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:10px;
               flex-wrap:wrap;padding:11px 14px}
.rqold>summary::-webkit-details-marker{display:none}
.rqold>summary::before{content:'\25B8';color:var(--muted);font-size:11px}
.rqold[open]>summary::before{content:'\25BE'}
.rqold>summary b{font:800 13.5px/1.3 var(--disp);color:var(--ink)}
.rqold>summary .n{font-size:12.5px;color:var(--grey)}
.rqold-b{padding:0 14px 12px}
.rqold-b .rqans{margin:0 0 6px}
.rqold-t{margin:12px 0 7px;font:700 11px/1 var(--disp);letter-spacing:1.4px;
         text-transform:uppercase;color:var(--muted)}
.rqtl{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.rqt{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;padding:8px 11px;
     border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:13px}
.rqt .st{flex:0 0 auto;font:800 11px/1.4 var(--disp);letter-spacing:.4px;color:var(--muted)}
.rqt.ok .st{color:var(--ok-ink)}
.rqt.late .st{color:var(--bad-ink)}
.rqt.soon .st{color:var(--gold-deep)}
.rqt .tt{flex:1 1 220px;color:var(--ink);font-weight:600}
.rqt .mt{font-size:12px;color:var(--grey);white-space:nowrap}
.rqnone{margin:0;font-size:13px;line-height:1.55;color:var(--grey)}
.rqmore{margin:6px 0 0}
.rqlink{cursor:pointer;background:none;border:0;padding:0;font-family:inherit;font-weight:700;
        font-size:13px;line-height:1.4;color:var(--gold-deep);text-decoration:underline;
        text-underline-offset:3px}
.rqsolo{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:2px 17px 15px}
.rqsolo .rqhist{border-top:0;margin-top:0}
.rqmine{max-width:840px;margin:0 auto 18px}
.rqsay{margin:10px 0 0;font-size:13px;line-height:1.55}
.rqsay.bad{color:var(--bad-ink)}
.rqsay.ok{color:var(--ok-ink)}

/* ---------- finding a student without going to the Roster ---------- */
.rqfind{max-width:840px;margin:0 auto 16px;position:relative}
.rqfind input[type=text]{margin:0}
.rqhits{margin:8px 0 0;display:grid;gap:6px}
.rqhit{display:flex;align-items:baseline;gap:10px;width:100%;text-align:left;
       cursor:pointer;background:var(--surface);border:1px solid var(--line);
       border-radius:11px;padding:10px 13px;font:inherit;color:inherit}
.rqhit:hover{border-color:var(--gold-line);background:var(--gold-bg)}
.rqhit:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.rqhit b{font-weight:800;font-size:13.5px}
.rqhit .bch{font-size:11.5px;color:var(--muted)}
.rqhit .sp{flex:1 1 auto}
.rqhit .n{font-size:12px;color:var(--grey);white-space:nowrap}
.rqwho{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 0;
       background:var(--gold-bg);border:1px solid var(--gold-line);
       border-radius:11px;padding:9px 13px;font-size:13px;color:var(--ink)}
.rqwho b{font-weight:800}
.rqwho .x{margin-left:auto;cursor:pointer;background:transparent;border:0;
          font:800 12px/1 var(--disp);letter-spacing:.6px;color:var(--gold-deep);
          text-transform:uppercase;padding:4px}
.rqwho .x:hover{text-decoration:underline}
/* the student picked has no Individual Runbook: nothing set here reaches them */
.rqnoir{margin:8px 0 0;padding:9px 13px;border-radius:11px;font-size:13px;line-height:1.55;
        background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn-ink)}
.rqhit .n.off{color:var(--warn-ink)}

@media(max-width:560px){
  .rqcall{gap:10px}
  .rqcall .btn{width:100%}
  .rqf{padding:16px 15px 14px;border-radius:14px}
  .rqcard>summary{padding:13px 14px}
  .rqbody{padding:2px 14px 14px}
  .rqset .row input[type=date]{flex:1 1 100%}
}

/* ---------- the line on the Training Rooms home ----------
   One row above the batch runbook. For a student it says their
   request is with him; for him it says how many are waiting. It is
   never drawn when there is nothing to say. */
.reqline{margin:0 0 14px}          /* the same width as the runbook row under it */
.reqline a,.reqline .flat{display:flex;align-items:center;gap:13px;
     text-decoration:none;color:inherit;background:var(--gold-bg);
     border:1px solid var(--gold-line);border-radius:13px;padding:13px 16px;
     transition:border-color .15s,box-shadow .15s}
.reqline a:hover{border-color:var(--gold);box-shadow:var(--shadow-h)}
.reqline .t{font:800 14px/1.3 var(--disp);color:var(--ink)}
.reqline .m{font-size:12.5px;line-height:1.5;color:var(--grey);margin:3px 0 0}
.reqline .go{margin-left:auto;font:800 11.5px/1 var(--disp);letter-spacing:1px;
             text-transform:uppercase;color:var(--gold-deep);white-space:nowrap}

/* ---------- the boards one login may read ----------
   Only drawn when there is more than one, which is only ever true for
   a student who has been given a second board deliberately. Uses the
   page's own .chip, because it is the same gesture as the filters
   under the Individual Runbook and should not look like a new one. */
.bpick{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;
       margin:0 auto 16px;max-width:840px}
.bpick[hidden]{display:none}

/* ================================================================
   DOUBTS — a question a student got stuck on, and the answers
   ----------------------------------------------------------
   One card per doubt, shut until it is opened. Anybody may answer,
   so the thread has to say plainly which reply Aiyaz stood behind
   and which are students helping each other — the gold rule down
   the left is that, and nothing else on the page uses it.
   ================================================================ */
.dcard{max-width:840px;margin:0 auto 12px;background:var(--card,var(--surface));
       border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);
       overflow:hidden}
.dcard.done{opacity:.92}
.dhead{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;width:100%;
       text-align:left;cursor:pointer;background:transparent;border:0;
       font:inherit;color:inherit;padding:15px 17px}
.dhead:hover{background:var(--gold-bg)}
.dhead:focus-visible{outline:2px solid var(--gold-deep);outline-offset:-2px}
.dhead .rm{font:800 10.5px/1 var(--disp);letter-spacing:1px;text-transform:uppercase;
           padding:4px 8px;border-radius:999px;background:var(--surface-2);
           border:1px solid var(--line);color:var(--grey)}
.dhead .lb{font:800 14.5px/1.3 var(--disp);color:var(--ink)}
.dhead .sp{flex:1 1 auto}
.dhead .tag{font:800 10.5px/1 var(--disp);letter-spacing:1px;text-transform:uppercase;
            padding:4px 8px;border-radius:999px;background:var(--ok-bg);
            border:1px solid var(--ok-line);color:var(--ok-ink)}
.dhead .tag.open{background:var(--gold-deep);border-color:var(--gold-deep);color:#17140f}
.dhead .n{font-size:12px;color:var(--grey);white-space:nowrap}
.dhead .ask{flex-basis:100%;font-size:12px;color:var(--grey);margin:2px 0 0}
.dhead .q{flex-basis:100%;font-size:13.5px;line-height:1.55;color:var(--ink);margin:4px 0 0}
.dbody{padding:2px 17px 17px;border-top:1px solid var(--line-soft)}

/* the question itself, as it was when they asked */
.dq{margin:12px 0 4px;padding:13px 14px;border:1px dashed var(--line);
    border-radius:12px;background:var(--surface-2)}
.dq img{max-width:100%;height:auto;border-radius:8px;display:block}
.dq p{margin:0;font-size:13.5px;line-height:1.6;color:var(--ink);white-space:pre-wrap}
.dq img + p{margin-top:10px}
.dq ul{margin:9px 0 0;padding-left:20px;font-size:13px;color:var(--grey)}
.dq p + p{margin-top:9px}
.dq .pass{font-size:13px;color:var(--grey);line-height:1.65}
.dq .ins{font-size:12.5px;color:var(--grey);font-style:italic}
.dq ul.qc{list-style:none;padding-left:0;color:var(--ink);font-size:13.5px}
.dq ul.qc li{padding:3px 0}
.dq .noimg{font-size:13px;color:var(--grey);font-style:italic}

/* The trainer's own answer and working, under the question on the Doubts
   page. Styled as the trainer's voice — gold rule, not a reply — so it
   is never mistaken for something a student wrote. */
.dsol{margin:12px 0 4px;padding:13px 15px;border-left:3px solid var(--gold);
      border-radius:0 12px 12px 0;background:var(--gold-bg)}
.dsol-lbl{display:block;font:800 10.5px/1.3 var(--disp);letter-spacing:1.3px;
          text-transform:uppercase;color:var(--gold-deep);margin:0 0 6px}
.dsol-key{margin:0 0 12px}
.dsol-key b{font-size:15px;color:var(--ink)}
.dsol-note{margin:0;font-size:13px;color:var(--grey);font-style:italic}
.dsol-exp{font-size:13.5px;line-height:1.65;color:var(--ink)}
.dsol-exp .sol-exp{margin:0 0 10px}
.dsol-exp .exp-lbl{display:block;font:800 10.5px/1.3 var(--disp);letter-spacing:1.3px;
                   text-transform:uppercase;color:var(--gold-deep);margin:12px 0 5px}
.dsol-exp ol{margin:0;padding-left:20px}
.dsol-exp ol li{margin:3px 0}
.dsol-exp .exp-test,.dsol-exp .exp-off{margin-top:4px}
.dsol-exp .exp-ol{margin-top:10px;font-size:12.5px;color:var(--grey)}
.dsol-exp .exp-ol b{margin-right:6px;color:var(--ink)}
.dsol-exp .exp-flag{margin-top:10px;font-size:12.5px;color:var(--grey);font-style:italic}

.drep{margin:13px 0 0;padding:12px 0 0;border-top:1px dashed var(--line)}
.drep .by{font:800 12.5px/1 var(--disp);color:var(--ink)}
.drep .by.t{color:var(--gold-deep)}
.drep .when{font-size:12px;color:var(--grey);margin-left:7px}
.drep .body{margin:5px 0 0;font-size:13.5px;line-height:1.65;color:var(--ink);
            white-space:pre-wrap}
.drep.ans{border-top:0;border-left:3px solid var(--gold-deep);padding:11px 0 11px 13px;
          background:var(--gold-bg);border-radius:0 12px 12px 0}
.drep .tick{font:800 11px/1 var(--disp);letter-spacing:1px;text-transform:uppercase;
            color:var(--muted);margin:0 0 6px}
.unver{margin:12px 0 0;font-size:12.5px;color:var(--grey);font-style:italic}
.dacts{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:11px 0 0}
.dacts.wide{margin-top:14px;padding-top:13px;border-top:1px solid var(--line-soft)}
.dacts input[type=text]{flex:1 1 220px;min-width:0;margin:0;
                        text-transform:none;letter-spacing:normal}
.dacts .btn{width:auto}
/* The reply box: room for a paragraph, with the Runbook's bold and
   italic buttons above it (shared/richtext.js). */
.dreply{margin-top:14px;padding-top:13px;border-top:1px solid var(--line-soft)}
.dreply textarea{display:block;min-height:88px;resize:vertical;line-height:1.55;margin:0}
.dreply .dacts{justify-content:flex-end;margin-top:9px}
.dhead .q.full{white-space:pre-wrap}
@media(max-width:560px){
  .dhead{padding:13px 14px}
  .dbody{padding:2px 14px 14px}
}

/* The doubts line on the Training Rooms home. Everyone sees it. The
   Journal's line (.jrline, db/45) wears the same look. */
.dbtline,.jrline{margin:0 0 14px}
.dbtline a,.jrline a{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;
  background:var(--surface);border:1px solid var(--line);border-radius:13px;
  padding:13px 16px;transition:border-color .15s,box-shadow .15s}
.dbtline a:hover,.jrline a:hover{border-color:var(--gold-line);box-shadow:var(--shadow-h)}
.dbtline .t,.jrline .t{font:800 14px/1.3 var(--disp);color:var(--ink)}
.dbtline .m,.jrline .m{font-size:12.5px;line-height:1.5;color:var(--grey);margin:3px 0 0}
.dbtline .go,.jrline .go{margin-left:auto;font:800 11.5px/1 var(--disp);letter-spacing:1px;
             text-transform:uppercase;color:var(--gold-deep);white-space:nowrap}
/* His Asked for you on the home page, each thread settled from here:
   Mark as handled (with Undo), or Open it in the Journal (Nov 2026). */
.jrline .jra{display:grid;gap:8px;margin-top:8px}
.jrline .jra-it{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--surface);
  border:1px solid var(--line);border-radius:13px;padding:12px 14px}
.jrline .jra-tx{flex:1 1 260px;min-width:0;display:grid;gap:2px}
.jrline .jra-tx b{font:800 14px/1.3 var(--disp);color:var(--ink)}
.jrline .jra-tx .on{font-size:12px;color:var(--grey)}
.jrline .jra-tx .q{font-size:13.5px;line-height:1.45;color:var(--ink);overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.jrline .jra-bt{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.jrline .jra-bt .btn{white-space:nowrap}
.jrline .jra-it.held{background:var(--ok-bg);border-color:var(--ok-line)}
.jrline .jra-done{flex:1;font-size:13.5px;font-weight:700;color:var(--ok-ink)}
.jrline .jra-err{font-size:12.5px;font-weight:700;color:var(--bad-ink)}
@media(max-width:560px){
  .jrline .jra-bt{width:100%}
  .jrline .jra-bt .btn{flex:1;display:inline-flex;justify-content:center;align-items:center}
}


/* ================================================================
   READABLE GOLD (Oct 2026)

   Aiyaz: the light gold in the Batch Runbook — its links above all —
   was hard to read, and so were the small gold labels on an Individual
   Runbook request. #b8860b on cream is about 3 to 1, and ordinary text
   needs 4.5 to 1. Gold stays the accent everywhere (borders, fills, the
   tick, the left edge of a task); only gold TEXT that has to be read
   moves to one of two inks:

     --gold-ink    the runbooks, batch and individual. A deep brown in
                   Light; a brighter gold in Dark, Slate Blue and Soft
                   Dark. 7 to 1 or better on every surface it sits on.
     --gold-text   the same deep brown in Light, for gold text on other
                   pages that read too faintly. In the dark themes it is
                   simply the gold those pages already had.

   The headings he pointed at as the colour to aim for ("Weekly Class
   Routine") keep theirs, --muted. Checked by tools/qa/t96_readability.js,
   which measures every piece of text on every page in all four themes.

   Then (Oct 2026), of the Batch Runbook's links: "can this font color be
   made a bit more darker? not black but a darker version." --gold-ink in
   Light went from #614609 (8.4 to 1 on cream) to #4a3506, the same brown
   a step deeper (11.2 to 1). The dark themes keep their brighter gold.
   ================================================================ */
:root{--gold-ink:#4a3506;--gold-text:#614609}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--gold-ink:#ecc87e;--gold-text:var(--gold-deep)}
}
:root[data-theme="dark"]{--gold-ink:#ecc87e;--gold-text:var(--gold-deep)}
:root[data-palette="slate"]{--gold-ink:#e6c37e}
:root[data-palette="soft"]{--gold-ink:#f3d79c}

/* the Batch Runbook: its links, its table headings, its Open buttons.
   A link keeps an underline in its own colour, so it still reads as a
   link now that it is close to the colour of the headings. */
.rb a{color:var(--gold-ink);border-bottom-color:var(--gold-line);
      border-bottom-color:color-mix(in srgb,currentColor 40%,transparent)}
.rb a:hover{border-bottom-color:currentColor}
.rb thead th{color:var(--gold-ink)}
.arcrow .go,.rblink .go,.reqline .go{color:var(--gold-ink)}

/* the Individual Runbook: a student's request, and the tasks */
.rqans dt,.rqhead .t,.rqold-t,.rqans dd.was span,.rqcard>summary .bch,
.rqcard>summary .rpt,.rqt .st,.rqt.soon .st,.rqhit .bch,.rqlink,
.rqfind label,.rqset label,.tasks .thd h2,.tasks .tall,.task .foot .lk,
.task .de a,.whose a,.rep .wo{color:var(--gold-ink)}
.whoami b{color:var(--gold-ink)}

/* elsewhere: gold text that read too faintly in Light */
.hint a,td.sno,a.tile .s,.rows .this,.dbtline .go,.jrline .go{color:var(--gold-text)}

/* ================================================================
   DAILY & WEEKLY TESTS — the second tab of a batch runbook
   (runbook.html; the rows come from db/32_daily_weekly_tests.sql).
   Every colour is a token, so all four themes carry it.
   ================================================================ */
.rbtabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;
        max-width:840px;margin:0 auto 16px}
.rbtabs .chip{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;font-size:12.5px}
.rbtabs .tcount{font-style:normal;font-size:10.5px;font-weight:800;min-width:18px;
                padding:2px 6px;border-radius:999px;background:var(--surface-3);
                color:var(--grey);text-align:center;line-height:1.3}
.rbtabs .tcount:empty{display:none}
.rbtabs .chip.on .tcount{background:rgba(255,255,255,.2);color:inherit}

.tests{max-width:840px;margin:0 auto}
.tsttop{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.tsttop .sp{margin-left:auto}
.tsttop .btn{width:auto}

.tst{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center;
     background:var(--surface);border:1px solid var(--line);border-radius:16px;
     padding:14px 16px;margin:0 0 10px;box-shadow:var(--shadow-sm)}
.tst.done{border-color:var(--gold-line)}
.tdate{width:58px;height:58px;border-radius:13px;display:flex;flex-direction:column;
       align-items:center;justify-content:center;line-height:1;
       background:var(--gold-bg);border:1px solid var(--gold-line);color:var(--gold-ink)}
.tdate b{font-size:21px;font-weight:800}
.tdate span{font-size:10.5px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;margin-top:4px}
.tmain{min-width:0}
.ttl{font-size:15.5px;font-weight:800;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.tkind{display:inline-block;margin-left:9px;vertical-align:2px;padding:3px 9px;border-radius:999px;
       font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;line-height:1.3;
       border:1px solid var(--line-input);color:var(--grey)}
.tkind.wk{border-color:var(--gold-line);background:var(--gold-bg);color:var(--gold-ink)}
/* beside the title: the leaderboard's two days (db/33_leaderboard_window.sql) */
.twin{display:inline-block;margin-left:6px;vertical-align:2px;padding:3px 9px;border-radius:999px;
      font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;line-height:1.3;
      border:1px solid var(--line-input);color:var(--grey);white-space:nowrap}
.twin.live{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ok-ink)}
.twin.soon{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}
/* beside the name: copy the test's link — the roster's copy button
   (admin.html), flat, one hairline on hover, a tick and "Copied" */
.ttl .cpy{position:relative;display:inline-flex;align-items:center;justify-content:center;
     width:24px;height:24px;padding:0;margin:0 0 0 4px;vertical-align:-5px;border-radius:7px;
     border:1px solid transparent;background:transparent;color:var(--grey);cursor:pointer;
     font:inherit;line-height:1;-webkit-tap-highlight-color:transparent;
     transition:background-color .12s ease,color .12s ease,opacity .12s ease}
.ttl .cpy svg{width:14px;height:14px;display:block;pointer-events:none;overflow:visible}
.ttl .cpy .ok{display:none}
.ttl .cpy.done .cp{display:none}
.ttl .cpy.done .ok{display:inline}
.ttl .cpy:focus-visible{outline:2px solid var(--gold-deep);outline-offset:1px}
@media (hover:hover){
  .ttl .cpy:hover{background:var(--gold-bg);border-color:var(--gold-line);color:var(--ink)}
}
.ttl .cpy.done{color:var(--ok-ink)}
.ttl .cpy.fail{color:var(--bad-ink,#a4321f)}
.ttl .cpy::after{content:attr(data-said);position:absolute;left:calc(100% + 6px);top:50%;
     transform:translateY(-50%);z-index:3;white-space:nowrap;pointer-events:none;
     font:700 11px/1 var(--disp);letter-spacing:.3px;padding:5px 8px;border-radius:6px;
     background:#17140f;color:#fdfaf3;border:1px solid #c9a227;
     opacity:0;visibility:hidden;transition:opacity .12s ease}
.ttl .cpy.done::after,.ttl .cpy.fail::after{opacity:1;visibility:visible}
.ttl .cpy.flip::after{left:auto;right:calc(100% + 6px)}
@media (pointer:coarse){
  .ttl .cpy{width:30px;height:30px;vertical-align:-8px;margin-left:2px}
  .ttl .cpy svg{width:15px;height:15px}
}
.cpy-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
        clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tmeta{font-size:12.5px;color:var(--grey);margin-top:4px;line-height:1.5}
.tme{font-size:13px;color:var(--ink);margin-top:5px;line-height:1.5}
.tme b{color:var(--gold-text)}
.tnote{font-size:12.5px;color:var(--grey);margin-top:5px;font-style:italic;line-height:1.5}
.tact{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.tact .btn{width:auto;text-decoration:none;display:inline-block;text-align:center}
.tact .tq{font-size:13px;font-weight:700;color:var(--bad-ink)}
@media(max-width:640px){
  .tst{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:13px}
  .tdate{width:48px;height:48px;border-radius:11px}
  .tdate b{font-size:18px}
  .tact{grid-column:1 / -1;justify-content:flex-start}
}

/* his form for adding or changing one */
.tform{background:var(--surface);border:1px solid var(--gold-line);border-radius:16px;
       padding:18px 18px 16px;margin:0 0 14px;box-shadow:var(--shadow)}
.tfhead{font-size:15px;font-weight:800;margin:0 0 12px;color:var(--ink)}
.tfgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.tfgrid .tfwide{grid-column:1 / -1}
@media(max-width:560px){.tfgrid{grid-template-columns:1fr}}
.tfgrid input[type=text],.tfgrid input[type=date],.tfgrid input[type=time]{width:100%;padding:10px 12px;font-size:14px;
  font-family:inherit;color:var(--ink);background:var(--surface-2);
  border:1px solid var(--line-input);border-radius:10px;outline:none}
.tfgrid input[type=date]:focus,.tfgrid input[type=time]:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,.18)}
/* the closing day, its time and End of day on one line (db/40); they wrap
   on a narrow phone */
.tfclose{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tfclose input[type=date]{flex:1 1 150px;width:auto;min-width:0}
.tfclose input[type=time]{flex:1 1 112px;width:auto;min-width:0}
.tfclose .chip{flex:0 0 auto}
/* the timer: presets, then the slider by the minute */
.tfquick{flex-wrap:wrap}
.tfslide{display:flex;align-items:center;gap:12px;margin-top:10px}
.tfslide input[type=range]{flex:1 1 auto;min-width:0;margin:0;accent-color:var(--gold-deep);cursor:pointer}
.tfslide output{flex:0 0 auto;min-width:96px;text-align:right;font-size:13px;font-weight:800;color:var(--ink)}
.tftimer:not(.on) .tfslide output{color:var(--grey);font-weight:700}
/* beside a live board closing at a set time: how long is left */
.tleft{display:inline-block;margin-left:6px;vertical-align:2px;font-size:11.5px;font-weight:800;
       color:var(--ok-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.tleft:empty{display:none}
.tfkind{display:flex;gap:8px}
.tfhint{font-size:12px;color:var(--grey);margin:6px 0 0;line-height:1.45}
.tfhint:empty{display:none}
/* under the two dates, the days the leaderboard counts (db/39): its own
   row, close under the dates; red when the close is before go-live */
.tfgrid > .tfhint{margin:-5px 0 0}
.tfhint.bad{color:var(--bad-ink);font-weight:700}
.tfmsg{display:none;font-size:13px;line-height:1.5;margin:12px 0 0;padding:9px 12px;border-radius:9px}
.tfmsg.on{display:block}
.tfmsg.bad{background:var(--bad-bg);border:1px solid var(--bad-line);color:var(--bad-ink)}
.tfmsg.warn{background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn-ink)}
.tfacts{display:flex;gap:10px;margin-top:14px}
.tfacts .btn{width:auto}
/* the date picker's own icon, legible on the dark themes */
:root[data-theme="dark"] .tfgrid input[type=date],:root[data-theme="dark"] .tfgrid input[type=time]{color-scheme:dark}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .tfgrid input[type=date],
  :root:not([data-theme="light"]) .tfgrid input[type=time]{color-scheme:dark}
}

/* ================================================================
   BATCH LIVE (Oct 2026, db/38_batch_live.sql)

   A batch's announcements, in a chat of their own (live.html, which
   carries its own colours). Here: the pill beside a runbook's two tabs
   (runbook.html), and the line on the Training Rooms home when
   something new has come (index.html). The green is the chat's — the
   one place it appears in the portal, so it reads as "live".
   ================================================================ */
.rbtabs .lvpill{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;
  font:700 12.5px/1 var(--disp);text-decoration:none;cursor:pointer;
  background:var(--surface);border:1px solid var(--line-input);color:var(--ink)}
.rbtabs .lvpill:hover{border-color:var(--gold-line);background:var(--gold-bg)}
.rbtabs .lvpill:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.rbtabs .lvpill .dot{width:8px;height:8px;border-radius:50%;flex:none;background:#25d366;
  box-shadow:0 0 0 3px rgba(37,211,102,.2)}
.rbtabs .lvpill .n{font-style:normal;font-size:10.5px;font-weight:800;min-width:18px;padding:2px 6px;
  border-radius:999px;background:#25d366;color:#05301a;text-align:center;line-height:1.3}
.rbtabs .lvpill.locked{color:var(--grey);border-style:dashed}
.rbtabs .lvpill svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.lvlock{max-width:520px;margin:-4px auto 16px;padding:10px 14px;border-radius:12px;text-align:center;
  font-size:13px;line-height:1.55;color:var(--grey);background:var(--surface);border:1px solid var(--line)}

.liveline{margin:0 0 14px}
.liveline:empty{display:none}            /* nothing new: no gap either */
.liveline a{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;
  background:var(--surface);border:1px solid var(--line);border-left:3px solid #25d366;border-radius:13px;
  padding:13px 16px;transition:border-color .15s,box-shadow .15s}
.liveline a:hover{border-color:var(--gold-line);border-left-color:#25d366;box-shadow:var(--shadow-h)}
.liveline .dot{width:10px;height:10px;border-radius:50%;flex:none;background:#25d366;
  box-shadow:0 0 0 4px rgba(37,211,102,.18)}
.liveline .t{font:800 14px/1.3 var(--disp);color:var(--ink)}
.liveline .tx{min-width:0;flex:1}
.liveline .m{font-size:12.5px;line-height:1.5;color:var(--grey);margin:3px 0 0}
.liveline .pv{font-size:13px;line-height:1.5;color:var(--ink);margin:4px 0 0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.liveline .go{margin-left:auto;font:800 11.5px/1 var(--disp);letter-spacing:1px;
  text-transform:uppercase;color:var(--gold-text);white-space:nowrap}

/* ---------- Reminders (Nov 2026, db/57_journal_reminders.sql) ----------
   The same card on the Training Rooms page and in the Journal: a time,
   what to remember, who it is for, Done and Snooze. shared/reminders.js
   draws it. */
.rm{background:var(--surface);border:1px solid var(--gold-line);border-radius:18px;padding:16px 18px 6px;
    margin:0 0 14px;box-shadow:var(--shadow);text-align:left}
.rm:empty{display:none}
.rm-h{display:flex;align-items:center;gap:10px;padding:0 0 10px;flex-wrap:wrap}
.rm-bell{width:30px;height:30px;border-radius:8px;background:var(--dark);display:grid;place-items:center;flex:none}
.rm-bell svg{width:17px;height:17px;fill:none;stroke:var(--gold);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.rm-h .t{font:800 15px/1.3 var(--disp);color:var(--ink)}
.rm-due{font:800 10.5px/1 var(--disp);letter-spacing:.8px;text-transform:uppercase;color:#fff;background:var(--bad-ink);
        border-radius:999px;padding:5px 9px}
:root[data-theme="dark"] .rm-due{color:#17140f}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .rm-due{color:#17140f} }
.rm-due.n{min-width:22px;text-align:center;padding:5px 7px}
.rm-h .rm-r{margin-left:auto}
.rm-open{font:700 11.5px/1 var(--disp);color:var(--grey);text-decoration:none;border:1px solid var(--line-input);
         border-radius:999px;padding:5px 9px;white-space:nowrap}
.rm-open:hover{color:var(--gold-text);border-color:var(--gold-line)}
.rm-new{font:700 12.5px/1 var(--disp);color:var(--ink);background:var(--surface);border:1px solid var(--gold-line);
        border-radius:999px;padding:8px 13px;cursor:pointer;white-space:nowrap}
.rm-new:hover{background:var(--gold-bg)}
.rm-sec{font:800 10.5px/1 var(--disp);letter-spacing:1.4px;text-transform:uppercase;color:var(--grey);margin:12px 0 2px}
.rm-sec.now{color:var(--gold-text)}
.rm-it{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:4px 14px;padding:12px 0;border-top:1px solid var(--line);align-items:start}
.rm-sec + .rm-it{border-top:0}
.rm-when b{display:block;font:800 13.5px/1.25 var(--disp);color:var(--ink)}
.rm-when small{display:block;font-size:12px;color:var(--grey);margin-top:2px}
.rm-when .od{color:var(--bad-ink)}
.rm-tx{font-size:15px;line-height:1.45;color:var(--ink);overflow-wrap:anywhere}
.rm-tx b{font-weight:800}
.rm-pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.rpill{display:inline-flex;align-items:center;gap:4px;font:700 11.5px/1 var(--disp);color:var(--ink);background:var(--surface);
       border:1px solid var(--line-input);border-radius:999px;padding:5px 9px;max-width:100%;line-height:1.25}
.rpill.g{background:var(--gold-bg);border-color:var(--gold-line);color:var(--gold-text)}
.rpill.d{border-style:dashed;border-color:var(--gold-line);color:var(--grey);background:transparent}
.rpill.q{color:var(--grey)}
button.rpill{cursor:pointer}
button.rpill:hover{border-color:var(--gold-line)}
/* his home page: the student a reminder is about, a tap away — the name,
   "Student details" (the panel, over the page) and "Open in Journal" */
.rm-who{font:inherit;font-weight:800;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;
        text-align:left;text-decoration:underline;text-decoration-color:var(--gold-line);text-underline-offset:3px}
.rm-who:hover{color:var(--gold-text);text-decoration-color:currentColor}
.rm-go{grid-column:2 / -1;display:flex;gap:8px;flex-wrap:wrap;margin-top:2px}
.rm-lk .sm{display:none}
.rm-lk{display:inline-flex;align-items:center;gap:5px;font:700 12.5px/1.2 var(--disp);color:var(--ink);background:var(--gold-bg);
       border:1px solid var(--gold-line);border-radius:999px;padding:7px 12px;cursor:pointer;text-decoration:none;white-space:nowrap}
.rm-lk:hover{border-color:var(--gold-deep)}
.rm-lk:focus-visible,.rm-who:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.rm-lk[aria-busy="true"]{opacity:.6;cursor:progress}
.rm-act{display:flex;gap:6px;align-items:center;position:relative;flex-wrap:wrap;justify-content:flex-end}
.rm-act .chip{padding:8px 13px;font-size:12.5px}
.rm-edit{font:700 12.5px/1 var(--disp);color:var(--grey);background:none;border:0;cursor:pointer;padding:6px 2px}
.rm-edit:hover{color:var(--gold-text)}
.rm-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:220px;background:var(--surface);
         border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-h);padding:6px;display:grid}
.rm-menu button{font:600 13.5px/1.2 var(--disp);color:var(--ink);background:none;border:0;border-radius:9px;
                text-align:left;padding:10px 11px;cursor:pointer;white-space:nowrap}
.rm-menu button:hover,.rm-menu button:focus-visible{background:var(--gold-bg)}
.rm-menu hr{border:0;border-top:1px solid var(--line);margin:4px 6px}
.rm-pick{grid-column:2 / -1;display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:6px}
.rm-say{grid-column:2 / -1;font-size:12.5px;color:var(--bad-ink)}
.rm-say:empty{display:none}
.rm-foot{font-size:12.5px;color:var(--grey);border-top:1px solid var(--line);padding:12px 0 10px;line-height:1.5}
.rm-none{font-size:13.5px;color:var(--grey);padding:6px 0 12px}
/* a date or a time: the words show, the phone's own picker opens */
.rm-dt{text-transform:none;letter-spacing:normal;position:relative;display:inline-flex;align-items:center;gap:7px;min-width:130px;padding:10px 12px;
       border:1px solid var(--line-input);border-radius:10px;background:var(--surface);font:600 14.5px/1.2 var(--disp);
       color:var(--ink);cursor:pointer}
.rm-dt:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-bg)}
.rm-dt input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;border:0;font-size:16px}
/* the form */
.rm-form{border:1px solid var(--gold-line);border-radius:14px;padding:14px 14px 12px;margin:0 0 6px;background:var(--surface)}
.rm-form .l{display:block;font:800 10.5px/1.2 var(--disp);letter-spacing:1.3px;text-transform:uppercase;color:var(--gold-text);margin:0 0 7px}
.rm-form textarea{width:100%;margin:0;font-size:15px;min-height:64px}
.rm-form .rw{display:flex;gap:14px 24px;flex-wrap:wrap;margin-top:12px}
.rm-form .rw > div{min-width:0}
.rm-form .bt{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}
.rm-form .bt .btn{width:auto}
.rm-form .hint{font-size:12.5px;color:var(--grey)}
.rm-form .hint.bad{color:var(--bad-ink)}
.rm-form .del{margin-left:auto;font:700 12.5px/1 var(--disp);color:var(--bad-ink);background:none;border:0;cursor:pointer;padding:6px 0}
.seg2{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line-input);border-radius:999px;background:var(--surface)}
.seg2 .chip{border:0;padding:8px 13px;font-size:12.5px;background:none}
.seg2 .chip.on{background:var(--dark);color:#fdfaf3}
:root[data-theme="dark"] .seg2 .chip.on{background:var(--gold-deep);color:#17140f}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .seg2 .chip.on{background:var(--gold-deep);color:#17140f} }
@media (max-width:600px){
  .rm{padding:14px 14px 4px}
  .rm-it{grid-template-columns:76px minmax(0,1fr)}
  .rm-act{grid-column:1 / -1;justify-content:flex-start;margin-top:4px}
  .rm-act .chip{padding:10px 16px;font-size:13.5px}
  /* the row spans the card, above Done and Snooze, with the short names */
  .rm-go{grid-column:1 / -1;order:1;margin-top:4px}
  .rm-act,.rm-pick,.rm-say{order:2}
  .rm-lk{padding:10px 15px;font-size:13.5px}
  .rm-lk .lg{display:none}
  .rm-lk .sm{display:inline}
  .rm-pick,.rm-say{grid-column:1 / -1}
  .rm-h .rm-open{display:none}
  .rm-menu{left:0;right:auto}
}

/* ---------- One student, in a panel over the page (Nov 2026) ----------
   shared/student-pop.js: on the Results page and in the Journal, his
   mocks and his Journal side by side without leaving the page. Dark
   header like the Roster's panel; the page behind stays where it was. */
html.spop-on{overflow:hidden}
.spop-w{position:fixed;inset:0;z-index:9996;display:none;background:rgba(20,16,10,.5);padding:28px 16px}
.spop-w.on{display:flex;align-items:flex-start;justify-content:center}
.spop{position:relative;width:min(900px,100%);max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);
      overflow-y:auto;overscroll-behavior:contain;background:var(--cream);border:1px solid var(--line);
      border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.34);text-align:left;outline:none;color:var(--ink)}
.spop-h{position:sticky;top:0;z-index:5;background:#17140f;color:#fdfaf3;padding:16px 18px 14px}
.spop-h.tabs{padding-bottom:0}
.spop-top{display:flex;align-items:flex-start;gap:12px}
.spop-id{min-width:0;flex:1}
.spop-h .ln{display:flex;align-items:center;gap:6px;min-width:0}
.spop-h .ln + .ln{margin-top:3px}
.spop-h .nm{font:800 19px/1.25 var(--disp);min-width:0;overflow-wrap:anywhere}
.spop-h .em{font-size:13px;line-height:1.3;opacity:.75;min-width:0;overflow-wrap:anywhere}
.spop-h .tg{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:10px}
.spop-h .tag{font:800 10px/1 var(--disp);letter-spacing:.9px;text-transform:uppercase;padding:6px 9px;border-radius:999px;
             border:1px solid rgba(253,250,243,.22);color:rgba(253,250,243,.85)}
.spop-go{font:700 12px/1 var(--disp);color:#e8c766;text-decoration:none;padding:6px 10px;border-radius:999px;
         border:1px solid rgba(232,199,102,.42);white-space:nowrap}
.spop-go:hover{background:rgba(232,199,102,.13);color:#f3d98a}
.spop-x{flex:none;width:36px;height:36px;border-radius:10px;border:1px solid rgba(253,250,243,.2);background:transparent;
        color:#fdfaf3;font:400 24px/1 var(--disp);cursor:pointer;opacity:.8;display:grid;place-items:center;padding:0 0 2px}
.spop-x:hover{opacity:1;background:rgba(253,250,243,.08)}
.spop-x:focus-visible{outline:2px solid #e8c766;outline-offset:1px}
.spop-tabs{display:flex;gap:22px;margin-top:12px;overflow-x:auto;scrollbar-width:none}
.spop-tabs::-webkit-scrollbar{display:none}
.spop-tabs button{flex:none;background:none;border:0;border-bottom:2px solid transparent;color:rgba(253,250,243,.62);
                  font:700 13.5px/1 var(--disp);padding:10px 1px 12px;cursor:pointer;white-space:nowrap}
.spop-tabs button:hover{color:#fdfaf3}
.spop-tabs button.on{color:#fdfaf3;border-bottom-color:#e8c766}
.spop-tabs i{font-style:normal;font:800 11px/1 var(--disp);color:#e8c766;margin-left:3px}
.spop-tabs i.d{color:#17140f;background:#efa3ac;border-radius:999px;padding:3px 7px;margin-left:6px}
.spop-tabs .sm{display:none}
.spop-b{padding:18px 18px 22px}
.spop-dim{color:var(--grey);font-size:14px;margin:6px 0}
.spop-none{font-size:15px;color:var(--grey);margin:14px 0;text-align:center}
.spop .lnk{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--gold-text);cursor:pointer;
           text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--gold-line)}
.spop .lnk:hover{text-decoration-color:currentColor}
.spop .mut{color:var(--grey);font-weight:400}

/* one-click copy (the Roster's look, for every page) */
.spcp{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;
      padding:0;margin:0;border-radius:7px;border:1px solid transparent;background:transparent;color:var(--grey);cursor:pointer;
      font:inherit;line-height:1;-webkit-tap-highlight-color:transparent;
      transition:background-color .12s ease,color .12s ease,opacity .12s ease}
.spcp svg{width:14px;height:14px;display:block;pointer-events:none;overflow:visible}
.spcp .ok{display:none}
.spcp.done .cp{display:none}
.spcp.done .ok{display:inline}
.spcp:focus-visible{outline:2px solid var(--gold-deep);outline-offset:1px}
@media (hover:hover){ .spcp:hover{background:var(--gold-bg);border-color:var(--gold-line);color:var(--ink)} }
.spcp.done{color:var(--ok-ink)}
.spcp.fail{color:var(--bad-ink)}
.spcp::after{content:attr(data-said);position:absolute;left:calc(100% + 6px);top:50%;transform:translateY(-50%);z-index:3;
      white-space:nowrap;pointer-events:none;font:700 11px/1 var(--disp);letter-spacing:.3px;padding:5px 8px;border-radius:6px;
      background:#17140f;color:#fdfaf3;border:1px solid #c9a227;opacity:0;visibility:hidden;transition:opacity .12s ease}
.spcp.done::after,.spcp.fail::after{opacity:1;visibility:visible}
.spcp.flip::after{left:auto;right:calc(100% + 6px)}
.spcp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* the light one: the same drawing, from here rather than in each button */
.spcp.lite::before{content:'';display:block;width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2.2'/%3E%3Cpath d='M5 15H4.8A1.8 1.8 0 0 1 3 13.2V4.8A1.8 1.8 0 0 1 4.8 3h8.4A1.8 1.8 0 0 1 15 4.8V5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2.2'/%3E%3Cpath d='M5 15H4.8A1.8 1.8 0 0 1 3 13.2V4.8A1.8 1.8 0 0 1 4.8 3h8.4A1.8 1.8 0 0 1 15 4.8V5'/%3E%3C/svg%3E") center/contain no-repeat}
.spcp.lite.done::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.spop-h .spcp{width:22px;height:22px;color:#fdfaf3;opacity:.62}
.spop-h .spcp svg{width:13px;height:13px}
@media (hover:hover){ .spop-h .spcp:hover{opacity:1;color:#fdfaf3;background:rgba(253,250,243,.1);border-color:rgba(253,250,243,.24)} }
.spop-h .spcp:focus-visible{opacity:1;outline-color:#e8c766}
.spop-h .spcp.done{opacity:1;color:#e8c766}

/* Mock results */
.spm-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}
.spm-sum > div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-width:0}
.spm-sum b{display:block;font:800 23px/1.1 var(--disp);color:var(--num);font-variant-numeric:tabular-nums}
.spm-sum b.up{color:var(--ok-ink)}
.spm-sum b.dn{color:var(--bad-ink)}
.spm-sum span{display:block;font-size:11.5px;color:var(--grey);margin-top:5px}
.spm-tip{font-size:12.5px;color:var(--grey);margin:0 0 10px}
.spm-hd,.spm-r{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.5fr) 50px 50px 54px 70px 62px 14px;gap:10px;align-items:center}
.spm-hd{font:800 10px/1 var(--disp);letter-spacing:1.5px;text-transform:uppercase;color:var(--gold-text);
        padding:0 12px 9px;border-bottom:1px solid var(--gold-line)}
.spm-hd .r,.spm-r .r{text-align:right}
.spm{border-bottom:1px solid var(--line-soft)}
.spm-r{width:100%;background:none;border:0;border-radius:0;padding:12px;margin:0;font:inherit;font-size:13.5px;color:var(--ink);
       text-align:left;cursor:pointer}
.spm-r:hover,.spm.on > .spm-r{background:var(--gold-bg)}
.spm-r:focus-visible{outline:2px solid var(--gold-deep);outline-offset:-2px}
.spm-r .mk{font-weight:700;min-width:0}
.spm-r .dt{color:var(--grey);font-size:12.5px;min-width:0}
.spm-r small{display:none}
.spm-r .tot{font:800 15px/1 var(--disp);font-variant-numeric:tabular-nums}
.spm-r .cor{font-weight:700;font-variant-numeric:tabular-nums}
.spm-r .ch{color:var(--grey);font-size:11px;text-align:right}
.spm-r .rk{font-variant-numeric:tabular-nums;white-space:nowrap}
.spm-r .rk b{font-weight:800}
/* where the open mock stands on its leaderboard */
.sprk{margin:12px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink)}
.sprk.mut{color:var(--grey)}
.sprk b{font-weight:800}
.spop .vq{display:inline-block;min-width:30px;font-variant-numeric:tabular-nums;font-weight:700}
.spop .vq.v{color:#a03030}
.spop .vq.q{color:#2d5fa8}
:root[data-theme="dark"] .spop .vq.v,:root[data-theme="dark"] .spop .vq.q{filter:brightness(1.6)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .spop .vq.v,:root:not([data-theme="light"]) .spop .vq.q{filter:brightness(1.6)}
}
.spm-d{padding:2px 14px 18px;background:var(--surface-2);border-top:1px solid var(--line-soft)}
.spop .maslot{padding:14px 0 4px;border-bottom:1px solid var(--line-soft);margin-bottom:14px}
.spop .maslot:empty{display:none}
.spop .meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px 18px;padding-top:4px}
.spop .meta div{font-size:12.5px;overflow-wrap:anywhere}
.spop .meta b{display:block;font-size:9.5px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--grey);margin-bottom:3px}
.spop .raw{margin-top:12px;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--grey);white-space:pre-wrap;word-break:break-word}
.spop .again{margin:12px 0 0}
.spop .again a{font-size:13.5px;font-weight:700;color:var(--gold-text);text-decoration:none;border-bottom:1px solid var(--gold-line);padding-bottom:1px}
.spop .again a:hover{border-bottom-color:currentColor}

/* Journal & reminders */
.spop-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px 15px;margin:0 0 14px}
.spop-card .h{font:800 15px/1.3 var(--disp);color:var(--ink);display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.spop-card .h .m{font:600 12px/1 var(--disp);color:var(--grey)}
.spop-card dl{margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 20px}
.spop-card dt{font:800 9.5px/1.2 var(--disp);letter-spacing:1.4px;text-transform:uppercase;color:var(--grey);margin:0 0 4px}
.spop-card dd{margin:0;font-size:14px;line-height:1.45;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap}
.spop .rm{box-shadow:none}
.spop-foot{font-size:13px;margin:4px 0 0}
.spop-foot a{color:var(--gold-text);font-weight:700;text-decoration:none}
.spop-foot a:hover{text-decoration:underline}

@media (max-width:640px){
  .spop-w{padding:0;align-items:flex-end}
  .spop-w.on{align-items:flex-end}
  /* one height on a phone, so the tabs stay under the thumb when a shorter side opens */
  .spop{width:100%;height:92vh;height:92dvh;max-height:92vh;max-height:92dvh;border-radius:18px 18px 0 0;border-bottom:0}
  .spop-h{padding:14px 14px 12px}
  .spop-h.tabs{padding-bottom:0}
  .spop-h .nm{font-size:17px}
  /* the three sides fit across a phone: their short names */
  .spop-tabs{gap:16px}
  .spop-tabs .lg{display:none}
  .spop-tabs .sm{display:inline}
  .spop-b{padding:14px 12px 20px}
  .spm-sum{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spm-hd{display:none}
  .spm-r{grid-template-columns:minmax(0,1fr) auto auto auto 12px;
         grid-template-areas:"mk vv qq tot ch" "dt dt rk cor ch";gap:4px 10px;padding:11px 10px}
  .spm-r .rk{grid-area:rk;font-size:12px}
  .spm-r .mk{grid-area:mk}
  .spm-r .dt{grid-area:dt;font-size:12px}
  .spm-r .vv{grid-area:vv}
  .spm-r .qq{grid-area:qq}
  .spm-r .tot{grid-area:tot}
  .spm-r .cor{grid-area:cor;font-size:12px;font-weight:600}
  .spm-r .ch{grid-area:ch}
  .spm-r small{display:inline;font:800 9.5px/1 var(--disp);color:var(--grey);margin-right:3px}
  .spop .vq{min-width:0}
  .spm-d{padding:2px 10px 16px}
  .spop .meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* The mock charts (shared/mock-chart.js), in the teacher's panel and on
   the student's Progress page: Total, and Verbal with Quant — one scale
   each. Line colours checked for colour blindness and contrast (light on
   the cream surface; dark on Slate Blue and on Soft Dark), the same red
   and blue as the Verbal and Quant numbers in the tables. The colours sit
   on the chart itself, so it looks the same wherever it is placed. */
.spc{--spc-t:#9a6f08;--spc-v:#a03030;--spc-q:#2d5fa8;--spc-grid:var(--line);--spc-surf:var(--surface)}
:root[data-theme="dark"] .spc{--spc-t:#b8892a;--spc-v:#e06666;--spc-q:#4f8fe6}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .spc{--spc-t:#b8892a;--spc-v:#e06666;--spc-q:#4f8fe6} }
.spc.spc-read{cursor:default}
.spc-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
.spc{position:relative;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 10px 4px;
     outline:none;cursor:pointer;min-width:0}
.spc:focus-visible{box-shadow:0 0 0 2px var(--gold-deep)}
.spc figcaption{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font:700 12.5px/1.2 var(--disp);color:var(--ink);padding:2px 4px 4px}
.spc figcaption .key{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--grey)}
.spc figcaption .key i,.spc-tip i{display:inline-block;width:14px;height:0;border-top-width:2px;border-top-style:solid;border-radius:2px}
.spc i.t{border-color:var(--spc-t)} .spc i.v{border-color:var(--spc-v)} .spc i.q{border-color:var(--spc-q)}
.spc svg{display:block;width:100%;height:auto;overflow:visible}
.spc .gr{stroke:var(--spc-grid);stroke-width:1}
.spc .yt{font:500 10.5px var(--disp);fill:var(--grey);text-anchor:end;font-variant-numeric:tabular-nums}
.spc .xt{font:600 10.5px var(--disp);fill:var(--grey);text-anchor:middle}
.spc .ln{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.spc .ln.t{stroke:var(--spc-t)} .spc .ln.v{stroke:var(--spc-v)} .spc .ln.q{stroke:var(--spc-q)}
.spc .dt{stroke:var(--spc-surf);stroke-width:2}
.spc .dt.t{fill:var(--spc-t)} .spc .dt.v{fill:var(--spc-v)} .spc .dt.q{fill:var(--spc-q)}
.spc .el{font:800 11.5px var(--disp);fill:var(--ink);font-variant-numeric:tabular-nums}
.spc .bl{font:600 10.5px var(--disp);fill:var(--grey);text-anchor:middle}
.spc .xh{stroke:var(--grey);stroke-width:1;visibility:hidden;pointer-events:none}
.spc .hit{fill:transparent}
.spc-tip{position:absolute;top:30px;z-index:3;min-width:118px;pointer-events:none;background:var(--surface);color:var(--ink);
         border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-h);padding:8px 10px;font:500 12px/1.45 var(--disp)}
.spc-tip .th{font-weight:700;color:var(--grey);margin-bottom:3px;white-space:nowrap}
.spc-tip .tr{display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--grey)}
.spc-tip .tr b{color:var(--ink);font-weight:800;min-width:28px;font-variant-numeric:tabular-nums}
.spc-tip i.t{border-color:var(--spc-t)} .spc-tip i.v{border-color:var(--spc-v)} .spc-tip i.q{border-color:var(--spc-q)}

/* Tests & sets: every other attempt, room by room */
.spt-f{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.spt-f .chip{padding:7px 12px;font-size:12px}
.spt-f .chip i{font-style:normal;opacity:.7;margin-left:2px}
.spt-hd,.spt-r{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1.4fr) 120px 48px 14px;gap:10px;align-items:center}
.spt-hd{font:800 10px/1 var(--disp);letter-spacing:1.5px;text-transform:uppercase;color:var(--gold-text);
        padding:0 12px 9px;border-bottom:1px solid var(--gold-line)}
.spt-hd .r,.spt-r .r{text-align:right}
.spt{border-bottom:1px solid var(--line-soft)}
.spt-r{width:100%;background:none;border:0;border-radius:0;padding:11px 12px;margin:0;font:inherit;font-size:13.5px;color:var(--ink);
       text-align:left;cursor:pointer}
.spt-r:hover,.spt.on > .spt-r{background:var(--gold-bg)}
.spt-r:focus-visible{outline:2px solid var(--gold-deep);outline-offset:-2px}
.spt-r .wh{font-weight:700;min-width:0;overflow-wrap:anywhere}
.spt-r .ro,.spt-r .dt{color:var(--grey);font-size:12.5px;min-width:0}
.spt-r .sc,.spt-r .pc{font-variant-numeric:tabular-nums;white-space:nowrap}
.spt-r .ch{color:var(--grey);font-size:11px;text-align:right}
@media (max-width:640px){
  .spc-row{grid-template-columns:1fr}
  .spt-hd{display:none}
  .spt-r{grid-template-columns:minmax(0,1fr) auto 12px;grid-template-areas:"wh sc ch" "ro pc ch" "dt dt ch";gap:3px 10px;padding:11px 10px}
  .spt-r .wh{grid-area:wh} .spt-r .sc{grid-area:sc} .spt-r .ro{grid-area:ro} .spt-r .pc{grid-area:pc}
  .spt-r .dt{grid-area:dt;font-size:12px} .spt-r .ch{grid-area:ch}
}

/* Instalments on the home page (Nov 2026, db/62). A student's next one,
   from 15 days before it is due: gold, then amber on the day, red after.
   His list: 7+ days past due (Pause access, +7 days, Payment) and paused
   (Resume). */
.payline:empty{display:none}
.payline{max-width:640px;margin:0 auto 18px;display:grid;gap:12px}
.payline .pyl{display:flex;gap:14px;align-items:center;padding:14px 18px;border-radius:16px;
  border:1px solid var(--gold-line,var(--line));background:var(--gold-bg,var(--surface))}
.payline .pyl .pi{flex:0 0 auto;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font:800 18px/1 var(--disp);background:var(--surface);border:1px solid currentColor;color:var(--gold-deep)}
.payline .pyl .t{font:800 15px/1.3 var(--disp);color:var(--ink)}
.payline .pyl .m{font-size:13px;color:var(--grey);margin-top:3px}
.payline .pyl.today{border-color:#E2B66A;background:#FDF1DC}
.payline .pyl.today .pi{color:#A86A10}
.payline .pyl.late{border-color:var(--bad-line);background:var(--bad-bg)}
.payline .pyl.late .pi{color:var(--bad-ink)}
.payline .pyl.late .t{color:var(--bad-ink)}
.payline .pya{border:1px solid var(--bad-line);background:var(--bad-bg);border-radius:16px;padding:14px 14px 12px;display:grid;gap:8px}
.payline .pya.paused{border-color:var(--line);background:var(--surface-2)}
.payline .pya-h b{display:block;font:800 14.5px/1.3 var(--disp);color:var(--ink)}
.payline .pya-h span{display:block;font-size:12.5px;color:var(--grey);margin-top:2px}
.payline .pya-it{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--surface);
  border:1px solid var(--line);border-radius:12px;padding:11px 13px}
.payline .pya-tx{flex:1 1 220px;min-width:0;display:grid;gap:2px}
.payline .pya-tx b{font:800 14px/1.3 var(--disp);color:var(--ink)}
.payline .pya-tx .on{font-size:12.5px;color:var(--grey)}
.payline .pya-bt{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.payline .pya-bt .btn{white-space:nowrap}
.payline .pya-say{font-size:12.5px;font-weight:700;color:var(--grey)}
@media(max-width:560px){
  .payline .pya-bt{width:100%}
  .payline .pya-bt .btn{flex:1;display:inline-flex;justify-content:center;align-items:center}
  .payline .pya-say{flex-basis:100%}
}

/* ===================== The home page, Nov 2026 =====================
   Catch up (every row in one box), the Welcome Room as a banner, and the
   courses: one course's rooms straight on the page, or a big card for
   each when a login has both (index.html #c=gre / #c=iba). */
.cu{border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-sm);
    margin:0 0 24px;overflow:hidden;text-align:left}
.cu.wait{display:none}
.cu-h{display:flex;align-items:center;gap:10px 12px;padding:14px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.cu-bell{width:34px;height:34px;border-radius:10px;background:var(--dark);display:grid;place-items:center;flex:none}
.cu-bell svg{width:18px;height:18px;fill:none;stroke:var(--gold);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cu-h h2{margin:0;font:800 19px/1.2 var(--disp);color:var(--ink);letter-spacing:-.2px}
.cu-n{font:800 12px/1 var(--disp);color:#fff;background:var(--bad-ink);border-radius:999px;min-width:24px;height:24px;
      display:inline-grid;place-items:center;padding:0 7px}
.cu-n[hidden]{display:none}
:root[data-theme="dark"] .cu-n{color:#17140f}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .cu-n{color:#17140f} }
.cu-sub{font-size:13px;color:var(--grey)}
.cu-b > *{display:none}
.cu-b > .cu-on{display:grid;grid-template-columns:150px minmax(0,1fr);gap:0 18px;align-items:start;
     margin:0;padding:14px 20px;max-width:none;border-top:0}
.cu-b > .cu-on ~ .cu-on{border-top:1px solid var(--line)}
.cu-b > .cu-on::before{content:attr(data-ic) "\2002" attr(data-label);grid-column:1;grid-row:1 / span 9;
     font:800 13.5px/1.35 var(--disp);color:var(--ink);padding-top:2px}
.cu-b > .cu-on > *{grid-column:2;min-width:0}
/* each row's own card, flattened into the box */
.cu .dbtline a,.cu .jrline > a,.cu .liveline a,.cu .reqline a,.cu .reqline .flat,.cu #runbook .rblink{
     background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0}
.cu .dbtline a:hover,.cu .jrline > a:hover,.cu .liveline a:hover,.cu .reqline a:hover,.cu #runbook .rblink:hover{box-shadow:none;background:transparent}
.cu .rm{border:0;border-radius:0;box-shadow:none;background:transparent;padding:14px 20px 4px}
.cu .rm .rm-h{padding:0 0 4px}
.cu .rm .rm-bell,.cu .rm .rm-h .t{display:none}
.cu .rm .rm-h .rm-r{margin-left:0}
.cu .payline{gap:0}
.cu .payline > * + *{margin-top:10px}
.cu .payline .pya{margin:0}
.cu-ok{display:none;align-items:center;gap:8px;padding:12px 18px;font:800 14px/1.3 var(--disp);color:var(--ok-ink)}
.cu-ok .m{font-weight:600;color:var(--grey);font-family:inherit}
.cu.clear{box-shadow:none;background:var(--ok-bg);border-color:var(--ok-line);border-radius:14px;margin:0 auto 22px;max-width:640px}
.cu.clear .cu-h,.cu.clear .cu-b{display:none}
.cu.clear .cu-ok{display:flex;justify-content:center}
@media (max-width:760px){
  .cu-h{padding:13px 15px}.cu-sub{flex-basis:100%}
  .cu-b > .cu-on{grid-template-columns:minmax(0,1fr);padding:13px 15px}
  .cu-b > .cu-on::before{grid-row:auto;grid-column:1;margin-bottom:6px;font-size:12.5px;color:var(--gold-text)}
  .cu-b > .cu-on > *{grid-column:1}
  .cu .rm{padding:13px 15px 4px}
}

/* the Welcome Room banner */
.welb{margin:0}
.wl{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center;padding:24px 28px;
    border-radius:20px;text-decoration:none;color:#f6eedb;overflow:hidden;
    background:radial-gradient(120% 140% at 0% 0%,#4a3812 0%,#1c160d 45%,#120f0a 100%);
    border:1px solid #6b5420;box-shadow:0 18px 40px -20px rgba(60,40,5,.55);transition:transform .15s,box-shadow .15s}
.wl:after{content:"";position:absolute;right:-60px;top:-90px;width:260px;height:260px;border-radius:50%;
    background:radial-gradient(circle,rgba(226,182,82,.26),transparent 70%);pointer-events:none}
.wl:hover{transform:translateY(-2px);box-shadow:0 22px 44px -20px rgba(60,40,5,.7)}
.wl .wi{width:68px;height:68px;border-radius:18px;background:linear-gradient(145deg,#e7c46b,#b98a2a);color:#1b1408;
    display:grid;place-items:center;box-shadow:0 8px 20px -8px rgba(231,196,107,.6)}
.wl .wi svg{width:32px;height:32px}
.wl .ey{font:800 11px/1.4 var(--disp);letter-spacing:2px;text-transform:uppercase;color:#e7c46b}
.wl .t{font:800 26px/1.15 var(--disp);letter-spacing:-.4px;margin:4px 0;color:#fff}
.wl .b{font-size:14.5px;line-height:1.5;color:#d9cdb2}
.wl .bt{position:relative;z-index:1;background:#e7c46b;color:#1b1408;font:800 14px/1 var(--disp);border-radius:999px;
    padding:13px 22px;white-space:nowrap}
@media (max-width:760px){
  .wl{grid-template-columns:auto minmax(0,1fr);padding:18px;gap:14px}
  .wl .wi{width:54px;height:54px;border-radius:15px}.wl .wi svg{width:26px;height:26px}
  .wl .t{font-size:20px}.wl .bt{grid-column:1 / -1;text-align:center}
}

/* both courses: a big card each */
.cs{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.cc{position:relative;display:flex;flex-direction:column;gap:12px;padding:26px 28px 20px;border-radius:22px;min-height:290px;
    background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-decoration:none;color:inherit;
    overflow:hidden;text-align:left;transition:transform .15s,box-shadow .15s,border-color .15s}
.cc:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--gold),var(--gold-light))}
.cc:hover{transform:translateY(-2px);box-shadow:var(--shadow-h);border-color:var(--gold-line)}
.cc .ey{font:800 11px/1 var(--disp);letter-spacing:2px;text-transform:uppercase;color:var(--gold-text)}
.cc .t{font:800 30px/1.1 var(--disp);letter-spacing:-.5px;color:var(--ink)}
.cc .ls{font-size:15px;line-height:1.55;color:var(--grey)}
.cc .ics{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:8px}
.cc .ics span{width:46px;height:46px;border-radius:13px;background:var(--dark);color:var(--gold-light,#e7c46b);display:grid;place-items:center}
.cc .ics span.no{background:var(--line);color:var(--grey)}
.cc .ics svg{width:22px;height:22px}
.cc .ft{border-top:1px solid var(--line);padding-top:13px}
.cc .ft b{font:800 12.5px/1 var(--disp);letter-spacing:1.8px;text-transform:uppercase;color:var(--gold-text)}
@media (max-width:760px){
  .cs{grid-template-columns:1fr;gap:14px}
  .cc{min-height:0;padding:22px 20px 18px}.cc .t{font-size:25px}
  .cc .ics span{width:40px;height:40px}.cc .ics svg{width:19px;height:19px}
}

/* inside one course */
.rgroup .crumb{display:inline-block;font:800 14px/1 var(--disp);color:var(--gold-text);text-decoration:none;margin:0 0 14px}
.rgroup h2.inh{font:800 27px/1.15 var(--disp);letter-spacing:-.4px;text-transform:none;color:var(--ink);margin:0 0 16px}
.rgroup h2.inh .n{font-size:14px;font-weight:600;letter-spacing:0;color:var(--grey)}
body.in-course #catchup,body.in-course #rlinks{display:none}

/* a course this login has nothing in */
.lk{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 18px;border-radius:16px;
    background:var(--surface-2);border:1px dashed var(--line-input,var(--line));color:var(--grey);text-align:left}
.lk-ics{display:flex;gap:6px}
.lk-ics span{width:32px;height:32px;border-radius:9px;background:var(--line);color:var(--grey);display:grid;place-items:center}
.lk-ics svg{width:16px;height:16px}
.lk-t b{display:block;font:800 15px/1.3 var(--disp);color:var(--grey)}
.lk-t span{font-size:13px;color:var(--grey)}
.lk-tag{font:800 10.5px/1 var(--disp);letter-spacing:1.3px;text-transform:uppercase;border:1px solid var(--line);
    border-radius:999px;padding:6px 10px;background:var(--surface);white-space:nowrap}
@media (max-width:760px){ .lk{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 15px} .lk-tag{justify-self:start} }

/* the lines under the rooms */
.rlinks{margin-top:24px}
.rlinks .rblink{margin:0 0 12px}
.cu .liveline .dot{display:none}
