*{box-sizing:border-box}
:root{--bg:#10131b;--panel:#191e29;--panel2:#141923;--line:#30394a;--text:#f2f5f9;--muted:#aab4c4;--blue:#3982f6;--green:#20a464;--amber:#e69b25;--purple:#9a63df}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font:14px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body{min-height:100vh;display:flex;flex-direction:column}
.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 20px;border-bottom:1px solid var(--line);background:#131722}
h1{font-size:19px;margin:3px 0 2px;font-weight:700}.eyebrow{font-size:10px;letter-spacing:.12em;color:#9eacc2;font-weight:700}
.topbar p{margin:0;color:var(--muted);font-size:12px}.top-actions{display:flex;gap:10px;align-items:center}.env-tag{font-size:10px;letter-spacing:.08em;border:1px solid #8a6429;color:#f4d49c;background:#392b17;padding:7px 9px;border-radius:7px}
button,select,input{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:9px 12px;background:#2867c9;color:white;font-weight:650}.secondary{background:#242c3a;border:1px solid #414c60;color:#e5eaf2}
.layout{display:grid;grid-template-columns:310px minmax(0,1fr);flex:1;min-height:0}
.sidebar{background:var(--panel);border-right:1px solid var(--line);padding:16px;overflow:auto;max-height:calc(100vh - 76px)}
.sidebar section{margin-bottom:17px}label,.section-title{display:block;font-size:11px;color:#cbd5e1;font-weight:700;margin-bottom:7px}
select,input{width:100%;background:#0f141e;color:var(--text);border:1px solid #394356;border-radius:8px;padding:10px;outline:none}
select:focus,input:focus{border-color:#6198ef}.hint{font-size:11px;line-height:1.5;color:var(--muted);margin:7px 0 0}
.area-row{display:flex;align-items:center;gap:10px;padding:9px 8px;border:1px solid #30394a;border-radius:8px;margin:6px 0;background:#151b26}.area-row b{display:block;font-size:12px}.area-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.dot{width:12px;height:12px;border-radius:50%;flex:none}.ma1{background:#3982f6}.ma2{background:#20a464}.ma3{background:#e69b25}.ma4{background:#9a63df}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat{border:1px solid #30394a;background:#131923;border-radius:8px;padding:10px}.stat strong{display:block;font-size:19px}.stat span{font-size:10px;color:var(--muted)}
.notice{padding:11px;background:#302719;border:1px solid #6e5429;border-radius:8px;color:#f1d7a2}.notice p{font-size:11px;line-height:1.45;margin:5px 0 0}
.status-card{border:1px solid #394356;border-radius:8px;padding:10px;background:#131923}.status-heading{display:flex;align-items:center;gap:8px;font-size:11px}.status-card p{font-size:11px;line-height:1.45;color:var(--muted);margin:7px 0}.status-dot{width:8px;height:8px;border-radius:50%;background:#d99b37}.status-dot.ok{background:#20a464}.status-dot.bad{background:#dc5a5a}.status-card button{font-size:11px;padding:7px 9px}
.attribution{font-size:9px;line-height:1.4;color:#8e9bad}
.map-shell{position:relative;min-width:0;min-height:620px;background:#d7e0e7;overflow:hidden}
#map{position:absolute;inset:0;overflow:hidden;background:#dbe4e8;cursor:grab;touch-action:none}
#map.dragging{cursor:grabbing}.tile-layer,.vector-layer{position:absolute;inset:0;width:100%;height:100%}.tile-layer{overflow:hidden}.tile{position:absolute;width:256px;height:256px;border:0;max-width:none;user-select:none;pointer-events:none;background:#e6ebef}.vector-layer{overflow:visible;pointer-events:none}
.road{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.96;pointer-events:stroke;cursor:pointer;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #1119)}
.road-hit{fill:none;stroke:transparent;stroke-width:16;pointer-events:stroke;cursor:pointer;vector-effect:non-scaling-stroke}
.area-polygon{fill:#94a3b8;fill-opacity:.18;stroke:#64748b;stroke-width:2;stroke-dasharray:7 5;pointer-events:all;vector-effect:non-scaling-stroke}
.map-controls{position:absolute;right:14px;top:14px;display:flex;flex-direction:column;gap:5px;z-index:10}.map-controls button{width:38px;height:38px;padding:0;font-size:23px;background:#fff;color:#1d2735;border:1px solid #9ba6b5;box-shadow:0 1px 5px #0003}
.map-tip{position:absolute;bottom:12px;left:12px;padding:7px 10px;border-radius:7px;background:#101722df;color:#fff;font-size:10px;z-index:5;pointer-events:none}
.map-error{position:absolute;top:12px;left:12px;max-width:min(420px,calc(100% - 80px));padding:10px 12px;border-radius:8px;background:#321e1eec;border:1px solid #bd5555;color:#fff;font-size:12px;line-height:1.45;z-index:8}
.feature-panel{position:absolute;z-index:12;right:14px;bottom:52px;width:min(320px,calc(100% - 28px));padding:16px;background:#171d29f5;border:1px solid #536176;border-radius:12px;box-shadow:0 8px 30px #0005}.feature-panel h2{font-size:17px;margin:5px 0}.feature-panel p{font-size:12px;color:#d3dbe7}.close-panel{position:absolute;right:9px;top:9px;background:#303b4c;padding:3px 9px;font-size:20px}.hidden{display:none!important}
@media(max-width:850px){.layout{grid-template-columns:1fr;grid-template-rows:auto minmax(560px,65vh)}.sidebar{max-height:none;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.sidebar section{margin-bottom:12px}.map-shell{min-height:560px}.topbar{align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:560px){.topbar{padding:12px;display:block}.top-actions{justify-content:flex-start;margin-top:10px}.sidebar{display:block;padding:12px}.layout{grid-template-rows:auto 65vh}.map-shell{min-height:460px}}

.satellite-tag{width:100%;background:#0f141e;color:#f2f5f9;border:1px solid #394356;border-radius:8px;padding:10px;font-size:12px;font-weight:650}
