:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-overlay: #112a2c;
  --text: #0f172a;
  --text-on-overlay: #ffffff;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --header-bg: #323232;
  --header-text: #ffffff;
  --accent: #ef4444;
  --input-bg: #ffffff;
  --input-text: #112a2c;
  --button-bg: #112a2c;
  --button-text: #ffffff;
  --backdrop: rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.08);
  --stat-track: #e5e7eb;
  --stat-low: #ef4444;
  --stat-mid: #eab308;
  --stat-high: #22c55e;
  --stat-total: #3b82f6;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --focus-ring: #60a5fa;
  --link-color: #323232;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #0f172a;
  --surface-raised: #1e293b;
  --surface-overlay: #0b1e20;
  --text: #f1f5f9;
  --text-on-overlay: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --header-bg: #0f172a;
  --header-text: #f1f5f9;
  --accent: #f87171;
  --input-bg: #1e293b;
  --input-text: #f1f5f9;
  --button-bg: #1e293b;
  --button-text: #f1f5f9;
  --backdrop: rgba(0, 0, 0, 0.75);
  --scrim: rgba(255, 255, 255, 0.04);
  --stat-track: #334155;
  --stat-low: #f87171;
  --stat-mid: #facc15;
  --stat-high: #4ade80;
  --stat-total: #60a5fa;
  --error-bg: #450a0a;
  --error-text: #fecaca;
  --focus-ring: #60a5fa;
  --link-color: #cbd5e1;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}
