:root {
  color-scheme: light;
  --ink: #17212f;
  --muted: #66768b;
  --panel: #ffffff;
  --line: #d9e3ee;
  --page: #eef3f7;
  --red: #d52c3f;
  --deep-red: #8f172c;
  --blue: #1f78bd;
  --teal: #14847e;
  --amber: #c87a1f;
  --violet: #6f5ac7;
  --shadow: 0 22px 48px rgba(24, 48, 68, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(24, 132, 126, .08), transparent 34%),
    linear-gradient(225deg, rgba(213, 44, 63, .08), transparent 31%),
    var(--page);
}

button,
input,
textarea,
select {
  font: inherit;
}

.model-picker {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
}

.picker-inner {
  width: min(1180px, 100%);
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.picker-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4.7rem);
}

.picker-logos {
  min-width: min(360px, 38vw);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 12px 0;
}

.picker-logos img {
  width: auto;
  max-width: min(48%, 180px);
  max-height: 76px;
  object-fit: contain;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.anatomy-card {
  position: relative;
  min-width: 0;
  min-height: clamp(280px, 33vw, 410px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(18px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(154, 173, 194, .5);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 250, 252, .88)),
    #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.anatomy-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--teal);
}

.anatomy-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(24, 48, 68, .08));
  pointer-events: none;
}

.anatomy-card:hover,
.anatomy-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(20, 132, 126, .42);
  box-shadow: 0 28px 58px rgba(24, 48, 68, .18);
  outline: none;
}

.anatomy-card:disabled {
  cursor: default;
}

.anatomy-card:disabled:hover,
.anatomy-card:disabled:focus-visible {
  transform: none;
  box-shadow: var(--shadow);
}

.anatomy-card-pulmonary::before {
  background: var(--blue);
}

.anatomy-card-renal::before {
  background: var(--violet);
}

.anatomy-card-biliary::before {
  background: var(--amber);
}

.anatomy-card.is-coming {
  color: #536274;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(242, 246, 249, .78)),
    #f8fafc;
}

.card-orbit {
  position: relative;
  z-index: 1;
  width: min(100%, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(154, 173, 194, .45);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(235, 243, 247, .74)),
    #f7fafc;
}

.card-orbit::before,
.card-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(154, 173, 194, .35);
}

.card-orbit::before {
  inset: 17%;
  animation: orbitPulse 3.8s ease-in-out infinite;
}

.card-orbit::after {
  inset: 31%;
  border-top-color: rgba(20, 132, 126, .62);
  border-right-color: rgba(20, 132, 126, .08);
  animation: orbitSweep 8s linear infinite;
}

.organ-mark {
  position: relative;
  z-index: 1;
  display: block;
}

.anatomy-card:nth-child(2) .card-orbit::before,
.anatomy-card:nth-child(2) .card-orbit::after {
  animation-delay: -.8s;
}

.anatomy-card:nth-child(3) .card-orbit::before,
.anatomy-card:nth-child(3) .card-orbit::after {
  animation-delay: -1.6s;
}

.anatomy-card:nth-child(4) .card-orbit::before,
.anatomy-card:nth-child(4) .card-orbit::after {
  animation-delay: -2.4s;
}

.heart-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px 12px 7px 12px;
  background: linear-gradient(145deg, #ff8478, var(--red) 60%, var(--deep-red));
  transform: rotate(45deg);
  box-shadow: 0 14px 26px rgba(213, 44, 63, .25);
  animation: heartBeat 2.1s ease-in-out infinite;
}

.heart-mark::before,
.heart-mark::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: inherit;
}

.heart-mark::before {
  left: -23px;
}

.heart-mark::after {
  top: -23px;
}

.lung-mark {
  width: 84px;
  height: 74px;
  animation: organFloat 4.4s ease-in-out infinite;
}

.lung-mark::before,
.lung-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 58px;
  border: 5px solid var(--blue);
  background: rgba(31, 120, 189, .1);
  transform-origin: bottom center;
}

