/* Тема «halleg»: семантические токены оболочки переопределены значениями палитры отчётов halleg.
   Источник значений: :root страниц local/Source/*.html (одинаков на всех 11 отчётах) и sidebar.css.
   Значения с пометкой (derived) в halleg отсутствуют и выведены из соседних: их можно менять.
   Включается атрибутом <html data-theme="halleg">; без атрибута действует night из tokens.css. */
:root[data-theme="halleg"] {
  --bg-page: #0f1117;                 /* --bg */
  --surface-card: #181c25;            /* --card */
  --surface-sunken: #1e2230;          /* --card2 */
  --surface-raised: #1e2230;          /* --card2 */
  --surface-hover: #232838;           /* (derived) между card и card2 */
  --surface-active: rgba(99,102,241,.16);   /* --accent с прозрачностью, как active-таб в отчётах */
  --surface-active-strong: #6366f1;   /* --accent */
  --surface-tooltip: rgba(30,34,48,.97);
  --scrim: rgba(4,6,12,.55);
  --border-hairline: #272d3d;         /* --border */
  --border-subtle: #272d3d;
  --border-field: #272d3d;
  --border-strong: #3a4256;           /* (derived) */
  --border-control: #3a4256;          /* (derived) */
  --border-focus: #818cf8;            /* --accent2 */
  --grid-line: #1e2230; --grid-line-h: #272d3d; --axis-line: #272d3d;
  --text-primary: #e4e6ef;            /* --text */
  --text-secondary: #b3b7c6;          /* (derived) между text и text2 */
  --text-muted: #7b8094;              /* --text2 */
  --text-faint: #5c6275;              /* (derived) */
  --text-disabled: #464b5c;           /* (derived) */
  --text-axis: #7b8094;
  --text-on-accent: #ffffff;
  --text-link: #818cf8;               /* --accent2 */
  --text-link-hover: #a5b4fc;         /* (derived) */
  --accent: #6366f1;                  /* --accent */
  --accent-hover: #4f52d9;            /* (derived) */
  --accent-fg: #ffffff;
  --accent-quiet: #818cf8;            /* --accent2 */
  --status-ok-bg: rgba(34,197,94,.10);  --status-ok-fg: #22c55e;     /* --green-bg / --green */
  --status-warn-bg: rgba(245,158,11,.12); --status-warn-fg: #f59e0b; /* --orange */
  --status-risk-bg: rgba(239,68,68,.10);  --status-risk-fg: #ef4444; /* --red-bg / --red */
  --status-neutral-bg: #1e2230; --status-neutral-fg: #7b8094;
  --trend-up: #22c55e; --trend-down: #ef4444;
  --dot-risk: #ef4444; --dot-warn: #f59e0b; --dot-live: #22c55e;
  /* типографика: у halleg системный стек без токенов */
  --font-ui: 'Segoe UI', system-ui, sans-serif;
  --font-numeric: 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Menlo, monospace;
}

/* системный шрифт шире Geist: бренд в одну строку */
:root[data-theme="halleg"] .brand b { font-size: 15.5px; white-space: nowrap; }
