:root {
  color-scheme: light;
  --navy-950: #061c2c;
  --navy-900: #08253b;
  --navy-800: #103b57;
  --blue-600: #1889c6;
  --blue-400: #54bae4;
  --teal-500: #2ab8ae;
  --teal-300: #72ddd5;
  --gold-500: #e69a44;
  --paper: #f4f8f9;
  --white: #ffffff;
  --ink: #102c40;
  --muted: #627985;
  --line: #d7e4e8;
  --shadow: 0 30px 80px rgba(0, 23, 42, 0.22);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy-950);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

body {
  background:
    radial-gradient(circle at 75% 12%, rgba(61, 184, 210, 0.18), transparent 29rem),
    linear-gradient(135deg, #061b2b 0%, #0a3047 58%, #0b4150 100%);
}

.demo-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 4vw, 68px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(108, 220, 213, 0.85);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.05);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.brand-mark i:nth-child(1) { left: 16px; top: -4px; }
.brand-mark i:nth-child(2) { right: -3px; top: 22px; background: var(--teal-300); }
.brand-mark i:nth-child(3) { left: 4px; bottom: 1px; background: var(--white); }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand strong em {
  color: var(--teal-300);
  font-style: normal;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.concept-chip {
  padding: 9px 13px;
  color: #b9f0eb;
  border: 1px solid rgba(114, 221, 213, 0.3);
  border-radius: 999px;
  background: rgba(25, 123, 134, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.text-button {
  padding: 9px 2px;
  color: rgba(255, 255, 255, 0.78);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.experience {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(620px, 1.45fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding: clamp(38px, 5vw, 76px) clamp(24px, 4vw, 68px);
}

.story-panel {
  color: var(--white);
}

.story-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(48px, 8vh, 92px);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-copy h1 {
  max-width: 630px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 4.8vw, 5.1rem);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 590px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.65;
}

.story-question {
  max-width: 560px;
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--teal-300);
  background: rgba(255, 255, 255, 0.055);
}

.story-question span {
  color: var(--teal-300);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-question p {
  margin: 7px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 750;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--navy-950);
  border: 1px solid var(--teal-300);
  background: var(--teal-300);
  box-shadow: 0 12px 34px rgba(54, 197, 190, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #95ebe5;
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.icon-button {
  width: 48px;
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.is-hidden {
  display: none !important;
}

.scope-note {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.79rem;
  line-height: 1.6;
}

.product-stage {
  position: relative;
  min-width: 0;
}

.stage-glow {
  position: absolute;
  inset: 10% -8% -8% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 204, 208, 0.18), transparent 68%);
  filter: blur(22px);
}

.browser-frame {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.browser-bar {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  background: #e8f0f2;
  border-bottom: 1px solid var(--line);
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bdced4;
}

.browser-title {
  margin-left: 8px;
  color: #687f88;
  font-size: 0.76rem;
}

.fiction-label {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #81521d;
  background: #fff0db;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.registry-app {
  min-height: 615px;
  display: grid;
  grid-template-columns: 190px 1fr;
}

.app-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: #eff8fa;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  font-size: 0.76rem;
}

.mini-orbit {
  width: 28px;
  height: 28px;
  border: 2px solid var(--blue-600);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(42, 184, 174, 0.14);
}

.nav-item {
  padding: 10px 11px;
  color: #456171;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 0.77rem;
  font-weight: 700;
}

.nav-item.is-active {
  color: #11587e;
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--blue-400), 0 5px 15px rgba(16, 72, 99, 0.06);
}

.program-card {
  margin-top: auto;
  padding: 13px;
  border: 1px solid #cfe0e5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.program-card span,
.program-card strong,
.program-card small {
  display: block;
}

.program-card span {
  color: #4186a4;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-card strong {
  margin-top: 5px;
  font-size: 0.68rem;
  line-height: 1.35;
}

.program-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.61rem;
}

.app-content {
  min-width: 0;
  padding: 30px;
}

.app-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.app-heading h2 {
  margin: 0;
  color: #123953;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.role-pill,
.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #256a70;
  background: #e0f5f1;
  font-size: 0.67rem;
  font-weight: 800;
}

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

.metric-card {
  position: relative;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue-400);
}

.metric-card.accent-teal::after { background: var(--teal-500); }
.metric-card.accent-gold::after { background: var(--gold-500); }

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 8px;
  color: #123d59;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.metric-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.episode-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.episode-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.episode-header h3 {
  margin: 0;
  color: #123d59;
  font-size: 1.05rem;
}

.episode-journey {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 5px;
  margin-top: 23px;
}

.journey-step {
  min-width: 62px;
  text-align: center;
}

.journey-step b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  color: #78909b;
  border: 2px solid #cbd9de;
  border-radius: 50%;
  background: var(--white);
  font-size: 0.69rem;
}

