@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/site/hanken-grotesk-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/site/ibm-plex-mono-400-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f4;
  --surface: #fcfdfa;
  --surface-strong: #e8efea;
  --surface-soft: #f0f5f1;
  --surface-accent: #dcefe8;
  --ink: #13221d;
  --ink-soft: #365149;
  --muted: #6c8078;
  --line: #d4e0d9;
  --line-strong: #b4c8bd;
  --accent: #0d7c70;
  --accent-strong: #07584f;
  --accent-soft: #bfe3d9;
  --amber: #ae6a1c;
  --amber-soft: #f5e6cb;
  --red: #ae4d44;
  --red-soft: #f4dfdc;
  --blue: #3b6e9a;
  --blue-soft: #dce8f2;
  --shadow: 0 22px 65px rgba(21, 58, 47, 0.1);
  --shadow-soft: 0 8px 28px rgba(21, 58, 47, 0.07);
  --radius: 16px;
  --radius-small: 10px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1713;
  --surface: #14221c;
  --surface-strong: #1c3028;
  --surface-soft: #17271f;
  --surface-accent: #19473d;
  --ink: #edf5f0;
  --ink-soft: #c3d7cd;
  --muted: #91aaa0;
  --line: #2a4137;
  --line-strong: #476256;
  --accent: #6ed0bf;
  --accent-strong: #a5ecdd;
  --accent-soft: #24564b;
  --amber: #e8ae5d;
  --amber-soft: #4d3920;
  --red: #ef9288;
  --red-soft: #4d2927;
  --blue: #8db9de;
  --blue-soft: #263e52;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 14% -8%, color-mix(in srgb, var(--accent-soft) 36%, transparent), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { cursor: pointer; }

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(1440px, calc(100% - 56px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  border-radius: 9px;
  background: var(--accent);
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 5px 5px 2px 2px;
  background: var(--bg);
}

.brand-mark span:nth-child(1) { height: 8px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .82; }

.brand-copy,
.brand-copy strong,
.brand-copy span { display: block; }

.brand-copy { line-height: 1.05; }
.brand-copy strong { font-size: .96rem; letter-spacing: -.02em; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: .72rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: .86rem;
}

.primary-nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  min-width: 245px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.synthetic-badge,
.live-label,
.run-state,
.order-state,
.exception-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.synthetic-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .66rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-mark,
.status-dot,
.state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.theme-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .78rem;
}

.theme-button:hover { border-color: var(--line-strong); background: var(--surface); }

.hero {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding-top: 72px;
  padding-bottom: 78px;
}

.eyebrow,
.panel-kicker,
.mono-label,
.detail-label,
.report-overline,
.card-number {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .67rem;
  letter-spacing: .13em;
  line-height: 1.1;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 6.2vw, 6.4rem);
  font-weight: 770;
  letter-spacing: -.075em;
  line-height: .94;
}

.hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px) scale(.99); }

.button-primary { background: var(--accent); color: #f4fcf8; }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); background: var(--surface-accent); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink-soft); }
.button-quiet:hover { background: var(--surface-soft); }
.button-full { width: 100%; }

.hero-note {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .77rem;
}

.hero-note strong { color: var(--amber); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .66rem; letter-spacing: .08em; }

.hero-brief {
  position: relative;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-brief::before {
  position: absolute;
  top: -82px;
  right: -54px;
  width: 220px;
  height: 220px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  content: "";
}

.hero-brief::after {
  position: absolute;
  top: -21px;
  right: 15px;
  width: 165px;
  height: 165px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  content: "";
}

.brief-topline,
.console-topline,
.clock-topline,
.event-log-head,
.order-toolbar,
.insight-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mono-label { color: var(--muted); }
.live-label { color: var(--accent-strong); font-size: .76rem; }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 62px;
}

.brief-grid div { border-left: 1px solid var(--line); padding-left: 13px; }
.brief-grid div:first-child { border-left: 0; padding-left: 0; }
.brief-grid strong { display: block; font-size: 2.45rem; letter-spacing: -.08em; line-height: 1; }
.brief-grid span { display: block; max-width: 90px; margin-top: 8px; color: var(--muted); font-size: .71rem; line-height: 1.3; }
.brief-rule { height: 1px; margin: 30px 0 18px; background: var(--line); }
.hero-brief p { position: relative; z-index: 1; max-width: 390px; margin: 0; color: var(--ink-soft); font-size: .9rem; }

.journey-section,
.order-section,
.insight-section,
.methods-section { padding-bottom: 110px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.section-heading h2,
.methods-copy h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  font-weight: 730;
  letter-spacing: -.065em;
  line-height: .98;
}

.section-heading .eyebrow { margin-bottom: 13px; }
.section-intro { max-width: 380px; margin: 0 0 4px; color: var(--muted); font-size: .94rem; }

.journey-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 276px;
  gap: 15px;
  align-items: start;
}

.control-panel,
.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.control-panel { padding: 19px; }
.detail-panel { padding: 19px; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}

.panel-kicker { display: block; margin-bottom: 8px; color: var(--accent); font-size: .61rem; }
.panel-heading h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.03em; }
.panel-index { color: var(--line-strong); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .7rem; }

.field-label { display: block; margin: 18px 0 7px; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.field-control { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: .82rem; }
.field-control:hover { border-color: var(--accent); }
.field-help { min-height: 39px; margin: 8px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }

.route-summary { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.route-row:last-child { border-bottom: 0; }
.route-row strong { display: block; font-size: .77rem; }
.route-row small { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.route-chip { align-self: center; padding: 4px 6px; border-radius: 5px; background: var(--surface-strong); color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .58rem; text-transform: uppercase; }
.route-chip.referral { background: var(--blue-soft); color: var(--blue); }
.route-chip.delay { background: var(--amber-soft); color: var(--amber); }
.route-chip.near { background: var(--accent-soft); color: var(--accent-strong); }

.panel-actions { display: grid; gap: 8px; margin-top: 23px; }
.panel-footnote { display: flex; gap: 8px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.panel-footnote p { margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.mini-lock { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: .72rem; }

.journey-console { min-width: 0; }
.console-topline { min-height: 44px; padding: 0 3px 10px; }
.console-topline strong { display: block; margin-top: 5px; font-size: 1.08rem; letter-spacing: -.03em; }
.run-state { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .65rem; text-transform: uppercase; }
.run-state.is-running { color: var(--accent-strong); }
.run-state.is-running .state-dot { animation: pulse 1.7s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 5%, transparent); }
}

.scene-stage {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.scene-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(color-mix(in srgb, var(--line) 46%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 46%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .28;
  content: "";
}

.scene-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 38%;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-strong) 56%, transparent));
  content: "";
}

.scene-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 18px;
  overflow: hidden;
}

.zone-collection { left: 0; width: 36%; background: color-mix(in srgb, var(--accent-soft) 13%, transparent); }
.zone-transfer { left: 36%; width: 29%; background: color-mix(in srgb, var(--blue-soft) 14%, transparent); }
.zone-lab { right: 0; width: 35%; background: color-mix(in srgb, var(--surface-strong) 25%, transparent); }
.zone-collection::after, .zone-transfer::after { position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: var(--line); content: ""; }

.zone-header { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.zone-number { color: var(--accent); font-size: .58rem; }

.scene-building,
.scene-object {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--ink-soft) 25%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 83%, transparent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 7%, transparent);
}

.building-sign,
.object-label { position: absolute; top: 8px; left: 10px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .53rem; letter-spacing: .06em; text-transform: uppercase; }

.reception-building { top: 97px; left: 13%; width: 58%; height: 81px; }
.reception-building::before { position: absolute; right: 12px; bottom: 12px; left: 12px; height: 9px; border-radius: 4px; background: var(--accent-soft); content: ""; }
.building-window { position: absolute; right: 14px; top: 30px; width: 26px; height: 20px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-soft); }
.building-window.small { right: 47px; width: 18px; opacity: .6; }

