:root{font:16px/1.45 system-ui,sans-serif;color:#172739;background:#edf2f6;--navy:#163649;--line:#d9e2e9}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input[type=search]{border:1px solid #b9c8d5;border-radius:7px;background:white;color:inherit;padding:.45rem .65rem}button{cursor:pointer;font-weight:650;white-space:nowrap}button:hover{background:#edf5fb}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #528dd0;outline-offset:2px}.top{min-height:78px;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;color:white;background:var(--navy);gap:12px}.top h1{margin:0;font-size:1.55rem;letter-spacing:-.035em}.top span{font-size:.875rem;color:#cbdee7}.top button{color:var(--navy)}.actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}main{height:calc(100dvh - 78px);min-height:500px;display:grid;grid-template-columns:minmax(290px,335px) 1fr}aside{display:flex;flex-direction:column;background:white;border-right:1px solid var(--line);min-height:0}.controls{padding:15px 16px 8px}label{display:block;font-size:.925rem;font-weight:600;margin:0 0 4px}input[type=search],select{width:100%;margin:0 0 10px}fieldset{border:1px solid var(--line);border-radius:7px;display:grid;gap:2px;margin:0 0 10px;padding:5px 9px 8px}legend{font-size:.875rem;font-weight:700}fieldset label{font-weight:500;margin:0}input[type=checkbox]{accent-color:#136373}.notice{font-size:.875rem;background:#edf4f7;border-radius:6px;padding:.5rem .65rem;margin:.4rem 0 .7rem}#message:empty,#import-error:empty{display:none}#message,#import-error{font-size:.875rem;color:#164f5e;margin:.45rem 0}#results{list-style:none;padding:0;margin:0;overflow:auto;min-height:0}#results li{border-top:1px solid #e8eef3}#results button{width:100%;text-align:left;border:0;border-radius:0;padding:.55rem .8rem;white-space:normal;background:white}#results button:hover{background:#edf5fb}#results strong{font-size:.94rem;display:block}#results small{display:block;color:#456077;font-size:.80rem}.maparea{position:relative;min-width:0}#map{height:100%;background:#e4edf2}.key{position:absolute;z-index:500;right:12px;bottom:27px;padding:9px 12px;background:white;border:1px solid #d7e2ea;border-radius:8px;box-shadow:0 2px 10px #142c461c;font-size:.8rem;max-width:250px}.key b{font-size:.9rem}.key div div{display:flex;gap:7px;align-items:center;margin-top:3px}#symbols{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;margin-top:6px}.dot{width:10px;height:10px;border-radius:50%;background:var(--tone);display:inline-block}.pin{display:inline-grid;place-items:center;background:var(--tone);color:#fff;width:19px;height:19px;border:2px solid #fff;box-shadow:0 0 0 1px #17273985}.pin.stake{transform:rotate(45deg);border-radius:3px}.pin.district{border-radius:3px}.pin.ward{width:12px;height:12px;border-radius:50%}.pin.branch{clip-path:polygon(50% 0,100% 100%,0 100%);width:17px;height:15px;background:#fff;border:none;box-shadow:none}.pin.branch:after{content:"";width:13px;height:11px;clip-path:inherit;background:var(--tone);margin-top:2px}.pin.care{font:bold 15px system-ui;border-radius:50%}.pin.office{border-radius:50%;font:bold 12px system-ui}.map-pin{display:grid;place-items:center}dialog{border:1px solid var(--line);border-radius:12px;padding:22px;width:min(480px,calc(100vw - 32px));box-shadow:0 16px 75px #142c464a}dialog::backdrop{background:#0b203666}dialog h2{margin:0;font-size:1.35rem}dialog p{font-size:.9rem}dialog .actions{justify-content:flex-end;margin-top:12px}.primary{background:#176575;border-color:#176575;color:white}.primary:hover{background:#104c59}.leaflet-popup-content{font-size:.87rem}.leaflet-popup-content button{margin-top:6px}
@media(max-width:700px){main{height:auto;min-height:0;display:flex;flex-direction:column}.maparea{order:-1;height:54dvh;min-height:340px}#results{max-height:320px}.top{padding:9px 12px}.top h1{font-size:1.2rem}.top button{font-size:.8rem}.key{font-size:.68rem;max-width:175px}aside{border:0}.controls{padding:12px}}
.pin-set{display:flex;align-items:center;gap:3px;white-space:nowrap}.pin-set .pin{flex:none}.pin-set .pin.stake{margin:3px}
.brand{display:flex;align-items:center;gap:.75rem}.top .atlas-mark{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #b8d6e1;border-radius:9px;color:white;font-weight:750}.site-notice{margin:0;color:#d6e7ee;font-size:.8rem}.top>div:last-child{flex:none}main{height:calc(100dvh - 92px)}.top{min-height:92px}#edit-distance,#edit-author{border:1px solid #b9c8d5;border-radius:7px;padding:.45rem .65rem;width:100%}#audit{font-size:.88rem;margin-top:.5rem}#audit-list{max-height:8em;overflow:auto;padding-left:1.35em}#edit-error{color:#9d3024}.key{pointer-events:none}@media(max-width:700px){main{height:auto}.top{flex-wrap:wrap}.site-notice{max-width:45ch}}
