/* ══════════════════════════════════════════════════════════════════════════
   portal.css — account.bankwriter.com

   THE ONLY stylesheet the portal loads. Self-contained derivation of the
   approved design system (subdomains/mockups-fable/bw-mock.css), carrying the
   portal half of it: tokens (light + dark), header, buttons, pills, the
   ledger table, message cards, forms, the one-time-code field, the backlink,
   and the sign-in half-split. The support-only components (prose, fig, toc,
   steps, markdown callouts, home hero/search/contents, guide grid, pager) are
   deliberately NOT here — nothing in the portal renders them.

   🔴 CSP CONSTRAINT — tickets.py::_security_headers ships
        style-src 'self' https://fonts.googleapis.com
   with NO 'unsafe-inline'. A style="…" attribute or an inline <style> block in
   a template is silently DROPPED by the browser. Every value the mockups set
   inline (motif bar widths, column widths, cell padding, heading margins) is
   therefore a class in this file. Do not reintroduce inline style.

   THEMING — [data-theme] is stamped on :root by the head script in base.html
   and login.html, persisted to localStorage under 'bw-theme'. Every colour
   below resolves from a token, so no component knows which theme it is in.
   Both blocks are load-bearing: the portal keeps dark mode.

   Every text/ground pair is WCAG-measured ≥4.5:1 (most ≥5.5:1).
   --green (#6AA575) and --faint (#8E938A) are fills/ornament ONLY, never words.
   ══════════════════════════════════════════════════════════════════════════ */


/* ══ 1 — TOKENS ═══════════════════════════════════════════════════════════ */

:root{
  --paper:#F5F4EE; --surface:#FFFFFF; --outer:#E7E5DC; --alt:#FAF9F3;
  --ink:#0B0B0B; --ink2:#161616;
  --muted:#3E523F;          /* secondary text — 7.7:1 on paper            */
  --meta:#5C5F58;           /* mono metadata  — 5.9:1 on paper            */
  --faint:#8E938A;          /* ornament only, never words                 */
  --line:#E5E2D7; --line-strong:#D6D2C5;
  --green:#6AA575;          /* fill only                                  */
  --green-text:#49724D;     /* the green words are set in — 5.0:1 paper   */
  --mint:#D9EDDE; --mint-soft:#EDF5EF; --mint-line:#BFE0C9;
  --amber-text:#8A5A13; --amber-tint:#F6EEDC; --amber-line:#E8D9B5;
  --flag:#BC4B3B;           /* fill / badge ground                        */
  --blue-text:#185FA5;      /* 'Available' — 6.4:1 on its tint            */
  --blue-tint:#E4EEF2; --blue-line:#C6DCE6;
  --flag-text:#9E3B2C;      /* red words — 5.7:1 on its tint              */
  --flag-tint:#F7E8E4; --flag-line:#E7C9C3;
  --sh:0 1px 2px rgba(11,11,11,.04), 0 14px 36px -16px rgba(11,11,11,.20);
  --sh-lg:0 2px 6px rgba(11,11,11,.05), 0 30px 60px -24px rgba(11,11,11,.28);
  --sh-sm:0 1px 2px rgba(11,11,11,.05), 0 4px 14px -8px rgba(11,11,11,.14);
  --serif:"Fraunces", Georgia, serif;
  --sans:"Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:"JetBrains Mono", ui-monospace, Menlo, monospace;
  --r:14px; --r-sheet:18px; --r-soft:10px;
  --head-h:69px;            /* header min-height 68 + its 1px hairline    */
}

/* Portal dark — warm, near-black greens; text greens flip to #B4D98C
   (10.9:1 on surface) because #49724D is only 3.4:1 on dark grounds.     */
[data-theme="dark"]{
  --paper:#121110; --surface:#1C1B17; --outer:#0C0B0A; --alt:#211F1A;
  --ink:#F2F1EA; --ink2:#E4E3DA;
  --muted:#B9BDB3; --meta:#A8ACA1; --faint:#6E7268;
  --line:#2E2C26; --line-strong:#3C3A32;
  --green-text:#B4D98C;
  --mint:#243024; --mint-soft:#20281F; --mint-line:#33472F;
  --amber-text:#E5B567; --amber-tint:#2B2416; --amber-line:#4A3D22;
  --flag-text:#ED9A8C; --flag-tint:#331B17; --flag-line:#523028;
  --blue-text:#9CC6E4; --blue-tint:#18242C; --blue-line:#2C3F4C;
  --sh:none; --sh-lg:none; --sh-sm:none;
}


/* ══ 2 — RESET / BASE ═════════════════════════════════════════════════════ */

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{
  background:var(--outer); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
  min-height:100vh; display:flex; flex-direction:column;
}
img,svg{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--green-text);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important;animation:none !important}
}

/* skip link — visible only once focused */
.skip{
  position:absolute;left:-9999px;top:0;z-index:20;
  background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);
  border-radius:var(--r-soft);padding:12px 18px;font-weight:600;text-decoration:none;
}
.skip:focus{left:16px;top:12px}


/* ══ 3 — TYPE ═════════════════════════════════════════════════════════════ */

.kicker{
  font-family:var(--mono);font-size:11px;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;color:var(--green-text);
  display:block;
}
.kicker a{text-decoration:none;color:inherit}
.kicker a:hover{color:var(--ink)}
.display{
  font-family:var(--serif);font-weight:500;line-height:1.06;
  letter-spacing:-.018em;color:var(--ink);
}
.display em{font-style:italic;color:var(--green-text)}
h1.display{font-size:clamp(34px,4.3vw,46px)}
.lede{font-size:19px;line-height:1.6;color:var(--muted);max-width:56ch}
.mono{font-family:var(--mono)}
.meta{font-family:var(--mono);font-size:12px;color:var(--meta)}
.meta a{color:var(--green-text)}
.endnote{font-family:var(--mono);font-size:12px;color:var(--meta);margin:18px 2px 0}
.endnote a{color:var(--green-text)}