.blood-room { right: 8%; bottom: 98px; width: 65%; height: 99px; }
.blood-room::before { position: absolute; right: 13px; bottom: 16px; width: 51px; height: 23px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-strong); content: ""; }
.chair-shape { position: absolute; right: 27px; bottom: 39px; width: 24px; height: 30px; border: 1px solid var(--accent); border-radius: 10px 10px 3px 3px; background: var(--accent-soft); }
.lamp-shape { position: absolute; right: 67px; bottom: 48px; width: 2px; height: 34px; background: var(--line-strong); }
.lamp-shape::before { position: absolute; top: -3px; left: -5px; width: 12px; height: 6px; border-radius: 50%; background: var(--amber); content: ""; }

.waiting-area { bottom: 31px; left: 16%; width: 49%; height: 44px; border-color: transparent; background: transparent; box-shadow: none; }
.waiting-area .object-label { top: -3px; left: 0; }
.seat { position: absolute; top: 20px; left: 8px; width: 40px; height: 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-strong); }
.seat::before { position: absolute; top: -13px; left: 2px; width: 35px; height: 14px; border: 1px solid var(--line-strong); border-radius: 5px 5px 2px 2px; background: var(--surface); content: ""; }
.seat.second { left: 59px; opacity: .66; }

.storage-rack { top: 135px; left: 18%; width: 65%; height: 117px; }
.rack-line { position: absolute; top: 44px; right: 13px; left: 13px; height: 1px; background: var(--line-strong); }
.rack-line.second { top: 66px; }
.rack-line.third { top: 88px; }
.storage-rack::after { position: absolute; right: 13px; bottom: 9px; left: 13px; height: 7px; border-radius: 3px; background: var(--blue-soft); content: ""; }

