/* Integrated styles for screens 6 and 7. Loaded after the approved screen CSS. */
.screens-6-7-preview {
  background: var(--color-bg-soft);
}

html:has(body.screens-6-7-preview) {
  scroll-behavior: auto;
}

.screens-tail {
  background: var(--color-bg-soft);
}

.ai-screen {
  --ai-ink: #071326;
  --ai-text: rgba(48, 65, 89, 0.86);
  --ai-muted: rgba(71, 85, 105, 0.72);
  --ai-green: #007947;
  --ai-green-soft: rgba(226, 246, 237, 0.9);
  --ai-blue: #145df2;
  --ai-line: rgba(196, 210, 222, 0.72);
  --ai-card-shadow: 0 30px 78px rgba(27, 75, 60, 0.1);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  scroll-margin-top: var(--np-anchor-offset);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 247, 239, 0.92)),
    var(--color-bg-soft);
}

.ai-screen::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 20% -12% -9% 47%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 36%, rgba(255, 255, 255, 0.88), transparent 33%),
    linear-gradient(135deg, rgba(218, 246, 232, 0.68), rgba(236, 251, 243, 0.28));
  filter: blur(1px);
  transform: rotate(-5deg);
}

.ai-screen::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: auto -16% -18% 32%;
  height: 30%;
  background: rgba(217, 246, 232, 0.42);
  filter: blur(9px);
}

.ai-screen .molecule {
  position: absolute;
  z-index: -1;
  color: #9ccfbb;
  pointer-events: none;
}

.molecule--clinical {
  right: -32px;
  bottom: 22px;
  width: min(17vw, 270px);
  opacity: 0.12;
}

.molecule--report {
  right: -28px;
  bottom: 36px;
  width: min(17vw, 260px);
  opacity: 0.13;
}

.ai-screen__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(470px, 35vw, 700px) minmax(0, 1fr);
  grid-template-areas:
    "copy visual"
    "features visual";
  align-content: center;
  align-items: center;
  gap: clamp(24px, 3.2vh, 42px) clamp(28px, 3vw, 58px);
  width: min(100%, 1920px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(56px, 7.5vh, 92px) clamp(36px, 4.6vw, 90px) clamp(42px, 5.8vh, 72px);
}

.ai-screen__copy {
  grid-area: copy;
  max-width: 760px;
}

.ai-screen .eyebrow {
  display: flex;
  gap: clamp(15px, 1.2vw, 22px);
  margin: 0 0 clamp(46px, 5.4vh, 70px);
  color: var(--ai-green);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.06vw, 19px);
  font-weight: 840;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ai-screen .eyebrow::before {
  content: "";
  display: block;
  flex: 0 0 clamp(44px, 3.2vw, 55px);
  width: clamp(44px, 3.2vw, 55px);
  height: 3px;
  background: currentColor;
}

.ai-screen h2 {
  max-width: 760px;
  color: var(--ai-ink);
  font-family: var(--font-body);
  font-size: clamp(48px, 3.55vw, 74px);
  font-weight: 840;
  line-height: 1.18;
  letter-spacing: 0;
}

.ai-screen h2 span {
  color: var(--ai-green);
}

.clinical-ai h2 span {
  display: block;
}

.clinical-ai h2 {
  font-size: clamp(48px, 3.28vw, 68px);
  line-height: 1.22;
}

.ai-screen .lead {
  max-width: 690px;
  margin-top: clamp(24px, 3.2vh, 34px);
  color: var(--ai-text);
  font-family: var(--font-body);
  font-size: clamp(19px, 1.42vw, 28px);
  line-height: 1.45;
  letter-spacing: 0;
}

.ai-feature-list {
  grid-area: features;
  display: grid;
  gap: clamp(22px, 3.05vh, 34px);
  width: min(100%, 570px);
  margin: clamp(14px, 1.8vh, 20px) 0 0;
  padding: 0;
  list-style: none;
}

