:root {
  --bg: #FBF7F2; --surface: #FFFFFF; --surface-2: #F3ECE3; --text: #1F1A17; --muted: #5B514A;
  --border: #E2D8CC; --accent: #B3261E; --accent-text: #FFFFFF; --accent-hover: #8E1D17;
  --turmeric: #E0A100; --focus: #E0A100; --ok: #1B6E3A; --warn: #8A5A00; --err: #B3261E;
  --radius: 10px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(31,26,23,.08), 0 4px 16px rgba(31,26,23,.06);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --font-ui: "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-editor: "Mukta Malar", "Noto Sans Tamil", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --z-popup: 50; --z-modal: 100; --z-toast: 200;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #14110F; --surface: #1E1A17; --surface-2: #2A2420; --text: #F2ECE6; --muted: #B9ADA2;
  --border: #3A322C; --accent: #F2B8B5; --accent-text: #3B0A07; --accent-hover: #FFD5D2;
  --ok: #7FD39B; --warn: #F0C36A; --err: #F2B8B5; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110F; --surface: #1E1A17; --surface-2: #2A2420; --text: #F2ECE6; --muted: #B9ADA2;
    --border: #3A322C; --accent: #F2B8B5; --accent-text: #3B0A07; --accent-hover: #FFD5D2;
    --ok: #7FD39B; --warn: #F0C36A; --err: #F2B8B5; color-scheme: dark;
  }
}