.journey-step span,
.journey-step small {
  display: block;
}

.journey-step span {
  color: #3b5868;
  font-size: 0.66rem;
  font-weight: 800;
}

.journey-step small {
  margin-top: 3px;
  color: #83959d;
  font-size: 0.57rem;
}

.journey-step.complete b {
  color: var(--white);
  border-color: var(--teal-500);
  background: var(--teal-500);
}

.journey-step.active b {
  color: #8b581c;
  border-color: var(--gold-500);
  background: #fff2e0;
  box-shadow: 0 0 0 5px rgba(230, 154, 68, 0.13);
}

.journey-line {
  height: 2px;
  margin-top: -27px;
  background: #d6e0e3;
}

.journey-line.complete { background: var(--teal-500); }
.journey-line.active { background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); }

.episode-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #e3eaec;
}

.episode-details span,
.episode-details strong {
  display: block;
}

.app-heading.compact h2 { font-size: 1.78rem; }

.screen-action {
  min-height: 38px;
  margin-top: 13px;
  padding: 0 14px;
  color: var(--white);
  border: 0;
  border-radius: 8px;
  background: #176f99;
  font-size: 0.72rem;
  font-weight: 800;
}

.screen-action:hover,
.screen-action:focus-visible { background: #0e587d; }

.form-layout,
.review-layout,
.export-layout,
.patient-layout,
.implant-layout { display: grid; gap: 14px; margin-top: 22px; }
.form-layout { grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.65fr); }
.review-layout { grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); }
.export-layout { grid-template-columns: minmax(0, 1.25fr) minmax(225px, 0.75fr); }
.patient-layout { grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); align-items: start; }
.implant-layout { grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.6fr); }

.panel,
.form-panel,
.summary-panel,
.review-list,
.review-detail,
.export-panel,
.table-panel,
.phone-card { border: 1px solid var(--line); border-radius: 13px; background: var(--white); }