.courier-object { right: 13%; bottom: 102px; width: 77px; height: 67px; border-radius: 12px; background: var(--surface-accent); }
.courier-body { position: absolute; right: 13px; bottom: 17px; left: 13px; height: 19px; border-radius: 5px; background: var(--accent); }
.courier-wheel { position: absolute; bottom: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.courier-wheel.one { left: 17px; }.courier-wheel.two { right: 17px; }
.courier-object .object-label { top: -19px; left: 0; }
.route-road { position: absolute; right: 11%; bottom: 55px; left: 8%; height: 1px; background: color-mix(in srgb, var(--ink-soft) 33%, transparent); }
.road-dash { position: absolute; top: -2px; width: 17px; height: 5px; border-radius: 3px; background: var(--surface); }.road-dash.one { left: 17%; }.road-dash.two { left: 49%; }.road-dash.three { right: 8%; }

.intake-bench { top: 101px; left: 9%; width: 64%; height: 61px; }
.intake-bench::before { position: absolute; right: 12px; bottom: 14px; left: 12px; height: 7px; border-radius: 4px; background: var(--blue-soft); content: ""; }
.bench-line { position: absolute; right: 14px; bottom: 7px; left: 14px; height: 1px; background: var(--line-strong); }
.scan-line { position: absolute; top: 29px; right: 23px; width: 21px; height: 12px; border: 1px solid var(--accent); border-radius: 3px; background: var(--surface-accent); }

.analyzer-object { bottom: 99px; left: 9%; width: 59%; height: 91px; }
.analyzer-screen { position: absolute; top: 32px; left: 13px; width: 39px; height: 25px; border: 1px solid var(--accent); border-radius: 4px; background: var(--surface-accent); }
.analyzer-screen::after { position: absolute; right: 5px; bottom: 6px; left: 5px; height: 2px; background: var(--accent); box-shadow: 0 -6px 0 color-mix(in srgb, var(--accent) 60%, transparent); content: ""; }
.analyzer-slot { position: absolute; right: 18px; bottom: 20px; width: 30px; height: 42px; border-radius: 5px 5px 2px 2px; background: var(--surface-strong); }

.release-desk { right: 9%; bottom: 32px; width: 56%; height: 51px; }
.release-desk .object-label { top: -18px; left: 0; }
.desk-line { position: absolute; right: 10px; bottom: 11px; left: 10px; height: 5px; border-radius: 4px; background: var(--accent-soft); }
.report-sheet { position: absolute; right: 22px; bottom: 14px; width: 23px; height: 30px; border: 1px solid var(--accent); border-radius: 3px; background: var(--surface); transform: rotate(7deg); }
.report-sheet::after { position: absolute; top: 8px; right: 4px; left: 4px; height: 2px; background: var(--accent); box-shadow: 0 6px 0 var(--line-strong), 0 12px 0 var(--line-strong); content: ""; }

.floor-mark { position: absolute; bottom: 22px; width: 120px; height: 1px; background: var(--line-strong); opacity: .65; }
.mark-one { left: 22%; }.mark-two { left: 35%; }

.route-connector { position: absolute; z-index: 0; top: 52%; width: 11%; height: 1px; background: var(--line-strong); }
.connector-one { left: 30%; }.connector-two { left: 61%; }
.route-connector span { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.route-connector span:nth-child(1) { left: 18%; }.route-connector span:nth-child(2) { left: 49%; }.route-connector span:nth-child(3) { right: 4%; }

.traveler { position: absolute; z-index: 4; top: 0; left: 0; display: none; transform: translate3d(calc(var(--x, 0) * 1%), calc(var(--y, 0) * 1%), 0); transition: transform 800ms cubic-bezier(.2,.8,.2,1), opacity 260ms ease; }
.traveler.is-visible { display: block; }
.person-token { width: 26px; height: 48px; }
.person-head { position: absolute; top: 0; left: 8px; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--amber); }
.person-body { position: absolute; top: 14px; left: 4px; width: 20px; height: 27px; border-radius: 9px 9px 4px 4px; background: var(--accent); box-shadow: 0 7px 0 -4px var(--ink-soft); }
.person-bag { position: absolute; right: -2px; bottom: 4px; width: 9px; height: 12px; border: 1px solid var(--ink-soft); border-radius: 3px; background: var(--amber-soft); }
.specimen-token { width: 16px; height: 38px; }
.tube-cap { position: absolute; top: 0; left: 2px; width: 12px; height: 7px; border: 1px solid var(--ink-soft); border-radius: 3px 3px 1px 1px; background: var(--accent); }
.tube-body { position: absolute; top: 6px; left: 3px; width: 10px; height: 28px; border: 1px solid var(--line-strong); border-radius: 2px 2px 5px 5px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.tube-liquid { position: absolute; right: 5px; bottom: 7px; left: 5px; height: 11px; border-radius: 1px 1px 4px 4px; background: var(--red); opacity: .75; }
.information-token { width: 31px; height: 38px; }
.information-card { position: absolute; inset: 0 0 0 0; border: 1px solid var(--accent); border-radius: 4px; background: var(--surface-accent); transform: rotate(-7deg); }
.information-line { position: absolute; right: 6px; left: 7px; height: 2px; border-radius: 2px; background: var(--accent); }.information-line.first { top: 13px; }.information-line.second { top: 20px; width: 12px; }

.stage-callout { position: absolute; z-index: 5; right: 19px; bottom: 19px; width: min(246px, 42%); padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: var(--shadow-soft); }
.callout-kicker { display: block; margin-bottom: 5px; color: var(--accent); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }
.stage-callout strong { display: block; font-size: .84rem; letter-spacing: -.02em; }
.stage-callout span:last-child { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; line-height: 1.35; }

.console-controls { display: flex; align-items: center; gap: 8px; padding: 15px 2px 10px; }
.icon-button,
.play-button { min-height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); }
.icon-button { width: 38px; font-size: 1rem; }
.icon-button:hover, .play-button:hover { border-color: var(--accent); background: var(--surface-accent); }
.play-button { display: inline-flex; min-width: 92px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-size: .8rem; font-weight: 700; }
.play-icon { color: var(--accent); font-size: .68rem; }
.progress-wrap { min-width: 0; flex: 1; margin-left: 6px; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .6rem; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: var(--surface-strong); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transition: transform 420ms ease; }

.event-strip { display: grid; grid-template-columns: repeat(9, minmax(70px, 1fr)); gap: 5px; overflow-x: auto; padding: 3px 2px 0; }
.event-step { min-width: 72px; padding: 8px 5px 9px; border-top: 2px solid var(--line); color: var(--muted); text-align: left; }
.event-step:hover { color: var(--ink); }
.event-step.is-active { border-color: var(--accent); color: var(--ink); }
.event-step.is-done { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.event-step b { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .58rem; font-weight: 400; }.event-step strong { display: block; margin-top: 5px; font-size: .68rem; font-weight: 700; white-space: nowrap; }

.detail-block { padding: 14px 0; border-top: 1px solid var(--line); }
.detail-block:first-of-type { border-top: 0; padding-top: 0; }
.detail-label { display: block; color: var(--muted); font-size: .58rem; }
.detail-highlight strong { display: block; margin-top: 8px; font-size: 1.05rem; letter-spacing: -.03em; }
.detail-block p { margin: 7px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.clock-block { margin: 8px 0 15px; padding: 14px; border-radius: 11px; background: var(--surface-accent); }
.clock-state { color: var(--accent-strong); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .57rem; text-transform: uppercase; }
.clock-block > strong { display: block; margin: 10px 0 13px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1.8rem; letter-spacing: -.08em; }
.clock-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.clock-segments span { padding-left: 7px; border-left: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }.clock-segments small, .clock-segments b { display: block; }.clock-segments small { color: var(--muted); font-size: .57rem; }.clock-segments b { margin-top: 3px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .65rem; font-weight: 400; }
.event-log { border-top: 1px solid var(--line); padding-top: 15px; }
.event-log-head { margin-bottom: 10px; }.event-log-head > span:last-child { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .59rem; }
.event-log ol { display: grid; gap: 8px; max-height: 166px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.event-log li { display: grid; grid-template-columns: 20px 1fr auto; gap: 7px; align-items: center; color: var(--muted); font-size: .68rem; }.event-log li::before { width: 6px; height: 6px; border: 1px solid var(--line-strong); border-radius: 50%; content: ""; }.event-log li.is-active { color: var(--ink); }.event-log li.is-active::before { border-color: var(--accent); background: var(--accent); }.event-log li b { color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .57rem; font-weight: 400; }

.order-section { padding-top: 8px; }
.compact-heading { margin-bottom: 18px; }
.order-toolbar { min-height: 63px; padding: 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-id strong { display: block; margin-top: 5px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .78rem; font-weight: 400; }.order-state { color: var(--muted); font-size: .76rem; }.order-state.is-partial { color: var(--amber); }.order-state.is-complete { color: var(--accent-strong); }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 13px; }
.item-card { position: relative; min-height: 194px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.item-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--line-strong); content: ""; }.item-card.is-active::before { background: var(--accent); }.item-card.is-delay::before { background: var(--amber); }.item-card.is-referral::before { background: var(--blue); }.item-card.is-complete::before { background: var(--accent); }
.item-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.item-code { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .59rem; }.item-status { padding: 4px 6px; border-radius: 5px; background: var(--surface-strong); color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .57rem; text-transform: uppercase; }.item-status.delay { background: var(--amber-soft); color: var(--amber); }.item-status.referral { background: var(--blue-soft); color: var(--blue); }.item-status.complete { background: var(--accent-soft); color: var(--accent-strong); }
.item-card h3 { margin: 23px 0 4px; font-size: 1rem; letter-spacing: -.025em; }.item-card p { margin: 0; color: var(--muted); font-size: .76rem; }.item-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 19px; }.item-meta span { display: block; color: var(--muted); font-size: .61rem; }.item-meta b { display: block; margin-top: 2px; color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .61rem; font-weight: 400; }

.dashboard-section { padding-bottom: 110px; }
.dashboard-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dashboard-cohort-label { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }.dashboard-disclaimer { color: var(--amber); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }.dashboard-disclaimer b { color: var(--ink-soft); font-weight: 400; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }.metric-card { min-height: 130px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow-soft); }.metric-label { display: block; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }.metric-card strong { display: block; margin-top: 17px; color: var(--ink); font-size: 2rem; letter-spacing: -.07em; line-height: 1; }.metric-card small { display: block; margin-top: 9px; color: var(--muted); font-size: .66rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: 12px; }.dashboard-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }.dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.dashboard-card-heading h3 { margin: 5px 0 0; font-size: 1rem; letter-spacing: -.025em; }.chart-note { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .58rem; text-transform: uppercase; }
.bar-chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; min-height: 196px; margin-top: 23px; padding: 12px 4px 0; border-bottom: 1px solid var(--line); }.bar-column { display: grid; min-width: 0; grid-template-rows: 20px 1fr 22px; gap: 7px; align-items: end; height: 176px; }.bar-value { color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .62rem; text-align: center; }.bar-track { display: flex; height: 100%; align-items: end; justify-content: center; }.bar-fill { width: min(42px, 65%); min-height: 4px; border-radius: 7px 7px 2px 2px; background: var(--accent); transform-origin: bottom center; transform: scaleY(var(--bar-scale, .04)); }.bar-column:nth-child(2) .bar-fill { background: color-mix(in srgb, var(--accent) 78%, var(--blue)); }.bar-column:nth-child(3) .bar-fill { background: var(--amber); }.bar-column:nth-child(4) .bar-fill { background: var(--red); }.bar-label { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .57rem; text-align: center; white-space: nowrap; }.chart-caption { margin: 14px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.route-breakdown { display: grid; gap: 13px; margin-top: 25px; }.route-stat { display: grid; grid-template-columns: 106px 1fr 28px; gap: 9px; align-items: center; }.route-stat span { color: var(--ink-soft); font-size: .72rem; }.route-stat b { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .61rem; font-weight: 400; text-align: right; }.route-track { height: 7px; overflow: hidden; border-radius: 9px; background: var(--surface-strong); }.route-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--route-scale, 0)); }.route-stat.referral .route-fill { background: var(--blue); }.route-stat.delay .route-fill { background: var(--amber); }.route-stat.near .route-fill { background: var(--accent-strong); }
.stage-medians { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--line); }.stage-medians div { padding-left: 8px; border-left: 1px solid var(--line); }.stage-medians small, .stage-medians b { display: block; }.stage-medians small { color: var(--muted); font-size: .6rem; }.stage-medians b { margin-top: 4px; color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .68rem; font-weight: 400; }
.exception-table-card { margin-top: 12px; }.table-wrap { margin-top: 19px; overflow-x: auto; }.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }.table-wrap th { padding: 0 10px 9px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .59rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }.table-wrap td { padding: 11px 10px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .72rem; white-space: nowrap; }.table-wrap tbody tr:hover td { background: var(--surface-soft); }.table-code { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .61rem; }.table-state { color: var(--amber); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .59rem; text-transform: uppercase; }.empty-table { padding: 18px 10px !important; color: var(--muted) !important; white-space: normal !important; }
.monthly-report-bar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 12px; padding: 19px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-accent); }.monthly-report-bar strong { display: block; margin-top: 6px; font-size: .98rem; }.monthly-report-bar p { max-width: 58ch; margin: 5px 0 0; color: var(--ink-soft); font-size: .72rem; }.monthly-report-bar .export-actions { margin-top: 0; flex: 0 0 auto; }

.insight-grid { display: grid; grid-template-columns: 1.04fr .92fr 1fr; gap: 13px; }
.insight-card { min-height: 252px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }.insight-heading { align-items: center; }.insight-heading h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }.card-number { color: var(--accent); }.insight-card > p { max-width: 34ch; margin: 24px 0 15px; color: var(--ink-soft); font-size: .9rem; }.insight-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.insight-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: .73rem; line-height: 1.38; }.insight-card li::before { position: absolute; top: .55em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.exception-count { padding: 5px 7px; border-radius: 5px; background: var(--surface-strong); color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .57rem; text-transform: uppercase; }.exception-count.has-open { background: var(--amber-soft); color: var(--amber); }
.exception-list { display: grid; gap: 10px; margin-top: 24px; }.exception-row { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }.exception-row strong { display: block; font-size: .76rem; }.exception-row span { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.35; }.exception-row.empty { color: var(--muted); font-size: .76rem; }
.report-preview { display: grid; min-height: 125px; align-content: center; margin-top: 23px; padding: 15px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-soft); }.report-overline { color: var(--accent); font-size: .59rem; }.report-preview strong { margin-top: 9px; font-size: .9rem; }.report-preview p { margin: 5px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.38; }.report-preview.is-ready { border-style: solid; border-color: var(--accent); background: var(--surface-accent); }.report-preview.is-ready strong { color: var(--accent-strong); }.export-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }.export-actions .button { min-height: 34px; padding: 7px 10px; font-size: .7rem; }

