:root{font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:#092949;background:#05264b;--ink:#092949;--paper:#edf8ff;--muted:#45627a;--blue:#065897;--line:#b8d9ef;--gap:clamp(.65rem,1.4vw,1.15rem)}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;background:linear-gradient(139deg,#031d43,#005a9d 48%,#007dc5 79%,#06a0c4);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow-wrap:anywhere}
button,input,select,textarea{font:inherit}
button,select{cursor:pointer}
button:disabled{opacity:.57;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #ffbc57;outline-offset:3px}
button,.button{min-block-size:44px;padding:.55rem .85rem;color:white;background:linear-gradient(#117eb9,#06548f 64%,#043e70);border:1px solid #7ec5e7;border-radius:.9rem;font-weight:650;text-align:center;overflow-wrap:anywhere}
.danger{background:linear-gradient(#ce2940,#9c122a);border-color:#f8a5ae}
.success{background:linear-gradient(#1b7a50,#0a4e32);border-color:#92d8ab}
.quiet{background:#e2f2fc;color:#153f64;border-color:#94bed9}
a{color:#064a86}
.header{max-width:84rem;margin:auto;color:white;padding:.75rem clamp(.8rem,3vw,2rem);display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}
.header img{width:3.1rem;height:2.8rem;object-fit:contain;display:block}
.brand,.actions,.toolbar{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.brand{font-weight:750}
.brand-group{display:flex;align-items:center;gap:.65rem;min-width:0}
.header .account{color:#d8f4ff}
main{width:min(100%,84rem);margin-inline:auto;padding:0 clamp(.8rem,3vw,2rem) 2rem;outline:none}
main:has(.login){max-width:38rem}
.panel{min-width:0;padding:clamp(.8rem,1.8vw,1.3rem);margin-block:var(--gap);border:1px solid #d5efff;border-radius:1.15rem;background:linear-gradient(#fbfdff,#d6edf9);box-shadow:0 .4rem 1rem #001b3738}
.panel .panel{border-color:var(--line);box-shadow:none;background:#f4faff}
.banner{color:white;display:flex;justify-content:space-between;align-items:center;gap:.65rem;flex-wrap:wrap;margin:.4rem 0}
.banner h1,.banner h2{color:white}
h1,h2,h3,p{margin:0 0 .45rem}
h1{font-size:clamp(1.45rem,3.8vw,2.4rem);line-height:1.18}
h2{font-size:clamp(1.15rem,2.8vw,1.65rem);line-height:1.24}
h3{font-size:1.06rem;line-height:1.35}
p:last-child{margin-bottom:0}
.muted{color:var(--muted)}
.header .muted,.banner .muted{color:#d1ebfa}
.status{width:min(84rem,calc(100% - 1.6rem));margin:0 auto 1rem;padding:.7rem 1rem;border-radius:.7rem;background:#fff2cd;color:#3b2504}
.status.error,.error{color:#94132b}
.field{display:grid;gap:.25rem;min-width:0;flex:1 1 11rem}
.field span{font-size:.87rem;font-weight:650;color:#234965}
.field input,.field select,.field textarea{min-width:0;width:100%;min-block-size:44px;padding:.52rem .68rem;border:1px solid #88b1cd;border-radius:.68rem;background:#fff;color:var(--ink)}
.field textarea{min-block-size:5rem;resize:vertical}
.form{display:flex;gap:.72rem;flex-wrap:wrap;margin-top:.7rem;align-items:end}
.stack{display:grid;gap:.64rem;align-content:start}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:var(--gap)}
.grid .panel{margin:0}
.nav-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:var(--gap)}
.nav-grid button{min-height:clamp(58px,11vw,96px);font-size:1.05rem}
.nav-grid button[aria-current=page]{background:#e9f8ff;color:var(--ink)}
.search{margin:0 0 var(--gap);max-width:32rem}
.hero{display:flex;align-items:center;gap:clamp(.8rem,3vw,2rem);flex-wrap:wrap}
.hero>img{width:min(32vw,9rem);max-height:8rem;object-fit:contain}
.detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:var(--gap);align-items:start}
.history-list{display:grid;gap:.4rem;margin-top:.7rem}
.history-row{background:#f5fbff;border:1px solid #b5d5ec;border-radius:.62rem;padding:.65rem;margin:0}
.photo{width:100%;max-height:19rem;object-fit:contain;background:#e8f4fc;border-radius:.8rem}
.qr{width:min(100%,12rem);height:auto;display:block;background:white;margin:.4rem auto}
dialog{max-width:min(42rem,calc(100% - 1.4rem));width:100%;max-height:calc(100dvh - 2rem);overflow:auto;background:var(--paper);color:var(--ink);border:1px solid #a7d6ef;border-radius:1.15rem;padding:clamp(.8rem,2vw,1.35rem)}
dialog::backdrop{background:#031a36b8}
video{width:100%;max-height:50dvh;background:#021833;border-radius:.7rem}
.skip{position:absolute;inset:auto auto auto .6rem;transform:translateY(-200%);color:var(--ink);background:white;z-index:9;padding:.5rem}
.skip:focus{transform:translateY(0)}
.print{display:none}
@media(max-width:350px){.header,.form,.toolbar{align-items:stretch}.actions button,.toolbar button{flex:1 1 44%}.panel{border-radius:.85rem}}
@media print{body{color:black;background:white;padding:0}body>*:not(.print){display:none!important}.print{display:block}.print h1{font-size:18pt}.print img{width:43mm;height:43mm;display:block}.print article{break-inside:avoid;padding:4mm}.print .history-row{border:0}}
