:root {
  color-scheme: light;
  --ink: #1e333b;
  --muted: #62757d;
  --line: #dce6e8;
  --paper: #ffffff;
  --canvas: #f3f7f7;
  --teal: #176f75;
  --teal-dark: #11575d;
  --mint: #e8f4f2;
  --error: #a43838;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
a { color: var(--teal-dark); }
[hidden] { display: none !important; }
.page-shell { width: min(100% - 32px, 900px); margin: 0 auto; padding: 28px 0 36px; }
.landing-shell { width: min(100% - 32px, 660px); min-height: 100vh; display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-weight: 700; letter-spacing: -.01em; }
.brand-link { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--teal); color: white; font: 800 18px "Manrope", sans-serif; }
.survey-badge { padding: 8px 12px; border-radius: 999px; color: var(--teal-dark); background: var(--mint); font-size: 13px; font-weight: 700; }
.intro-card, .questionnaire-card, .success-card { background: var(--paper); border: 1px solid #e7eeee; border-radius: 22px; box-shadow: 0 16px 40px rgba(31, 69, 74, .06); }
.intro-card { margin: auto 0; padding: clamp(28px, 6vw, 48px); }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Manrope", "Segoe UI", sans-serif; letter-spacing: -.04em; }
h1 { max-width: 680px; font-size: clamp(27px, 5vw, 38px); line-height: 1.18; }
.intro-copy { margin: 14px 0 30px; color: var(--muted); line-height: 1.65; }
.start-form { display: grid; gap: 20px; }
.choice-list { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.choice-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.choice-card:has(input:disabled) { opacity: .45; cursor: not-allowed; pointer-events: none; }
.choice-card:hover { border-color: #9fc7c8; transform: translateY(-1px); }
.choice-card:has(input:checked) { border-color: var(--teal); background: #f2f9f8; box-shadow: 0 0 0 2px rgba(23, 111, 117, .08); }
.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-card input:focus-visible + .choice-copy { outline: 3px solid #a1cece; outline-offset: 4px; border-radius: 3px; }
.choice-copy { display: grid; gap: 4px; flex: 1; }
.choice-copy strong { font-size: 16px; }
.choice-copy small { color: var(--muted); font-size: 13px; }
.choice-indicator { width: 20px; height: 20px; border: 1.5px solid #aababc; border-radius: 50%; }
.choice-card:has(input:checked) .choice-indicator { border: 6px solid var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.button:focus-visible, input:focus-visible { outline: 3px solid #9ccaca; outline-offset: 2px; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(23, 111, 117, .2); }
.button-primary:disabled { cursor: not-allowed; opacity: .45; }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { background: #f6f9f9; }
.button-wide { width: 100%; }
.button-link { margin-top: 6px; }
.page-footer { display: flex; justify-content: center; padding-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.page-footer a { color: var(--muted); text-decoration: none; }
.page-footer a:hover { color: var(--teal-dark); text-decoration: underline; }
.questionnaire-shell { width: min(100% - 32px, 880px); }
.questionnaire-card { margin-top: 22px; padding: clamp(22px, 5vw, 40px); }
.section-sticky { position: sticky; top: 0; z-index: 5; margin: -1px 0 17px; padding: 8px 0 1px; background: var(--paper); box-shadow: 0 8px 12px -13px rgba(31, 69, 74, .7); }
.progress-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.progress-heading h1 { font-size: clamp(23px, 4vw, 31px); }
.progress-count { flex: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.progress-track { height: 6px; margin: 23px 0 25px; overflow: hidden; border-radius: 999px; background: #eaf0f0; }
.progress-track span { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.questions-container { display: grid; gap: 12px; }
.question-card { min-width: 0; margin: 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 14px; }
.question-card legend { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.question-number { display: inline-grid; flex: none; width: 26px; height: 26px; place-items: center; margin-top: -1px; border-radius: 8px; color: var(--teal-dark); background: var(--mint); font-size: 12px; font-weight: 800; }
.scale-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 17px 0 10px 37px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.scale-labels span:nth-child(2) { text-align: center; }
.scale-labels span:last-child { text-align: right; }
.scale-options { display: grid; grid-template-columns: repeat(7, minmax(32px, 1fr)); gap: 6px; margin-left: 37px; }
.scale-choice { display: grid; justify-items: center; gap: 5px; padding: 5px 2px 4px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.scale-choice:hover { background: #f3f8f8; }
.scale-choice input { width: 19px; height: 19px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.scale-choice span { font-size: 12px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.action-spacer { flex: 1; }
.form-error { margin: 16px 0 0; color: var(--error); font-size: 14px; }
.success-card { margin: 22px auto 0; padding: clamp(30px, 7vw, 56px); text-align: center; }
.success-icon { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--teal-dark); background: var(--mint); font-size: 26px; font-weight: 700; }
.success-card h1 { margin-bottom: 10px; }
.success-card > p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); }
.admin-card { width: 100%; }
.admin-summary { margin: 24px 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.count-table { width: 100%; border-collapse: collapse; text-align: left; }
.count-table th, .count-table td { padding: 14px 16px; border-bottom: 1px solid #e9eeee; }
.count-table thead th { color: var(--muted); background: #f7f9f9; font-size: 12px; font-weight: 700; }
.count-table tbody th { font-weight: 600; }
.count-table td { color: var(--teal-dark); font-variant-numeric: tabular-nums; font-weight: 700; }
.count-table tbody tr:last-child th, .count-table tbody tr:last-child td { border-bottom: 0; }
.count-table .count-total { background: #f5f9f8; }
.count-table .count-total th, .count-table .count-total td { font-weight: 800; }
.admin-copy { margin: 0 0 18px; }
.pin-form { display: grid; gap: 12px; }
.pin-form label { font-size: 14px; font-weight: 700; }
.pin-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.form-error { padding: 11px 13px; border-radius: 9px; background: #fff3f2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 560px) {
  .page-shell, .landing-shell { width: min(100% - 22px, 900px); padding-top: 12px; }
  .landing-shell { padding-bottom: 20px; }
  .intro-card { padding: 24px 18px; border-radius: 18px; }
  .start-form { gap: 15px; }
  .choice-list { gap: 9px; }
  .choice-card { min-height: 70px; padding: 13px 14px; }
  .choice-copy strong { font-size: 15px; }
  .choice-copy small { font-size: 12px; }
  .brand-row { gap: 8px; font-size: 14px; }
  .brand-link { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .survey-badge { padding: 7px 9px; font-size: 11px; }
  .questionnaire-shell { width: min(100% - 16px, 880px); }
  .questionnaire-card { padding: 20px 14px; }
  .section-sticky { top: 0; padding: 7px 0 5px; margin-bottom: 12px; }
  .progress-heading { align-items: flex-start; gap: 8px; }
  .progress-heading h1 { font-size: clamp(20px, 5.5vw, 25px); line-height: 1.23; }
  .progress-heading .eyebrow { margin-bottom: 6px; }
  .progress-count { padding-top: 2px; font-size: 12px; }
  .progress-track { height: 5px; margin: 13px 0 6px; }
  .question-card { padding: 14px 10px 11px; border-radius: 12px; }
  .question-card legend { font-size: 14px; }
  .scale-labels, .scale-options { margin-left: 0; }
  .scale-labels { gap: 4px; margin-top: 14px; font-size: 10px; }
  .scale-options { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
  .scale-choice { min-height: 42px; align-content: center; gap: 4px; padding: 4px 0; }
  .scale-choice input { width: 19px; height: 19px; }
  .scale-choice span { font-size: 12px; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .form-actions .button { width: 100%; min-height: 46px; padding: 0 10px; }
  .form-actions:has(#next-button:not([hidden])) { grid-template-columns: 1fr; }
  .action-spacer { display: none; }
  .form-error { font-size: 13px; }
  .admin-summary { margin-top: 18px; }
  .count-table th, .count-table td { padding: 12px 10px; font-size: 13px; }
}

@media (max-width: 360px) {
  .questionnaire-shell { width: min(100% - 12px, 880px); }
  .questionnaire-card { padding: 17px 10px; }
  .progress-heading h1 { font-size: 19px; }
  .scale-labels { font-size: 9px; }
  .scale-choice input { width: 18px; height: 18px; }
}
