:root {
  --navy:#14243a; --blue:#245a91; --ink:#172333; --muted:#667487;
  --line:#dce3eb; --surface:#fff; --bg:#f3f6f9; --warn:#fff4dc;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.topbar { background:var(--navy); color:white; display:flex; align-items:center; gap:12px; padding:14px 18px; padding-top:max(14px,env(safe-area-inset-top)); }
.brand-mark { width:42px;height:42px;border:1px solid #7e9ab7;border-radius:12px;display:grid;place-items:center;font-weight:800;letter-spacing:.04em; }
.brand-name { font-weight:700; font-size:16px; }
.brand-subtitle { color:#b9c8d8; font-size:11px; margin-top:2px; }
.prototype { margin-left:auto; border:1px solid #7890aa; border-radius:20px; padding:4px 9px; font-size:10px; letter-spacing:.08em; }
main { width:min(100% - 28px,680px); margin:24px auto 40px; }
.intro { margin:0 2px 18px; }
.eyebrow { color:var(--blue); font-size:10px; font-weight:800; letter-spacing:.14em; margin:0 0 7px; }
h1 { font-size:28px; line-height:1.1; margin:0 0 8px; letter-spacing:-.03em; }
h2 { font-size:20px; margin:0; letter-spacing:-.02em; }
.muted { color:var(--muted); font-size:13px; line-height:1.5; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:20px; margin-bottom:14px; box-shadow:0 5px 20px rgba(20,36,58,.04); }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:20px; }
.step-count { color:var(--muted); font-size:11px; font-weight:700; white-space:nowrap; }
label { display:block; font-size:13px; font-weight:650; margin:15px 0; }
input,textarea { display:block; width:100%; margin-top:7px; border:1px solid #cbd5e0; border-radius:10px; background:#fff; padding:13px 12px; font:inherit; font-size:16px; color:var(--ink); outline:none; }
input:focus,textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(36,90,145,.12); }
textarea { resize:vertical; }
button { border:0; border-radius:11px; padding:13px 16px; font-size:14px; font-weight:700; cursor:pointer; min-height:46px; }
.primary { background:var(--navy); color:white; width:100%; margin-top:8px; }
.secondary { background:#eaf0f5; color:var(--navy); }
.text-button { background:transparent; color:var(--blue); padding:8px; }
.progress { height:5px; border-radius:8px; background:#e8edf2; overflow:hidden; margin:-5px 0 15px; }
.progress div { height:100%; width:25%; background:var(--blue); transition:width .2s; }
.question { border:1px solid var(--line); border-radius:12px; padding:14px; margin:13px 0; }
.question p { font-weight:650; font-size:14px; margin:0 0 12px; line-height:1.4; }
.choice { display:flex; align-items:flex-start; gap:10px; font-size:14px; font-weight:500; margin:10px 0; }
.choice input { width:19px; height:19px; margin:0; flex:none; accent-color:var(--blue); }
.actions { display:flex; gap:10px; margin-top:18px; }
.actions button { flex:1; }
.notice { padding:14px; border-radius:12px; margin:15px 0; font-size:13px; line-height:1.5; }
.warning { background:var(--warn); border:1px solid #f0d89d; }
.warning p { margin:5px 0 0; }
.hidden { display:none; }
.saved-list { display:grid; gap:9px; }
.saved-item { border:1px solid var(--line); border-radius:10px; padding:12px; font-size:13px; }
.saved-item strong { display:block; margin-bottom:4px; }
.tiny { font-size:11px; }
footer { width:min(100% - 32px,680px); margin:0 auto; padding:0 0 max(22px,env(safe-area-inset-bottom)); display:flex; justify-content:space-between; gap:12px; color:#7a8796; font-size:10px; }
@media (min-width:600px) { main { margin-top:38px; } .panel { padding:26px; } }
