:root {
  --dl-ink: #172033;
  --dl-muted: #596477;
  --dl-line: #d9e0ea;
  --dl-soft: #f5f7fa;
  --dl-blue: #174ea6;
  --dl-blue-dark: #123b7c;
  --dl-green: #1f6b4f;
  --dl-white: #fff;
}

html:has(> body.decision-lab-page) { height: auto; overflow-y: auto; overflow-x: hidden; }
.decision-lab-page { display: block; height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; background: #f3f5f8; color: var(--dl-ink); font-family: Inter, Arial, sans-serif; }
.dl-site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: 0 auto; padding: 22px 20px 0; }
.dl-wordmark { font-size: 19px; font-weight: 800; color: var(--dl-ink); text-decoration: none; letter-spacing: -.01em; }
.dl-wordmark span { color: var(--dl-blue); }
.dl-lang-toggle { display: flex; gap: 0; border: 1px solid var(--dl-line); border-radius: 7px; overflow: hidden; background: var(--dl-white); }
.dl-lang-btn { padding: 6px 13px; border: 0; background: transparent; color: var(--dl-muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .03em; cursor: pointer; }
.dl-lang-btn.is-active { background: var(--dl-blue); color: var(--dl-white); }
@media (max-width: 760px) {
  .dl-site-header { padding: 16px 12px 0; }
}
.dl-shell { display: block; flex: none; width: min(1040px, calc(100% - 40px)); height: auto; margin: 0 auto; padding: 42px 0 80px; min-height: 70vh; }
.dl-progress { display: flex; align-items: center; gap: 0; margin: 0 auto 36px; max-width: 660px; color: #7b8492; font-size: 13px; font-weight: 600; }
.dl-progress span { display: flex; align-items: center; flex: 1; white-space: nowrap; }
.dl-progress span::after { content: ""; height: 1px; background: var(--dl-line); flex: 1; margin: 0 12px; }
.dl-progress span:last-child { flex: 0; }
.dl-progress span:last-child::after { display: none; }
.dl-progress span.is-current, .dl-progress span.is-done { color: var(--dl-blue); }
.dl-progress span.is-done::after { background: var(--dl-blue); }
.dl-screen { display: none; padding: 0; }
/* mobile.css sets `input, select, textarea { width: 100% }` below 768px, which
   also stretches radio/checkbox boxes and breaks their layout (dot centered,
   label wraps below) — reset those two types back to their native size. */
.decision-lab-page input[type="radio"], .decision-lab-page input[type="checkbox"] { width: auto; }
.dl-screen.is-active { display: block; animation: dl-in .22s ease-out; }
@keyframes dl-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.dl-hero { max-width: 790px; text-align: center; margin: 36px auto 42px; }
.dl-eyebrow, .dl-label { margin: 0 0 10px; color: var(--dl-blue); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.dl-hero h1, .dl-form-card h1, #dlResultTitle { margin: 0 0 18px; color: var(--dl-ink); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.035em; }
.dl-lead { max-width: 720px; margin: 0 auto 28px; color: var(--dl-muted); font-size: 19px; line-height: 1.65; }
.dl-micro { margin: 12px 0 0; color: var(--dl-muted); font-size: 13px; }
.dl-button { min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.dl-button:disabled { cursor: wait; opacity: .62; }
.dl-button-primary { background: var(--dl-blue); color: var(--dl-white); }
.dl-button-primary:hover { background: var(--dl-blue-dark); }
.dl-button-secondary { background: var(--dl-white); border-color: #aab7c8; color: var(--dl-blue-dark); }
.dl-button-secondary:hover { border-color: var(--dl-blue); }

.dl-example { max-width: 720px; margin: 0 auto 28px; padding: 24px 28px; border-left: 3px solid var(--dl-blue); background: var(--dl-white); }
.dl-example blockquote { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.dl-example p:last-child { margin: 0; color: var(--dl-muted); line-height: 1.6; }
.dl-notice { max-width: 720px; margin: 0 auto; padding: 18px 22px; border: 1px solid var(--dl-line); background: #eef2f7; font-size: 13px; line-height: 1.55; }
.dl-notice p { margin: 5px 0 0; }
.dl-card { padding: 28px; border: 1px solid var(--dl-line); border-radius: 10px; background: var(--dl-white); }
.dl-form-card { max-width: 760px; margin: 0 auto; }
.dl-form-card h1 { font-size: clamp(30px, 4vw, 44px); }
.dl-form-card form, .dl-feedback-card form, .dl-beta-card form { display: grid; gap: 12px; }
.dl-form-card label, .dl-feedback-card > form > label, .dl-beta-card label { margin-top: 10px; font-size: 14px; font-weight: 700; }
.dl-optional { color: #7b8492; font-size: 12px; font-weight: 500; }
.dl-form-card textarea, .dl-form-card select, .dl-question textarea, .dl-feedback-card textarea, .dl-beta-card input[type="email"] { width: 100%; padding: 13px 14px; border: 1px solid #aeb9c8; border-radius: 7px; background: #fff; color: var(--dl-ink); font: inherit; line-height: 1.5; box-sizing: border-box; }
.dl-form-card textarea:focus, .dl-form-card select:focus, .dl-question textarea:focus, .dl-feedback-card textarea:focus, .dl-beta-card input:focus { outline: 3px solid rgba(23,78,166,.14); border-color: var(--dl-blue); }
.dl-field-error { min-height: 18px; margin: 0; color: #a12626; font-size: 13px; }
.dl-form-card .dl-button { justify-self: start; margin-top: 8px; }

.dl-loading { max-width: 680px; margin: 80px auto; padding: 46px; text-align: center; color: var(--dl-muted); }
.dl-loading-hint { margin-top: 10px; font-size: 13px; color: #8b93a3; }
.dl-spinner { display: block; width: 34px; height: 34px; margin: 0 auto 18px; border: 3px solid #d8e0eb; border-top-color: var(--dl-blue); border-radius: 50%; animation: dl-spin .8s linear infinite; }
@keyframes dl-spin { to { transform: rotate(360deg); } }
.dl-analysis-card { margin-bottom: 42px; }
.dl-analysis-card h1 { margin: 0 0 28px; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
.dl-analysis-card h2 { margin: 0 0 10px; font-size: 19px; }
.dl-analysis-card > p:last-child { color: var(--dl-muted); line-height: 1.7; white-space: pre-line; }
.dl-checkpoint-heading { margin-bottom: 22px; }
.dl-checkpoint-heading h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.dl-checkpoint-heading > p:last-child { color: var(--dl-muted); }
.dl-question { margin-bottom: 18px; }
.dl-question-number { color: var(--dl-blue); font-size: 13px; font-weight: 700; }
.dl-question h3 { margin: 5px 0 12px; font-size: 21px; line-height: 1.35; }
.dl-question-context { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; color: var(--dl-muted); font-size: 14px; line-height: 1.55; }
.dl-question-context p { margin: 4px 0 0; }
.dl-answer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.dl-answer-head label { font-weight: 700; }
.dl-unknown { border: 0; background: none; color: var(--dl-blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#dlAnswersForm > .dl-button { margin-top: 5px; }

#dlResultTitle { font-size: clamp(32px, 5vw, 48px); }
#dlStartOverButton { margin: 0 0 18px; }
.dl-delta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 18px; }
.dl-delta-grid .dl-changed-card { grid-column: 1 / -1; border-left: 4px solid var(--dl-green); }
.dl-card ul { margin: 8px 0 0; padding-left: 20px; }
.dl-card li { margin: 7px 0; line-height: 1.55; }
.dl-card > p:last-child { line-height: 1.65; }
.dl-recommendation-card, .dl-test-card, #dlUncertaintyCard, .dl-feedback-card, .dl-beta-card { margin-top: 18px; }
.dl-recommendation-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dl-recommendation-heading h2 { margin: 0; }
.dl-badge { display: inline-flex; padding: 7px 11px; border: 1px solid currentColor; border-radius: 999px; color: var(--dl-blue); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.dl-badge[data-type="PROCEED"] { color: var(--dl-green); }
.dl-badge[data-type="DO_NOT_PROCEED"] { color: #9a2b2b; }
.dl-badge[data-type="TEST_FIRST"], .dl-badge[data-type="INSUFFICIENT_EVIDENCE"] { color: #865b13; }
.dl-after { margin: 18px 0; padding: 14px 16px; background: var(--dl-soft); font-weight: 600; }
#dlRecommendation p { margin: 0 0 12px; line-height: 1.65; }
.dl-test-card h2 { margin: 0 0 22px; font-size: 23px; }
.dl-test-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.dl-test-grid p:last-child { line-height: 1.55; }
.dl-feedback-card fieldset { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--dl-line); }
.dl-feedback-card legend { width: 100%; margin-bottom: 9px; font-weight: 700; line-height: 1.45; }
.dl-feedback-card fieldset label { color: var(--dl-muted); }
.dl-form-status { min-height: 20px; margin: 0; color: var(--dl-green); font-size: 14px; }
.dl-consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 500 !important; }
.dl-global-error { max-width: 680px; margin: 28px auto; padding: 24px; border: 1px solid #d9aaaa; background: #fff4f4; text-align: center; }

@media (max-width: 760px) {
  .dl-shell { width: min(100% - 24px, 1040px); padding-top: 24px; }
  .dl-progress { margin-bottom: 24px; }
  .dl-progress span { font-size: 11px; }
  .dl-progress span::after { margin: 0 7px; }
  .dl-hero { margin-top: 20px; }
  .dl-lead { font-size: 16px; }
  .dl-card { padding: 21px 18px; }
  .dl-question-context, .dl-delta-grid, .dl-test-grid { grid-template-columns: 1fr; }
  .dl-delta-grid .dl-changed-card { grid-column: auto; }
  .dl-recommendation-heading { align-items: flex-start; flex-direction: column; }
  .dl-feedback-card fieldset { display: grid; }
}
