:root{color-scheme:light;--ink:#142837;--muted:#526776;--line:#d9e3e9;--paper:#fff;--wash:#f4f8fa;--brand:#14605d;--green:#18865c;--orange:#bc5529;--gray:#60707d}
*{box-sizing:border-box}body{margin:0;background:var(--wash);color:var(--ink);font:1rem system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:#145c74}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #148a81;outline-offset:2px}
header{background:#113441;color:white;padding:1.1rem 1.5rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.3rem,2.5vw,1.9rem)}header p{color:#cae4e9;font-size:.89rem;margin-top:.3rem}.header-total{white-space:nowrap;font-weight:650;font-size:.93rem}
.layout{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:calc(100dvh - 87px)}aside{background:var(--paper);border-right:1px solid var(--line);padding:1.15rem;overflow:auto;height:calc(100dvh - 87px)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.panel-head h2{font-size:1.15rem}.quiet{padding:.38rem .55rem;border:1px solid var(--line);border-radius:7px;color:var(--brand);background:white;font-size:.88rem;font-weight:650}
.field{display:grid;gap:.3rem;margin:.75rem 0}.field label{font-size:.88rem;font-weight:650}.field input,.field select{width:100%;min-height:2.35rem;border:1px solid #bccbd4;border-radius:7px;background:white;color:var(--ink);padding:.35rem .55rem}.field input[type=search]{padding-left:.65rem}.field select{appearance:none;padding-right:1.8rem;background:white linear-gradient(45deg,transparent 50%,#536c78 50%) calc(100% - 14px) center/5px 5px no-repeat}.panel-note{font-size:.82rem;color:var(--muted);margin-top:.9rem;line-height:1.45}
main{min-width:0;min-height:32rem;display:flex;flex-direction:column;height:calc(100dvh - 87px);padding:.85rem;gap:.65rem}.mapbar{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1.25rem;background:white;border:1px solid var(--line);border-radius:10px;padding:.56rem .8rem}.view-mode{display:flex;align-items:center;gap:.45rem;font-size:.88rem}.view-mode select{max-width:100%;min-height:2.2rem;padding:.3rem .5rem;border:1px solid #bccbd4;border-radius:7px;background:white;color:var(--ink)}.stat{font-size:.9rem;font-weight:650}.map-key{display:flex;flex-wrap:wrap;gap:.5rem .95rem;font-size:.84rem;color:var(--muted)}.map-key span{display:inline-flex;align-items:center;gap:.36rem}.dot{height:.62rem;width:.62rem;border-radius:50%;display:inline-block}.yes{background:var(--green)}.no{background:var(--orange)}.meter{background:var(--gray)}
.map{flex:1;position:relative;min-height:24rem;border:1px solid #bdcdd6;border-radius:12px;overflow:hidden;background:#e7eff2}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas.drag{cursor:grabbing}.tools{position:absolute;left:.7rem;top:.7rem;display:grid;gap:.35rem}.tools button{min-width:2.45rem;min-height:2.45rem;border:1px solid #c7d5de;border-radius:7px;background:white;color:var(--ink);font-weight:700;box-shadow:0 2px 6px #102a3a22}.tools .fit{font-size:.82rem;padding:.35rem .52rem}.credits{position:absolute;right:0;bottom:0;background:#fffffff2;color:var(--muted);padding:.25rem .4rem;font-size:.74rem}.message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:.95rem;background:white;padding:.8rem 1rem;border:1px solid var(--line);border-radius:8px;text-align:center;pointer-events:none}
.card{position:absolute;right:.7rem;top:.7rem;max-height:calc(100% - 2.5rem);overflow:auto;width:min(25rem,calc(100% - 5.5rem));background:white;border:1px solid var(--line);box-shadow:0 8px 28px #102a3a32;border-radius:10px;padding:.95rem}.card-head{display:flex;justify-content:space-between;gap:.5rem;align-items:start}.card h2{font-size:1.15rem}.card p{font-size:.86rem;color:var(--muted);margin-top:.3rem}.close{border:0;background:#eef4f7;border-radius:6px;font-size:1.2rem;width:2rem;height:2rem}.card dl{display:grid;grid-template-columns:minmax(6rem,.85fr) 1.25fr;gap:.38rem .5rem;font-size:.86rem;margin:.8rem 0}.card dt{color:var(--muted)}.card dd{margin:0;overflow-wrap:anywhere}.choice{display:block;margin:.4rem 0;text-align:left;background:#f5f8fa;border:1px solid var(--line);border-radius:6px;padding:.38rem .53rem;color:var(--ink);width:100%;font-size:.87rem}
[hidden]{display:none!important}@media(max-width:800px){header{padding:.8rem 1rem}.header-total{display:none}.layout{display:flex;flex-direction:column}.layout aside{height:auto;border-right:0;border-bottom:1px solid var(--line);padding:.8rem 1rem}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .65rem}.field{margin:.4rem 0}.full{grid-column:1/-1}.panel-note{margin:.45rem 0 0}main{height:68dvh;padding:.55rem;min-height:27rem}}
.account-head{display:flex;align-items:center;gap:.9rem}
.account-head form{margin:0}.account-head button{background:#ffffff14;border:1px solid #6b8d96;border-radius:7px;color:#fff;padding:.45rem .7rem;white-space:nowrap}
.access-wrap{height:auto;min-height:100dvh;display:grid;place-items:center;padding:1.25rem}
.access-card{width:min(100%,27rem);background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 10px 40px #11344116}
.access-header{padding:1.3rem 1.35rem;background:#113441;color:#fff}.access-header p{margin-top:.4rem;color:#cae4e9}
.access-form,.access-state{padding:1.35rem}.access-error{background:#fceee9;color:#863718;border-radius:7px;padding:.65rem}
.access-button{border:0;background:var(--brand);color:#fff;padding:.6rem 1rem;border-radius:7px;font-weight:650}
