@font-face { font-family: Manrope; src: url('/fonts/Manrope_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/SpaceGrotesk_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/SpaceGrotesk_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0e191f;
  --night: var(--bg);
  --night-2: #18363b;
  --panel: #16262d;
  --soft: #203239;
  --ink: #eef5f1;
  --muted: #a0b2b5;
  --line: #2a3b40;
  --mint: #b6ebcf;
  --mint-2: #7fcaa8;
  --accent-soft: #213e35;
  --button-text: #10251d;
  --button-hover: #d0f4df;
  --negative: #f0aaa0;
  --warn: #e8bb79;
  --warning-bg: #3a3022;
  --plot-line: rgba(182,235,207,.09);
  --plot-secondary: #80b8b2;
  --card-shadow: 0 24px 70px rgba(0,0,0,.18);
  --body: Manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --head: 'Space Grotesk', var(--body);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f4;
  --night-2: #edf2ef;
  --panel: #fff;
  --soft: #edf2ef;
  --ink: #162b32;
  --muted: #52686c;
  --line: #d4dfd9;
  --mint: #19735f;
  --mint-2: #19735f;
  --accent-soft: #e1f4eb;
  --button-text: #fff;
  --button-hover: #135d4d;
  --negative: #b65151;
  --warn: #9a6421;
  --warning-bg: #fff3da;
  --plot-line: rgba(25,115,95,.10);
  --plot-secondary: #718184;
  --card-shadow: 0 24px 70px rgba(22,43,50,.09);
}
.theme-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: 500 12px/1.2 var(--body);
  white-space: nowrap;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[data-theme-icon] { display: inline-grid; place-items: center; width: 18px; font: 22px/1 system-ui, sans-serif; }
@media (max-width: 560px) {
  .theme-toggle { width: 42px; min-height: 42px; padding: 0; }
  [data-theme-label] { display: none; }
}
@media print {
  :root { --bg: #fff; --panel: #fff; --soft: #edf2ef; --ink: #162b32; --muted: #52686c; --line: #bdcec5; --mint: #19735f; --negative: #b65151; --warn: #9a6421; --warning-bg: #fff3da; }
  .theme-toggle { display: none; }
}