/* ══ 4 — HEADER ═══════════════════════════════════════════════════════════ */

.shell{max-width:1200px;margin:0 auto;padding:0 32px;width:100%}
.shell.narrow{max-width:1040px}

.site-head{background:var(--surface);border-bottom:1px solid var(--line)}
.site-head .shell{display:flex;align-items:center;gap:28px;min-height:68px}
/* 64px matches .split-left's padding, so the wordmark sits on the same
   left edge as the pane copy at every window width. */
.site-head.bleed .shell{max-width:none;padding:0 64px}

.logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.logo img{height:38px;width:auto}
[data-theme="dark"] .logo-light{display:none}
[data-theme="light"] .logo-dark{display:none}
.logo-tag{
  font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.12em;
  color:var(--meta);border:1px solid var(--line-strong);border-radius:6px;
  padding:3px 7px;text-transform:uppercase;
}

.head-nav{display:flex;gap:4px;align-items:center}
.head-nav a{
  font-size:14.5px;font-weight:600;color:var(--muted);text-decoration:none;
  padding:9px 13px;border-radius:9px;transition:background .15s,color .15s;
  white-space:nowrap;
}
.head-nav a:hover{background:var(--alt);color:var(--ink)}
.head-nav a[aria-current]{color:var(--ink);background:var(--alt)}

/* ── the staff menu ──────────────────────────────────────────────────────────
   A <details> disclosure, not a JS widget: the CSP forbids inline script, and
   the native element is keyboard- and screen-reader-correct for free. */
.head-nav .menu{position:relative}
.head-nav .menu>summary{
  display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;
  font-size:14.5px;font-weight:600;color:var(--muted);
  padding:9px 13px;border-radius:9px;white-space:nowrap;
  transition:background .15s,color .15s;
}
.head-nav .menu>summary::-webkit-details-marker{display:none}
.head-nav .menu>summary:hover{background:var(--alt);color:var(--ink)}
.head-nav .menu>summary[aria-current]{color:var(--ink);background:var(--alt)}
.head-nav .menu>summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.head-nav .menu>summary svg{transition:transform .15s}
.head-nav .menu[open]>summary{background:var(--alt);color:var(--ink)}
.head-nav .menu[open]>summary svg{transform:rotate(180deg)}

.menu-pop{
  position:absolute;top:calc(100% + 8px);left:0;z-index:60;min-width:246px;
  display:flex;flex-direction:column;gap:2px;padding:8px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:14px;box-shadow:0 12px 28px rgba(0,0,0,.16);
}
.menu-pop a{
  display:block;padding:10px 12px;border-radius:9px;
  font-size:14.5px;font-weight:600;color:var(--ink);white-space:nowrap;
}
.menu-pop a span{
  display:block;margin-top:2px;font-family:var(--mono);font-weight:400;
  font-size:11px;color:var(--meta);
}
.menu-pop a:hover{background:var(--alt)}
.menu-pop a[aria-current]{background:var(--alt)}

@media (max-width:560px){
  /* the header wraps to its own row down here, so a floating panel would sit
     over the page content -- let it push instead */
  .head-nav .menu{position:static}
  .menu-pop{position:static;min-width:0;margin-top:6px}
}
.head-spacer{flex:1}
.head-who{font-family:var(--mono);font-size:12.5px;color:var(--meta);
  max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.head-tools{display:flex;align-items:center;gap:10px}
.signout{display:flex}

/* theme toggle */
.mode-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--line-strong);
  background:var(--surface);color:var(--muted);display:grid;place-items:center;
  cursor:pointer;transition:border-color .15s,color .15s;flex:none;
}
.mode-btn:hover{border-color:var(--ink);color:var(--ink)}
[data-theme="dark"] .only-light{display:none}
[data-theme="light"] .only-dark{display:none}


/* ══ 5 — FOOTER ═══════════════════════════════════════════════════════════
   The approved portal pages simply end, so this is the quietest possible
   band: a hairline and one mono row, typed exactly like the design system's
   .foot-base. It exists only to carry the privacy seal and the two legal
   links a signed-in property is obliged to show.                          */

.portal-foot{
  margin-top:auto;padding:26px 0 34px;border-top:1px solid var(--line);
}
.portal-foot .shell{
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  font-family:var(--mono);font-size:11.5px;color:var(--meta);
}
.portal-foot a{color:var(--meta);text-decoration:none}
.portal-foot a:hover{color:var(--ink)}
.portal-foot .seal{display:inline-flex;align-items:center;gap:7px}
.portal-foot .seal svg{color:var(--green);flex:none}


/* ══ 6 — BUTTONS ══════════════════════════════════════════════════════════ */

