:root {
  color-scheme: light;
  --bg-app: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0f3f8;
  --bg-hover: #eef2f8;
  --text: #172033;
  --text-muted: #64708a;
  --text-faint: #8a94a8;
  --border: #e2e7f0;
  --border-strong: #cbd3e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #e8efff;
  --primary-contrast: #ffffff;
  --success: #15803d;
  --success-soft: #e7f7ee;
  --warning: #a16207;
  --warning-soft: #fdf3d8;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --info: #0369a1;
  --info-soft: #e6f4fb;
  --neutral-soft: #eef1f6;
  --focus: #7aa7ff;
  --sidebar-bg: #111a2e;
  --sidebar-text: #c9d3e6;
  --sidebar-text-muted: #8b9ab4;
  --sidebar-active: #1f2c46;
  --sidebar-accent: #7aa7ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-1: 0 1px 2px rgba(18, 35, 68, 0.06), 0 1px 3px rgba(18, 35, 68, 0.05);
  --shadow-2: 0 10px 30px rgba(18, 35, 68, 0.12);
  --sidebar-w: 258px;
  --topbar-h: 64px;
  --content-max: 1440px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-app: #0b1220;
  --bg-surface: #121b2d;
  --bg-elevated: #172238;
  --bg-subtle: #0f1829;
  --bg-hover: #1b2841;
  --text: #e8eefb;
  --text-muted: #99a7c2;
  --text-faint: #71809c;
  --border: #25324a;
  --border-strong: #34435f;
  --primary: #6ea1ff;
  --primary-hover: #8ab5ff;
  --primary-soft: #1a2b4d;
  --primary-contrast: #08101f;
  --success: #4ade80;
  --success-soft: #12301f;
  --warning: #fbbf24;
  --warning-soft: #33280d;
  --danger: #fb7185;
  --danger-soft: #3a1820;
  --info: #67c7f7;
  --info-soft: #0e2c3d;
  --neutral-soft: #1d2940;
  --focus: #6ea1ff;
  --sidebar-bg: #080e1a;
  --sidebar-text: #c6d2e8;
  --sidebar-text-muted: #7f8faa;
  --sidebar-active: #16233a;
  --sidebar-accent: #6ea1ff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 14px 36px rgba(0, 0, 0, 0.45);
}
