:root {
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --bg: #080809;
  --bg-elevated: #0c0c0e;
  --surface: #121214;
  --surface-hover: #18181b;
  --chrome: #101012;
  --chrome-muted: #0a0a0c;
  --surface-inset: #0a0a0c;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.11);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --accent: #8b5cf6;
  --accent-dim: #6d28d9;
  --accent-hover: #a78bfa;
  --success: #34d399;
  --error: #f87171;
  --checker-light: #d4d4d4;
  --checker-dark: #c2c2c2;
  --radius-input: 10px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --stroke-hairline: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --stroke-hairline-hover: 0 0 0 1px rgba(255, 255, 255, 0.12);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --max-content: 1080px;
  --max-prose: 40rem;
  --header-h: 56px;
  --transition: 180ms ease;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-elevated: var(--surface);
  --color-text: var(--text-primary);
  --color-text-muted: var(--text-secondary);
  --color-border: var(--border);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-accent-subtle: rgba(139, 92, 246, 0.12);
  --color-success: var(--success);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 4px 24px rgba(0, 0, 0, 0.45);
  --tab-selected-bg: rgba(255, 255, 255, 0.04);
  --modal-backdrop: rgba(0, 0, 0, 0.65);
  --preview-edge: rgba(255, 255, 255, 0.1);
  --theme-color-meta: #8b5cf6;
  --color-swatch-inset: rgba(0, 0, 0, 0.12);
  --picker-ring: 0 0 0 1px rgba(139, 92, 246, 0.45);
  --style-img-bg: rgba(255, 255, 255, 0.04);
  --style-img-empty-border: rgba(255, 255, 255, 0.12);
  --style-img-empty-bg: rgba(255, 255, 255, 0.02);
  --style-glyph-bg: rgba(255, 255, 255, 0.05);
  --style-glyph-border: rgba(255, 255, 255, 0.06);
  --style-glyph-active-bg: rgba(255, 255, 255, 0.1);
  --style-glyph-active-border: rgba(255, 255, 255, 0.1);
  --style-picker-thumb-filter: brightness(0.78);
  --z-header: 50;
  --z-modal: 100;
  --z-banner: 200;
  --bp-sm: 520px;
  --bp-md: 640px;
  --bp-lg: 960px;
}

html[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-elevated: #fafafa;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --chrome: #ececee;
  --chrome-muted: #e4e4e8;
  --surface-inset: #ebebef;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --accent: #7c3aed;
  --accent-dim: #6d28d9;
  --accent-hover: #8b5cf6;
  --success: #059669;
  --error: #dc2626;
  --checker-light: #e4e4e7;
  --checker-dark: #d4d4d8;
  --stroke-hairline: 0 0 0 1px rgba(0, 0, 0, 0.1);
  --stroke-hairline-hover: 0 0 0 1px rgba(0, 0, 0, 0.18);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --color-accent-subtle: rgba(124, 58, 237, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 4px 24px rgba(0, 0, 0, 0.1);
  --tab-selected-bg: rgba(0, 0, 0, 0.05);
  --modal-backdrop: rgba(0, 0, 0, 0.4);
  --preview-edge: rgba(0, 0, 0, 0.12);
  --theme-color-meta: #f4f4f5;
  --color-swatch-inset: rgba(0, 0, 0, 0.08);
  --picker-ring: 0 0 0 1px rgba(124, 58, 237, 0.45);
  --style-img-bg: rgba(0, 0, 0, 0.045);
  --style-img-empty-border: rgba(0, 0, 0, 0.18);
  --style-img-empty-bg: rgba(0, 0, 0, 0.03);
  --style-glyph-bg: rgba(0, 0, 0, 0.04);
  --style-glyph-border: rgba(0, 0, 0, 0.1);
  --style-glyph-active-bg: rgba(0, 0, 0, 0.08);
  --style-glyph-active-border: rgba(0, 0, 0, 0.14);
  --style-picker-thumb-filter: brightness(0.38);
}
