/* Generated from ecg/ui/tokens.css: the lab's design tokens, scoped to
   .lab-scope so lab views (heart, cells) can sit inside site pages without
   overriding the site's own custom properties. Regenerate if tokens change. */
.lab-scope {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --ink: #10243b;
  --muted: #52677b;
  --line: #d8e3ec;
  --primary: #0b4fb3;
  --primary-strong: #083678;
  --primary-soft: #eaf2ff;
  --on-primary: #ffffff;
  --accent: #087d85;
  --accent-soft: #dff6f5;
  --focus: #f4b740;
  --danger: #c2372f;
  --danger-soft: #fdecea;
  --warn: #a8620a;
  --ok: #1d7f4d;
  --ok-soft: #e4f6ec;

  /* ECG paper */
  --paper: #fffaf6;
  --grid-minor: #f6d5d6;
  --grid-major: #eaa4a9;
  --trace: #14263d;
  --trace-dim: rgba(20, 38, 61, 0.35);
  --sweep: #fffaf6;

  /* Anatomy */
  --myo: #d9767c;          /* myocardium */
  --myo-deep: #b9535c;     /* myocardium in shadow / cut surface */
  --myo-light: #f0a9a6;    /* highlights */
  --chamber-r: #5f86c9;    /* deoxygenated blood (right heart) */
  --chamber-l: #d85c5c;    /* oxygenated blood (left heart) */
  --vessel-art: #cf4b4b;
  --vessel-ven: #4f78bf;
  --conduct: #f2b632;      /* resting conduction tissue */
  --impulse: #ffe58a;      /* travelling impulse */
  --depol: #ffd166;        /* depolarising muscle wash */
  --block: #c2372f;        /* blocked pathway */
  --ischemia: #6d4a8c;     /* ischemic territory */
  --axis: #0b4fb3;         /* mean QRS axis arrow */
  --vector: #087d85;       /* instantaneous vector */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(8, 54, 120, 0.1);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
.lab-scope.lab-dark {
  color-scheme: dark;
  --bg: #050d18;
  --surface: #0b1a2c;
  --surface-2: #11243a;
  --ink: #e7eef8;
  --muted: #93a8c0;
  --line: #1e3550;
  --primary: #6aa5ff;
  --primary-strong: #9cc3ff;
  --primary-soft: #12305a;
  --on-primary: #06162b;
  --accent: #4fd1c5;
  --accent-soft: #0e3338;
  --focus: #f4b740;
  --danger: #ff7b72;
  --danger-soft: #3a1717;
  --warn: #f0b35a;
  --ok: #5fd39a;
  --ok-soft: #0f3324;

  --paper: #06121f;
  --grid-minor: #0e2136;
  --grid-major: #183552;
  --trace: #7df0d2;
  --trace-dim: rgba(125, 240, 210, 0.35);
  --sweep: #06121f;

  --myo: #b6565f;
  --myo-deep: #7f3542;
  --myo-light: #dd8c8c;
  --chamber-r: #3f6ab3;
  --chamber-l: #c34a52;
  --vessel-art: #d0545a;
  --vessel-ven: #4a74c2;
  --conduct: #f2b632;
  --impulse: #fff0a8;
  --depol: #ffd166;
  --block: #ff7b72;
  --ischemia: #8d6bb5;
  --axis: #8fbaff;
  --vector: #4fd1c5;

  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
