/* Legacy variable names -> Kadran tokens (mapping table in design/kadran-design-system.html, "Değişken eşlemesi").
   Every old set (app/screener vars, --bs-* of the panel and the pages, --d-* and --c-* of the Pine dock) resolves here,
   so a theme change needs only the token file. New code uses the Kadran tokens directly. */
:root {
  /* app.css, screener.css */
  --fg: var(--text); --muted: var(--text-2); --ok: var(--up); --bad: var(--down); --warn: var(--accent-text);
  --bg-2: var(--surface); --hover: var(--raised); --active: var(--raised); --border: var(--line);
  --shadow: 0 8px 24px var(--shade);
  /* right panel, yields, options, macro (ex --tvh-*) */
  --bs-bg: var(--surface); --bs-bg-2: var(--bg); --bs-hover: var(--raised); --bs-active: var(--raised); --bs-border: var(--line);
  --bs-text: var(--text); --bs-text-2: var(--text-2); --bs-accent: var(--accent); --bs-up: var(--up); --bs-down: var(--down);
  --bs-shadow: 0 8px 24px var(--shade);
  --bs-up-bg: color-mix(in srgb, var(--up) 14%, transparent); --bs-down-bg: color-mix(in srgb, var(--down) 14%, transparent);
  --bs-flash-up: color-mix(in srgb, var(--up) 14%, transparent); --bs-flash-down: color-mix(in srgb, var(--down) 14%, transparent);
  /* Pine dock (--d-*) and its syntax colours (--c-*) */
  --d-bg: var(--surface); --d-fg: var(--text); --d-muted: var(--text-2); --d-line: var(--line); --d-hover: var(--raised); --d-sel: var(--raised);
  --d-blue: var(--accent); --d-green: var(--up); --d-red: var(--down); --d-code: var(--well); --d-gutter: var(--surface);
  --c-kw: var(--accent-text); --c-str: var(--up); --c-num: var(--down); --c-com: var(--text-2); --c-fn: var(--series-3); --c-ns: var(--series-4); --c-var: var(--text);
}
