/* M1 « Ardoise » design tokens. Light is the default; dark via data-theme. */
:root {
  color-scheme: light;
  --bg: #f6f8f9; /* gradient top; --bg-end is the bottom */
  --bg-end: #eef1f3;
  --card: #ffffff; /* solid reference surface for contrast */
  --card-a: #ffffff;
  --card-b: #fbfcfd;
  --card-hi: #f7f9fa;
  --well: #eef1f3;
  --line: #e2e7ea;
  --line-hi: #d3dadf;
  --control-border: #7f8c93; /* input/control outlines, >= 3:1 on card */
  --fg: #11181c;
  --muted: #5d6b73;
  --faint: #87949b;
  --accent: #0b8567;
  --accent-a: #0b8567; /* primary button gradient stops (spec #11977a darkened: white on it was 3.7:1) */
  --accent-b: #08775c;
  --logo-a: #12a383;
  --logo-b: #0b8567;
  --on-accent: #ffffff;
  --second: #6d5ce8;
  --neg: #c43c55;
  --pos-soft: #e3f6f0;
  --neg-soft: #fdecef;
  /* text-only variants: >= 4.5:1 on soft backgrounds and on card */
  --pos-text: #0a7358;
  --neg-text: #b02d45;
  --second-text: #6252dc;

  --radius-card: 14px;
  --radius-btn: 9px;
  --radius-chip: 7px;
  --tap: 44px;

  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;

  --shadow: 0 1px 2px rgba(17, 24, 28, 0.04), 0 10px 24px -18px rgba(17, 24, 28, 0.2);
  --btn-sh: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -12px rgba(11, 133, 103, 0.6);
  --logo-sh: 0 6px 14px -8px rgba(11, 133, 103, 0.6);
  --ambient: radial-gradient(900px 500px at 90% -10%, rgba(109, 92, 232, 0.07), transparent 60%);
  --gauge-a: #0b8567;
  --gauge-b: #12a383;
  --gauge2-a: #6d5ce8;
  --gauge2-b: #8b7cff;

  /* identity gradients (same in both themes); ink = text on top, >= 4.5:1 against both stops */
  --id-1: linear-gradient(135deg, #2dd4a7, #1a9e8a);
  --id-2: linear-gradient(135deg, #8b7cff, #5b6cf0);
  --id-3: linear-gradient(135deg, #f6a96b, #e86f74);
  --id-4: linear-gradient(135deg, #5cc8f0, #3b82d6);
  --id-5: linear-gradient(135deg, #e48bd0, #9b6cf0);
  --id-1-ink: #050a09;
  --id-2-ink: #050a09;
  --id-3-ink: #050a09;
  --id-4-ink: #050a09;
  --id-5-ink: #050a09;

  --bg-grad: var(--ambient), linear-gradient(180deg, var(--bg), var(--bg-end));
  --card-grad: linear-gradient(180deg, var(--card-a), var(--card-b));
  --accent-grad: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  --logo-grad: linear-gradient(135deg, var(--logo-a), var(--logo-b));
  --gauge: linear-gradient(90deg, var(--gauge-a), var(--gauge-b));
  --gauge2: linear-gradient(90deg, var(--gauge2-a), var(--gauge2-b));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #31363c;
  --bg-end: #2a2e33;
  --card: #3a3f46;
  --card-a: #3f454c;
  --card-b: #393e45;
  --card-hi: #474d55;
  --well: #2b2f34;
  --line: #4b5159;
  --line-hi: #5c636c;
  --control-border: #868f97;
  --fg: #f2f4f6;
  --muted: #bcc4ca;
  --faint: #949ea5;
  --accent: #4ee6c0;
  --accent-a: #4ee6c0;
  --accent-b: #2cc3a2;
  --logo-a: #4ee6c0;
  --logo-b: #22b39a;
  --on-accent: #052a21;
  --second: #a395ff;
  --neg: #ffa3b0;
  --pos-soft: rgba(78, 230, 192, 0.14);
  --neg-soft: rgba(255, 138, 154, 0.08);
  --pos-text: #5beccb;
  --neg-text: var(--neg);
  --second-text: #b7adff;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 30px -20px rgba(0, 0, 0, 0.7);
  --btn-sh: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -10px rgba(46, 214, 176, 0.6);
  --logo-sh: 0 6px 14px -6px rgba(46, 214, 176, 0.6);
  --ambient: radial-gradient(900px 500px at 85% -10%, rgba(120, 140, 170, 0.16), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(61, 219, 181, 0.08), transparent 60%);
  --gauge-a: #2dd4a7;
  --gauge-b: #4ee6c0;
  --gauge2-a: #8b7cff;
  --gauge2-b: #b7adff;
}
