/* © 2026 William C. Chesher. All Rights Reserved.
   admin.css - the sfhsbta admin's one stylesheet: the BTA design system's tokens, the suite shell, the components.

   Values are the BTA Design System's (sfhsbta/content/site/_ds/.../tokens/*.css), restated here because the
   admin image does not ship the site: one yellow, warm neutrals, Montserrat for the voice of the thing,
   Barlow to read, JetBrains Mono for IDs, PINs and numbers. Flat blocks and hard rules, lift used sparingly. */

@font-face{font-family:Montserrat;src:url(/admin/asset/montserrat-var-n-latin.woff2) format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Barlow;src:url(/admin/asset/barlow-400-n-latin.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Barlow;src:url(/admin/asset/barlow-600-n-latin.woff2) format("woff2");
  font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/admin/asset/jetbrains-mono-var-n-latin.woff2) format("woff2");
  font-weight:100 800;font-style:normal;font-display:swap}

/* NO VISIBLE FONT SWAP. The fix sfhsbta.com landed after getting it wrong twice (its fonts.css carries
   the history): swap alone re-lays the page out when the face arrives, optional alone draws a whole page
   view in the fallback when a face misses its window. So: swap, every face the first screen draws is
   preloaded in the page head (shell.py), and the fallback is these metric-matched faces, which put a line
   of Arial in the SAME box the webfont will occupy, so the swap moves nothing. size-adjust is matched on
   advance width (x-height matching still rewraps); the ascent/descent overrides are divided by it. The
   regular faces are the site's own browser-calibrated values (the files are byte-identical); the bold
   faces are matched against Arial Bold, because the admin's headings and sidebar sit at 600-800 and a
   regular-calibrated face synthesised to bold runs wide. Liberation Sans is Arial's metric clone on
   Linux: naming only Arial binds to nothing there and the adjustment silently does nothing. No mono
   fallback on purpose: ui-monospace already measures within half a percent of JetBrains Mono. */
@font-face{font-family:"Montserrat Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("LiberationSans");
  font-weight:100 500;size-adjust:110.40%;ascent-override:87.68%;descent-override:22.74%;line-gap-override:0%}
@font-face{font-family:"Montserrat Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold");
  font-weight:600 900;size-adjust:110.28%;ascent-override:87.78%;descent-override:22.76%;line-gap-override:0%}
@font-face{font-family:"Barlow Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("LiberationSans");
  font-weight:100 500;size-adjust:94.20%;ascent-override:106.15%;descent-override:21.23%;line-gap-override:0%}
@font-face{font-family:"Barlow Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold");
  font-weight:600 900;size-adjust:91.41%;ascent-override:109.40%;descent-override:21.88%;line-gap-override:0%}

:root{
  color-scheme:light;
  --yellow:#FFDE59;--yellow-tint:#FFF9E6;--yellow-tint-2:#FFF0B1;--yellow-shade:#E0BE3C;--yellow-text:#A8801A;
  --ink:#1B1B1B;--ink2:#2A2A2A;--ink3:#3D3D3D;--paper:#FEFEFE;
  --g50:#F7F7F5;--g100:#EEEEEB;--g200:#DEDEDA;--g300:#C2C2BC;--g400:#91918B;--g500:#6C6C67;--g600:#4A4A46;
  --good:#2E7D32;--good-bg:#E8F3E9;--warn:#9A5C00;--warn-bg:#FDF2DC;--bad:#C62828;--bad-bg:#F9E7E7;
  --info:#1565C0;--info-bg:#E6EEF8;
  /* roles the dark theme moves separately from the ramp: the chrome (the sidebar, the Status hero, ink buttons) stays
     the darkest thing on the page in both themes; text on the yellow is always ink */
  --chrome:#1B1B1B;--chrome-3:#3D3D3D;--on-chrome:#FEFEFE;--on-chrome-soft:#E9E9E4;--on-yellow:#1B1B1B;
  --good-ink:#1C5B34;--bad-ink:#8A1B1B;--warn-mid:#E08A00;
  --note-bg:#FFF8DC;--note-line:#EFDFA0;--err-bg:#FDECEC;--err-line:#E9C3C3;--yellow-line:#F1E4B5;
  --bad-line:#EBC9C9;--warn-line:#F2DDB4;--info-line:#C7D7EE;
  --row-hover:#FCFCFA;--draft-bg:#F1EFE7;--media-ground:#EDEBE5;
  /* the names the existing pages already use */
  --quiet:var(--g500);--line:var(--g200);--sub:var(--g50);--accent:var(--yellow);
  --r:14px;--r-sm:8px;--r-md:10px;
  --shadow-1:0 1px 2px rgba(27,27,27,.06);--shadow-2:0 2px 8px rgba(27,27,27,.08);
  --shadow-hard:4px 4px 0 var(--ink);
  --focus:0 0 0 3px var(--yellow),0 0 0 5px var(--ink);
  --font-core:Montserrat,"Montserrat Fallback","Helvetica Neue",Helvetica,system-ui,sans-serif;
  --font-text:Barlow,"Barlow Fallback","Helvetica Neue",Helvetica,system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --side:252px;
  --control:44px;--control-sm:38px;
  --fast:140ms;--ease:cubic-bezier(.2,0,.2,1);
}
@media (prefers-reduced-motion:reduce){:root{--fast:0ms}}

/* THE ADMIN IS DARK (wchesher, 2026-10-30: "its time we move sfhsbta.com to dark interface", then "I meant /admin").
   One committed dark theme, on every page shell.py marks data-theme="dark" (every signed-in page and the sign-in);
   the public pages that share this file (/consent for families, /pin for students) stay light. The BTA design
   system's own inverted scope ([data-theme="ink"], tokens/colors.css) is where these start: ink ground, white and
   grey-200 text, the one yellow as the accent; the ramp below walks the same warm neutrals the other way. Screen
   only: a printed slip (.slip) stays black on white. */
@media screen{
  [data-theme="dark"]{
    color-scheme:dark;
    --ink:#EDEDE8;--ink2:#D9D9D3;--ink3:#B8B8B1;--paper:#1E1E1C;
    --g50:#131312;--g100:#272724;--g200:#33332F;--g300:#4A4A45;--g400:#7C7C75;--g500:#A6A69E;--g600:#C9C9C2;
    --yellow-tint:#2B2716;--yellow-tint-2:#463C14;--yellow-text:#FFDE59;--yellow-line:#4F4418;
    --good:#5CC46B;--good-bg:#17301B;--good-ink:#A3E5AC;
    --warn:#F2B451;--warn-bg:#33270F;--warn-mid:#F0A030;--warn-line:#5A4318;
    --bad:#FF6B6B;--bad-bg:#3A1818;--bad-ink:#FFB8B8;--bad-line:#682A2A;
    --info:#7DB1F2;--info-bg:#152536;--info-line:#25456A;
    --chrome:#0B0B0A;--chrome-3:#2B2B28;
    --note-bg:#2B2716;--note-line:#4F4418;--err-bg:#3A1818;--err-line:#682A2A;
    --row-hover:#242422;--draft-bg:#272724;--media-ground:#272724;
    --shadow-1:0 1px 2px rgba(0,0,0,.4);--shadow-2:0 4px 14px rgba(0,0,0,.45);
    --shadow-hard:4px 4px 0 var(--yellow);
    --focus:0 0 0 3px var(--yellow),0 0 0 5px var(--g50);
  }
  [data-theme="dark"] .side{border-right:1px solid var(--chrome-3)}
  [data-theme="dark"] .st-hero{border-top:1px solid var(--chrome-3);border-right:1px solid var(--chrome-3);
    border-bottom:1px solid var(--chrome-3)}
  [data-theme="dark"] img,[data-theme="dark"] video{color-scheme:light}
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--g50);color:var(--ink);font:16px/1.55 var(--font-text)}
a{color:var(--ink);text-underline-offset:3px}
a:hover{color:var(--yellow-text)}
:focus-visible{outline:none;box-shadow:var(--focus);border-radius:6px}
.mono,code,kbd{font-family:var(--font-mono);font-size:.92em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- the suite shell -------------------------------------------------------------------------------- */
.band{height:8px;background:var(--yellow)}
.suite{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh;
  background:linear-gradient(to right,var(--chrome) var(--side),transparent var(--side))}
.side{background:var(--chrome);color:var(--on-chrome);position:sticky;top:0;height:100vh;overflow-y:auto;
  display:flex;flex-direction:column;border-top:8px solid var(--yellow)}
.side .brand{display:flex;align-items:center;gap:12px;padding:22px 20px 18px;text-decoration:none;color:var(--on-chrome)}
.side .brand img{width:40px;height:40px;border-radius:50%;display:block;background:var(--on-chrome)}
.side .brand b{display:block;color:var(--on-chrome);font:800 13px/1.1 var(--font-core);letter-spacing:.04em;text-transform:uppercase}
.side .brand span{display:block;font:600 10px/1.4 var(--font-core);letter-spacing:.28em;text-transform:uppercase;
  color:var(--yellow);margin-top:3px}
.side nav{padding:4px 12px 18px;flex:1}
.side .group{font:800 10px/1 var(--font-core);letter-spacing:.2em;text-transform:uppercase;color:var(--g400);
  margin:20px 10px 8px}
.side nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;margin:1px 0;
  border-radius:var(--r-sm);color:var(--on-chrome-soft);text-decoration:none;font:600 14px/1.25 var(--font-core);
  transition:background var(--fast) var(--ease),color var(--fast) var(--ease)}
.side nav a:hover{background:var(--chrome-3);color:var(--on-chrome)}
.side nav a.on{background:var(--yellow);color:var(--on-yellow)}
.side nav a .count{font:700 11px/1 var(--font-mono);padding:3px 7px;border-radius:999px;background:var(--chrome-3);
  color:var(--on-chrome)}
.side nav a.on .count{background:var(--on-yellow);color:var(--yellow)}
.side nav a .count.alert{background:var(--bad);color:var(--on-chrome)}
.side nav a.out::after{content:"\2197";font-size:12px;color:var(--g400)}
.side nav .planned{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;
  margin:1px 0;color:var(--g400);font:600 14px/1.25 var(--font-core);cursor:default}
.side nav .planned .soon{font:700 9px/1 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;
  padding:3px 6px;border:1px solid var(--chrome-3);border-radius:999px}