.methods-section { display: grid; grid-template-columns: minmax(0, .92fr) minmax(330px, 1.08fr); gap: 80px; align-items: start; padding-top: 22px; }
.methods-copy h2 { max-width: 600px; font-size: clamp(2rem, 4vw, 4rem); }.methods-copy > p:last-child { max-width: 55ch; margin-top: 24px; color: var(--ink-soft); font-size: .95rem; }.method-list { border-top: 1px solid var(--line); }.method-row { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }.method-row > span { color: var(--accent); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .68rem; }.method-row strong { font-size: .87rem; }.method-row p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }.footer-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .72rem; }.footer-inner p { margin: 0; }.footer-inner strong { color: var(--ink-soft); }.footer-disclaimer { color: var(--amber); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .59rem; letter-spacing: .06em; }

@media (max-width: 1180px) {
  .journey-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .detail-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .detail-panel .panel-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .detail-panel .detail-block { border-top: 0; padding-top: 0; }
  .detail-panel .clock-block { margin: 0; }
  .detail-panel .event-log { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 36px, 700px); }
  .header-inner { min-height: 68px; }.primary-nav { display: none; }.header-actions { min-width: auto; }.synthetic-badge { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 42px; padding-top: 66px; }.hero h1 { max-width: 640px; font-size: clamp(3rem, 12vw, 5.5rem); }.hero-brief { max-width: 560px; }
  .journey-layout { grid-template-columns: 1fr; }.control-panel { order: 2; }.journey-console { order: 1; }.detail-panel { order: 3; grid-column: auto; display: block; }.detail-panel .panel-heading { margin-bottom: 25px; }.detail-panel .detail-block { border-top: 1px solid var(--line); padding-top: 14px; }.detail-panel .clock-block { margin: 8px 0 15px; }.detail-panel .event-log { border-top: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.monthly-report-bar { align-items: flex-start; flex-direction: column; }.monthly-report-bar .export-actions { margin-top: 8px; }
  .insight-grid { grid-template-columns: 1fr 1fr; }.report-card { grid-column: 1 / -1; }
  .methods-section { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 500px); }.header-inner { gap: 8px; }.brand { min-width: auto; }.brand-copy span { font-size: .64rem; }.theme-button { font-size: .7rem; }
  .hero { padding-top: 50px; padding-bottom: 68px; }.hero h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); }.hero-lede { font-size: 1rem; }.hero-actions .button { flex: 1 1 100%; }.hero-brief { padding: 21px; }.brief-grid { margin-top: 46px; }.brief-grid strong { font-size: 2rem; }
  .section-heading { display: block; }.section-intro { margin-top: 18px; }.journey-section, .order-section, .insight-section, .methods-section { padding-bottom: 78px; }
  .scene-stage { min-height: 545px; }.scene-zone { padding: 13px 10px; }.zone-header { font-size: .52rem; }.scene-building, .scene-object { transform: scale(.84); transform-origin: top left; }.reception-building { top: 91px; left: 4%; width: 78%; }.blood-room { right: -9%; bottom: 121px; width: 88%; }.waiting-area { left: 6%; bottom: 46px; }.storage-rack { top: 145px; left: 4%; width: 96%; }.courier-object { right: 8%; bottom: 132px; }.intake-bench { top: 104px; left: 1%; width: 101%; }.analyzer-object { bottom: 127px; left: 1%; width: 95%; }.release-desk { right: 1%; bottom: 49px; width: 91%; }.route-connector { width: 5%; }.connector-one { left: 34%; }.connector-two { left: 63%; }.stage-callout { right: 12px; bottom: 13px; width: 55%; }.traveler { transition-duration: 500ms; }
  .console-controls { flex-wrap: wrap; }.progress-wrap { order: 2; flex-basis: 100%; margin: 4px 0 0; }.event-strip { margin-right: -3px; margin-left: -3px; }
  .dashboard-meta { align-items: flex-start; flex-direction: column; gap: 7px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.metric-card { min-height: 118px; padding: 13px; }.metric-card strong { font-size: 1.7rem; }.route-stat { grid-template-columns: 93px 1fr 26px; }.stage-medians { grid-template-columns: 1fr 1fr; row-gap: 14px; }.stage-medians div:last-child { grid-column: 1 / -1; }.table-wrap { margin-right: -7px; margin-left: -7px; }.monthly-report-bar { padding: 17px; }.monthly-report-bar .export-actions { width: 100%; }.monthly-report-bar .button { flex: 1; }
  .item-grid, .insight-grid { grid-template-columns: 1fr; }.report-card { grid-column: auto; }.order-toolbar { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding-top: 11px; padding-bottom: 11px; }.footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 17px; padding-bottom: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* The replay is an illustrated workflow scene, not a decorative map. */
.scene-stage {
  min-height: 650px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--accent-soft) 48%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent-soft)), var(--surface-strong));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.scene-stage::before {
  z-index: -2;
  background-image: linear-gradient(color-mix(in srgb, var(--line) 26%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 26%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .28;
}

.scene-stage::after {
  z-index: -1;
  height: 42%;
  border-top: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-strong) 70%, transparent));
}

.scene-stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.scene-stage-kicker,
.scene-legend,
.scene-panel-heading small,
.action-draw small,
.action-handover small,
.lab-action small {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.scene-stage-topline strong {
  display: block;
  margin-top: 4px;
  font-size: .92rem;
  letter-spacing: -.02em;
}

.scene-cohort-summary { margin-left: auto; color: var(--accent-strong); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .53rem; letter-spacing: .04em; text-transform: uppercase; }

.scene-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.scene-legend span { display: inline-flex; align-items: center; gap: 5px; }
.scene-legend i { display: inline-block; flex: 0 0 auto; }
.legend-person { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 6px 0 -2px var(--accent); }
.legend-specimen { width: 7px; height: 13px; border: 1px solid var(--red); border-radius: 2px 2px 4px 4px; background: var(--red-soft); }
.legend-information { width: 14px; height: 10px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue-soft); }

.storyboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-height: 445px;
  margin-top: 18px;
}

.scene-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
}

.scene-panel:not(.is-active) { opacity: .72; }
.scene-panel.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent), var(--shadow-soft); opacity: 1; }
.scene-panel.is-active .scene-panel-number { color: var(--accent-strong); background: var(--accent-soft); }

.scene-panel-heading { position: relative; z-index: 3; display: flex; align-items: flex-start; gap: 8px; min-height: 42px; }
.scene-panel-number { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .58rem; transition: background 260ms ease, color 260ms ease; }
.scene-panel-heading strong { display: block; font-size: .78rem; line-height: 1.15; letter-spacing: -.02em; }
.scene-panel-heading small { display: block; margin-top: 4px; font-size: .51rem; letter-spacing: .02em; line-height: 1.25; text-transform: none; }

.scene-art { position: relative; min-height: 382px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent); border-radius: 11px; background: linear-gradient(180deg, var(--surface-soft), color-mix(in srgb, var(--surface-strong) 78%, var(--surface))); }
.scene-art::before { position: absolute; top: 13%; right: 10%; left: 10%; height: 1px; background: color-mix(in srgb, var(--line-strong) 50%, transparent); content: ""; }
.scene-art::after { position: absolute; right: 0; bottom: 0; left: 0; height: 32%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-strong) 58%, transparent)); content: ""; pointer-events: none; }
.scene-floor-line { position: absolute; right: 9%; bottom: 16%; left: 9%; height: 1px; background: var(--line-strong); opacity: .7; }
.art-sign { position: absolute; z-index: 2; top: 8px; left: 10px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .48rem; letter-spacing: .07em; text-transform: uppercase; }

