  :root {
    color-scheme: light;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: var(--font-family);
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-subtle: #eff6ff;
    --radius-sm: 8px;
    --control-height: 36px;
    --action-bg: #2563eb;
    --action-hover: #1d4ed8;
    --dialog-radius: 10px;
    --dialog-shadow: 0 16px 48px -16px rgba(0, 0, 0, .28);
    --radius-md: 10px;
    --button-face: linear-gradient(180deg, #ffffff, #edf0f4);
    --button-edge: #c6ccd5;
    --button-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 var(--button-edge), 0 4px 5px rgba(0,0,0,.12);
    --button-pressed-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 var(--button-edge);
    --action-face: linear-gradient(180deg, #2f71df, #245ac2);
    --action-edge: #173c88;
    --action-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 var(--action-edge), 0 5px 7px rgba(0,0,0,.16);
    --action-pressed-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 var(--action-edge);
    --page-heading-size: calc(28px * var(--panel-text-scale, 1));
    --section-heading-size: calc(18px * var(--panel-text-scale, 1));
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg-page: #1b1c20;
    --bg-surface: #25262b;
    --bg-subtle: #303137;
    --border: #37393f;
    --border-strong: #4b4e57;
    --text-main: #f8fafc;
    --text-muted: #b3b6c0;
    --text-faint: #9095a2;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-subtle: #233351;
    --button-face: linear-gradient(180deg, #3c3e45, #32343a);
    --button-edge: #17181c;
  }

:root {
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px;
  --text-body:14px; --text-small:12px; --text-title:28px;
  --control-height:40px; --radius-sm:6px; --radius-md:10px;
  --page-heading-size:28px; --section-heading-size:18px;
  --content-width:1280px;
}
