/* ====================================
   DeerLabs — Design Tokens & Reset
   ====================================
   Single source of truth for colors, spacing, typography.
   Every other CSS file imports these variables.
   ==================================== */

/* ── Palette ── */
:root {
  --bg0: #080d1a;
  --bg1: #0f172a;
  --bg2: #1e293b;
  --bg3: #334155;
  --bg4: #475569;

  --fg:    #e2e8f0;
  --fg2:   #cbd5e1;
  --muted: #94a3b8;
  --dim:   #64748b;

  --brand:       #38bdf8;
  --brand-hover: #7dd3fc;
  --brand-dim:   rgba(56,189,248,0.12);

  --ok:       #22c55e;
  --ok-dim:   rgba(34,197,94,0.12);
  --warn:     #f59e0b;
  --warn-dim: rgba(245,158,11,0.12);
  --err:      #f43f5e;
  --err-dim:  rgba(244,63,94,0.12);

  /* ── Spacing / layout ── */
  --navbar-h:  56px;
  --sidebar-w: 250px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* ── Borders ── */
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.10);
  --border-focus: var(--brand);

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);

  /* ── Transitions ── */
  --ease: 0.15s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  background: var(--bg1);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.3; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

p { margin: 0; }

img, svg { vertical-align: middle; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-err { color: var(--err); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