/* Collection centre illustration */
.art-window { position: absolute; top: 27px; right: 12%; width: 35%; height: 52px; border: 1px solid var(--line-strong); border-radius: 6px; background: color-mix(in srgb, var(--blue-soft) 62%, transparent); }
.art-window span { position: absolute; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }.art-window span:nth-child(1) { left: 33%; }.art-window span:nth-child(2) { left: 66%; }.art-window span:nth-child(3) { top: 50%; right: 8px; left: 8px; width: auto; height: 1px; }
.reception-desk { position: absolute; top: 84px; left: 11%; width: 47%; height: 45px; border: 1px solid var(--line-strong); border-radius: 8px 8px 4px 4px; background: var(--surface); box-shadow: 0 8px 13px color-mix(in srgb, var(--ink) 7%, transparent); }
.reception-desk::after { position: absolute; right: -5px; bottom: -10px; left: -5px; height: 10px; border-radius: 0 0 5px 5px; background: var(--accent-soft); content: ""; }
.reception-desk span { position: absolute; top: 13px; width: 17px; height: 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface-soft); }.reception-desk span:first-child { right: 12px; }.reception-desk span:last-child { right: 34px; }
.collection-chair { position: absolute; bottom: 88px; left: 12%; width: 37%; height: 87px; border: 1px solid var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.chair-back { position: absolute; top: 16px; left: 25%; width: 36%; height: 37px; border: 1px solid var(--accent); border-radius: 13px 13px 4px 4px; background: var(--surface-accent); }
.chair-seat { position: absolute; right: 15%; bottom: 16px; left: 15%; height: 17px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-strong); }
.chair-arm { position: absolute; right: 7%; bottom: 29px; width: 17%; height: 24px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 6px 6px 0; }
.collector-figure { position: absolute; right: 10%; bottom: 75px; width: 56px; height: 115px; }
.collector-figure .figure-head, .scientist-figure .figure-head, .courier-figure .figure-head { position: absolute; top: 0; left: 20px; width: 23px; height: 23px; border: 2px solid var(--ink-soft); border-radius: 50%; background: var(--amber); }
.figure-hair { position: absolute; top: 0; left: 19px; width: 26px; height: 12px; border-radius: 14px 14px 4px 4px; background: var(--ink-soft); }
.collector-figure .figure-body, .scientist-figure .figure-body, .courier-figure .figure-body { position: absolute; top: 27px; left: 11px; width: 42px; height: 63px; border-radius: 17px 17px 8px 8px; background: var(--accent); box-shadow: inset 0 -13px 0 color-mix(in srgb, var(--accent-strong) 55%, transparent); }
.collector-figure .figure-arm, .scientist-figure .figure-arm, .courier-figure .figure-arm { position: absolute; z-index: 3; top: 38px; left: 1px; width: 37px; height: 11px; border-radius: 10px; background: var(--accent-strong); transform: rotate(29deg); transform-origin: right center; }
.collector-figure .figure-hand, .scientist-figure .figure-hand, .courier-figure .figure-hand { position: absolute; z-index: 4; top: 54px; left: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--amber); }
.tube-tray { position: absolute; right: 7%; bottom: 25px; left: 7%; height: 43px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); box-shadow: 0 6px 12px color-mix(in srgb, var(--ink) 8%, transparent); }
.tray-label { position: absolute; top: -16px; left: 0; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .47rem; text-transform: uppercase; }
.collection-tube { position: absolute; bottom: 7px; width: 14px; height: 30px; border: 1px solid var(--line-strong); border-radius: 3px 3px 5px 5px; background: var(--surface-soft); }.collection-tube::before { position: absolute; top: -7px; right: -1px; left: -1px; height: 8px; border: 1px solid var(--line-strong); border-radius: 3px 3px 1px 1px; background: var(--accent); content: ""; }.collection-tube b { position: absolute; top: 11px; left: 50%; color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .32rem; font-weight: 400; transform: translateX(-50%) rotate(-90deg); }
.tube-edta { left: 22%; }.tube-edta::before { background: var(--accent); }.tube-urine { left: 43%; height: 24px; }.tube-urine::before { background: var(--amber); }.tube-aliquot { left: 64%; height: 27px; }.tube-aliquot::before { background: var(--blue); }

/* Transfer illustration */
.storage-shelf { position: absolute; top: 67px; right: 9%; left: 9%; height: 129px; border: 1px solid var(--line-strong); border-radius: 9px; background: color-mix(in srgb, var(--surface) 70%, var(--blue-soft)); }
.storage-shelf i { position: absolute; right: 12px; left: 12px; height: 1px; background: var(--line-strong); }.storage-shelf i:nth-of-type(1) { top: 48px; }.storage-shelf i:nth-of-type(2) { top: 80px; }.storage-shelf i:nth-of-type(3) { top: 110px; }
.shelf-tubes { position: absolute; top: 23px; right: 20px; display: flex; gap: 5px; }.shelf-tubes span { width: 9px; height: 22px; border: 1px solid var(--line-strong); border-radius: 2px 2px 4px 4px; background: var(--red-soft); }.shelf-tubes span:nth-child(2) { background: var(--amber-soft); }.shelf-tubes span:nth-child(3) { background: var(--blue-soft); }
.transfer-road { position: absolute; right: 4%; bottom: 88px; left: 4%; height: 2px; background: var(--line-strong); }.transfer-road span { position: absolute; top: -2px; width: 24px; height: 6px; border-radius: 4px; background: var(--surface); }.transfer-road span:nth-child(1) { left: 15%; }.transfer-road span:nth-child(2) { left: 50%; }.transfer-road span:nth-child(3) { right: 8%; }
.courier-figure { position: absolute; bottom: 73px; left: 12%; width: 58px; height: 118px; }.courier-figure .figure-cap { position: absolute; z-index: 2; top: -2px; left: 16px; width: 31px; height: 10px; border-radius: 50% 50% 3px 3px; background: var(--blue); }.courier-figure .figure-body { background: var(--blue); }.courier-figure .figure-arm { background: color-mix(in srgb, var(--blue) 75%, var(--ink)); transform: rotate(-16deg); }.courier-figure .figure-hand { left: 1px; }
.transport-box { position: absolute; right: 12%; bottom: 68px; width: 82px; height: 61px; border: 1px solid var(--accent); border-radius: 9px; background: var(--surface-accent); box-shadow: 0 9px 15px color-mix(in srgb, var(--ink) 12%, transparent); }.box-label { position: absolute; top: 8px; left: 9px; color: var(--accent-strong); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .43rem; text-transform: uppercase; }.box-lid { position: absolute; top: 24px; right: 10px; left: 10px; height: 5px; border-radius: 3px; background: var(--accent); }.box-tube { position: absolute; bottom: 9px; width: 9px; height: 20px; border: 1px solid var(--line-strong); border-radius: 2px 2px 4px 4px; background: var(--red-soft); }.box-tube.one { left: 19px; }.box-tube.two { left: 36px; background: var(--amber-soft); }.box-tube.three { left: 53px; background: var(--blue-soft); }

