:root {
  --bg: #f4efe8; --card: #fffdf9; --ink: #1d1813; --muted: #6c6157; --line: #e3d9cc;
  --espresso: #18110a; --sand: #c9a882; --sand-soft: #f3e9dc; --ok: #2f6b45; --err: #9b2c24;
  --display: "Fraunces", Georgia, serif; --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15110d; --card: #1d1813; --ink: #efe7dc; --muted: #a89b8d; --line: #342b23; --sand-soft: #2a2119; --ok: #86c39b; --err: #ec9a90; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
.shell { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 20px; }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--espresso); color: var(--sand); display: grid; place-items: center; font-family: var(--display); }
.saved { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.bar { height: 100%; width: 0; background: var(--sand); transition: width .3s ease; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 5vw, 34px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0 0 6px; }
.step { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.note { background: var(--sand-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 20px; }
.facts { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 14px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-top: 12px; }
.facts dd { margin: 2px 0 0; }
.q { margin: 0 0 22px; }
.q label, .q .label { display: block; font-weight: 600; margin-bottom: 4px; }
.q .hint { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
textarea, input[type=text] { width: 100%; font: 16px/1.5 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
textarea { min-height: 84px; }
textarea:focus, input:focus { outline: 2px solid var(--sand); border-color: transparent; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.choice { border: 1px solid var(--sand); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--body); cursor: pointer; min-height: 38px; }
.choice[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: #f5ede0; }
.extra { margin-top: 4px; }
.nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px var(--body); cursor: pointer; min-height: 46px; }
.btn.primary { background: var(--espresso); color: var(--sand); }
.btn.ghost { background: transparent; color: var(--muted); padding-left: 4px; padding-right: 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: default; }
.review h3 { font-size: 15px; margin: 22px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review h3 button { font-size: 13px; }
.review dl { margin: 0; }
.review dt { font-size: 14px; color: var(--muted); margin-top: 10px; }
.review dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review dd.skip { color: var(--muted); font-style: italic; }
.err { color: var(--err); font-size: 14px; margin: 12px 0 0; }
.done { color: var(--ok); font-weight: 600; }
@media (max-width: 520px) { .card { padding: 22px 16px; } .nav { flex-direction: column-reverse; align-items: stretch; } .btn.primary { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
