/* Direction C, "Aurora": a dark, slightly cool charcoal base, solid cards, and one gradient accent teal -> indigo -> violet
   that appears in few places only: the brand mark, the line under the header, the primary button, the main chart line
   and the active tab. Everything else stays neutral, so the gradient reads as a signature, not as decoration.
   Contrast figures are against --surface-1. */
:root {
  color-scheme: dark;
  --direction: "aurora";

  --page: #0d1014;
  --page-deco:
    radial-gradient(760px 260px at 18% -110px, rgba(45,212,191,.16), transparent 70%),
    radial-gradient(820px 280px at 62% -140px, rgba(129,140,248,.15), transparent 70%),
    radial-gradient(640px 240px at 96% -120px, rgba(192,132,252,.12), transparent 70%);
  --surface-1: #151a20;
  --surface-2: #1c222a;
  --surface-3: #242b34;
  --surface-sunk: #11151a;
  --card-bg: var(--surface-1);
  --card-blur: none;
  --card-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 24px rgba(0,0,0,.25);
  --card-edge: none;
  --overlay: rgba(4,6,9,.66);
  --header-bg: rgba(13,16,20,.82);
  --header-edge: transparent;      /* the header underline is the gradient itself (see .appbar::after) */

  --line: #252c35;
  --line-strong: #343c47;
  --field: #1a2027;
  --field-line: #333b46;
  --field-line-hover: #45505d;

  --strong: #f2f5f7;               /* 16.0:1 */
  --text: #e2e7ea;                 /* 14.0:1 */
  --dim: #b0bac2;                  /* 8.9:1 */
  --mute: #8794a0;                 /* 5.6:1 */
  --faint: #56616c;

  --accent: #2dd4bf;               /* teal: marks, focus, selected line */
  --accent-hover: #4fe0cd;
  --accent-text: #6ee7d6;          /* links, 11.7:1 */
  --accent-fill: linear-gradient(100deg, #2dd4bf 0%, #7f8cf8 62%, #b48cfa 100%);  /* primary button, dark text 6.4:1 at its weakest point (the indigo middle) */
  --accent-fill-hover: linear-gradient(100deg, #4fe0cd 0%, #929ef9 62%, #c3a0fb 100%);
  --accent-on: #0a1016;
  --accent-soft: rgba(45,212,191,.12);
  --accent-glow: 0 6px 20px rgba(76,170,220,.22);
  --brand-grad: linear-gradient(90deg, #2dd4bf, #818cf8 55%, #c084fc);
  --focus-ring: 0 0 0 2px var(--page), 0 0 0 4px #5fe3d1;

  --ok: #5fdc9a;   --ok-bg: rgba(95,220,154,.12);    --ok-line: rgba(95,220,154,.32);
  --warn: #f2b45e; --warn-bg: rgba(242,180,94,.12);  --warn-line: rgba(242,180,94,.32);
  --bad: #f6877e;  --bad-bg: rgba(246,135,126,.12);  --bad-line: rgba(246,135,126,.34);
  --info: #89b8ff; --info-bg: rgba(137,184,255,.12); --info-line: rgba(137,184,255,.30);
  --neutral-bg: rgba(176,186,194,.10); --neutral-line: rgba(176,186,194,.22);
  --danger-fill: #b9483f; --danger-fill-hover: #c5544b;   /* white text 5.2:1 */ --danger-on: #ffffff;

  /* validated on #15191f: slots 1-3 all pairs, 1-5 adjacent */
  --series-1: #139e8a;
  --series-2: #6a6ff0;
  --series-3: #d5733a;
  --series-4: #b456d4;
  --series-5: #a8901a;
  --q50: #7eeadb;
  --q90: #2dbfa9;
  --q99: #6a6ff0;                  /* the tail leans to indigo: the gradient's second stop */
  --chart-primary: #2dd4bf;
  --chart-primary-2: #a78bfa;      /* single-series lines run teal -> violet */
  --chart-area-top: .24;
  --chart-glow: 0;
  --grid: #20262e;
  --axis: #313944;
  --tick: #8794a0;
  --crosshair: #55606c;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-24: 24px; --fs-30: 30px;
  --lh-tight: 1.2; --lh: 1.45;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600;
  --tracking-head: -0.014em; --tracking-caps: .06em;

  --r-xs: 4px; --r-sm: 7px; --r-md: 9px; --r-lg: 13px; --r-xl: 18px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --row-h: 48px; --control-h: 34px; --control-h-sm: 28px;
  --shadow-pop: 0 14px 36px rgba(0,0,0,.5), 0 0 0 1px var(--line-strong);
  --shadow-modal: 0 28px 72px rgba(0,0,0,.6), 0 0 0 1px var(--line-strong);

  --dur-fast: 120ms; --dur: 160ms; --dur-slow: 200ms; --dur-chart: 400ms;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}
