/* ===========================================================================
   tokens.css - design tokens, reset and base typography
   Deep slate + teal. Flat surfaces only: no gradients anywhere in this system.
   =========================================================================== */

:root {
  /* brand */
  --accent:            #0d9488;
  --accent-hover:      #0f766e;
  --accent-soft:       #ccfbf1;
  --accent-soft-text:  #115e59;
  --accent-ring:       rgba(13, 148, 136, .28);

  /* surfaces */
  --bg:                #f1f5f9;
  --surface:           #ffffff;
  --surface-2:         #f8fafc;
  --surface-3:         #f1f5f9;
  --sidebar:           #0f172a;
  --sidebar-2:         #1e293b;
  --sidebar-text:      #cbd5e1;
  --sidebar-muted:     #64748b;
  --sidebar-active:    #134e4a;

  /* text */
  --text:              #0f172a;
  --text-2:            #475569;
  --text-3:            #94a3b8;
  --text-inverse:      #f8fafc;

  /* lines */
  --border:            #e2e8f0;
  --border-strong:     #cbd5e1;

  /* semantic */
  --success:           #15803d;
  --success-soft:      #dcfce7;
  --info:              #1d4ed8;
  --info-soft:         #dbeafe;
  --warning:           #b45309;
  --warning-soft:      #fef3c7;
  --danger:            #b91c1c;
  --danger-soft:       #fee2e2;
  --muted:             #475569;
  --muted-soft:        #e2e8f0;

  /* geometry */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 24px rgba(15, 23, 42, .12);

  --sidebar-w: 264px;
  --sidebar-w-collapsed: 74px;
  --topbar-h: 64px;

  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --t-fast: 120ms ease;
  --t: 180ms ease;
}

/* --------------------------------------------------------------- dark mode */

html[data-theme="dark"] {
  --bg:            #0b1220;
  --surface:       #111a2b;
  --surface-2:     #16203350;
  --surface-3:     #1c2740;
  --sidebar:       #080e1a;
  --sidebar-2:     #111a2b;
  --sidebar-text:  #cbd5e1;
  --sidebar-muted: #64748b;
  --sidebar-active:#0f3d3a;

  --text:          #e2e8f0;
  --text-2:        #94a3b8;
  --text-3:        #64748b;

  --border:        #1e293b;
  --border-strong: #334155;

  --accent:        #14b8a6;
  --accent-hover:  #2dd4bf;
  --accent-soft:   #0f3d3a;
  --accent-soft-text: #5eead4;
  --accent-ring:   rgba(20, 184, 166, .32);

  --success-soft:  #06301c;
  --info-soft:     #10224a;
  --warning-soft:  #3a2506;
  --danger-soft:   #40100f;
  --muted-soft:    #1e293b;

  --success:       #4ade80;
  --info:          #93c5fd;
  --warning:       #fbbf24;
  --danger:        #fca5a5;
  --muted:         #94a3b8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 1px 3px rgba(0, 0, 0, .45);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, .5);
}

/* -------------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.3; color: var(--text); }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
p  { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { vertical-align: middle; max-width: 100%; }

hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

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

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

/* ---------------------------------------------------------------- helpers */

.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-filled { fill: currentColor; stroke: none; }

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.num  { font-variant-numeric: tabular-nums; }
.num-pos { color: var(--success); }
.num-neg { color: var(--danger); }

.t-muted { color: var(--text-3); }
.t-soft  { color: var(--text-2); }
.t-small { font-size: 12.5px; }
.t-right { text-align: right; }
.t-center{ text-align: center; }
.t-nowrap{ white-space: nowrap; }
.t-upper { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.stack   { display: flex; flex-direction: column; gap: 18px; }
.row     { display: flex; align-items: center; gap: 10px; }
.row-end { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.row-between { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.wrap    { flex-wrap: wrap; }
.grow    { flex: 1 1 auto; min-width: 0; }
.hidden  { display: none !important; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