.form-panel,
.summary-panel,
.review-detail,
.export-panel,
.phone-card { padding: 18px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field span,
.summary-panel dt,
.export-panel dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-value,
.input-surface {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  color: #203f50;
  border: 1px solid #cedde2;
  border-radius: 8px;
  background: #fbfdfd;
  font-size: 0.76rem;
  font-weight: 700;
}

.field-value::after { content: "\2713"; color: var(--teal-500); }
.mini-heading { margin: 0 0 13px; color: #173e56; font-size: 0.9rem; }
.summary-panel dl,
.export-panel dl { margin: 0; }
.summary-panel div,
.export-panel div { padding: 10px 0; border-bottom: 1px solid #e5ecef; }
.summary-panel div:last-child,
.export-panel div:last-child { border-bottom: 0; }
.summary-panel dd,
.export-panel dd { margin: 4px 0 0; color: #274858; font-size: 0.75rem; font-weight: 750; }

.success-strip,
.info-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 13px;
  color: #226b62;
  border: 1px solid #bee9df;
  border-radius: 9px;
  background: #eefaf7;
  font-size: 0.72rem;
  font-weight: 700;
}

.info-strip { color: #2d657f; border-color: #c9e4ef; background: #eff8fc; }
.success-strip b,
.info-strip b { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; color: var(--white); border-radius: 50%; background: var(--teal-500); }

.phone {
  max-width: 242px;
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #102c3e;
  border-radius: 28px;
  background: #f5f6fa;
  box-shadow: 0 18px 36px rgba(12, 46, 65, 0.18);
}

.phone-top { height: 22px; display: flex; align-items: center; justify-content: center; background: #102c3e; }
.phone-top::after { content: ""; width: 58px; height: 7px; border-radius: 999px; background: #071722; }
.phone-body { min-height: 460px; padding: 18px 15px; }
.patient-brand-line { display: flex; align-items: center; gap: 7px; color: #3c5665; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.patient-brand-line i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 60% 35%, var(--teal-300) 0 22%, var(--blue-600) 24% 100%); }
.phone h3 { margin: 18px 0 7px; color: #102f43; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; }
.phone p { margin: 0; color: #6c7f89; font-size: 0.67rem; line-height: 1.5; }
.phone .phone-card { margin-top: 13px; padding: 13px; }
.phone-card span,
.phone-card strong,
.phone-card small { display: block; }
.phone-card span { color: #738791; font-size: 0.59rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.phone-card strong { margin-top: 5px; color: #14384f; font-size: 0.77rem; line-height: 1.4; }
.phone-card small { margin-top: 5px; color: #6c818a; font-size: 0.61rem; line-height: 1.45; }
.phone-action { width: 100%; min-height: 39px; margin-top: 14px; color: var(--white); border: 0; border-radius: 8px; background: #167a94; font-size: 0.7rem; font-weight: 800; }

.consent-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px; border: 1px solid #cfe0e5; border-radius: 8px; background: var(--white); color: #355464; font-size: 0.63rem; line-height: 1.45; }
.consent-check b { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; color: var(--white); border-radius: 4px; background: var(--teal-500); }
.screen-context h3 { margin: 0; color: #123d59; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 500; }
.screen-context p { margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
.question-summary { display: grid; gap: 8px; margin-top: 14px; }
.question-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #d8e3e7; border-radius: 8px; background: var(--white); }
.question-row span { color: #355464; font-size: 0.65rem; font-weight: 750; }
.question-row b { color: #27746d; font-size: 0.64rem; }

.component-list { display: grid; gap: 8px; }
.component-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid #d8e4e8; border-radius: 9px; background: #fbfdfd; }
.component-row span,
.component-row strong,
.component-row small { display: block; }
.component-row span { color: var(--muted); font-size: 0.6rem; text-transform: uppercase; }
.component-row strong { margin-top: 3px; color: #27495a; font-size: 0.7rem; }
.component-row small { color: #5f7782; font-size: 0.62rem; }
.component-row b { color: #25766d; font-size: 0.65rem; }

.recovery-list { display: grid; gap: 9px; margin-top: 14px; }
.recovery-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid #d9e4e7; border-radius: 9px; background: var(--white); }
.recovery-row b:first-child { width: 25px; height: 25px; display: grid; place-items: center; color: var(--white); border-radius: 50%; background: var(--teal-500); font-size: 0.65rem; }
.recovery-row span,
.recovery-row small { display: block; }
.recovery-row span { color: #294c5d; font-size: 0.68rem; font-weight: 800; }
.recovery-row small { margin-top: 2px; color: var(--muted); font-size: 0.59rem; }
.recovery-row > b:last-child { color: #2d6d77; font-size: 0.65rem; }

.review-list { padding: 8px; }
.review-item { width: 100%; padding: 12px; color: inherit; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.review-item.is-selected { background: #edf8fa; box-shadow: inset 3px 0 0 var(--blue-400); }
.review-item span,
.review-item strong,
.review-item small { display: block; }
.review-item span { color: var(--muted); font-size: 0.59rem; text-transform: uppercase; }
.review-item strong { margin-top: 4px; color: #244858; font-size: 0.7rem; }
.review-item small { margin-top: 5px; color: #6c818a; font-size: 0.6rem; }

.provenance-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.provenance-chain div { position: relative; padding: 10px 8px; border: 1px solid #d6e4e8; border-radius: 8px; background: #fbfdfd; text-align: center; }
.provenance-chain div::after { content: "\2192"; position: absolute; right: -8px; top: 50%; color: #8ba0aa; transform: translateY(-50%); }
.provenance-chain div:last-child::after { display: none; }
.provenance-chain span,
.provenance-chain strong { display: block; }
.provenance-chain span { color: var(--muted); font-size: 0.54rem; text-transform: uppercase; }
.provenance-chain strong { margin-top: 4px; color: #244858; font-size: 0.62rem; }

.disposition-box { margin-top: 13px; padding: 12px; border: 1px solid #f0d2ac; border-radius: 9px; background: #fff8ee; }
.disposition-box span,
.disposition-box strong,
.disposition-box small { display: block; }
.disposition-box span { color: #9a672c; font-size: 0.59rem; font-weight: 800; text-transform: uppercase; }
.disposition-box strong { margin-top: 5px; color: #62401a; font-size: 0.76rem; }
.disposition-box small { margin-top: 5px; color: #8a693f; font-size: 0.62rem; line-height: 1.45; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.66rem; }
.data-table th { padding: 10px; color: var(--muted); border-bottom: 1px solid #dbe5e8; text-align: left; font-size: 0.56rem; letter-spacing: 0.05em; text-transform: uppercase; }
.data-table td { padding: 11px 10px; color: #345363; border-bottom: 1px solid #e7edef; font-weight: 650; }
.table-panel { overflow: hidden; }
.table-panel .table-title { padding: 15px 16px 5px; }
.bar-chart { height: 120px; display: flex; align-items: end; gap: 12px; margin-top: 14px; padding: 0 5px 19px; border-bottom: 1px solid #dbe5e8; }
.bar { position: relative; flex: 1; min-width: 22px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--blue-400), #1d7da7); }
.bar:nth-child(2) { background: linear-gradient(180deg, var(--teal-300), var(--teal-500)); }
.bar:nth-child(3) { background: linear-gradient(180deg, #f3bf7d, var(--gold-500)); }
.bar:nth-child(4) { background: linear-gradient(180deg, #7cc5d5, #2a8cad); }
.bar span { position: absolute; bottom: -17px; left: 50%; color: var(--muted); font-size: 0.54rem; transform: translateX(-50%); }
.bar b { position: absolute; top: -17px; left: 50%; color: #2c5061; font-size: 0.56rem; transform: translateX(-50%); }

.close-screen { min-height: 550px; display: grid; place-items: center; padding: 34px; background: radial-gradient(circle at 70% 25%, rgba(82, 191, 203, 0.18), transparent 18rem), linear-gradient(145deg, #0b2a3e, #0e5360); color: var(--white); text-align: center; }
.close-inner { max-width: 620px; }
.close-kicker { color: var(--teal-300); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.close-screen h2 { margin: 15px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.03; letter-spacing: -0.04em; }
.close-screen p { margin: 18px auto 0; max-width: 560px; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; line-height: 1.6; }
.close-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 25px; }
.close-facts div { padding: 15px; border: 1px solid rgba(255,255,255,0.17); border-radius: 10px; background: rgba(255,255,255,0.05); }
.close-facts b,
.close-facts span { display: block; }
.close-facts b { color: var(--teal-300); font-size: 1.3rem; }
.close-facts span { margin-top: 5px; color: rgba(255,255,255,0.68); font-size: 0.64rem; line-height: 1.35; }
.registry-app.is-close { display: block; min-height: 615px; background: #0b2a3e; }
.registry-app.is-close .app-content { padding: 0; }

.screen-dialog { width: min(720px, calc(100% - 36px)); }
.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 22px; }
.screen-grid button { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 14px; color: #274959; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfc; text-align: left; }
.screen-grid button:hover,
.screen-grid button:focus-visible { border-color: var(--blue-400); background: #edf8fb; }
.screen-grid b { color: var(--blue-600); font-size: 0.68rem; }
.screen-grid span { font-size: 0.78rem; font-weight: 750; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 330px; padding: 13px 16px; color: var(--white); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; background: #123d52; box-shadow: 0 18px 45px rgba(0,0,0,0.25); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; font-size: 0.78rem; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.episode-details span {
  color: var(--muted);
  font-size: 0.62rem;
}

.episode-details strong {
  margin-top: 4px;
  color: #244656;
  font-size: 0.67rem;
  line-height: 1.35;
}

.progress-footer {
  padding: 0 clamp(24px, 4vw, 68px) 24px;
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 11.111%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-300), var(--gold-500));
  transition: width 360ms ease;
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

dialog {
  width: min(560px, calc(100% - 36px));
  padding: 36px;
  color: var(--ink);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

dialog::backdrop {
  background: rgba(3, 18, 29, 0.72);
  backdrop-filter: blur(6px);
}

dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

dialog p {
  color: var(--muted);
  line-height: 1.6;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.3rem;
}

@media (max-width: 1120px) {
  .experience {
    grid-template-columns: 1fr;
  }

  .story-meta {
    margin-bottom: 34px;
  }

  .story-copy h1 {
    max-width: 840px;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    padding: 17px 18px;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .concept-chip {
    max-width: 160px;
    text-align: right;
  }

  .experience {
    padding: 28px 18px 42px;
  }

  .story-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .browser-frame {
    min-height: auto;
  }

  .browser-title {
    display: none;
  }

  .registry-app {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .app-nav {
    display: none;
  }

  .app-content {
    padding: 22px 16px;
  }

  .metric-grid,
  .episode-details,
  .form-layout,
  .review-layout,
  .export-layout,
  .patient-layout,
  .implant-layout,
  .close-facts {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .screen-grid { grid-template-columns: 1fr; }
  .component-row { grid-template-columns: 1fr 1fr; }
  .provenance-chain { grid-template-columns: 1fr; }
  .provenance-chain div::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -11px; transform: translateX(-50%); }

  .episode-journey {
    grid-template-columns: 1fr;
    gap: 9px;
    align-items: start;
  }

  .journey-step {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .journey-step b {
    margin: 0;
  }

  .journey-step small {
    margin: 0;
  }

  .journey-line {
    width: 2px;
    height: 14px;
    margin: -6px 0 -4px 13px;
  }

  .footer-copy span:last-child {
    display: none;
  }
}

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