/* Design tokens (UI_SPECIFICATION §4). */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-hero: 2.125rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-card: 12px;
  --r-input: 8px;
  --tap: 44px;

  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --border: #dde1e5;
  --text: #15191e;
  --text-2: #56606b;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2f0;
  --positive: #15803d;
  --warning: #b45309;
  --warning-soft: #fdf3e6;
  --negative: #b91c1c;
  --negative-soft: #fbeaea;
  --info: #1d4ed8;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgb(16 24 32 / 6%), 0 2px 8px rgb(16 24 32 / 4%);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;
  --series-8: #e34948;
  --chart-grid: #e6e9ec;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1215;
    --surface: #171b20;
    --surface-2: #1f252b;
    --border: #2c343c;
    --text: #e8ecef;
    --text-2: #9aa5b0;
    --accent: #2bb3a6;
    --accent-ink: #062521;
    --accent-soft: #12302d;
    --positive: #4ade80;
    --warning: #f0a54a;
    --warning-soft: #2e2213;
    --negative: #f87171;
    --negative-soft: #321818;
    --info: #7aa2ff;
    --focus: #7aa2ff;
    --shadow: none;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --chart-grid: #262d34;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1215;
  --surface: #171b20;
  --surface-2: #1f252b;
  --border: #2c343c;
  --text: #e8ecef;
  --text-2: #9aa5b0;
  --accent: #2bb3a6;
  --accent-ink: #062521;
  --accent-soft: #12302d;
  --positive: #4ade80;
  --warning: #f0a54a;
  --warning-soft: #2e2213;
  --negative: #f87171;
  --negative-soft: #321818;
  --info: #7aa2ff;
  --focus: #7aa2ff;
  --shadow: none;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --chart-grid: #262d34;
  color-scheme: dark;
}
