:root {
  color-scheme: light;
  --nav-surface: rgba(255,255,255,.8);
  --raised-surface: rgba(255,255,255,.78);
  --body-copy: #475569;
  --strong-copy: #334155;
  --accent-copy: #6d28d9;
  --accent-surface: #eef2ff;
  --button-foreground: #fff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1c2028;
  --surface-soft: #242933;
  --text: #f3f5fa;
  --muted: #b0bacb;
  --soft: #9aa7bc;
  --line: #343c49;
  --line-strong: #465268;
  --blue: #89b4ff;
  --purple: #b69cff;
  --green: #4ade80;
  --nav-surface: rgba(28,32,40,.92);
  --raised-surface: rgba(28,32,40,.86);
  --body-copy: #c2cada;
  --strong-copy: #dde3ed;
  --accent-copy: #c4afff;
  --accent-surface: #302b45;
  --shadow: 0 24px 70px rgba(0,0,0,.25);
}
.nav-actions { display:flex; align-items:center; gap:12px; }
.theme-toggle {
  display:grid; place-items:center; flex-shrink:0; width:42px; height:42px;
  border:1px solid var(--line-strong); border-radius:8px;
  background:var(--surface); color:var(--text); cursor:pointer;
}
.theme-toggle:hover { background:var(--surface-soft); }
.theme-toggle:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.theme-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle .sun { display:none; }
[data-theme="dark"] .theme-toggle .sun { display:block; }
[data-theme="dark"] .theme-toggle .moon { display:none; }
@media(max-width:580px) { .nav-inner { gap:8px; } .nav-actions { gap:8px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none!important; scroll-behavior:auto!important; transition:none!important; } }