:root {
  --navy: #062d68;
  --navy-deep: #02275c;
  --navy-mid: #0a4387;
  --blue: #1767b4;
  --teal: #04a7a3;
  --teal-dark: #008b87;
  --teal-soft: #e5f7f6;
  --red: #ef343c;
  --red-soft: #fff0ed;
  --green: #62aa3e;
  --green-soft: #eaf6e6;
  --orange: #f6ab18;
  --orange-soft: #fff8e8;
  --ink: #0d2850;
  --muted: #506683;
  --line: #dce7f0;
  --line-strong: #c7d8e5;
  --paper: #ffffff;
  --page: #f7fafc;
  --shadow: 0 8px 24px rgba(2, 45, 104, .08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.42;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(4, 167, 163, .28);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  width: min(1536px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 36px rgba(2, 45, 104, .08);
}

/* Approved mock header */
.site-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 270px;
  align-items: center;
  gap: 30px;
  min-height: 140px;
  padding: 0 165px 0 0;
  background: #fff;
  border-bottom: 1px solid #eff4f8;
}
.hospital-lockup {
  position: relative;
  align-self: stretch;
  width: 320px;
  overflow: hidden;
  background: #fff;
}
.hospital-lockup img {
  position: absolute;
  top: 0;
  left: 0;
  width: 1536px;
  max-width: none;
  height: 1024px;
}
.header-title { min-width: 0; padding: 4px 0 0; }
.header-title h1 {
  margin: 0;
  color: #0c2e66;
  font-size: clamp(1.75rem, 2.25vw, 2.25rem);
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.header-tagline {
  margin: 9px 0 0;
  color: #526783;
  font-size: 1.05rem;
  font-weight: 650;
}
.header-note {
  margin: 0;
  color: #18345a;
  font-size: .93rem;
}
.privacy-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-self: end;
  min-width: 248px;
}
.privacy-lockup strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1rem;
}
.privacy-lockup p {
  margin: 2px 0 0;
  color: #203b62;
  font-size: .88rem;
  line-height: 1.35;
}
.privacy-shield {
  display: grid;
  place-items: center;
  width: 44px;
  height: 49px;
  color: #fff;
  background: linear-gradient(145deg, #12bcb5, #018d8b);
  border-radius: 13px 13px 20px 20px;
  box-shadow: 0 7px 16px rgba(0, 139, 135, .2);
  font-size: 1.1rem;
}
.privacy-shield span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 23px;
  border: 1.5px solid #fff;
  border-radius: 5px;
}
.header-decoration {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 182px;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
}
.header-decoration img {
  position: absolute;
  top: 0;
  right: 0;
  width: 1536px;
  max-width: none;
  height: 1024px;
}