.side .foot{padding:14px 20px 20px;border-top:1px solid var(--chrome-3);display:flex;align-items:center;
  justify-content:space-between;gap:10px;font-size:12px;color:var(--g400)}
.side .foot a.who{color:var(--on-chrome);text-decoration:none;font-weight:600}
.side .foot a.who:hover{color:var(--yellow)}
.side .foot button{background:transparent;color:var(--on-chrome);border-color:var(--chrome-3)}
.side .foot button:hover{border-color:var(--yellow);color:var(--yellow)}

.main{min-width:0;display:flex;flex-direction:column}
.top{background:var(--paper);border-bottom:1px solid var(--line)}
.top .in,.content{max-width:1180px;margin:0 auto;padding-left:36px;padding-right:36px}
.top .in{padding-top:26px;padding-bottom:22px;display:flex;align-items:flex-end;justify-content:space-between;
  gap:18px;flex-wrap:wrap}
.content{padding-top:28px;padding-bottom:90px;width:100%}
.eyebrow{margin:0 0 8px;font:800 11px/1 var(--font-core);letter-spacing:.2em;text-transform:uppercase;color:var(--g500)}
.eyebrow::before{content:"";display:inline-block;width:18px;height:3px;background:var(--yellow);
  vertical-align:middle;margin:-2px 8px 0 0}
h1{font:800 32px/1.05 var(--font-core);letter-spacing:-.01em;margin:0;text-transform:uppercase}
.top .lede{margin:10px 0 0;color:var(--g600);max-width:70ch;font-size:15px}
.top .actions{display:flex;gap:10px;flex-wrap:wrap}
h2{font:800 13px/1.2 var(--font-core);letter-spacing:.14em;text-transform:uppercase;color:var(--g600);margin:0 0 12px}
h3{font:700 17px/1.3 var(--font-core);margin:0 0 6px}
.section{font:800 12px/1.2 var(--font-core);letter-spacing:.16em;text-transform:uppercase;color:var(--g500);
  margin:34px 0 14px;display:flex;align-items:center;gap:10px}
.section::after{content:"";flex:1;height:1px;background:var(--line)}

/* the public pages (sign-in, the permission form): no sidebar, one column */
.solo .mast{background:var(--paper);border-bottom:1px solid var(--line)}
.solo .mast .in{max-width:880px;margin:0 auto;padding:16px 22px;display:flex;align-items:center;gap:14px}
.solo .mast img{width:38px;height:38px;border-radius:50%;display:block}
.solo .word{display:flex;flex-direction:column;line-height:1.05}
.solo .word b{font:800 15px/1.1 var(--font-core);letter-spacing:.01em;text-transform:uppercase}
.solo .word span{font:600 11px/1.4 var(--font-core);letter-spacing:.18em;text-transform:uppercase;color:var(--g500)}
.solo .wrap{max-width:880px;margin:0 auto;padding:34px 22px 90px}
.solo h1{margin-bottom:22px}

/* ---- components ------------------------------------------------------------------------------------- */
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;margin:0 0 18px}
.panel.flush{padding:0;overflow:hidden}
.panel > h2:first-child,.panel > h3:first-child{margin-top:0}
/* a panel that folds a reference away until the operator wants it (Students: "How it works") */
details.explainer > summary{cursor:pointer;list-style:none}
details.explainer > summary::-webkit-details-marker{display:none}
details.explainer > summary > h2{display:inline-block;margin:0}
details.explainer > summary::after{content:" \25B8";color:var(--g600)}
details.explainer[open] > summary::after{content:" \25BE"}
.panel .head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}
.cols.two{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
.muted{color:var(--g500)}
.small{font-size:13px}
.empty{color:var(--g500);font-size:14px}
.empty-state{text-align:center;padding:38px 20px;color:var(--g500)}
.empty-state b{display:block;font:800 15px/1.3 var(--font-core);color:var(--ink);margin-bottom:6px}

/* stat tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin:0 0 26px}
.tile{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:18px 18px 16px;
  text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:6px;position:relative;
  transition:transform var(--fast) var(--ease),box-shadow var(--fast) var(--ease),border-color var(--fast) var(--ease)}
a.tile:hover{transform:translateY(-1px);box-shadow:var(--shadow-hard);border-color:var(--ink);color:var(--ink)}
.tile .k{font:800 11px/1 var(--font-core);letter-spacing:.18em;text-transform:uppercase;color:var(--g500)}
.tile .v{font:800 34px/1 var(--font-core);letter-spacing:-.02em}
.tile .v small{font:600 14px/1 var(--font-core);color:var(--g500);letter-spacing:0;margin-left:4px}
.tile .d{font-size:13px;color:var(--g600)}
.tile.good{border-left:4px solid var(--good)}
.tile.warn{border-left:4px solid var(--warn-mid)}
.tile.bad{border-left:4px solid var(--bad)}

/* servers (machines.py): one card per machine, a meter per disk, memory and graphics card */
.machines{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin:0 0 18px}
.machine{background:var(--sub);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;min-width:0}
.machine.good{border-left:4px solid var(--good)}
.machine.warn{border-left:4px solid var(--warn-mid)}
.machine.bad{border-left:4px solid var(--bad)}
.machine-head{margin:0 0 10px;line-height:1.6}
.machine dl.kv{font-size:13px;gap:6px 14px}
.machine dd{overflow-wrap:anywhere}
.meter{display:inline-block;width:64px;height:7px;border-radius:4px;background:var(--g200);vertical-align:middle;
  overflow:hidden;margin-right:6px}
.meter>span{display:block;height:100%;background:var(--good)}
.meter.warn>span{background:var(--warn-mid)}
.meter.bad>span{background:var(--bad)}

/* attention list */
.attention{list-style:none;margin:0;padding:0}
.attention li{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--g100)}
.attention li:first-child{border-top:0}
.attention .dot{flex:none;width:10px;height:10px;border-radius:50%;margin-top:7px;background:var(--g300)}
.attention .warn .dot{background:var(--warn-mid)}.attention .bad .dot{background:var(--bad)}.attention .good .dot{background:var(--good)}
.attention a{font-weight:600}

/* tables */
.table-wrap{overflow-x:auto}
/* a flush panel clips its corners; a table inside one still scrolls sideways (it was clipped on a phone) */
.panel.flush.table-wrap{overflow-x:auto}
table.data{width:100%;border-collapse:collapse;font-size:14px}
table.data th{font:800 10.5px/1.2 var(--font-core);letter-spacing:.14em;text-transform:uppercase;color:var(--g500);
  text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);background:var(--g50);white-space:nowrap}
table.data td{padding:11px 14px;border-bottom:1px solid var(--g100);vertical-align:middle}
table.data tr:last-child td{border-bottom:0}
table.data tbody tr:hover td{background:var(--row-hover)}
table.data td.num,table.data th.num{text-align:right;font-family:var(--font-mono)}
table.data .pin{font:700 15px/1 var(--font-mono);letter-spacing:.12em}
table.data .id{font-family:var(--font-mono);font-size:13px}
table.data .row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
tr[hidden]{display:none}

/* key/value */
dl.kv{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:0;font-size:14px}
dl.kv dt{color:var(--g500);font:700 11px/1.9 var(--font-core);letter-spacing:.12em;text-transform:uppercase}
dl.kv dd{margin:0}
dl.kv.stack{grid-template-columns:1fr;gap:2px}
dl.kv.stack dd{margin:0 0 12px}

/* buttons */
button,.btn{font:800 12px/1 var(--font-core);letter-spacing:.07em;text-transform:uppercase;padding:10px 16px;
  border:1px solid var(--line);border-radius:999px;background:var(--paper);cursor:pointer;color:var(--ink);
  text-decoration:none;display:inline-flex;align-items:center;gap:7px;
  transition:border-color var(--fast) var(--ease),background var(--fast) var(--ease),transform var(--fast) var(--ease)}
button:hover,.btn:hover{border-color:var(--ink);color:var(--ink)}
button:active,.btn:active{transform:scale(.97)}
button.primary,.btn.primary{background:var(--yellow);border-color:var(--yellow-shade);color:var(--on-yellow)}
button.primary:hover,.btn.primary:hover{border-color:var(--ink)}
button.ink,.btn.ink{background:var(--chrome);color:var(--on-chrome);border-color:var(--chrome-3)}
button.ink:hover,.btn.ink:hover{color:var(--yellow)}
button.danger,.btn.danger{color:var(--bad-ink);border-color:var(--bad-line)}
button.danger:hover,.btn.danger:hover{background:var(--bad-bg);border-color:var(--bad)}
button.small,.btn.small{padding:7px 11px;font-size:11px}
/* Products by period: one switch a cell, so the table fits a half-width column without scrolling */
table.data.switches{table-layout:fixed}
table.data.switches th,table.data.switches td{padding:9px 6px}
table.data.switches th[scope=row]{font:700 13px/1.25 var(--font-core);letter-spacing:0;text-transform:none;color:var(--ink)}
table.data.switches th[scope=row] .sub{display:block;font-weight:400;margin-top:2px;white-space:nowrap}
/* the Who column gets the room its "35 students" needs; the switches share the rest, centred under their heads */
table.data.switches col.who{width:31%}
table.data.switches td,table.data.switches thead th:not(:first-child){text-align:center}
table.data.switches td .sub{display:block;margin-top:3px;white-space:nowrap;min-height:1.4em}
button.switch{display:inline-flex;align-items:center;gap:6px;padding:4px 9px 4px 4px;border-radius:999px;
  font:800 10.5px/1 var(--font-core);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;
  background:var(--bad-bg);color:var(--bad-ink);border:0;box-shadow:none}
button.switch .knob{width:14px;height:14px;border-radius:50%;background:currentColor;flex:none}
button.switch.on{background:var(--good-bg);color:var(--good-ink);flex-direction:row-reverse;padding:4px 4px 4px 9px}
button.switch.some{background:var(--warn-bg);color:var(--warn);letter-spacing:.02em}
button.link{border:0;padding:0;background:none;text-transform:none;letter-spacing:0;font:600 14px/1.4 var(--font-text);
  text-decoration:underline;text-underline-offset:3px}
