:root {
  color-scheme: light;
  --ink: #172521;
  --muted: #4e615a;
  --paper: #f7f6f1;
  --white: #fff;
  --accent: #d7f16b;
  --green: #17665f;
  --line: #d8ded6;
  --control-line: #899b90;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 "Instrument Sans", system-ui, sans-serif; }
header { background: var(--white); border-bottom: 1px solid var(--line); }
.bar { max-width: 1120px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 8px clamp(18px, 5vw, 56px); }
.bar img { object-fit: contain; width: 105px; height: 65px; }
.bar span, .eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
main { width: min(100% - 32px, 760px); margin: clamp(24px, 6vw, 68px) auto; }
.panel { padding: clamp(22px, 6vw, 58px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
h1, h2 { line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(2rem, 6vw, 3.7rem); margin: 0 0 22px; }
h2 { font-size: 1.35rem; margin: 0; }
h1:focus { outline: none; }
p { margin: 0 0 16px; }
.eyebrow { color: var(--green); }
.intro { max-width: 52ch; color: var(--muted); }
#progress { margin: 0 0 14px; color: var(--muted); font-weight: 650; font-size: .85rem; }
.segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 6px; }
.segments span { height: 5px; background: var(--line); border-radius: 4px; }
.segments .filled { background: var(--green); }
.question { margin: 26px 0; }
legend, .label { font-weight: 730; padding: 0; }
fieldset { border: 0; min-width: 0; margin-inline: 0; padding: 0; }
.hint, .optional { color: var(--muted); font-size: .9rem; }
.hint { display: block; margin: 4px 0 10px; }
.optional { font-weight: 400; }
textarea { display: block; width: 100%; resize: vertical; min-height: 75px; margin-top: 8px; border: 1px solid var(--control-line); border-radius: 8px; background: #fbfcfa; color: inherit; font: inherit; padding: 9px 12px; }
.variants label { display: block; margin-top: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.choice { display: flex; align-items: baseline; gap: 7px; padding: 8px 12px; border: 1px solid var(--control-line); border-radius: 18px; cursor: pointer; }
.choice:has(input:checked) { background: #edf5ce; border-color: var(--green); }
.choice input { margin: 0; accent-color: var(--green); flex-shrink: 0; }
.ends { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 650; gap: 10px; margin-top: 10px; }
.scale { width: 100%; margin: 7px 0 0; accent-color: var(--green); cursor: pointer; min-height: 36px; }
.scale[data-unanswered] { accent-color: #6f7a72; }
.scale-status { display: block; text-align: center; color: var(--muted); font-size: .83rem; }
button { font: inherit; font-weight: 740; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--ink); background: var(--accent); color: var(--ink); cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: var(--white); }
button.edit { border: 0; background: transparent; padding: 4px; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.actions.single { justify-content: flex-end; }
.review-block + .review-block { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.review-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
dt { font-weight: 680; margin-top: 12px; }
dd { margin: 2px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
#status { color: var(--green); margin: 12px 0 0; }
.trap { display: none; }
