/* Web workspace: navigation, data and drawing tools have separate, stable homes. */
:root{--bg:#0b111b;--panel:rgba(17,25,38,.97);--solid:#111a28;--raised:#1b283b;--stroke:#243349;--dim:#93a5be;--accent:#42d5ef;--accent-dim:#42d5ef15;--side:344px;--rail:76px;--header:68px;--footer:32px}
body{font-size:16px;-webkit-font-smoothing:antialiased}
button{border-radius:7px;font-size:14px;transition:background .14s,border-color .14s,color .14s}
.panel{border-radius:10px;box-shadow:0 6px 22px #0003;backdrop-filter:blur(12px)}
#map{inset:var(--header) 0 var(--footer) var(--rail);z-index:0}
.topbar{inset:0 0 auto;height:var(--header);border-radius:0;border-width:0 0 1px;background:#0e1725;box-shadow:none;padding:0 22px;gap:26px;z-index:5}
.brand{gap:11px;min-width:235px}.brand>span svg{width:31px;height:31px}.brand b{font-size:20px;letter-spacing:-.5px;font-weight:650}.brand small{font-size:10px;letter-spacing:.13em;margin-top:3px;display:block;color:#7f94af}
.workspace-name{display:flex;align-items:center;gap:10px;padding-left:24px;border-left:1px solid var(--stroke);font-size:14px;color:#b7c5d9;white-space:nowrap}.workspace-name>span{display:block;width:16px;height:14px;border:1px solid #7087a3;border-radius:2px;transform:skewY(-12deg)}
#connection{font-size:12px;margin-left:auto;color:#8fa6c1}.top-actions{margin-left:0;gap:8px}.top-actions button{height:36px;min-height:36px;width:36px;padding:8px}.top-actions .header-sync{width:auto;border:1px solid #31445e;padding:8px 12px;font-size:13px;color:#c5d3e5;gap:8px}.header-sync svg{width:16px;height:16px}.divider{margin:0 2px;height:22px}
.app-rail{position:absolute;top:var(--header);bottom:var(--footer);left:0;width:var(--rail);background:#101927;border-right:1px solid var(--stroke);padding:14px 7px;display:flex;flex-direction:column;gap:8px;z-index:4}
.app-rail button{width:100%;min-height:64px;flex-direction:column;gap:7px;color:#8fa2bb;font-size:11px;padding:11px 2px;border:1px solid transparent;border-radius:8px;position:relative}.app-rail svg{width:23px;height:23px}.app-rail button.active{background:#42d5ef12;border-color:#42d5ef23;color:var(--accent)}.app-rail button.active:before{content:'';position:absolute;left:-8px;width:3px;height:26px;background:var(--accent);border-radius:0 3px 3px 0}.app-rail button:hover{color:var(--text)}
.sheet{left:var(--rail);top:var(--header);bottom:var(--footer);width:var(--side);border-radius:0;border-width:0 1px 0 0;background:#131d2c;box-shadow:8px 0 25px #0002;z-index:3}
.sheet-head{padding:24px 20px 20px;border-bottom:1px solid var(--stroke);min-height:104px}.sheet-head h1{font-size:23px;letter-spacing:-.7px;line-height:1.25;margin-top:7px;font-weight:600}.sheet-head small{font-size:10px;letter-spacing:.14em;color:#7f9ab8}.sheet-head button{align-self:center;margin:0 -8px 0 5px;width:32px;height:32px;min-height:32px;padding:7px}.sheet-head button svg{width:18px;height:18px}
.searchbox{margin:20px 18px 0}.searchbox svg{top:13px;left:12px;width:17px;height:17px}.searchbox input:not([type=range]):not([type=checkbox]):not([type=color]){padding-left:38px;background:#0e1725;font-size:13px;height:43px;border-color:#2b3a50;border-radius:7px}
.count-label{padding:10px 20px 10px;font-size:12px;min-height:50px}.count-label button{min-height:30px;width:30px;padding:6px}.count-label button svg{width:16px;height:16px}
.snapshot-card{margin:0 16px 12px;padding:17px 15px;border:1px solid #2a3b52;border-radius:9px;background:#172335;box-shadow:0 2px 4px #0001}.snapshot-card.selected{border-color:#42d5ef65;background:linear-gradient(120deg,#42d5ef0b,#172335);box-shadow:inset 3px 0 0 #42d5ef}
.snapshot-icon{width:37px;height:37px;border-radius:8px;background:#21344b;color:#70d9ed;border:0}.snapshot-icon svg{width:22px;height:22px}.snapshot-text h3{font-size:15px;letter-spacing:.01em}.snapshot-text p{font-size:12px;margin-top:5px}.snapshot-header{gap:11px}.snapshot-meta{margin-top:13px;gap:6px}.tag{font-size:11px;background:#23344b;color:#9ab0ca;padding:3px 6px;border-radius:3px}
.snapshot-controls{margin-top:15px;gap:7px}.snapshot-controls button{font-size:12px;min-height:34px;border-radius:6px}.snapshot-controls svg{width:16px;height:16px}.snapshot-card .primary{background:#203448;border-color:#355168;color:#b9e5ee;font-weight:500}.snapshot-card .primary:hover{background:#28455d;border-color:#42d5ef80}.snapshot-card.selected .primary{background:var(--accent);color:#092630;border-color:var(--accent);font-weight:600}.snapshot-controls .subtle{border-color:#304157;color:#8da4c0}
.section{padding:20px 19px}.section-title{font-size:11px;letter-spacing:.08em;margin-bottom:15px}.switch-row{font-size:14px;gap:10px;min-height:44px}.field>span{font-size:13px}.radio-tiles{gap:8px}.radio-tiles button{font-size:12px;min-height:46px;border-radius:7px;padding:10px 8px}.radio-tiles svg{width:19px;height:19px}.layer-item{padding:12px 0}.layer-actions{gap:6px}.layer-actions button{font-size:12px}.layer-actions svg{width:15px;height:15px}
.map-controls{right:20px;top:calc(50% - 70px);gap:12px}.map-controls>button,.zoom-group button{width:42px;height:42px;min-height:42px;padding:10px;border-radius:8px}.map-controls svg{width:20px;height:20px}.zoom-group{border-radius:8px}.zoom-group button{border-radius:0}
.toolbar,.sheet-open .toolbar{bottom:52px;left:calc(50% + var(--rail)/2);right:auto;transform:translateX(-50%);padding:5px;gap:2px;border:1px solid #3a4a60;background:rgba(17,28,43,.97);border-radius:10px;z-index:2;max-width:calc(100vw - 120px)}
.sheet-open .toolbar{left:calc(50% + (var(--side) + var(--rail))/2)}
.toolbar>button{flex-direction:row;min-width:0;min-height:39px;gap:8px;padding:10px 12px;font-size:13px;color:#b4c3d6;white-space:nowrap;border-radius:6px}.toolbar>button>span:first-child{display:flex;color:#9eb4cf}.toolbar svg{width:19px;height:19px}.toolbar i{margin:8px 4px}.toolbar>button.active{background:#42d5ef22;color:#71e4f5}.toolbar>button.active>span{color:#71e4f5}
.tool-panel,.sheet-open .tool-panel{bottom:116px;left:calc(50% + var(--rail)/2);right:auto;transform:translateX(-50%);width:410px;padding:14px 18px 16px;z-index:2;border-color:#3a4a60}.sheet-open .tool-panel{left:calc(50% + (var(--side) + var(--rail))/2)}
.tool-heading{font-size:11px;letter-spacing:.09em}.tool-heading button{width:27px;height:27px;min-height:27px}.tool-heading button svg{width:17px;height:17px}#tool-value{font-size:27px;font-weight:550;letter-spacing:-.7px;margin:5px 0 8px}#tool-hint{font-size:12px;line-height:1.6}.tool-actions{gap:8px;margin-top:14px}.tool-actions>button{min-height:36px}.tool-actions svg{width:17px;height:17px}
.map-info{left:0;right:0;bottom:0;height:var(--footer);padding:0 20px;border-radius:0;border-width:1px 0 0;background:#101927;box-shadow:none;gap:13px;z-index:5;font-size:11px}.map-info svg{width:13px;height:13px;display:block}.map-info .info-separator{display:block;height:12px}.map-info #zoom-label{display:block}.status-projection{margin-left:auto;color:#647e9f;font-size:11px;letter-spacing:.02em}
.leaflet-control-scale{margin-left:18px!important;margin-bottom:18px!important}body:has(#workspace.sheet-open) .leaflet-control-scale{margin-left:calc(var(--side) + 18px)!important}.leaflet-control-attribution{background:#142032dc!important;color:#97acc7!important;font-size:10px!important}.leaflet-control-attribution a{color:#acc5e2!important}.leaflet-control-scale-line{border-color:#c3d5e8;color:#dfeaff;background:#142032dc}
.coord-row{padding:10px 11px;border-radius:7px}.coord-row label{font-size:10px;letter-spacing:.05em}.coord-row code{font-size:13px}.coord-row button{min-height:28px}.feature-row{padding:15px 18px}.feature-row b{font-weight:550;font-size:14px}.feature-row small{font-size:12px}.feature-row>span svg{width:20px;height:20px}.warning{margin:14px 18px;font-size:12px}.empty{padding:35px 22px}.empty p{font-size:13px}
.toast{bottom:116px;border-radius:8px;background:#20344c;border-color:#3c5879;font-size:13px;max-width:min(480px,90vw)}
.login-screen{background-color:#0a111c;background-image:radial-gradient(ellipse at 50% 0,#18354b70,transparent 65%),linear-gradient(#3350690c 1px,transparent 1px),linear-gradient(90deg,#3350690c 1px,transparent 1px);background-size:auto,48px 48px,48px 48px;padding:28px;overflow:auto}
.login-card{width:430px;max-width:100%;padding:36px 36px 24px;text-align:left;background:#101b2bed;border:1px solid #2d4058;border-radius:16px;box-shadow:0 30px 90px #0005}
.login-symbol{width:52px;height:52px;border-radius:13px;margin:0 0 20px;background:#42d5ef0f;border:1px solid #42d5ef2c}.login-symbol svg{width:31px;height:31px}.login-card h1{font-size:28px;font-weight:600;letter-spacing:-.8px}.login-caption{font-size:13px;margin-top:8px;color:#8da4c0}.login-rule{margin:25px 0;background:#26394f}.login-card h2{font-size:18px;font-weight:550;margin-bottom:8px}.login-card>.muted{font-size:13px}.pin-label{display:block;font-size:13px;color:#a7b8cf;margin-top:24px}.login-card #pin{height:50px;margin:8px 0 0;font-size:23px;text-align:left;padding:12px 15px;letter-spacing:.3em;background:#0c1522;border:1px solid #34485f;border-radius:7px}.login-card #pin::placeholder{font-size:18px;color:#7084a0}.keypad{display:none}.login-submit{height:44px;min-height:44px;margin-top:20px;width:100%;font-size:14px;border-radius:7px;font-weight:600}.login-card footer{justify-content:flex-start;border-top:1px solid #23354b;padding-top:18px;margin-top:20px;font-size:11px;gap:7px;color:#7f97b6}.login-card footer svg{width:12px;height:12px}.error{font-size:12px;margin-top:10px;min-height:18px}
dialog{border-radius:12px;border-color:#334a66;padding:25px;background:#142032}.dialog-head h2{font-size:20px;font-weight:550}.dialog-footer button{font-size:14px}.field input[type=color]{height:40px;border-radius:6px}
@media(max-width:1150px){:root{--side:314px;--rail:68px}.brand{min-width:210px}.workspace-name{display:none}.toolbar>button{padding:10px 9px;font-size:12px;gap:6px}.sheet-head h1{font-size:21px}.sheet-open .tool-panel{width:370px}}
@media(max-width:950px) and (min-width:701px){.toolbar>button{width:42px;padding:10px}.toolbar>button>span:last-child{display:none}.toolbar>button>span:first-child{display:flex}.toolbar i{margin:8px 3px}.toolbar,.sheet-open .toolbar{right:auto}.tool-panel,.sheet-open .tool-panel{width:calc(100vw - var(--side) - var(--rail) - 50px);min-width:250px}.topbar{padding:0 18px;gap:14px}#connection{font-size:11px}.header-sync>span:last-child{display:none}.top-actions .header-sync{width:36px;padding:8px}}
@media(max-width:700px){:root{--header:58px;--footer:0px;--rail:0px;--side:100vw}#map{inset:58px 0 62px}.topbar{height:58px;inset:0 0 auto;padding:0 14px;gap:10px;border-radius:0}.brand{min-width:0;gap:9px}.brand b{font-size:17px;letter-spacing:-.4px}.brand small{display:none}.brand>span svg{width:26px;height:26px}.workspace-name{display:none}#connection{max-width:86px;font-size:10px;margin-left:auto;overflow:hidden;text-overflow:ellipsis}.top-actions{gap:2px}.top-actions .divider{display:none}.top-actions button,.top-actions .header-sync{width:32px;height:34px;min-height:34px;padding:7px;border:0}.header-sync>span:last-child{display:none}
  .app-rail{left:0;right:0;top:auto;bottom:0;width:auto;height:62px;flex-direction:row;gap:0;padding:5px 10px;background:#101b2b;border:0;border-top:1px solid #2a3e57;z-index:1200}.app-rail button{flex:1;min-height:50px;width:auto;flex-direction:row;gap:8px;padding:10px 5px;font-size:12px}.app-rail svg{width:20px;height:20px}.app-rail button.active:before{display:none}.app-rail button.active{border-color:transparent;background:#42d5ef16}
  .sheet{top:auto;bottom:62px;left:0;right:0;width:auto;max-height:68dvh;border-radius:16px 16px 0 0;border-width:1px 0 0;border-color:#3b4d66;box-shadow:0 -15px 50px #0005;z-index:1100}.sheet-head{padding:19px 20px 17px;min-height:88px}.sheet-head h1{font-size:22px}.sheet-head small{font-size:10px}.sheet-head button{margin-right:-6px}.snapshot-card{margin-left:16px;margin-right:16px;padding:15px}.snapshot-controls button{min-height:37px;font-size:13px}.snapshot-header h3{font-size:16px}.searchbox{margin-top:17px}
  .toolbar,.sheet-open .toolbar{left:12px!important;right:12px!important;bottom:100px;transform:none!important;padding:5px;justify-content:space-around;max-width:none;gap:0;border-radius:9px}.toolbar>button{display:flex;flex-direction:column;flex:1;gap:5px;min-width:0;min-height:48px;padding:7px 2px;font-size:10px}.toolbar>button>span:first-child{display:flex}.toolbar>button>span:last-child{display:block}.toolbar svg{width:20px;height:20px}.toolbar i{margin:8px 2px}.sheet-open .toolbar{visibility:hidden}
  .tool-panel,.sheet-open .tool-panel{left:12px;right:12px;bottom:174px;width:auto;min-width:0;transform:none;padding:13px 16px 14px}.tool-heading{font-size:10px}#tool-value{font-size:25px}#tool-hint{font-size:12px}.sheet-open .tool-panel{visibility:hidden}
  .map-controls{right:12px;top:calc(42% - 65px);gap:10px}.map-controls>button,.zoom-group button{width:40px;height:40px;min-height:40px;padding:9px}.map-info{left:0;right:0;bottom:62px;height:25px;padding:0 13px;font-size:10px;border-width:1px 0 0;background:#101b2bde}.map-info svg{width:11px;height:11px}.status-projection{display:none}.map-info #zoom-label{margin-left:auto;display:block}.map-info .info-separator{display:none}.sheet-open .map-info{visibility:hidden}.leaflet-control-scale{margin-left:13px!important;margin-bottom:115px!important}.leaflet-control-attribution{font-size:9px!important;max-width:96vw}.toast{bottom:166px;font-size:12px}.login-screen{padding:20px}.login-card{width:390px;padding:29px 25px 22px}.login-card h1{font-size:26px}.login-symbol{width:47px;height:47px;margin-bottom:18px}.login-symbol svg{width:28px;height:28px}.login-rule{margin:23px 0}.login-card #pin{height:49px;margin-top:8px}.login-card footer{margin-top:18px}.login-submit{margin-top:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){body:has(#workspace.sheet-open) .leaflet-control-scale{margin-left:13px!important;visibility:hidden}}
.top-actions{margin-left:auto}
.top-actions .language-switch,.language-switch{min-width:38px;width:38px;min-height:34px;font-size:12px;font-weight:600;letter-spacing:.04em;color:#bcd3e9;border:1px solid #344960;background:#172639}
.login-card{position:relative}.login-language{position:absolute;right:26px;top:26px}
@media(max-width:700px){.top-actions .language-switch{width:34px;min-width:34px;height:32px;min-height:32px;margin-right:3px}.login-language{right:22px;top:22px}.topbar{gap:7px}.brand b{font-size:16px}}