button[disabled]{opacity:.45;cursor:not-allowed}
form.inline{display:inline}
/* a lone row action (Remove) at the same height as the combos beside it */
button.control,.btn.control{height:var(--control-sm);padding:0 14px;font-size:11px}
table.data td.end{text-align:right;white-space:nowrap}
table.data td.who{min-width:150px;max-width:220px}
table.data td.who .by{display:block;margin-top:2px;line-height:1.35}
table.data .nowrap{white-space:nowrap}

/* forms */
label{display:block;margin:14px 0 6px;font:800 11px/1.2 var(--font-core);letter-spacing:.1em;text-transform:uppercase;
  color:var(--g500)}
input[type=text],input[type=password],input[type=search],input[type=number],input[type=email],input[type=url],
input[type=file],select,textarea{font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--line);
  border-radius:var(--r-md);width:100%;background:var(--paper);color:var(--ink)}
textarea{min-height:140px;resize:vertical;font-family:var(--font-mono);font-size:13px;line-height:1.5}
select{appearance:none;-webkit-appearance:none;padding-right:34px;
  background-image:linear-gradient(45deg,transparent 50%,var(--g500) 50%),linear-gradient(135deg,var(--g500) 50%,transparent 50%);
  background-position:calc(100% - 18px) 51%,calc(100% - 12px) 51%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px var(--yellow)}
.field-row{display:flex;gap:14px;flex-wrap:wrap}
.field-row > *{flex:1 1 180px}
.hint{font-size:13px;color:var(--g500);margin:6px 0 0}
/* the bottom of a form: the submit button at field height, clear of the last hint */
.form-foot{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0 0}
.form-foot button,.form-foot .btn{min-height:var(--control);padding:0 22px}
/* one field and its button read as one control: the inline row edit (a role and Change, a password and Set) */
.combo{display:flex;align-items:stretch;min-width:200px;max-width:280px;margin:0}
.combo > input,.combo > select{flex:1 1 auto;min-width:0;width:auto;height:var(--control-sm);padding-top:0;
  padding-bottom:0;font-size:14px;border-radius:var(--r-md) 0 0 var(--r-md)}
.combo > select{background-position:calc(100% - 18px) 51%,calc(100% - 12px) 51%}
.combo > button{flex:none;height:var(--control-sm);margin-left:-1px;padding:0 14px;font-size:11px;
  border-radius:0 var(--r-md) var(--r-md) 0;background:var(--g50)}
.combo > button:hover{background:var(--yellow);border-color:var(--ink);color:var(--on-yellow)}
.combo > :focus,.combo > button:hover{position:relative;z-index:1}
ul.plain{margin:0 0 10px;padding-left:18px}
.cols.spaced{margin-top:26px}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.toolbar input[type=search]{max-width:340px}
.check{display:flex;gap:9px;align-items:flex-start;margin:12px 0 0;font:400 14px/1.4 var(--font-text);
  text-transform:none;letter-spacing:0;color:var(--ink2)}
.check input{width:auto;margin-top:3px}

/* chips and tags */
.tag,.chip{display:inline-flex;align-items:center;gap:5px;font:800 10px/1 var(--font-core);letter-spacing:.12em;
  text-transform:uppercase;padding:5px 9px;border-radius:999px;background:var(--g100);color:var(--g600);white-space:nowrap}
.tag.published,.chip.good{background:var(--good-bg);color:var(--good-ink)}
.tag.draft{background:var(--draft-bg);color:var(--g500)}
.chip.warn{background:var(--warn-bg);color:var(--warn)}
.chip.bad{background:var(--bad-bg);color:var(--bad-ink)}
.chip.info{background:var(--info-bg);color:var(--info)}
.chip.ink{background:var(--chrome);color:var(--yellow)}
.chip.product{background:var(--yellow-tint);color:var(--ink);box-shadow:inset 0 0 0 1px var(--yellow-shade)}

/* flash */
.note,.err{border-radius:12px;padding:13px 16px;margin:0 0 20px;font-size:14px}
.note{background:var(--note-bg);border:1px solid var(--note-line)}
.err{background:var(--err-bg);border:1px solid var(--err-line)}

/* media cards (the existing library) */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.card img,.card video{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;background:var(--media-ground)}
.card .meta{padding:13px 14px;display:flex;flex-direction:column;gap:9px;flex:1}
.card .name{font-weight:600;font-size:14px;word-break:break-word}

/* PIN slips: a sheet a teacher cuts up */
.slips{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.slip{border:1.5px dashed var(--g400);border-radius:var(--r-sm);padding:14px 16px;background:var(--paper);break-inside:avoid}
.slip .who{font:800 15px/1.2 var(--font-core)}
.slip .where{font-size:12px;color:var(--g500);margin:2px 0 10px}
.slip .line{display:flex;justify-content:space-between;font:600 13px/1.6 var(--font-text)}
.slip .line b{font:700 16px/1.6 var(--font-mono);letter-spacing:.1em}
.slip .url{font-size:11px;color:var(--g500);margin-top:8px}

/* ---- narrow screens: the sidebar becomes a top bar ---------------------------------------------- */
@media (max-width:900px){
  .suite{grid-template-columns:1fr;background:none;align-content:start}
  .side{position:static;height:auto;border-top-width:6px}
  .side .brand{padding:14px 16px}
  .side nav{display:flex;gap:4px;overflow-x:auto;padding:0 10px 12px;scrollbar-width:none}
  .side nav::-webkit-scrollbar{display:none}
  .side .group{display:none}
  .side nav a,.side nav .planned{white-space:nowrap;flex:none}
  /* the brand and the account (name, sign out) share the first row; the sections scroll beneath them */
  .side{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand foot" "nav nav"}
  .side .brand{grid-area:brand}
  .side .foot{grid-area:foot;border-top:0;padding:0 14px 0 0;gap:8px}
  .side nav{grid-area:nav;-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);
    mask-image:linear-gradient(to right,#000 82%,transparent);padding-right:48px}
  .top .in,.content{padding-left:16px;padding-right:16px}
  h1{font-size:26px}
  .cols.two{grid-template-columns:1fr}
  dl.kv{grid-template-columns:1fr}
}

@media (max-width:600px){
  .tiles{grid-template-columns:1fr 1fr;gap:10px}
  .tile{padding:14px}
  .tile .v{font-size:26px}
}

/* ---- print: a slip sheet or a list, nothing else --------------------------------------------------- */
@media print{
  body{background:#fff}
  .side,.top .actions,.toolbar,.no-print,.band,form{display:none!important}
  .suite{display:block}
  .top{border:0}
  .content,.top .in{padding:0;max-width:none}
  .panel{border:0;padding:0}
  .slip{border-color:#000}
}

/* THE REPORT CARD (reports_views._report; wchesher, 2026-10-22: "also redo the interface of individual feedback").
   Who and where on one quiet line, the words lead, the facts under them, the screenshot beside, one outcome bar at the
   foot (a segmented pick, the line to them, the feature), Delete and the trail last. */
.rc{margin:0 0 20px}
.rc-top{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;padding:16px 24px;border-bottom:1px solid var(--g100)}
.rc-who{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;min-width:0;font-size:16px}
.rc-who > b{font:700 17px/1.2 var(--font-core)}
.rc-who .small{font-size:14px}
.rc .chip{font-size:12px;padding:6px 11px}
.rc-id{font:600 15px/1 var(--font-mono);color:var(--g500)}
.rc-when{font-size:15px;color:var(--g500)}
.rc-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;padding:22px 24px 24px}
.rc-main{display:grid;gap:14px;min-width:0;align-content:start}
.rc-words{margin:0;font:500 21px/1.5 var(--font-text);white-space:pre-wrap;overflow-wrap:anywhere;max-width:72ch}
.rc-meta{display:flex;flex-wrap:wrap;gap:6px 24px;margin:0;padding:0;list-style:none;font-size:15px;color:var(--g600)}
.rc-meta li{min-width:0;overflow-wrap:anywhere}
.rc-meta b{font:800 11px/1 var(--font-core);letter-spacing:.12em;text-transform:uppercase;color:var(--g500);margin-right:8px}
.rc-shot img{display:block;width:150px;max-width:100%;max-height:120px;object-fit:cover;object-position:top;border:1px solid var(--line);border-radius:var(--r-sm)}
.rc-shots{display:grid;gap:6px;align-content:start}
.rc-shots.many{grid-template-columns:repeat(2,96px)}
.rc-shots.many .rc-shot img{width:96px;max-height:80px}
.rc-outcome{display:grid;gap:14px;padding:18px 24px;background:var(--yellow-tint);border-top:1px solid var(--yellow-line)}
.rc-closed{background:var(--g50);border-top-color:var(--g100)}
.rc-row{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap}
.rc-status{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-right:auto;min-width:0}
.rc-said{font-size:16px;color:var(--g600)}
.rc-seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--g300);border-radius:var(--r-sm);overflow:hidden;background:var(--paper)}
.rc-seg label{position:relative;cursor:pointer}
.rc-seg input{position:absolute;opacity:0;width:1px;height:1px}
.rc-seg span{display:block;font:700 13px/1 var(--font-core);letter-spacing:.06em;text-transform:uppercase;padding:13px 18px;color:var(--ink3);border-right:1px solid var(--g200)}
.rc-seg label:last-child span{border-right:0}
.rc-seg input:checked + span{background:var(--chrome);color:var(--yellow)}
.rc-seg input:focus-visible + span{box-shadow:var(--focus)}
.rc-hint{font-size:15px;color:var(--g600);display:none}
.rc-outcome:has(input[value="fixed"]:checked) .rc-for-fixed,
.rc-outcome:has(input[value="implemented"]:checked) .rc-for-implemented,
.rc-outcome:has(input[value="wontfix"]:checked) .rc-for-wontfix,
.rc-outcome:has(input[value="declined"]:checked) .rc-for-declined,
.rc-outcome:has(input[value="done"]:checked) .rc-for-done,
.rc-outcome:has(input[value="duplicate"]:checked) .rc-for-duplicate{display:inline}
.rc-line{flex:1 1 260px;min-width:0}
.rc-area{flex:0 1 160px;min-width:0}
.rc-by,.rc-of{flex:0 1 130px;min-width:0;display:none}
.rc-see{flex:0 1 180px;min-width:0;display:none}
.rc-outcome:has(input[value="fixed"]:checked) .rc-by,
.rc-outcome:has(input[value="fixed"]:checked) .rc-see,
.rc-outcome:has(input[value="implemented"]:checked) .rc-see,
.rc-outcome:has(input[value="duplicate"]:checked) .rc-of{display:block}
.rc-outcome:has(input[value="duplicate"]:checked) .rc-line,
.rc-outcome:has(input[value="new"]:checked) .rc-line{display:none}
/* the bulk bar: out of the way until a report is ticked, then held at the top while the cards scroll */
.rc-tick{width:20px;height:20px;margin:0 4px 0 0}
.rc-bulk{display:none;position:sticky;top:8px;z-index:5;margin:0 0 16px;border:1px solid var(--yellow-line)}
body:has(.rc-tick:checked) .rc-bulk{display:grid}
.rc-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 24px 14px;border-top:1px solid var(--g100)}
.rc-trail{font-size:15px}
.rc-trail summary{cursor:pointer;color:var(--g600);font-weight:600}
.rc-trail ul{margin:6px 0 0;padding-left:18px}
button.rc-delete{border-color:transparent;background:transparent;color:var(--g500)}
button.rc-delete:hover{color:var(--bad);border-color:var(--bad);background:var(--bad-bg)}
.rc.rc-done .rc-words{color:var(--g600)}
/* The inbox's filters: one labelled row per thing they narrow, pills big enough to read and hit. */
.rc-filters{display:grid;gap:12px;margin:0 0 24px;padding:18px 24px;border:1px solid var(--line);border-radius:var(--r);background:var(--paper)}
.rc-filter{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px}
.rc-filter-k{font:800 11px/1 var(--font-core);letter-spacing:.14em;text-transform:uppercase;color:var(--g500)}
.rc-pills{display:flex;flex-wrap:wrap;gap:8px}
.rc-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border-radius:999px;border:1px solid var(--g200);
  font:600 15px/1 var(--font-text);color:var(--ink2);text-decoration:none;white-space:nowrap;
  transition:background var(--fast) var(--ease),border-color var(--fast) var(--ease),color var(--fast) var(--ease)}