.btn{
  font-family:var(--sans);font-weight:600;font-size:15px;line-height:1;
  border-radius:11px;padding:14px 22px;border:1px solid transparent;
  cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;
  justify-content:center;gap:9px;
  transition:transform .15s,box-shadow .15s,background .2s,border-color .15s,color .15s;
}
.btn.primary{background:var(--ink);color:#fff}
.btn.primary:hover{background:var(--green-text);transform:translateY(-1px);box-shadow:var(--sh-sm)}
[data-theme="dark"] .btn.primary{background:var(--ink);color:var(--outer)}
[data-theme="dark"] .btn.primary:hover{background:var(--green-text);color:#0C0B0A}
.btn.ghost{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}
.btn.ghost:hover{border-color:var(--ink);transform:translateY(-1px)}
.btn.quiet{background:transparent;color:var(--muted);font-size:14px;padding:10px 14px}
.btn.quiet:hover{color:var(--ink);background:var(--alt)}
.btn.small{font-size:13.5px;padding:9px 15px;border-radius:9px}
.btn.danger-quiet{background:transparent;color:var(--flag-text);border-color:var(--line-strong)}
.btn.danger-quiet:hover{border-color:var(--flag-text)}
.btn.full{width:100%}
.btn svg{flex:none}


/* ══ 7 — PILLS / STATUS ═══════════════════════════════════════════════════
   The portal's three real statuses map here — see the STATUS MAP comment at
   the top of tickets_list.html.                                           */

.pill{
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.04em;
  border-radius:999px;padding:5px 12px;border:1px solid transparent;
}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.pill.open{background:var(--mint);color:var(--green-text);border-color:var(--mint-line)}
.pill.wait{background:var(--amber-tint);color:var(--amber-text);border-color:var(--amber-line)}
.pill.closed{background:var(--alt);color:var(--meta);border-color:var(--line-strong)}
.pill.plain::before{display:none}


/* ══ 8 — RULED META BAND ══════════════════════════════════════════════════ */

.metaband{
  display:flex;align-items:center;gap:28px;flex-wrap:wrap;
  border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);
  padding:13px 2px;margin:26px 0 40px;
  font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--meta);
}
.metaband b{font-weight:600;color:var(--ink);letter-spacing:.05em}
.metaband .push{margin-left:auto}
.metaband a{color:var(--green-text);text-decoration:none}
.metaband a:hover{text-decoration:underline}
/* inside the thread header card the band is the last thing in the box, so it
   drops its bottom rule and bottom padding */
.metaband.flush{margin:0;border-bottom:0;padding-bottom:0}


/* ══ 9 — PAGE FRAME ═══════════════════════════════════════════════════════ */

.portal-main{max-width:1040px;margin:0 auto;padding:44px 32px 0;width:100%}
.portal-main.thread{max-width:900px}
.portal-main.form{max-width:820px}
.page-head{display:flex;align-items:end;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.page-head .display{font-size:clamp(28px,3.4vw,36px);margin-top:8px}
.page-head .lede{font-size:16px;margin-top:10px}
.page-head .push{margin-left:auto}


/* ══ 10 — LEDGER ══════════════════════════════════════════════════════════ */

.ledger{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sheet);box-shadow:var(--sh);overflow:hidden;
}
.ledger table{width:100%;border-collapse:collapse}
.ledger th{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
  font-weight:500;color:var(--meta);text-align:left;
  padding:14px 20px;border-bottom:1px solid var(--line-strong);background:var(--alt);
}
.ledger td{padding:0;border-bottom:1px solid var(--line)}
.ledger tr:last-child td{border-bottom:0}
.ledger td>a{display:block;padding:20px;text-decoration:none;color:inherit}
.ledger td.cell{padding:20px}
.ledger tbody tr{transition:background .15s}
.ledger tbody tr:hover{background:var(--alt)}
.ledger .subj{font-size:16.5px;font-weight:600;color:var(--ink);line-height:1.4;display:block}
.ledger .sub{font-family:var(--mono);font-size:11.5px;color:var(--meta);margin-top:5px;display:block}
.ledger .when{font-family:var(--mono);font-size:12px;color:var(--meta);white-space:nowrap}
/* anywhere, NOT break-all: a long address may break, a short one must not —
   break-all split sarah@ledgerli/ne.ca even with room to spare */
.ledger .from{font-family:var(--mono);font-size:12px;color:var(--meta);overflow-wrap:anywhere}
.ledger .num{text-align:right}
/* column budgets — set here, never inline (CSP) */
.ledger .col-ticket{width:62%}
.ledger.queue .col-ticket{width:42%}
.ledger.queue .col-from{width:22%}
.ledger.queue .col-by{width:13%}
/* the sub-line carries three facts in a narrow column, so when it wraps it
   must break at a separator -- not mid-phrase ("... 4 / messages") */
.ledger .sub .seg{white-space:nowrap}
/* the agent's own name is the one thing being scanned for, so it is set in
   the interface face; a colleague's stays quiet mono like other metadata */
.ledger .cell-by{font-family:var(--mono);font-size:12.5px;color:var(--meta)}
.ledger .cell-by b{font-family:inherit;font-weight:700;color:var(--ink)}
.ledger .cell-by .dash{color:var(--meta)}


/* ══ 11 — FILTER BAR ══════════════════════════════════════════════════════ */

.filterbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.filterbar a{
  font-family:var(--mono);font-size:12px;font-weight:600;text-decoration:none;
  color:var(--muted);border:1px solid var(--line-strong);border-radius:999px;
  padding:8px 16px;background:var(--surface);transition:border-color .15s,color .15s;
}
.filterbar a:hover{border-color:var(--ink);color:var(--ink)}
.filterbar a[aria-current]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.filterbar .count{opacity:.65;margin-left:5px}


/* ══ 12 — EMPTY STATE ═════════════════════════════════════════════════════ */

.empty{text-align:center;padding:88px 32px}
.empty .display{font-size:30px;margin-bottom:12px}
.empty p{color:var(--muted);max-width:44ch;margin:0 auto 28px}
.empty .kicker{margin-bottom:14px}
.empty-acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}


/* ══ 13 — THREAD ══════════════════════════════════════════════════════════ */

.thread-head{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sheet);
  box-shadow:var(--sh);padding:32px 36px;margin-bottom:28px;
}
.thread-head .display{font-size:26px;margin:10px 0 16px;overflow-wrap:anywhere}
.thread-tags{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

.msgs{display:grid;gap:16px;max-width:828px}
.msg{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);padding:22px 26px;
}
/* staff is told apart by GROUND + a NAMED chip, never by a coloured rail and
   never by green — green means answered/reconciled on a pill in this same
   viewport, and a customer scanning an unresolved thread must not read a
   green block as resolved. */
