/* STORM design tokens: the ONE shared source (card t_2bdeebff). Dark + light palettes, nine accents, spacing, radii, type, timings.
   Imported by os.html and by every page that has moved to the STORM system (html[data-os]). Change a value here and every page follows.
   Accessibility: AA text contrast on every accent x theme (accent-fg / accent-text are derived per preset). Do not duplicate these variables in a page file. */

/* ---------- tokens: accent presets (spec Part III #4). --accent-solid carries text, so it is the one allowed to differ slightly from the preset hex when white text would fail AA ---------- */
:root, [data-accent="blue"] { --accent: #0066FF; --accent-solid: #0066FF; --accent-fg: #FFFFFF; }
[data-accent="pink"]   { --accent: #EC4899; --accent-solid: #EC4899; --accent-fg: #111827; }
[data-accent="red"]    { --accent: #EF4444; --accent-solid: #EF4444; --accent-fg: #111827; }
[data-accent="purple"] { --accent: #8B5CF6; --accent-solid: #8559EC; --accent-fg: #FFFFFF; }
[data-accent="cyan"]   { --accent: #06B6D4; --accent-solid: #06B6D4; --accent-fg: #111827; }
[data-accent="orange"] { --accent: #F97316; --accent-solid: #F97316; --accent-fg: #111827; }
[data-accent="green"]  { --accent: #16A34A; --accent-solid: #16A34A; --accent-fg: #111827; }
[data-accent="gold"]   { --accent: #D4A017; --accent-solid: #D4A017; --accent-fg: #111827; }
[data-accent="indigo"] { --accent: #6366F1; --accent-solid: #6265EF; --accent-fg: #FFFFFF; }

/* ---------- tokens: themes ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #090D13; --surface: #101722; --surface-2: #151D29; --elev: #1B2533; --side: #0C121B; --card: #121A25; --hover: #202C3C;
  --text: #F7F9FC; --text-2: #A8B3C2; --text-3: #8592A4; --border: #263343;
  --ok: #22C55E; --warn: #F59E0B; --err: #F87171; --status-fg: #090D13;
  --accent-text: color-mix(in srgb, var(--accent) 75%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent-hover: color-mix(in srgb, var(--accent-solid) 88%, #fff);
  --accent-press: color-mix(in srgb, var(--accent-solid) 82%, #000);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.28);
  --orb-core: #0A0F1B; --orb-mid: color-mix(in srgb, var(--accent) 7%, #0B1020); --orb-edge: color-mix(in srgb, var(--accent) 30%, #0B1020);
  --orb-glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --scrim: rgba(3,6,10,.62);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F8FA; --surface: #FFFFFF; --surface-2: #F1F4F8; --elev: #FFFFFF; --side: #F9FAFC; --card: #FFFFFF; --hover: #EDF2F8;
  --text: #111827; --text-2: #536174; --text-3: #5F6C7F; --border: #E3E8EF;
  --ok: #15803D; --warn: #B45309; --err: #DC2626; --status-fg: #FFFFFF;
  --accent-text: color-mix(in srgb, var(--accent) 55%, #111827);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 60%, #fff);
  --accent-hover: color-mix(in srgb, var(--accent-solid) 88%, #fff);
  --accent-press: color-mix(in srgb, var(--accent-solid) 82%, #000);
  --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.06);
  --orb-core: #FFFFFF; --orb-mid: color-mix(in srgb, var(--accent) 6%, #fff); --orb-edge: color-mix(in srgb, var(--accent) 24%, #fff);
  --orb-glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --scrim: rgba(17,24,39,.38);
}
:root {
  --font: "Helvetica Neue", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --r-card: 16px; --r-btn: 12px; --r-pill: 26px;
  --t-micro: 150ms; --t-panel: 220ms; --t-large: 300ms; --ease: cubic-bezier(.2,.7,.2,1);
  --side-w: 236px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

