:root, [data-theme="light"] {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #272c34;
  --text-muted: #5b6472;
  --border: #e2e6ea;
  --border-strong: #c9cfd6;
  --dot-grid: #d5dae0;
  --anchor: #0f3a47;
  --anchor-hover: #0b2c36;
  --anchor-tint: #e1eef1;
  --on-anchor: #ffffff;
  --link: var(--anchor);
  --focus: var(--anchor);
  --status-optimal: #0e7c66;
  --status-optimal-tint: #dcefe8;
  --status-optimal-text: #0b5c4b;
  --status-in-range: #0057b8;
  --status-in-range-tint: #dce7f5;
  --status-in-range-text: #1f4f86;
  --status-out-of-range: #b84a00;
  --status-out-of-range-tint: #f8dccf;
  --status-out-of-range-text: #8a3600;
  --status-informational: #5f6b7a;
  --status-informational-tint: #eaecef;
  --status-informational-text: #3b4a5c;
  --on-status: #ffffff;
  --scale-out-of-range: #c66e33;
  --scale-in-range: #3379c6;
  --scale-optimal: #3e9685;
  --rating-1: var(--status-out-of-range);
  --rating-2: var(--scale-out-of-range);
  --rating-3: #8a9199;
  --rating-4: var(--scale-optimal);
  --rating-5: var(--status-optimal);
}
[data-theme="dark"] {
  --bg: #0b2c36;
  --surface: #103642;
  --surface-2: #16404d;
  --text: #e6eef0;
  --text-muted: #9fb8c0;
  --border: #1c4652;
  --border-strong: #3a6878;
  --dot-grid: #1c4652;
  --anchor: #e6eef0;
  --anchor-hover: #ffffff;
  --anchor-tint: #17434f;
  --on-anchor: #0b2c36;
  --link: var(--anchor);
  --focus: var(--anchor);
  --status-optimal: #3ddbb0;
  --status-optimal-tint: #123f3a;
  --status-optimal-text: #3ddbb0;
  --status-in-range: #78a9ff;
  --status-in-range-tint: #15314f;
  --status-in-range-text: #78a9ff;
  --status-out-of-range: #ff832b;
  --status-out-of-range-tint: #43261a;
  --status-out-of-range-text: #ff832b;
  --status-informational: #a8b4ba;
  --status-informational-tint: #1c3540;
  --status-informational-text: #a8b4ba;
  --on-status: #0b2c36;
  --scale-out-of-range: #d2773a;
  --scale-in-range: #4f8fd6;
  --scale-optimal: #3fb397;
  --rating-1: var(--status-out-of-range);
  --rating-2: var(--scale-out-of-range);
  --rating-3: #7e939b;
  --rating-4: var(--scale-optimal);
  --rating-5: var(--status-optimal);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --control-height: 44px;
  --scale-height: 16px;
  --scale-gap: 2px;
  --dot-now: 20px;
  --dot-prev: 13px;
  --icon: 20px;
  --icon-sm: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.display { font-family: var(--font-sans); font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-family: var(--font-sans); font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-sans); font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-family: var(--font-sans); font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.body-lg { font-family: var(--font-sans); font-size: 17px; line-height: 26px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
.small { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; }
.value-xl { font-family: var(--font-mono); font-size: 44px; line-height: 1; font-weight: 700; }
.value { font-family: var(--font-mono); font-size: 24px; line-height: 1; font-weight: 700; }
.value-sm { font-family: var(--font-mono); font-size: 15px; line-height: 22px; font-weight: 500; }
.date { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; }