.msg.staff{background:var(--alt);border-color:var(--line-strong)}
.msg-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.msg-head .who{font-weight:700;font-size:14.5px;color:var(--ink);overflow-wrap:anywhere}
.msg-head .tag{
  font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--meta);
  border:1px solid var(--line-strong);border-radius:5px;padding:2px 7px;
}
.msg-head .when{margin-left:auto;font-family:var(--mono);font-size:11.5px;color:var(--meta)}
.msg-body{white-space:pre-wrap;font-size:16px;line-height:1.65;color:var(--ink2);overflow-wrap:anywhere}


/* ══ 14 — PANELS + FORMS ══════════════════════════════════════════════════
   Inputs never under 16px (iOS zooms a smaller one on focus) and never
   cramped.                                                                */

.panel{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sheet);box-shadow:var(--sh);padding:36px 40px;
}
.panel.reply{margin-top:28px;max-width:828px}

.field{display:block}
.field+.field{margin-top:24px}
.field .lab{display:flex;align-items:baseline;gap:10px;margin-bottom:9px}
.field label{font-weight:700;font-size:14.5px;color:var(--ink)}
.field .hint{font-family:var(--mono);font-size:11px;color:var(--meta)}
.field input[type=text],.field input[type=email],.field textarea{
  width:100%;font-family:var(--sans);font-size:16px;color:var(--ink);
  background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--r-soft);padding:13px 16px;
  transition:border-color .15s,box-shadow .15s;
}
[data-theme="dark"] .field input,[data-theme="dark"] .field textarea{background:var(--alt)}
.field input:focus,.field textarea:focus{
  outline:none;border-color:var(--green-text);
  box-shadow:0 0 0 3px var(--mint-soft);
}
.field textarea{min-height:170px;resize:vertical;line-height:1.6}
.field textarea.short{min-height:130px}
.field .help{font-size:13.5px;color:var(--muted);margin-top:8px}
.field.is-error input,.field.is-error textarea{border-color:var(--flag-text)}
.field .req{color:var(--flag-text)}

.form-actions{display:flex;align-items:center;gap:14px;margin-top:32px;flex-wrap:wrap}
.form-actions .push{margin-left:auto}
.form-note{font-family:var(--mono);font-size:12px;color:var(--meta)}


/* ══ 15 — OTP / BACKLINK / TICK ═══════════════════════════════════════════
   SIX boxes, matching the original client-portal sign-in. The boxes are
   unnamed; login.html mirrors them into a hidden `code` field, and a
   <noscript> single field keeps the form usable with JS off.             */

.otp-field{margin-bottom:4px}
.otp-field .lab{display:flex;align-items:baseline;gap:10px;margin-bottom:9px}
.otp-field .lab-t{font-weight:700;font-size:14.5px;color:var(--ink)}
.otp-field .hint{font-family:var(--mono);font-size:11px;color:var(--meta)}
.otp{display:flex;gap:9px;justify-content:space-between}
.otp input{
  flex:1 1 0;min-width:0;aspect-ratio:1/1.15;text-align:center;
  font-family:var(--mono);font-size:22px;font-weight:600;
  color:var(--ink);
  background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--r-soft);
  transition:border-color .15s,box-shadow .15s;
}
[data-theme="dark"] .otp input{background:var(--alt)}
.otp input:focus{outline:none;border-color:var(--green-text);box-shadow:0 0 0 3px var(--mint-soft)}
.otp-field.is-error .otp input{border-color:var(--flag-text)}
.otp-field .help{font-size:13px;color:var(--meta);margin-top:10px}
.hint-short{color:var(--amber-text)}

.backlink{
  display:inline-block;font-family:var(--mono);font-size:11px;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;color:var(--meta);
  text-decoration:none;margin-bottom:18px;
}
.backlink:hover{color:var(--ink)}
.backlink.flush{margin-bottom:0}
.backlink-row{margin-bottom:18px}

.tick{display:flex;gap:10px;align-items:baseline;font-size:15px;color:var(--muted);padding:5px 0}
.tick::before{content:"✓";font-family:var(--mono);font-weight:700;color:var(--green-text)}


/* ══ 16 — SIGN-IN: TRUE HALF-SPLIT ════════════════════════════════════════
   ⚠️ .split is display:grid, and an absolutely-positioned child of a grid
   container anchors to its GRID AREA, not to the pane. The motif therefore
   lives inside `.split-left > div`, a position:relative NON-grid wrapper, and
   is clipped by the pane's own overflow:hidden.

   ⚠️ min-height is CAPPED. Without the cap a short card stretches the ink
   pane into a tall empty panel on a big monitor.                          */

