:root{font:16px/1.5 system-ui,sans-serif;color:#17243a;background:#eef2f7}
*{box-sizing:border-box}
body{margin:0}
header{background:#162339;color:white;padding:16px 20px}
header div{max-width:960px;margin:auto;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
header strong{font-size:1.3rem}
header span{color:#c5d1e1}
main{max-width:1000px;margin:auto;padding:20px}
section,dialog{background:white;border:1px solid #d5deea;border-radius:12px;padding:clamp(16px,4vw,28px);margin:0 0 16px}
h1,h2,p{margin:0 0 12px}
h1{line-height:1.18}
button,input,textarea,select{font:inherit}
button{background:#1746a0;color:white;border:1px solid transparent;border-radius:8px;padding:9px 14px;min-height:44px;font-weight:650;cursor:pointer}
button:disabled{opacity:.6;cursor:wait}
.secondary{color:#173a76;background:#edf3fb;border-color:#c6d6ef}
button[aria-pressed=true]{color:white;background:#173a76}
nav,footer,.choices{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
footer{margin-top:16px;margin-bottom:0}
label{display:block;font-weight:600}
input:not([type=radio]),textarea,select{display:block;width:100%;padding:8px 10px;margin:5px 0 12px;border:1px solid #9faec1;border-radius:8px}
input[type=password]{max-width:400px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px}
fieldset{border:1px solid #d5deea;border-radius:8px;margin:0 0 14px;padding:12px;min-width:0}
legend{font-weight:650;padding:0 6px}
.choices{margin:0}
.choices label{background:#f0f4f9;border:1px solid #c6d6ef;border-radius:8px;padding:8px 10px;min-height:44px;cursor:pointer}
.choices label:has(input:checked){background:#dae9ff;border-color:#1746a0}
.choices label:has(input[value=bad]:checked){background:#ffe3e3;border-color:#a12626}
.choices input{margin:0 8px 0 0;accent-color:#1746a0}
.comment{margin-top:12px}
[hidden]{display:none!important}
article,details{border-top:1px solid #d5deea;padding:12px 0}
article{display:flex;gap:12px;justify-content:space-between;align-items:center}
article p{margin:0}
summary{cursor:pointer;font-weight:650}
.danger,.notice{padding:12px;border-radius:8px;border:1px solid #b3c9ec;background:#e5efff}
.danger{background:#ffe8e8;border-color:#eaa3a3;color:#742020}
.eyebrow{color:#415f89;font-weight:650}
dialog{margin:auto;max-width:calc(100% - 24px);text-align:center}
dialog::backdrop{background:#16233999}
dialog footer{justify-content:center}
#qr{display:inline-block;padding:16px;background:white}
#qr img,#qr canvas{max-width:100%;height:auto}
dialog a{display:block}
@media print{
  body{background:white}
  header,main,dialog footer,dialog a{display:none}
  dialog[open]{position:static;margin:0;border:0;padding:0;color:black}
  dialog::backdrop{display:none}
}
