:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#10243e;background:#f7faf9;font-synthesis:none}
*,:before,:after{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input{font:inherit}
button{cursor:pointer}
[x-cloak]{display:none!important}
.shell{min-height:100vh;display:flex;flex-direction:column}
header{height:74px;background:#fff;border-bottom:1px solid #dce7e5;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1180px)/2));gap:42px}
.brand{display:flex;align-items:center;gap:10px;color:#10243e;text-decoration:none;font-weight:800;letter-spacing:.08em}
.sim-banner{font-size:.72rem;font-weight:800;letter-spacing:.06em;color:#7a4a00;background:#fdf4e8;padding:6px 10px;border-radius:8px;white-space:nowrap}
.nav-link{color:#075f5d;font-weight:650;text-decoration:none;padding:10px 12px;border-radius:8px}
.nav-link:hover,.nav-link[aria-current=page]{background:#eaf6f3}
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.login-card{max-width:420px;margin-top:24px;display:flex;flex-direction:column;gap:12px}
.map-frame{height:min(70vh,560px);width:100%;border-radius:14px;border:1px solid #dce7e5;margin-top:16px}
select,input{width:100%;padding:10px 12px;border:1px solid #dce7e5;border-radius:8px}
.brand svg{color:#0b6b69}
nav{display:flex;gap:5px;flex:1}
nav button{border:0;background:transparent;color:#536477;padding:10px 13px;border-radius:8px;font-weight:600;transition:background .15s,color .15s}
nav button:hover{background:#f0f5f3}
nav button.active,nav button[aria-current=page]{color:#075f5d;background:#eaf6f3;font-weight:700}
.avatar{width:36px;height:36px;border-radius:50%;background:#e2f1ed;color:#075f5d;display:grid;place-items:center;font-weight:800;font-size:.9rem}
main{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:62px 0 80px;flex:1}
.eyebrow,.step{font-size:.72rem;letter-spacing:.14em;font-weight:800;color:#0b6b69;margin:0 0 12px;text-transform:uppercase}
h1{font-family:Georgia,serif;font-size:clamp(2.2rem,5vw,4.25rem);line-height:1.02;letter-spacing:-.035em;max-width:760px;margin:0;color:#10243e}
h2{font-size:1.25rem;margin-top:0}
h3{font-size:1rem;margin-bottom:4px;margin-top:0}
p{margin-top:0}
.lede{color:#536477;max-width:720px;font-size:1.08rem;line-height:1.65;margin:22px 0 8px}
.notice{min-height:28px;color:#7a4a00;font-weight:650}
.layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.8fr);gap:24px;margin-top:24px}
.card{background:#fff;border:1px solid #dce7e5;border-radius:14px;box-shadow:0 8px 24px rgba(16,36,62,.05);padding:28px}
.card-head{display:flex;justify-content:space-between;gap:20px;align-items:start}
.card-head strong{font-size:1.1rem}
.eligible{color:#087563}
.ineligible,.rejected,.expired{color:#9b3b25}
.done{color:#087563}
.meter{height:7px;background:#e6eeec;border-radius:20px;overflow:hidden;margin:6px 0 18px}
.meter span{display:block;height:100%;background:#0b7974}
.requirement{display:grid;grid-template-columns:28px 1fr auto;gap:8px 16px;align-items:center;padding:14px 0;border-top:1px solid #eaf0ee}
.requirement:first-of-type{border-top:0}
.state-icon{font-size:1.1rem;color:#536477}
.state-icon.done{color:#087563}
.text-button{border:0;background:transparent;color:#075f5d;font-weight:650;padding:6px 12px;border-radius:8px;transition:background .15s;white-space:nowrap}
.text-button:hover{background:#e2f1ed}
.text-button:disabled{color:#9aafab;cursor:default}
.reasons{margin-top:20px;padding:16px;background:#fdf4e8;border-radius:10px}
.reasons strong{display:block;margin-bottom:8px;font-size:.95rem}
.reasons ul{margin:0;padding-left:18px;color:#7a4a00;font-size:.9rem}
.reasons li{margin-bottom:4px}
.summary .step{margin-bottom:6px}
.status-row{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid #eaf0ee;font-size:.95rem}
.muted{color:#738898;font-size:.85rem;line-height:1.5;margin-top:12px}
.compact{padding:20px}
.compact label{display:block;font-weight:600;font-size:.9rem;margin:12px 0 4px;color:#2e4556}
.compact input{width:100%;padding:8px 10px;border:1px solid #dce7e5;border-radius:8px;font-size:.95rem;background:#fff;color:#10243e}
.compact input:focus{outline:2px solid #0b6b69;outline-offset:-1px;border-color:transparent}
.compact button{margin-top:14px;padding:10px 20px;background:#075f5d;color:#fff;border:0;border-radius:8px;font-weight:650;transition:background .15s}
.compact button:hover{background:#064b49}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
@media(max-width:700px){.form-grid{grid-template-columns:1fr}}
.account h2{margin-bottom:4px}
.role{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-top:1px solid #eaf0ee}
.role:first-of-type{border-top:0}
.role small{display:block;color:#738898;font-size:.85rem;margin-top:2px}
.danger{border:0;background:#fce8e4;color:#9b3b25;padding:8px 16px;border-radius:8px;font-weight:650;transition:background .15s}
.danger:hover{background:#f8d5ce}
.birth{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:#2e4556}
.birth input{width:auto;padding:6px 8px;border:1px solid #dce7e5;border-radius:6px;font-size:.85rem}
footer{border-top:1px solid #dce7e5;padding:20px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;color:#738898;font-size:.85rem;background:#fff}
.item-list{list-style:none;margin:0;padding:0}
.item-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #eaf0ee}
.item-row:first-child{border-top:0}
.item-row small{display:block;color:#738898;font-size:.85rem;margin-top:2px}
.muted-id{font-size:.75rem;color:#738898;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.mono-preview,.map-preview{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;white-space:pre-wrap;word-break:break-word;max-height:120px;overflow:auto}
.active{color:#087563}
.recovered,.cancelled{color:#536477}
.rejected{color:#9b3b25}
