/* Tearsheet design tokens — include once, globally.
   Switch themes with <html data-theme="dark">. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui-bg: #ffffff;
  --ui-surface: #ffffff;
  --ui-surface-2: #f4f4f5;
  --ui-text: #18181b;
  --ui-muted: #5b5b66;
  --ui-border: #e4e4e7;
  --ui-border-strong: #8e8e99;
  --ui-accent: #4f46e5;
  --ui-accent-hover: #4338ca;
  --ui-accent-soft: #eef2ff;
  --ui-accent-text: #ffffff;
  --ui-success: #15803d;
  --ui-success-soft: #f0fdf4;
  --ui-warning: #b45309;
  --ui-warning-soft: #fffbeb;
  --ui-danger: #c81e1e;
  --ui-danger-soft: #fef2f2;
  --ui-danger-text: #ffffff;
  --ui-radius: 12px;
  --ui-radius-sm: 8px;
  --ui-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 16px rgb(0 0 0 / 0.06);
  --ui-shadow-lg: 0 12px 40px rgb(0 0 0 / 0.18);
  --ui-focus: 0 0 0 3px rgb(79 70 229 / 0.4);
}

[data-theme="dark"] {
  --ui-bg: #0f0f12;
  --ui-surface: #18181c;
  --ui-surface-2: #232329;
  --ui-text: #f4f4f5;
  --ui-muted: #a1a1aa;
  --ui-border: #2e2e35;
  --ui-border-strong: #6b6b76;
  --ui-accent: #818cf8;
  --ui-accent-hover: #a5b4fc;
  --ui-accent-soft: #1e1b4b;
  --ui-accent-text: #0f0f12;
  --ui-success: #4ade80;
  --ui-success-soft: #052e16;
  --ui-warning: #fbbf24;
  --ui-warning-soft: #2a1d05;
  --ui-danger: #f87171;
  --ui-danger-soft: #2d0f0f;
  --ui-danger-text: #0f0f12;
  --ui-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 16px rgb(0 0 0 / 0.3);
  --ui-shadow-lg: 0 12px 40px rgb(0 0 0 / 0.5);
  --ui-focus: 0 0 0 3px rgb(129 140 248 / 0.5);
}
