/* Shared design tokens for all ops-platform web apps (app.html, portal.html, explain.html).
   Type (decided 2026-10-29): Heebo for UI + numbers (tabular), Assistant for display/headings.
   Money semantics (decided 2026-10-29):
     --money-in  green  : money received / paid amounts
     --money-out brown  : money leaving / negative / written-off amounts (never red)
     --overdue   red    : ONLY things that need the owner now (overdue invoice, late pill, failed connection)
   There is intentionally no generic "bad" red: non-urgent problems use --warn or neutral. */
:root{
  --bg:#f3f5f6; --surface:#ffffff; --raised:#f7f9fa; --ink:#172126; --muted:#5b6b73; --line:#dfe5e8; --line-strong:#c9d3d8;
  --brand:#0e7c86; --brand-ink:#0b646c; --on-brand:#ffffff; --brand-soft:#e1f0f1;
  --ok:#167A4B; --ok-bg:#e0f1e8; --warn:#8a5a00; --warn-bg:#fcefcf; --info:#2b5fb3; --info-bg:#e3ebf9;
  --money-in:#167A4B; --money-in-bg:#e0f1e8;
  --money-out:#8A3B12; --money-out-bg:#f6e6db;
  --overdue:#B3261E; --overdue-bg:#fbe3e0;
  --f-display:"Assistant","Heebo",system-ui,sans-serif;
  --f-body:"Heebo",system-ui,"Segoe UI",Arial,sans-serif;
  --f-mono:ui-monospace,Menlo,Consolas,monospace;
  --r-sm:8px; --r:12px; --r-lg:18px; --shadow:0 1px 2px rgba(16,28,32,.06),0 8px 24px -16px rgba(16,28,32,.25);
  --safe-b:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
/* Default stays the light :root palette above. Dark tokens apply only when
   data-theme="dark" (the in-app toggle). Auto-switch on prefers-color-scheme:dark
   is disabled so a dark OS no longer replaces the light style (Oren, 2026-11-10). */
:root[data-theme="dark"]{
  --bg:#0f1618; --surface:#161f23; --raised:#1c272c; --ink:#e4ecef; --muted:#97a8b0; --line:#293740; --line-strong:#36474f;
  --brand:#5cc0c7; --brand-ink:#8ad6db; --on-brand:#0b1a1c; --brand-soft:#173236;
  --ok:#6fd39f; --ok-bg:#132f22; --warn:#e9c45c; --warn-bg:#33290e; --info:#8fb3f0; --info-bg:#1a2a44;
  --money-in:#6fd39f; --money-in-bg:#132f22;
  --money-out:#e3a07a; --money-out-bg:#35210f;
  --overdue:#ff8a80; --overdue-bg:#3d1714;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -16px rgba(0,0,0,.7); color-scheme:dark}
/* shared semantic helpers */
.num,.mono{font-family:var(--f-body);font-variant-numeric:tabular-nums}
.money-in{color:var(--money-in)} .money-out{color:var(--money-out)} .overdue-txt{color:var(--overdue)}