.split{
  display:grid;grid-template-columns:1fr 1fr;
  /* full-viewport split, per the owner's original client-portal design.
     The page carries the site header again, so the panes take what is left. */
  min-height:calc(100vh - var(--head-h));
}
.split-left{
  background:#161616;color:#fff;
  /* FLEX, not grid: an absolutely-positioned child of a grid container
     anchors to its auto-placed grid AREA, which threw the motif and the
     wordmark into rows of their own above the copy. In a flex container the
     containing block is the pane's padding box, which is what both want. */
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:72px 64px;position:relative;overflow:hidden;
}
[data-theme="dark"] .split-left{background:#211F1A;border-right:1px solid var(--line)}
.split-left>div:not(.ledger-motif){max-width:480px;position:relative;z-index:1}
.split-left .kicker{color:#9CC7A4}
.split-left .display{
  margin:14px 0 16px;font-size:clamp(30px,3.2vw,40px);color:#fff;
}
.split-left .display em{color:#9CC7A4}
.split-left .sell{font-size:16.5px;line-height:1.65;color:#C9C7BE;max-width:46ch}
.split-ticks{margin-top:24px}
.tick.dark{color:#C9C7BE}
.tick.dark::before{color:#9CC7A4}

.split-left>.ledger-motif,.ledger-motif{
  /* Anchored to the PANE (not the text wrapper — that is what used to run
     the bars through the headline) and centred on its right edge, where the
     pane's overflow:hidden clips them. Hidden on narrower viewports, where
     the copy column would reach it. */
  position:absolute;right:-60px;top:50%;transform:translateY(-50%);
  opacity:.07;pointer-events:none;z-index:0;
}
.ledger-motif span{display:block;height:8px;border-radius:5px;background:#6AA575;margin:11px 0}
/* bar lengths — inline widths are not available under this CSP */
.ledger-motif span:nth-child(1){width:132px}
.ledger-motif span:nth-child(2){width:96px}
.ledger-motif span:nth-child(3){width:150px}
.ledger-motif span:nth-child(4){width:72px}
.ledger-motif span:nth-child(5){width:120px}
.ledger-motif span:nth-child(6){width:88px}
.ledger-motif span:nth-child(7){width:144px}
.ledger-motif span:nth-child(8){width:104px}


@media (max-width:1180px){ .ledger-motif{display:none} }

.priv-line{
  display:flex;align-items:center;gap:9px;margin-top:28px;
  font-family:var(--mono);font-size:12px;color:#8F8D84;
}
.priv-line svg{color:#6AA575;flex:none}

.split-right{display:grid;place-items:center;padding:56px 40px}

/* the sign-in card */
.auth{
  width:100%;max-width:440px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-sheet);
  box-shadow:var(--sh);padding:44px 44px 36px;
}
.auth .display{font-size:29px;margin:0 0 8px}
.auth .sub{color:var(--muted);font-size:15px;line-height:1.6}
.auth .sub b{color:var(--ink)}
.auth .sso{display:grid;gap:10px;margin:28px 0 4px}
.auth form{margin-top:22px}
/* scoped to a direct child of the form — an unscoped .btn.full would also
   catch the two SSO buttons and fight the .sso grid's own gap */
.auth form>.btn.full{margin-top:16px}
.auth .fine{font-size:12.5px;color:var(--meta);line-height:1.6;margin-top:22px}
.auth .fine a{color:var(--green-text)}
.auth .backlink{margin-bottom:14px}
.auth .field .help{font-size:12.5px}

/* Google renders ITS OWN button (a same-origin iframe we cannot restyle), so
   ours is painted underneath and theirs is stretched invisibly on top: the
   click target is Google's, the pixels are the design system's. */
.sso-wrap{position:relative}
.sso-overlay{
  position:absolute;inset:0;opacity:.0001;overflow:hidden;
  display:grid;place-items:center;
}
.sso-overlay iframe{max-width:none}
.or{
  display:flex;align-items:center;gap:14px;margin:22px 0;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;color:var(--meta);
  text-transform:uppercase;
}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line-strong)}


/* ══ 17 — FLASH + CALLOUT ═════════════════════════════════════════════════ */

.flash{
  background:var(--mint-soft);border:1px solid var(--mint-line);border-radius:var(--r-soft);
  padding:14px 20px;font-size:15px;color:var(--ink2);margin-bottom:24px;
  display:flex;gap:10px;align-items:baseline;
}
.flash .k{
  font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--green-text);flex:none;
}
.flash p{min-width:0}
.flash .x{
  margin-left:auto;background:none;border:0;cursor:pointer;color:var(--meta);
  padding:2px;border-radius:5px;flex:none;
}
.flash .x:hover{color:var(--ink)}
.flash.warn{background:var(--amber-tint);border-color:var(--amber-line)}
.flash.warn .k{color:var(--amber-text)}
.flash.err{background:var(--flag-tint);border-color:var(--flag-line)}
.flash.err .k{color:var(--flag-text)}

.callout{
  background:var(--mint-soft);border:1px solid var(--mint-line);
  border-radius:var(--r-soft);padding:20px 24px 21px;
}
.callout::before{
  content:"Note";display:block;
  font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--green-text);margin-bottom:9px;
}
.callout.warn{background:var(--amber-tint);border-color:var(--amber-line)}
.callout.warn::before{content:"Careful";color:var(--amber-text)}
.callout p{color:var(--ink2);font-size:16px}
.callout p+p{margin-top:.7em}
.callout.spaced{margin-top:26px}


/* ══ 18 — RESPONSIVE ══════════════════════════════════════════════════════ */

@media (max-width:840px){
  /* The brand pane is hidden outright below 840px, as the original
     client-portal sign-in did: stacked, it pushed the actual form a full
     screen down. What is left is the card, centred. */
  .split{grid-template-columns:1fr;min-height:calc(100vh - var(--head-h))}
  .split-left{display:none}
  .split-left{padding:48px 24px}
  .split-right{padding:32px 20px 40px}
  .ledger-motif{display:none}
}

@media (max-width:820px){
  body{font-size:16px}
  .shell,.portal-main{padding-left:20px;padding-right:20px}
  .portal-main{padding-top:32px}
  .panel{padding:26px 22px}
  .auth{padding:32px 24px 28px}
  .head-nav a{padding:9px 9px;font-size:13.5px}
  .site-head .shell{gap:16px}
  .head-who{display:none}
  .thread-head{padding:26px 22px}
  .metaband{gap:14px}
  .empty{padding:56px 22px}
  /* the ledger sheds its quiet right-hand columns rather than scrolling */
  .ledger .col-when,.ledger .cell-when{display:none}
  .ledger .col-by,.ledger .cell-by{display:none}
}

@media (max-width:560px){
  .site-head .shell{
    flex-wrap:wrap;gap:10px;padding-top:12px;padding-bottom:12px;
    justify-content:space-between;
  }
  .head-spacer{display:none}
  .head-nav{order:3;width:100%}

  /* THE LEDGER STACKS. Three text columns inside 390px squeezed the subject
     to five wrapped lines and hyphenated the reference, so below this width
     the row stops being a table row and becomes a block: subject, mono
     sub-line, requester, then the pill. The header row goes with it — every
     stacked line is self-describing. */
  .ledger thead{display:none}
  .ledger table,.ledger tbody,.ledger tr{display:block;width:100%}
  .ledger tr{padding:16px 18px;border-bottom:1px solid var(--line)}
  .ledger tr:last-child{border-bottom:0}
  .ledger td{display:block;border-bottom:0;padding:0}
  .ledger td>a{padding:0}
  .ledger td.cell{padding:10px 0 0}
  .ledger td.cell.num{text-align:left}
  .ledger .cell-from{display:block;padding-top:8px}
  /* stacked rows have the room again, and "did I answer this?" is exactly
     what you are asking on a phone */
  .ledger .cell-by{display:block;padding-top:6px}
  .ledger .cell-by::before{content:"Answered by ";color:var(--meta)}
  .ledger .cell-by:has(.dash){display:none}
  .ledger .subj{font-size:15.5px}

  .page-head{gap:16px}
  .page-head .push{margin-left:0}
  .metaband .push{margin-left:0}
  .msg{padding:18px 18px}
  .msg-head .when{margin-left:0;width:100%}
  .panel{padding:22px 18px}
  .form-actions{gap:10px}
  .form-actions .btn{flex:1 1 auto}
  .form-actions .push{margin-left:0;width:100%}
  .portal-foot .shell{justify-content:center;text-align:center}
}


/* ══ 19 — LICENCE PAGE ════════════════════════════════════════════════════
   Added 2026-07-26 with templates/licence.html — the legacy client-portal
   /account/ page ported into the portal. ADDITIVE ONLY: every rule below is a
   new class, so nothing above changes shape. The sheet itself is the existing
   .ledger (surface + hairline + radius + clip); these rules only describe what
   sits INSIDE it, because a licence row is not a table row — it is a record
   with a seat attached to it.

   No inline style, same as everywhere: the CSP drops style attributes.        */

/* section rule: a heading and its count, over the sheet it labels */
.sec-bar{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  flex-wrap:wrap;margin:0 2px 14px;
}
.sec-bar h2{
  font-family:var(--serif);font-weight:500;font-size:21px;letter-spacing:-.01em;
  color:var(--ink);line-height:1.2;
}
.lic-sheet{margin-bottom:34px}

/* THE LICENCE ROW. Record on the left, its one action on the right; the whole
   thing stacks under 620px rather than squeezing the button into a column. */
.lic{
  /* align-items:end, not center — the button releases the SEAT, so it sits on
     the seat's baseline rather than floating opposite the key. */
  display:block;
  padding:18px 24px 16px;border-bottom:1px solid var(--line);
}
.lic:last-child{border-bottom:0}
.lic-main{min-width:0}
.lic-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* the masked key — a chip, so it reads as a value rather than a heading */
.keyline{
  font-family:var(--mono);font-size:14px;font-weight:500;letter-spacing:.02em;
  color:var(--ink);background:var(--alt);border:1px solid var(--line-strong);
  border-radius:8px;padding:6px 11px;overflow-wrap:anywhere;
}

/* term · valid-until — the quiet mono record under the key */
.lic-facts{
  display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:11px;
  font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--meta);
}

/* the seat. Named computer over its mono provenance line. */
.seat{margin-top:13px;padding-top:13px;border-top:1px dashed var(--line-strong)}
.seat-name{display:block;font-size:15px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.seat-meta{display:block;font-family:var(--mono);font-size:11.5px;color:var(--meta);margin-top:3px}
/* an unactivated licence is not a problem, so it is quiet, not red */
.seat.free .seat-name{font-weight:500;color:var(--muted)}

.lic-act{display:flex;justify-content:flex-end}
.lic-act form{display:flex}

/* two more pill channels: a flagged licence (suspended/expired) and one that is
   simply not in use yet. Both inherit .pill's shape from §7. */
.pill.flag{background:var(--flag-tint);color:var(--flag-text);border-color:var(--flag-line)}
.pill.avail{background:var(--blue-tint);color:var(--blue-text);border-color:var(--blue-line)}
/* Available and Complimentary describe a licence's KIND, not a live
   state — no status dot. Active/Suspended/Expired keep theirs. */
/* No status dots on the licence page at all: the word carries the
   state and the colour carries the urgency. A dot on every pill was
   just noise repeated four times. */
body[data-nav="licence"] .pill::before{display:none}

/* the sheet's instruction paragraph. NOT .endnote: that is mono, and three
   mono sentences at this width read as a wall of code rather than a note. */
.sheet-note{
  font-size:13.5px;line-height:1.65;color:var(--muted);
  max-width:74ch;margin:16px 2px 0;
}
.sheet-note a{color:var(--green-text)}

/* billing + download, side by side on a wide screen. Billing takes the wider
   column: its values are mono money strings and a card brand, and they were
   touching the panel edge at 1fr. */
.two-up{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:start}
/* one card on its own (the licence-service-down state) keeps a card's width
   instead of stretching into a banner */
.two-up.single{grid-template-columns:minmax(0,420px);margin-top:26px}
/* the .panel type is sized for a form page; these two are cards in a pair */
.panel.pad-tight{padding:26px 28px}
.panel.pad-tight .sec-bar{margin-bottom:16px}
.panel.pad-tight .sec-bar h2{font-size:19px}

/* the key/value ledger inside a card — a real <dl>, ruled like a statement */
.kv{margin:0}
.kv>div{
  display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding:11px 0;border-top:1px solid var(--line);
}
.kv>div:first-child{border-top:0;padding-top:0}
.kv dt{font-size:14.5px;color:var(--muted)}
.kv dd{
  font-family:var(--mono);font-size:13px;font-weight:500;color:var(--ink);
  text-align:right;overflow-wrap:anywhere;
}

.pad-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.pad-acts form{display:flex}
.pad-note{font-size:13.5px;line-height:1.6;color:var(--muted);margin-top:16px}
.pad-note a{color:var(--green-text)}

/* the download card's product line */
.dl{padding-bottom:20px}
.dl-t{display:block;font-size:16px;font-weight:700;color:var(--ink)}
.dl-s{display:block;font-family:var(--mono);font-size:11.5px;color:var(--meta);margin-top:4px}

/* the empty state's closing line — .empty p is capped at 44ch and centred, and
   this sits under the buttons rather than above them */
.empty-hint{font-size:13.5px;color:var(--meta);margin:26px auto 0;max-width:46ch}
.empty-hint a{color:var(--green-text)}

@media (max-width:820px){
  .two-up{grid-template-columns:1fr}
  .panel.pad-tight{padding:22px 20px}
}

@media (max-width:620px){
  /* the action leaves its column and sits under the record it belongs to */
  .lic{grid-template-columns:1fr;padding:20px 18px;gap:14px}
  /* the button stays content-width, NOT full-bleed: a destructive action
     should not be the biggest target on a phone screen */
  .lic-act{justify-content:flex-start}
  .sec-bar{margin-left:0;margin-right:0}
  .kv>div{gap:10px}
}

/* ══ 20 — ATTACHMENTS ══════════════════════════════════════════════════════
   A screenshot or PDF page attached to a ticket. The native file input is
   hidden and driven by its <label>, because a browser's default control
   cannot be styled and reads as a foreign object in this design; the label
   IS the control for a keyboard and a screen reader alike, since clicking a
   label focuses and activates its input.                                  */

.attach-row{display:flex;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}
.attach-btn{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  font-family:var(--sans);font-weight:600;font-size:13.5px;color:var(--muted);
  background:var(--surface);border:1.5px dashed var(--line-strong);
  border-radius:9px;padding:9px 15px;
  transition:border-color .15s,color .15s;
}
.attach-btn:hover{border-color:var(--green-text);color:var(--ink)}
.attach-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.attach-input:focus-visible + .help,
.attach-input:focus-visible ~ .attach-btn{outline:2px solid var(--green-text);outline-offset:2px}
.attach-row .help{margin-top:0;font-family:var(--mono);font-size:12px;color:var(--meta)}

.file-chip{
  display:inline-flex;align-items:center;gap:8px;margin-top:12px;
  font-family:var(--mono);font-size:11.5px;color:var(--ink2);text-decoration:none;
  background:var(--alt);border:1px solid var(--line-strong);
  border-radius:8px;padding:7px 12px;
}
.file-chip:hover{border-color:var(--green-text)}
.file-chip svg{color:var(--meta);flex:none}
.file-chip .sz{color:var(--meta)}

/* ══ 21 — LICENCE: key line, seats, profile modal ══════════════════════════
   Ported from the original client portal (client-portal/account.html): the
   full key with a Copy control, a device row per seat with its own deactivate,
   and the Edit-profile modal. The key is shown IN FULL — this page is behind a
   session and it is the reader's own key; masking it removes the only reason
   the page exists.                                                          */

.page-head .head-side{margin-left:auto;display:flex;align-items:center;gap:10px}

/* Complimentary is its OWN state, not a shade of Available — amber against
   Available's blue and Active's green, as the original portal coded them. */
.pill.comp{background:var(--amber-tint);color:var(--amber-text);border-color:var(--amber-line)}
.key-until{
  margin-left:auto;font-family:var(--mono);font-size:12.5px;color:var(--ink2);
  white-space:nowrap;
}
.key-until .k{
  font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--meta);
}
.seat-inline{font-weight:400;color:var(--muted)}
/* offscreen textarea used by the copy fallback */
.copy-shim{position:fixed;top:-9999px;left:-9999px;opacity:0}

/* Billing and Download sit side by side and must READ as a pair: equal
   height, each card's note pinned to its own floor. */
.two-up{align-items:stretch}
.two-up>.panel{display:flex;flex-direction:column}
.two-up>.panel>.pad-note{margin-top:auto;padding-top:16px}

.keyline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.keyline code{
  font-family:var(--mono);font-size:13.5px;letter-spacing:.04em;color:var(--ink);
  background:var(--alt);border:1px solid var(--line-strong);
  border-radius:8px;padding:6px 11px;
}
.copy{
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  font-family:var(--sans);font-weight:600;font-size:12px;color:var(--muted);
  background:none;border:1px solid var(--line-strong);border-radius:7px;
  padding:5px 9px;transition:border-color .15s,color .15s;
}
.copy:hover{border-color:var(--green-text);color:var(--ink)}
.copy.done{color:var(--green-text);border-color:var(--mint-line);background:var(--mint-soft)}

/* icon spans both text rows, the action sits ON the row it acts on. The
   previous stack put name, then meta, then a full-width button line — three
   rows of mostly nothing. */
.seat{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;gap:2px 11px;
  padding:12px 0 2px;margin-top:12px;border-top:1px dashed var(--line);
}
.seat-ico{grid-row:span 2}
.seat-name{grid-column:2}
.seat-meta{grid-column:2}
.seat-act{grid-column:3;grid-row:span 2}
.seat.free{grid-template-columns:auto minmax(0,1fr)}
.seat.free .seat-name{grid-column:2}
.seat-ico{color:var(--meta);flex:none;display:grid;place-items:center;
  width:28px;height:28px;border:1px solid var(--line);border-radius:8px;
  background:var(--alt)}
.seat-name{font-weight:600;font-size:14.5px;color:var(--ink)}
.seat-meta{font-family:var(--mono);font-size:11.5px;color:var(--meta)}

.seat.free .seat-name{color:var(--muted);font-weight:500}


.ledger-foot{
  display:flex;align-items:flex-start;gap:10px;
  margin:0;padding:16px 20px;
  border-top:1px solid var(--line);background:var(--alt);
  font-size:13.5px;line-height:1.6;color:var(--muted);
}
.ledger-foot svg{color:var(--meta);flex:none;margin-top:3px}

/* billing rows carry state: past_due / unpaid / canceled are red, because
   they are the difference between "renews" and "you are about to lose it" */
/* the class sits on the ROW div (.kv > div.warn), not on the list */
.kv>div.warn dt,.kv>div.warn dd{color:var(--flag-text)}
.kv>div.warn dd{font-weight:700}

/* modal — hidden until asked for; the form inside is a real POST */
.modal{
  position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px;
  background:rgba(11,11,11,.45);
}
.modal[hidden]{display:none}
.modal-card{
  width:100%;max-width:460px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-sheet);
  box-shadow:var(--sh-lg);padding:30px 32px;
}
.modal-card .display{font-size:25px;margin-bottom:6px}
.modal-card .msub{color:var(--muted);font-size:14.5px;margin-bottom:20px}
.modal-note{font-size:12.5px;color:var(--meta);line-height:1.55;margin-top:18px}
.modal-acts{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}


/* ── staff access page ───────────────────────────────────────────────────────
   Three cards, one idea each, on ONE rhythm. The previous version stacked two
   ledger tables and a form with different internal padding, so the blocks read
   as slabs shoved together rather than a page. Every card here shares a head,
   a body and the same 22px gap. */
.card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sheet);box-shadow:var(--sh);
  padding:28px 32px;margin-top:22px;
}
.card:first-of-type{margin-top:4px}
.card.quiet{background:var(--alt);box-shadow:none}
.card-head{margin-bottom:20px}
.card-head h2{font-size:17px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.card-head p{margin-top:5px;font-size:14px;line-height:1.55;color:var(--muted)}
.card-empty{font-size:14.5px;color:var(--muted)}
.card-foot{margin-top:16px;font-family:var(--mono);font-size:11.5px;
  line-height:1.7;color:var(--meta)}

/* the tallies answer "how many people can see customer tickets" at a glance */
.tallies{display:flex;gap:10px}
.tally{
  background:var(--alt);border:1px solid var(--line);border-radius:12px;
  padding:12px 18px;text-align:center;min-width:82px;
}
.tally b{display:block;font-size:22px;font-weight:700;color:var(--ink);line-height:1.1}
.tally span{display:block;margin-top:3px;font-family:var(--mono);font-size:11px;
  letter-spacing:.05em;text-transform:uppercase;color:var(--meta)}

/* a person is a ROW OF CONTROLS, not a table cell: identity left, the two
   things you can do on the right, hairline between */
.people{list-style:none}
.person{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  padding:16px 0;border-top:1px solid var(--line);
}
.person:first-child{border-top:0;padding-top:0}
.person:last-child{padding-bottom:0}
.person-id{flex:1 1 260px;min-width:0}
.person-email{display:block;font-size:15.5px;font-weight:600;color:var(--ink);
  overflow-wrap:anywhere}
.person-meta{display:block;margin-top:4px;font-family:var(--mono);
  font-size:11.5px;line-height:1.6;color:var(--meta)}
.person-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.person-note{font-family:var(--mono);font-size:11.5px;color:var(--meta)}
.role-form,.revoke-form{display:flex;align-items:center;gap:10px}

.role-badge,.role-static{
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;border-radius:999px;padding:5px 11px;
  background:var(--alt);color:var(--meta);border:1px solid var(--line);
}
.role-badge.owner{background:var(--mint);color:var(--green-text);border-color:var(--mint-line)}

/* email and role side by side, button on the same line when there is room */
.grant-row{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.grant-row .field{flex:1 1 240px;min-width:0}
.grant-row .btn{flex:0 0 auto}
.grant .help{margin-top:14px}
/* appearance:none removes the native arrow, so one is drawn back on. A data:
   URI is fine here -- the CSP allows `img-src 'self' data:`, and a CSS
   background is an img-src, not a style-src, so this is not inline style. */
.card select{
  width:100%;appearance:none;background:var(--surface);color:var(--ink);
  border:1px solid var(--line-strong);border-radius:11px;
  padding:13px 40px 13px 15px;font-family:inherit;font-size:15px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C5F58' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 15px center;
}
[data-theme="dark"] .card select{
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8ACA1' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
.card select:focus-visible{outline:2px solid var(--ink);outline-offset:1px}

.floor{list-style:none;display:flex;flex-direction:column;gap:8px}
.floor li{font-family:var(--mono);font-size:13px;color:var(--ink)}
.floor li.warn{color:var(--amber-text);font-family:inherit;font-size:14px}

@media (max-width:640px){
  .card{padding:22px 20px}
  .person{align-items:flex-start}
  .person-acts{width:100%}
  .tallies{width:100%}
}