/* Central laboratory illustration */
.lab-window { position: absolute; top: 27px; right: 10%; width: 42%; height: 48px; border: 1px solid var(--line-strong); border-radius: 6px; background: color-mix(in srgb, var(--blue-soft) 58%, transparent); }.lab-window span { position: absolute; top: 9px; bottom: 9px; width: 1px; background: var(--line-strong); }.lab-window span:first-child { left: 33%; }.lab-window span:last-child { left: 66%; }
.lab-bench { position: absolute; top: 86px; right: 7%; left: 7%; height: 47px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }.bench-surface { position: absolute; right: 9px; bottom: 10px; left: 9px; height: 7px; border-radius: 4px; background: var(--blue-soft); }.barcode-light { position: absolute; top: 20px; right: 23px; width: 21px; height: 12px; border: 1px solid var(--accent); border-radius: 3px; background: var(--surface-accent); }
.scientist-figure { position: absolute; right: 9%; bottom: 77px; width: 57px; height: 118px; }.scientist-figure .figure-body { background: var(--surface); border: 1px solid var(--accent); box-shadow: inset 0 -13px 0 var(--accent-soft); }.scientist-figure .figure-arm { background: var(--accent-strong); transform: rotate(20deg); }.scientist-figure .figure-hand { left: -1px; }
.analyser { position: absolute; bottom: 75px; left: 8%; width: 53%; height: 103px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 9px 15px color-mix(in srgb, var(--ink) 9%, transparent); }.analyser-screen { position: absolute; top: 32px; left: 13px; width: 55px; height: 34px; border: 1px solid var(--accent); border-radius: 5px; background: var(--surface-accent); }.analyser-screen i { display: block; width: 31px; height: 2px; margin: 7px 0 0 9px; border-radius: 2px; background: var(--accent); }.analyser-screen i + i { width: 22px; margin-top: 5px; opacity: .7; }.analyser-screen i:last-child { width: 35px; margin-top: 5px; opacity: .45; }.analyser-slot { position: absolute; right: 20px; bottom: 18px; width: 34px; height: 49px; border-radius: 6px 6px 2px 2px; background: var(--surface-strong); }.analyser-light { position: absolute; top: 24px; right: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.validation-desk { position: absolute; right: 7%; bottom: 25px; width: 49%; height: 51px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }.desk-paper { position: absolute; right: 22px; bottom: 11px; width: 23px; height: 31px; border: 1px solid var(--accent); border-radius: 3px; background: var(--surface-soft); transform: rotate(6deg); }.desk-paper::after { position: absolute; top: 8px; right: 4px; left: 4px; height: 2px; background: var(--accent); box-shadow: 0 6px 0 var(--line-strong), 0 12px 0 var(--line-strong); content: ""; }.desk-check { position: absolute; right: 51px; bottom: 18px; color: var(--accent); font-size: 1.1rem; font-weight: 800; }
.report-phone { position: absolute; right: 12%; top: 31px; width: 34px; height: 57px; border: 2px solid var(--ink-soft); border-radius: 7px; background: var(--surface); transform: rotate(7deg); opacity: .35; }.phone-screen { position: absolute; top: 8px; right: 5px; left: 5px; height: 25px; border-radius: 3px; background: var(--blue-soft); }.phone-line { position: absolute; right: 7px; left: 7px; height: 2px; border-radius: 2px; background: var(--blue); }.phone-line.one { top: 40px; }.phone-line.two { top: 46px; width: 13px; }

.storyboard-route { position: absolute; z-index: 1; top: 52%; height: 2px; background: color-mix(in srgb, var(--accent) 55%, var(--line)); }.route-one { left: 30%; width: 7%; }.route-two { left: 63%; width: 7%; }.storyboard-route span { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }.storyboard-route span:first-child { left: 8%; }.storyboard-route span:nth-child(2) { left: 47%; }.storyboard-route span:last-child { right: 3%; }

.collection-action,
.handover-action,
.lab-action { position: absolute; z-index: 5; right: 8px; bottom: 8px; left: 8px; display: none; flex-direction: column; gap: 2px; padding: 8px 9px; border: 1px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft)); box-shadow: var(--shadow-soft); }
.collection-action b, .handover-action b, .lab-action b { font-size: .66rem; line-height: 1.15; }.collection-action small, .handover-action small, .lab-action small { font-size: .45rem; letter-spacing: .02em; text-transform: none; }.collection-action.is-active, .handover-action.is-active, .lab-action.is-active { display: flex; animation: action-in 320ms ease both; }.action-pulse { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.action-release { border-color: var(--blue); background: color-mix(in srgb, var(--surface) 91%, var(--blue-soft)); }.action-release .action-pulse { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
@keyframes action-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw-action { 0%, 100% { transform: rotate(29deg); } 50% { transform: rotate(13deg); } }
@keyframes scan-action { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(12px); opacity: 1; } }
@keyframes report-action { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-7px); } }
.scene-stage[data-event="collect"] .collector-figure .figure-arm { animation: draw-action 1.2s ease-in-out infinite; }
.scene-stage[data-event="receive"] .barcode-light { animation: scan-action 1s ease-in-out infinite; }
.scene-stage[data-event="process"] .analyser-light { animation: pulse 1s ease-in-out infinite; }
.scene-stage[data-event="release"] .report-phone { animation: report-action 1.5s ease-in-out infinite; opacity: 1; }

.traveler { z-index: 8; top: calc(var(--y, 0) * 1%); left: calc(var(--x, 0) * 1%); transform: translate3d(-50%, -50%, 0); transition: top 800ms cubic-bezier(.2,.8,.2,1), left 800ms cubic-bezier(.2,.8,.2,1), opacity 260ms ease; filter: drop-shadow(0 7px 5px color-mix(in srgb, var(--ink) 18%, transparent)); pointer-events: none; }
.person-token { width: 44px; height: 88px; }.person-token .person-head { position: absolute; top: 0; left: 12px; width: 21px; height: 21px; border: 2px solid var(--ink); border-radius: 50%; background: var(--amber); }.person-token .person-hair { position: absolute; top: 0; left: 11px; width: 23px; height: 10px; border-radius: 13px 13px 3px 3px; background: var(--ink-soft); }.person-token .person-body { position: absolute; top: 24px; left: 7px; width: 31px; height: 46px; border-radius: 13px 13px 6px 6px; background: var(--accent); box-shadow: inset 0 -9px 0 color-mix(in srgb, var(--accent-strong) 45%, transparent); }.person-token .person-arm { position: absolute; z-index: 2; top: 32px; left: 30px; width: 25px; height: 9px; border-radius: 8px; background: var(--accent-strong); transform: rotate(22deg); }.person-token .person-bag { position: absolute; right: -1px; bottom: 6px; width: 13px; height: 18px; border: 1px solid var(--ink-soft); border-radius: 4px; background: var(--amber-soft); }
.specimen-token { width: 28px; height: 62px; }.specimen-token .tube-cap { position: absolute; top: 0; left: 3px; width: 22px; height: 12px; border: 1px solid var(--ink-soft); border-radius: 4px 4px 2px 2px; background: var(--accent); }.specimen-token .tube-body { position: absolute; top: 10px; left: 5px; width: 18px; height: 47px; border: 1px solid var(--line-strong); border-radius: 3px 3px 7px 7px; background: color-mix(in srgb, var(--surface) 83%, transparent); }.specimen-token .tube-liquid { position: absolute; right: 8px; bottom: 10px; left: 8px; height: 19px; border-radius: 2px 2px 6px 6px; background: var(--red); opacity: .82; }.tube-label { position: absolute; z-index: 2; top: 28px; left: 50%; color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .43rem; transform: translateX(-50%) rotate(-90deg); }
.information-token { width: 68px; height: 38px; }.information-card { position: absolute; inset: 0; border: 1px solid var(--blue); border-radius: 5px; background: color-mix(in srgb, var(--blue-soft) 78%, var(--surface)); transform: rotate(-5deg); }.information-line { position: absolute; right: 9px; left: 11px; height: 3px; border-radius: 2px; background: var(--blue); }.information-line.first { top: 14px; }.information-line.second { top: 22px; width: 23px; }.information-tag { position: absolute; right: 8px; bottom: 5px; color: var(--blue); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .39rem; letter-spacing: .03em; }

