:root,
:root[data-theme="light"] {
  color-scheme: light;
  --color-bg-canvas: #f5f7fa;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #eef2f7;
  --color-text-primary: #172033;
  --color-text-secondary: #5d6b82;
  --color-border: #d7dee9;
  --color-brand: #2457d6;
  --color-brand-hover: #1b46b8;
  --color-success: #157a4b;
  --color-warning: #9a5b00;
  --color-danger: #b42318;
  --color-focus-ring: #6e96ff;
  --color-nav-bg: #172033;
  --color-nav-text: #f2f5f9;
  --color-nav-muted: #aab5c5;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 30px;
  --line-height-tight: 1.25;
  --line-height-body: 1.6;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --shadow-raised: 0 8px 28px rgb(23 32 51 / 12%);
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-slow: 240ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg-canvas: #101319;
    --color-bg-surface: #191e26;
    --color-bg-subtle: #222a35;
    --color-text-primary: #f2f5f9;
    --color-text-secondary: #aab5c5;
    --color-border: #344052;
    --color-brand: #7ea2ff;
    --color-brand-hover: #a6beff;
    --color-success: #63d49c;
    --color-warning: #f3b65d;
    --color-danger: #ff8a80;
    --color-focus-ring: #9db8ff;
    --color-nav-bg: #0b0e14;
    --color-nav-text: #f2f5f9;
    --color-nav-muted: #98a6ba;
    --shadow-raised: 0 8px 28px rgb(0 0 0 / 38%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg-canvas: #101319;
  --color-bg-surface: #191e26;
  --color-bg-subtle: #222a35;
  --color-text-primary: #f2f5f9;
  --color-text-secondary: #aab5c5;
  --color-border: #344052;
  --color-brand: #7ea2ff;
  --color-brand-hover: #a6beff;
  --color-success: #63d49c;
  --color-warning: #f3b65d;
  --color-danger: #ff8a80;
  --color-focus-ring: #9db8ff;
  --color-nav-bg: #0b0e14;
  --color-nav-text: #f2f5f9;
  --color-nav-muted: #98a6ba;
  --shadow-raised: 0 8px 28px rgb(0 0 0 / 38%);
}
