:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --ink: #0b1728;
  --ink-soft: #26374c;
  --muted: #5d6f85;
  --line: #dbe5ee;
  --line-strong: #c4d3e1;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: #d9f1ed;
  --blue: #2457a6;
  --blue-soft: #e6eefb;
  --amber: #a15c00;
  --amber-soft: #fdf0d5;
  --red: #b42318;
  --red-soft: #fde8e6;
  --green: #177245;
  --green-soft: #e2f4e9;
  --shadow: 0 18px 50px rgba(17, 43, 68, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 43, 68, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

button, input, select {
  font: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 248, 251, 0.88);
  border-bottom: 1px solid rgba(196, 211, 225, 0.7);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(11, 23, 40, 0.2);
}

.brand-name {
  display: block;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 23, 40, 0.16);
}

.button-primary:hover {
  background: #14263d;
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink);
}

.button-quiet {
  background: var(--surface-soft);
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--accent-soft);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.button.is-loading .button-spinner {
  display: inline-block;
}

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

.hero {
  position: relative;
  padding: 70px 0 44px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -180px -10% auto auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  list-style: none;
}

.hero-points li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 800;
}

.version-panel {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.version-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.version-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.version-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.version-row strong {
  font-size: 1.02rem;
  text-align: right;
}

.version-date {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
}

.version-proof {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.proof-number {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.proof-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.proof-detail {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.proof-detail details {
  margin-top: 4px;
  color: var(--muted);
}

.proof-detail summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}

.proof-detail p {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 48px 0;
}

.page-hero {
  padding: 62px 0 42px;
  background:
    radial-gradient(circle at 88% 10%, rgba(15, 118, 110, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(245, 248, 251, 0));
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.page-hero .lede {
  margin-bottom: 0;
}

.page-meta {
  display: grid;
  gap: 3px;
  padding: 18px 0 4px 22px;
  border-left: 1px solid var(--line-strong);
}

.meta-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-label:first-child {
  margin-top: 0;
}

.page-meta strong {
  font-size: 1.05rem;
}

.meta-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.path-card-clinic {
  background:
    radial-gradient(circle at 92% 0%, rgba(15, 118, 110, 0.15), transparent 45%),
    var(--surface);
  border-color: #b8ded9;
}

.path-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.path-card p {
  max-width: 480px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.path-card .button {
  margin-top: auto;
}

.card-grid.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.return-item {
  padding: 24px;
  background: var(--surface);
}

.return-index {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.return-item h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.return-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.button-light {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.button-light:hover {
  background: var(--accent-soft);
}

.developer-link {
  margin-top: 22px;
}

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

.stat-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.split-layout h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.split-layout p {
  color: var(--muted);
}

.code-card {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #dbeafe;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.76rem;
  line-height: 1.65;
}

.check-list.check-list-dark {
  color: var(--ink-soft);
}

.check-list.check-list-dark li::before {
  color: var(--accent);
}

code {
  padding: 1px 5px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 5px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.86em;
}

.code-card code,
.code-block code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: inherit;
}

.api-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.api-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.api-list code {
  display: inline-block;
  margin-bottom: 3px;
  font-weight: 700;
}

.api-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.api-callout {
  padding: 26px;
  background: var(--accent-soft);
  border: 1px solid #b8ded9;
  border-radius: var(--radius);
}

.api-callout h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.api-callout p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.api-callout .button {
  margin-top: 8px;
}

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

.conformance-card {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.conformance-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conformance-card strong {
  font-size: 0.94rem;
}

.conformance-card span:not(.conformance-label) {
  color: var(--muted);
  font-size: 0.78rem;
}

.clinical-note {
  margin: 4px 0 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .card-grid.card-grid-four,
  .returns-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-hero-inner,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .page-meta {
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    align-items: baseline;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .meta-label {
    margin-top: 0;
  }

  .meta-note {
    grid-column: 1 / -1;
  }

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

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1rem;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: none;
}

.limit-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 310px;
  padding: 12px 16px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list details {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 750;
}

.faq-list details p {
  margin: 10px 0 4px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.muted-copy {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

.limit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.limit-icon svg {
  display: block;
}

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

.capability-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.capability-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.evaluator-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(238, 244, 248, 0.65));
  border-block: 1px solid var(--line);
}

.evaluator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.evaluator-form {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel-heading,
.repeater-heading,
.results-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading h3,
.repeater-heading h4 {
  margin: 0;
  font-size: 1.05rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.panel-hint,
.repeater-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.panel-hint {
  margin: -8px 0 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.repeater-heading {
  align-items: flex-end;
  margin: 18px 0 10px;
}

.repeater-heading h4 {
  margin-bottom: 2px;
}

.repeater {
  display: grid;
  gap: 8px;
}

.repeater-row {
  display: grid;
  gap: 7px;
  align-items: center;
  padding: 7px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 11px;
}

.observation-row {
  grid-template-columns: minmax(0, 1fr) 150px 34px;
  grid-template-areas: "observation date remove";
}

.observation-row .combo-observation { grid-area: observation; }
.observation-row [data-field="date"] { grid-area: date; }
.observation-row [data-remove-row] { grid-area: remove; }

.dose-row {
  grid-template-columns: minmax(160px, 1.5fr) minmax(120px, 1fr) 34px;
  grid-template-areas:
    "cvx date remove"
    "mvx condition condition";
}

.dose-row .combo-cvx { grid-area: cvx; }
.dose-row .combo-mvx { grid-area: mvx; }
.dose-row [data-field="date"] { grid-area: date; }
.dose-row [data-field="doseConditionFlag"] { grid-area: condition; }
.dose-row [data-remove-row] { grid-area: remove; }

.combo {
  position: relative;
  min-width: 0;
}

.combo-input {
  width: 100%;
}

.combo-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 260px;
  padding: 5px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(17, 43, 68, 0.16);
}

.combo-option {
  display: block;
  width: 100%;
  padding: 7px 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
}

.combo-option:hover,
.combo-option.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.combo-empty {
  padding: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.repeater-row:focus-within {
  border-color: var(--accent-soft);
  background: #fff;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.icon-button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}

.form-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.form-message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-message.error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f2b8b2;
}

.form-message.info {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #b6dfd8;
}

.results-panel {
  position: sticky;
  top: 92px;
  min-height: 420px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.results-empty {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 30px;
  text-align: center;
}

.results-empty .empty-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 1.7rem;
}

.results-empty h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.results-empty p {
  max-width: 360px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-empty ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  list-style: none;
}

.results-empty li::before {
  content: "→";
  margin-right: 7px;
  color: var(--accent);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.summary-card {
  padding: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}

.summary-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.summary-label {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-section {
  margin-top: 20px;
}

.results-section-head {
  margin-bottom: 10px;
}

.results-section-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.count-pill {
  padding: 2px 9px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.group-list,
.series-list {
  display: grid;
  gap: 10px;
}

.group-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.group-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.group-title {
  margin: 0;
  font-size: 0.96rem;
}

.group-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.group-legend {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.group-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}

.filter-chip span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.filter-chip.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #b8ded9;
}

.group-engine-status {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.dose-progress {
  margin: 9px 0 2px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.progress-fill.status-not-started {
  background: var(--line-strong);
}

.progress-fill.status-in-progress {
  background: var(--blue);
}

.progress-fill.status-complete,
.progress-fill.status-immune {
  background: var(--green);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-valid,
.status-complete,
.status-satisfied,
.status-immune {
  color: var(--green);
  background: var(--green-soft);
}

.status-not-valid,
.status-contraindicated,
.status-not-satisfied {
  color: var(--red);
  background: var(--red-soft);
}

.status-extraneous,
.status-sub-standard,
.status-not-complete,
.status-aged-out,
.status-not-recommended {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-skipped {
  color: var(--muted);
  background: var(--surface-soft);
}

.status-not-started,
.status-no-date {
  color: var(--muted);
  background: var(--surface-soft);
}

.status-in-progress,
.status-upcoming {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-due-now {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-overdue {
  color: var(--red);
  background: var(--red-soft);
}

.status-eligible-now {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

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

.date-item {
  padding: 7px 8px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.date-label {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.date-value {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.chip {
  padding: 3px 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.reason-list {
  margin: 9px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.75rem;
}

.reason-list li + li {
  margin-top: 2px;
}

.series-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.series-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.series-card > summary::-webkit-details-marker {
  display: none;
}

.series-card > summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.series-card[open] > summary::before {
  content: "−";
}

.series-title {
  flex: 1;
  min-width: 0;
}

.series-title strong {
  display: block;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-title span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.68rem;
}

.series-body {
  padding: 0 12px 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.data-table th {
  padding: 6px 5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 6px 5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .muted {
  color: var(--muted);
}

.subheading {
  margin: 14px 0 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.notifications {
  margin-top: 18px;
  padding: 12px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.json-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.json-panel summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.json-panel pre {
  max-height: 320px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  color: #dbeafe;
  background: #0b1728;
  border-radius: 10px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-index {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.process-list h3 {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.developer-section {
  background: var(--ink);
  color: #fff;
}

.developer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.developer-section .eyebrow {
  color: #7dd3c8;
}

.developer-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.developer-section p {
  max-width: 520px;
  color: #b7c5d6;
}

.check-list {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  color: #d7e1ec;
  font-size: 0.84rem;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  margin-right: 8px;
  color: #7dd3c8;
  font-weight: 800;
}

.code-block {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  line-height: 1.65;
}

.contact-section {
  padding: 80px 0;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.contact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 36px 0 24px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.footer-meta {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  text-align: right;
}

.footer-meta a {
  font-weight: 700;
  text-decoration: none;
}

.footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-legal p {
  margin: 0;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .evaluator-layout,
  .developer-grid {
    grid-template-columns: 1fr;
  }

  .version-panel {
    max-width: 560px;
  }

  .results-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .card-grid,
  .process-list,
  .summary-grid,
  .date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .observation-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
    grid-template-areas: "observation date remove";
  }

  .observation-row [data-field="date"] { grid-area: date; }

  .dose-row {
    grid-template-columns: 1fr 1fr 34px;
    grid-template-areas:
      "cvx date remove"
      "mvx mvx mvx"
      "condition condition condition";
  }

  .split-heading,
  .contact-card,
  .footer-inner {
    display: grid;
    align-items: start;
  }

  .footer-meta {
    text-align: left;
  }

  .limit-note {
    max-width: none;
  }
}

@media (max-width: 460px) {
  .summary-grid,
  .date-grid,
  .card-grid,
  .process-list,
  .stat-grid,
  .returns-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .results-panel,
  .version-panel,
  .contact-card {
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .form-actions {
    display: grid;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .evaluator-form,
  .site-footer,
  .json-panel,
  .contact-section {
    display: none !important;
  }

  .results-panel {
    position: static;
    border: 0;
    box-shadow: none;
  }

  body {
    background: #fff;
  }
}
