:root, [data-theme="dark"] {
  --bg-canvas: #000000;
  --bg-surface: #0d0d0d;
  --bg-raised: #1a1a1a;
  --bg-overlay: #262626;
  --bg-elevated: #0d0d0d;
  --bg-field: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #d9d9d9;
  --text-muted: #b3b3b3;
  --text-subtle: #8c8c8c;
  --text-disabled: #5c5c5c;
  --line-hairline: #262626;
  --line-strong: #3a3a3a;
  --line-control: #737373;
  --focus-ring: #ffffff;
  --action-primary: #ffffff;
  --action-primary-hover: #d9d9d9;
  --on-action-primary: #000000;
  --signal-ok: #8fd4ab;
  --signal-pending: #e6c878;
  --signal-danger: #f09a88;
  --signal-info: #a9c1f5;
  --scrim: rgba(0, 0, 0, 0.72);
  --scrim-photo: rgba(0, 0, 0, 0.88);
  --media-ground: #111111;
  --media-stripe: #1f1f1f;
  --ma-blue: #365dbf;
  --ma-charcoal: #303030;
  --ma-gray: #d3d3d3;
  --ma-cream: #fefffa;
  --shadow-whisper: none;
  --shadow-soft: none;
  --shadow-float: none;
}
[data-theme="light"] {
  --bg-canvas: #ffffff;
  --bg-surface: #fafafa;
  --bg-raised: #f3f3f3;
  --bg-overlay: #ebebeb;
  --bg-elevated: #ffffff;
  --bg-field: #ffffff;
  --text-primary: #000000;
  --text-secondary: #1f1f1f;
  --text-muted: #5c5c5c;
  --text-subtle: #696969;
  --text-disabled: #a3a3a3;
  --line-hairline: #e5e5e5;
  --line-strong: #d4d4d4;
  --line-control: #858585;
  --focus-ring: #000000;
  --action-primary: #000000;
  --action-primary-hover: #1f1f1f;
  --on-action-primary: #ffffff;
  --signal-ok: #1e6b45;
  --signal-pending: #7a5600;
  --signal-danger: #a8321f;
  --signal-info: #365dbf;
  --scrim: rgba(0, 0, 0, 0.4);
  --shadow-whisper: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-soft: 0 3px 6px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
:root {
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 96px;
  --space-4xl: 120px;
  --radius-tag: 3px;
  --radius-input: 4px;
  --radius-panel: 8px;
  --radius-pill: 32px;
  --radius-round: 999px;
  --radius-icon: 22%;
  --size-tap: 44px;
  --size-control: 48px;
  --size-control-sm: 40px;
  --size-icon-button: 36px;
  --size-mark: 32px;
  --layout-content-max: 1320px;
  --layout-gutter: 24px;
  --layout-reading: 768px;
  --layout-sidebar: 260px;
  --bp-wide: 1440px;
  --bp-desktop: 1280px;
  --bp-laptop: 1024px;
  --bp-tablet: 768px;
  --opacity-scrim: 0.72;
  --opacity-photo-top: 0.35;
  --opacity-photo-bottom: 0.92;
  --z-header: 100;
  --z-sheet: 200;
  --z-dialog: 300;
  --z-toast: 400;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}
.display-xxl { font-family: var(--font-display); font-size: 88px; line-height: 0.95; font-weight: 700; letter-spacing: 0.01em; }
.display { font-family: var(--font-display); font-size: 48px; line-height: 0.95; font-weight: 700; letter-spacing: 0.01em; }
.metric { font-family: var(--font-display); font-size: 64px; line-height: 0.9; font-weight: 700; }
.title { font-family: var(--font-display); font-size: 28px; line-height: 0.98; font-weight: 700; letter-spacing: 0.01em; }
.subtitle { font-family: var(--font-display); font-size: 18px; line-height: 1.1; font-weight: 600; letter-spacing: 0.08em; }
.action { font-family: var(--font-display); font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: 0.12em; }
.heading { font-family: var(--font-body); font-size: 18px; line-height: 1.3; font-weight: 600; }
.lead { font-family: var(--font-body); font-size: 17px; line-height: 1.55; font-weight: 400; }
.body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400; }
.small { font-family: var(--font-body); font-size: 14px; line-height: 1.55; font-weight: 400; }
.caption { font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; font-weight: 400; }
.mono { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.14em; }
.mono-data { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; font-weight: 400; }
