.diagnostic-shell { max-width: 1120px; }
.intro-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 78px); padding: clamp(28px, 6vw, 72px); overflow: hidden; position: relative; }
.intro-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -190px; top: -150px; border: 55px solid rgba(191, 214, 177, .42); border-radius: 46% 54% 64% 36%; transform: rotate(20deg); pointer-events: none; }
.intro-card h1 { font-size: clamp(2.05rem, 5.4vw, 4.85rem); line-height: 1.04; letter-spacing: -.04em; }
.intro-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.intro-points span { padding: 8px 12px; border-radius: 999px; background: var(--mint); color: var(--leaf-dark); font-size: .82rem; font-weight: 750; }
.context-card { position: relative; z-index: 1; padding: 26px; border-radius: 22px; background: var(--ink); color: white; }
.context-card h2 { font-size: 1.65rem; }
.context-card .muted { color: #bfcac4; }
.context-card .field input { background: #1d2a25; border-color: #3a4a43; color: white; }
.context-card .field input::placeholder { color: #7f8e87; }
.context-card > .btn { margin-top: 24px; }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 20px 0; color: #cbd4cf; font-size: .78rem; }
.consent-row input { width: 19px; height: 19px; accent-color: var(--lime); }
.submission-consent { margin-top: 18px; padding: 20px 24px; }
.submission-consent .consent-row { margin: 0; color: var(--ink); font-size: .9rem; }
.submission-consent input { accent-color: var(--leaf); }
.context-card input[aria-invalid="true"] { border-color: #ffb5aa; outline: 2px solid #ffb5aa; }

.progress-wrap { position: sticky; top: 0; z-index: 10; padding: 13px 4px 16px; background: rgba(246, 244, 236, .94); backdrop-filter: blur(12px); }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 750; }
.progress-track { height: 7px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: #e0e6dd; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--leaf); transition: width .35s ease; }
.section-card { padding: clamp(24px, 5vw, 58px); }
.section-head { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-number { color: var(--leaf); font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin-bottom: 0; color: var(--muted); }
.question { padding: 36px 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; padding-bottom: 0; }
.question-kicker { color: var(--leaf); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.question h3 { margin: 6px 0 8px; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.question-prompt { max-width: 820px; color: var(--muted); }
.hint { margin-top: -4px; color: var(--leaf-dark); font-size: .82rem; font-style: italic; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.option { display: grid; grid-template-columns: 25px 1fr; gap: 11px; align-items: start; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.option:hover { transform: translateY(-1px); border-color: #9cb9a5; }
.option:has(input:checked) { border-color: var(--leaf); background: var(--mint); box-shadow: inset 0 0 0 1px var(--leaf); }
.option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--leaf); }
.option strong { display: block; }
.follow-up-field { margin-top: 24px; padding: 20px; border-radius: 16px; background: #f3f6ef; }

.allocation { display: grid; gap: 12px; margin-top: 22px; }
.allocation-help { margin: 0 0 4px; color: var(--muted); font-size: .88rem; }
.response-states { display: grid; gap: 9px; margin-bottom: 20px; }
.response-states .option > span { display: flex; flex-direction: column; gap: 3px; }
.response-states small { color: var(--muted); font-size: .72rem; font-weight: 500; line-height: 1.35; }
.allocation-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(220px, .9fr); align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #f7f8f3; }
.allocation-row small { display: block; color: var(--muted); }
.allocation-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.allocation-controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--leaf); border-radius: 50%; background: white; color: var(--leaf-dark); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.allocation-controls button:hover:not(:disabled) { background: var(--mint); }
.allocation-controls button:disabled { opacity: .35; cursor: not-allowed; }
.allocation-controls output { min-width: 38px; color: var(--leaf-dark); font-size: 1.35rem; font-weight: 850; text-align: right; }
.allocation-controls span { min-width: 50px; color: var(--muted); font-size: .82rem; }
.allocation-total { display: flex; justify-content: flex-end; gap: 8px; font-weight: 800; color: var(--leaf-dark); }
.allocation-total.invalid { color: var(--danger); }
.rank-option { grid-template-columns: 34px 1fr; }
.rank-option > input { position: absolute; opacity: 0; pointer-events: none; }
.rank-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf0e9; font-size: .78rem; font-weight: 850; }
.rank-option:has(input:checked) .rank-badge { background: var(--leaf); color: white; }
.matrix { display: grid; gap: 24px; margin-top: 22px; }
.matrix-group { display: grid; gap: 12px; }
.matrix-group h4 { margin: 0; color: var(--leaf-dark); font-size: .9rem; letter-spacing: .02em; }
.matrix-row { padding: 16px; border-radius: 16px; background: #f7f8f3; }
.matrix-row > strong { display: block; margin-bottom: 12px; }
.matrix-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.matrix-choice { position: relative; }
.matrix-choice input { position: absolute; opacity: 0; }
.matrix-choice span { display: grid; min-height: 47px; place-items: center; padding: 6px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .72rem; cursor: pointer; }
.matrix-choice input:checked + span { background: var(--leaf); color: white; border-color: var(--leaf); }
.numeric-grid { display: grid; gap: 8px; margin-top: 22px; }
.numeric-head, .numeric-row { display: grid; grid-template-columns: minmax(220px, 1fr) 110px 105px; gap: 12px; align-items: center; }
.numeric-head { padding: 0 14px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.numeric-row { padding: 13px 14px; border-radius: 14px; background: #f7f8f3; }
.numeric-row > label:first-child { font-weight: 680; }
.numeric-row > input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: center; }
.numeric-row > input:disabled { background: #e9eee8; color: var(--muted); }
.unknown-choice { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .75rem; cursor: pointer; }
.unknown-choice:has(input:checked) { border-color: var(--leaf); background: var(--mint); color: var(--leaf-dark); }
.unknown-choice input { width: 17px; height: 17px; accent-color: var(--leaf); }
.step-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; }
.submitting { max-width: 760px; margin: 60px auto; padding: clamp(36px, 8vw, 80px); text-align: center; }
.submitting .lead { margin-inline: auto; }
.seed-loader { display: flex; align-items: end; justify-content: center; gap: 7px; height: 70px; margin-bottom: 22px; }
.seed-loader span { width: 14px; height: 25px; border-radius: 100% 0 100% 0; background: var(--leaf); animation: grow 1.2s infinite ease-in-out alternate; transform-origin: bottom; }
.seed-loader span:nth-child(2) { height: 45px; animation-delay: -.4s; background: var(--lime); }
.seed-loader span:nth-child(3) { height: 60px; animation-delay: -.8s; }
@keyframes grow { to { transform: scaleY(.45) rotate(6deg); opacity: .45; } }

@media (max-width: 780px) {
  .intro-card { grid-template-columns: 1fr; padding: 24px; }
  .intro-card::after { display: none; }
  .context-card { padding: 20px; }
  .section-head { grid-template-columns: 48px 1fr; gap: 10px; }
  .allocation-row { grid-template-columns: 1fr; }
  .allocation-controls { justify-content: flex-start; }
  .matrix-options { grid-template-columns: repeat(3, 1fr); }
  .numeric-head { display: none; }
  .numeric-row { grid-template-columns: 1fr 92px; }
  .numeric-row > label:first-child { grid-column: 1 / -1; }
  .step-nav .btn { flex: 1; padding-inline: 12px; }
}