.lung-mark::before {
  left: 2px;
  border-radius: 28px 18px 32px 24px;
  animation: lungLeftBreath 3s ease-in-out infinite;
}

.lung-mark::after {
  right: 2px;
  border-radius: 18px 28px 24px 32px;
  animation: lungRightBreath 3s ease-in-out infinite;
}

.lung-mark {
  border-top: 5px solid var(--blue);
}

.renal-mark {
  width: 86px;
  height: 72px;
  animation: organFloat 4.8s ease-in-out infinite;
}

.renal-mark::before,
.renal-mark::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 58px;
  top: 7px;
  border-radius: 50% 42% 55% 45%;
  background: linear-gradient(145deg, #a98bdc, var(--violet));
  box-shadow: 0 12px 24px rgba(111, 90, 199, .18);
}

.renal-mark::before {
  left: 6px;
  transform: rotate(18deg);
  animation: renalLeftPulse 3.4s ease-in-out infinite;
}

.renal-mark::after {
  right: 6px;
  transform: rotate(-18deg) scaleX(-1);
  animation: renalRightPulse 3.4s ease-in-out infinite;
}

.biliary-mark {
  width: 88px;
  height: 78px;
  animation: organFloat 4.2s ease-in-out infinite;
}

.biliary-mark::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 9px;
  width: 34px;
  height: 44px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(145deg, #efd36b, var(--amber));
  box-shadow: 0 12px 24px rgba(200, 122, 31, .2);
  animation: biliaryPulse 3.2s ease-in-out infinite;
}

.biliary-mark::after {
  content: "";
  position: absolute;
  left: 49px;
  top: 28px;
  width: 30px;
  height: 34px;
  border-right: 6px solid var(--amber);
  border-bottom: 6px solid var(--amber);
  border-radius: 0 0 20px 0;
  animation: biliaryFlow 2.6s ease-in-out infinite;
}

