:root {
  color-scheme: light;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-number: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.25rem; --text-xl: 1.75rem; --text-display: 2.5rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  --bg: #f5f6f8; --surface: #ffffff; --surface-subtle: #edf0f4; --text: #172337; --muted: #526079; --line: #d6dce5;
  --accent: #174fc9; --accent-soft: #eaf0ff; --success: #096849; --warning: #795000; --warning-soft: #fff3d9; --danger: #a32535; --danger-soft: #fff0f1;
  --chart: #174fc9; --chart-baseline: #63718a; --focus: #174fc9;
  --radius-sm: .375rem; --radius-md: .75rem; --radius-lg: 1rem;
  --elevation: 0 2px 10px #17233706; --rail-width: 13.5rem; --action-size: 2.75rem; --motion-fast: 120ms; --density-row: 3.25rem;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151d; --surface: #19212d; --surface-subtle: #222d3d; --text: #edf2fa; --muted: #a9b7cc; --line: #3c4a5e;
  --accent: #91b6ff; --accent-soft: #253852; --success: #8dd8b7; --warning: #f2c879; --warning-soft: #3a2f1e; --danger: #ffadb7; --danger-soft: #402b32;
  --chart: #91b6ff; --chart-baseline: #a9b7cc; --focus: #a9c6ff; --elevation: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --bg: #10151d; --surface: #19212d; --surface-subtle: #222d3d; --text: #edf2fa; --muted: #a9b7cc; --line: #3c4a5e;
    --accent: #91b6ff; --accent-soft: #253852; --success: #8dd8b7; --warning: #f2c879; --warning-soft: #3a2f1e; --danger: #ffadb7; --danger-soft: #402b32;
    --chart: #91b6ff; --chart-baseline: #a9b7cc; --focus: #a9c6ff; --elevation: none;
  }
}
