:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  /* Brighter than --muted specifically for small SVG chart text (axis
     numbers, date labels, radar/slider ticks) — --muted reads fine as
     14px+ HTML text but is too low-contrast at chart-label sizes. */
  --chart-label: #c4c4cc;
  --green: #34d399;
  --red: #f4506a;
  --amber: #f5c451;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;

  --space-1: 4px;
  --space-2: 7px;
  --space-3: 11px;
  --space-4: 15px;
  --space-5: 21px;
  --space-6: 28px;

  --topbar-height: 56px;
  --pageheader-height: 64px;
  --sidebar-width: 220px;
  --bottombar-height: 64px;

  --transition-fast: 120ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--green);
  color: #0a0a0a;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
