/* OpenRack design tokens (ux100, 2026-11-01). One source of truth for type, spacing, radius, colour, focus and motion.
   Loaded right after /assets/style.css so the legacy variable names (--bg, --panel, --amber...) resolve to these tokens.
   Documented in TOKENS.md. Accent rules: amber = the one primary action colour; warm "lamp" red = live/active state only;
   pure red = Record only; everything else is neutral. A small purple dot in the logo is the only Paisley nod. */
:root{
 /* type */
 --font-sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
 --font-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
 --fs-2xs:11px;--fs-xs:12px;--fs-sm:13px;--fs-md:14px;--fs-base:16px;--fs-lg:18px;--fs-xl:22px;--fs-2xl:28px;--fs-3xl:clamp(28px,3.6vw,38px);
 --lh-tight:1.15;--lh-snug:1.35;--lh-body:1.55;
 --fw-reg:400;--fw-med:600;--fw-bold:700;--fw-black:800;
 --tracking-caps:.08em;
 /* spacing (4px grid) */
 --sp-0:2px;--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;--sp-8:64px;
 /* radius */
 --r-xs:4px;--r-sm:6px;--r-md:10px;--r-lg:14px;--r-xl:20px;--r-pill:999px;
 /* surfaces + text (all text tokens >= 4.5:1 on --surface-2) */
 --c-bg:#0b0b0c;--c-surface-1:#131416;--c-surface-2:#1a1c1f;--c-surface-3:#23262a;--c-scrim:rgba(6,6,8,.72);
 --c-line:#2b2e33;--c-line-strong:#3d4148;
 --c-text:#eef0f3;--c-text-2:#b9bfc8;--c-text-3:#959ca7;
 /* accents */
 --c-accent:#ffb340;--c-accent-hi:#ffd08a;--c-on-accent:#1a1205;
 --c-lamp:#ff6a3d;--c-lamp-core:#ffb26b;--c-lamp-glow:rgba(255,106,61,.55);--c-lamp-off:#3a2a24;
 --c-rec:#ff3b3b;--c-danger:#ff7a8f;--c-ok:#5fd39b;--c-nod:#a77bff;
 /* focus */
 --focus-ring:0 0 0 2px var(--c-bg),0 0 0 4px var(--c-accent-hi);--focus-outline:2px solid var(--c-accent-hi);--focus-offset:2px;
 /* elevation */
 --shadow-1:0 1px 0 rgba(255,255,255,.03) inset,0 6px 18px rgba(0,0,0,.35);--shadow-2:0 18px 48px rgba(0,0,0,.55);
 /* motion */
 --dur-1:120ms;--dur-2:200ms;--dur-3:320ms;--ease:cubic-bezier(.2,.7,.2,1);
 --lamp-warm:180ms;--lamp-cool:650ms;
 /* layout */
 --header-h:58px;--inspector-w:360px;--maxw:1320px;--tap:40px;
 /* legacy names mapped onto tokens */
 --bg:var(--c-bg);--panel:var(--c-surface-1);--panel2:var(--c-surface-2);--line:var(--c-line);--text:var(--c-text);--muted:var(--c-text-2);--dim:var(--c-text-3);
 --amber:var(--c-accent);--teal:var(--c-text-2);--pink:var(--c-danger);--purple:var(--c-text-2);--purple2:var(--c-surface-3);
 --mono:var(--font-mono);--sans:var(--font-sans);
}
/* widescreen laptops: stretch the app shell */
@media (min-width:1600px){:root{--maxw:1600px}}
@media (prefers-reduced-motion:reduce){:root{--dur-1:0ms;--dur-2:0ms;--dur-3:0ms;--lamp-warm:0ms;--lamp-cool:0ms}}
