:root {
  --ink: #082f35;
  --ink-2: #17464b;
  --text: #183f44;
  --muted: #4d6b6f;
  --teal: #08777c;
  --teal-dark: #05545a;
  --cyan: #58c8d0;
  --cyan-light: #d9f1f1;
  --lime: #c8dd83;
  --lime-light: #eff5d8;
  --coral: #e66852;
  --coral-light: #fbe4dd;
  --blue: #3f75bd;
  --amber: #d69a2b;
  --surface: #f8faf7;
  --surface-2: #eef4f2;
  --white: #fff;
  --line: #b9cdcc;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --materials-header-height: 4.75rem;
  --report-index-top: calc(var(--materials-header-height) + 4.7rem);
  --report-scroll-offset: calc(var(--report-index-top) + 4rem);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Noto Sans Mono CJK SC", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: #dfe8e5;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
table { border-collapse: collapse; }
svg { display: block; max-width: 100%; }
button:focus-visible,
a:focus-visible {
  outline: .12rem solid var(--white);
  outline-offset: .12rem;
  box-shadow: 0 0 0 .28rem var(--teal);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 80;
  top: -5rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.materials-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--materials-header-height);
  padding-top: max(.75rem, env(safe-area-inset-top));
  padding-bottom: .75rem;
  padding-left: max(clamp(1rem, 3vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 3vw, 3rem), env(safe-area-inset-right));
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #315a5e;
}
.material-read-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: .2rem;
  overflow: hidden;
  pointer-events: none;
}
.material-read-progress i { display: block; width: 100%; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.materials-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand-shape {
  position: relative;
  width: 2.5rem;
  height: 1.7rem;
  border: .16rem solid var(--cyan);
  border-radius: 1rem 1rem 1rem .25rem;
  transform: rotate(-7deg);
}
.brand-shape::after {
  content: "";
  position: absolute;
  top: .45rem;
  left: 1rem;
  width: .45rem;
  height: .45rem;
  background: var(--cyan);
  border-radius: 50%;
}
.materials-brand strong { display: block; font-size: 1.05rem; letter-spacing: .08em; }
.materials-brand small { display: block; margin-top: .1rem; color: #a8cacc; font-size: .7rem; letter-spacing: .14em; }
.header-title { margin-right: auto; padding-left: var(--space-4); border-left: 1px solid #416b6f; }
.header-title b { display: block; font-size: 1rem; }
.header-title span { display: block; max-width: 46vw; overflow: hidden; color: #9fc2c4; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .6rem .9rem;
  color: var(--white);
  background: transparent;
  border: 1px solid #5e8689;
  border-radius: var(--radius-sm);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.header-action:hover { background: #17464b; border-color: var(--cyan); }
.header-action.primary { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.header-action.primary:hover { background: #d6e99a; }

.materials-shell {
  display: grid;
  grid-template-columns: clamp(15.5rem, 18vw, 18.5rem) minmax(0, 1fr);
  gap: 0;
  width: min(100%, 105rem);
  min-height: calc(100vh - var(--materials-header-height));
  min-height: calc(100dvh - var(--materials-header-height));
  margin: 0 auto;
  background: var(--surface);
}
.materials-sidebar {
  position: sticky;
  top: var(--materials-header-height);
  align-self: start;
  height: calc(100vh - var(--materials-header-height));
  height: calc(100dvh - var(--materials-header-height));
  padding: var(--space-5) var(--space-4);
  overflow-y: auto;
  color: var(--white);
  background: var(--teal-dark);
}
.sidebar-intro { padding: 0 .4rem var(--space-4); border-bottom: 1px solid #417579; }
.sidebar-intro span { color: var(--cyan); font: 800 .72rem/1 var(--mono); letter-spacing: .1em; }
.sidebar-intro h1 { margin-top: .7rem; color: var(--white); font-size: 1.7rem; }
.sidebar-intro p { margin: .7rem 0 0; color: #bdd3d4; font-size: .9rem; line-height: 1.55; }
.scene-nav { display: grid; gap: .35rem; margin-top: var(--space-4); }
.scene-nav a {
  display: grid;
  grid-template-columns: 2rem 1.7rem minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  min-height: 3.35rem;
  padding: .55rem .7rem;
  color: #d5e6e6;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.scene-nav a:hover,
.scene-nav a.is-active { color: var(--white); background: #176269; }
.scene-nav a[aria-current] { box-shadow: inset .2rem 0 0 var(--cyan); }
.scene-nav b { color: var(--cyan); font: 850 .78rem/1 var(--mono); }
.scene-nav span { font-size: .9rem; font-weight: 720; line-height: 1.35; }
.sidebar-foot { margin-top: var(--space-5); padding: var(--space-4) .4rem 0; color: #aac9ca; border-top: 1px solid #417579; font-size: .76rem; }

.materials-main { min-width: 0; padding: clamp(1.25rem, 3vw, 3.25rem); container-name: materials; container-type: inline-size; }
.material-view { width: min(100%, 96rem); min-width: 0; margin-inline: auto; animation: reveal .28s var(--ease) both; }
.material-view:focus { outline: none; }
.js .material-view { display: none; }
.js .material-view.is-active { display: block; }
@keyframes reveal { from { opacity: .35; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }

.hub-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-6);
  align-items: end;
  min-height: 21rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
}
.hub-visual-column { display: grid; gap: var(--space-4); min-width: 0; container: hubVisual / inline-size; }
.hub-visual-column > p { margin: 0; }
.hub-hero h2 { max-width: 12ch; color: var(--white); font-size: clamp(2.8rem, 5vw, 5.1rem); letter-spacing: -.035em; }
.hub-hero h2 em { color: var(--cyan); font-style: normal; }
.hub-hero p { max-width: 40ch; margin: 0; color: #bdd2d3; font-size: 1.15rem; }
.hub-stamp { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: var(--space-4); }
.hub-stamp span { padding: .42rem .65rem; color: var(--ink); background: var(--lime); border-radius: .35rem; font-size: .78rem; font-weight: 800; }
.hub-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin: var(--space-7) 0 var(--space-4); }
.hub-heading h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.hub-heading p { max-width: 48ch; margin: 0; color: var(--muted); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.hub-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-3);
  min-height: 12rem;
  padding: var(--space-4);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #c4d4d2;
  border-radius: var(--radius-md);
}
.hub-item > b { color: var(--teal); font: 850 1.15rem/1 var(--mono); }
.hub-item h4 { margin: 0; color: var(--ink); font-size: 1.3rem; line-height: 1.25; }
.hub-item p { margin: .55rem 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.hub-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.hub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  color: var(--ink);
  background: var(--cyan-light);
  border-radius: .45rem;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.hub-links a:last-child { background: var(--lime-light); }
.hub-links a:hover { color: var(--white); background: var(--teal); }
.delivery-pack { padding: var(--space-5); background: var(--surface-2); border-radius: var(--radius-md); }

.material-toolbar {
  position: sticky;
  z-index: 20;
  top: calc(var(--materials-header-height) + .7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  padding: .65rem .75rem;
  background: rgba(248, 250, 247, .97);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.material-breadcrumbs { color: var(--muted); font-size: .85rem; }
.material-breadcrumbs a { color: var(--teal); font-weight: 750; text-decoration: none; }
.view-switch {
  display: flex;
  gap: .35rem;
  padding: .3rem;
  background: #dfe9e6;
  border-radius: .65rem;
}
.view-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border-radius: .45rem;
  font-weight: 800;
  text-decoration: none;
}
.view-switch a[aria-current="page"] { color: var(--white); background: var(--teal); }

.material-hero {
  display: grid;
  grid-template-areas: "copy visual" "config config";
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .72fr);
  gap: var(--space-6);
  align-items: end;
  padding: clamp(2rem, 4vw, 3.75rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
}
.hero-copy { grid-area: copy; }
.scene-figure { grid-area: visual; }
.material-hero .scene-no { color: var(--cyan); font: 850 .8rem/1 var(--mono); letter-spacing: .08em; }
.material-hero h2 { max-width: 17ch; margin-top: var(--space-3); color: var(--white); font-size: clamp(2.3rem, 4vw, 4.2rem); letter-spacing: -.035em; }
.material-hero p { max-width: 48ch; margin: var(--space-3) 0 0; color: #c1d5d6; font-size: 1.08rem; }
.hero-config { grid-area: config; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; min-width: 0; padding: var(--space-4); color: var(--ink); background: var(--cyan-light); border-radius: var(--radius-md); }
.hero-config div { display: grid; grid-template-columns: 5rem 1fr; gap: .7rem; }
.hero-config dt { color: var(--teal); font-size: .78rem; font-weight: 800; }
.hero-config dd { margin: 0; font-size: .88rem; font-weight: 750; }

.content-section { margin-top: var(--space-7); }
.section-title { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: var(--space-3); align-items: start; margin-bottom: var(--space-4); }
.section-title span { padding-top: .3rem; color: var(--teal); font: 850 .78rem/1 var(--mono); }
.section-title h3 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.section-title p { max-width: 58ch; margin: .55rem 0 0; color: var(--muted); }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: var(--space-4); }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { color: var(--teal); font-size: .78rem; font-weight: 800; }
.fact dd { margin: .55rem 0 0; color: var(--ink); font-size: 1.02rem; font-weight: 750; line-height: 1.45; }
.split-copy { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-6); }
.challenge-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: challenge; }
.challenge-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; color: var(--text); }
.challenge-list li::before { counter-increment: challenge; content: counter(challenge, decimal-leading-zero); color: var(--coral); font: 850 .75rem/1.6 var(--mono); }
.solution-copy { padding: var(--space-5); color: var(--white); background: var(--teal-dark); border-radius: var(--radius-md); }
.solution-copy h4 { margin: 0 0 var(--space-3); font-size: 1.35rem; }
.solution-copy p { margin: 0; color: #c5d9da; }

.config-table-wrap { overflow-x: auto; }
.config-table { width: 100%; min-width: 46rem; }
.config-table th,
.config-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.config-table th { color: var(--teal); background: #e4efec; font-size: .78rem; }
.config-table td { font-size: .9rem; }
.config-table td:first-child { color: var(--ink); font-weight: 800; }

.workflow-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.workflow-list li { min-height: 10.5rem; padding: var(--space-4); background: var(--white); border-top: .25rem solid var(--cyan); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.workflow-list li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; margin-bottom: var(--space-4); color: var(--teal); font: 850 .8rem/1 var(--mono); }
.workflow-list strong { display: block; color: var(--ink); }
.workflow-list span { display: block; margin-top: .55rem; color: var(--muted); font-size: .85rem; }

.deliverable-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.deliverable-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.deliverable-list li { position: relative; padding: .8rem .8rem .8rem 2rem; background: var(--white); border-radius: .45rem; font-size: .88rem; font-weight: 700; }
.deliverable-list li::before { content: "✓"; position: absolute; left: .75rem; color: var(--teal); font-weight: 900; }
.pilot-panel { padding: var(--space-5); background: var(--lime-light); border-radius: var(--radius-md); }
.pilot-panel h4 { margin: 0; color: var(--ink); font-size: 1.35rem; }
.pilot-panel p { margin: .65rem 0 1rem; color: var(--muted); }
.kpi-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.kpi-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #c9d69b; font-size: .88rem; }
.kpi-list b { color: var(--teal-dark); }

.report-document { width: min(100%, 72rem); margin-inline: auto; background: var(--white); border-radius: var(--radius-lg); }
.report-demo-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: .8rem 1.1rem; color: #742b20; background: var(--coral-light); border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-size: .8rem; font-weight: 850; }
.report-page { padding: clamp(1.5rem, 4vw, 3rem); scroll-margin-top: var(--report-scroll-offset); }
.report-page + .report-page { border-top: .5rem solid #dfe8e5; }
.report-head { display: flex; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.report-head > div:first-child { flex: 1 1 auto; }
.report-head h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.report-head p { margin: .5rem 0 0; color: var(--muted); }
.report-code { text-align: right; }
.report-code b { display: block; color: var(--teal); font: 850 .85rem/1.2 var(--mono); }
.report-code span { display: block; margin-top: .4rem; color: var(--muted); font-size: .75rem; }
.report-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--space-4); background: var(--surface-2); }
.report-meta div { padding: .85rem 1rem; }
.report-meta div + div { border-left: 1px solid var(--line); }
.report-meta dt { color: var(--muted); font-size: .72rem; }
.report-meta dd { margin: .25rem 0 0; color: var(--ink); font-size: .88rem; font-weight: 800; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: var(--space-4); }
.report-metric { padding: 1rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.report-metric b { display: block; color: var(--ink); font-size: 1.65rem; letter-spacing: -.03em; }
.report-metric span { display: block; margin-top: .4rem; color: var(--muted); font-size: .76rem; }
.report-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--space-4); margin-top: var(--space-5); }
.report-figure { margin: 0; padding: var(--space-4); background: #f4f8f6; border-radius: var(--radius-md); }
.report-figure h3 { font-size: 1.1rem; }
.report-figure svg { width: 100%; height: auto; aspect-ratio: 720 / 220; margin-top: var(--space-3); }
.report-figure figcaption { margin-top: .7rem; color: var(--muted); font-size: .76rem; }
.finding-panel { padding: var(--space-4); color: var(--white); background: var(--teal-dark); border-radius: var(--radius-md); }
.finding-panel h3 { color: var(--white); font-size: 1.1rem; }
.finding-panel ol { margin: var(--space-3) 0 0; padding-left: 1.25rem; }
.finding-panel li { color: #d2e2e3; font-size: .84rem; }
.finding-panel li + li { margin-top: .65rem; }
.event-table { width: 100%; margin-top: var(--space-4); }
.event-table th,
.event-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.event-table th { color: var(--teal); background: #e8f1ef; font-size: .75rem; }
.event-table td { font-size: .82rem; }
.ecg-strip { height: 4.5rem; margin-top: var(--space-3); padding: .45rem; background: #edf5f3; border-radius: .4rem; }
.ecg-strip svg { width: 100%; height: 100%; }
.conclusion-box { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-4); margin-top: var(--space-4); padding: var(--space-4); background: var(--lime-light); border-radius: var(--radius-md); }
.conclusion-box h3 { font-size: 1rem; }
.conclusion-box p { margin: 0; color: var(--text); }
.recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: var(--space-4); }
.recommendation { padding: 1rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.recommendation b { color: var(--teal); font-size: .75rem; }
.recommendation p { margin: .45rem 0 0; font-size: .82rem; }
.report-scope { margin-top: var(--space-5); padding-top: var(--space-3); color: var(--muted); border-top: 1px solid var(--line); font-size: .75rem; }

.ecg-analysis-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.ecg-analysis-heading > div { flex: 0 1 auto; }
.ecg-analysis-heading span,
.scenario-algorithm-copy > span,
.ecg-window-heading span,
.ecg-evidence-head > div > span {
  display: block;
  color: var(--teal);
  font: 800 .7rem/1.2 var(--mono);
  letter-spacing: .08em;
}
.ecg-analysis-heading h3,
.ecg-window-heading h3,
.ecg-evidence-head h3 { margin-top: .35rem; font-size: 1.3rem; }
.ecg-analysis-heading p { max-width: 48ch; margin: 0; color: var(--muted); font-size: .82rem; }

.ecg-metric-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: .75rem;
  margin-top: var(--space-3);
}
.ecg-metric-group {
  min-width: 0;
  overflow: hidden;
  background: #f1f6f4;
  border-top: .22rem solid var(--visual-accent, var(--teal));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.ecg-metric-group > header { padding: .85rem .9rem .75rem; background: #e5efec; }
.ecg-metric-group > header span { color: var(--teal); font: 800 .64rem/1 var(--mono); letter-spacing: .06em; }
.ecg-metric-group h4 { margin: .35rem 0 0; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.ecg-metric-list { margin: 0; }
.ecg-metric-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.8rem, auto);
  gap: .75rem;
  align-items: start;
  padding: .58rem .9rem;
  border-bottom: 1px solid #d2dfdc;
}
.ecg-metric-list > div:last-child { border-bottom: 0; }
.ecg-metric-list dt { color: var(--text); font-size: .72rem; line-height: 1.4; }
.ecg-metric-list dd { margin: 0; text-align: right; }
.ecg-metric-list b { display: block; color: var(--ink); font-size: .78rem; line-height: 1.35; }
.ecg-metric-list small { display: block; margin-top: .15rem; color: var(--muted); font-size: .62rem; line-height: 1.35; }

.scenario-algorithm {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .88fr);
  margin-top: var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.scenario-algorithm-copy { padding: var(--space-4); color: var(--white); background: var(--ink); }
.scenario-algorithm-copy > span { color: var(--cyan); }
.scenario-algorithm-copy h3 { margin-top: .55rem; color: var(--white); font-size: 1.45rem; }
.scenario-algorithm-copy > p { max-width: 60ch; margin: .75rem 0 0; color: #c6d8d9; font-size: .83rem; line-height: 1.55; }
.algorithm-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.algorithm-pipeline li { min-width: 0; padding: .58rem; background: #143f44; border-radius: .35rem; }
.algorithm-pipeline b { display: block; color: var(--cyan); font: 800 .65rem/1 var(--mono); }
.algorithm-pipeline span { display: block; margin-top: .35rem; color: var(--white); font-size: .68rem; line-height: 1.35; }
.scenario-algorithm-result { padding: var(--space-4); background: var(--lime-light); }
.scenario-algorithm-result h4 { margin: 0; color: var(--ink); font-size: 1rem; }
.scenario-algorithm-result ul { margin: .75rem 0 0; padding-left: 1.15rem; }
.scenario-algorithm-result li { color: var(--text); font-size: .75rem; line-height: 1.5; }
.scenario-algorithm-result li + li { margin-top: .45rem; }
.analysis-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .85rem 0 0; }
.analysis-highlights > div { padding: .55rem .65rem; background: rgba(255, 255, 255, .62); border-radius: .35rem; }
.analysis-highlights dt { color: var(--muted); font-size: .63rem; }
.analysis-highlights dd { margin: .2rem 0 0; color: var(--teal-dark); font-size: .85rem; font-weight: 850; }

.ecg-window-section { margin-top: var(--space-4); }
.ecg-window-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.ecg-window-table-wrap { margin-top: .75rem; overflow-x: auto; scrollbar-width: thin; }
.ecg-window-table-wrap:focus-visible { outline: .14rem solid var(--teal); outline-offset: .2rem; }
.ecg-window-table { width: 100%; min-width: 46rem; }
.ecg-window-table th,
.ecg-window-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ecg-window-table th { color: var(--teal-dark); background: #e4efec; font-size: .7rem; }
.ecg-window-table td { color: var(--text); font-size: .73rem; }
.ecg-window-table td:first-child { color: var(--ink); font-weight: 800; }

.ecg-evidence { margin: var(--space-4) 0 0; overflow: hidden; background: #f6faf8; border-radius: var(--radius-sm); }
.ecg-evidence-head { display: grid; grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.25fr); gap: var(--space-4); align-items: end; padding: .9rem 1rem; }
.ecg-evidence-head dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: 0; }
.ecg-evidence-head dl > div { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: .5rem; }
.ecg-evidence-head dt { color: var(--muted); font-size: .65rem; }
.ecg-evidence-head dd { margin: 0; color: var(--ink); font-size: .7rem; font-weight: 750; }
.ecg-paper { overflow: hidden; background: #f8fcfb; }
.ecg-paper svg { width: 100%; height: auto; aspect-ratio: 6 / 1; }
.ecg-evidence figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: .55rem 1rem; color: var(--muted); background: #e5efec; font-size: .65rem; }
.ecg-evidence figcaption span:last-child { margin-left: auto; color: var(--teal-dark); font-weight: 800; }

.report-trace { display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--space-4) 0 0; border: 1px solid var(--line); }
.report-trace div { padding: .65rem .75rem; }
.report-trace div + div { border-left: 1px solid var(--line); }
.report-trace div:nth-child(4) { border-left: 0; }
.report-trace div:nth-child(n+4) { border-top: 1px solid var(--line); }
.report-trace dt { color: var(--teal); font-size: .68rem; font-weight: 800; }
.report-trace dd { margin: .2rem 0 0; color: var(--text); font-size: .72rem; font-weight: 700; line-height: 1.35; }

.material-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.material-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .6rem .9rem;
  color: var(--ink);
  background: var(--cyan-light);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}
.material-footer a.primary { color: var(--white); background: var(--teal); }
.material-footer a:hover { color: var(--white); background: var(--ink); }

.mobile-material-nav { display: none; }
.mobile-read-progress { position: absolute; right: 0; bottom: 0; left: 0; height: .18rem; overflow: hidden; pointer-events: none; }
.mobile-read-progress i { display: block; width: 100%; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.mobile-material-select { position: relative; flex: 1 1 auto; min-width: 0; }
.mobile-material-select select {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem 2rem .55rem .7rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 750 .82rem/1.2 var(--sans);
}
.mobile-view-switch { display: flex; flex: 0 0 auto; gap: .2rem; padding: .2rem; background: #dfe9e6; border-radius: var(--radius-sm); }
.mobile-view-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .45rem .65rem;
  color: var(--ink);
  border-radius: .35rem;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}
.mobile-view-switch a[aria-current="page"] { color: var(--white); background: var(--teal); }
.mobile-print {
  flex: 0 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  color: var(--white);
  background: var(--teal-dark);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Materials information architecture v3 ---------------------------------- */
.medical-nav-link {
  grid-template-columns: 2rem minmax(0, 1fr) !important;
  margin-top: .65rem;
  border-top: 1px solid #417579;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}
.medical-nav-link b { color: var(--lime); }

.hub-copy { align-self: center; }
.hub-kicker {
  max-width: none !important;
  margin: 0 0 var(--space-3) !important;
  color: var(--cyan) !important;
  font-weight: 800;
}
.hub-signal.hub-system-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .45rem;
  align-content: center;
  min-width: 0;
  min-height: 13rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid #3c666a;
}
.hub-signal::before {
  content: "";
  position: absolute;
  top: 44%;
  right: 0;
  left: 0;
  height: .18rem;
  background: #315a5e;
}
.hub-signal i {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  margin: auto;
  background: var(--ink);
  border: .18rem solid var(--cyan);
  border-radius: 50%;
}
.hub-signal i:nth-child(2n) { border-color: var(--lime); transform: translateY(-1.25rem); }
.hub-signal i:nth-child(3n) { border-color: var(--coral); transform: translateY(.8rem); }
.hub-signal p {
  grid-column: 1 / -1;
  align-self: end;
  max-width: 45ch;
  margin: 1.75rem 0 0;
  color: #bdd2d3;
  font-size: .9rem;
}

.hub-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hub-item { grid-column: span 6; }
.hub-item:nth-child(3),
.hub-item:nth-child(6) { grid-column: span 7; }
.hub-item:nth-child(4),
.hub-item:nth-child(5) { grid-column: span 5; }
.hub-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: .25rem;
  background: var(--visual-accent, var(--teal));
}
.hub-medical-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  background: var(--teal-dark);
  border-radius: var(--radius-md);
}
.hub-medical-callout span { color: var(--cyan); font: 800 .7rem/1 var(--mono); letter-spacing: .08em; }
.hub-medical-callout h3 { margin-top: .65rem; color: var(--white); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.hub-medical-callout p { max-width: 70ch; margin: .65rem 0 0; color: #c5d9da; }
.hub-medical-callout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--radius-sm);
  font-weight: 850;
  text-decoration: none;
}
.delivery-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.delivery-ledger li { padding: 1rem; color: var(--ink); font-weight: 750; }
.delivery-ledger li:nth-child(n+4) { border-top: 1px solid var(--line); }
.delivery-ledger li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.delivery-ledger b { margin-right: .6rem; color: var(--teal); font: 850 .72rem/1 var(--mono); }

.scene-diagram.scene-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  min-width: 0;
  min-height: 11rem;
  margin: 0;
  padding: 1.4rem 0;
}
.scene-diagram::before {
  content: "";
  position: absolute;
  top: 50%;
  right: .4rem;
  left: .4rem;
  height: .18rem;
  background: #426a6e;
}
.scene-diagram span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(3.4rem, 7cqi, 4.8rem);
  aspect-ratio: 1;
  padding: .35rem;
  color: var(--white);
  background: var(--ink);
  border: .16rem solid var(--visual-accent, var(--cyan));
  border-radius: 50%;
  font-size: clamp(.62rem, 1.25cqi, .76rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.scene-diagram span:nth-child(2n) { transform: translateY(-1.3rem); }
.scene-diagram span:nth-child(3n) { transform: translateY(1rem); }

.report-page-index {
  position: sticky;
  z-index: 18;
  top: var(--report-index-top);
  display: flex;
  gap: .35rem;
  width: min(100%, 72rem);
  margin: 0 auto .7rem;
  padding: .35rem;
  background: #dfe9e6;
  border-radius: var(--radius-sm);
}
.report-page-index a,
.report-page-index button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .45rem .55rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: .35rem;
  font: 800 .76rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.report-page-index a:hover,
.report-page-index button:hover { color: var(--white); background: var(--teal); }
.report-page-index a:focus-visible,
.report-page-index button:focus-visible { outline: .13rem solid var(--teal); outline-offset: .12rem; box-shadow: none; }

.report-timeline {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 5%;
  min-width: 34rem;
  height: 13rem;
  padding: 2rem 1.5rem 1.25rem;
  background:
    linear-gradient(to bottom, transparent 24%, #d8e4e1 25%, transparent 26%, transparent 49%, #d8e4e1 50%, transparent 51%, transparent 74%, #d8e4e1 75%, transparent 76%),
    #f5faf8;
}
.report-timeline::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  left: 1.5rem;
  height: .18rem;
  background: var(--teal-dark);
}
.report-timeline i {
  position: relative;
  z-index: 1;
  display: block;
  width: 12%;
  height: 58%;
  background: var(--visual-accent, var(--teal));
  border-radius: .3rem .3rem 0 0;
}
.report-timeline i:nth-child(2) { height: 83%; }
.report-timeline i:nth-child(3) { height: 46%; }
.report-timeline i:nth-child(4) { height: 71%; }
.report-timeline i:nth-child(5) { height: 37%; }
.sleep-timeline i:nth-child(2), .sleep-timeline i:nth-child(4) { background: var(--blue); }
.stress-timeline i { width: 2.2rem; border-radius: 50% 50% .25rem .25rem; }
.sport-timeline i { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.shift-timeline i:nth-child(odd) { transform: translateY(-1rem); }
.altitude-timeline i { border-radius: 50% 50% 0 0; }
.heat-timeline i:nth-child(2), .heat-timeline i:nth-child(3) { background: var(--coral); }
.lifestyle-timeline i { width: 1.5rem; border-radius: 1rem 1rem 0 0; }
.research-timeline i { background: #6e72b6; border-radius: .15rem; }

.medical-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
  gap: var(--space-6);
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
}
.medical-hero > div > span { color: var(--cyan); font: 800 .72rem/1 var(--mono); letter-spacing: .08em; }
.medical-hero h2 { margin-top: var(--space-3); color: var(--white); font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.medical-hero p { max-width: 58ch; margin: 1rem 0 0; color: #c1d5d6; }
.medical-hero dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid #416b6f; }
.medical-hero dl div { padding: 1rem .6rem; }
.medical-hero dl div + div { border-left: 1px solid #416b6f; }
.medical-hero dt { color: var(--lime); font-size: 2rem; font-weight: 850; }
.medical-hero dd { margin: .2rem 0 0; color: #bdd2d3; font-size: .72rem; }
.medical-solution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-6);
  margin-top: var(--space-7);
  border-top: 1px solid var(--line);
}
.medical-solution-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.medical-solution-list b { color: var(--ink); font-size: 1.15rem; }
.medical-solution-list p { grid-column: 1 / -1; max-width: 62ch; margin: .3rem 0; color: var(--muted); }
.medical-solution-list span { color: var(--teal-dark); font-size: .76rem; font-weight: 750; }
.medical-solution-list a { grid-column: 2; grid-row: 1; color: var(--teal); font-size: .8rem; font-weight: 850; text-decoration: none; }
.medical-solution-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2rem; }
.medical-consult-dialog {
  width: min(47rem, calc(100% - 2rem));
  max-height: min(88dvh, 52rem);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 1.5rem 5rem rgba(4, 35, 40, .3);
}
.medical-consult-dialog::backdrop { background: rgba(3, 29, 34, .68); }
.medical-consult-shell { padding: clamp(1.25rem, 4vw, 2.4rem); }
.medical-consult-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.medical-consult-head span { color: var(--teal); font: 850 .7rem/1 var(--mono); letter-spacing: .08em; }
.medical-consult-head h2 { margin-top: .6rem; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; }
.medical-consult-head form { margin: 0; }
.medical-consult-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.medical-consult-close:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }
.medical-consult-summary { max-width: 65ch; margin: 1.25rem 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.medical-consult-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(15rem, .85fr); gap: 1rem; }
.medical-consult-grid dl { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); }
.medical-consult-grid dl div { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: 1rem; padding: .9rem 1rem; }
.medical-consult-grid dl div + div { border-top: 1px solid var(--line); }
.medical-consult-grid dt { color: var(--teal); font-size: .72rem; font-weight: 850; }
.medical-consult-grid dd { margin: 0; font-size: .86rem; font-weight: 700; line-height: 1.5; }
.medical-consult-grid > section { padding: 1.1rem; color: var(--white); background: var(--teal-dark); border-radius: var(--radius-md); }
.medical-consult-grid > section > span { color: var(--cyan); font: 850 .66rem/1 var(--mono); letter-spacing: .08em; }
.medical-consult-grid h3 { margin-top: .55rem; color: var(--white); font-size: 1.15rem; }
.medical-consult-grid ol { display: grid; gap: .65rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.medical-consult-grid li { display: grid; grid-template-columns: 2rem 1fr; gap: .55rem; align-items: start; color: #c6d8d9; font-size: .78rem; line-height: 1.5; }
.medical-consult-grid li b { color: var(--lime); font: 850 .7rem/1.5 var(--mono); }
.medical-consult-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.medical-consult-actions button,
.medical-consult-actions a { min-height: 2.8rem; padding: .8rem 1rem; border-radius: .55rem; font-size: .8rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.medical-consult-actions button { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.medical-consult-actions a { color: var(--white); background: var(--teal); border: 1px solid var(--teal); }
.medical-consult-actions button:hover { border-color: var(--teal); }
.medical-consult-actions a:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.medical-delivery {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: var(--space-6);
  align-items: start;
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.medical-delivery h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.medical-delivery p { color: var(--muted); }
.medical-delivery ol { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.medical-delivery li { padding: 1rem; color: var(--ink); font-weight: 750; }
.medical-delivery li:nth-child(n+3) { border-top: 1px solid var(--line); }
.medical-delivery li:nth-child(even) { border-left: 1px solid var(--line); }
.medical-delivery li b { margin-right: .6rem; color: var(--teal); font: 850 .72rem/1 var(--mono); }

/* The materials area can be much narrower than the viewport while the sidebar
   is visible. Component changes therefore follow the content container. */
@media screen {
  @container materials (max-width: 66rem) {
    .hub-hero { grid-template-columns: 1fr; gap: clamp(1.5rem, 4cqi, 3rem); align-items: start; }
    .hub-hero h2 { max-width: 14ch; font-size: clamp(3rem, 6cqi, 4.5rem); }
    .hub-visual-column,
    .hub-system-map { width: 100%; min-width: 0; }
  }

  @container materials (max-width: 58rem) {
    .material-hero { grid-template-areas: "copy" "visual" "config"; grid-template-columns: 1fr; }
    .scene-figure { min-height: 12rem; }
    .hero-config { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .workflow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .fact:nth-child(4) { border-top: 1px solid var(--line); }
    .product-vector-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .medical-hero { grid-template-columns: 1fr; align-items: start; }
    .medical-hero dl { max-width: 35rem; }
  }

  @container materials (max-width: 52rem) {
    .split-copy,
    .deliverable-layout,
    .report-grid { grid-template-columns: 1fr; }
    .scenario-algorithm { grid-template-columns: 1fr; }
    .algorithm-pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .report-meta,
    .report-summary,
    .report-trace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-trace div:nth-child(4) { border-left: 1px solid var(--line); }
    .report-trace div:nth-child(odd) { border-left: 0; }
    .report-trace div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .report-meta div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .report-meta div:nth-child(4) { border-top: 1px solid var(--line); }
    .event-table { min-width: 42rem; }
    .ecg-evidence-head { grid-template-columns: 1fr; align-items: start; }
    .hub-medical-callout,
    .medical-delivery { grid-template-columns: 1fr; gap: var(--space-4); }
    .delivery-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .delivery-ledger li:nth-child(n) { border-left: 0; border-top: 0; }
    .delivery-ledger li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .delivery-ledger li:nth-child(even) { border-left: 1px solid var(--line); }
    .report-figure { overflow-x: auto; }
  }

  @container materials (max-width: 44rem) {
    .hub-grid { grid-template-columns: 1fr; }
    .hub-item:nth-child(n) { grid-column: 1 / -1; }
    .hub-heading { align-items: flex-start; flex-direction: column; }
    .workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .recommendations { grid-template-columns: 1fr; }
    .ecg-analysis-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .algorithm-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .medical-solution-list { grid-template-columns: 1fr; }
  }

  @container materials (max-width: 28rem) {
    .hero-config,
    .workflow-list,
    .deliverable-list,
    .fact-row,
    .report-meta,
    .report-summary,
    .report-trace { grid-template-columns: 1fr; }
    .workflow-list li { min-height: 0; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
    .report-trace div:nth-child(n) { border-left: 0; }
    .report-trace div:nth-child(n+2) { border-top: 1px solid var(--line); }
    .report-meta div:nth-child(n) { border-left: 0; }
    .report-meta div:nth-child(n+2) { border-top: 1px solid var(--line); }
    .scene-figure .meta-glyph { width: min(100%, 10rem); }
    .conclusion-box { grid-template-columns: 1fr; }
    .algorithm-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ecg-evidence-head dl { grid-template-columns: 1fr; }
    .material-footer { align-items: stretch; flex-direction: column; }
    .material-footer a { justify-content: center; }
    .delivery-ledger,
    .medical-hero dl,
    .medical-delivery ol { grid-template-columns: 1fr; }
    .delivery-ledger li:nth-child(n),
    .medical-hero dl div:nth-child(n),
    .medical-delivery li:nth-child(n) { border-left: 0; }
    .delivery-ledger li:nth-child(n+2),
    .medical-hero dl div:nth-child(n+2),
    .medical-delivery li:nth-child(n+2) { border-top: 1px solid var(--line); }
  }
}

@media screen and (max-width: 68rem) {
  :root {
    --report-index-top: 4.25rem;
    --report-scroll-offset: 8.25rem;
  }
  .materials-header {
    position: relative;
    min-height: 4rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .materials-brand small, .header-title, .header-action.print-action { display: none; }
  .mobile-material-nav {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem max(1rem, env(safe-area-inset-right)) .55rem max(1rem, env(safe-area-inset-left));
    background: rgba(238, 244, 242, .98);
    border-bottom: 1px solid var(--line);
  }
  .materials-shell { grid-template-columns: 1fr; min-height: calc(100vh - 4rem); min-height: calc(100dvh - 4rem); }
  .materials-sidebar { display: none; }
  .materials-main {
    padding-block: clamp(1rem, 3vw, 2rem);
    padding-left: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .material-toolbar { display: none; }
}

@media screen and (max-width: 52rem) {
  .materials-main {
    padding-block: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .hub-hero { min-height: auto; padding: 2rem; }
  .material-hero { gap: 2rem; }
  .scene-figure { min-height: 10rem; }
  .scene-figure .meta-glyph { width: min(100%, 12rem); }
  .split-copy, .deliverable-layout, .report-grid { grid-template-columns: 1fr; }
  .workflow-list { grid-template-columns: repeat(2, 1fr); }
  .report-meta, .report-summary { grid-template-columns: repeat(2, 1fr); }
  .report-trace { grid-template-columns: repeat(2, 1fr); }
  .report-trace div:nth-child(4) { border-left: 1px solid var(--line); }
  .report-trace div:nth-child(odd) { border-left: 0; }
  .report-trace div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .report-meta div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .report-meta div:nth-child(4) { border-top: 1px solid var(--line); }
  .recommendations { grid-template-columns: 1fr; }
  .event-table { min-width: 42rem; }
  .config-table-wrap::before,
  .table-scroll::before,
  .ecg-window-table-wrap::before {
    content: "横向滑动查看完整内容 →";
    position: sticky;
    z-index: 2;
    left: 0;
    display: block;
    width: max-content;
    margin-bottom: .35rem;
    padding: .28rem .5rem;
    color: var(--teal-dark);
    background: var(--lime-light);
    border-radius: .3rem;
    font-size: .7rem;
    font-weight: 800;
  }
  .config-table td:first-child,
  .event-table th:first-child,
  .event-table td:first-child,
  .ecg-window-table td:first-child { position: sticky; z-index: 1; left: 0; background: var(--white); }
  .config-table th:first-child,
  .event-table th:first-child,
  .ecg-window-table th:first-child { background: #e4efec; }
  .hub-medical-callout,
  .medical-delivery { grid-template-columns: 1fr; gap: 1.25rem; }
  .medical-hero { grid-template-columns: 1fr; }
  .medical-solution-list { grid-template-columns: 1fr; }
  .report-page-index {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .report-page-index a,
  .report-page-index button { flex: 0 0 auto; min-width: 7.5rem; }
}

@media screen and (max-width: 42rem) {
  .medical-consult-grid { grid-template-columns: 1fr; }
  .medical-consult-grid dl div { grid-template-columns: 1fr; gap: .35rem; }
  .medical-consult-actions { align-items: stretch; flex-direction: column-reverse; }
  .medical-consult-actions button,
  .medical-consult-actions a { display: grid; place-items: center; width: 100%; text-align: center; }
}

@media screen and (max-width: 36rem) {
  :root {
    --report-index-top: 7.25rem;
    --report-scroll-offset: 11.25rem;
  }
  .mobile-material-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .mobile-material-select { grid-column: 1 / -1; }
  .mobile-view-switch { grid-column: 1; }
  .mobile-print { grid-column: 2; }
  .materials-header { flex-wrap: nowrap; gap: .6rem; }
  .materials-brand strong { font-size: .95rem; }
  .header-actions { flex: 0 0 auto; margin-left: auto; }
  .header-action { min-height: 2.75rem; padding-inline: .7rem; font-size: .8rem; }
  .header-action.primary { font-size: 0; }
  .header-action.primary::after { content: "产品册"; font-size: .78rem; }
  .hub-hero h2 { font-size: 2.5rem; }
  .hub-heading { align-items: flex-start; flex-direction: column; }
  .hub-item { grid-template-columns: 2.2rem 1fr; min-height: 10rem; padding: 1rem; }
  .hub-item-glyph { width: 4rem; height: 4rem; }
  .material-hero { gap: 1.5rem; padding: 1.5rem; }
  .material-hero h2 { font-size: 2.35rem; }
  .scene-figure .meta-glyph { width: min(100%, 10rem); }
  .hero-config { padding: 1rem; }
  .fact-row, .workflow-list, .deliverable-list, .report-meta, .report-summary, .report-trace { grid-template-columns: 1fr; }
  .workflow-list li { min-height: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .report-trace div:nth-child(n) { border-left: 0; }
  .report-trace div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .report-meta div:nth-child(n) { border-left: 0; }
  .report-meta div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .report-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .report-head > div:first-child { grid-column: 1; }
  .report-scene-mark { grid-column: 2; width: 2.75rem; height: 2.75rem; }
  .report-code { grid-column: 1 / -1; }
  .report-code { text-align: left; }
  .report-page { padding: 1rem; }
  .ecg-metric-list > div { grid-template-columns: minmax(0, 1fr) minmax(5.25rem, auto); padding-inline: .7rem; }
  .scenario-algorithm-copy,
  .scenario-algorithm-result { padding: 1rem; }
  .algorithm-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecg-evidence-head { padding: .8rem; }
  .ecg-evidence-head dl { grid-template-columns: 1fr; }
  .ecg-evidence figcaption span:last-child { width: 100%; margin-left: 0; }
  .conclusion-box { grid-template-columns: 1fr; }
  .material-footer { align-items: stretch; flex-direction: column; }
  .material-footer a { justify-content: center; }
  .hub-signal.hub-system-map { min-height: 10rem; }
  .scene-diagram.scene-figure { min-height: 9rem; padding-inline: 0; }
  .scene-diagram span { width: 3.2rem; font-size: .58rem; }
  .delivery-ledger,
  .medical-hero dl,
  .medical-delivery ol { grid-template-columns: 1fr; }
  .delivery-ledger li:nth-child(n),
  .medical-hero dl div:nth-child(n),
  .medical-delivery li:nth-child(n) { border-left: 0; }
  .delivery-ledger li:nth-child(n+2),
  .medical-hero dl div:nth-child(n+2),
  .medical-delivery li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .medical-solution-list article { grid-template-columns: 1fr; }
  .medical-solution-list a { grid-column: 1; grid-row: auto; margin-top: .35rem; }
}

@media screen and (max-height: 51.25rem) and (min-width: 52.01rem) {
  :root { --materials-header-height: 4.25rem; }
  .materials-header { padding-block: .5rem; }
  .materials-sidebar { padding: 1rem .8rem; }
  .sidebar-intro { padding-bottom: 1rem; }
  .sidebar-intro h1 { margin-top: .5rem; font-size: 1.4rem; }
  .sidebar-intro p { margin-top: .45rem; font-size: .78rem; }
  .scene-nav { gap: .2rem; margin-top: 1rem; }
  .scene-nav a { min-height: 2.75rem; padding: .35rem .55rem; }
  .scene-nav-icon { width: 1.65rem; height: 1.65rem; }
  .sidebar-foot { margin-top: 1rem; padding-top: 1rem; }
  .materials-main { padding-block: 1.25rem; }
  .hub-hero { min-height: 17rem; padding-block: 2rem; }
  .hub-heading { margin-top: 2rem; }
  .material-hero { gap: 2rem; padding-block: 2rem; }
  .scene-figure { min-height: 10rem; }
  .scene-figure .meta-glyph { width: min(100%, 8.5rem); }
}

@media screen and (pointer: coarse) {
  .scene-nav a,
  .hub-links a,
  .view-switch a,
  .material-footer a { min-height: 3rem; }
}

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

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { color: #000; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .material-view { animation: none !important; opacity: 1 !important; transform: none !important; }
  .materials-header,
  .materials-sidebar,
  .mobile-material-nav,
  .material-toolbar,
  .report-page-index,
  .material-footer,
  .medical-consult-dialog,
  .skip-link,
  .material-read-progress,
  .sr-only { display: none !important; }
  .materials-shell { display: block; min-height: 0; background: #fff; }
  .materials-main { padding: 0; }
  .js .material-view { display: none !important; }
  .js .material-view.is-active { display: block !important; }
  .hub-hero,
  .material-hero { border-radius: 0; }
  .content-section { margin-top: 10mm; }
  .material-hero,
  .fact-row,
  .split-copy,
  .config-table-wrap,
  .workflow-list,
  .deliverable-layout { break-inside: avoid; page-break-inside: avoid; }
  .report-trace { break-inside: avoid; page-break-inside: avoid; }
  .report-document { border-radius: 0; }
  .report-page + .report-page { border-top: 0; }
  .table-scroll { overflow: visible; }
  .report-figure { overflow: visible; }
  .report-chart { width: 100%; min-width: 0 !important; height: auto; aspect-ratio: 720 / 220; }
  .report-grid { grid-template-columns: 1.35fr .65fr; }
  .report-meta,
  .report-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-trace { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-page { min-height: 0; padding: 8mm; break-after: page; page-break-after: always; }
  .report-page:last-child { break-after: auto; page-break-after: auto; }
  .report-timeline { min-width: 0; height: 42mm; }
  .report-figure { overflow: visible; }
  .scene-diagram.scene-figure { min-height: 34mm; }
  .medical-solution-list article,
  .medical-delivery,
  .hub-medical-callout { break-inside: avoid; page-break-inside: avoid; }
  .report-metrics-page,
  .report-specialty-page { padding: 6mm 7mm; }
  .report-metrics-page .report-head,
  .report-specialty-page .report-head { gap: 4mm; padding-bottom: 3mm; }
  .report-metrics-page .report-head h2,
  .report-specialty-page .report-head h2 { font-size: 17pt; }
  .report-metrics-page .report-head p,
  .report-specialty-page .report-head p { margin-top: 1mm; font-size: 8pt; }
  .report-metrics-page .report-scene-mark,
  .report-specialty-page .report-scene-mark { width: 10mm; height: 10mm; }
  .ecg-analysis-heading { gap: 5mm; margin-top: 3mm; }
  .ecg-analysis-heading h3,
  .ecg-window-heading h3,
  .ecg-evidence-head h3 { margin-top: 1mm; font-size: 13pt; }
  .ecg-analysis-heading p { max-width: 88mm; font-size: 8.2pt; line-height: 1.45; }
  .ecg-analysis-heading span,
  .scenario-algorithm-copy > span,
  .ecg-window-heading span,
  .ecg-evidence-head > div > span { font-size: 6.8pt; }
  .ecg-metric-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; margin-top: 4mm; }
  .ecg-metric-group,
  .scenario-algorithm,
  .ecg-window-section,
  .ecg-evidence { break-inside: avoid; page-break-inside: avoid; }
  .ecg-metric-group > header { padding: 3mm; }
  .ecg-metric-group > header span { font-size: 6.5pt; }
  .ecg-metric-group h4 { margin-top: 1mm; font-size: 9.5pt; }
  .ecg-metric-list > div { grid-template-columns: minmax(0, 1fr) minmax(22mm, auto); gap: 2mm; min-height: 12mm; padding: 2.2mm 3mm; }
  .ecg-metric-list dt { font-size: 7.5pt; line-height: 1.35; }
  .ecg-metric-list b { font-size: 8.1pt; line-height: 1.3; }
  .ecg-metric-list small { margin-top: .6mm; font-size: 6.4pt; line-height: 1.25; }
  .report-metrics-page .report-scope,
  .report-specialty-page .report-scope { margin-top: 4mm; padding-top: 2.5mm; font-size: 7pt; }
  .scenario-algorithm { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); margin-top: 4mm; }
  .scenario-algorithm-copy,
  .scenario-algorithm-result { padding: 4mm; }
  .scenario-algorithm-copy h3 { margin-top: 1mm; font-size: 14pt; }
  .scenario-algorithm-copy > p { margin-top: 2mm; font-size: 8pt; line-height: 1.45; }
  .algorithm-pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2mm; margin-top: 3mm; }
  .algorithm-pipeline li { padding: 2mm; }
  .algorithm-pipeline b { font-size: 6.3pt; }
  .algorithm-pipeline span { margin-top: 1mm; font-size: 6.4pt; line-height: 1.3; }
  .scenario-algorithm-result h4 { font-size: 10pt; }
  .scenario-algorithm-result ul { margin-top: 2mm; padding-left: 4mm; }
  .scenario-algorithm-result li { font-size: 7.2pt; line-height: 1.4; }
  .scenario-algorithm-result li + li { margin-top: 1.2mm; }
  .analysis-highlights { gap: 1.3mm; margin-top: 2.5mm; }
  .analysis-highlights > div { padding: 1.8mm 2mm; }
  .analysis-highlights dt { font-size: 6.2pt; }
  .analysis-highlights dd { margin-top: .5mm; font-size: 8pt; }
  .ecg-window-section { margin-top: 4mm; }
  .ecg-window-table-wrap { margin-top: 2mm; overflow: visible; }
  .ecg-window-table { min-width: 0; table-layout: fixed; }
  .ecg-window-table th,
  .ecg-window-table td { padding: 2mm; overflow-wrap: anywhere; }
  .ecg-window-table th { font-size: 7pt; }
  .ecg-window-table td { font-size: 7.4pt; line-height: 1.35; }
  .ecg-evidence { margin-top: 4mm; }
  .ecg-evidence-head { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 4mm; padding: 2.8mm 3mm; }
  .ecg-evidence-head dl { gap: 1.2mm 2.5mm; }
  .ecg-evidence-head dl > div { grid-template-columns: 18mm minmax(0, 1fr); gap: 1.2mm; }
  .ecg-evidence-head dt,
  .ecg-evidence-head dd { font-size: 6.7pt; }
  .ecg-paper svg { max-height: 38mm; }
  .ecg-evidence figcaption { gap: 1.2mm 3mm; padding: 1.8mm 3mm; font-size: 6.5pt; }
  .report-demo-banner { border-radius: 0; }
  a { text-decoration: none; }
}
