/* Design tokens. Light is default; dark follows the OS unless the user picks one. */
:root {
  --paper: #F6F7F5;
  --surface: #FFFFFF;
  --surface-2: #EEF1EF;
  --ink: #1B2430;
  --muted: #5B6675;
  --faint: #8A94A1;
  --rule: #DCE1E4;
  --rule-strong: #C3CAD0;
  --accent: #0E6655;
  --accent-ink: #FFFFFF;
  --accent-soft: #E1EFEA;
  --accent-hover: #0B5446;
  --danger: #B42318;
  --danger-soft: #FCEDEB;
  --warn: #8A5300;
  --warn-soft: #FBF1DF;
  --ok: #1E6B3A;
  --ok-soft: #E4F2E8;
  --focus: #2F6FDB;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.3125rem;
  --step-3: 1.75rem;
  --step-4: 2.375rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-s: 5px;
  --radius-m: 8px;
  --control-h: 40px;
  --sidebar-w: 236px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11161C;
    --surface: #171E26;
    --surface-2: #1D2630;
    --ink: #E4E9EE;
    --muted: #9AA5B1;
    --faint: #6F7A87;
    --rule: #28323D;
    --rule-strong: #36424F;
    --accent: #3BAE94;
    --accent-ink: #08201A;
    --accent-soft: #173A33;
    --accent-hover: #52C2A8;
    --danger: #F2837A;
    --danger-soft: #3A1D1B;
    --warn: #E4B25C;
    --warn-soft: #3A2E17;
    --ok: #74C68F;
    --ok-soft: #183423;
    --focus: #7EA8F5;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #11161C;
  --surface: #171E26;
  --surface-2: #1D2630;
  --ink: #E4E9EE;
  --muted: #9AA5B1;
  --faint: #6F7A87;
  --rule: #28323D;
  --rule-strong: #36424F;
  --accent: #3BAE94;
  --accent-ink: #08201A;
  --accent-soft: #173A33;
  --accent-hover: #52C2A8;
  --danger: #F2837A;
  --danger-soft: #3A1D1B;
  --warn: #E4B25C;
  --warn-soft: #3A2E17;
  --ok: #74C68F;
  --ok-soft: #183423;
  --focus: #7EA8F5;
  color-scheme: dark;
}
