.demo{--demo-green:#228b45;--demo-red:#ed2024;background:#f6f5f0}.demo #map{position:fixed;inset:0}.demo-header{position:fixed;z-index:800;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;align-items:center;gap:10px;background:#fffefaf5;border:1px solid #d7dfd0;border-radius:18px;padding:10px 12px;box-shadow:0 3px 16px #203d2f12}.demo-logo{flex:none}.demo-brand{flex:1;min-width:0}.demo-brand strong{font-size:17px;letter-spacing:1.4px;white-space:nowrap}.demo-brand>span{display:flex;align-items:center;gap:5px;font-size:12px;color:#637568;margin-top:3px}.demo-vehicle{display:flex}.demo-vehicle svg{width:23px;height:23px}.demo-language{background:#edf1e7;color:#294b38;min-width:40px;min-height:40px;font-size:12px;font-weight:750}.demo-header>.icon-button{width:38px;height:40px;box-shadow:none;border:0;background:transparent}.demo-banner{position:fixed;z-index:810;top:calc(max(10px,env(safe-area-inset-top)) + 85px);left:12px;background:#fff1be;color:#563b05;border:1px solid #e4ce8a;padding:6px 10px;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.6px;max-width:calc(100vw - 24px)}.demo-status{position:fixed;z-index:700;top:calc(max(10px,env(safe-area-inset-top)) + 126px);left:12px;right:12px;max-width:390px;background:#fffefaeb;border:1px solid #dfdfd0;border-radius:9px;padding:7px 10px;font-size:12px;color:#7b511e}.demo .map-controls{right:12px;bottom:calc(132px + env(safe-area-inset-bottom));gap:10px}.demo .map-controls .icon-button{width:44px;height:44px}.demo-legend{position:fixed;z-index:680;left:12px;bottom:calc(29px + env(safe-area-inset-bottom));background:#fffefaf5;border:1px solid #dfe3d9;border-radius:13px;padding:8px 11px 6px;box-shadow:0 3px 14px #25382814;max-width:calc(100vw - 80px);pointer-events:none}.demo-legend>div{display:flex;align-items:center;gap:7px;min-height:28px}.demo-legend strong{font-size:12px;font-weight:650}.demo-line{width:25px;height:5px;border-radius:4px;display:inline-block;flex:none}.demo-line.green{background:var(--demo-green)}.demo-line.red{background:var(--demo-red)}.legend-mixer{display:flex;width:25px;height:25px}.legend-mixer svg{width:25px;height:25px}.legend-thumb{width:16px;height:16px;fill:none;stroke:#228b45;stroke-width:1.8;stroke-linejoin:round}.legend-warning{color:#ed2024;font-size:16px;font-weight:900;width:25px;white-space:nowrap;letter-spacing:-1px}.demo-legend small{display:block;color:#7a8175;font-size:9px;margin-top:3px}.demo.gate-locked .demo-header,.demo.gate-locked .demo-banner{z-index:1200}.demo.gate-locked .demo-language{pointer-events:auto}.demo.gate-locked .demo-legend,.demo.gate-locked .map-controls{display:none}.demo-gate{position:fixed;inset:0;z-index:1000;background:#f6f5f0;display:flex;align-items:center;justify-content:center;padding:150px 24px 32px;overflow:auto}.demo-gate-panel{max-width:360px;width:100%}.demo-gate h1{font-size:32px;line-height:1.1;margin:14px 0}.demo-gate p{font-size:14px;line-height:1.5;color:#67765f}.demo-gate label{display:block;font-size:13px;font-weight:650;margin:24px 0 8px}.demo-gate input{width:100%;min-height:54px;border:1px solid #bfcbb8;background:#fff;border-radius:12px;padding:12px;font-size:22px;letter-spacing:10px;text-align:center}.demo-subtle{font-size:11px!important;margin-top:24px}.demo-language-choice{display:block;width:100%;text-align:left;padding:18px 12px;background:#edf1e7;margin:9px 0;font-size:19px;font-weight:650}.demo .sheet{z-index:1500}.demo .point-card{z-index:900;bottom:calc(128px + env(safe-area-inset-bottom));padding:20px;max-height:50dvh}.demo .point-card h1{font-size:23px}.demo .point-card .menu-footnote{font-size:10px}.demo .leaflet-control-attribution{font-size:8px;background:#ffffffe6;max-width:100vw}.demo-map-label{background:none;border:0;pointer-events:none}.demo-map-label>span{position:absolute;left:0;top:0;display:block;white-space:nowrap;color:#244d39;font:400 11px/16px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;text-shadow:0 0 2px #fff,1px 0 1px #fff,-1px 0 1px #fff,0 1px 1px #fff,0 -1px 1px #fff;transform-origin:center;pointer-events:none}.demo-zooming .demo-map-label{visibility:hidden}.demo-pin{border:0;background:transparent}.demo-pin-dot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#244d39;box-shadow:0 0 0 1px #244d3970}.demo-pin-dot.is-selected{box-shadow:0 0 0 3px #244d3940}.demo-road-symbol{background:transparent;border:0}.demo-road-symbol svg{width:23px;height:23px}.demo-road-symbol .demo-x{display:grid;place-items:center;width:24px;height:24px;font-weight:600;font-size:15px;line-height:1;color:#ed2024;text-shadow:0 0 3px #fff,1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff}.demo .owner-fast-toolbar button.truck{border-bottom-color:#228b45}.demo .owner-fast-toolbar button.blocked{border-bottom-color:#ed2024}.demo #ownerFastApproach,.demo #ownerColorRow{display:none!important}.demo .owner-workspace{z-index:950;top:142px}.demo.owner-open .demo-legend{display:none}.demo.owner-open .map-controls{right:390px}.demo .owner-draft-badge{font-size:11px}.demo.owner-open .demo-status{max-width:calc(100vw - 430px)}.demo .owner-fast-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.demo .owner-fast-toolbar button{min-height:57px}.demo .owner-fast-toolbar button.blocked{color:#bb1018}.demo .owner-fast-toolbar button.truck{color:#176e32}
@media(min-width:700px){.demo-header{right:auto;width:385px;left:22px;top:18px}.demo-banner{left:22px;top:104px}.demo-status{left:22px;top:143px}.demo-legend{left:22px;bottom:30px}.demo .point-card{left:22px}.demo-gate{padding-top:170px}.demo-gate-panel{max-width:380px}}
@media(max-width:700px){.demo .owner-workspace{top:auto;bottom:8px;max-height:43dvh}.demo.owner-open .map-controls{right:12px;bottom:calc(44dvh + 18px)}.demo.owner-open .demo-status{max-width:calc(100vw - 24px)}.demo .owner-fast-toolbar button{min-height:48px}.demo .owner-fast-hint{line-height:1.25}.demo .owner-fast-controls{padding-top:4px}.demo .owner-fast-status{margin-top:7px}.demo .owner-workspace h2{font-size:19px}.demo .owner-workspace .sheet-heading{margin-bottom:7px}}
@media(max-width:359px){.demo-header{gap:6px;padding:9px}.demo-brand strong{font-size:14px;letter-spacing:.7px}.demo-logo{width:29px;height:34px}.demo-brand>span{font-size:11px}.demo-legend strong{font-size:11px}.demo-banner{top:calc(max(10px,env(safe-area-inset-top)) + 80px);font-size:10px}.demo .map-controls .icon-button{width:40px;height:40px}}

.demo-local-only{font-size:11px;color:#68755e;margin:0 0 6px;line-height:1.35}

.demo-basemap-toggle{position:fixed;z-index:790;top:calc(max(10px,env(safe-area-inset-top)) + 124px);left:12px;display:flex;background:#fffefaf5;border:1px solid #cbd5ce;border-radius:10px;padding:3px;box-shadow:0 2px 8px #17291c26}.demo-basemap-toggle button{min-height:36px;padding:5px 12px;font-size:12px;font-weight:500;background:transparent;color:#36483f;border-radius:7px}.demo-basemap-toggle button[aria-pressed="true"]{background:#244b35;color:white}.demo.gate-locked .demo-basemap-toggle{display:none}.demo .demo-status{top:calc(max(10px,env(safe-area-inset-top)) + 172px)}.demo #map{background:#f3f6f7}.demo[data-basemap="satellite"] #map{background:#303a2e}.demo[data-basemap="satellite"] .demo-map-label span{text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 0 4px #fff,0 0 4px #fff}.demo .maplibregl-control-container{display:none}

.demo .map-controls{align-items:flex-end;bottom:calc(42px + env(safe-area-inset-bottom))}
.demo .demo-locate{width:64px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 3px;background:#fffefa;color:#244b35;border:1px solid #cbd5ce;border-radius:14px;box-shadow:0 3px 12px #17291c26;font-size:10px;font-weight:500;line-height:1.15}
.demo-locate svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.demo .demo-locate[aria-pressed="true"]{color:#176cad;border-color:#176cad;background:#eef7ff}
.demo-status-stack{position:fixed;z-index:700;top:calc(max(10px,env(safe-area-inset-top)) + 172px);left:12px;right:12px;max-width:390px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;pointer-events:none}
.demo .demo-status-stack .demo-status{position:static;max-width:100%;margin:0}
.demo .demo-gps-status{color:#215d8a;font-size:11px;padding:5px 8px}
.demo.gate-locked .demo-status-stack{display:none}
@media(max-width:700px){.demo.owner-open .map-controls{bottom:calc(44dvh + 18px)}}
