/* Ambition Health OS — design tokens (refined) */
:root {
  /* Base — warmer dark, less terminal-blue */
  --bg: #0B0E14;
  --bg-veil: #080B10;
  --surface-1: #11151D;       /* card */
  --surface-2: #181D27;       /* raised */
  --surface-3: #1F2530;       /* hover/active */
  --surface-inset: #0E1219;   /* sunken (inputs) */

  /* Borders — quieter */
  --border: rgba(255, 255, 255, 0.045);
  --border-mid: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Foreground — warm cream, more refined */
  --fg: #F0EAD9;
  --fg-soft: #DAD4C4;
  --fg-muted: #9A9685;
  --fg-dim: #767B84;
  --fg-faint: #44484F;

  /* Accent — used sparingly as a SIGNAL color */
  --accent: #C5F25C;
  --accent-bright: #D6FF6E;
  --accent-ink: #0B0E14;
  --accent-soft: rgba(197, 242, 92, 0.10);
  --accent-line: rgba(197, 242, 92, 0.28);

  /* Quiet positive — cream-based, for default positive states */
  --quiet-soft: rgba(240, 234, 217, 0.06);
  --quiet-line: rgba(240, 234, 217, 0.18);

  /* Semantic — desaturated for restraint */
  --info: #8EB6E8;
  --info-soft: rgba(142, 182, 232, 0.10);
  --info-line: rgba(142, 182, 232, 0.25);
  --warn: #E8C272;
  --warn-soft: rgba(232, 194, 114, 0.10);
  --warn-line: rgba(232, 194, 114, 0.25);
  --danger: #E87878;
  --danger-soft: rgba(232, 120, 120, 0.10);
  --danger-line: rgba(232, 120, 120, 0.25);
  --success: #82D1A0;
  --success-soft: rgba(130, 209, 160, 0.08);
  --success-line: rgba(130, 209, 160, 0.22);

  /* Type */
  --font-sans: "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Geist", "Inter Tight", -apple-system, sans-serif;

  /* Type scale */
  --t-xs: 11.5px;
  --t-sm: 12.5px;
  --t-base: 13.5px;
  --t-md: 14.5px;
  --t-lg: 17px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 38px;
  --t-4xl: 52px;
  --t-5xl: 72px;

  /* Radii — slightly bigger, more confident */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* Spacing — more generous */
  --space-row: 14px;
  --space-card: 22px;
  --space-section: 36px;

  /* Shadows — soft, restrained, never glowy */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px -12px rgba(0,0,0,0.55);
  --shadow-pop: 0 1px 0 rgba(255,255,255,0.06) inset, 0 32px 72px -24px rgba(0,0,0,0.75);

  /* Chrome dims */
  --topbar-h: 56px;
  --sidebar-w: 236px;
  --sidebar-w-collapsed: 64px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* density variant */
:root[data-density="compact"] {
  --space-row: 10px;
  --space-card: 16px;
  --space-section: 24px;
}

/* accent swap — for tweaks */
:root[data-accent="lime"]   { --accent: #C5F25C; --accent-bright: #D6FF6E; --accent-line: rgba(197,242,92,.28); --accent-soft: rgba(197,242,92,.10); }
:root[data-accent="mint"]   { --accent: #7DEBC2; --accent-bright: #8FF6CF; --accent-line: rgba(125,235,194,.28); --accent-soft: rgba(125,235,194,.10); }
:root[data-accent="blue"]   { --accent: #8EB6E8; --accent-bright: #A4C8F2; --accent-line: rgba(142,182,232,.28); --accent-soft: rgba(142,182,232,.10); }
:root[data-accent="cream"]  { --accent: #ECE6D5; --accent-bright: #FFF9E8; --accent-line: rgba(236,230,213,.28); --accent-soft: rgba(236,230,213,.06); --accent-ink: #0B0E14; }