.ai-feature {
  display: grid;
  grid-template-columns: clamp(58px, 4.1vw, 78px) minmax(0, 1fr);
  gap: clamp(20px, 1.8vw, 34px);
  align-items: start;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ai-feature .icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(58px, 4.1vw, 78px);
  height: clamp(58px, 4.1vw, 78px);
  border: 1px solid rgba(7, 84, 61, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ebf8f2, #dff2e9);
  color: var(--ai-green);
}

.ai-feature .icon-card svg {
  width: clamp(29px, 2.1vw, 39px);
  height: clamp(29px, 2.1vw, 39px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-feature__text {
  min-width: 0;
  padding: 4px 0 clamp(18px, 2.15vh, 26px);
  border-bottom: 1px solid rgba(197, 210, 208, 0.76);
}

.ai-feature:last-child .ai-feature__text {
  border-bottom: 0;
}

.ai-feature h3 {
  margin: 0;
  color: var(--ai-ink);
  font-family: var(--font-body);
  font-size: clamp(20px, 1.36vw, 27px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

.ai-feature p {
  margin: clamp(8px, 1vh, 12px) 0 0;
  color: var(--ai-text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.16vw, 23px);
  line-height: 1.42;
  letter-spacing: 0;
}

.ai-screen__visual {
  grid-area: visual;
  position: relative;
  justify-self: end;
  width: 100%;
  min-width: 0;
  margin: 0;
  pointer-events: none;
}

.ai-screen__inner,
.ai-screen__copy,
.ai-screen__visual,
.ai-feature-list,
.ai-feature,
.ai-feature__text {
  min-width: 0;
}

.clinical-ai__visual {
  width: min(100%, 1020px);
}

.clinical-board {
  width: 100%;
  aspect-ratio: 1020 / 758;
  overflow: hidden;
  border-radius: 24px;
  font-size: clamp(8px, 0.58vw, 11px);
}

.clinical-board__tabs {
  display: flex;
  align-items: center;
  gap: 2.8em;
  height: 8%;
  padding: 0 1.9em;
  color: #4f5d73;
  font-size: 1.16em;
  font-weight: 650;
  border-bottom: 1px solid rgba(199, 210, 222, 0.76);
}

.clinical-board__tabs span {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.clinical-board__tabs .is-active {
  color: var(--ai-blue);
  font-weight: 800;
}

.clinical-board__tabs .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9em;
  height: 0.22em;
  border-radius: 999px;
  background: currentColor;
}

.clinical-board__body {
  display: grid;
  grid-template-columns: 42% 58%;
  height: 92%;
}

.clinical-board__left {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 1.55em;
  padding: 1.8em 1.55em;
  border-right: 1px solid rgba(199, 210, 222, 0.76);
}

.ui-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.7em;
  padding: 0 1.2em;
  color: #223044;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 8px;
  background: #fff;
  font-weight: 760;
}

.hypothesis-card {
  padding: 1.55em 1.55em 1.7em;
  border: 1px solid rgba(203, 214, 225, 0.82);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
}

.hypothesis-card__head,
.clinical-topline,
.builder-section__title,
.therapy-table__head,
.therapy-modal__top,
.therapy-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hypothesis-card h3,
.builder-section h4,
.report-text h4,
.therapy-table h4 {
  margin: 0;
  color: #111827;
  font-size: 1.34em;
  font-weight: 830;
  line-height: 1.18;
}

.hypothesis-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1.55em;
}

.hypothesis-card__summary {
  margin: 1.2em 0 0;
  color: #475569;
  font-size: 0.98em;
  line-height: 1.45;
}

.hypothesis-card__summary b {
  color: var(--ai-blue);
}

.markers {
  margin-top: 1.85em;
}

.markers p {
  margin: 0 0 0.85em;
  color: #1f2937;
  font-size: 1.08em;
  font-weight: 780;
}

.marker-row {
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: center;
  gap: 0.8em;
  color: #d57900;
  font-size: 0.96em;
  font-weight: 760;
}

.marker-row + .marker-row {
  margin-top: 0.75em;
}

.marker-row i {
  position: relative;
  height: 0.62em;
  border-radius: 999px;
  background: #fae0de;
}

.marker-row i::after {
  content: "";
  position: absolute;
  left: var(--value);
  top: 50%;
  width: 0.48em;
  height: 0.48em;
  border-radius: 50%;
  background: #17b26a;
  transform: translate(-50%, -50%);
}

.missing-card {
  display: grid;
  gap: 0.85em;
  margin-top: 1.65em;
  padding: 1.1em 1.2em;
  color: #c24e14;
  border: 1px solid rgba(229, 126, 32, 0.32);
  border-radius: 8px;
  background: #fff7eb;
  font-size: 0.95em;
  font-weight: 760;
}

.missing-card strong {
  color: #bd4d17;
}

.missing-card span::before {
  content: "⌄";
  margin-right: 0.58em;
  color: #f97316;
}

.ui-button--warning {
  width: 100%;
  margin-top: 1.5em;
  color: #ffffff;
  background: linear-gradient(180deg, #eba70a 0%, #d99000 100%);
}

.compact-hypothesis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.1em;
  padding: 0 1.45em;
  color: #475569;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 1.06em;
  font-weight: 740;
}

.clinical-board__right {
  position: relative;
  display: grid;
  grid-template-rows: auto repeat(4, auto) 1fr;
  gap: 1.65em;
  padding: 0 2em 1.7em;
}

.clinical-topline {
  min-height: 7.4em;
  margin: 0 -2em;
  padding: 0 1.8em;
  border-bottom: 1px solid rgba(199, 210, 222, 0.76);
}

.panel-back {
  color: #607089;
  font-size: 2.1em;
}

.clinical-topline > div {
  flex: 1;
  margin-left: 2.6em;
}

.clinical-topline strong {
  color: #172033;
  font-size: 1.35em;
  font-weight: 830;
}

.clinical-topline small {
  margin-left: 0.9em;
  color: #8490a3;
  font-size: 0.86em;
  font-weight: 700;
}

.ui-clear {
  min-width: 8.7em;
  color: #5d687a;
  background: #e2e6ec;
}

.builder-section {
  display: grid;
  gap: 1.25em;
}

.builder-section__title span {
  color: var(--ai-blue);
  font-size: 0.95em;
  font-weight: 820;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 5.9em;
  padding: 1em;
  color: #8893a5;
  border: 1px dashed rgba(139, 152, 170, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 1em;
  font-weight: 640;
}

.ui-save {
  position: absolute;
  right: 2em;
  bottom: 1.7em;
  min-width: 9.4em;
  color: #5d687a;
  background: #d7dce4;
}

.report-builder .ai-screen__inner {
  align-content: start;
  align-items: start;
  padding-top: clamp(74px, 7.65vh, 86px);
}

.report-builder .eyebrow {
  margin-bottom: clamp(34px, 4.15vh, 48px);
}

.report-builder .ai-screen__copy {
  max-width: 740px;
}

.report-builder h2 {
  max-width: 760px;
  font-size: clamp(40px, 2.6vw, 50px);
  line-height: 1.23;
}

.report-builder .lead {
  max-width: 690px;
  margin-top: clamp(24px, 3.3vh, 34px);
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.42;
}

.report-builder__features {
  margin-top: clamp(4px, 1.2vh, 14px);
}

.report-builder__visual {
  width: min(100%, 1084px);
}

.report-stage {
  position: relative;
  width: 100%;
}

.report-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1084 / 646;
  overflow: hidden;
  border-radius: 24px;
  font-size: clamp(7px, 0.52vw, 10px);
}

.report-board__rail {
  position: absolute;
  inset: 0 auto 0 0;
  display: grid;
  grid-template-rows: 4.6em 1fr;
  justify-items: center;
  width: 4.7em;
  color: #64748b;
  border-right: 1px solid rgba(205, 215, 226, 0.84);
  background: rgba(248, 250, 252, 0.86);
}

.report-board__rail span {
  display: grid;
  place-items: center;
  width: 100%;
  font-size: 2.4em;
}

.report-board__rail strong {
  align-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.08em;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-board__workspace {
  position: absolute;
  inset: 0 0 0 4.7em;
  display: grid;
  grid-template-rows: 7.1em auto auto auto 1fr auto;
  padding: 0 1.65em 1.7em;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -1.65em;
  padding: 0 2em;
  border-bottom: 1px solid rgba(199, 210, 222, 0.76);
}

.report-header strong {
  color: #172033;
  font-size: 1.42em;
  font-weight: 830;
}

.report-header small {
  margin-left: 0.75em;
  color: #8490a3;
  font-size: 0.86em;
  font-weight: 700;
}

.ui-button--blue {
  min-width: 8.7em;
  color: #fff;
  background: var(--ai-blue);
}

.diagnosis-list {
  display: grid;
  gap: 1.1em;
  margin-top: 1.8em;
}

.diagnosis-row {
  display: grid;
  grid-template-columns: 2.3em 1fr 1.6em;
  align-items: center;
  min-height: 4.9em;
  padding: 0 1.1em;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.diagnosis-row span {
  display: grid;
  place-items: center;
  width: 1.85em;
  height: 1.85em;
  color: #2563eb;
  border-radius: 50%;
  background: #e9f0ff;
  font-weight: 820;
}

.diagnosis-row p {
  margin: 0;
  color: #293548;
  font-size: 1em;
  font-weight: 650;
}

.diagnosis-row i {
  width: 1em;
  height: 1.2em;
  justify-self: end;
  border: 1px solid #9aa7ba;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.report-text {
  margin-top: 2.4em;
}

.report-text__box {
  position: relative;
  min-height: 11.3em;
  margin-top: 1.25em;
  padding: 1.45em 3em 1.45em 1.45em;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.report-text__box p {
  margin: 0;
  color: #334155;
  font-size: 0.96em;
  font-weight: 600;
  line-height: 1.62;
}

.scroll-thumb {
  position: absolute;
  top: 2.25em;
  right: 1.25em;
  width: 0.45em;
  height: 3em;
  border-radius: 999px;
  background: #4b5563;
}

.therapy-table {
  margin-top: 2.1em;
}

.therapy-table__head div {
  display: flex;
  gap: 1.7em;
  color: var(--ai-blue);
  font-size: 0.98em;
  font-weight: 820;
}

.therapy-table__head div span:first-child {
  color: #8b5cf6;
}

.therapy-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  min-height: 4.1em;
  margin-top: 1.2em;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.therapy-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-right: 1px solid rgba(205, 215, 226, 0.76);
  font-size: 0.86em;
  font-weight: 760;
}

.therapy-grid span:last-child {
  border-right: 0;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.85em;
  margin-top: 1.45em;
}

.report-actions button {
  min-width: 5.5em;
  color: #334155;
  border: 1px solid rgba(205, 215, 226, 0.84);
  background: #fff;
}

.report-actions .ui-save {
  position: static;
  min-width: 8.5em;
  color: #5d687a;
  border: 0;
  background: #d7dce4;
}

.therapy-modal {
  position: absolute;
  z-index: 4;
  top: 82%;
  left: -25.2%;
  width: 47.5%;
  min-width: 410px;
  border-radius: 22px;
  padding: 1.15em 1.25em 1.2em;
  font-size: clamp(7px, 0.5vw, 9.4px);
  overflow: hidden;
}

.therapy-modal__top {
  gap: 1em;
}

.therapy-modal__top strong {
  color: #1f2937;
  font-size: 1.16em;
  font-weight: 830;
}

.therapy-modal__top p {
  margin: 0.55em 0 0;
  color: #667085;
  font-size: 0.9em;
  line-height: 1.45;
}

.therapy-modal__top span {
  color: #94a3b8;
  font-size: 1.8em;
}

.therapy-item {
  margin-top: 1.2em;
  padding: 1.1em;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.therapy-item label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: #1f2937;
  font-weight: 820;
}

.therapy-item input {
  width: 1.25em;
  height: 1.25em;
  accent-color: var(--ai-blue);
}

.therapy-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65em 0.9em;
  margin-top: 1em;
}

.therapy-fields span {
  color: #64748b;
  font-size: 0.82em;
  font-weight: 720;
}

.therapy-fields b {
  min-height: 2.7em;
  padding: 0.75em 0.9em;
  color: #334155;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 6px;
  background: #fff;
  font-size: 0.92em;
  font-weight: 650;
}

.therapy-item p {
  margin: 0.9em 0 0;
  padding: 0.85em;
  color: #526174;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 6px;
  background: #fff;
  font-size: 0.88em;
  line-height: 1.48;
}

.therapy-item--short {
  margin-top: 0.8em;
  max-height: 9em;
  overflow: hidden;
}

.therapy-modal__actions {
  margin-top: 1.05em;
  gap: 0.8em;
}

.therapy-modal__actions button {
  min-height: 3.1em;
  padding: 0 1.25em;
  border: 1px solid rgba(205, 215, 226, 0.84);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 760;
}

.therapy-modal__actions button:last-child {
  color: #fff;
  border-color: var(--ai-blue);
  background: var(--ai-blue);
}

@media (min-width: 1241px) {
  .report-builder .ai-screen__inner {
    grid-template-columns: clamp(440px, 35vw, 700px) minmax(0, 1fr);
    column-gap: clamp(28px, 3vw, 58px);
    row-gap: 22px;
    padding-right: clamp(36px, 3.75vw, 72px);
    padding-left: clamp(36px, 3.75vw, 72px);
  }

  .report-builder .lead {
    max-width: 620px;
  }

  .report-builder__features {
    width: min(100%, clamp(360px, 31vw, 430px));
  }
}

@media (min-width: 1241px) and (max-height: 860px) {
  .ai-screen__inner {
    grid-template-columns: clamp(420px, 34vw, 600px) minmax(0, 1fr);
    gap: clamp(16px, 2.4vh, 28px) clamp(24px, 3vw, 52px);
    padding: clamp(42px, 6.2vh, 66px) clamp(30px, 3.8vw, 74px) clamp(30px, 4.5vh, 52px);
  }

  .ai-screen .eyebrow {
    margin-bottom: clamp(30px, 4.1vh, 42px);
  }

  .ai-screen h2 {
    font-size: clamp(40px, min(3.35vw, 6.8vh), 54px);
    line-height: 1.14;
  }

  .clinical-ai h2 {
    font-size: clamp(39px, min(3.22vw, 6.3vh), 48px);
    line-height: 1.15;
  }

  .ai-screen .lead {
    margin-top: 20px;
    font-size: clamp(17px, min(1.35vw, 2.8vh), 21px);
  }

  .ai-feature-list {
    gap: clamp(16px, 2.3vh, 24px);
    width: min(100%, 480px);
  }

  .ai-feature {
    grid-template-columns: clamp(50px, min(3.7vw, 7.6vh), 62px) minmax(0, 1fr);
    gap: 18px;
  }

  .ai-feature .icon-card {
    width: clamp(50px, min(3.7vw, 7.6vh), 62px);
    height: clamp(50px, min(3.7vw, 7.6vh), 62px);
  }

  .ai-feature .icon-card svg {
    width: clamp(26px, min(1.9vw, 3.7vh), 32px);
    height: clamp(26px, min(1.9vw, 3.7vh), 32px);
  }

  .ai-feature__text {
    padding-bottom: clamp(13px, 2vh, 18px);
  }

  .ai-feature h3 {
    font-size: clamp(18px, min(1.32vw, 2.8vh), 22px);
  }

  .ai-feature p {
    font-size: clamp(15px, min(1.08vw, 2.25vh), 18px);
  }

  .clinical-ai__visual {
    width: min(100%, 920px);
  }

  .report-builder .ai-screen__inner {
    padding-top: clamp(52px, 6.4vh, 64px);
  }

  .report-builder h2 {
    font-size: clamp(40px, min(3.25vw, 6.1vh), 52px);
    line-height: 1.24;
  }

  .report-builder .ai-screen__inner {
    grid-template-columns: clamp(390px, 34vw, 560px) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 52px);
    row-gap: clamp(12px, 2vh, 20px);
    padding-right: clamp(30px, 3.8vw, 74px);
    padding-left: clamp(30px, 3.8vw, 74px);
  }

  .report-builder__visual {
    width: min(100%, 960px);
  }

  .therapy-modal {
    top: 75%;
    left: -22%;
    width: 48%;
    min-width: 360px;
  }
}

@media (min-width: 1241px) and (max-width: 1500px) {
  .ai-screen h2 {
    font-size: clamp(42px, 3.55vw, 54px);
  }

  .clinical-ai h2 {
    font-size: clamp(42px, 3.35vw, 50px);
  }

  .report-builder h2 {
    font-size: clamp(34px, 2.8vw, 42px);
    line-height: 1.2;
  }

  .ai-screen .lead {
    font-size: clamp(17px, 1.35vw, 21px);
  }

  .report-builder .ai-screen__inner {
    grid-template-columns: clamp(360px, 31vw, 460px) minmax(0, 1fr);
    column-gap: clamp(18px, 2.6vw, 42px);
    padding-right: clamp(28px, 3.4vw, 54px);
    padding-left: clamp(28px, 3.4vw, 54px);
  }

  .report-builder .lead {
    max-width: 390px;
    margin-top: clamp(16px, 2vh, 24px);
    font-size: clamp(15px, 1.18vw, 18px);
    line-height: 1.42;
  }

  .ai-feature-list {
    gap: clamp(14px, 2vh, 22px);
    width: min(100%, 480px);
  }

  .report-builder__features {
    width: min(100%, 370px);
    max-width: 370px;
  }

  .ai-feature {
    grid-template-columns: clamp(50px, 3.8vw, 62px) minmax(0, 1fr);
    gap: clamp(14px, 1.35vw, 20px);
  }

  .ai-feature .icon-card {
    width: clamp(50px, 3.8vw, 62px);
    height: clamp(50px, 3.8vw, 62px);
  }

  .ai-feature .icon-card svg {
    width: clamp(25px, 1.95vw, 32px);
    height: clamp(25px, 1.95vw, 32px);
  }

  .ai-feature__text {
    padding-bottom: clamp(12px, 1.6vw, 18px);
  }

  .ai-feature h3 {
    font-size: clamp(18px, 1.45vw, 22px);
  }

  .ai-feature p {
    font-size: clamp(14px, 1.12vw, 17px);
  }

  .clinical-board {
    font-size: clamp(7px, 0.66vw, 9px);
    border-radius: 20px;
  }

  .clinical-board__left {
    gap: 1.05em;
    padding: 1.45em 1.35em;
  }

  .hypothesis-card {
    padding: 1.25em 1.25em 1.35em;
  }

  .hypothesis-card__badges {
    margin-top: 1.05em;
  }

  .hypothesis-card__summary {
    margin-top: 0.9em;
    font-size: 0.9em;
  }

  .markers {
    margin-top: 1.15em;
  }

  .marker-row {
    grid-template-columns: 55% 1fr;
    gap: 0.55em;
    font-size: 0.86em;
  }

  .missing-card {
    gap: 0.58em;
    margin-top: 1.1em;
    padding: 0.9em 1em;
    font-size: 0.84em;
  }

  .ui-button--warning {
    min-height: 2.65em;
    margin-top: 1.05em;
  }

  .compact-hypothesis {
    min-height: 4.25em;
    padding-inline: 1.25em;
  }

  .clinical-board__right {
    gap: 1.25em;
    padding-bottom: 1.4em;
  }

  .drop-zone {
    min-height: 5.2em;
  }

  .report-board {
    font-size: clamp(6px, 0.6vw, 8px);
    border-radius: 20px;
  }

  .therapy-modal {
    top: 80%;
    left: clamp(-2%, -1.2vw, 0px);
    width: 44%;
    min-width: 300px;
  }
}

@media (min-width: 1241px) and (max-width: 1500px) and (max-height: 760px) {
  .report-builder .ai-screen__inner {
    row-gap: 10px;
    padding-top: clamp(34px, 5.4vh, 42px);
  }

  .report-builder .eyebrow {
    margin-bottom: clamp(18px, 3vh, 24px);
  }

  .report-builder h2 {
    font-size: clamp(33px, 2.65vw, 38px);
    line-height: 1.16;
  }

  .report-builder .lead {
    max-width: 360px;
    margin-top: 14px;
    font-size: clamp(14px, 1.08vw, 16px);
    line-height: 1.38;
  }

  .report-builder__features {
    gap: 10px;
    width: min(100%, 345px);
    max-width: 345px;
  }

  .report-builder .ai-feature {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .report-builder .ai-feature .icon-card {
    width: 48px;
    height: 48px;
  }

  .report-builder .ai-feature .icon-card svg {
    width: 25px;
    height: 25px;
  }

  .report-builder .ai-feature__text {
    padding-bottom: 10px;
  }

  .report-builder .ai-feature h3 {
    font-size: 17px;
    line-height: 1.18;
  }

  .report-builder .ai-feature p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.3;
  }

  .report-board {
    font-size: clamp(5.4px, 0.56vw, 6.8px);
  }

  .therapy-modal {
    top: 82%;
    width: 42%;
    min-width: 280px;
    font-size: clamp(5.4px, 0.56vw, 6.6px);
  }
}

@media (min-width: 741px) and (max-width: 1240px) {
  .ai-screen::before {
    inset: 22% -18% -10% 44%;
  }

  .ai-screen__inner {
    grid-template-columns: minmax(270px, 0.72fr) minmax(390px, 1.28fr);
    grid-template-areas:
      "copy visual"
      "features visual";
    align-content: start;
    align-items: start;
    gap: clamp(18px, 2.4vw, 28px) clamp(28px, 4vw, 50px);
    width: 100%;
    max-width: 1180px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(46px, 5.8vh, 58px) clamp(24px, 3.8vw, 44px) clamp(34px, 4vw, 48px);
    overflow: hidden;
  }

  .ai-screen .eyebrow {
    gap: 13px;
    margin-bottom: clamp(18px, 2.2vw, 28px);
    font-size: clamp(12px, 1.35vw, 15px);
  }

  .ai-screen .eyebrow::before {
    flex-basis: clamp(38px, 4.6vw, 52px);
    width: clamp(38px, 4.6vw, 52px);
    height: 2px;
  }

  .ai-screen h2 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
  }

  .report-builder h2 {
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.18;
  }

  .ai-screen .lead {
    max-width: 390px;
    margin-top: clamp(16px, 2.2vw, 24px);
    font-size: clamp(15px, 1.8vw, 19px);
    line-height: 1.48;
  }

  .ai-feature-list {
    gap: clamp(10px, 1.6vw, 16px);
    width: 100%;
    max-width: 390px;
    margin: 0;
  }

  .ai-feature {
    grid-template-columns: clamp(44px, 4.8vw, 54px) minmax(0, 1fr);
    gap: clamp(11px, 1.3vw, 16px);
  }

  .ai-feature .icon-card {
    width: clamp(44px, 4.8vw, 54px);
    height: clamp(44px, 4.8vw, 54px);
  }

  .ai-feature .icon-card svg {
    width: clamp(23px, 2.45vw, 28px);
    height: clamp(23px, 2.45vw, 28px);
  }

  .ai-feature__text {
    padding: 1px 0 clamp(10px, 1.5vw, 15px);
  }

  .ai-feature h3 {
    font-size: clamp(17px, 1.9vw, 22px);
    line-height: 1.18;
  }

  .ai-feature p {
    margin-top: 4px;
    font-size: clamp(13px, 1.45vw, 16px);
    line-height: 1.34;
  }

  .clinical-ai__visual,
  .report-builder__visual {
    align-self: start;
    width: 100%;
  }

  .clinical-board {
    font-size: clamp(6.1px, 0.8vw, 8.3px);
    border-radius: 18px;
  }

  .report-builder .ai-screen__inner {
    padding-top: clamp(46px, 5.8vh, 58px);
  }

  .report-board {
    border-radius: 18px;
    font-size: clamp(5.6px, 0.72vw, 7.4px);
  }

  .therapy-modal {
    top: 76%;
    left: -18%;
    width: 54%;
    min-width: 290px;
    border-radius: 16px;
    font-size: clamp(5.2px, 0.7vw, 7px);
  }
}

@media (min-width: 741px) and (max-width: 920px) {
  .ai-screen__inner {
    grid-template-columns: minmax(250px, 0.78fr) minmax(360px, 1.22fr);
    gap: 18px 26px;
    padding-inline: clamp(22px, 3.2vw, 32px);
  }

  .ai-screen h2 {
    font-size: clamp(32px, 4.7vw, 42px);
  }

  .report-builder h2 {
    font-size: clamp(31px, 4.35vw, 40px);
  }

  .ai-screen .lead {
    max-width: 330px;
    font-size: clamp(14px, 1.9vw, 16px);
  }

  .ai-feature-list {
    max-width: 330px;
  }

  .clinical-board {
    font-size: clamp(5.5px, 0.78vw, 6.5px);
  }

  .report-board {
    font-size: clamp(4.8px, 0.69vw, 5.8px);
  }

  .therapy-modal {
    left: -10%;
    width: 58%;
    min-width: 240px;
  }
}

@media (min-width: 1121px) and (max-width: 1240px) {
  .report-builder .therapy-modal {
    left: clamp(-14px, -1vw, 0px);
  }
}

@media (max-width: 740px) {
  .ai-screen {
    min-height: auto;
  }

  .ai-screen::before {
    inset: 22% -30% 18% 18%;
    opacity: 0.68;
  }

  .ai-screen::after,
  .molecule--clinical,
  .molecule--report {
    display: none;
  }

  .ai-screen__inner,
  .report-builder .ai-screen__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "visual"
      "features";
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 54px 20px 58px;
    overflow: hidden;
  }

  .ai-screen__copy {
    width: 100%;
    max-width: none;
  }

  .ai-screen .eyebrow {
    gap: 12px;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.16;
  }

  .ai-screen .eyebrow::before {
    flex: 0 0 40px;
    width: 40px;
    height: 2px;
  }

  .ai-screen h2,
  .report-builder h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.15vw, 34px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .ai-screen .lead,
  .report-builder .lead {
    width: 100%;
    max-width: none;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.52;
  }

  .ai-screen__visual {
    width: 100%;
    justify-self: center;
  }

  .clinical-board {
    width: min(100%, 440px);
    margin: 0 auto;
    border-radius: 16px;
    font-size: clamp(5px, 1.36vw, 6px);
  }

  .clinical-board__body {
    grid-template-columns: 45% 55%;
  }

  .clinical-board__left {
    gap: 1em;
    padding: 1.1em;
  }

  .clinical-board__right {
    gap: 1.05em;
    padding: 0 1.1em 1.2em;
  }

  .clinical-topline {
    min-height: 6.2em;
    margin-inline: -1.1em;
    padding-inline: 1.1em;
  }

  .clinical-topline > div {
    margin-left: 1.2em;
  }

  .drop-zone {
    min-height: 4.7em;
  }

  .report-stage {
    width: min(100%, 440px);
    margin: 0 auto;
    padding-bottom: 146px;
  }

  .report-board {
    border-radius: 16px;
    font-size: clamp(4.5px, 1.22vw, 5.6px);
  }

  .therapy-modal {
    top: auto;
    left: 50%;
    bottom: 0;
    width: min(92%, 360px);
    min-width: 0;
    border-radius: 16px;
    font-size: 6.1px;
    transform: translateX(-50%);
  }

  .therapy-item--short {
    display: none;
  }

  .ai-feature-list,
  .report-builder__features {
    grid-area: features;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin: 0;
    justify-self: center;
  }

  .ai-feature {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    min-width: 0;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid rgba(7, 84, 61, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 13px 26px rgba(27, 75, 60, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    overflow: hidden;
  }

  .ai-feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(0, 121, 67, 0.76), rgba(117, 196, 157, 0.12));
  }

  .ai-feature .icon-card {
    grid-column: 1;
    width: 38px;
    height: 38px;
    min-width: 0;
    min-height: 0;
  }

  .ai-feature .icon-card svg {
    width: 21px;
    height: 21px;
  }

  .ai-feature__text {
    grid-column: 2;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .ai-feature h3 {
    margin: 0;
    color: var(--green);
    font-size: 18px;
    line-height: 1.22;
    overflow-wrap: break-word;
  }

  .ai-feature p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.36;
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  .ai-screen__inner,
  .report-builder .ai-screen__inner {
    padding-inline: 18px;
  }

  .clinical-board {
    font-size: 4.6px;
  }

  .report-board {
    font-size: 4.15px;
  }

  .report-stage {
    padding-bottom: 138px;
  }

  .therapy-modal {
    font-size: 5.6px;
  }
}

@media (min-width: 741px) and (max-width: 1120px) {
  .ai-screen__inner,
  .report-builder .ai-screen__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "visual"
      "features";
    align-content: start;
    align-items: start;
    gap: clamp(22px, 2.4vw, 30px);
    width: min(100%, 900px);
    max-width: 900px;
    min-height: auto;
    margin: 0 auto;
    padding: clamp(72px, 7.6vw, 86px) clamp(34px, 5.4vw, 56px) 58px;
    overflow: visible;
  }

  .ai-screen__copy,
  .report-builder .ai-screen__copy {
    width: 100%;
    max-width: 720px;
  }

  .ai-screen .eyebrow {
    gap: 14px;
    margin-bottom: clamp(18px, 2.2vw, 24px);
    font-size: clamp(12.5px, 1.45vw, 14px);
  }

  .ai-screen .eyebrow::before {
    flex-basis: 42px;
    width: 42px;
    height: 2px;
  }

  .ai-screen h2,
  .clinical-ai h2,
  .report-builder h2 {
    max-width: 720px;
    font-size: clamp(40px, 5.2vw, 52px);
    line-height: 1.08;
  }

  .ai-screen .lead,
  .report-builder .lead {
    max-width: 680px;
    margin-top: clamp(16px, 2vw, 22px);
    font-size: clamp(17.5px, 2vw, 20px);
    line-height: 1.5;
  }

  .clinical-ai__visual,
  .report-builder__visual {
    justify-self: center;
    width: min(100%, 760px);
    max-width: calc(100vw - 68px);
  }

  .clinical-board {
    border-radius: 18px;
    font-size: clamp(6px, 0.78vw, 8px);
  }

  .report-stage {
    padding-bottom: clamp(142px, 16vw, 178px);
  }

  .report-board {
    border-radius: 18px;
    font-size: clamp(5px, 0.68vw, 7px);
  }

  .therapy-modal {
    top: auto;
    left: 50%;
    bottom: 0;
    width: min(72%, 520px);
    min-width: 0;
    border-radius: 16px;
    font-size: clamp(5px, 0.7vw, 6.6px);
    transform: translateX(-50%);
  }

  .ai-feature-list,
  .report-builder__features {
    grid-area: features;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 0;
  }

  .report-builder__features {
    justify-self: center;
    width: min(94%, 700px);
    max-width: 700px;
  }

  .ai-feature {
    position: relative;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 14px 16px;
    border: 1px solid rgba(7, 84, 61, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 13px 26px rgba(27, 75, 60, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    overflow: hidden;
  }

  .ai-feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(0, 121, 67, 0.76), rgba(117, 196, 157, 0.12));
  }

  .ai-feature .icon-card {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .ai-feature .icon-card svg {
    width: 24px;
    height: 24px;
  }

  .ai-feature__text {
    padding: 0;
    border-bottom: 0;
  }

  .ai-feature h3 {
    color: var(--green);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.2;
  }

  .ai-feature p {
    margin-top: 5px;
    color: var(--muted);
    font-size: clamp(13.5px, 1.6vw, 15.5px);
    line-height: 1.36;
  }
}

@media (min-width: 741px) and (max-width: 860px) {
  .ai-feature-list,
  .report-builder__features {
    grid-template-columns: 1fr;
  }
}

/* Final desktop-fit guard for screen 7: keep the full composition inside short desktop viewports. */
@media (min-width: 1241px) and (max-height: 920px) {
  .clinical-ai {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .clinical-ai .ai-screen__inner {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    align-content: start;
    align-items: start;
    row-gap: clamp(10px, 1.6vh, 16px);
    padding-top: clamp(70px, 8vh, 78px);
    padding-bottom: clamp(22px, 3vh, 32px);
    overflow: hidden;
  }

  .clinical-ai .eyebrow {
    margin-bottom: clamp(20px, 2.9vh, 28px);
  }

  .clinical-ai h2 {
    font-size: clamp(40px, min(3vw, 6.2vh), 56px);
    line-height: 1.14;
  }

  .clinical-ai .lead {
    max-width: 590px;
    margin-top: clamp(14px, 2vh, 20px);
    font-size: clamp(16px, min(1.16vw, 2.35vh), 21px);
    line-height: 1.38;
  }

  .clinical-ai .ai-feature-list {
    gap: clamp(10px, 1.45vh, 14px);
    width: min(100%, 450px);
    max-width: 450px;
    margin-top: 0;
  }

  .clinical-ai .ai-feature {
    grid-template-columns: clamp(46px, min(3.4vw, 6.4vh), 58px) minmax(0, 1fr);
    gap: clamp(12px, 1.25vw, 16px);
  }

  .clinical-ai .ai-feature .icon-card {
    width: clamp(46px, min(3.4vw, 6.4vh), 58px);
    height: clamp(46px, min(3.4vw, 6.4vh), 58px);
  }

  .clinical-ai .ai-feature .icon-card svg {
    width: clamp(23px, min(1.72vw, 3.35vh), 30px);
    height: clamp(23px, min(1.72vw, 3.35vh), 30px);
  }

  .clinical-ai .ai-feature__text {
    padding-bottom: clamp(9px, 1.4vh, 13px);
  }

  .clinical-ai .ai-feature h3 {
    font-size: clamp(16px, min(1.24vw, 2.4vh), 21px);
    line-height: 1.18;
  }

  .clinical-ai .ai-feature p {
    margin-top: 4px;
    font-size: clamp(13px, min(1vw, 1.9vh), 16px);
    line-height: 1.3;
  }

  .clinical-ai__visual {
    align-self: start;
    width: min(100%, 900px);
  }

  .report-builder {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .report-builder .ai-screen__inner {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    align-content: start;
    align-items: start;
    row-gap: clamp(10px, 1.6vh, 16px);
    padding-top: clamp(70px, 8vh, 78px);
    padding-bottom: clamp(22px, 3vh, 32px);
    overflow: hidden;
  }

  .report-builder .eyebrow {
    margin-bottom: clamp(20px, 2.9vh, 28px);
  }

  .report-builder h2 {
    font-size: clamp(34px, min(2.7vw, 5.7vh), 46px);
    line-height: 1.16;
  }

  .report-builder .lead {
    max-width: 540px;
    margin-top: clamp(14px, 2vh, 20px);
    font-size: clamp(15px, min(1.14vw, 2.35vh), 20px);
    line-height: 1.38;
  }

  .report-builder__features {
    gap: clamp(10px, 1.45vh, 14px);
    width: min(100%, 420px);
    max-width: 420px;
    margin-top: 0;
  }

  .report-builder .ai-feature {
    grid-template-columns: clamp(46px, min(3.4vw, 6.4vh), 58px) minmax(0, 1fr);
    gap: clamp(12px, 1.25vw, 16px);
  }

  .report-builder .ai-feature .icon-card {
    width: clamp(46px, min(3.4vw, 6.4vh), 58px);
    height: clamp(46px, min(3.4vw, 6.4vh), 58px);
  }

  .report-builder .ai-feature .icon-card svg {
    width: clamp(23px, min(1.72vw, 3.35vh), 30px);
    height: clamp(23px, min(1.72vw, 3.35vh), 30px);
  }

  .report-builder .ai-feature__text {
    padding-bottom: clamp(9px, 1.4vh, 13px);
  }

  .report-builder .ai-feature h3 {
    font-size: clamp(16px, min(1.24vw, 2.4vh), 21px);
    line-height: 1.18;
  }

  .report-builder .ai-feature p {
    margin-top: 4px;
    font-size: clamp(13px, min(1vw, 1.9vh), 16px);
    line-height: 1.3;
  }

  .report-builder__visual {
    align-self: center;
    width: min(100%, 980px);
  }

  .report-board {
    font-size: clamp(5.4px, min(0.5vw, 0.95vh), 8px);
  }

  .therapy-modal {
    top: 64%;
    left: clamp(-14px, -1vw, 0px);
    width: 42%;
    min-width: 280px;
    font-size: clamp(5.4px, min(0.46vw, 0.9vh), 7.2px);
  }

  .therapy-item--short {
    display: none;
  }
}

/* Screen 6 tablet repair: match the compact rhythm used on screens 4-5. */
@media (min-width: 861px) and (max-width: 1120px) {
  .clinical-ai {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .clinical-ai .ai-screen__inner {
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    grid-template-areas:
      "copy visual"
      "features visual";
    align-content: center;
    align-items: center;
    gap: clamp(18px, 2.2vw, 26px) clamp(24px, 3.4vw, 42px);
    width: 100%;
    max-width: 1120px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: calc(var(--np-header-offset) + 56px) clamp(36px, 5vw, 56px) 42px;
    overflow: hidden;
  }

  .clinical-ai .ai-screen__copy {
    max-width: none;
    align-self: end;
  }

  .clinical-ai .eyebrow {
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.2;
  }

  .clinical-ai .eyebrow::before {
    flex: 0 0 36px;
    width: 36px;
    height: 2px;
  }

  .clinical-ai h2 {
    max-width: 430px;
    font-size: clamp(34px, 4.65vw, 48px);
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: normal;
  }

  .clinical-ai .lead {
    max-width: 430px;
    margin-top: 16px;
    font-size: clamp(15.5px, 1.75vw, 18px);
    line-height: 1.43;
  }

  .clinical-ai__visual {
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 620px;
  }

  .clinical-ai .clinical-board {
    border-radius: 16px;
    font-size: clamp(5.1px, 0.62vw, 6.4px);
  }

  .clinical-ai .clinical-board__left {
    gap: 0.95em;
    padding: 1.15em;
  }

  .clinical-ai .clinical-board__right {
    gap: 1em;
    padding: 0 1.25em 1.25em;
  }

  .clinical-ai .clinical-topline {
    min-height: 6.5em;
    margin-inline: -1.25em;
    padding-inline: 1.25em;
  }

  .clinical-ai .clinical-topline > div {
    margin-left: 1.3em;
  }

  .clinical-ai .drop-zone {
    min-height: 4.7em;
  }

  .clinical-ai .ai-feature-list {
    grid-area: features;
    grid-template-columns: 1fr;
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 430px;
    gap: 10px;
    margin: 0;
  }

  .clinical-ai .ai-feature {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    min-width: 0;
    min-height: 0;
    padding: 11px 13px;
    border: 1px solid rgba(7, 84, 61, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 13px 26px rgba(27, 75, 60, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    overflow: hidden;
  }

  .clinical-ai .ai-feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(0, 121, 67, 0.76), rgba(117, 196, 157, 0.12));
  }

  .clinical-ai .ai-feature .icon-card {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .clinical-ai .ai-feature .icon-card svg {
    width: 23px;
    height: 23px;
  }

  .clinical-ai .ai-feature__text {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .clinical-ai .ai-feature h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
  }

  .clinical-ai .ai-feature p {
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.32;
    overflow-wrap: break-word;
  }
}

@media (min-width: 741px) and (max-width: 860px) {
  .clinical-ai .ai-screen__inner {
    gap: 20px;
    padding: calc(var(--np-header-offset) + 56px) clamp(34px, 5vw, 54px) 54px;
  }

  .clinical-ai__visual {
    width: min(100%, 680px);
  }

  .clinical-ai .clinical-board {
    font-size: clamp(5.1px, 0.74vw, 5.9px);
  }

  .clinical-ai .ai-feature-list {
    max-width: 520px;
    gap: 10px;
    justify-self: center;
  }

  .clinical-ai .ai-feature {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    padding: 10px 12px;
  }

  .clinical-ai .ai-feature .icon-card {
    width: 40px;
    height: 40px;
  }

  .clinical-ai .ai-feature .icon-card svg {
    width: 22px;
    height: 22px;
  }

  .clinical-ai .ai-feature h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  .clinical-ai .ai-feature p {
    margin-top: 3px;
    font-size: 13.5px;
    line-height: 1.32;
  }
}

/* Screens 6-7: align desktop/tablet feature rhythm with screen 4. */
@media (min-width: 1121px) {
  .clinical-ai .ai-screen__inner,
  .report-builder .ai-screen__inner {
    grid-template-columns: clamp(500px, 36.5vw, 660px) minmax(0, 1fr);
  }

  .ai-screen h2,
  .clinical-ai h2,
  .report-builder h2 {
    max-width: 620px;
    font-size: clamp(40px, min(3vw, 5.9vh), 48px);
    font-weight: 800;
    line-height: 1.11;
    transform: scaleX(0.88);
    transform-origin: left top;
  }

  .ai-screen .lead,
  .report-builder .lead {
    max-width: 590px;
    margin-top: clamp(18px, 2.2vh, 24px);
    font-size: clamp(17px, 1.2vw, 22px);
    line-height: 1.48;
  }

  .report-builder .lead {
    max-width: 640px;
  }

  .ai-feature-list,
  .report-builder__features,
  .clinical-ai .ai-feature-list {
    width: min(100%, 500px);
    max-width: 500px;
    gap: clamp(18px, 2.2vh, 26px);
  }

  .report-builder__features {
    margin-top: clamp(12px, 1.8vh, 20px);
  }

  .report-builder__features .ai-feature:nth-child(3) {
    transform: translateY(clamp(-10px, -0.8vh, -6px));
  }

  .ai-feature,
  .clinical-ai .ai-feature,
  .report-builder .ai-feature {
    grid-template-columns: clamp(54px, 4.25vw, 68px) minmax(0, 1fr);
    gap: clamp(16px, 1.33vw, 22px);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .ai-feature::before,
  .clinical-ai .ai-feature::before,
  .report-builder .ai-feature::before {
    content: none;
  }

  .ai-feature .icon-card,
  .clinical-ai .ai-feature .icon-card,
  .report-builder .ai-feature .icon-card {
    width: clamp(54px, 4.25vw, 68px);
    height: clamp(54px, 4.25vw, 68px);
    border: 0;
    border-radius: 8px;
    background: rgba(226, 246, 237, 0.88);
  }

  .ai-feature .icon-card svg,
  .clinical-ai .ai-feature .icon-card svg,
  .report-builder .ai-feature .icon-card svg {
    width: clamp(27px, 2.18vw, 35px);
    height: clamp(27px, 2.18vw, 35px);
    stroke-width: 2.05;
  }

  .ai-feature__text,
  .clinical-ai .ai-feature__text,
  .report-builder .ai-feature__text {
    padding: 4px 0 clamp(18px, 2vh, 24px);
    border-bottom: 0;
  }

  .ai-feature:last-child .ai-feature__text,
  .clinical-ai .ai-feature:last-child .ai-feature__text,
  .report-builder .ai-feature:last-child .ai-feature__text {
    border-bottom: 0;
  }

  .ai-feature h3,
  .clinical-ai .ai-feature h3,
  .report-builder .ai-feature h3 {
    color: #071326;
    font-size: clamp(17px, 1.12vw, 20.5px);
    font-weight: 800;
    line-height: 1.34;
  }

  .ai-feature p,
  .clinical-ai .ai-feature p,
  .report-builder .ai-feature p {
    margin-top: 6px;
    color: rgba(48, 65, 89, 0.86);
    font-size: clamp(16.5px, 1.08vw, 20px);
    line-height: 1.42;
  }

}

@media (min-width: 861px) and (max-width: 1120px) {
  .ai-screen h2,
  .clinical-ai h2,
  .report-builder h2 {
    max-width: 430px;
    font-size: clamp(36px, 4.45vw, 46px);
    line-height: 1.06;
    transform: none;
  }

  .ai-screen .lead,
  .report-builder .lead {
    max-width: 520px;
    margin-top: 18px;
    font-size: clamp(17px, 1.8vw, 19px);
    line-height: 1.46;
  }

  .ai-feature,
  .clinical-ai .ai-feature,
  .report-builder .ai-feature {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(7, 84, 61, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 13px 26px rgba(27, 75, 60, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    overflow: hidden;
  }

  .ai-feature .icon-card,
  .clinical-ai .ai-feature .icon-card,
  .report-builder .ai-feature .icon-card {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .ai-feature .icon-card svg,
  .clinical-ai .ai-feature .icon-card svg,
  .report-builder .ai-feature .icon-card svg {
    width: 24px;
    height: 24px;
  }

  .ai-feature__text,
  .clinical-ai .ai-feature__text,
  .report-builder .ai-feature__text {
    padding: 0;
    border-bottom: 0;
  }

  .ai-feature h3,
  .clinical-ai .ai-feature h3,
  .report-builder .ai-feature h3 {
    color: #071326;
    font-size: 18px;
    line-height: 1.22;
  }

  .ai-feature p,
  .clinical-ai .ai-feature p,
  .report-builder .ai-feature p {
    margin-top: 5px;
    color: rgba(48, 65, 89, 0.86);
    font-size: 14.5px;
    line-height: 1.35;
  }
}

@media (min-width: 741px) and (max-width: 860px) {
  .ai-screen h2,
  .clinical-ai h2,
  .report-builder h2 {
    max-width: 700px;
    font-size: clamp(40px, 5.7vw, 52px);
    line-height: 1.07;
    transform: none;
  }

  .ai-screen .lead,
  .report-builder .lead {
    max-width: 700px;
    margin-top: 18px;
    font-size: clamp(18px, 2.2vw, 21px);
    line-height: 1.48;
  }

  .ai-feature,
  .clinical-ai .ai-feature,
  .report-builder .ai-feature {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
  }

  .ai-feature .icon-card,
  .clinical-ai .ai-feature .icon-card,
  .report-builder .ai-feature .icon-card {
    width: 48px;
    height: 48px;
  }

  .ai-feature .icon-card svg,
  .clinical-ai .ai-feature .icon-card svg,
  .report-builder .ai-feature .icon-card svg {
    width: 25px;
    height: 25px;
  }

  .ai-feature h3,
  .clinical-ai .ai-feature h3,
  .report-builder .ai-feature h3 {
    color: #071326;
    font-size: 18px;
    line-height: 1.22;
  }

  .ai-feature p,
  .clinical-ai .ai-feature p,
  .report-builder .ai-feature p {
    margin-top: 6px;
    color: rgba(48, 65, 89, 0.86);
    font-size: 15px;
    line-height: 1.36;
  }
}

@media (min-width: 1121px) and (min-height: 761px) {
  .report-builder .ai-screen__inner {
    row-gap: clamp(22px, 2.4vh, 32px);
  }
}

@media (min-width: 1121px) and (max-height: 760px) {
  .report-builder .ai-screen__inner {
    row-gap: 8px;
    padding-top: clamp(58px, 7vh, 66px);
    padding-bottom: clamp(18px, 2.4vh, 24px);
  }

  .report-builder .eyebrow {
    margin-bottom: clamp(16px, 2.2vh, 20px);
  }

  .report-builder .lead {
    max-width: 540px;
    margin-top: 14px;
    font-size: clamp(17px, 1.2vw, 22px);
    line-height: 1.48;
  }

  .report-builder__features {
    gap: 12px;
    width: min(100%, 490px);
    max-width: 490px;
    margin-top: clamp(12px, 2vh, 16px);
  }

  .report-builder .ai-feature {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .report-builder .ai-feature .icon-card {
    width: 52px;
    height: 52px;
  }

  .report-builder .ai-feature .icon-card svg {
    width: 26px;
    height: 26px;
  }

  .report-builder .ai-feature__text {
    padding: 3px 0 12px;
  }

  .report-builder .ai-feature h3 {
    font-size: clamp(17px, 1.12vw, 20.5px);
    line-height: 1.34;
  }

  .report-builder .ai-feature p {
    margin-top: 6px;
    font-size: clamp(16.5px, 1.08vw, 20px);
    line-height: 1.42;
  }
}

/* Screen 6 icons are intentionally smaller to match the visual weight of screens 5/7. */
.clinical-ai .ai-feature {
  grid-template-columns: 52px minmax(0, 1fr);
}

.clinical-ai .ai-feature .icon-card {
  width: 52px;
  height: 52px;
}

.clinical-ai .ai-feature .icon-card svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.05;
}

@media (min-width: 861px) and (max-width: 1120px) {
  .clinical-ai .ai-feature {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .clinical-ai .ai-feature .icon-card {
    width: 46px;
    height: 46px;
  }

  .clinical-ai .ai-feature .icon-card svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 741px) and (max-width: 860px) {
  .clinical-ai .ai-feature {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .clinical-ai .ai-feature .icon-card {
    width: 48px;
    height: 48px;
  }

  .clinical-ai .ai-feature .icon-card svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 740px) {
  .clinical-ai .ai-feature {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .clinical-ai .ai-feature .icon-card {
    width: 38px;
    height: 38px;
  }

  .clinical-ai .ai-feature .icon-card svg {
    width: 21px;
    height: 21px;
  }
}

@media (min-width: 1121px) {
  .clinical-ai .ai-feature__text {
    padding: 4px 0 clamp(18px, 2vh, 24px);
  }

  .clinical-ai .ai-feature h3 {
    color: #071326;
    font-size: clamp(17px, 1.12vw, 20.5px);
    font-weight: 800;
    line-height: 1.34;
  }

  .clinical-ai .ai-feature p {
    margin-top: 6px;
    color: rgba(48, 65, 89, 0.86);
    font-size: clamp(16.5px, 1.08vw, 20px);
    line-height: 1.42;
  }
}

@media (min-width: 1121px) and (max-height: 760px) {
  .clinical-ai .ai-feature-list {
    gap: 12px;
    width: min(100%, 490px);
    max-width: 490px;
  }

  .clinical-ai .ai-feature {
    gap: 14px;
  }

  .clinical-ai .ai-feature__text {
    padding: 3px 0 12px;
  }
}

/* Alternating layout: screen 6 uses visual-left / content-right on desktop. */
@media (min-width: 1121px) {
  .clinical-ai::before {
    inset: 20% 47% -9% -12%;
    transform: rotate(5deg);
  }

  .clinical-ai::after {
    inset: auto 32% -18% -16%;
  }

  .clinical-ai .molecule--clinical {
    left: -32px;
    right: auto;
    transform: scaleX(-1);
  }

  .clinical-ai .ai-screen__inner {
    grid-template-columns: minmax(0, 1fr) clamp(500px, 36.5vw, 660px);
    grid-template-areas:
      "visual copy"
      "visual features";
    row-gap: clamp(18px, 2.2vh, 24px);
  }

  .clinical-ai .ai-screen__copy,
  .clinical-ai .ai-feature-list {
    justify-self: stretch;
  }

  .clinical-ai .ai-feature-list {
    margin-top: clamp(-36px, -3.5vh, -28px);
    transform: none;
  }

  .clinical-ai__visual {
    justify-self: start;
  }
}

@media (min-width: 1121px) and (max-height: 820px) {
  .clinical-ai .ai-feature-list {
    margin-top: clamp(-58px, -6.8vh, -52px);
    transform: none;
  }
}

@media (min-width: 1121px) and (max-width: 1240px) {
  .clinical-ai .ai-feature-list {
    margin-top: clamp(-12px, -1.25vh, -8px);
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .clinical-ai .ai-feature-list {
    transform: translateY(-18px);
  }
}

@media (min-width: 1121px) {
  .clinical-ai h2 {
    margin-top: clamp(12px, 1.8vh, 20px);
  }

  .clinical-ai .ai-feature-list {
    gap: clamp(12px, 1.55vh, 16px);
    margin-top: clamp(-8px, -0.6vh, -4px);
  }

  .clinical-ai .ai-feature__text {
    padding: 2px 0 clamp(8px, 1.2vh, 12px);
  }

  .clinical-ai .ai-feature h3 {
    font-size: clamp(16.5px, 1.05vw, 19.5px);
    line-height: 1.28;
  }

  .clinical-ai .ai-feature p {
    margin-top: 5px;
    font-size: clamp(15.5px, 0.98vw, 18.5px);
    line-height: 1.36;
  }

  .clinical-ai__visual {
    transform: translateY(clamp(22px, 2.9vh, 32px)) scale(0.94);
    transform-origin: left top;
  }
}

/* Screen 7: actual product screenshots. */
.report-stage--screenshots {
  isolation: isolate;
}

.report-screenshot {
  display: block;
  height: auto;
  max-width: 100%;
  user-select: none;
}

.report-screenshot--main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.report-screenshot--modal {
  position: absolute;
  z-index: 2;
  top: 72%;
  left: clamp(-100px, -7.4vw, -30px);
  width: clamp(340px, 56%, 620px);
  filter: drop-shadow(0 24px 44px rgba(26, 51, 42, 0.16));
}

@media (min-width: 1241px) and (max-width: 1500px) {
  .report-screenshot--modal {
    top: 76%;
    left: clamp(-30px, -2vw, -10px);
    width: clamp(300px, 50%, 500px);
  }
}

@media (min-width: 1121px) and (max-height: 920px) {
  .report-screenshot--modal {
    top: 61%;
    left: clamp(-14px, -1vw, 0px);
    width: clamp(280px, 48%, 460px);
  }
}

@media (min-width: 741px) and (max-width: 1120px) {
  .report-stage--screenshots {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
    padding-bottom: 0;
  }

  .report-screenshot--main,
  .report-screenshot--modal {
    justify-self: center;
  }

  .report-screenshot--modal {
    position: relative;
    inset: auto;
    width: min(84%, 560px);
    transform: none;
  }
}

@media (max-width: 740px) {
  .report-stage--screenshots {
    display: grid;
    gap: 12px;
    padding-bottom: 0;
  }

  .report-screenshot--main,
  .report-screenshot--modal {
    justify-self: center;
  }

  .report-screenshot--modal {
    position: relative;
    inset: auto;
    width: min(94%, 400px);
    transform: none;
  }
}
