:root{font:16px system-ui,sans-serif;color:#183452;background:#f3f6fb;accent-color:#145d93}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.wrap{max-width:1080px;margin:auto;padding:24px}
header{background:linear-gradient(135deg,#0d315d,#145d93);color:white}
header a{color:#e0efff;text-decoration:none;font-size:.9rem}
.heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:22px}
.heading img{width:clamp(96px,16vw,175px);height:auto;object-fit:contain}
h1{font-size:clamp(1.65rem,4vw,2.7rem);letter-spacing:-.035em;margin:0;line-height:1.1}
header p{color:#e0efff;margin:.65rem 0 0}
section{margin-bottom:18px;background:white;border:1px solid #dce6f2;border-radius:16px;padding:22px;box-shadow:0 5px 18px #0d315d08}
h2{margin:0 0 14px;font-size:1.25rem}p{line-height:1.5}
.ident{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
label{display:block;font-weight:600}
input,select,textarea,button{font:inherit}
input:not([type=radio]),select,textarea{display:block;width:100%;min-width:0;padding:10px;margin-top:6px;border:1px solid #9aaec5;border-radius:8px;background:white;color:inherit}
textarea{resize:vertical}
fieldset{min-width:0;margin:18px 0 0;border:1px solid #dce6f2;border-radius:12px;padding:16px;background:#f8fafd}
legend{font-weight:700;padding:0 6px}
.choices{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.choices label{display:flex;align-items:center;min-height:44px;padding:8px 12px;gap:6px;background:white;border:1px solid #b7c9de;border-radius:8px}
.choices label:has(:checked){border-color:#145d93;background:#e9f3fc}
.photo,.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.photo{margin-top:12px}.photo img{width:64px;height:50px;object-fit:cover;border-radius:6px}
.photo span{font-size:.9rem;color:#486683}
button,.download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#145d93;color:white;border:1px solid transparent;border-radius:8px;padding:9px 14px;font-weight:700;text-decoration:none;cursor:pointer}
button.secondary{background:white;color:#145d93;border-color:#9fbad3}
button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #3988cb;outline-offset:2px}
dialog{width:min(92%,480px);max-height:92%;border:0;border-radius:16px;padding:18px;color:inherit}
dialog::backdrop{background:#0d2348a0}
video{display:block;width:100%;max-height:52dvh;object-fit:contain;background:#0d315d;border-radius:8px}
@media(max-width:640px){.wrap{padding:16px}.ident{grid-template-columns:1fr}section,fieldset{padding:14px}.heading{gap:12px}}
#history{padding:0;list-style:none;margin:0}
#history li{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 0}
.photo-list{display:flex;gap:12px;flex-wrap:wrap;list-style:none;padding:0;margin:12px 0 0}
.photo-list li{display:grid;gap:6px}
.photo-list img{width:96px;height:72px;object-fit:cover;background:#dce6f2;border-radius:8px}
.photo-list button{font-size:.85rem;padding:5px 8px}
.camera-feedback{display:flex;gap:12px;align-items:center;margin:12px 0}
.camera-feedback p{margin:0}
.camera-feedback img{width:72px;height:54px;object-fit:cover;border-radius:6px}