.stage-callout { position: relative; z-index: 9; right: auto; bottom: auto; display: grid; grid-template-columns: minmax(170px, .8fr) 1.2fr; gap: 18px; width: auto; min-height: 67px; margin-top: 14px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-soft); }
.stage-callout > div { min-width: 0; }.stage-callout strong { display: block; margin-top: 5px; font-size: .91rem; letter-spacing: -.02em; }.stage-callout > span:last-child { display: block; align-self: center; margin-top: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.4; }.callout-kicker { display: block; margin-bottom: 0; color: var(--accent); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 640px) {
  .scene-stage { min-height: 690px; padding: 14px; }
  .scene-stage-topline { align-items: flex-start; flex-direction: column; gap: 9px; }
  .scene-cohort-summary { margin-left: 0; font-size: .48rem; }
  .scene-legend { justify-content: flex-start; gap: 8px; font-size: .58rem; }
  .storyboard { min-height: 435px; margin-top: 13px; gap: 5px; }
  .scene-panel { padding: 6px; border-radius: 10px; }
  .scene-panel-heading { min-height: 42px; gap: 4px; }
  .scene-panel-number { width: 18px; height: 18px; flex-basis: 18px; border-radius: 5px; font-size: .47rem; }
  .scene-panel-heading strong { font-size: .58rem; line-height: 1.1; }
  .scene-panel-heading small { display: none; }
  .scene-art { min-height: 375px; border-radius: 8px; }
  .scene-art .art-sign { left: 5px; font-size: .37rem; }
  .reception-desk { left: 8%; width: 74%; transform: scale(.82); transform-origin: top left; }
  .art-window { right: 6%; width: 54%; transform: scale(.82); transform-origin: top right; }
  .collection-chair { left: 2%; width: 79%; transform: scale(.75); transform-origin: bottom left; }
  .collector-figure { right: -1px; transform: scale(.7); transform-origin: bottom right; }
  .tube-tray { right: 4px; left: 4px; transform: scale(.8); transform-origin: bottom center; }
  .storage-shelf { right: 4px; left: 4px; transform: scale(.82); transform-origin: top center; }
  .courier-figure { bottom: 77px; left: -10px; transform: scale(.68); transform-origin: bottom left; }
  .transport-box { right: 3px; width: 70px; transform: scale(.77); transform-origin: bottom right; }
  .lab-window { right: 3px; width: 74%; transform: scale(.82); transform-origin: top right; }
  .lab-bench { right: 3px; left: 3px; transform: scale(.82); transform-origin: top center; }
  .scientist-figure { right: -10px; transform: scale(.65); transform-origin: bottom right; }
  .analyser { bottom: 80px; left: 2px; width: 90%; transform: scale(.75); transform-origin: bottom left; }
  .validation-desk { right: 1px; width: 95%; transform: scale(.68); transform-origin: bottom right; }
  .report-phone { right: 5px; transform: scale(.72); transform-origin: top right; }
  .storyboard-route { display: none; }
  .scene-stage .traveler { transition-duration: 500ms; }
  .person-token { width: 32px; height: 64px; transform: translate3d(-50%, -50%, 0) scale(.72); }
  .specimen-token { transform: translate3d(-50%, -50%, 0) scale(.72); }
  .information-token { transform: translate3d(-50%, -50%, 0) scale(.72); }
  .stage-callout { grid-template-columns: 1fr; gap: 5px; min-height: 91px; margin-top: 11px; padding: 11px 12px; }
  .stage-callout > span:last-child { align-self: start; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-stage[data-event="collect"] .collector-figure .figure-arm,
  .scene-stage[data-event="receive"] .barcode-light,
  .scene-stage[data-event="process"] .analyser-light,
  .scene-stage[data-event="release"] .report-phone { animation: none; }
}

/* Return path: validation happens at the central laboratory, delivery happens at the collection point. */
.report-return-station { position: absolute; top: 150px; right: 8%; width: 45%; height: 65px; border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--blue-soft) 45%, var(--surface)); transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease; }
.report-return-station .art-sign { color: var(--blue); }
.return-envelope { position: absolute; right: 16px; bottom: 12px; width: 29px; height: 21px; border: 1px solid var(--blue); border-radius: 3px; background: var(--surface); transform: rotate(-5deg); }
.return-envelope::before, .return-envelope::after { position: absolute; top: 5px; width: 17px; height: 1px; background: var(--blue); content: ""; }.return-envelope::before { left: -1px; transform: rotate(29deg); transform-origin: left center; }.return-envelope::after { right: -1px; transform: rotate(-29deg); transform-origin: right center; }
.return-screen { position: absolute; right: 58px; bottom: 14px; width: 24px; height: 16px; border: 1px solid var(--accent); border-radius: 3px; background: var(--surface-accent); }.return-screen::after { position: absolute; right: 4px; bottom: 4px; left: 4px; height: 2px; background: var(--accent); content: ""; }
.scene-stage[data-event="report-return"] .report-return-station, .scene-stage[data-event="client-receive"] .report-return-station { border-color: var(--blue); background: color-mix(in srgb, var(--blue-soft) 68%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent); }

.action-report-return, .action-client-receive { border-color: var(--blue); background: color-mix(in srgb, var(--surface) 90%, var(--blue-soft)); }
.action-report-return .action-pulse, .action-client-receive .action-pulse { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.scene-stage[data-event="validate"] .report-phone { animation: report-action 1.5s ease-in-out infinite; opacity: 1; }
.scene-stage[data-event="report-return"] .return-envelope { animation: report-arrival 1.2s ease-in-out infinite; }
.scene-stage[data-event="client-receive"] .information-token { animation: report-handover 1.15s ease-in-out infinite; }
@keyframes report-arrival { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-7px); } }
@keyframes report-handover { 0%, 100% { filter: drop-shadow(0 7px 5px color-mix(in srgb, var(--ink) 18%, transparent)); } 50% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--blue) 52%, transparent)); } }

/* Use transform-only movement so the paths ease into each stop instead of snapping. */
.traveler { top: 0; left: 0; transform: translate3d(-50%, -50%, 0) translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 1320ms cubic-bezier(.16, 1, .3, 1), opacity 420ms ease; will-change: transform, opacity; }
.event-strip { grid-template-columns: repeat(11, minmax(70px, 1fr)); }

@media (max-width: 640px) {
  .report-return-station { top: 150px; right: 2px; width: 83%; transform: scale(.78); transform-origin: top right; }
  .scene-stage .traveler { transition-duration: 1100ms; }
  .person-token { transform: translate3d(-50%, -50%, 0) translate3d(var(--px, 0px), var(--py, 0px), 0) scale(.72); }
  .specimen-token { transform: translate3d(-50%, -50%, 0) translate3d(var(--px, 0px), var(--py, 0px), 0) scale(.72); }
  .information-token { transform: translate3d(-50%, -50%, 0) translate3d(var(--px, 0px), var(--py, 0px), 0) scale(.72); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-stage[data-event="validate"] .report-phone,
  .scene-stage[data-event="report-return"] .return-envelope,
  .scene-stage[data-event="client-receive"] .information-token { animation: none; }
  .traveler { will-change: auto; }
}

/* Cohort view: several people arrive, one batch is dispatched, and the analyser handles each tube. */
.patient-queue { position: absolute; z-index: 3; top: 143px; left: 8%; width: 49%; height: 59px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft)); }
.queue-count { position: absolute; z-index: 2; top: 8px; right: 8px; color: var(--accent-strong); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .43rem; }
.patient-queue-list { position: absolute; right: 7px; bottom: 5px; left: 7px; display: flex; align-items: end; justify-content: space-between; gap: 3px; }
.patient-chip { position: relative; width: 22px; height: 32px; flex: 1 1 0; max-width: 27px; border-bottom: 2px solid var(--line-strong); opacity: .56; transition: opacity 260ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1), border-color 260ms ease; }
.patient-chip .queue-head { position: absolute; top: 1px; left: 50%; width: 9px; height: 9px; border: 1px solid var(--ink-soft); border-radius: 50%; background: var(--amber); transform: translateX(-50%); }
.patient-chip .queue-body { position: absolute; right: 3px; bottom: 3px; left: 3px; height: 17px; border-radius: 7px 7px 2px 2px; background: var(--blue); }
.patient-chip b { position: absolute; right: 0; bottom: -1px; left: 0; color: var(--ink-soft); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .35rem; font-weight: 400; text-align: center; transform: translateY(100%); }
.patient-chip.is-current { border-color: var(--accent); opacity: 1; transform: translateY(-4px); }.patient-chip.is-current .queue-body { background: var(--accent); }.patient-chip.is-collecting::after { position: absolute; right: -4px; bottom: 7px; width: 7px; height: 4px; border-radius: 2px; background: var(--red); content: ""; }.patient-chip.is-collected { border-color: var(--accent); opacity: .82; }.patient-chip.is-collected .queue-body { background: var(--accent-soft); }.patient-chip.is-collected .queue-head { background: var(--ink-soft); }

