@font-face{font-family:Sistema;src:local("Segoe UI");font-display:swap}

:root{--ink:#142c31;--muted:#6e7e82;--line:#e3e9e8;--bg:#f4f6f5;--green:#148353;--red:#c8403b;--gray:#8b969a;--accent:#c66a3c;font-family:Sistema,Inter,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}

*{box-sizing:border-box}
body{margin:0}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
button:disabled{cursor:wait}
button:focus-visible,a:focus-visible{outline:3px solid #db9a54;outline-offset:4px}
button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4%;background:#fff}
.brand{display:flex;gap:12px;color:var(--ink);text-decoration:none;align-items:center}
.brand-mark{width:35px;height:40px;color:#b45f39}
.brand strong{font-size:16px;letter-spacing:.16em}
.brand small{display:block;font-size:10px;letter-spacing:.22em;color:var(--muted);margin-top:5px}
.public-access{display:flex;align-items:center;gap:8px;color:#657679;font-size:12px}
.public-access span{height:6px;width:6px;border-radius:50%;background:#859c92}
main{max-width:1700px;margin:0 auto;padding:34px 4% 20px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--muted);margin:0 0 10px}
h1{margin:0;font-size:36px;letter-spacing:-.035em;font-weight:650;line-height:1.2}
.heading-note{color:var(--muted);font-size:14px;margin:10px 0 0}
.mine-switch{display:flex;gap:3px;padding:4px;background:#e9edeb;border:1px solid #e0e6e2;border-radius:9px}
.mine-switch button{padding:11px 21px;background:none;border:0;border-radius:6px;color:#6a7778;font-size:13px}
.mine-switch .active{background:#fff;color:var(--ink);box-shadow:0 2px 5px #142c310c;font-weight:600}
.info-strip{display:grid;grid-template-columns:1.15fr 1.15fr 1.15fr auto;align-items:center;border:1px solid var(--line);background:#fff;border-radius:10px;padding:18px 22px;margin-bottom:24px;gap:22px}
.info-strip>div+div{border-left:1px solid var(--line);padding-left:25px}
.info-label{display:flex;gap:6px;align-items:center;font-size:9px;font-weight:650;letter-spacing:.12em;color:var(--muted);margin-bottom:7px}
.info-strip strong{font-size:14px;font-weight:550;font-variant-numeric:tabular-nums}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#97a0a2}
.dot.connected{background:var(--green)}
#refresh{display:flex;gap:7px;align-items:center;background:#f7f9f8;border:1px solid var(--line);color:#526668;padding:10px 12px;border-radius:6px;font-size:12px}
.workspace{display:grid;grid-template-columns:302px minmax(0,1fr);gap:22px;align-items:start}
.sidebar{padding:24px 22px;background:#fff;border:1px solid var(--line);border-radius:12px}
.section-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.section-header h2{font-size:17px;line-height:1.4;margin:0;letter-spacing:-.025em}
.section-header .eyebrow{font-size:9px;margin-bottom:7px}
.count{font-size:12px;border:1px solid var(--line);border-radius:5px;padding:5px 7px;color:#71817c}
.sidebar-note{font-size:12px;line-height:1.6;color:var(--muted);margin:15px 0 22px}
.polygon-list{display:flex;flex-direction:column;gap:9px}
.polygon-button{padding:15px 13px;width:100%;border:1px solid var(--line);background:#fff;border-radius:8px;text-align:left;color:var(--ink);transition:border-color .15s,background .15s}
.polygon-button:hover{border-color:#a2b9ac;background:#f8fbf9}
.polygon-button.selected{border-color:#536e61;box-shadow:0 0 0 1px #536e61;background:#f7faf8}
.polygon-topline{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:13px}
.polygon-number{font-size:10px;font-weight:650;letter-spacing:.1em;color:#98a5a2}
.polygon-arrow{font-size:15px;color:#94a39c}
.polygon-name{display:block;font-size:13px;line-height:1.45;font-weight:600;min-height:19px}
.state-pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:650;line-height:1;padding:7px 9px;border-radius:20px;background:#edf0f1;color:#67757b;white-space:nowrap}
.state-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.state-pill.center{background:#e8f5ec;color:#177c4e}
.state-pill.outside{background:#fbeceb;color:#b83d38}
.legend{border-top:1px solid var(--line);padding-top:21px;margin-top:25px}
.legend h3{font-size:11px;margin:0 0 16px;color:#526a66;font-weight:650}
.legend p{display:flex;gap:10px;align-items:center;margin:11px 0}
.legend strong{font-size:11px;font-weight:550}
.legend small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.swatch{width:10px;height:10px;border-radius:2px;background:var(--gray)}
.swatch.center{background:var(--green)}
.swatch.outside{background:var(--red)}
.source-note{margin-top:24px;padding:13px 11px;background:#f6f8f7;border-radius:6px;display:flex;align-items:flex-start;gap:8px;color:#7a8a84}
.source-note svg{width:16px;height:16px;flex-shrink:0;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.5}
.source-note p{font-size:10px;line-height:1.6;margin:0}
.map-panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;padding:15px 21px;border-bottom:1px solid var(--line)}
.level-tabs{display:flex;gap:6px}
.level-tabs button{border:0;background:none;border-radius:5px;color:#81918b;padding:9px 16px;font-size:12px;font-weight:600;letter-spacing:.04em}
.level-tabs button:hover{background:#f0f5f2}
.level-tabs button.active{background:var(--ink);color:#fff}
.icon-button{border:1px solid var(--line);background:#fff;display:grid;place-items:center;padding:7px;border-radius:6px;color:#6c7f78}
.icon-button svg{width:16px;height:16px}
.level-heading{padding:21px 25px 19px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.level-heading .eyebrow{font-size:9px;display:block;margin-bottom:5px}
.level-heading h2{font-weight:600;font-size:19px;margin:0;letter-spacing:-.02em}
.altitude{font-size:11px;background:#f2f5f3;border:1px solid #e7ece9;color:#708279;border-radius:5px;padding:7px 10px;white-space:nowrap}
.map-stage{position:relative;min-height:340px;aspect-ratio:1.657/1;background:#f8faf8;border-top:1px solid #f1f4f2;border-bottom:1px solid #edf1ee;overflow:hidden}
.map-stage svg#mine-map{width:100%;height:100%;display:block;touch-action:none;user-select:none;cursor:grab}
#mine-map:active{cursor:grabbing}
.map-zone{stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;cursor:pointer;transition:fill .3s,stroke .2s;fill:#e2e6e8;fill-opacity:.45;stroke:#8c999e}
.map-zone.center{fill:#28bd73;stroke:#168255;fill-opacity:.28}
.map-zone.outside{fill:#e14b43;stroke:#bd3832;fill-opacity:.32}
.map-zone.selected{stroke-width:3.8;fill-opacity:.53}
.map-zone:focus{outline:none;stroke-width:4;stroke:#193f46}
.map-label{pointer-events:none}
.map-label rect{fill:#fff;stroke:#d2dfd7;stroke-width:1.5;opacity:.95;rx:10}
.map-label text{font-family:Sistema,"Segoe UI",Arial,sans-serif;fill:#28413b;font-size:23px;font-weight:650;text-anchor:middle}
.map-label .label-code{font-size:16px;fill:#71817b;letter-spacing:.08em}
.map-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:13px;background:#f8faf8}
.zoom-controls{position:absolute;bottom:22px;right:20px;border:1px solid #dce4df;background:#fff;border-radius:7px;box-shadow:0 3px 12px #142c310a;display:flex;flex-direction:column;overflow:hidden}
.zoom-controls button{border:0;background:#fff;display:grid;place-items:center;width:35px;height:35px;color:#526960;font-size:22px}
.zoom-controls button+button{border-top:1px solid #edf1ee}
.zoom-controls button:hover{background:#f1f6f2}
.zoom-controls svg{width:16px;height:16px}
.plan-tag{position:absolute;bottom:18px;left:20px;font-size:8px;font-weight:600;letter-spacing:.12em;background:#ffffffed;color:#85928d;border:1px solid #e5ece7;border-radius:4px;padding:7px 9px;pointer-events:none}
.map-bottom{padding:15px 22px;display:flex;gap:10px;justify-content:space-between;color:#82918a;font-size:10px}
.map-bottom>span:first-child{display:flex;align-items:center;gap:7px}
.live-indicator{height:5px;width:5px;border-radius:50%;background:#8da895}
.notice{font-size:12px;line-height:1.6;padding:12px 16px;border:1px solid #ecdab9;background:#fff8eb;color:#84632d;border-radius:7px;margin-bottom:20px}
.notice.demo{border-color:#bed6e1;background:#eaf4f9;color:#376578}
.pending-panel{background:#fff;border:1px solid var(--line);border-radius:12px;text-align:center;padding:90px 20px}
.pending-icon{display:grid;place-items:center;width:65px;height:65px;background:#f0f4f2;border-radius:14px;font-size:20px;margin:0 auto 28px;color:#59796b}
.pending-panel h2{font-size:26px;letter-spacing:-.02em}
.pending-panel>p:last-child{font-size:14px;color:var(--muted);line-height:1.8}
footer{display:flex;justify-content:space-between;gap:20px;margin-top:27px;padding:15px 0;font-size:10px;color:#95a19b}
.map-panel:fullscreen{background:white;display:flex;flex-direction:column}
.map-panel:fullscreen .map-stage{min-height:0;flex:1;aspect-ratio:auto}
.map-panel:fullscreen .map-stage svg{position:absolute;inset:0}
button.busy svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
@media(min-width:1500px){.workspace{grid-template-columns:330px minmax(0,1fr)}
.map-stage{aspect-ratio:1.75/1}
}
@media(max-width:1050px){main{padding:28px 24px}
.topbar{padding:0 24px}
.workspace{grid-template-columns:250px minmax(0,1fr);gap:16px}
.sidebar{padding:20px 16px}
.polygon-name{font-size:12px}
.info-strip{gap:15px;padding:17px}
.info-strip>div+div{padding-left:15px}
#refresh span{display:none}
.map-stage{min-height:390px;aspect-ratio:auto}
.map-stage svg#mine-map{position:absolute;inset:0}
.map-bottom{font-size:9px;padding:14px}
.level-heading{padding:18px}
.level-heading h2{font-size:17px}
.map-toolbar{padding:13px 16px}
.level-tabs button{padding:8px 13px}
}
@media(max-width:760px){.topbar{height:72px;padding:0 20px}
.brand-mark{width:28px}
.brand strong{font-size:13px}
.brand small{font-size:8px}
.public-access{font-size:10px}
main{padding:26px 16px 15px}
.page-heading{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:20px}
h1{font-size:30px}
.heading-note{font-size:12px}
.mine-switch{width:100%;justify-content:stretch}
.mine-switch button{flex:1;padding:10px}
.info-strip{grid-template-columns:1fr 1fr;gap:16px 10px;padding:16px;margin-bottom:17px}
.info-strip>div+div{padding-left:0;border-left:0}
.info-strip strong{font-size:12px}
.info-label{font-size:8px;letter-spacing:.07em}
.info-strip>div:first-child{grid-column:1/-1}
#refresh{position:absolute;right:34px;margin-top:-57px;padding:8px}
.workspace{display:flex;flex-direction:column;gap:16px}
.sidebar{width:100%;padding:19px 16px}
.section-header h2{font-size:16px}
.sidebar-note{font-size:11px;margin:10px 0 15px}
.polygon-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.polygon-button{padding:12px}
.polygon-topline{margin-bottom:10px}
.state-pill{font-size:9px;padding:6px 7px}
.polygon-name{font-size:11px;min-height:32px}
.legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:14px}
.legend h3{display:none}
.legend p{margin:0;gap:6px}
.legend strong{font-size:9px}
.legend small{display:none}
.swatch{width:7px;height:7px}
.source-note{margin-top:13px;padding:10px}
.source-note p{font-size:9px}
.map-panel{width:100%}
.map-stage{min-height:340px}
.map-toolbar{padding:12px 15px}
.level-tabs button{padding:8px 15px}
.level-heading h2{font-size:17px}
.map-bottom{padding:13px;gap:8px;flex-wrap:wrap}
.plan-tag{font-size:7px;left:12px;bottom:13px}
.zoom-controls{right:12px;bottom:13px}
footer{flex-direction:column;gap:7px;margin-top:15px;font-size:9px}
.notice{font-size:11px}
.pending-panel{padding:60px 20px}
.map-panel:fullscreen .map-stage{flex:1}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}
}