.card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.card-kicker {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.anatomy-card-pulmonary .card-kicker {
  color: var(--blue);
}

.anatomy-card-renal .card-kicker {
  color: var(--violet);
}

.anatomy-card-biliary .card-kicker {
  color: var(--amber);
}

.card-copy strong {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.card-copy small {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #274455;
  font-size: .78rem;
  font-weight: 850;
  background: rgba(20, 132, 126, .12);
}

.anatomy-card-pulmonary .card-copy small {
  background: rgba(31, 120, 189, .12);
}

.anatomy-card.is-coming .card-copy small {
  color: #5f6570;
  background: rgba(102, 118, 139, .13);
}

.project-credit {
  width: 100%;
  max-width: none;
  margin: clamp(6px, 1.4vw, 14px) auto 0;
  display: grid;
  justify-items: center;
  color: #4b5d70;
  text-align: center;
  line-height: 1.45;
  justify-self: stretch;
}

.project-credit p {
  width: 100%;
  margin-bottom: 7px;
  font-size: clamp(.88rem, 1vw, 1rem);
  font-weight: 750;
  text-align: center;
}

.project-credit small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.dashboard-credit {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 2px 12px 0;
}

.dashboard-shell {
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 32px);
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: clamp(16px, 2vw, 26px);
}

.dashboard-toolbar {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.back-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(154, 173, 194, .62);
  border-radius: var(--radius);
  color: #2e4255;
  font-size: .9rem;
  font-weight: 850;
  background: rgba(255, 255, 255, .86);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(24, 48, 68, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.back-button:hover,
.back-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 132, 126, .42);
  box-shadow: 0 14px 26px rgba(24, 48, 68, .12);
  outline: none;
}

.active-model-chip {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 900;
  background: #183044;
  box-shadow: 0 12px 24px rgba(24, 48, 68, .18);
}

.model-panel,
.controls-panel {
  min-width: 0;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(154, 173, 194, .42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.model-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.controls-panel {
  align-self: stretch;
  padding: clamp(16px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-strip img {
  width: auto;
  max-width: min(49%, 240px);
  max-height: 94px;
  display: block;
  object-fit: contain;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line);
}

.panel-heading.compact {
  padding: 0 0 18px;
  border-bottom: 0;
}

.model-tabs {
  display: flex;
  gap: 8px;
  padding: 14px clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.model-tab {
  flex: 0 1 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #405066;
  font-size: .9rem;
  font-weight: 850;
  background: #f7fafc;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.model-tab:hover,
.model-tab:focus-visible {
  border-color: rgba(20, 132, 126, .45);
  outline: none;
}

.model-tab.is-active {
  color: #ffffff;
  border-color: transparent;
  background: var(--teal);
  box-shadow: 0 12px 22px rgba(20, 132, 126, .16);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.state-pill {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(20, 132, 126, .2);
}

.model-stage {
  position: relative;
  flex: 1;
  min-height: clamp(500px, 68dvh, 820px);
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  overflow: visible;
  background: #ffffff;
}

.scan-grid {
  display: none;
}

.healthy-video-shell {
  position: relative;
  z-index: 2;
  width: min(92%, 560px, 38dvh);
  min-width: 260px;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: none;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  transform: none;
  transition: opacity .35s ease, transform .45s ease;
}

.healthy-video-shell::after {
  display: none;
}

.healthy-heart-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity .22s ease;
  z-index: 0;
}

.healthy-heart-video.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.heart-model {
  display: none;
  position: relative;
  z-index: 1;
  width: min(88%, 820px);
  height: auto;
  max-height: calc(100vh - 190px);
  min-height: 470px;
}

.torso {
  fill: url(#bodyGradient);
  opacity: .24;
  stroke: rgba(95, 80, 79, .2);
  stroke-width: 2;
}

.sternum {
  fill: none;
  stroke: rgba(95, 80, 79, .18);
  stroke-width: 4;
  stroke-linecap: round;
}

.sternum-right {
  stroke-width: 3;
}

.vessel {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artery {
  stroke: url(#arteryGradient);
  stroke-width: 24;
}

.branch,
.coronary {
  stroke-width: 16;
}

.vein {
  stroke: url(#veinGradient);
  stroke-width: 20;
}

.pulmonary-vein,
.pulmonary-vein-left {
  stroke-width: 14;
}

.flow {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 14 36;
  stroke-width: 6;
  animation: flow 1.5s linear infinite;
}

.flow-red {
  stroke: rgba(255, 240, 232, .9);
}

.flow-blue {
  stroke: rgba(224, 244, 255, .94);
  animation-duration: 1.9s;
}

.flow-delay {
  animation-delay: -.45s;
}

.flow-delay-2 {
  animation-delay: -.8s;
}

.heart-group {
  transform-origin: 310px 386px;
  transition: opacity .35s ease, transform .45s ease;
}

.heart-shape {
  fill: url(#heartGradient);
  stroke: rgba(120, 0, 26, .34);
  stroke-width: 4;
}

.septum,
.atrium,
.lv-wall,
.lv-inner {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.septum {
  stroke: rgba(255, 205, 190, .72);
  stroke-width: 6;
}

.atrium {
  stroke: rgba(255, 205, 190, .48);
  stroke-width: 5;
}

.lv-wall {
  stroke: rgba(255, 240, 225, .78);
  stroke-width: 12;
  transition: stroke-width .45s ease, opacity .45s ease;
}

.lv-inner {
  stroke: rgba(120, 0, 26, .48);
  stroke-width: 5;
  opacity: .55;
}

.pressure-rings {
  opacity: 0;
  transition: opacity .35s ease;
}

.pressure-ring {
  fill: none;
  stroke: rgba(213, 44, 63, .36);
  stroke-width: 3;
  transform-origin: 310px 371px;
  animation: pressure 1.8s ease-out infinite;
}

.ring-two {
  animation-delay: .55s;
}

.plaques {
  opacity: 0;
  transition: opacity .35s ease;
}

.plaque {
  fill: #f0cf68;
  stroke: #a86f1f;
  stroke-width: 3;
  filter: url("#glow");
}

.narrowing {
  fill: none;
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 6;
  stroke-linecap: round;
}

.callout {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(118, 139, 160, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 24px rgba(24, 48, 68, .12);
}

.callout span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.callout strong {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.2;
}

.model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.status-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #39485a;
  font-size: .95rem;
  line-height: 1.35;
}

.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(20, 132, 126, .14);
}

.state-options {
  display: grid;
  gap: 10px;
}

.state-button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfd;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.state-button:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 132, 126, .45);
  box-shadow: 0 12px 22px rgba(24, 48, 68, .1);
}

.state-button:focus-visible {
  outline: 3px solid rgba(20, 132, 126, .24);
  outline-offset: 2px;
}

.state-button.is-active {
  color: #ffffff;
  border-color: transparent;
  background: #183044;
  box-shadow: 0 16px 28px rgba(24, 48, 68, .2);
}

.option-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  background: rgba(20, 132, 126, .12);
}

.state-button.is-active .option-index {
  color: #183044;
  background: #ffffff;
}

.state-button strong,
.state-button small {
  display: block;
}

.state-button strong {
  font-size: .98rem;
  line-height: 1.18;
}

.state-button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.state-button.is-active small {
  color: rgba(255, 255, 255, .74);
}

.readout {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.readout-heading {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

#readout-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#readout-title {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.14;
}

#readout-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.5;
}

.variant-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
}

.variant-controls > span {
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.variant-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.two-option-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.variant-button {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #405066;
  font-size: .84rem;
  font-weight: 850;
  background: #ffffff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.variant-button:hover,
.variant-button:focus-visible {
  border-color: rgba(213, 44, 63, .45);
  outline: none;
}

.variant-button.is-active {
  color: #ffffff;
  border-color: transparent;
  background: var(--red);
  box-shadow: 0 10px 18px rgba(213, 44, 63, .16);
}

.section-label {
  margin-bottom: -8px;
  color: #263444;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  background: #ffffff;
}

.metric:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.metric:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.metric span,
.metric small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.metric strong {
  margin: 5px 0 2px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
  color: var(--ink);
}

.lipid-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.lipid-panel h4 {
  margin-bottom: 0;
  color: var(--teal);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lipid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lipid-item {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: #f4f8fb;
}

.lipid-item span,
.lipid-item small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lipid-item strong {
  display: block;
  margin: 3px 0 1px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.gauge-group {
  display: grid;
  gap: 13px;
}

.gauge-row {
  display: grid;
  gap: 8px;
}

.gauge-row > span {
  color: #3b4d60;
  font-size: .83rem;
  font-weight: 800;
}

.gauge-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf3;
}

.gauge-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--red));
  transition: width .35s ease;
}

.findings {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.findings h4 {
  margin-bottom: 10px;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.findings ul {
  margin: 0;
  padding-left: 19px;
  color: #415064;
  line-height: 1.52;
}

.findings li + li {
  margin-top: 8px;
}

body[data-state] .healthy-video-shell {
  opacity: 1;
}

body[data-state="normal"] .heart-group {
  opacity: 0;
}

body[data-state="hypertension"] .state-pill,
body[data-state="hypertension"] .status-dot {
  background: var(--red);
}

body[data-state="hypertension"] .model-tab.is-active {
  background: var(--red);
  box-shadow: 0 12px 22px rgba(213, 44, 63, .16);
}

body[data-state="hypertension"] .state-pill {
  box-shadow: 0 12px 24px rgba(213, 44, 63, .22);
}

body[data-state="hypertension"] .artery {
  stroke-width: 30;
}

body[data-state="hypertension"] .branch,
body[data-state="hypertension"] .coronary {
  stroke-width: 19;
}

body[data-state="hypertension"] .pressure-rings {
  opacity: 1;
}

body[data-state="hypertension"] .flow {
  animation-duration: .95s;
}

body[data-state="hypertension"] .heart-group {
  transform: scale(1.04);
}

body[data-state="atherosclerosis"] .state-pill,
body[data-state="atherosclerosis"] .status-dot {
  background: var(--amber);
}

body[data-state="atherosclerosis"] .model-tab.is-active {
  background: var(--amber);
  box-shadow: 0 12px 22px rgba(200, 122, 31, .16);
}

body[data-state="atherosclerosis"] .state-pill {
  box-shadow: 0 12px 24px rgba(200, 122, 31, .22);
}

body[data-state="atherosclerosis"] .plaques {
  opacity: 1;
}

body[data-state="atherosclerosis"] .coronary-left,
body[data-state="atherosclerosis"] .coronary-right {
  stroke-width: 11;
}

body[data-state="atherosclerosis"] .flow-red {
  stroke-dasharray: 8 46;
  animation-duration: 2.3s;
}

body[data-model="pulmonary"] .state-pill,
body[data-model="pulmonary"] .status-dot,
body[data-model="pulmonary"] .model-tab.is-active {
  background: var(--blue);
}

body[data-model="pulmonary"] .state-pill {
  box-shadow: 0 12px 24px rgba(31, 120, 189, .22);
}

body[data-model="pulmonary"] .model-stage {
  background:
    linear-gradient(180deg, rgba(239, 248, 250, .72), #ffffff 34%),
    #ffffff;
}

body[data-model="pulmonary"] .healthy-video-shell {
  width: min(96%, 760px, 66dvh);
  min-width: 360px;
  aspect-ratio: 1 / 1;
}

body[data-model="pulmonary"] .healthy-video-shell::before {
  content: "";
  position: absolute;
  inset: 8% 2%;
  border: 1px solid rgba(31, 120, 189, .18);
  border-radius: 50%;
  opacity: .75;
  pointer-events: none;
}

body[data-active-video="pulmonary-pneumonia-alveoli"] .model-stage {
  min-height: clamp(620px, 78dvh, 860px);
}

body[data-active-video="pulmonary-pneumonia-alveoli"] .healthy-video-shell {
  width: min(94%, 430px, 44dvh);
  min-width: 280px;
  aspect-ratio: 9 / 16;
}

body[data-model="pulmonary"][data-state="bronchitis"] .state-pill,
body[data-model="pulmonary"][data-state="bronchitis"] .status-dot {
  background: var(--amber);
}

body[data-model="pulmonary"][data-state="bronchitis"] .state-pill {
  box-shadow: 0 12px 24px rgba(200, 122, 31, .22);
}

body[data-model="pulmonary"][data-state="asthma"] .state-pill,
body[data-model="pulmonary"][data-state="asthma"] .status-dot {
  background: var(--violet);
}

body[data-model="pulmonary"][data-state="asthma"] .state-pill {
  box-shadow: 0 12px 24px rgba(111, 90, 199, .2);
}

body[data-model="pulmonary"][data-state="pneumonia"] .state-pill,
body[data-model="pulmonary"][data-state="pneumonia"] .status-dot {
  background: var(--red);
}

body[data-model="pulmonary"][data-state="pneumonia"] .state-pill {
  box-shadow: 0 12px 24px rgba(213, 44, 63, .2);
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: .78;
  }

  50% {
    transform: scale(1.08);
    opacity: .36;
  }
}

@keyframes orbitSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heartBeat {
  0%,
  38%,
  100% {
    transform: rotate(45deg) scale(1);
  }

  14% {
    transform: rotate(45deg) scale(1.12);
  }

  24% {
    transform: rotate(45deg) scale(1.04);
  }
}

@keyframes organFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes lungLeftBreath {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  50% {
    transform: translateX(-3px) scale(1.06, 1.04);
  }
}

@keyframes lungRightBreath {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  50% {
    transform: translateX(3px) scale(1.06, 1.04);
  }
}

@keyframes renalLeftPulse {
  0%,
  100% {
    transform: rotate(18deg) translateY(0) scale(1);
  }

  50% {
    transform: rotate(18deg) translateY(-3px) scale(1.04);
  }
}

@keyframes renalRightPulse {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0) scaleX(-1) scaleY(1);
  }

  50% {
    transform: rotate(-18deg) translateY(-3px) scaleX(-1.04) scaleY(1.04);
  }
}

@keyframes biliaryPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes biliaryFlow {
  0%,
  100% {
    opacity: .72;
    transform: translate(0, 0);
  }

  50% {
    opacity: 1;
    transform: translate(3px, 3px);
  }
}

@keyframes flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes pressure {
  0% {
    opacity: .65;
    transform: scale(.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@media (max-width: 1060px) {
  .model-picker {
    align-items: start;
    padding: 18px 14px;
  }

  .picker-heading {
    align-items: flex-start;
  }

  .anatomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anatomy-card {
    min-height: 300px;
  }

  .dashboard-shell {
    padding: 14px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: 14px;
  }

  .model-panel {
    height: 100%;
  }

  .controls-panel {
    align-self: stretch;
    padding: 14px;
  }

  .state-options {
    grid-template-columns: 1fr;
  }

  .brand-strip {
    min-height: 76px;
  }

  .brand-strip img {
    max-height: 68px;
  }

  .model-stage {
    min-height: clamp(500px, 64dvh, 760px);
  }

  .healthy-video-shell {
    width: min(92%, 520px, 36dvh);
  }

  body[data-model="pulmonary"] .healthy-video-shell {
    width: min(96%, 620px, 58dvh);
    min-width: 300px;
  }

  body[data-active-video="pulmonary-pneumonia-alveoli"] .model-stage {
    min-height: clamp(600px, 76dvh, 780px);
  }

  body[data-active-video="pulmonary-pneumonia-alveoli"] .healthy-video-shell {
    width: min(94%, 400px, 43dvh);
    min-width: 260px;
  }

  .lipid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .model-picker {
    padding: 14px 12px 24px;
  }

  .picker-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .picker-logos {
    min-width: 0;
    min-height: 68px;
    justify-content: space-between;
    padding: 0;
  }

  .picker-logos img {
    max-height: 62px;
  }

  .anatomy-grid {
    grid-template-columns: 1fr;
  }

  .anatomy-card {
    min-height: 220px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
  }

  .card-orbit {
    width: 104px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    padding: 12px;
    min-height: auto;
  }

  .model-panel {
    height: auto;
  }

  .controls-panel {
    align-self: auto;
  }

  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .state-pill {
    max-width: none;
  }

  .brand-strip {
    gap: 10px;
    min-height: 76px;
  }

  .brand-strip img {
    max-height: 70px;
  }

  .model-tabs {
    padding: 12px;
    flex-wrap: wrap;
  }

  .model-tab {
    flex: 1;
    padding: 0 12px;
  }

  .model-stage {
    min-height: clamp(430px, 66dvh, 620px);
    padding: 10px;
  }

  .heart-model {
    width: 112%;
    min-height: 420px;
  }

  .healthy-video-shell {
    width: min(94%, 380px, 36dvh);
    min-width: 220px;
    height: auto;
    max-width: 100%;
  }

  body[data-model="pulmonary"] .healthy-video-shell {
    width: min(96%, 520px, 56dvh);
    min-width: 0;
  }

  body[data-active-video="pulmonary-pneumonia-alveoli"] .model-stage {
    min-height: clamp(560px, 74dvh, 690px);
  }

  body[data-active-video="pulmonary-pneumonia-alveoli"] .healthy-video-shell {
    width: min(96%, 360px, 41dvh);
    min-width: 0;
  }

  .model-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .state-options,
  .metric-grid,
  .variant-buttons,
  .lipid-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(odd),
  .metric:nth-child(-n + 2) {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

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