.rc-outcome button.primary{font-size:13px;min-height:var(--control-sm);padding:0 22px}
#implemented,#implemented ~ .hint,.hint:has(+ .rc-filters){font-size:15px}
a.rc-pill:hover{border-color:var(--ink3);color:var(--ink)}
a.rc-pill:focus-visible{outline:0;box-shadow:var(--focus)}
.rc-pill.on{background:var(--yellow);border-color:var(--yellow);color:var(--on-yellow);font-weight:700}
@media (max-width:640px){.rc-filter{grid-template-columns:1fr;gap:8px}.rc-filters{padding:16px}
  .rc-top,.rc-body,.rc-outcome,.rc-foot{padding-left:16px;padding-right:16px}.rc-words{font-size:19px}}
/* The model's read on a card, and the look-over panel (feedback_reader.py): quiet, and plainly a suggestion. */
.rc-ai{display:grid;gap:6px;padding:10px 18px;background:var(--g50);border-top:1px solid var(--g100)}
.rc-ai-tag{font:800 10px/1 var(--font-core);letter-spacing:.14em;text-transform:uppercase;color:var(--g500)}
.rc-ai-gist{margin:0;font-size:15px;color:var(--ink3);max-width:72ch}
.rc-ai-fill{margin:0;font-size:13px;color:var(--g600)}
.chip.rc-ai-high{background:var(--bad-bg);color:var(--bad);border-color:var(--bad-line)}
.chip.rc-ai-medium{background:var(--warn-bg);color:var(--warn);border-color:var(--warn-line)}
.chip.rc-ai-low{background:var(--g100);color:var(--g600)}
.chip.rc-ai-verdict{background:var(--info-bg);color:var(--info);border-color:var(--info-line)}
.lo{display:grid;gap:14px;margin:0 0 16px}
.lo-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px 16px;flex-wrap:wrap}
.lo-head h2{margin:0 0 4px}
.lo-head .hint{margin:0;max-width:64ch}
.lo-themes{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.lo-themes li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:baseline}
.lo-n{font:700 20px/1 var(--font-core);text-align:right}
.lo-themes small{display:block;color:var(--g600);font-size:13px}
.lo-ids a{margin-right:6px;font-family:var(--font-mono);font-size:12px}
@media (max-width:600px){.rc-body{grid-template-columns:1fr}.rc-shot img,.rc-shots.many .rc-shot img{width:100%;max-height:200px}.rc-shots.many{grid-template-columns:1fr 1fr}}

/* ---- the Status page and the overview's strip (status.py, status.js) ----
   Five tones, one meaning each across the board: good (well), busy (at work, the yellow), warn, bad, quiet (never
   heard from). Live readings pulse; nothing else moves. */
.st-dot{flex:none;display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--g300)}
.st-dot.good{background:var(--good)}.st-dot.busy{background:var(--yellow-shade)}.st-dot.warn{background:var(--warn-mid)}
.st-dot.bad{background:var(--bad)}
.st-chip{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:999px;white-space:nowrap;
  font:700 12px/1.2 var(--font-core);letter-spacing:.02em;background:var(--g100);color:var(--g600)}
.st-chip.good{background:var(--good-bg);color:var(--good)}.st-chip.busy{background:var(--yellow-tint-2);color:var(--ink)}
.st-chip.warn{background:var(--warn-bg);color:var(--warn)}.st-chip.bad{background:var(--bad-bg);color:var(--bad-ink)}
.st-muted{color:var(--g500);font-size:13px}
.st-mono{font-family:var(--font-mono);font-size:.92em;font-weight:600}
.st-pulse{position:relative;flex:none;display:inline-block;width:14px;height:14px}
.st-pulse span,.st-pulse::after{position:absolute;inset:0;border-radius:50%;background:var(--good)}
.st-pulse::after{content:"";animation:st-ping 2s var(--ease) infinite;opacity:.55}
.st-pulse.bad span,.st-pulse.bad::after{background:var(--bad)}
.st-pulse.warn span,.st-pulse.warn::after{background:var(--warn-mid)}
@keyframes st-ping{0%{transform:scale(1);opacity:.55}80%,100%{transform:scale(2.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.st-pulse::after{animation:none;opacity:0}}

.st-hero{background:var(--chrome);color:var(--on-chrome);border-radius:var(--r);padding:22px 24px;margin:0 0 22px;
  box-shadow:var(--shadow-2);border-left:6px solid var(--good)}
.st-hero.bad{border-left-color:var(--bad)}
.st-hero-head{display:flex;align-items:center;gap:16px}
.st-hero h2{margin:0;font:800 26px/1.15 var(--font-core);letter-spacing:-.01em;color:var(--yellow)}
.st-hero .st-muted{margin:4px 0 0;color:rgba(254,254,254,.62)}
.st-problems{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--chrome-3);display:grid;gap:8px}
.st-problems li{display:flex;gap:10px;align-items:baseline;font-size:15px}
.st-problems .st-dot{transform:translateY(-1px)}

/* THE RACK (status.js): one row per machine, the same four columns down the page -- who and its state, what it is
   doing now, three gauges (compute, memory, disk), when it last said. Its tone is a rule down the left edge. What
   needs a person sits under the row, the rack's full width. */
.st-rack{display:grid;gap:12px;margin:0 0 26px}
.st-row{display:grid;grid-template-columns:minmax(170px,1.1fr) minmax(0,2fr) auto 84px;gap:14px 24px;align-items:center;
  background:var(--paper);border:1px solid var(--line);border-left:5px solid var(--g300);border-radius:var(--r);
  padding:16px 20px;box-shadow:var(--shadow-1)}
.st-row.good{border-left-color:var(--good)}.st-row.busy{border-left-color:var(--yellow)}
.st-row.warn{border-left-color:var(--warn-mid)}.st-row.bad{border-left-color:var(--bad)}
.st-who{display:grid;gap:6px;justify-items:start;min-width:0}
.st-who-name{display:flex;align-items:center;gap:9px}
.st-row h3{margin:0;font:800 17px/1.2 var(--font-core)}
.st-does{margin:0;font-size:13px;color:var(--g500);line-height:1.35}
.st-now{display:grid;gap:8px;min-width:0}
.st-now p{margin:0}
.st-now-head{font:600 15px/1.35 var(--font-text);color:var(--ink);overflow-wrap:anywhere}
.st-now-sub{font-size:13px;color:var(--g500)}
.st-heard{display:grid;gap:4px;justify-items:end;text-align:right}
.st-heard-v{font:600 13px/1.2 var(--font-mono);color:var(--g600);white-space:nowrap}
.st-k{font:800 10px/1 var(--font-core);letter-spacing:.16em;text-transform:uppercase;color:var(--g500);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* THE ARC GAUGE (teenyverse design system, "arc gauge" + "gauge law-line"): the ring fills with what is in use, the
   number sits in it, a second tick marks where the line is. Ink while well, yellow while at work, red past the line;
   a dashed empty ring is a resource the machine does not report. */
.st-gauges{display:grid;grid-template-columns:repeat(3,136px);gap:10px}
.st-gauge{display:grid;justify-items:center;align-content:start;gap:8px;text-align:center}
.st-dial{position:relative;width:104px;height:104px}
.st-dial svg{width:104px;height:104px;transform:rotate(-90deg);overflow:visible}
.st-track{fill:none;stroke:var(--g100);stroke-width:5}
.st-gauge.none .st-track{stroke:var(--g200);stroke-dasharray:3 4}
.st-arc{fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;transition:stroke-dashoffset .6s var(--ease)}
.st-gauge.busy .st-arc{stroke:var(--yellow-shade)}.st-gauge.warn .st-arc{stroke:var(--warn-mid)}
.st-gauge.bad .st-arc{stroke:var(--bad)}
.st-law{stroke:var(--bad);stroke-width:2.5;stroke-linecap:round}
.st-dial-v{position:absolute;inset:0;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;
  align-items:baseline;column-gap:1px;font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.st-dial-v b{font-size:26px;font-weight:700;line-height:1;letter-spacing:-.03em}
.st-dial-v small{font-size:13px;font-weight:600;color:var(--g500)}
.st-dial-v i{flex-basis:100%;text-align:center;margin-top:3px;font:700 9px/1 var(--font-core);letter-spacing:.14em;
  text-transform:uppercase;font-style:normal;color:var(--g500)}
.st-gauge.none .st-dial-v b{color:var(--g300)}
.st-gauge-k{display:grid;gap:4px;justify-items:center;max-width:136px}
.st-gauge-sub{font:500 12px/1.3 var(--font-mono);color:var(--g600);text-wrap:balance}
.st-gauge.bad .st-gauge-sub{color:var(--bad)}

/* the budget meter (teenyverse "budget meter"): a job's frames */
.st-meter{display:grid;gap:6px}
.st-meter-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;align-items:baseline;min-width:0}
.st-meter-head .st-k{white-space:normal;overflow:visible}
.st-bar{display:block;height:10px;border-radius:999px;background:var(--g100);border:1px solid var(--line);overflow:hidden}
.st-fill{display:block;height:100%;border-radius:999px;background:var(--ink);transition:width .6s var(--ease)}
.st-meter.busy .st-fill{background:var(--yellow-shade)}.st-meter.warn .st-fill{background:var(--warn-mid)}
.st-meter.bad .st-fill{background:var(--bad)}
.st-meter .st-v{font:500 12.5px/1.3 var(--font-mono);color:var(--g600)}
/* the box's watchdog under This server (status.js boxHealth): one cell per product, side by side where there is room */
.st-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 22px}
.st-box > .st-now-sub,.st-box > .st-detail-lines{grid-column:1 / -1;margin:0}
.st-product{display:grid;gap:8px;min-width:0}
.st-facts{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0;font-size:14px}
.st-facts dt{color:var(--g500)}.st-facts dd{margin:0;font-family:var(--font-mono);font-size:13px;text-align:right}

/* the two-plane grid (teenyverse "planes"): cells that share their rules */
.st-planes{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:var(--r-sm);overflow:hidden}
.st-plane{display:grid;gap:5px;padding:10px 12px;background:var(--paper)}
.st-plane b{font:700 22px/1 var(--font-mono);font-variant-numeric:tabular-nums}
.st-plane.warn b{color:var(--warn-mid)}.st-plane.zero b{color:var(--g400)}
.st-plane span{font:800 10px/1.25 var(--font-core);letter-spacing:.12em;text-transform:uppercase;color:var(--g500)}
.st-queues{list-style:none;margin:0;padding:0;display:grid;gap:5px;font-size:14px}
.st-queues li{display:flex;align-items:center;gap:8px}.st-queues .st-muted{margin-left:auto;text-align:right}

.st-tray{grid-column:1 / -1;display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--g100)}
.st-foot{margin:0;font-size:12px;line-height:1.4;color:var(--g500)}
.st-why{margin:0;font-size:14px;line-height:1.4;padding:10px 12px;border-radius:var(--r-sm);background:var(--g50);
  border-left:3px solid var(--g300)}
