:root{color-scheme:dark;--bg:#0b1018;--panel:rgba(18,26,38,.96);--solid:#131b27;--raised:#1b2636;--stroke:#26344a;--accent:#3ddcff;--accent-dim:#3ddcff1c;--text:#eaf2ff;--dim:#8a9bb4;--danger:#ff5c7a;--ok:#4ade80;--side:370px}*{box-sizing:border-box}html,body{height:100%;width:100%;margin:0;overflow:hidden}body,input,button,select,textarea{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px}body{background:var(--bg);color:var(--text)}button,input,select,textarea{color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:none;border:0;border-radius:9px;cursor:pointer;min-height:42px;padding:9px 12px;transition:background .15s,color .15s}button:hover{background:var(--raised)}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ui-icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}button>svg:only-child{width:22px;height:22px}a{color:var(--accent)}p{line-height:1.55}h1,h2,h3,p{margin:0}h1{font-size:24px;font-weight:650}h2{font-size:21px}h3{font-size:16px}small{font-size:12px;letter-spacing:.12em;color:var(--dim)}.muted{color:var(--dim);font-size:14px;line-height:1.6}.panel{background:var(--panel);border:1px solid var(--stroke);box-shadow:0 4px 24px #0003;border-radius:14px;backdrop-filter:blur(12px)}[hidden]{display:none!important}#map{position:absolute;inset:0;background:#17222d}#workspace{position:absolute;inset:0;pointer-events:none;z-index:500}#workspace>*{pointer-events:auto}.topbar{position:absolute;left:18px;right:18px;top:max(18px,env(safe-area-inset-top));height:66px;display:flex;align-items:center;padding:8px 10px 8px 18px;gap:24px}.brand{display:flex;align-items:center;gap:12px}.brand>span{color:var(--accent);display:flex}.brand>span svg{width:30px;height:30px}.brand b{font-size:19px;letter-spacing:-.4px}.brand small{display:block;margin-top:3px;font-size:10px;letter-spacing:.16em}.top-actions{display:flex;align-items:center;gap:3px;margin-left:auto}.top-actions button{width:44px;height:44px}#connection{font-size:13px;color:var(--dim);margin-left:auto;white-space:nowrap}#connection.offline{color:#ffc857}.divider{height:24px;width:1px;background:var(--stroke);margin:0 6px}.sheet{position:absolute;left:18px;top:98px;bottom:112px;width:var(--side);overflow:hidden;display:flex;flex-direction:column}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:24px 22px 19px;border-bottom:1px solid var(--stroke)}.sheet-head h1{margin-top:5px;letter-spacing:-.5px}.sheet-head small{font-size:11px}.sheet-head button{align-self:flex-start;margin:-5px -10px 0 0;color:var(--dim)}#sheet-body{overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-width:thin;scrollbar-color:var(--stroke) transparent}.section{padding:19px 20px;border-bottom:1px solid var(--stroke)}.section:last-child{border:0}.section-title{text-transform:uppercase;font-size:12px;letter-spacing:.08em;color:var(--dim);margin-bottom:14px}.searchbox{position:relative;margin:18px 20px 0}.searchbox svg{position:absolute;left:12px;top:12px;color:var(--dim);width:18px}.searchbox input{padding-left:39px}input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea{width:100%;background:#0e1622;border:1px solid var(--stroke);border-radius:9px;padding:12px 13px;outline:none;font-size:14px}input:focus,select:focus,textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim)}textarea{resize:vertical;min-height:80px}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' stroke='%238a9bb4' fill='none'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}input::placeholder{color:#677b97}input[type=range]{width:100%;accent-color:var(--accent);height:18px;cursor:pointer}input[type=checkbox]{appearance:none;width:36px;height:21px;border:1px solid var(--stroke);border-radius:12px;background:#0b1018;position:relative;cursor:pointer;flex-shrink:0}input[type=checkbox]:after{content:'';position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:var(--dim);transition:transform .15s}input[type=checkbox]:checked{background:#3ddcff30;border-color:#3ddcff60}input[type=checkbox]:checked:after{background:var(--accent);transform:translateX(15px)}.row{display:flex;align-items:center;gap:9px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;min-height:42px}.primary{background:var(--accent);color:#08202a;font-weight:650;border:1px solid var(--accent)}.primary:hover{background:#7ce9ff}.secondary{background:var(--raised);border:1px solid var(--stroke)}.subtle{border:1px solid var(--stroke);color:var(--dim)}.danger{color:var(--danger)}.full{width:100%}.count-label{font-size:13px;color:var(--dim);padding:16px 22px 10px}.snapshot-card{margin:0 14px 10px;padding:15px;border:1px solid var(--stroke);border-radius:11px;background:linear-gradient(120deg,#1b263677,transparent)}.snapshot-card.selected{border-color:#3ddcff75;background:linear-gradient(120deg,#3ddcff10,transparent)}.snapshot-header{display:flex;align-items:center;gap:10px}.snapshot-icon{width:38px;height:38px;border:1px solid var(--stroke);background:#26344a44;color:var(--accent);border-radius:10px;display:grid;place-items:center}.snapshot-text{min-width:0;flex:1}.snapshot-text h3{overflow-wrap:anywhere;font-size:15px;font-weight:600}.snapshot-text p{color:var(--dim);font-size:13px;margin-top:4px}.snapshot-controls{display:flex;gap:6px;margin-top:14px}.snapshot-controls button{font-size:13px;min-height:34px;padding:6px 10px}.snapshot-controls .primary{flex:1}.snapshot-meta{font-size:12px;color:var(--dim);display:flex;gap:8px;margin-top:14px}.tag{background:#26344a70;border-radius:4px;padding:3px 6px}.empty{padding:35px 24px;text-align:center;color:var(--dim)}.empty>svg{width:38px;height:38px;color:var(--accent);margin-bottom:14px}.empty h3{color:var(--text);margin-bottom:10px}.empty p{font-size:14px;margin-bottom:18px}.map-controls{position:absolute;right:18px;top:calc(50% - 100px);display:flex;flex-direction:column;gap:14px}.map-controls>button,.zoom-group button{width:46px;height:46px;padding:11px}.zoom-group{overflow:hidden}.zoom-group button{display:flex;border-radius:0}.zoom-group button+button{border-top:1px solid var(--stroke)}.toolbar{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:stretch;padding:6px;gap:3px}.toolbar>button{min-width:78px;display:flex;flex-direction:column;gap:6px;padding:9px 12px;min-height:62px;color:var(--dim);font-size:12px}.toolbar>button>span:first-child{color:var(--text)}.toolbar>button.active{background:var(--accent-dim);color:var(--accent)}.toolbar>button.active>span{color:var(--accent)}.toolbar i{width:1px;background:var(--stroke);margin:9px 3px}.tool-panel{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);width:430px;padding:12px 18px 16px}.tool-heading{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.tool-heading button{min-height:28px;width:28px;padding:4px;color:var(--dim)}#tool-value{display:block;font-size:25px;margin:5px 0 5px;font-variant-numeric:tabular-nums}#tool-hint{font-size:13px;color:var(--dim)}.tool-actions{margin-top:12px}.tool-actions .primary{flex:1;font-size:14px}.map-info{position:absolute;bottom:24px;left:18px;display:flex;align-items:center;gap:10px;border-radius:8px;padding:8px 12px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--dim);box-shadow:none}.map-info svg{width:14px;height:14px;color:var(--accent)}.info-separator{width:1px;height:14px;background:var(--stroke)}.leaflet-control-attribution{background:#101924e8!important;color:var(--dim)!important;font-size:10px!important;padding:2px 6px!important}.leaflet-control-attribution a{color:#b0c5db!important}.leaflet-control-scale{margin-left:20px!important;margin-bottom:62px!important}.leaflet-control-scale-line{background:#121a26de;border-color:#b0c5db;color:#d6e4f5;text-shadow:none;font-size:11px}.dark-basemap{filter:invert(.9) hue-rotate(180deg) brightness(.8) saturate(.5)}.snap-label{white-space:nowrap;background:#121a26f0;border:1px solid #3ddcff80;color:var(--text);border-radius:8px;padding:8px 12px;box-shadow:0 2px 10px #0005;display:inline-flex;flex-direction:column;gap:4px}.snap-label b{font-size:12px;font-weight:600}.snap-label small{font-size:11px;letter-spacing:0}.snap-label:after{content:'';position:absolute;left:20px;bottom:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #3ddcff80}.vertex{border:2px solid #ffc857;background:#131b27;border-radius:50%;width:14px!important;height:14px!important;box-shadow:0 0 0 4px #0002}.point-pin{background:var(--pin-color,#3ddcff);border:2px solid #eaf2ff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);width:21px;height:21px;box-shadow:0 2px 7px #0007}.point-selected{width:16px;height:16px;border-radius:50%;background:#3ddcff;border:3px solid #eaf2ff;box-shadow:0 0 0 8px #3ddcff30}.coord-row{margin:14px 0;padding:12px;background:#0b131f;border:1px solid var(--stroke);border-radius:9px}.coord-row label{font-size:11px;color:var(--dim);text-transform:uppercase;letter-spacing:.06em}.coord-row .row{justify-content:space-between;margin-top:4px}.coord-row code{font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.coord-row button{padding:5px;min-height:30px;color:var(--dim)}.coord-row button svg{width:17px;height:17px}.feature-row{padding:15px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--stroke)}.feature-row .feature-text{flex:1;min-width:0}.feature-row b{display:block;font-size:14px;overflow-wrap:anywhere}.feature-row small{font-size:12px;letter-spacing:0;display:block;margin-top:5px}.feature-row button{padding:8px}.login-screen{position:absolute;inset:0;z-index:2000;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 20%,#152e40,#0b1018 66%);overflow:auto;padding:24px}.login-card{width:340px;max-width:100%;text-align:center}.login-symbol{display:grid;place-items:center;margin:0 auto 20px;border:1px solid #3ddcff35;background:#3ddcff0c;border-radius:20px;width:76px;height:76px;color:var(--accent)}.login-symbol svg{width:43px;height:43px}.login-card h1{font-size:29px;letter-spacing:-.8px}.login-caption{font-size:14px;color:var(--dim);margin-top:9px}.login-rule{height:1px;background:linear-gradient(90deg,transparent,var(--stroke),transparent);margin:26px 0}.login-card h2{font-size:18px;margin-bottom:7px}.login-card #pin{font-size:26px;text-align:center;letter-spacing:.36em;margin:22px 0 14px;padding:12px 8px;height:57px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.keypad button{font-size:22px;background:#131e2d;border:1px solid #26344a77;border-radius:11px;height:50px}.keypad button:hover{border-color:#3ddcff55;background:#1b2a3d}.keypad button.quiet{background:transparent;border-color:transparent;color:var(--dim);font-size:13px}.login-submit{margin-top:18px;width:100%;height:47px;font-size:15px}.error{color:var(--danger);font-size:13px;min-height:20px;margin-top:12px;line-height:1.5}.login-card footer{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;letter-spacing:.04em;color:#657994;margin-top:16px}.login-card footer svg{width:13px;height:13px}dialog{border:1px solid var(--stroke);background:var(--solid);color:var(--text);border-radius:16px;box-shadow:0 24px 80px #0009;width:440px;max-width:calc(100vw - 28px);padding:24px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#050a13a8;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-head button{margin:-10px;color:var(--dim)}.dialog-head h2{font-size:20px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.field{display:block;margin-bottom:16px}.field>span{display:block;color:var(--dim);font-size:13px;margin-bottom:7px}.field input[type=color]{width:100%;height:42px;border:1px solid var(--stroke);background:var(--bg);border-radius:9px;padding:4px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toast{position:fixed;bottom:118px;left:50%;transform:translateX(-50%);padding:13px 18px;background:#1b2b3f;border:1px solid #39516f;border-radius:10px;box-shadow:0 6px 30px #0005;font-size:14px;z-index:4000;max-width:min(500px,90vw);text-align:center;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.warning{padding:12px 15px;font-size:13px;color:#ffc857;background:#ffc8570c;border:1px solid #ffc85730;border-radius:9px;margin:14px 20px;line-height:1.5}.layer-item{padding:12px 0;border-top:1px solid var(--stroke)}.layer-item .switch-row{font-weight:500}.layer-item small{font-size:12px;letter-spacing:0}.layer-actions{display:flex;gap:8px;margin-top:8px}.layer-actions button{font-size:12px;min-height:30px;padding:6px 10px}.radio-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}.radio-tiles button{padding:12px 9px;border:1px solid var(--stroke);font-size:13px;min-height:50px;justify-content:flex-start}.radio-tiles button.active{border-color:#3ddcff88;color:var(--accent);background:var(--accent-dim)}.page-note{font-size:12px;color:var(--dim);line-height:1.6;margin-top:12px}.sheet-open .tool-panel{left:calc(50% + 165px)}.sheet-open .toolbar{left:calc(50% + 165px)}@media(min-width:1500px){.sheet-open .tool-panel,.sheet-open .toolbar{left:50%}}@media(max-width:1120px){.toolbar>button{min-width:65px;padding:9px 8px}.map-info{bottom:103px}.sheet-open .toolbar{left:auto;right:18px;transform:none}.sheet-open .tool-panel{left:auto;right:76px;transform:none;width:min(410px,calc(100vw - 480px))}.map-info svg,.info-separator,#zoom-label{display:none}.map-info{font-size:11px}.leaflet-control-scale{margin-bottom:145px!important}}@media(max-width:850px){:root{--side:330px}.sheet-open .toolbar{left:50%;right:auto;transform:translateX(-50%)}.sheet-open .tool-panel{left:50%;right:auto;transform:translateX(-50%);width:390px}.map-info{bottom:105px}.sheet{bottom:200px}.topbar{left:12px;right:12px;top:12px;height:58px}.brand small{display:none}.top-actions [data-action=snapshots],.top-actions [data-action=bookmarks],.top-actions .divider{display:none}.topbar{gap:12px}.brand{gap:8px}.brand b{font-size:17px}#connection{font-size:11px}.sheet{top:82px;left:12px}.toolbar>button{min-width:65px}.tool-panel{bottom:108px}.map-controls{right:12px}.map-info{left:12px}}@media(max-width:600px){.topbar{padding-left:12px;gap:7px}.brand>span svg{width:25px}.brand b{font-size:16px}.top-actions{gap:0}.top-actions button{width:38px;min-height:38px;padding:8px}#connection{font-size:10px;max-width:94px;overflow:hidden;text-overflow:ellipsis}.toolbar{left:10px!important;right:10px!important;bottom:max(12px,env(safe-area-inset-bottom));transform:none!important;justify-content:space-around;padding:4px;gap:0;border-radius:12px}.toolbar>button{flex:1;min-width:0;padding:9px 2px;font-size:10px;gap:5px;min-height:58px}.toolbar svg{width:21px;height:21px}.toolbar i{margin:9px 2px}.map-controls{top:calc(45% - 50px);gap:12px}.map-controls>button,.zoom-group button{width:43px;height:43px}.map-info{left:12px;bottom:89px;padding:7px 9px}.sheet{top:auto;left:0;right:0;bottom:0;width:auto;max-height:70dvh;border-radius:20px 20px 0 0;z-index:1100;box-shadow:0 -12px 40px #0005}.sheet-head{padding:20px 22px 16px}.sheet-head h1{font-size:23px}.sheet-open .toolbar,.sheet-open .map-info{visibility:hidden}.tool-panel,.sheet-open .tool-panel{bottom:88px;left:12px;right:12px;width:auto;transform:none;padding:12px 16px}.tool-panel~.map-info{display:none}.login-screen{padding:25px}.login-symbol{width:64px;height:64px;margin-bottom:16px}.login-card{width:310px}.login-card #pin{margin-top:18px}.login-rule{margin:21px 0}.login-card h1{font-size:27px}.keypad button{height:47px}.toast{bottom:95px;z-index:4000;width:max-content}.leaflet-control-scale{margin-left:12px!important;margin-bottom:126px!important}.leaflet-control-attribution{max-width:90vw;font-size:9px!important}}@media(max-height:700px){.login-symbol{width:48px;height:48px;margin-bottom:10px}.login-symbol svg{width:28px;height:28px}.login-rule{margin:15px 0}.login-card h1{font-size:25px}.keypad button{height:40px}.login-card #pin{margin:12px 0;height:48px}.login-card footer{margin-top:7px}.login-submit{margin-top:12px}.error{margin-top:6px}}
/* Keep the search text clear of its icon despite the shared input padding. */
.searchbox input:not([type=range]):not([type=checkbox]):not([type=color]){padding-left:39px}
