:root{font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:#20354a;background:#f4f5f6;--ink:#182f43;--line:#dbe2e8;--sub:#526577;--sun:#eda34b;--mint:#e7f4ec}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}button,.btn{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:9px;font-weight:650;padding:.52rem .85rem;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;line-height:1.4}button:hover,.btn:hover{background:#eef2f4}button:disabled{opacity:.52;cursor:not-allowed}button:focus-visible,.btn:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #e8a844;outline-offset:2px}.primary{background:var(--ink);border-color:var(--ink);color:#fff}.primary:hover{background:#28465d}.soft{background:#fff4e2;color:#74420f;border-color:#f5dfbe}
.top{display:flex;align-items:center;gap:1.2rem;background:var(--ink);color:#fff;min-height:62px;padding:.55rem max(1rem,calc((100vw - 1000px) / 2));border-bottom:3px solid var(--sun)}.brand{font-size:2rem;letter-spacing:-.09em;line-height:1.2;font-weight:850}.brand span,h1 span{color:var(--sun)}.toplabel{border-left:1px solid #617384;padding-left:1.2rem;color:#e3e9ee;font-size:.9rem}.top button{margin-left:auto;background:transparent;color:#eef4f7;border-color:#657584;font-size:.81rem}
main{max-width:1040px;padding:2.1rem 20px;margin:auto}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.055em;line-height:1.1}.kicker{display:block;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:750;color:#9b5607;margin-bottom:.4rem}.mast,.toolbar,.head,.row,.actions,dialog header{display:flex;align-items:center;gap:1rem}.mast,.toolbar,.head,dialog header{justify-content:space-between}.toolbar{margin:1.5rem 0 .85rem;flex-wrap:wrap}.toolbar nav{display:flex;background:#e4eaee;border-radius:12px;padding:3px;gap:2px}.toolbar nav button{background:transparent;border-color:transparent}.toolbar nav [aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 5px #293b4b18}.toolbar label,.head label{font-size:.85rem;font-weight:600;display:flex;align-items:center;gap:.6rem}
.card,dialog{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 18px #20354a08}.card{padding:1.25rem 1.4rem}.head{margin-bottom:.85rem}.head h2{font-size:1.15rem}.head .actions{justify-content:flex-end}.rows{display:grid}.row{width:100%;justify-content:space-between;text-align:left;border:0;border-top:1px solid var(--line);border-radius:0;padding:.8rem .25rem;background:#fff;flex-wrap:wrap}.row:hover{background:#fafbf9}.row strong,.row small{display:block}.muted,.row small,small{color:var(--sub)}.row small{font-size:.83rem;font-weight:450}.actions{flex-wrap:wrap;gap:.5rem}.badge{font-size:.76rem;font-weight:650;border-radius:99px;background:#eef2f5;padding:.2rem .6rem;white-space:nowrap}.badge.expired,.badge.missing{background:#fbe7e1;color:#883a28}.badge.expiring,.badge.future{background:#fff0cd;color:#7b4e0a}.badge.valid{background:var(--mint);color:#166244}
label{display:grid;gap:.28rem;font-size:.89rem;font-weight:650}input,select,textarea{width:100%;max-width:100%;min-width:0;border:1px solid #c7d1db;background:#fff;border-radius:8px;padding:.55rem .65rem}textarea{resize:vertical;min-height:9rem}input[type=file]{font-size:.85rem}.gate{max-width:425px;margin:clamp(1rem,8vh,5rem) auto;padding:clamp(1.3rem,4vw,2rem)}.gate p{color:var(--sub);margin:1rem 0}.gate form,.form{display:grid;gap:.85rem}.gate .primary{margin-top:.4rem}.feedback:empty{display:none}.feedback{margin:.65rem 0;background:#edf3f7;color:#204664;padding:.65rem .85rem;border-radius:8px}.feedback.error{background:#fff0ec;color:#942f20}
dialog{padding:0;width:min(630px,calc(100% - 1.6rem));max-height:calc(100dvh - 2.5rem);color:inherit}dialog::backdrop{background:#1027388a}dialog header{padding:1.05rem 1.35rem;background:#f7f8f8;border-bottom:1px solid var(--line)}dialog header h2{font-size:1.3rem;line-height:1.2;overflow-wrap:anywhere}dialog [data-close]{font-size:1.45rem;padding:.1rem .65rem}.panel,#dlg-body,#preview-body{padding:1.05rem 1.35rem}#dlg-message{margin:.5rem 1.35rem 1rem}dialog h3{font-size:1rem;margin:.8rem 0 .45rem}.block{border-top:1px solid var(--line);margin-top:1rem;padding-top:.5rem}.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.info{padding:.7rem .9rem;background:#f5f7f8;border-radius:8px;margin:.6rem 0}.empty{color:var(--sub);padding:1.25rem .25rem}.footnote{font-size:.83rem;color:var(--sub);margin:.7rem 0}.doc{padding:.45rem .2rem;text-align:left;background:transparent;border:0;display:block;color:#1d5779;overflow-wrap:anywhere}.preview{width:100%;height:58vh;border:0;object-fit:contain}.meta{margin-bottom:.65rem}.subnav{display:flex;gap:.4rem;margin-bottom:.85rem}.subnav button{font-size:.82rem;padding:.3rem .65rem}.subnav [aria-pressed=true]{background:var(--ink);color:white}#boot{color:var(--sub);text-align:center}
@media(max-width:620px){main{padding:1.2rem .75rem}.card{padding:1rem}.mast,.head{align-items:flex-start}.toolbar{gap:.7rem}.toolbar label{width:100%}.row{gap:.35rem}.head{flex-wrap:wrap}.split{grid-template-columns:1fr 1fr}.top{gap:.65rem}.toplabel{padding-left:.65rem}.head .actions{justify-content:flex-start}#dlg-body,#preview-body,dialog header{padding:1rem}.top button{font-size:.76rem}.form{gap:.75rem}}
.choice,.check,.choice label{display:flex;align-items:center;gap:.65rem}.choice{border-bottom:1px solid var(--line);padding:.45rem 0;justify-content:space-between}.choice label{flex:1;overflow-wrap:anywhere}.choice button{font-size:.8rem}.check input,[type=checkbox]{width:1.1rem;height:1.1rem;flex:none;accent-color:var(--ink)}.info p+p{margin-top:.5rem}
.gate-links{display:grid;justify-items:center;border-top:1px solid var(--line);margin-top:1.1rem;padding-top:.45rem}
.gate-links button{background:transparent;border:0;color:#275a75;font-size:.9rem;min-height:44px;padding:.5rem .2rem;text-decoration:underline;text-underline-offset:.18em;text-decoration-color:#a6bbc5}
.gate-links button:hover{text-decoration-color:currentColor}
.gate input{font-size:16px}
.gate h1:focus{outline:none}
.gate form small{margin-top:-.6rem}
