/* ==========================================================================
   exocad 3.3 Chemnitz Field Manual — Theme Tokens (Dark Default + Light)
   ========================================================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand & Clinical Accents */
  --accent-primary: #00a8e8;
  --accent-secondary: #14b8a6;
  --accent-glow: rgba(0, 168, 232, 0.18);
  --cad-safe: #22c55e;
  --cad-warn: #f59e0b;
  --cad-danger: #ef4444;
  --cad-margin: #38bdf8;
  --cad-prep: #a78bfa;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* EXOCAD DARK THEME (DEFAULT) */
[data-theme="dark"] {
  --bg-app: #121417;
  --bg-chrome: #181b20;
  --bg-page: #1e2229;
  --bg-page-alt: #242932;
  --bg-elevated: #282e38;
  --bg-input: #14171c;
  --border-subtle: #2e3542;
  --border-strong: #3f4859;
  --spine-shadow: rgba(0, 0, 0, 0.65);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* SVG Schematic Tokens */
  --svg-bg: #15181e;
  --svg-panel: #1f242d;
  --svg-panel-alt: #272d38;
  --svg-grid: rgba(148, 163, 184, 0.08);
  --svg-stroke: #475569;
  --svg-text: #f8fafc;
  --svg-subtext: #94a3b8;
}

/* CLEAN PAPER LIGHT THEME */
[data-theme="light"] {
  --bg-app: #e6e9ef;
  --bg-chrome: #f8fafc;
  --bg-page: #ffffff;
  --bg-page-alt: #f4f6fa;
  --bg-elevated: #eef2f7;
  --bg-input: #ffffff;
  --border-subtle: #dbe1ea;
  --border-strong: #bac4d4;
  --spine-shadow: rgba(15, 23, 42, 0.14);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* SVG Schematic Tokens */
  --svg-bg: #f8fafc;
  --svg-panel: #ffffff;
  --svg-panel-alt: #eef2f7;
  --svg-grid: rgba(15, 23, 42, 0.06);
  --svg-stroke: #94a3b8;
  --svg-text: #0f172a;
  --svg-subtext: #475569;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
