/* GENERATED by tools/build-tokens.js from docs/design/tokens.json. Do not edit by hand. */
:root {
  --radius-control: 8px;
  --radius-card: 14px;
  --radius-sheet: 16px;
  --radius-chip: 999px;
  --control-height: 48px;
  --control-height-compact: 40px;
  --min-touch-target: 44px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --fs-page-title: 24px;
  --fw-page-title: 800;
  --fs-hero: 46px;
  --fw-hero: 800;
  --fs-section-title: 16px;
  --fw-section-title: 700;
  --fs-body: 15px;
  --fw-body: 400;
  --fs-label: 12.5px;
  --fw-label: 600;
  --fs-stat: 26px;
  --fw-stat: 800;
  --fs-pill: 11.5px;
  --fw-pill: 700;
}

/* Light (default) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --canvas: #F5F8FC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --input-border: #7686A0;
  --link: #0A6ED1;
  --primary: #0A6ED1;
  --primary-hover: #085AB0;
  --on-primary: #FFFFFF;
  --tile: #1E90FF;
  --on-tile: #0F172A;
  --soft-bg: #E6F2FF;
  --soft-text: #0959AD;
  --soft-border: #B9DBFF;
  --mark-bg: #1E90FF;
  --mark-text: #0F172A;
  --sidebar: #0F172A;
  --side-text: #FFFFFF;
  --side-muted: #CBD5E1;
  --side-border: rgba(255,255,255,0.22);
  --side-active-bg: #1E90FF;
  --side-active-text: #0F172A;
  --urgent-bg: #D32F2F;
  --urgent-text: #FFFFFF;
  --ok-bg: #E7F6EC;
  --ok-text: #1D6B3A;
  --warn-bg: #FFF4DB;
  --warn-text: #7A5200;
  --draft-bg: #EEF2F6;
  --draft-text: #475569;
  --bar: #1E90FF;
  --track: #E2E8F0;
  --phone-frame: #0F172A;
  --tab-active: #0A6ED1;
  --shadow: rgba(15,23,42,0.10);
}

/* Dark: follows the system setting unless the user picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0B0F17;
    --surface: #151B26;
    --ink: #FFFFFF;
    --muted: #A3AEC2;
    --border: #2A3446;
    --input-border: #56647D;
    --link: #4DA8FF;
    --primary: #1E90FF;
    --primary-hover: #4DA8FF;
    --on-primary: #0B0F17;
    --tile: #1E90FF;
    --on-tile: #0B0F17;
    --soft-bg: #13253F;
    --soft-text: #7CC0FF;
    --soft-border: #23406A;
    --mark-bg: #1E90FF;
    --mark-text: #0B0F17;
    --sidebar: #080B11;
    --side-text: #FFFFFF;
    --side-muted: #A3AEC2;
    --side-border: #2A3446;
    --side-active-bg: #1E90FF;
    --side-active-text: #0B0F17;
    --urgent-bg: #D92D20;
    --urgent-text: #FFFFFF;
    --ok-bg: #0F2A1C;
    --ok-text: #5EE29A;
    --warn-bg: #33290F;
    --warn-text: #FFD45C;
    --draft-bg: #1C2330;
    --draft-text: #A3AEC2;
    --bar: #1E90FF;
    --track: #2A3446;
    --phone-frame: #2A3446;
    --tab-active: #4DA8FF;
    --shadow: rgba(0,0,0,0.5);
  }
}

/* Dark: manual override (on the page or on a nested element such as the phone preview) */
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0B0F17;
  --surface: #151B26;
  --ink: #FFFFFF;
  --muted: #A3AEC2;
  --border: #2A3446;
  --input-border: #56647D;
  --link: #4DA8FF;
  --primary: #1E90FF;
  --primary-hover: #4DA8FF;
  --on-primary: #0B0F17;
  --tile: #1E90FF;
  --on-tile: #0B0F17;
  --soft-bg: #13253F;
  --soft-text: #7CC0FF;
  --soft-border: #23406A;
  --mark-bg: #1E90FF;
  --mark-text: #0B0F17;
  --sidebar: #080B11;
  --side-text: #FFFFFF;
  --side-muted: #A3AEC2;
  --side-border: #2A3446;
  --side-active-bg: #1E90FF;
  --side-active-text: #0B0F17;
  --urgent-bg: #D92D20;
  --urgent-text: #FFFFFF;
  --ok-bg: #0F2A1C;
  --ok-text: #5EE29A;
  --warn-bg: #33290F;
  --warn-text: #FFD45C;
  --draft-bg: #1C2330;
  --draft-text: #A3AEC2;
  --bar: #1E90FF;
  --track: #2A3446;
  --phone-frame: #2A3446;
  --tab-active: #4DA8FF;
  --shadow: rgba(0,0,0,0.5);
}