.bike-cargo { width: 59px; overflow: hidden; gap: 2px; padding: 4px 6px; }.bike-cargo .bike-sample { display: block; width: 7px; height: 17px; flex: 0 0 7px; border: 1px solid var(--line-strong); border-radius: 2px 2px 4px 4px; background: var(--red-soft); }.bike-cargo .sample-1 { background: var(--amber-soft); }.bike-cargo .sample-2 { background: var(--blue-soft); }.transfer-art .transport-box .box-label { right: 7px; overflow: hidden; font-size: .34rem; text-overflow: ellipsis; white-space: nowrap; }

.analyser-feed { position: absolute; z-index: 4; top: 12px; right: 9px; display: flex; align-items: end; gap: 3px; height: 25px; }.analyser-tube { display: block; width: 7px; height: 20px; border: 1px solid var(--line-strong); border-radius: 2px 2px 4px 4px; background: var(--red-soft); opacity: .8; }.analyser-tube:nth-child(3n + 2) { background: var(--amber-soft); }.analyser-tube:nth-child(3n + 3) { background: var(--blue-soft); }.analyser-tube i { display: block; height: 8px; margin: 9px 1px 1px; border-radius: 1px 1px 3px 3px; background: var(--red); opacity: .75; }.analyser-feed[data-active="true"] .analyser-tube { animation: tube-into-analyser 1.45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--sample-index) * 110ms); }
@keyframes tube-into-analyser { 0% { opacity: 0; transform: translate3d(-45px, -2px, 0); } 35% { opacity: 1; } 75% { transform: translate3d(0, 0, 0); } 100% { opacity: .82; transform: translate3d(0, 0, 0); } }
.report-stack { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 39px; height: 34px; }.report-sheet-mini { position: absolute; right: calc(var(--report-index) * 3px); bottom: calc(var(--report-index) * 2px); width: 22px; height: 29px; border: 1px solid var(--blue); border-radius: 3px; background: var(--surface); transform: rotate(calc((var(--report-index) - 2) * 2deg)); opacity: .9; }.report-sheet-mini::after { position: absolute; top: 8px; right: 4px; left: 4px; height: 2px; background: var(--blue); box-shadow: 0 6px 0 var(--line-strong), 0 12px 0 var(--line-strong); content: ""; }.scene-stage[data-event="validate"] .report-sheet-mini { animation: report-print 1.25s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--report-index) * 100ms); }
@keyframes report-print { from { opacity: 0; transform: translateY(-12px) rotate(0deg); } to { opacity: .9; transform: translateY(0) rotate(calc((var(--report-index) - 2) * 2deg)); } }

@media (max-width: 640px) {
  .patient-queue { top: 214px; left: 4px; width: 53%; height: 51px; transform: scale(.82); transform-origin: top left; }
  .queue-count { font-size: .37rem; }
  .patient-chip { height: 29px; }
  .analyser-feed { right: 5px; transform: scale(.72); transform-origin: top right; }
  .report-stack { right: 4px; transform: scale(.72); transform-origin: bottom right; }
}

/* The transfer is a motorcycle courier journey, with the labelled tubes visible in the cargo case. */
.motorbike { position: absolute; z-index: 3; right: 13%; bottom: 55px; width: 112px; height: 67px; filter: drop-shadow(0 7px 5px color-mix(in srgb, var(--ink) 14%, transparent)); }
.bike-wheel { position: absolute; bottom: 1px; width: 27px; height: 27px; border: 4px solid var(--ink-soft); border-radius: 50%; background: var(--surface-strong); box-shadow: inset 0 0 0 4px var(--surface); }.bike-wheel::after { position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border-radius: 50%; background: var(--ink-soft); content: ""; }.bike-wheel-back { left: 8px; }.bike-wheel-front { right: 8px; }
.bike-frame { position: absolute; right: 29px; bottom: 20px; left: 25px; height: 19px; border-bottom: 5px solid var(--accent-strong); border-left: 5px solid var(--accent-strong); border-radius: 5px 0 0 14px; transform: skewX(-18deg); }.bike-frame::after { position: absolute; right: 2px; bottom: -5px; width: 26px; height: 5px; border-radius: 4px; background: var(--accent-strong); content: ""; }
.bike-seat { position: absolute; bottom: 38px; left: 43px; width: 33px; height: 7px; border-radius: 5px; background: var(--ink-soft); }.bike-handle { position: absolute; right: 21px; bottom: 37px; width: 18px; height: 22px; border-top: 3px solid var(--ink-soft); border-right: 3px solid var(--ink-soft); transform: rotate(12deg); }.bike-light { position: absolute; right: 14px; bottom: 38px; width: 8px; height: 8px; border: 1px solid var(--amber); border-radius: 50%; background: var(--amber-soft); }
.bike-cargo { position: absolute; top: 4px; left: 20px; display: flex; gap: 4px; align-items: end; width: 47px; height: 28px; padding: 4px 7px; border: 1px solid var(--accent); border-radius: 5px; background: var(--surface-accent); }.bike-cargo i { display: block; width: 8px; height: 17px; border: 1px solid var(--line-strong); border-radius: 2px 2px 4px 4px; background: var(--red-soft); }.bike-cargo i:nth-child(2) { background: var(--amber-soft); }.bike-cargo i:nth-child(3) { background: var(--blue-soft); }
.scene-stage[data-event="transfer"] .motorbike { animation: motorcycle-ride 1.75s cubic-bezier(.16, 1, .3, 1) 1 both; }
.scene-stage[data-event="transfer"] .courier-figure { animation: rider-ride 1.75s cubic-bezier(.16, 1, .3, 1) 1 both; }
.scene-stage[data-event="transfer"] .bike-wheel::after { animation: wheel-spin 1.25s linear 1 both; }
@keyframes motorcycle-ride { 0% { opacity: .38; transform: translate3d(-56px, 2px, 0); } 18% { opacity: 1; } 76% { transform: translate3d(17px, -3px, 0); } 100% { opacity: 1; transform: translate3d(30px, 0, 0); } }
@keyframes rider-ride { 0% { opacity: .38; transform: scale(.74) translate3d(-56px, 2px, 0); } 18% { opacity: 1; } 76% { transform: scale(.74) translate3d(17px, -3px, 0); } 100% { opacity: 1; transform: scale(.74) translate3d(30px, 0, 0); } }
@keyframes wheel-spin { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }
.transfer-art .transport-box { right: 14%; bottom: 112px; z-index: 4; transform: scale(.78); transform-origin: bottom right; }
.transfer-art .courier-figure { left: 31%; bottom: 95px; z-index: 4; transform: scale(.74); transform-origin: bottom center; }
@media (max-width: 640px) {
  .motorbike { right: 3%; bottom: 56px; width: 105px; transform: scale(.72); transform-origin: bottom right; }
  .scene-stage[data-event="transfer"] .motorbike { animation-name: motorcycle-ride-mobile; }
  .scene-stage[data-event="transfer"] .courier-figure { animation: rider-ride-mobile 1.75s cubic-bezier(.16, 1, .3, 1) 1 both; }
  .transfer-art .transport-box { right: 1px; bottom: 112px; transform: scale(.58); }
  .transfer-art .courier-figure { left: 28%; bottom: 92px; transform: scale(.52); }
}
@keyframes motorcycle-ride-mobile { 0% { opacity: .38; transform: translate3d(-37px, 2px, 0) scale(.72); } 18% { opacity: 1; } 76% { transform: translate3d(15px, -2px, 0) scale(.72); } 100% { opacity: 1; transform: translate3d(25px, 0, 0) scale(.72); } }
@keyframes rider-ride-mobile { 0% { opacity: .38; transform: scale(.52) translate3d(-37px, 2px, 0); } 18% { opacity: 1; } 76% { transform: scale(.52) translate3d(15px, -2px, 0); } 100% { opacity: 1; transform: scale(.52) translate3d(25px, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .scene-stage[data-event="transfer"] .motorbike,
  .scene-stage[data-event="transfer"] .bike-wheel::after { animation: none; }
}