/* Four-part workflow */
.workflow {
  display: grid;
  grid-template-columns: 250px 266px 265px 360px;
  gap: 12px;
  min-height: 57px;
  padding: 10px 18px 8px;
  background: #fbfdfe;
  border-bottom: 1px solid var(--line);
}
.workflow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  padding: 0 24px 0 28px;
  color: #314966;
  background: linear-gradient(180deg, #f8fbfd, #eef4f8);
  border: 1px solid #e4edf3;
  border-radius: 7px;
  font-weight: 720;
  text-align: left;
  box-shadow: 0 2px 5px rgba(10, 67, 135, .03);
}
.workflow-step:hover { background: #f2f8fb; }
.workflow-step > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-step.active {
  color: #fff;
  background: linear-gradient(135deg, #0c3f85, #00377d 72%, #07539b);
  border-color: #073c7d;
  box-shadow: 0 7px 15px rgba(3, 56, 121, .18);
}
.workflow-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: #173d6a;
  background: #dfeaf2;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 850;
}
.workflow-step.complete { color: var(--teal-dark); }
.workflow-step.complete .workflow-number { color: #fff; background: linear-gradient(145deg, #14b8b1, #008d89); }
.workflow-step.active .workflow-number { color: #153865; background: #fff; }
.workflow-chevron { margin-left: auto; color: #c1d4df; font-size: 1.7rem; line-height: 1; }
.workflow-step.active .workflow-chevron { color: #fff; opacity: .9; }

.scoring-workspace {
  display: grid;
  grid-template-columns: minmax(580px, 669px) minmax(420px, 482px) 304px;
  gap: 16px;
  align-items: start;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, #fff, #fbfdfe 88%);
}
.input-card, .results-card, .session-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Response panel */
.measure-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(110deg, #062d68, #073f86 70%, #075194);
}
.measure-identity, .results-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.measure-identity > div, .results-identity > div { min-width: 0; }
.measure-icon, .results-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  color: #fff;
  background: rgba(24, 116, 201, .48);
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
}
.measure-banner h2 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.2;
  font-weight: 780;
  overflow-wrap: anywhere;
}
.measure-banner p { margin: 3px 0 0; color: #edf6ff; font-size: .77rem; }
.banner-button {
  flex: 0 0 auto;
  align-self: center;
  min-height: 40px;
  padding: 0 12px;
  color: #fff;
  background: rgba(2, 32, 83, .2);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 720;
  white-space: nowrap;
}
.banner-button:hover { background: rgba(255,255,255,.12); }
.input-instructions {
  min-height: 69px;
  padding: 16px 22px 13px;
  color: #173459;
  background: linear-gradient(180deg, #fbfdff, #f7fbfd);
  border-bottom: 1px solid var(--line);
}
.input-instructions p { margin: 0; font-size: .78rem; line-height: 1.55; }
.measure-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 18px;
  background: #f5f9fb;
  border-bottom: 1px solid var(--line);
}
.option-group label, .control-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.option-group select { min-height: 35px; }
.response-column-header {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) 286px 90px;
  align-items: end;
  min-height: 55px;
  padding: 9px 12px 8px;
  color: #16345c;
  background: #fff;
  border-bottom: 1px solid var(--line-strong);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.response-column-header .scale-head { text-align: center; }
.scale-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #6c7f95;
  font-size: .58rem;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}
.response-rows {
  max-height: 370px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #b7cbd9 #f4f7f9;
}
.response-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) 286px 90px;
  align-items: center;
  min-height: 44px;
  padding: 5px 12px;
  background: #fff;
  border-bottom: 1px solid #e4ebf0;
}
.response-row:nth-child(even) { background: #fcfdfe; }
.response-row:hover { background: #f7fbfd; }
.item-number { color: #18385f; font-size: .7rem; }
.item-label {
  min-width: 0;
  padding-right: 10px;
  color: #173459;
  font-size: .69rem;
  line-height: 1.3;
}
.item-label strong { display: none; }
.row-control { min-width: 0; }
select, .text-input, .number-input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd9e4;
  border-radius: 7px;
}
.intensity-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding-right: 7px;
}
.intensity-scale label, .yes-no label { position: relative; }
.intensity-scale input, .yes-no input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.intensity-scale span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0 auto;
  color: #15365d;
  background: #fff;
  border: 1px solid #b7c9d7;
  border-radius: 50%;
  font-size: .67rem;
  font-weight: 720;
}
.intensity-scale input:checked + span {
  color: #fff;
  background: linear-gradient(145deg, #18b4ae, #018f8b);
  border-color: var(--teal-dark);
  box-shadow: 0 4px 10px rgba(0, 141, 137, .2);
}
.yes-no { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.yes-no span {
  display: grid;
  place-items: center;
  min-height: 27px;
  padding: 0 5px;
  color: #15365d;
  background: #fff;
  border: 1px solid #b8cad7;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 720;
}
.yes-no label:first-child input:checked + span { color: #fff; background: linear-gradient(180deg, #f04a4d, #df2f38); border-color: #dc2f37; }
.yes-no label:last-child input:checked + span { color: #fff; background: linear-gradient(180deg, #70b54b, #519c36); border-color: #4c9734; }
.standard-row {
  grid-template-columns: 34px minmax(210px, 1fr) minmax(155px, 210px) minmax(140px, 185px);
  min-height: 52px;
}
.standard-row.no-extra { grid-template-columns: 34px minmax(260px, 1fr) minmax(170px, 240px); }
.standard-row .yes-no span { min-height: 34px; border-radius: 7px; }
.standard-column-header {
  grid-template-columns: 34px minmax(210px, 1fr) minmax(155px, 210px) minmax(140px, 185px);
  min-height: 44px;
  align-items: center;
}
.standard-column-header.no-extra { grid-template-columns: 34px minmax(260px, 1fr) minmax(170px, 240px); }
.optional-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  color: #52687e;
  background: #edf2f5;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 750;
}
.completion-strip {
  padding: 9px 12px 10px;
  background: #fff;
  border-top: 1px solid #f1f4f7;
}
.completion-strip strong { display: block; margin-bottom: 6px; color: #173459; font-size: .68rem; }
.progress-track { height: 8px; overflow: hidden; background: #e6edf2; border-radius: 999px; }
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #17b6ae, #02a19d);
  border-radius: inherit;
  transition: width .22s ease;
}
.form-status {
  min-height: 19px;
  margin: 0;
  padding: 3px 14px 0;
  color: #667d92;
  background: #fff;
  font-size: .65rem;
  text-align: center;
}
.form-status.error { color: #c7252c; font-weight: 750; }
.input-actions {
  display: grid;
  grid-template-columns: 105px 1fr 188px;
  gap: 14px;
  padding: 11px 12px 14px;
  background: #fff;
}
.outline-button, .clear-button, .primary-button, .print-button, .result-outline-button, .result-primary-button, .print-all-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 750;
}
.outline-button { color: #10376a; background: #fff; border: 1px solid #1a5aa0; }
.clear-button { color: #e23338; background: #fff; border: 1px solid #ff7e80; }
.primary-button { color: #fff; background: linear-gradient(135deg, #07366f, #043e84); border: 1px solid #07366f; box-shadow: 0 7px 14px rgba(4, 56, 122, .17); }
.outline-button:hover, .clear-button:hover { background: #f7fbfd; }
.primary-button:hover, .result-primary-button:hover { filter: brightness(1.06); }

/* Results panel */
.results-card { padding: 0 16px 16px; }
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 77px;
  margin: 0 -16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.results-icon { color: #fff; background: linear-gradient(145deg, #20c5be, #069f9b); font-size: 1.15rem; }
.results-heading h2 { margin: 0; color: #0a2f69; font-size: 1.18rem; line-height: 1.2; }
.results-heading h2 { overflow-wrap: anywhere; }
.results-heading p { margin: 3px 0 0; color: #60758a; font-size: .64rem; }
.results-heading strong { color: #0b559c; }
.print-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  color: #0b3470;
  background: #fff;
  border: 1px solid #1a5aa0;
  font-size: .72rem;
}
.completed-row { margin: 8px 0 7px; color: #6d8194; font-size: .58rem; text-align: right; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 126px;
  padding: 15px;
  background: linear-gradient(180deg, #fff, #fbfdfe);
  border: 1px solid #9bdeda;
  border-radius: 10px;
  text-align: center;
}
.metric-card:nth-child(2n) { border-color: #ffaaa1; }
.metric-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 1.15rem;
}
.metric-card:nth-child(2n) .metric-icon { color: #db3538; background: var(--red-soft); }
.metric-card > div:last-child { min-width: 0; flex: 1; }
.metric-label { margin: 0; color: var(--teal-dark); font-size: .74rem; font-weight: 820; text-transform: uppercase; }
.metric-card:nth-child(2n) .metric-label { color: #dd3439; }
.metric-value { margin: 6px 0 0; color: #0b2e67; font-size: 1.9rem; line-height: 1; font-weight: 840; letter-spacing: -.035em; }
.metric-value small { color: #0b2e67; font-size: 1rem; font-weight: 750; letter-spacing: 0; }
.metric-caption { margin: 7px 0 0; color: #6d8194; font-size: .59rem; line-height: 1.35; }
.scale-card {
  display: block;
  min-height: 335px;
  padding: 12px 12px 15px;
}
.scale-card .metric-label {
  margin: -12px -12px 12px;
  padding: 13px 8px 11px;
  background: linear-gradient(180deg, rgba(4,167,163,.08), rgba(4,167,163,.03));
  border-bottom: 1px solid #b7e7e3;
}
.scale-card.problem .metric-label {
  color: #e32f36;
  background: linear-gradient(180deg, rgba(239,52,60,.08), rgba(239,52,60,.03));
  border-color: #ffc7c2;
}
.scale-section-title { margin: 13px 0 3px; color: #17375e; font-size: .72rem; font-weight: 720; }
.scale-raw { margin: 0; color: #0b2f68; font-size: 1.95rem; line-height: 1.1; font-weight: 850; letter-spacing: -.035em; }
.scale-t { margin: 2px 0 0; color: var(--teal-dark); font-size: 2rem; line-height: 1.1; font-weight: 850; }
.scale-card.problem .scale-t { color: #e53238; }
.scale-cutoff { margin: 14px 0 0; color: #718398; font-size: .61rem; }
.scale-status {
  display: inline-flex;
  margin-top: 5px;
  padding: 5px 16px;
  color: #047b78;
  background: #e3f5f3;
  border-radius: 8px;
  font-size: .66rem;
  font-weight: 800;
}
.scale-card.problem .scale-status { color: #d82d33; background: #ffebe8; }
.scale-status.below { color: #3f7e31 !important; background: #eaf6e6 !important; }
.scale-awaiting { display: grid; min-height: 276px; place-items: center; color: #7a8c9d; font-size: .72rem; }
.interpretation-card {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  margin-top: 16px;
  padding: 11px 13px;
  background: linear-gradient(120deg, #fff9eb, #fffdf7);
  border: 1px solid #f5cc72;
  border-radius: 10px;
}
.interpretation-heading { display: flex; align-items: center; gap: 10px; }
.interpretation-heading h3, .breakdown-heading h3 { margin: 0; color: #25354d; font-size: .74rem; }
.interpretation-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: 1rem;
}
.interpretation-card > p { margin: 0; color: #28394f; font-size: .62rem; line-height: 1.55; }
.status-pill {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 800;
}
.status-pill.neutral { color: #6b7d8f; background: #edf1f4; }
.status-pill.ready { color: #30732b; background: #e6f4e3; }
.status-pill.flag { color: #c72d31; background: #ffe8e5; }
.clinical-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 11px;
  color: #174a82;
  background: linear-gradient(180deg, #f4faff, #edf6fd);
  border: 1px solid #79b9ee;
  border-radius: 8px;
  font-size: .59rem;
}
.clinical-note p { margin: 0; }
.breakdown-card {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.breakdown-row { margin-top: 9px; }
.bar-label-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; color: #657b90; font-size: .59rem; }
.bar-label-row span { min-width: 0; overflow-wrap: anywhere; }
.bar-label-row strong { flex: 0 0 auto; color: #17375e; white-space: nowrap; }
.bar-track { height: 7px; overflow: hidden; background: #e6edf2; border-radius: 999px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal), #0e6fb5); border-radius: inherit; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.result-outline-button, .result-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  text-align: left;
}
.result-outline-button { color: #0d4e94; background: #fff; border: 1px solid #2b78bd; }
.result-primary-button { color: #fff; background: linear-gradient(135deg, #063670, #043f84); border: 1px solid #063670; }
.result-actions strong, .result-actions small { display: block; }
.result-actions strong { font-size: .68rem; }
.result-actions small { margin-top: 1px; color: #678198; font-size: .55rem; }
.result-primary-button small { color: #dcecff; }

/* Session column */
.session-sidebar { display: grid; gap: 20px; }
@media (min-width: 1321px) {
  .session-sidebar { transform: translateX(12px); }
}
.session-card header {
  min-height: 70px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #062d68, #064387);
}
.session-card header h2 { margin: 0; font-size: .8rem; }
.session-card header p { margin: 6px 0 0; color: #edf6ff; font-size: .67rem; }
.session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 61px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.session-summary strong { font-size: .72rem; }
.session-summary strong span { color: #61778c; font-weight: 600; }
.count-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #123c6d;
  background: #e4eff8;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 850;
}
.session-measure-list { min-height: 182px; }
.empty-session { margin: 0; padding: 30px 16px; color: #75899b; font-size: .7rem; text-align: center; }
.session-measure {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto 12px;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  text-align: left;
  transition: background .16s ease, box-shadow .16s ease;
}
.session-measure:hover { background: #f1fafb; }
.session-measure.active { background: #e9f7f7; box-shadow: inset 4px 0 0 var(--teal); }
.session-measure-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 850;
}
.session-measure:nth-child(3n+2) .session-measure-icon { background: #61a940; }
.session-measure:nth-child(3n) .session-measure-icon { background: #9f5bc4; }
.session-measure-copy { min-width: 0; }
.session-measure strong, .session-measure small { display: block; }
.session-measure strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.session-measure small { margin-top: 3px; color: #61778c; font-size: .58rem; }
.completed-badge { padding: 4px 7px; color: #007a77; background: #dff4f2; border-radius: 7px; font-size: .53rem; }
.session-measure.active .completed-badge { color: #fff; background: var(--teal-dark); }
.session-arrow { color: #5b7894; font-size: 1.1rem; }
.session-measure.active .session-arrow { color: var(--teal-dark); }
.print-all-button {
  display: grid;
  grid-template-columns: 22px 1fr 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  color: #123c70;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: .67rem;
  text-align: left;
}
.successive-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 20px 90px 20px 18px;
  background: linear-gradient(145deg, #edf8ff, #f6fbff);
  border: 1px solid #d9eaf6;
  border-radius: 13px;
}
.successive-title { display: flex; align-items: center; gap: 9px; }
.successive-title h2 { margin: 0; color: #123a73; font-size: .75rem; }
.successive-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #0b539c;
  background: #d7edfc;
  border-radius: 50%;
  font-size: 1.2rem;
}
.successive-card > p { margin: 24px 0 0; color: #253c58; font-size: .64rem; line-height: 1.65; }
.clipboard-art {
  position: absolute;
  right: -2px;
  bottom: -8px;
  display: grid;
  gap: 5px;
  width: 70px;
  height: 98px;
  padding: 20px 14px 10px;
  color: #0eb6ad;
  background: #fff;
  border: 6px solid #43c7c0;
  border-radius: 7px;
  transform: rotate(9deg);
  box-shadow: 0 6px 14px rgba(2,45,104,.12);
}
.clip-top { position: absolute; top: -12px; left: 20px; width: 30px; height: 18px; background: #2e7bb7; border-radius: 8px 8px 3px 3px; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 1px minmax(260px, .9fr) minmax(430px, 1.55fr);
  gap: 26px;
  align-items: center;
  min-height: 100px;
  padding: 15px 38px;
  color: #fff;
  background: linear-gradient(120deg, #052d68, #043a79 70%, #03498d);
}
.site-footer section { display: flex; align-items: center; gap: 15px; }
.site-footer h2 { margin: 0; font-size: .78rem; }
.site-footer p { margin: 4px 0 0; color: #e3effb; font-size: .62rem; line-height: 1.5; }
.footer-shield, .footer-help {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  color: #1ac6bd;
  border: 4px solid #1ac6bd;
  border-radius: 13px 13px 20px 20px;
  font-size: 1rem;
}
.footer-help { color: #ffd4a4; border-color: #ffd4a4; border-radius: 50%; font-size: 1.5rem; }
.footer-divider { width: 1px; height: 54px; background: rgba(255,255,255,.5); }
.footer-brand { justify-self: end; }
.footer-brand h2 { font-size: .9rem; }
.footer-heart { color: #ef3340; font-size: 2.6rem; text-shadow: 11px -5px 0 #64aa3b; }

/* Dialogs */
dialog {
  width: min(480px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 24px 80px rgba(0, 28, 71, .28);
}
dialog[open] { display: block; }
dialog::backdrop { background: rgba(3, 30, 68, .45); backdrop-filter: blur(3px); }
.dialog-form { max-height: min(720px, calc(100vh - 36px)); padding: 23px; overflow-y: auto; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; color: #0a326c; font-size: 1.35rem; }
.dialog-kicker { display: block; margin-bottom: 3px; color: var(--teal-dark); font-size: .66rem; font-weight: 850; letter-spacing: .08em; }
.dialog-close { width: 33px; height: 33px; color: #60758a; background: #f3f7f9; border: 0; border-radius: 50%; font-size: 1.25rem; }
.field-group { display: block; margin-bottom: 17px; }
.field-label { display: block; margin-bottom: 6px; color: #18385f; font-size: .76rem; font-weight: 780; }
.optional { color: #6c8194; font-weight: 600; }
.dialog-note { margin: 0 0 18px; padding: 12px; color: #49657c; background: #f4f9fb; border-left: 4px solid var(--teal); border-radius: 7px; font-size: .7rem; }
.scoring-info-content {
  margin: -4px 0 20px;
  padding: 14px 15px;
  color: #344f69;
  background: #f4f9fb;
  border: 1px solid #d8e7ef;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}
.scoring-info-content p { margin: 0; font-size: .78rem; line-height: 1.65; overflow-wrap: anywhere; }
.dialog-primary, .dialog-secondary, .dialog-danger { min-height: 42px; padding: 0 15px; border-radius: 8px; font-weight: 760; }
.dialog-primary { width: 100%; color: #fff; background: linear-gradient(135deg, #07376f, #06468a); border: 0; }
.dialog-secondary { color: #18385f; background: #fff; border: 1px solid var(--line-strong); }
.dialog-danger { color: #fff; background: #df343a; border: 1px solid #df343a; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (max-width: 1320px) {
  .site-header { grid-template-columns: 320px minmax(0, 1fr) 240px; padding-right: 85px; gap: 22px; }
  .header-decoration { width: 100px; }
  .header-title h1 { font-size: 1.75rem; }
  .workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scoring-workspace { grid-template-columns: minmax(560px, 1.35fr) minmax(410px, 1fr); }
  .session-sidebar { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .session-measure-list { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 0; }
  .session-measure { border-right: 1px solid var(--line); }
}
@media (max-width: 1040px) {
  .site-header { grid-template-columns: 300px 1fr; min-height: 132px; padding-right: 18px; }
  .hospital-lockup { width: 300px; }
  .privacy-lockup, .header-decoration { display: none; }
  .workflow-step { padding: 0 14px; }
  .scoring-workspace { grid-template-columns: 1fr; }
  .session-sidebar { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-divider { display: none; }
  .footer-brand { justify-self: start; grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 13px; }
  .site-header { display: block; min-height: 118px; padding: 14px 16px; }
  .hospital-lockup { display: none; }
  .header-title { padding: 0; }
  .header-title h1 { white-space: normal; font-size: 1.55rem; }
  .workflow { grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 8px; }
  .workflow-step { justify-content: center; min-height: 52px; padding: 5px; font-size: 0; }
  .workflow-step > span:nth-child(2) { display: none; }
  .workflow-number { font-size: .75rem; }
  .workflow-chevron { display: none; }
  .scoring-workspace { padding: 10px; }
  .measure-banner { grid-template-columns: minmax(0, 1fr) 40px; align-items: flex-start; }
  .banner-button { width: 40px; overflow: hidden; padding: 0; font-size: 0; }
  .banner-button span { font-size: 1rem; }
  .response-column-header { display: none; }
  .response-rows { max-height: 480px; }
  .response-row, .standard-row, .standard-row.no-extra {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    padding: 10px;
  }
  .response-row > :nth-child(n+3) { grid-column: 2; }
  .intensity-scale { padding: 4px 0; }
  .intensity-scale span { width: 28px; height: 28px; }
  .input-actions { grid-template-columns: 1fr 1fr; }
  .primary-button { grid-column: 1 / -1; grid-row: 1; }
  .metric-grid, .result-actions { grid-template-columns: 1fr; }
  .interpretation-card { grid-template-columns: 1fr; }
  .session-sidebar { grid-template-columns: 1fr; }
  .session-measure-list { display: block; }
  .site-footer { grid-template-columns: 1fr; padding: 22px; }
  .footer-brand { grid-column: auto; }
}

.print-report { display: none; }

@media print {
  @page { margin: .48in; }

  body { background: #fff; }
  body.printing-report > .app-shell { display: none !important; }
  body.printing-report > .print-report {
    display: block !important;
    width: 100%;
    color: #102a4d;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.35;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body:not(.printing-report), body:not(.printing-report) .app-shell { background: #fff; box-shadow: none; }
  body:not(.printing-report) .site-header,
  body:not(.printing-report) .workflow,
  body:not(.printing-report) .input-card,
  body:not(.printing-report) .session-sidebar,
  body:not(.printing-report) .site-footer,
  body:not(.printing-report) .result-actions { display: none !important; }
  body:not(.printing-report) .scoring-workspace { display: block; padding: 0; }
  body:not(.printing-report) .results-card { border: 0; box-shadow: none; }
  body:not(.printing-report) .results-card,
  body:not(.printing-report) .metric-grid,
  body:not(.printing-report) .interpretation-card,
  body:not(.printing-report) .clinical-note,
  body:not(.printing-report) .breakdown-card { break-inside: avoid; }

  .print-report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 15px;
    border-bottom: 4px solid #0caaa5;
  }
  .print-report-header h1 { margin: 3px 0; color: #062f67; font-size: 21pt; line-height: 1.1; }
  .print-report-header p { margin: 0; color: #516a82; }
  .print-brand { color: #062f67 !important; font-size: 11pt; font-weight: 800; }
  .print-report-session {
    min-width: 165px;
    padding: 10px 13px;
    color: #fff;
    background: #06366f;
    border-radius: 7px;
    text-align: right;
  }
  .print-report-session span, .print-report-session strong { display: block; }
  .print-report-session span { color: #dcecff; font-size: 8pt; }
  .print-report-session strong { margin: 2px 0 5px; font-size: 9pt; }

  .print-summary { margin-top: 20px; break-inside: avoid; }
  .print-summary h2 { margin: 0 0 8px; color: #06366f; font-size: 14pt; }
  .print-summary table, .print-breakdown table { width: 100%; border-collapse: collapse; }
  .print-summary th, .print-summary td, .print-breakdown th, .print-breakdown td {
    padding: 7px 8px;
    border: 1px solid #cbd9e5;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
  .print-summary thead th { color: #fff; background: #06366f; font-size: 8pt; }
  .print-summary tbody th { color: #06366f; background: #edf7fa; }
  .print-summary td { font-size: 8pt; }
  .print-summary + .print-results-list { break-before: page; }

  .print-result {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #b8ccdc;
    border-top: 5px solid #0caaa5;
    border-radius: 7px;
    break-inside: auto;
  }
  .print-result + .print-result { break-before: page; }
  .print-result-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
  .print-result-heading h2 { margin: 2px 0; color: #06366f; font-size: 17pt; }
  .print-result-heading p { margin: 0; color: #5a7085; font-size: 9pt; }
  .print-result-number { color: #0a8f8a; font-size: 8pt; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .print-status {
    display: inline-block;
    max-width: 180px;
    padding: 5px 9px;
    color: #087c77;
    background: #dff5f3;
    border-radius: 999px;
    font-size: 8pt;
    font-weight: 800;
    text-align: center;
  }
  .print-status.flag { color: #b51d22; background: #ffe3e1; }

  .print-result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
  .print-result-meta div { padding: 8px 10px; background: #f3f8fb; border-radius: 5px; }
  .print-result-meta dt { color: #60788f; font-size: 7.5pt; font-weight: 800; text-transform: uppercase; }
  .print-result-meta dd { margin: 2px 0 0; color: #102a4d; font-weight: 700; }

  .print-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .print-metric { padding: 10px; border: 1px solid #bcd8dc; border-radius: 6px; }
  .print-metric > span { display: block; color: #087f7a; font-size: 8pt; font-weight: 800; text-transform: uppercase; }
  .print-metric strong { display: block; margin: 3px 0; color: #082d61; font-size: 18pt; }
  .print-metric strong small { font-size: 10pt; }
  .print-metric p { margin: 0; color: #61778c; font-size: 7.5pt; }

  .print-breakdown, .print-interpretation { margin-top: 13px; }
  .print-result-heading, .print-result-meta, .print-metrics, .print-interpretation { break-inside: avoid; }
  .print-breakdown { break-inside: auto; }
  .print-breakdown tr { break-inside: avoid; }
  .print-breakdown h3, .print-interpretation h3 { margin: 0 0 6px; color: #06366f; font-size: 10pt; }
  .print-breakdown th { width: 70%; color: #173a60; background: #f4f8fb; }
  .print-breakdown td { text-align: right; font-weight: 700; }
  .print-interpretation { padding: 10px 12px; background: #fff8e9; border-left: 4px solid #f5ad18; border-radius: 5px; }
  .print-interpretation p { margin: 0; color: #344c63; font-size: 8.5pt; }

  .print-report-footer { margin-top: 18px; padding-top: 9px; color: #5c7184; border-top: 1px solid #cbd9e5; font-size: 7.5pt; }
  .print-report-footer p { margin: 2px 0; }
}