.st-why.warn{background:var(--warn-bg);border-left-color:var(--warn-mid);color:var(--ink)}
.st-why.bad{background:var(--bad-bg);border-left-color:var(--bad);color:var(--bad-ink)}
.st-detail{font-size:13px}
.st-detail summary{cursor:pointer;color:var(--g600);font-weight:600;width:max-content}
.st-detail-lines{margin:6px 0 0;padding-left:18px;line-height:1.5;font-family:var(--font-mono);font-size:12.5px;
  overflow-wrap:anywhere;columns:2 320px;column-gap:28px}

@media (max-width:1100px){
  .st-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who heard" "now now" "gauges gauges"}
  .st-who{grid-area:who}.st-heard{grid-area:heard;align-self:start}.st-now{grid-area:now}
  .st-gauges{grid-area:gauges;justify-content:start}
}
.st-specs{display:flex;flex-wrap:wrap;gap:6px 18px;margin:2px 0 0;padding-top:10px;border-top:1px dashed var(--g200)}
.st-specs div{display:grid;gap:3px}
.st-specs dt{font:800 9.5px/1 var(--font-core);letter-spacing:.14em;text-transform:uppercase;color:var(--g500)}
.st-specs dd{margin:0;font:600 13px/1.25 var(--font-mono);color:var(--ink)}
@media (max-width:600px){.st-row{padding:14px 16px}.st-gauges{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .st-dial,.st-dial svg{width:84px;height:84px}.st-dial-v b{font-size:21px}}

.st-list ul{list-style:none;margin:0;padding:0}
.st-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto 64px;gap:12px;align-items:center;
  padding:11px 0;border-top:1px solid var(--g100)}
.st-list li:first-child{border-top:0}
.st-list h2{margin:0}
.st-name{display:flex;flex-direction:column;min-width:0}
.st-name b,.st-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-said{font-size:13px;color:var(--g600);text-align:right}
.st-ms{font:500 12px/1 var(--font-mono);color:var(--g500);text-align:right}

.st-strip{padding:14px 18px}
.st-strip-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.st-strip-head{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font:800 15px/1.2 var(--font-core)}
.st-strip-head .st-muted{font:600 12px/1 var(--font-core);text-decoration:underline;text-underline-offset:3px}
.st-pills{display:flex;flex-wrap:wrap;gap:8px}
.st-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:999px;font-size:13px;
  background:var(--g50);border:1px solid var(--g100)}
.st-pill b{font:700 12px/1 var(--font-core)}
.st-pill.bad{background:var(--bad-bg);border-color:var(--bad-line)}.st-pill.warn{background:var(--warn-bg);border-color:var(--warn-line)}
@media (max-width:600px){.st-list li{grid-template-columns:auto minmax(0,1fr) auto}.st-ms{display:none}
  .st-hero h2{font-size:21px}}

/* ---- the overview's hero (overview._hero) ----
   wchesher, 2026-10-30: "We need a hero on the dashboard ... I spend a lot of time here. Be kind". Then 2026-11-16: "take
   a hard look at cromulent.tech homepage", "and the heros which we cycle through", "that is the style, and chairoscura",
   "and escher". So it is the house page's hero, in the admin: the copy on the left in the dark (the date, a greeting, one
   kind sentence, the doors, the two counts, the platform live), and the lamp's stage bleeding off the right edge, one of
   the house page's six drawings on each visit. It takes the page head's place, full width (shell.document masthead).
   The copy's left edge lines up with the content below it at every width (the container query units). */
.hero{container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) min(42cqw,600px);
  min-height:clamp(440px,64vh,600px);border-bottom:1px solid var(--chrome-3);background:var(--g50)}
.hero-main{display:flex;flex-direction:column;gap:18px;min-width:0;align-self:center;
  padding:56px 48px 48px calc((100cqw - min(100cqw,1180px)) / 2 + 36px)}
.hero-date{margin:0;font:400 13px/1 var(--font-mono);letter-spacing:.06em;color:var(--g500)}
.hero-hi{margin:0;font:300 clamp(40px,4.6vw,68px)/1 var(--font-core);letter-spacing:-.035em;text-transform:none;
  text-wrap:balance;color:var(--ink)}
.hero-hi em{font-style:normal}
.hero-say{margin:0;max-width:34em;font-size:18px;line-height:1.5;color:var(--g500)}
.hero-say a{color:var(--ink)}
.hero-doors{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:6px}
.hero-door{background:var(--ink);color:#0A0C0F;text-decoration:none;font:500 15px/1 var(--font-core);padding:14px 22px;
  border-radius:2px;transition:background var(--slow) ease}
.hero-door:hover{background:#FFFFFF;color:#0A0C0F}
.hero-link{font-size:15px;text-underline-offset:4px}
.hero-counts{display:flex;gap:32px;text-decoration:none;color:var(--ink);margin-top:10px}
.hero-count{display:flex;align-items:baseline;gap:10px}
.hero-count b{font:300 40px/1 var(--font-core);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.hero-count span{font:400 12.5px/1.2 var(--font-mono);letter-spacing:.04em;color:var(--g500)}
.hero-count.bad b{color:var(--bad)}.hero-count.warn b{color:var(--warn-mid)}
.hero-counts:hover span{color:var(--ink)}
/* the platform, live (status.js): a row of readouts under the copy, the house page's numbers band in small */
.hero-live{min-width:0;border-top:1px solid var(--chrome-3);padding-top:14px}
.hero-live .st-strip-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px}
.hero-live .st-strip-head{display:inline-flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;font-size:15px}
.hero-live .st-strip-head .st-muted{display:none}
.hero-live .st-muted{font:400 12px/1.3 var(--font-mono);color:var(--g500)}
.hero-live .st-pills{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:0 18px}
.hero-live .st-pill{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--chrome-3);
  background:none;border-radius:0;color:var(--ink);text-decoration:none;font:400 13px/1.2 var(--font-core);min-width:0}
/* the label keeps its width; a long reading ("Not reporting yet, 44 waiting") wraps beside it, never over it */
.hero-live .st-pill b{font:400 12px/1.2 var(--font-mono);letter-spacing:.04em;color:var(--g500);flex:1 0 auto}
.hero-live .st-pill .st-pill-word{min-width:0;text-align:right;overflow-wrap:anywhere}
.hero-live .st-pill:hover b{color:var(--ink)}
.hero .stage{min-height:320px}
@media (max-width:1100px){
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-main{padding:40px 16px 32px 36px}
  .hero .stage{order:-1;min-height:220px;height:34vh;max-height:300px}
}
@media (max-width:900px){.hero-main{padding:32px 16px 28px}}
@media print{.hero{display:none}}

/* the Students list's Last signed in: when, then where, one format down the column (students_views.seen_of) */
.seen{display:flex;flex-direction:column;gap:2px;line-height:1.2;white-space:nowrap}
.seen .when{font:500 13px/1.2 var(--font-mono);color:var(--ink);font-variant-numeric:tabular-nums}
.seen .where{font:700 10px/1.2 var(--font-core);letter-spacing:.1em;text-transform:uppercase;color:var(--g500)}

/* ---- voice (/admin/voice): the page is the lab (voice_lab.py styles it). wchesher, 2026-10-31: "it is too complicated,
   does not display well, and is anything but elegant AF"; 2026-11-01: "another deeper pass for usability and elegance".
   Above it, only a note that needs the operator. ----------------------------------------------------------------- */
.vx-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px;padding:12px 16px;font-size:14px;
  border:1px solid var(--warn-line);border-radius:var(--r-md);background:var(--warn-bg);color:var(--ink2)}
.vx-note span:nth-child(2){flex:1 1 260px}
.vx-note a{font-weight:600;white-space:nowrap}
.rc-rec{margin:0 0 8px;padding:8px 12px;border-left:4px solid var(--warn-mid);background:var(--warn-bg);border-radius:4px;font-size:15px}
.rc-rec span{color:var(--g600)}

