/* Product tokens. All colour, type and control decisions originate here. */
:root {
  color-scheme: light;
  --on-action: #ffffff;
  --positive-line: color-mix(in srgb, var(--positive) 28%, var(--line));
  --negative-line: color-mix(in srgb, var(--negative) 28%, var(--line));
  --warning-line: color-mix(in srgb, var(--warning) 28%, var(--line));
  --overlay: rgba(10, 14, 24, .55);
  --control-compact: 36px;
  --chart-normalized: #78a27f;
  --chart-system: #486f7d;
  --table-head: var(--surface-muted);
  --row-hover: var(--surface-muted);
  --ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #202330;
  --muted: #62697a;
  --quiet: #697286;
  --canvas: #f6f7fa;
  --surface: #ffffff;
  --surface-muted: #eef1f6;
  --line: #d9dee8;
  --line-strong: #b9c1d0;
  --action: #6552c8;
  --action-hover: #5140ae;
  --action-soft: #eeeafb;
  --positive: #28734f;
  --positive-soft: #e8f4ef;
  --negative: #a94136;
  --negative-soft: #fbe9e6;
  --brand: var(--action);
  --brand-deep: var(--action-hover);
  --brand-soft: var(--action-soft);
  --warning: #88601a;
  --warning-soft: #fff5df;
  --danger: var(--negative);
  --danger-soft: var(--negative-soft);
  --workspace-max: 1360px;
  --pane-radius: var(--radius);
  --pane-pad: 24px;
  --chrome: #f0f2f7;
  --chrome-2: #ffffff;
  --chrome-line: #d9dee8;
  --sidebar-ink: #303647;
  --sidebar-muted: #62697a;
  --sidebar-hover: #e9eaf3;
  --sidebar-active: #e7e1fa;
  --sidebar-active-ink: #49378e;
  --sidebar-badge: #e2dced;
  --soft-panel: var(--surface-muted);
  --button-shadow: 0 1px 1px rgba(30, 26, 48, 0.06);
  --radius: 8px;
  --radius-sm: 5px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-body: 14px;
  --text-section: 20px;
  --text-title: 36px;
  --text-title-mobile: 30px;
  --control: 40px;
  --control-height: 40px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --sidebar: 256px;
  --shadow: 0 18px 42px rgba(35, 31, 54, 0.07);
  --focus-ring: 0 0 0 3px rgba(111, 91, 214, 0.18);
}

/* Themes change semantic colours only. Component geometry is shared. */
html[data-theme="dark"] {
  color-scheme: dark;
  --chart-normalized: #a8cdae;
  --chart-system: #83b8c9;
  --ink: #eef0f6;
  --muted: #b0b7c6;
  --quiet: #98a1b2;
  --canvas: #12141c;
  --surface: #1a1d27;
  --surface-muted: #242835;
  --line: #353b4a;
  --line-strong: #566176;
  --action: #aa98f4;
  --action-hover: #beaeff;
  --action-soft: #302b48;
  --on-action: #171323;
  --positive: #79d5a2;
  --positive-soft: #213a30;
  --negative: #f09287;
  --negative-soft: #402a30;
  --warning: #e6bf78;
  --warning-soft: #3a3225;
  --chrome: #161923;
  --chrome-2: #1a1d27;
  --chrome-line: var(--line);
  --sidebar-ink: var(--ink);
  --sidebar-muted: var(--muted);
  --sidebar-hover: var(--surface-muted);
  --sidebar-active: var(--action-soft);
  --sidebar-active-ink: var(--action);
  --sidebar-badge: var(--action-soft);
  --button-shadow: none;
  --shadow: 0 18px 42px rgba(0, 0, 0, .28);
  --focus-ring: 0 0 0 3px rgba(170, 152, 244, .3);
}