/* ==== THE HOUSE: cromulentech ==========================================================================================
   wchesher, 2026-11-11: "cromulent tech branding", "which needs expansion", "and miniflourishes, miniheroes, and
   microflourishes". The admin lives at cromulent.tech/admin and the platform is the workshop's, so every dark page
   (data-theme="dark": signed in, and the sign-in) wears the house brand: the tolerance ring and the lowercase wordmark,
   Geist and Geist Mono, the achromatic house palette. Colour enters only as a product's own lead, on its dot. The light
   public pages (/consent, /pin) keep the academy's brand above, untouched. The rules and the three sizes of flourish:
   docs/brand/cromulentech-brand.md. Values are the house page's (cromulentech/site/index.html), restated here. */
@font-face{font-family:Geist;src:url(/admin/asset/geist-var-latin.woff2) format("woff2");
  font-weight:300 500;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(/admin/asset/geist-mono-var-latin.woff2) format("woff2");
  font-weight:400 500;font-style:normal;font-display:swap}
@media screen{
  [data-theme="dark"]{
    /* the house palette: Graphite ground, Carbon panels, Titanium ink, Steel for what is secondary */
    --g50:#0A0C0F;--paper:#15181D;--chrome:#0A0C0F;--chrome-3:#262B33;
    --ink:#E6E8EB;--ink2:#D3D6DA;--ink3:#B4B9C0;--on-chrome:#E6E8EB;--on-chrome-soft:#B4B9C0;
    --g100:#1C2027;--g200:#262B33;--g300:#3A4049;--g400:#6B727C;--g500:#8A9099;--g600:#B4B9C0;
    /* the academy's yellow was the accent; the house accent is the ink itself */
    --yellow:#E6E8EB;--yellow-shade:#8A9099;--yellow-text:#FFFFFF;--on-yellow:#0A0C0F;
    --yellow-tint:#1C2027;--yellow-tint-2:#262B33;--yellow-line:#3A4049;
    --note-bg:#15181D;--note-line:#3A4049;--row-hover:#1A1E24;--draft-bg:#1C2027;--media-ground:#1C2027;
    --bad:#FF5A4E;--bad-line:#5C2522;--err-line:#5C2522;   /* Fault, the house's error red on dark */
    --r:6px;--r-sm:4px;--r-md:5px;
    --shadow-1:none;--shadow-2:0 0 0 1px #262B33;--shadow-hard:0 0 0 1px #E6E8EB;
    --focus:0 0 0 2px #0A0C0F,0 0 0 4px #E6E8EB;
    --font-core:Geist,"Helvetica Neue",Arial,system-ui,sans-serif;
    --font-text:Geist,"Helvetica Neue",Arial,system-ui,sans-serif;
    --font-mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
    --slow:.35s;
    /* Geist is drawn 300 to 500. A heavier weight asked for elsewhere in this file renders at 500, never a faked bold. */
    font-synthesis:none;
  }
  [data-theme="dark"] ::selection{background:#E6E8EB;color:#0A0C0F}
  [data-theme="dark"] body{-webkit-font-smoothing:antialiased}

  /* the type: light display, plain case, mono for every label and number */
  [data-theme="dark"] h1{font:300 34px/1.05 var(--font-core);letter-spacing:-.03em;text-transform:none;text-wrap:balance}
  [data-theme="dark"] :is(.eyebrow,h2,.section,label,table.data th,dl.kv dt,.tile .k,.tag,.chip,.side .group,
    .st-k,.rc-meta b,.rc-filter-k,.hero-date,.hero-count span){font-family:var(--font-mono);font-weight:400;
    text-transform:none;letter-spacing:.04em}
  [data-theme="dark"] .eyebrow{font-size:13px;color:var(--g500)}
  [data-theme="dark"] .eyebrow::before{content:none}
  [data-theme="dark"] h2,[data-theme="dark"] .section{font-size:13px;color:var(--g500)}
  [data-theme="dark"] label{font-size:12.5px;color:var(--g500)}
  [data-theme="dark"] table.data th{font-size:12px;background:transparent}
  [data-theme="dark"] h3,[data-theme="dark"] .empty-state b{font-weight:500}
  [data-theme="dark"] :is(.num,.tile .v,.hero-count b,.lo-n,.mono,code,kbd){font-variant-numeric:tabular-nums}
  [data-theme="dark"] :is(.tile .v,.hero-count b){font:300 34px/1 var(--font-core);letter-spacing:-.03em}
  [data-theme="dark"] :is(button,.btn){font:500 14px/1 var(--font-core);letter-spacing:0;text-transform:none}
  [data-theme="dark"] :is(button.primary,.btn.primary){background:var(--ink);border-color:var(--ink);color:#0A0C0F}

  /* the chrome: the wordmark (ring and lowercase name), hairline rules instead of filled blocks */
  [data-theme="dark"] .side{border-top:0;border-right:1px solid var(--chrome-3)}
  [data-theme="dark"] .brand,[data-theme="dark"] .solo .mast .in{display:flex;align-items:center;gap:12px;
    text-decoration:none;color:var(--ink)}
  [data-theme="dark"] .ring{width:26px;height:26px;flex:none;display:block}
  [data-theme="dark"] .word b,[data-theme="dark"] .side .brand b{display:block;font:300 20px/1.1 var(--font-core);
    letter-spacing:-.02em;text-transform:none;color:var(--ink)}
  [data-theme="dark"] .word span,[data-theme="dark"] .side .brand span span{display:block;margin-top:2px;
    font:400 12px/1.3 var(--font-mono);letter-spacing:.04em;text-transform:none;color:var(--g500)}
  [data-theme="dark"] .side .brand>span{display:block;margin:0}
  [data-theme="dark"] .solo .mast{background:var(--g50);border-bottom:1px solid var(--chrome-3)}
  [data-theme="dark"] .top{background:var(--g50);border-bottom:1px solid var(--chrome-3)}
  [data-theme="dark"] .top .in{align-items:center}
  [data-theme="dark"] .top .words{flex:1;min-width:0}

  /* MICROFLOURISHES: an element's own state, under 350 ms, never carrying meaning. The page you are on carries the
     mark's indicator dot; a product's link carries its lead colour on that dot, the one way colour enters the house;
     a hover settles at the speed of the house page (.35s) rather than snapping. */
  [data-theme="dark"] .side nav a{font:400 14px/1.25 var(--font-core);border-radius:var(--r-sm);
    transition:background var(--slow) ease,color var(--slow) ease}
  [data-theme="dark"] .side nav a>span:first-child::before{content:"";display:inline-block;width:5px;height:5px;
    border-radius:50%;margin:0 9px 2px -2px;background:currentColor;opacity:0;transform:scale(.4);vertical-align:middle;
    transition:opacity var(--slow) ease,transform var(--slow) ease}
  [data-theme="dark"] .side nav a.on{background:var(--g100);color:var(--ink)}
  [data-theme="dark"] .side nav a.on>span:first-child::before{opacity:1;transform:none}
  [data-theme="dark"] .side nav a.out>span:first-child::before{opacity:1;transform:none;background:var(--lead,var(--g400))}
  /* the nine A+ leads, one per product link (docs/brand/cromulentech-brand.md is the source; test_product_leads.py
     holds this copy to it) */
  [data-theme="dark"] .side nav a[href*="spawn."]{--lead:#95FE46}
  [data-theme="dark"] .side nav a[href*="bench."]{--lead:#18B194}
  [data-theme="dark"] .side nav a[href*="launch."]{--lead:#FD8719}
  [data-theme="dark"] .side nav a[href*="glitch."]{--lead:#FD52E1}
  [data-theme="dark"] .side nav a[href*="tag."]{--lead:#EDC81E}
  [data-theme="dark"] .side nav a[href*="claim."]{--lead:#D51249}
  [data-theme="dark"] .side nav a[href*="train."]{--lead:#0D72DA}
  [data-theme="dark"] .side nav a[href*="data."]{--lead:#72E3FE}
  [data-theme="dark"] .side nav a[href*="standpoints."]{--lead:#8434F4}
  [data-theme="dark"] .side nav a.on .count{background:var(--ink);color:#0A0C0F}
  [data-theme="dark"] a:not(.tile):not(.btn):not(.hero-door):not(.brand){text-decoration-color:var(--g300);
    transition:text-decoration-color var(--slow) ease,color var(--slow) ease}
  [data-theme="dark"] a:not(.tile):not(.btn):not(.hero-door):not(.brand):hover{text-decoration-color:var(--ink)}
  [data-theme="dark"] :is(button,.btn){transition:background var(--slow) ease,border-color var(--slow) ease,color var(--slow) ease}
  [data-theme="dark"] :is(button.primary,.btn.primary):hover{background:#FFFFFF;border-color:#FFFFFF;color:#0A0C0F}
  [data-theme="dark"] a.tile:hover{transform:none}

  /* THE STAGE: the house page's hero (shell.STAGE, assets/heroes.js), restated from cromulentech/site/index.html.
     A dark room with one hard lamp; inside the lamp the drawing is ink on paper, outside it is the same drawing in
     shadow. The rouge haze is the house page's eye shadow, felt more than seen. */
  [data-theme="dark"] .stage{position:relative;margin:0;min-width:0;overflow:hidden;
    background:radial-gradient(closest-side,rgba(163,22,47,.08),transparent 100%) center/112% 112% no-repeat,#0A0C0F}
  [data-theme="dark"] .stage-shade{-webkit-mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.35) 9%,#000 26%);
    mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.35) 9%,#000 26%)}
  [data-theme="dark"] .stage svg{position:absolute;inset:0;width:100%;height:100%;display:block}
  [data-theme="dark"] .stage .mark-ring,[data-theme="dark"] .stage .mark-arc{fill:none;stroke:var(--ink)}
  [data-theme="dark"] .stage .mark-dot{fill:var(--ink);stroke:none}
  [data-theme="dark"] .stage .mark-line{fill:none;stroke:var(--line)}
  [data-theme="dark"] .stage .lit{--ink:#0A0C0F;--line:#8A9099}
  [data-theme="dark"] .stage .shade{--ink:#1C2027;--line:#14171C}
  [data-theme="dark"] .stage .lamp-pool{fill:#F8F9FA}
  [data-theme="dark"] .stage .reticle{stroke:#5A616B;stroke-width:.18;opacity:.55}
  [data-theme="dark"] .hero-canvas{position:absolute;inset:0;width:100%;height:100%;display:none}
  [data-theme="dark"] .stage[data-hero="flight"] #flight-canvas,
  [data-theme="dark"] .stage[data-hero="spiral"] #spiral-canvas,[data-theme="dark"] .stage[data-hero="doorway"] #doorway-canvas,
  [data-theme="dark"] .stage[data-hero="sphere"] #sphere-canvas{display:block}
  [data-theme="dark"] .stage:is([data-hero="flight"],[data-hero="spiral"],[data-hero="doorway"],
    [data-hero="sphere"]) > svg{display:none}
  [data-theme="dark"] .stage-caption{position:absolute;left:16%;right:16px;bottom:12px;display:flex;align-items:baseline;
    justify-content:space-between;gap:16px;font:400 11.5px/1.2 var(--font-mono);letter-spacing:.04em;color:var(--g500)}
  [data-theme="dark"] .stage .readout{font-variant-numeric:tabular-nums}
  [data-theme="dark"] .stage .readout .sup{font-size:9px;vertical-align:super}
  [data-theme="dark"] .motion-toggle{font:inherit;color:inherit;background:none;border:1px solid var(--chrome-3);
    border-radius:2px;padding:5px 9px;letter-spacing:.04em}
  [data-theme="dark"] .motion-toggle:hover{color:var(--ink);border-color:var(--g500);background:none}
  @media (prefers-reduced-motion:no-preference){
    [data-theme="dark"] .stage .lamp{animation:house-strike .75s steps(1,end) .35s both}
  }

  /* THE PAGE HEAD: the words on the left, the stage at the right running off the window's edge. The words stop short
     of the stage at every width (container query units: the page head is the container). */
  [data-theme="dark"] .top.staged{--stage:min(40cqw,520px);container-type:inline-size;position:relative;overflow:hidden;
    min-height:220px;display:flex;align-items:center}
  [data-theme="dark"] .top.staged .in{position:relative;z-index:1;width:100%;padding-top:40px;padding-bottom:36px}
  [data-theme="dark"] .top.staged .words{max-width:min(62ch,calc(100cqw - var(--stage) - (100cqw - min(100cqw,1180px)) / 2 - 36px))}
  [data-theme="dark"] .top.staged .stage{position:absolute;top:0;right:0;bottom:0;width:var(--stage)}
  [data-theme="dark"] .top.staged .stage-caption{bottom:10px}
  [data-theme="dark"] .top h1{font-size:clamp(34px,3.4vw,46px);line-height:1.02;letter-spacing:-.035em}
  [data-theme="dark"] .top .lede{font-size:16px;line-height:1.55;color:var(--g500);margin-top:12px}
  @media (max-width:700px){
    [data-theme="dark"] .top.staged{--stage:58cqw;min-height:0}
    [data-theme="dark"] .top.staged .words{max-width:none}
    [data-theme="dark"] .top.staged .stage{opacity:.5;pointer-events:none}
    [data-theme="dark"] .top.staged .stage-caption{display:none}
  }

  /* THE DOOR: the sign-in is the house page's hero, the form where the copy is */
  [data-theme="dark"] .door-room{flex:1;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) min(46cqw,640px);
    min-height:clamp(480px,70vh,720px);border-bottom:1px solid var(--chrome-3)}
  [data-theme="dark"] .door-copy{align-self:center;width:100%;max-width:420px;justify-self:center;padding:56px 24px}
  [data-theme="dark"] .door-copy h1{font-size:clamp(44px,4.6vw,64px);line-height:1;letter-spacing:-.035em;margin:0 0 28px}
  [data-theme="dark"] .door-form .form-foot button{width:100%;justify-content:center;min-height:48px;font-size:15px}
  [data-theme="dark"] body.door footer.house{max-width:none;padding-inline:36px}
  @media (max-width:800px){
    [data-theme="dark"] .door-room{grid-template-columns:1fr;min-height:0}
    [data-theme="dark"] .door-room .stage{order:-1;height:220px}
  }

  /* CONVERGED (2026-11-16): the components wear the house page's hand. Flat surfaces with hairline rules instead of
     filled cards, 2px corners, the Titanium button with its white hover, mono lowercase labels, numbers drawn light.
     State shows as a colour on the thing that is in that state (a number, a dot, a word), never a stripe down a card. */
  [data-theme="dark"]{--r:2px;--r-sm:2px;--r-md:2px;--line:#262B33;--sub:transparent}
  [data-theme="dark"] .panel,[data-theme="dark"] .tile,[data-theme="dark"] .card,[data-theme="dark"] .machine,
  [data-theme="dark"] .st-hero{background:transparent;border:1px solid var(--chrome-3);border-radius:2px;box-shadow:none}
  [data-theme="dark"] .panel{padding:22px 24px}
  [data-theme="dark"] :is(.tile,.machine,.st-hero).good,[data-theme="dark"] :is(.tile,.machine,.st-hero).warn,
  [data-theme="dark"] :is(.tile,.machine,.st-hero).bad{border-left:1px solid var(--chrome-3)}
  [data-theme="dark"] .tile{padding:18px 20px;gap:8px}
  [data-theme="dark"] a.tile{transition:border-color var(--slow) ease}
  [data-theme="dark"] a.tile:hover{border-color:var(--g500);box-shadow:none}
  [data-theme="dark"] .tile.warn .v{color:var(--warn-mid)}
  [data-theme="dark"] .tile.bad .v{color:var(--bad)}
  [data-theme="dark"] .tile .k{font-size:12px;color:var(--g500)}
  [data-theme="dark"] .tile .d{color:var(--g500)}
  [data-theme="dark"] .tile .v small{font:400 14px/1 var(--font-core);color:var(--g500)}
  [data-theme="dark"] .st-hero h2{font:300 26px/1.15 var(--font-core);letter-spacing:-.02em;color:var(--ink)}
  [data-theme="dark"] .st-hero .st-muted{color:var(--g500)}
  [data-theme="dark"] .empty-state{border-style:dashed;padding:34px 20px}
  [data-theme="dark"] .empty-state b{font:400 16px/1.3 var(--font-core)}
  /* buttons: a hairline outline; the main one is Titanium, white on hover, as on the house page */
  [data-theme="dark"] :is(button,.btn){border-radius:2px;padding:11px 18px;background:transparent;border:1px solid var(--g300);
    color:var(--ink)}
  [data-theme="dark"] :is(button,.btn):hover{border-color:var(--ink);background:transparent;color:var(--ink)}
  [data-theme="dark"] :is(button,.btn):active{transform:none}
  [data-theme="dark"] :is(button.primary,.btn.primary){background:var(--ink);border-color:var(--ink);color:#0A0C0F}
  [data-theme="dark"] :is(button.small,.btn.small){padding:7px 12px;font-size:13px}
  [data-theme="dark"] :is(button.danger,.btn.danger){color:var(--bad);border-color:var(--bad-line)}
  [data-theme="dark"] :is(button.danger,.btn.danger):hover{border-color:var(--bad);background:rgba(255,90,78,.08);color:var(--bad)}
  [data-theme="dark"] button.link{border:0;padding:0;background:none;font:400 14px/1.4 var(--font-core)}
  [data-theme="dark"] button.switch{font:400 12px/1 var(--font-mono);letter-spacing:.04em;text-transform:none}
  [data-theme="dark"] .combo > button{background:transparent}
  [data-theme="dark"] .combo > button:hover{background:var(--ink);border-color:var(--ink);color:#0A0C0F}
  /* fields: a Carbon well with a hairline, Titanium on focus */
  [data-theme="dark"] :is(input[type=text],input[type=password],input[type=search],input[type=number],input[type=email],
    input[type=url],input[type=file],select,textarea){background-color:#15181D;border:1px solid var(--chrome-3);border-radius:2px;
    transition:border-color var(--slow) ease}
  [data-theme="dark"] :is(input,select,textarea):hover{border-color:var(--g300)}
  [data-theme="dark"] :is(input,select,textarea):focus{border-color:var(--ink);box-shadow:none}
  [data-theme="dark"] input[type=file]::file-selector-button{font:500 13px/1 var(--font-core);color:#0A0C0F;background:var(--ink);
    border:0;border-radius:2px;padding:8px 12px;margin-right:12px;cursor:pointer}
  [data-theme="dark"] .check{font-family:var(--font-core);color:var(--g600)}
  [data-theme="dark"] input[type=checkbox],[data-theme="dark"] input[type=radio]{accent-color:#E6E8EB}
  /* chips: mono, lowercase, a hairline in the state's colour */
  [data-theme="dark"] :is(.tag,.chip,.st-chip){font:400 11.5px/1 var(--font-mono);letter-spacing:.03em;text-transform:lowercase;
    border-radius:2px;padding:4px 8px;background:transparent;box-shadow:inset 0 0 0 1px var(--chrome-3);color:var(--g500)}
  [data-theme="dark"] :is(.tag.published,.chip.good,.st-chip.good){color:var(--good);box-shadow:inset 0 0 0 1px rgba(92,196,107,.35)}
  [data-theme="dark"] :is(.chip.warn,.st-chip.warn){color:var(--warn);box-shadow:inset 0 0 0 1px rgba(242,180,81,.35)}
  [data-theme="dark"] :is(.chip.bad,.st-chip.bad){color:var(--bad);box-shadow:inset 0 0 0 1px rgba(255,90,78,.4)}
  [data-theme="dark"] :is(.chip.info,.chip.ink,.chip.product,.st-chip.busy){color:var(--ink);box-shadow:inset 0 0 0 1px var(--g300)}
  /* notes: a rule down the left in the note's tone, no fill */
  [data-theme="dark"] :is(.note,.err){background:transparent;border:0;border-left:2px solid var(--ink);border-radius:0;padding:10px 16px}
  [data-theme="dark"] .err{border-left-color:var(--bad)}
  /* tables: mono heads, hairline rows */
  [data-theme="dark"] table.data th{color:var(--g500);border-bottom-color:var(--chrome-3)}
  [data-theme="dark"] table.data td{border-bottom-color:#1A1E24}
  [data-theme="dark"] table.data tbody tr:hover td{background:#101317}
  [data-theme="dark"] .attention li{border-top-color:#1A1E24}
  [data-theme="dark"] .attention .dot{width:7px;height:7px;margin-top:9px}
  [data-theme="dark"] .attention a{font-weight:400}
  [data-theme="dark"] .content{padding-top:32px}
  [data-theme="dark"] .section{margin:38px 0 14px}
  [data-theme="dark"] .side nav .planned .soon,[data-theme="dark"] .side nav a .count{border-radius:2px;font-weight:400}

  /* HEROES AND FLOURISHES BELOW THE HOUSE PAGE'S HERO (flourish.js; wchesher, 2026-11-16: "I want A B and C incorporated",
     "I want all 3 miniflourishes", "and all 3 micro"). Each plays once and rests; under reduced motion each is at rest. */
  /* MINIHERO: the page head's stage (lamp and rings, the Droste doorway, the inspection sweep) */
  [data-theme="dark"] .minihero-stage{position:absolute;top:0;right:0;bottom:0;width:var(--stage);margin:0;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 34%);mask-image:linear-gradient(90deg,transparent,#000 34%)}
  [data-theme="dark"] .minihero-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
  [data-theme="dark"] .minihero-stage .motion-toggle{position:absolute;right:14px;bottom:10px;font:400 11.5px/1 var(--font-mono);
    color:var(--g500);opacity:0;transition:opacity var(--slow) ease}
  [data-theme="dark"] .top:hover .minihero-stage .motion-toggle{opacity:1}
  @media (max-width:700px){[data-theme="dark"] .minihero-stage{opacity:.5}[data-theme="dark"] .minihero-stage .motion-toggle{display:none}}

  /* MICROHERO: 56px in the top-right corner of a panel that opens with a heading (gauge and inspection lamp, in turn) */
  [data-theme="dark"] .panel.has-microhero{position:relative}
  [data-theme="dark"] .panel.has-microhero > h2:first-child,[data-theme="dark"] .panel.has-microhero > .head:first-child{padding-right:72px}
  [data-theme="dark"] .microhero{position:absolute;top:12px;right:14px;width:52px;height:52px;pointer-events:none}
  [data-theme="dark"] .gauge .lit{stroke:var(--ink)}[data-theme="dark"] .gauge .dim{stroke:var(--g100)}
  [data-theme="dark"] .gauge .tick{stroke:var(--g400)}[data-theme="dark"] .gauge .dot{fill:var(--ink)}
  [data-theme="dark"] .cone .lamp{fill:var(--ink)}
  [data-theme="dark"] .cone .beam{transform-origin:50% 0}
  @media (prefers-reduced-motion:no-preference){
    [data-theme="dark"] .gauge{animation:house-strike .75s steps(1,end) .35s both}
    [data-theme="dark"] .cone .lamp{animation:house-strike .6s steps(1,end) .1s both}
    [data-theme="dark"] .cone .beam{animation:house-drop .6s cubic-bezier(.6,0,.2,1) .35s both}
    [data-theme="dark"] .cone .ring-lit{animation:house-on .01s linear .9s both}
  }

  /* MINIMICRO HERO: the size of a letter beside each figure (the mark, dot last; the half-lit globe) */
  [data-theme="dark"] .tile .v,[data-theme="dark"] .gr-fig b{display:flex;align-items:center;gap:8px}
  [data-theme="dark"] .minimicro{width:18px;height:18px;flex:none;order:9;margin-left:2px}
  [data-theme="dark"] .tile .v small{order:1}
  [data-theme="dark"] .minimicro .ring{stroke:var(--g500)}
  [data-theme="dark"] .minimicro .dot,[data-theme="dark"] .minimicro .light{fill:var(--ink)}
  [data-theme="dark"] .minimicro .disc{fill:var(--g100)}
  @media (prefers-reduced-motion:no-preference){
    [data-theme="dark"] .minimicro.ring .dot{animation:house-on .01s linear 1.5s both}
    [data-theme="dark"] .minimicro.moon .light{animation:house-wax 1.1s cubic-bezier(.6,0,.2,1) .9s both}
  }

  /* MINIFLOURISH A: the rake. The page's heading starts in the dark and a hard-edged light rakes across it (the house
     page's headline). The end state is plain Titanium; without background-clip, or under reduced motion, it is lit. */
  @supports ((-webkit-background-clip:text) or (background-clip:text)){
    @media (prefers-reduced-motion:no-preference){
      [data-theme="dark"] :is(.top h1,.hero-hi,.door-copy h1){background:linear-gradient(90deg,var(--ink) 0 50%,#1E2228 50% 100%) 100% 0/200% 100% no-repeat;
        -webkit-background-clip:text;background-clip:text;color:transparent;animation:house-rake .9s cubic-bezier(.6,0,.2,1) .3s both}
    }
  }
  /* MINIFLOURISH B: a section's hairline draws itself out from its name and parks the mark's dot at its far end */
  [data-theme="dark"] .section::after{height:7px;transform-origin:left;
    background:radial-gradient(circle at calc(100% - 3.5px) 50%,var(--ink) 0 3px,transparent 3.5px) right/7px 7px no-repeat,
      linear-gradient(var(--chrome-3),var(--chrome-3)) left center/calc(100% - 3.5px) 1px no-repeat}
  /* MINIFLOURISH C: a row of figures counts up (flourish.js) and one line of light reads it, left to right */
  [data-theme="dark"] :is(.tiles,.gr-figs){position:relative}
  [data-theme="dark"] :is(.tiles,.gr-figs)::after{content:"";position:absolute;top:0;bottom:0;left:0;width:1px;
    background:var(--ink);opacity:0;pointer-events:none}
  @media (prefers-reduced-motion:no-preference){
    [data-theme="dark"] .section::after{animation:house-rule .9s cubic-bezier(.6,0,.2,1) .25s both}
    [data-theme="dark"] :is(.tiles,.gr-figs)::after{animation:house-read 1.3s cubic-bezier(.45,0,.55,1) 1.1s both}
  }

  /* MICROFLOURISH A: a hard band of light crosses the main button on hover and leaves it white */
  [data-theme="dark"] :is(button.primary,.btn.primary,.hero-door){position:relative;overflow:hidden;isolation:isolate}
  [data-theme="dark"] :is(button.primary,.btn.primary,.hero-door)::before{content:"";position:absolute;inset:0;z-index:-1;
    background:linear-gradient(100deg,transparent 0 40%,#FFFFFF 40% 60%,transparent 60%);transform:translateX(-110%)}
  @media (prefers-reduced-motion:no-preference){
    [data-theme="dark"] :is(button.primary,.btn.primary,.hero-door):is(:hover,:focus-visible)::before{transform:translateX(110%);
      transition:transform .35s cubic-bezier(.6,0,.2,1)}
  }
  /* MICROFLOURISH B: the sidebar's dot travels from the page you were on to the one you opened */
  [data-theme="dark"] .side nav.gliding{position:relative}
  [data-theme="dark"] .side nav.gliding a.on>span:first-child::before{opacity:0}
  [data-theme="dark"] .side nav .glide{position:absolute;top:0;left:20px;width:5px;height:5px;border-radius:50%;
    background:var(--ink);pointer-events:none;z-index:1}
  [data-theme="dark"] .side nav .glide.moving{transition:transform .35s cubic-bezier(.6,0,.2,1)}
  /* MICROFLOURISH C: the lamp's reticle, four corner ticks, closes on the field you are typing in */
  [data-theme="dark"] .reticle-focus{position:fixed;pointer-events:none;z-index:50;opacity:0;
    --c:var(--ink);background:
      linear-gradient(var(--c),var(--c)) left top/9px 1px,linear-gradient(var(--c),var(--c)) left top/1px 9px,
      linear-gradient(var(--c),var(--c)) right top/9px 1px,linear-gradient(var(--c),var(--c)) right top/1px 9px,
      linear-gradient(var(--c),var(--c)) left bottom/9px 1px,linear-gradient(var(--c),var(--c)) left bottom/1px 9px,
      linear-gradient(var(--c),var(--c)) right bottom/9px 1px,linear-gradient(var(--c),var(--c)) right bottom/1px 9px;
    background-repeat:no-repeat;transform:scale(1.06)}
  [data-theme="dark"] .reticle-focus.on{opacity:1;transform:none;transition:opacity .2s ease,transform .3s cubic-bezier(.6,0,.2,1)}
  @media (prefers-reduced-motion:reduce){[data-theme="dark"] .reticle-focus.on{transition:none}}

  /* THE HOUSE FOOTER, on every house page: the mark, the tagline, the legal page, the copyright line */
  [data-theme="dark"] footer.house{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;margin-top:auto;
    padding:22px 36px 28px;border-top:1px solid var(--chrome-3);font:400 12.5px/1.4 var(--font-mono);color:var(--g500)}
  [data-theme="dark"] footer.house .mark{display:inline-flex;align-items:center;gap:8px;color:var(--ink);
    font:300 15px/1 var(--font-core);letter-spacing:-.02em}
  [data-theme="dark"] footer.house .ring{width:16px;height:16px}
  [data-theme="dark"] footer.house a{color:var(--g500)}
  [data-theme="dark"] body.solo{display:flex;flex-direction:column;min-height:100vh}
  [data-theme="dark"] body.solo .wrap{width:100%}
  [data-theme="dark"] body.solo footer.house{max-width:880px;width:100%;margin:auto auto 0;padding-inline:22px}
}
@keyframes house-on{from{opacity:0}to{opacity:1}}
@keyframes house-strike{0%{opacity:0}30%{opacity:1}42%{opacity:.15}54%{opacity:1}100%{opacity:1}}
@keyframes house-rule{from{transform:scaleX(0)}to{transform:none}}
@keyframes house-scan{0%{top:0;opacity:.9}96%{top:100%;opacity:.9}100%{top:100%;opacity:0}}
@keyframes house-read{0%{left:0;opacity:.9}96%{left:100%;opacity:.9}100%{left:100%;opacity:0}}
@keyframes house-rake{to{background-position:0 0}}
@keyframes house-drop{from{transform:scaleY(0)}to{transform:none}}
@keyframes house-wax{from{transform:translateX(-50px)}to{transform:none}}
@media print{footer.house,.stage,.minihero-stage,.microhero,.minimicro,.reticle-focus{display:none}}
/* the stage's readout and its button are shown by heroes.js; until then (and under reduced motion) [hidden] holds */
.stage [hidden]{display:none!important}
