﻿*{box-sizing:border-box}body{margin:0;font:14px system-ui,sans-serif;color:#243e3b;background:#f8f7f2;display:flex;height:100vh}aside{width:330px;flex-shrink:0;overflow:auto;border-right:1px solid #d8ded5}header{padding:28px 24px;background:#203e39;color:#fff}small{font-size:9px;letter-spacing:1.8px}h1{font-size:34px;margin:12px 0 0}h1 span{font-weight:300;color:#c4d5bd}header p{color:#c4d5bd}section{padding:18px 22px;border-bottom:1px solid #deded4}h3{font-size:11px;text-transform:uppercase;letter-spacing:1px;margin:0 0 14px}input,select,button{font:inherit;border:1px solid #d0d8cc;border-radius:5px;padding:8px;background:#fff;color:inherit}input:not([type=checkbox]):not([type=color]),select{width:100%;margin:7px 0}button{cursor:pointer;font-size:12px}button:hover{background:#dde8d9}.row{display:flex;gap:6px}.row>*{flex:1}label{display:block;font-size:12px;margin:8px 0}input[type=color]{width:31px;height:29px;padding:2px;vertical-align:middle}input[type=checkbox]{accent-color:#285447}.layer{display:flex;align-items:center;gap:5px;margin:8px 0}.layer input.name{width:140px!important;margin:0!important;padding:5px}.layer input.zoom{width:43px!important;margin:0!important;padding:5px}.hint,#status{font-size:11px;color:#69796e;line-height:1.6}main{flex:1;position:relative;min-width:0}#map{height:100%;background:#e9e6dd}#top{position:absolute;z-index:800;top:20px;left:65px;right:20px;display:flex;gap:20px;align-items:center;background:#fffffff0;border:1px solid #d7ded5;padding:12px 18px;border-radius:8px;box-shadow:0 5px 30px #233c3914}#top b{flex:1}#zoom{font-size:12px}#legend{position:absolute;bottom:34px;left:22px;z-index:800;background:#fffffff0;padding:18px 22px;border-radius:7px;min-width:180px;pointer-events:none}#legendItems div{margin-top:8px;font-size:12px}i.swatch{display:inline-block;width:20px;height:8px;margin-right:9px;border-radius:2px}#info{position:absolute;z-index:900;right:22px;bottom:35px;width:280px;max-height:45vh;overflow:auto;background:white;padding:18px;box-shadow:0 5px 30px #243e3b22;border-radius:8px}.label{background:transparent;border:0;box-shadow:none;font-size:10px;color:#364b47;text-shadow:0 1px white,1px 0 white}.leaflet-tooltip:before{display:none}@media(max-width:750px){aside{width:260px}#top{left:50px;gap:6px;padding:8px}#top b{font-size:11px}#legend{padding:12px}}

/* Светлая палитра: вода, зелень, жёлтые магистрали и белые панели. */
body{color:#303030;background:#fff}header{background:#fff;color:#242424;border-bottom:1px solid #eee}header p,h1 span{color:#777}#map{background:#f5f4ef}button:hover{background:#f2f1ed}input[type=checkbox]{accent-color:#f4cc38}button{border-color:#e3e1dc;border-radius:9px}#home{background:#ffdf50;color:#292929;border:0}#top{border:0;box-shadow:0 3px 16px #0002}#settlementList{max-height:230px;overflow-y:auto;display:grid;gap:4px;margin-top:10px}#settlementList button{text-align:left;padding:9px 12px;border:0;background:#f6f6f3}#settlementList button:hover,#settlementList button.active{background:#ffec9e}#settlementCount,#settlementDetail{font-size:12px;color:#717171;line-height:1.5}.settlement-label{background:transparent;border:0;box-shadow:none;color:#43413e;font-size:11px;font-weight:600;text-shadow:1px 1px 2px white,-1px -1px 2px white;padding:2px}#legend{max-height:40vh;overflow:auto}

aside{padding-bottom:38px}.data-credit{position:fixed;bottom:0;left:0;width:329px;padding:10px 22px;background:#fff;z-index:1000;border-top:1px solid #eee;font-size:10px}.data-credit a{color:#777;text-decoration:none}.data-credit a:hover{text-decoration:underline}@media(max-width:750px){.data-credit{width:259px;padding:10px 14px}}

.zoom-switch{display:flex;align-items:center;gap:10px;position:relative;margin:12px 0;cursor:pointer;font-size:12px}.zoom-switch>span:first-child{flex:1}.zoom-switch input{position:absolute;right:0;width:38px;height:22px;opacity:0;margin:0;cursor:pointer}.switch-track{width:38px;height:22px;border-radius:20px;background:#c9c9c4;pointer-events:none;transition:background .15s}.switch-track:after{content:'';display:block;width:18px;height:18px;margin:2px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003;transition:transform .15s}.zoom-switch input:checked+.switch-track{background:#ffda44}.zoom-switch input:checked+.switch-track:after{transform:translateX(16px)}.zoom-switch input:focus-visible+.switch-track{outline:2px solid #6554c0;outline-offset:3px}

#detailLevel{width:100%;margin:6px 0;padding:0;accent-color:#e8bd22;cursor:pointer}#detailLevel:disabled{cursor:default;opacity:.45}#detailValue{font-weight:600}#zoom{white-space:nowrap}
.coast-filters{display:flex;gap:6px;margin-bottom:10px}.coast-filters button{flex:1}.coast-filters button.active{background:#ffdf50;border-color:#ffdf50}#coastPanel{position:absolute;right:18px;top:90px;bottom:30px;width:265px;z-index:850;margin:0;padding:16px;background:#fffffff5;border:0;border-radius:14px;box-shadow:0 5px 28px #233c3928;display:flex;flex-direction:column}#coastPanel[hidden]{display:none}.coast-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.coast-heading small{color:#7893a4;font-size:9px}.coast-heading h2{font-size:18px;margin:5px 0 13px}.coast-heading button{border:0;font-size:23px;padding:0 5px;background:transparent;align-self:flex-start}.coast-actions{display:flex;gap:6px}.coast-actions button{flex:1;padding:9px 4px}#coastPlay{background:#ffdf50;border-color:#ffdf50}.coast-caption{font-size:11px;color:#777;margin:10px 0 6px}#coastCurrent{font-size:12px;min-height:40px;line-height:1.5;padding:7px 0;color:#456d8b}#coastScroll{overflow:auto;flex:1;min-height:90px;overscroll-behavior:contain}#coastStops{position:relative;padding:0 0 0 2px}.coast-track{position:absolute;left:13px;top:21px;bottom:21px;width:3px;background:#d4e2e9}#coastProgress{position:absolute;left:13px;width:3px;background:#ed9e21}#coastCursor{position:absolute;left:7px;width:15px;height:15px;transform:translateY(-50%);background:#ed9e21;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #ed9e2140;z-index:3;pointer-events:none}.coast-stop{position:relative;display:block;width:100%;height:42px;padding:5px 6px 5px 30px;text-align:left;border:0;background:transparent;font-size:11px;border-radius:7px;line-height:1.25}.coast-stop:before{content:'';position:absolute;left:7px;top:17px;width:8px;height:8px;border-radius:50%;background:#8fb2c5;border:2px solid white}.coast-stop.visited:before{background:#ed9e21}.coast-stop.current{background:#fff0bd;font-weight:600}.coast-stop:hover{background:#eef4f7}#coastPanel~#info{z-index:900}main:has(#coastPanel:not([hidden])) #info{right:300px}@media(max-width:900px){#coastPanel{width:220px;right:10px;top:85px;padding:12px}.coast-heading h2{font-size:16px}main:has(#coastPanel:not([hidden])) #info{right:15px;bottom:20px}}@media(max-width:600px){#coastPanel{width:190px;top:auto;height:48vh;bottom:20px}.coast-stop{font-size:10px}.coast-heading h2{font-size:14px}}
/* Responsive map and settings drawer. */
body{height:100dvh;overflow:hidden}aside{position:relative}#sidebarClose{display:none}#sidebarToggle{flex:none;width:40px;height:40px;padding:0;font-size:22px;border:0;background:#f4f3ee}#mobileDock{display:none}#sidebarBackdrop[hidden]{display:none}.sidebar-collapsed aside{display:none}.sidebar-collapsed .data-credit{left:auto;right:8px;width:auto;border:0;border-radius:5px;padding:5px 8px}#top{gap:12px;padding:8px 12px}#top b{min-width:0}button,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #6554c0;outline-offset:2px}
@media(max-width:900px){
 body{display:block;height:100dvh}main{width:100%;height:100%;position:relative}#map{width:100%;height:100%}
 #sidebar,.sidebar-collapsed #sidebar{display:block;position:fixed;inset:0 auto 0 0;width:min(360px,calc(100vw - 24px));height:100dvh;z-index:1200;background:#fff;box-shadow:8px 0 40px #0002;padding-bottom:calc(35px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;transform:translateX(-110%);visibility:hidden;transition:transform .2s ease,visibility .2s}
 .sidebar-open #sidebar{transform:translateX(0);visibility:visible}
 #sidebarBackdrop{display:block;position:fixed;inset:0;z-index:1150;border:0;border-radius:0;background:#152b394f;width:100%;height:100%;padding:0;touch-action:none}
 #sidebarClose{display:block;position:absolute;top:12px;right:12px;width:44px;height:44px;padding:0;font-size:28px;border:0;background:#f3f3ef;z-index:1}
 header{padding:20px 64px 16px 18px}header small,header p{display:none}h1{font-size:25px;margin:0}section{padding:16px 18px}
 #top{top:calc(10px + env(safe-area-inset-top));left:10px;right:10px;gap:8px;padding:6px 8px;border-radius:12px;min-height:56px}#top b{font-size:12px;line-height:1.3}#zoom{display:none}#sidebarToggle{width:44px;height:44px}#home{min-height:44px;flex:none;max-width:100px;padding:8px;font-size:11px}
 .leaflet-top.leaflet-left{top:calc(80px + env(safe-area-inset-top))}.leaflet-touch .leaflet-bar a{width:38px;height:38px;line-height:38px}
 #mobileDock{display:flex;position:absolute;left:10px;bottom:calc(29px + env(safe-area-inset-bottom));gap:8px;z-index:900}#mobileDock button{min-height:44px;padding:10px 14px;background:#fff;border:0;box-shadow:0 3px 16px #0002;font-size:13px;border-radius:12px}#mobileDock button[aria-expanded=true]{background:#ffdf50}
 #legend{display:none;bottom:calc(84px + env(safe-area-inset-bottom));left:10px;padding:14px 18px;max-height:min(40dvh,300px);pointer-events:auto;overflow:auto;min-width:185px}.legend-open #legend{display:block}#legendItems div{font-size:12px;margin-top:7px}
 #coastPanel{left:10px;right:10px;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));width:auto;height:45dvh;max-height:430px;padding:12px 16px;border-radius:16px;z-index:850}.coast-heading h2{font-size:17px;margin:4px 0 8px}.coast-heading button{width:44px;height:44px;min-height:44px;font-size:26px}.coast-actions button{min-height:44px}.coast-caption{margin:7px 0 2px}#coastCurrent{min-height:28px;padding:5px 0;font-size:12px}.coast-stop{height:44px;font-size:13px;padding-left:30px}.coast-stop:before{top:18px}.coast-track{top:22px;bottom:22px}
 .data-credit,.sidebar-collapsed .data-credit{position:fixed;left:auto;right:6px;bottom:env(safe-area-inset-bottom);width:auto;max-width:calc(100vw - 75px);border:0;border-radius:4px;padding:4px 6px;background:#ffffffe8;font-size:9px;z-index:1000}
 #info,main:has(#coastPanel:not([hidden])) #info{right:10px;left:10px;bottom:calc(84px + env(safe-area-inset-bottom));width:auto;max-height:42dvh;padding:16px}
 #sidebar button,#sidebar select{min-height:44px}#sidebar input:not([type=checkbox]):not([type=color]):not([type=range]),#sidebar select{font-size:16px;min-height:42px}#sidebar input[type=color]{height:36px;min-width:32px}#sidebar input[type=range]{height:36px}.layer input.name{flex:1;min-width:0;width:0!important}.layer input.zoom{width:52px!important;flex:none}.layer{gap:7px}.layer input[type=checkbox]{width:18px;height:18px;flex:none}.zoom-switch{min-height:44px;margin:6px 0}.zoom-switch input{width:48px;height:44px;right:-5px}.switch-track{flex:none}.row{flex-wrap:wrap}#settlementList{max-height:32dvh}#settlementList button{font-size:14px;padding:11px 12px}#sidebar h3{line-height:1.5}
}
@media(max-width:900px) and (max-height:500px){#coastPanel{left:auto;width:300px;height:calc(100dvh - 115px);max-height:none;top:78px;bottom:auto}#coastCurrent{display:none}#coastPanel .coast-caption{display:none}.coast-heading h2{font-size:14px}.coast-heading small{display:none}}
@media(prefers-reduced-motion:reduce){#sidebar{transition:none!important}}
.mode-buttons{display:flex;gap:7px}.mode-buttons button{flex:1;min-height:44px}.mode-buttons button.active{background:#ffdf50;border-color:#ffdf50;font-weight:600}.map-modes .hint{margin-bottom:0}.city-mode #categoryCoast,.city-mode label:has(#coastVisible){display:none}.city-mode #mobileCoast{display:none!important}
/* Data credit belongs to the settings panel, including on mobile. */
#sidebar .data-credit,.sidebar-collapsed #sidebar .data-credit{position:static;inset:auto;width:auto;max-width:none;padding:14px 18px;border-top:1px solid #eee;border-radius:0;font-size:10px;background:#fff}#sidebar{padding-bottom:env(safe-area-inset-bottom,0px)}

#refreshPage{position:absolute;right:14px;bottom:24px;z-index:950;width:46px;height:46px;padding:0;border:0;border-radius:13px;background:#fff;box-shadow:0 3px 16px #0002;font-size:29px;line-height:1;touch-action:manipulation}#refreshPage:hover{background:#fff0b0}@media(max-width:900px){#refreshPage{right:10px;bottom:calc(29px + env(safe-area-inset-bottom));width:44px;height:44px}}

#objectList{display:grid;gap:4px;max-height:300px;overflow:auto}#objectList button{text-align:left;overflow-wrap:anywhere;background:#f6f6f3;border:0}#objectList button.active{background:#ffec9e}#objectEditor{margin-top:16px;border-top:1px solid #eee;padding-top:8px}#objectMore{margin-top:8px;width:100%}
#networkToggle{position:absolute;right:72px;bottom:24px;z-index:950;min-height:46px;padding:10px 16px;border:0;border-radius:13px;background:#fff;box-shadow:0 3px 16px #0002}
#networkToggle[aria-pressed=true]{background:#ffe2d6;color:#9b300e}
#networkSelect[aria-pressed=true]{background:#dceaff;color:#174d9c}
#networkList{display:grid;gap:5px;max-height:240px;overflow:auto}#networkList>div{display:flex;align-items:center;gap:8px;font-size:12px}#networkList span{flex:1;overflow-wrap:anywhere;min-width:0}#networkList button{flex:none;padding:6px}
@media(max-width:900px){#networkToggle{right:64px;bottom:calc(29px + env(safe-area-inset-bottom));min-height:44px;padding:10px}}
.bus-stop-marker{stroke:#fff;stroke-width:2;filter:drop-shadow(0 1px 2px #0008)}
.bus-stop-icon{background:none;border:0;filter:drop-shadow(0 1px 2px #0005)}
.leaflet-tooltip.bus-stop-label{background:none;border:0;box-shadow:none;color:#16476b;font-size:11px;font-weight:600;padding:0 2px;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff,0 -1px 2px #fff;pointer-events:none}
.leaflet-tooltip.bus-stop-label:before{display:none}
#schemaBadge{font-size:11px;background:#edf1f5;color:#415566;border-radius:6px;padding:5px 8px;white-space:nowrap}#schemaPanel select{width:100%;font-weight:600}#schemaPanel .row button{flex:1}#schemaPanel{background:#f8fafc}
@media(max-width:900px){#schemaBadge{font-size:9px;white-space:normal;padding:3px;max-width:70px}#top{gap:5px}}
#stopDock{position:absolute;left:20px;bottom:80px;z-index:960;background:#fff;padding:12px 16px;border-radius:12px;box-shadow:0 3px 20px #0003;max-width:calc(100% - 40px);width:370px}#stopDock[hidden]{display:none}#stopStep{display:block;font-size:13px;line-height:1.4;margin-bottom:8px}#stopDock .row{gap:8px}#stopDock button{min-height:44px}#stopPlace{background:#dceaff;color:#174d9c}#stopList{display:grid;gap:6px;max-height:250px;overflow:auto}#stopList>div{display:flex;gap:5px}#stopList>div button:first-child{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}#stopChosen{display:flex;gap:5px;flex-wrap:wrap}#stopChosen button{background:#dceaff}.stop-point-selected svg{outline:4px solid #ffcf32;border-radius:5px;box-shadow:0 0 0 7px #ffffffa8}
@media(max-width:900px){#stopDock{left:10px;bottom:calc(86px + env(safe-area-inset-bottom));max-width:calc(100% - 20px)}}
.road-names-svg{position:absolute;overflow:visible;pointer-events:none}.road-name{pointer-events:none;letter-spacing:.1px;paint-order:stroke;stroke:#fff;stroke-width:1.1px;stroke-linejoin:round}

#stopsToolbar{background:#ffe582;color:#303030;font-weight:600;min-height:40px;flex-shrink:0}#stopDock .row{flex-wrap:wrap}#stopBetween{flex-basis:100%;background:#ffe582}#stopPanel:focus-within{background:#fffbed}
@media(max-width:900px){#top{flex-wrap:wrap}#stopsToolbar{order:10;flex-basis:100%;min-height:36px}#stopDock{width:370px}}

#pointControls{margin:12px 0;padding:10px;background:#f5f7fa;border-radius:9px}#pointCreate{width:100%;background:#ffe582}#pointList{display:grid;gap:6px;max-height:220px;overflow:auto}#pointList>div{display:flex;gap:5px}#pointList>div button:first-child{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}

#phoneAccess{padding-bottom:28px}#phoneLinksButton{width:100%;background:#ffe582;min-height:44px;font-weight:600}#phoneLinksList{display:grid;gap:10px}#phoneLinksList>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}#phoneLinksList a{color:#175d9b;font-size:13px;overflow-wrap:anywhere;flex:1}#phoneLinksList button{min-height:40px}

#stopSave{width:100%;margin-top:10px;background:#ffdf50;font-weight:600;min-height:44px}#stopSave[hidden]{display:none}

#stopActions{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #eee}#stopActions[hidden]{display:none}#stopActionName{margin:0 0 8px;overflow-wrap:anywhere;font-weight:600}#stopDelete{width:100%;background:#ffeded;color:#a42d2d}

#stopDock{max-height:calc(100dvh - 210px);overflow-y:auto;overscroll-behavior:contain}

/* Stop controls float strictly within the sidebar footprint. */
#stopDock{position:fixed;left:12px;right:auto;bottom:12px;z-index:1250;width:306px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 90px);padding:12px;box-sizing:border-box}#stopDock[hidden],.sidebar-collapsed #stopDock{display:none}#stopDock input:not([type=checkbox]){max-width:100%;min-width:0}#stopDock button{overflow-wrap:anywhere}
@media(max-width:900px){#stopDock{left:10px;bottom:calc(12px + env(safe-area-inset-bottom));width:calc(min(360px,100vw - 24px) - 20px);max-width:calc(100vw - 44px);max-height:calc(100dvh - 82px)}#stopDock input{font-size:16px;min-height:42px}}

#stopPickMap{display:none;width:100%;margin-top:8px;background:#eef4fb}@media(max-width:900px){#stopPickMap:not([hidden]){display:block}}

#stopRename{width:100%;background:#eef4fb;margin:0 0 4px}#stopRenameStatus:empty{display:none}#stopRenameName{width:100%}

/* Editing follows the selected map object in a Leaflet popup. */
#stopDock,.sidebar-collapsed #stopDock{display:block;position:static;left:auto;right:auto;bottom:auto;width:280px;max-width:calc(100vw - 60px);max-height:min(440px,calc(100dvh - 205px));padding:0 4px;box-shadow:none;border-radius:0;overflow-y:auto}#stopDock[hidden],.sidebar-collapsed #stopDock[hidden]{display:none}.stop-editor-popup .leaflet-popup-content{margin:22px 12px 12px;width:auto!important}.stop-editor-popup .leaflet-popup-content-wrapper{border-radius:12px}.stop-editor-popup label{margin:6px 0}.stop-editor-popup p{margin:6px 0}.stop-editor-popup #stopDock button{min-height:36px}.stop-editor-popup #stopActions{margin-bottom:8px;padding-bottom:8px}.stop-editor-popup #stopStep{font-size:12px}.stop-editor-popup #stopDock input{font-size:14px;min-height:36px}.stop-editor-popup .leaflet-popup-close-button{width:30px;height:30px;font-size:24px}#stopPickMap{display:none!important}@media(max-width:900px){.stop-editor-popup #stopDock input{font-size:16px}.stop-editor-popup #stopDock button{min-height:40px}}

#stopSave,#stopRename{display:none!important}

.route-tabs{display:flex;gap:6px;margin-bottom:14px}.route-tabs button{flex:1;min-height:42px}.route-tabs [aria-selected=true],.direction-heading[aria-pressed=true]{background:#ffdf50}.route-card,.direction-card{padding:12px;background:#f6f7fa;border:1px solid #e3e6ed;border-radius:10px;margin-bottom:12px}.route-card strong,.route-card small{display:block;margin-bottom:10px}.route-card small{letter-spacing:.5px}.route-card button,.direction-heading{width:100%;text-align:left}.direction-card ol{padding-left:24px}.direction-card li{margin-bottom:10px}.direction-card li button{text-align:left;width:100%;white-space:normal}.direction-card li span{display:block;margin-top:3px}.route-order-label{background:#6244bf;border:0;color:white;font-weight:700;box-shadow:none}#routesToolbar{min-height:40px;background:#eae5fa}#stopMetadata{font-size:11px;line-height:1.5;color:#5c5671;margin-bottom:8px;overflow-wrap:anywhere}#routesContent[hidden],#directionsContent[hidden]{display:none}

/* Movable compact editor never pans or zooms the map. */
#stopDock,.sidebar-collapsed #stopDock{position:fixed;display:block;left:auto;right:14px;top:120px;bottom:auto;z-index:1250;width:280px;max-width:calc(100vw - 24px);max-height:min(420px,calc(100dvh - 145px));background:white;padding:10px 12px;border-radius:12px;box-shadow:0 5px 24px #0003;overflow:auto}#stopDock[hidden],.sidebar-collapsed #stopDock[hidden]{display:none}#stopDragHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:move;touch-action:none;user-select:none;border-bottom:1px solid #eee;padding-bottom:6px;margin-bottom:8px;font-size:12px;font-weight:600;position:sticky;top:-10px;background:white;z-index:1}#stopDragHeader button{border:0;min-height:28px!important;width:28px;font-size:23px;padding:0;background:#f5f5f5}#stopDock p{margin:6px 0}#stopDock .hint{font-size:10px;line-height:1.4}#stopCreationFields>.hint{display:none}#stopDock #stopStep{font-size:11px}#stopDock label{margin:5px 0}#stopDock input{min-height:34px;font-size:14px}#stopDock button{min-height:36px}#stopDock #stopActionName{font-size:12px}@media(max-width:900px){#stopDock{right:10px;top:118px;width:250px}#stopDock input{font-size:16px}}

.route-direction-row{display:flex;gap:6px}.route-direction-row>button:first-child{flex:1;min-width:0}.route-direction-row>button:last-child{width:42px;flex:none;text-align:center;font-size:23px}#routeFocusBar{position:absolute;top:118px;left:55px;right:14px;max-width:480px;z-index:810;background:#f2fff5;border:1px solid #8dcc9e;border-radius:10px;padding:8px;display:flex;align-items:center;gap:8px;box-shadow:0 3px 14px #0002}#routeFocusBar[hidden]{display:none}#routeFocusTitle{flex:1;min-width:0;font-size:12px;color:#126b32}#routeFocusBar button{min-width:36px;font-size:23px;padding:2px}body.route-focus .leaflet-overlay-pane{opacity:.28}body.route-focus .leaflet-roadCasing-pane,body.route-focus .leaflet-roadFill-pane,body.route-focus .leaflet-roadNetwork-pane,body.route-focus .leaflet-network-pane{opacity:.28}body.route-focus .leaflet-networkOverlay-pane{opacity:.12!important}body.route-focus .leaflet-roadNames-pane{opacity:.35}.route-order-label{background:#128741}body.route-focus .direction-heading[aria-pressed=true]{background:#d5f5de;border-color:#65bf82}

.route-muted-stop{opacity:.22!important}#stopDock #pointCreationFields .hint{display:none}

.blade-controls{margin:12px 0;padding-top:10px;border-top:1px solid #ddd}.blade-active,.blade-active .leaflet-interactive{cursor:crosshair!important}#bladeToggle[aria-pressed="true"]{background:#b52d2d;color:white}

.grouped-stop-drag{cursor:grab}.grouped-stop-drag:active{cursor:grabbing}
/* Editing workspace: grouped top tools and a contextual settings sheet. */
body #sidebar,body.sidebar-collapsed #sidebar{display:block;position:fixed;inset:auto;left:16px;top:var(--workspace-bottom,178px);width:360px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - var(--workspace-bottom,178px) - 24px);padding:0 0 12px;background:#fff;border:1px solid #e2e5e1;border-radius:14px;box-shadow:0 12px 40px #263c3926;z-index:1100;transform:none;transition:none;overflow:auto;visibility:hidden}
body.sidebar-open #sidebar{visibility:visible}body #sidebar>header,body #sidebar>.data-credit,.workspace-hidden{display:none!important}#workspaceHeading{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid #eee}body #sidebarClose{display:block;border:0;font-size:24px;line-height:1;width:32px;height:32px;padding:0;background:#f5f5f2}#sidebar section{padding:16px 18px}#sidebar section h3{color:#6d7770;font-size:10px}body main{width:100%;flex:1}body #top{top:12px;left:60px;right:16px;display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:14px;background:#fffffff5;z-index:1150}#top #maptitle{flex:1}#top #schemaBadge{flex:none}#top #zoom{font-size:10px;color:#7b827b}#top #home{min-height:32px;padding:6px 10px}#top #sidebarToggle{height:32px;width:32px;font-size:20px}#top #routesToolbar,#top #stopsToolbar{display:none}#workspace{flex-basis:100%;min-width:0;border-top:1px solid #ededeb;padding-top:8px}#workspaceTabs,#workspaceActions{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:thin}#workspaceTabs{padding-bottom:7px}#workspace button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:36px;padding:7px 10px;white-space:nowrap;font-size:12px;border:1px solid transparent;background:transparent;border-radius:8px}#workspace svg{width:18px;height:18px;flex:none}#workspaceTabs button[aria-pressed=true]{background:#eaf0ed;color:#1c6450;border-color:#c7d9ce}#workspaceActions{padding-top:7px;border-top:1px solid #ededeb}#workspaceActions button{background:#f6f6f3;border-color:#eaece6}#workspaceActions button[aria-pressed=true]{background:#fff0a3;border-color:#e8ca51;color:#5b4b13}#workspace button:disabled{opacity:.4;cursor:default}#workspace button:hover:not(:disabled){background:#edf2ed}#workspace #workspaceDetails{margin-left:auto;background:white;color:#646d64}body #sidebarBackdrop{top:var(--workspace-bottom,178px);z-index:1050;background:#0001}body .leaflet-top{top:var(--workspace-bottom,178px)}body #routeFocusBar{top:calc(var(--workspace-bottom,178px) + 8px)}body #coastPanel{top:calc(var(--workspace-bottom,178px) + 8px)}body #stopDock{top:calc(var(--workspace-bottom,178px) + 8px);max-height:calc(100dvh - var(--workspace-bottom,178px) - 32px)}#workspaceBladeSection .blade-controls{margin:0;padding:0;border:0}#networkList,#stopList,#pointList{max-height:32vh;overflow:auto}#workspace button:focus-visible{outline:2px solid #216b55;outline-offset:-2px}
@media(max-width:900px){body #top{top:calc(8px + env(safe-area-inset-top));left:8px;right:8px;padding:8px;gap:6px;min-height:0}#top #maptitle{font-size:12px}#top #schemaBadge{max-width:90px;font-size:9px}#top #zoom{display:none}#workspace button{min-height:42px;padding:8px;font-size:11px}#workspaceTabs{gap:2px}#workspaceTabs button{flex-direction:column;gap:3px;min-width:63px}#workspace #workspaceSelect{min-width:50px}#workspace svg{width:19px;height:19px}#workspaceActions button{min-height:42px}#workspace #workspaceDetails{margin-left:0}body #sidebar,body.sidebar-collapsed #sidebar{left:8px;max-width:calc(100vw - 16px);width:380px;max-height:calc(100dvh - var(--workspace-bottom,206px) - 12px)}body #sidebarBackdrop{inset:var(--workspace-bottom,206px) 0 0}#sidebar input,#sidebar select{font-size:16px}#mobileDock{display:none}body #routeFocusBar{left:8px;right:8px}body #stopDock{top:calc(var(--workspace-bottom,206px) + 8px)}}
#sidebar [hidden]{display:none!important}main>.data-credit,body.sidebar-collapsed main>.data-credit{position:absolute;left:8px;right:auto;bottom:3px;width:auto;max-width:calc(100% - 150px);padding:4px 6px;border:0;border-radius:4px;font-size:9px;background:#ffffffe8;z-index:800}body #networkToggle{display:none}
.display-no-map-text #map .leaflet-tooltip,.display-no-map-text #map .road-names-svg{display:none!important}#displayVisibilityFields{display:grid;gap:3px;margin-top:12px}#displayVisibilityFields label{padding:7px 8px;margin:0;border-radius:7px;background:#f7f8f5}#displayVisibilityFields input{margin-right:5px}#displayProfile{font-weight:600}
/* Zoom/detail sliders open from the top-right readout. */
body #top #zoom{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;background:#f4f6f2;border:1px solid #e1e7de;border-radius:8px;color:#465d50;font-size:11px;white-space:nowrap}body #top #zoom[aria-expanded=true]{background:#e5eee5;border-color:#8cb49b}#zoomDetailPanel{position:fixed;inset:auto;margin:0;padding:16px;border:1px solid #dce5da;border-radius:14px;background:#fff;color:#303b32;box-shadow:0 10px 36px #233c3930;max-height:calc(100dvh - 16px);overflow:auto}#zoomDetailPanel:not(:popover-open){display:none}#zoomDetailPanel [hidden]{display:none!important}.zoom-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;font-size:13px}.zoom-popover-heading button{width:28px;height:28px;padding:0;font-size:22px;line-height:1;border:0;background:#f4f5f1}#zoomDetailPanel label{font-size:12px;margin:12px 0 6px}#zoomDetailPanel input[type=range]{display:block;accent-color:#47775b;width:100%;margin:10px 0 16px;padding:0;min-height:24px}#zoomDetailPanel output{float:right;font-weight:600}#zoomDetailPanel .zoom-switch{border-top:1px solid #eef0ec;padding-top:12px;margin-top:16px}#zoomDetailPanel .hint{font-size:11px;margin-bottom:0}#zoomDetailPanel .zoom-switch>span:first-child{padding-right:12px}#zoomDetailPanel input[type=range]:disabled{opacity:.45}
@media(max-width:600px){body #top #zoom{display:inline-flex;font-size:10px;padding:7px 8px;min-height:34px}body #top #home{display:none}body #top #schemaBadge{max-width:75px;font-size:8px}#zoomDetailPanel input[type=range]{min-height:32px}}
#openUserPreview{display:inline-flex;align-items:center;gap:6px;background:#edf5fb;color:#285a75;font-size:11px;min-height:32px}#openUserPreview svg{width:17px;height:17px}.user-view #top,.user-view #sidebar,.user-view #sidebarBackdrop,.user-view #refreshPage,.user-view #routeFocusBar,.user-view #stopDock,.user-view #info{display:none!important}.user-view #map{background:#f4f6ee}.user-view #viewerShell{display:contents}#viewerHeader{position:fixed;top:0;left:0;right:0;height:88px;z-index:1200;display:flex;align-items:center;gap:24px;padding:16px 32px;background:#fffdf7f5;color:#202b31;border-radius:0 0 20px 20px;box-shadow:0 3px 22px #40584c12}#viewerHeader svg,#viewerHome svg{width:24px;height:24px}.viewer-brand{display:flex;align-items:center;gap:14px;flex:none;padding-right:26px;border-right:1px solid #d6d9d1}.viewer-brand-icon{width:50px;height:50px;border-radius:16px;background:linear-gradient(145deg,#25a2ff,#0068ce);display:grid;place-items:center;color:white;box-shadow:inset 0 1px 3px #ffffff70}.viewer-brand-icon svg{width:32px!important;height:32px!important}.viewer-brand strong{font-size:27px;display:block;line-height:1.1}.viewer-brand div>span{font-size:14px;color:#667076;display:block;margin-top:5px}#viewerNav{display:flex;gap:10px;align-items:center}#viewerNav button{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:11px 16px;border-radius:25px;font-size:16px;white-space:nowrap}#viewerNav button[aria-pressed=true]{background:#c4eafa;color:#075ca9}.viewer-search{position:relative;min-width:180px;flex:1;margin-left:auto}.viewer-search>span{position:absolute;top:14px;left:13px;pointer-events:none;color:#62707a}.viewer-search>span svg{width:19px!important;height:19px!important}#viewerSearch{height:48px;margin:0;padding:10px 14px 10px 40px;border:1px solid #e2e2db;border-radius:18px;background:#fffdfb;font-size:14px;box-shadow:0 2px 8px #00000008}#viewerSearchResults{position:absolute;top:55px;left:0;right:0;max-height:390px;overflow:auto;background:white;padding:9px;border:1px solid #ddd;border-radius:15px;box-shadow:0 12px 30px #0002}#viewerSearchResults[hidden]{display:none}#viewerSearchResults button{display:block;width:100%;text-align:left;border:0;padding:12px;background:white;font-size:13px}#viewerSearchResults button:hover{background:#eef6ff}#viewerPreferences{height:48px;width:48px;flex:none;border:1px solid #e2e2db;border-radius:16px;background:#fffdfb;display:grid;place-items:center;box-shadow:0 2px 8px #00000008}body #viewerCard{display:block;position:fixed;top:126px;left:18px;width:334px;height:auto;max-height:calc(100dvh - 355px);z-index:900;overflow:auto;border:1px solid #edf0e8;border-radius:22px;padding:22px;background:#fffdf8f5;box-shadow:0 6px 24px #2c594b14}.viewer-card-heading{display:flex;align-items:center;gap:12px}.viewer-orange-icon{height:48px;width:48px;flex:none;display:grid;place-items:center;border-radius:15px;background:#ff9300;color:white}.viewer-orange-icon svg{width:31px;height:31px}#viewerCard h2{font-size:22px;line-height:1.25;margin:0}#viewerCard h3{margin-top:22px}.viewer-muted{font-size:12px;color:#737a7b;line-height:1.5;margin:5px 0}.viewer-favorite{margin-left:auto;border:0;background:transparent;font-size:28px;padding:0;color:#6c767a}.viewer-route-title{font-size:16px;line-height:1.5;margin:18px 0;padding-bottom:18px;border-bottom:1px solid #e0e1d8}.viewer-scroll{max-height:calc(100dvh - 590px);min-height:80px;overflow:auto;scrollbar-width:thin}.viewer-stop-sequence{list-style:none;margin:0;padding:0 0 0 9px}.viewer-stop-sequence li{position:relative;border-left:2px solid #ff9600;padding:0 0 0 18px;min-height:36px;display:flex;align-items:center}.viewer-stop-sequence li:before{content:'';position:absolute;left:-7px;top:12px;width:10px;height:10px;border:2px solid #ff9600;border-radius:50%;background:#fff}.viewer-stop-sequence li.terminal:before{left:-9px;width:14px;height:14px;top:9px}.viewer-stop-sequence li:last-child{border-color:transparent}.viewer-stop-sequence li.selected:before{background:#ff9600}.viewer-stop-sequence button{border:0;background:transparent;font-size:14px;text-align:left;width:100%;padding:7px 9px;border-radius:22px}.viewer-stop-sequence li.selected button,.viewer-stop-sequence button:hover{background:#fff0dc}.viewer-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #e0e1d8;font-size:12px;color:#626c6c}.viewer-card-footer button{border:0;background:transparent;font-size:12px}.viewer-route-option{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;padding:10px 0;border-bottom:1px solid #edf0e8}.viewer-route-option b{display:grid;place-items:center;min-width:35px;height:32px;background:#fff0da;color:#c06b00;border-radius:9px}.viewer-route-option span{font-size:13px;line-height:1.4}.viewer-stop-option{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px}.viewer-stop-option:hover{background:#e8f5ff}#viewerLegend{position:fixed;left:18px;bottom:24px;width:310px;z-index:900;background:#fffdf8f5;border-radius:20px;padding:20px 24px;box-shadow:0 6px 24px #2c594b14;font-size:13px}#viewerLegend strong{font-size:16px;display:block;padding-bottom:12px;margin-bottom:8px;border-bottom:1px solid #e0e1d8}#viewerLegend>div{display:flex;align-items:center;gap:20px;min-height:33px}.viewer-dot{width:13px;height:13px;border:2px solid #087bf0;border-radius:50%;margin:0 13px;display:block}.viewer-dot.terminal{width:20px;height:20px;border-width:3px;margin:0 9px}.viewer-line{width:40px;height:5px;border-radius:3px;background:#f18a00}#viewerHome{position:fixed;top:122px;right:22px;z-index:900;width:48px;height:48px;background:#fffdf7;border:0;border-radius:16px;box-shadow:0 3px 14px #0001}#viewerZoom{position:fixed;top:292px;right:18px;z-index:900;font-size:10px;border:0;background:#fffdf7;border-radius:12px;padding:9px}body.user-view .leaflet-top{top:182px;right:22px}.user-view .leaflet-control-zoom{border:0!important;box-shadow:0 3px 14px #0001;border-radius:16px;overflow:hidden}.user-view .leaflet-control-zoom a{height:46px;width:48px;line-height:46px;background:#fffdf7;border-color:#eeeee4;font-size:26px;font-weight:400}.user-view .leaflet-bottom.leaflet-left{left:auto;right:16px;bottom:10px}.user-view main>.data-credit{left:360px;bottom:3px;background:#ffffffb0}.user-view.route-focus .leaflet-overlay-pane,.user-view.route-focus .leaflet-roadCasing-pane,.user-view.route-focus .leaflet-roadFill-pane,.user-view.route-focus .leaflet-roadNetwork-pane,.user-view.route-focus .leaflet-network-pane,.user-view.route-focus .leaflet-roadNames-pane{opacity:1}.user-view.route-focus .leaflet-networkOverlay-pane{opacity:.65!important}.user-view .route-order-label{display:none}.user-view.viewer-scheme .leaflet-overlay-pane,.user-view.viewer-scheme .leaflet-roadCasing-pane,.user-view.viewer-scheme .leaflet-roadFill-pane,.user-view.viewer-scheme .leaflet-roadNames-pane{opacity:.15}#viewerSettings{position:fixed;inset:100px 20px auto auto;margin:0;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 120px);overflow:auto;border:1px solid #e0e4dd;border-radius:20px;padding:18px;background:#fffdf9;box-shadow:0 12px 36px #0002}#viewerSettings:not(:popover-open){display:none}.viewer-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.viewer-settings-heading button{border:0;background:#f1f2ed;font-size:22px;width:30px;height:30px;padding:0}#viewerSettings section{padding:18px 0}.user-view #viewerShell [hidden]{display:none!important}
@media(min-width:901px) and (max-width:1250px){#viewerHeader{gap:14px;padding:14px 20px}.viewer-brand{padding-right:16px;gap:10px}.viewer-brand strong{font-size:23px}.viewer-brand div>span{font-size:11px}#viewerNav{gap:2px}#viewerNav button{padding:10px;font-size:14px;gap:6px}.viewer-search{min-width:150px}#viewerSearch{font-size:12px}}
@media(max-width:900px){#openUserPreview span{display:none}#viewerHeader{height:auto;min-height:110px;flex-wrap:wrap;gap:8px;padding:12px;border-radius:0 0 16px 16px}.viewer-brand{border:0;padding:0;flex:1;gap:9px}.viewer-brand-icon{width:36px;height:36px;border-radius:11px}.viewer-brand-icon svg{width:25px!important;height:25px!important}.viewer-brand strong{font-size:20px}.viewer-brand div>span{font-size:10px}.viewer-search{order:3;flex-basis:100%}#viewerSearch{height:38px;font-size:14px;border-radius:11px}.viewer-search>span{top:10px}#viewerNav{order:4;flex:1;justify-content:space-around;gap:0}#viewerNav button{font-size:11px;padding:7px 9px;gap:5px}#viewerNav svg{width:16px;height:16px}#viewerPreferences{height:36px;width:36px;border-radius:11px}body #viewerCard{top:auto;bottom:12px;left:12px;width:calc(100% - 24px);max-height:38dvh;padding:15px;border-radius:18px}#viewerCard h2{font-size:18px}.viewer-orange-icon{width:38px;height:38px;border-radius:11px}.viewer-route-title{font-size:13px;margin:9px 0;padding-bottom:9px}.viewer-scroll{max-height:15dvh;min-height:50px}.viewer-stop-sequence button{font-size:12px}.viewer-card-footer{margin-top:8px;padding-top:8px}#viewerLegend{display:none}#viewerHome{top:190px;right:12px;width:40px;height:40px;border-radius:12px}body.user-view .leaflet-top{top:236px;right:12px}.user-view .leaflet-control-zoom a{width:40px;height:38px;line-height:38px}#viewerZoom{top:330px;right:12px;font-size:9px;padding:7px}.user-view main>.data-credit{left:4px;bottom:0;font-size:7px;z-index:850}#viewerSettings{inset:180px 12px auto auto;max-height:calc(100dvh - 200px);width:calc(100vw - 24px)}}
.user-view .leaflet-networkOverlay-pane,.user-view.route-focus .leaflet-networkOverlay-pane{opacity:1!important}
#mapThemesPanel label{margin:12px 0;font-size:12px}#mapThemesPanel output{font-weight:600}#mapThemesPanel input[type=range]{padding:0;accent-color:#4a9d52;display:block;width:100%}#mapThemesPanel input[type=color]{float:right}#viewerCard #mapThemesPanel{padding:15px 0 0;border:0}#viewerCard:has(#mapThemesPanel){max-height:calc(100dvh - 160px);z-index:950}#viewerCard:has(#mapThemesPanel)~#viewerLegend{display:none}.theme-monument-label{font-size:11px;color:#286535;background:#f4ffed;border-color:#b8dba8;border-radius:6px;box-shadow:none}.user-view .viewer-context-point{filter:drop-shadow(0 1px 2px #0003)}
@media(max-width:900px){#viewerNav{overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}#viewerNav button{flex:none}#viewerCard:has(#mapThemesPanel){max-height:55dvh}#mapThemesPanel input[type=range]{min-height:32px}}
.alley-leaf-icon{background:transparent;border:0;pointer-events:none}.alley-leaf-icon svg{display:block;transform-origin:center}#mapThemesPanel [hidden]{display:none!important}
.alley-leaf-icon{pointer-events:auto;cursor:pointer}.viewer-landmark-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e6f2df;color:#2d7040;font-size:36px;flex:none}#viewerLandmarkLocate{margin-top:16px;background:#ecf5e7;border-color:#c6dec0;color:#33693a}#mapRotationControls{border-top:1px solid #e5eae2;margin-top:15px;padding-top:3px}#mapRotationControls label{font-size:12px}#mapRotationControls output{float:right;font-weight:600}#mapBearing{accent-color:#47775b;width:100%;display:block;margin:10px 0 14px;padding:0}#mapRotationReset{background:#f2f6ed;font-size:12px}#viewerCompass{position:fixed;right:18px;top:332px;z-index:900;background:#fffdf7;border:0;border-radius:11px;padding:8px;font-size:11px}#viewerCompass span{display:inline-block;font-size:18px;line-height:1;margin-right:5px;color:#41664e}
@media(max-width:900px){#viewerCompass{top:370px;right:12px;font-size:10px}#mapBearing{min-height:32px}}

#phoneAccess{line-height:1.55}#phoneAccess li{margin:10px 0}#phoneAccess ol,#phoneAccess ul{padding-left:22px}#phoneAccess summary{cursor:pointer;font-weight:600}#phoneLinksList a{font-size:16px;font-weight:600}#phoneLinksList>div{background:#edf5ff;padding:12px;border-radius:10px}
.viewer-stop-code{display:inline-block;margin:12px 0;padding:7px 11px;background:#eaf4fa;color:#347ca6;border-radius:9px;font-size:13px;font-weight:600}
#viewerCard .viewer-route-option[aria-pressed=true]{background:#eaf4fa;border-radius:12px;color:#2479b0}#viewerCard .viewer-route-option[aria-pressed=true] b{background:#d9edfc;color:#2479b0}
@media(min-width:901px){body.user-view #viewerCard{max-height:calc(100dvh - 155px)}#viewerCard .viewer-scroll{max-height:60dvh}}
.viewer-bus-directions{padding:6px 0 14px;border-bottom:1px solid #e7ece1}.viewer-direction-option{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;margin:5px 0;background:#f5f7f0;color:#53614f;text-align:left;border:1px solid transparent;border-radius:12px}.viewer-direction-option svg{width:18px;height:18px;flex:none}.viewer-direction-option span{display:flex;flex-direction:column;gap:4px}.viewer-direction-option strong{font-size:12px;font-weight:500;line-height:1.4}.viewer-direction-option small{font-size:10px;color:#929b88}.viewer-direction-option[aria-pressed=true]{background:#e7f3fc;border-color:#b9dced;color:#227eb1}
@media(max-width:900px){#mobileSheet .viewer-bus-directions .viewer-route-option{border-bottom:0;padding-bottom:7px}#mobileSheet .viewer-direction-option{min-height:55px;margin:6px 0;padding:11px 12px}#mobileSheet .viewer-direction-option strong{font-size:13px}}
.viewer-stop-metadata{margin:10px 0 18px}.viewer-stop-metadata h3{margin:10px 0 8px;font-size:11px;font-weight:500;color:#83907c;letter-spacing:.03em}.viewer-stop-aliases{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0}.viewer-stop-aliases li{padding:7px 10px;background:#f0f4e9;border:1px solid #e5eadb;border-radius:9px;color:#627451;font-size:12px;line-height:1.4}.viewer-stop-metadata .viewer-stop-code{margin:0 0 8px}
.viewer-route-back{display:block;min-height:44px;margin:0 0 12px;padding:8px 0;background:transparent;border:0;color:#347ca6;font-size:13px;text-align:left}
#viewerBack{display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid #e3e9de;background:#fffdf7;border-radius:11px;color:#387598;padding:7px}#viewerBack svg{width:22px;height:22px}#viewerBack:disabled{opacity:.3;cursor:default}@media(max-width:900px){.user-view #viewerHeader{column-gap:7px}.user-view #viewerHeader .viewer-brand strong{font-size:18px}.user-view #viewerHeader .viewer-brand div>span{font-size:9px}}
.viewer-stop-journey{margin:12px 0 20px;padding:14px;background:#eaf4fa;border-radius:12px}.viewer-stop-journey p{margin:0 0 10px;line-height:1.5}.viewer-stop-journey #viewerStopNext{width:100%;min-height:44px;padding:10px 16px;border:0;border-radius:10px;background:#087bf0;color:white;font-size:15px;font-weight:600}.viewer-stop-journey #viewerStopNext:disabled{background:#dce5ec;color:#687988;cursor:default}
#routeTextOpen{width:100%;min-height:44px;margin-bottom:12px}#routeTextDialog{width:calc(100vw - 48px);max-width:1500px;max-height:calc(100dvh - 48px);padding:20px;border:1px solid #dce1e8;border-radius:14px;background:#fff;color:#243344;box-sizing:border-box}#routeTextDialog::backdrop{background:#15233288}.route-text-header{display:flex;align-items:start;justify-content:space-between;gap:20px}.route-text-header h2{margin:0 0 8px;font-size:21px}.route-text-header p{margin:0 0 12px;color:#617080}.route-text-header button{min-height:44px;white-space:nowrap}.route-text-search{display:block;margin:0 0 14px}.route-text-search input{display:block;width:100%;max-width:650px;min-height:42px;margin-top:6px;box-sizing:border-box}.route-text-scroll{max-height:calc(100dvh - 250px);overflow:auto;border:1px solid #dce1e8;border-radius:8px}.route-text-table{width:100%;min-width:1000px;border-collapse:separate;border-spacing:0;text-align:left;font-size:14px;line-height:1.5}.route-text-table caption{text-align:left;padding:12px;color:#617080}.route-text-table th{position:sticky;top:0;background:#edf3f8;z-index:1}.route-text-table th,.route-text-table td{padding:12px;border-bottom:1px solid #dce1e8;vertical-align:top}.route-text-table tbody tr:nth-child(even){background:#f8fafc}.route-text-table td:nth-child(1),.route-text-table td:nth-child(4),.route-text-table td:nth-child(5){white-space:nowrap}.route-text-table td:last-child{min-width:320px}.route-text-stops{margin:0;padding-left:28px}.route-text-stops li{padding:3px 0;break-inside:avoid}.route-text-stops code{font-weight:600;color:#235c85;white-space:nowrap}@media(max-width:600px){#routeTextDialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px}.route-text-header h2{font-size:18px}.route-text-scroll{max-height:calc(100dvh - 230px)}}
.route-code-editor{margin-top:14px;padding:12px;background:#edf3f8;border-radius:8px}.route-code-editor summary{cursor:pointer;font-weight:600}.route-code-editor label{display:block;margin-top:12px;font-size:13px}.route-code-input{display:block;box-sizing:border-box;width:100%;min-height:100px;margin:8px 0;font-family:monospace;font-size:14px;line-height:1.6;resize:vertical}.route-code-save{min-height:44px}.route-code-status{white-space:normal;color:#9b3b20}
.editor-pointer-row{padding:12px 0;border-bottom:1px solid #ddd}.editor-pointer-row small{display:block;overflow-wrap:anywhere;margin:7px 0;color:#6f5976}.editor-pointer-row button{min-height:42px}.editor-pointer-locate{width:100%;text-align:left}.editor-pointer-icon{background:none;border:0}.editor-pointer-placing{cursor:crosshair}.editor-pointer-row label{display:block}.editor-pointer-row input{width:100%;box-sizing:border-box}
#stopDeleteDialog{max-width:600px;max-height:85dvh;overflow:auto;padding:22px;border:1px solid #dce1e8;border-radius:14px}#stopDeleteDialog::backdrop{background:#15233288}#stopDeleteDialog button{min-height:44px;margin:5px}#pointList>div,#stopList>div{display:flex;gap:8px;margin:6px 0}#pointList>div>button:first-child,#stopList>div>button:first-child{flex:1;text-align:left}#pointList>div>button,#stopList>div>button{min-height:42px}
.viewer-stop-navigation{display:flex;gap:10px;margin-bottom:12px}.viewer-stop-navigation button{flex:1;min-height:44px;padding:10px 16px;border:0;border-radius:10px;background:#087bf0;color:white;font-size:15px;font-weight:600}.viewer-stop-navigation button:disabled{background:#dce5ec;color:#687988;cursor:default}.viewer-stop-navigation #viewerStopNext{width:auto}.viewer-stop-journey>p:last-child{margin-bottom:0}
.viewer-stop-request{display:inline-block;padding:7px 10px;border-radius:9px;background:#fff2d4;color:#805409;font-size:13px;font-weight:600}
#adminTransportContext{padding:10px 0 16px;border-bottom:1px solid #e3e6ed;margin-bottom:14px}#adminTransportContext label{display:block;margin-top:10px;font-size:13px}#adminTransportContext select{display:block;box-sizing:border-box;width:100%;min-height:42px;margin-top:5px}#trackingContent[hidden]{display:none}#trackingContent h3{font-size:14px;color:#31564a}#trackingContent label{display:block;margin:12px 0}#trackingContent select{width:100%;min-height:42px}.route-tabs{flex-wrap:wrap}.route-tabs button{min-width:90px}

/* Desktop route details sit beside the map controls. */
@media(min-width:901px){body.user-view #viewerCard:is([data-mode="route"],[data-mode="route-stop"]){left:auto;right:124px;top:110px;max-height:calc(100dvh - 130px)}#viewerCard[data-mode="route"] .viewer-stop-sequence{max-height:calc(100dvh - 420px)}}

#viewerRouteList{display:none}
@media(min-width:901px){
 body.user-view #viewerRouteList:not([hidden]){display:block;position:fixed;top:126px;left:18px;width:334px;max-height:calc(100dvh - 155px);z-index:900;overflow:auto;border:1px solid #edf0e8;border-radius:22px;padding:22px;background:#fffdf8f5;box-shadow:0 6px 24px #2c594b14}
 #viewerRouteList h2{font-size:22px;line-height:1.25;margin:0}
 #viewerRouteList .viewer-scroll{max-height:60dvh}
 #viewerRouteList .viewer-route-option[aria-pressed=true]{background:#eaf4fa;border-radius:12px;color:#2479b0}
 #viewerRouteList .viewer-route-option[aria-pressed=true] b{background:#d9edfc;color:#2479b0}
}

.map-search{position:relative;flex:1;min-width:180px;max-width:380px}.map-search input{margin:0;width:100%}#mapSearchResults{position:absolute;top:100%;left:0;right:0;max-height:50vh;overflow:auto;background:white;border:1px solid #ddd;border-radius:8px;box-shadow:0 6px 20px #0002;padding:6px;z-index:1200}#mapSearchResults[hidden]{display:none}#mapSearchResults button{display:block;width:100%;text-align:left;margin:0;padding:10px;border:0;border-radius:4px;background:white}#mapSearchResults button:hover,#mapSearchResults button:focus{background:#eaf0ed}@media(max-width:600px){.map-search{max-width:none;flex-basis:100%;order:5}}

.transport-search{box-sizing:border-box;width:100%;flex-shrink:0;margin:8px 0 12px}.scoped-search-result{display:block;width:100%;text-align:left;padding:10px;white-space:normal}.scoped-editor-results h3{margin:14px 0 6px}.viewer-scroll h3{margin:16px 0 8px}

button.route-search-card{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin:8px 0;padding:12px;border:1px solid #e1e7e3;border-radius:12px;background:#fff;color:#20372c;text-align:left;white-space:normal;box-shadow:0 2px 5px #183c2510}button.route-search-card:hover,button.route-search-card:focus-visible{background:#f0f7f2;border-color:#65a581;outline:2px solid #65a581;outline-offset:1px}.route-search-number{display:flex;align-items:center;justify-content:center;flex:0 0 52px;min-height:52px;padding:3px;border-radius:10px;background:#23794e;color:#fff;font-size:22px;font-weight:750;box-sizing:border-box}.route-search-terminals{display:block;min-width:0;flex:1}.route-search-terminal{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:baseline;padding:5px 0}.route-search-terminal+ .route-search-terminal{border-top:1px solid #e6ece8}.route-search-terminal small{font-size:11px;color:#718078}.route-search-terminal strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.route-search-reason{display:block;margin-top:5px;color:#46835c;font-size:11px}

#routeNavControls{display:flex;gap:7px;margin:10px 0;flex-shrink:0}#routeNavControls button{display:flex;align-items:center;justify-content:center;width:40px;height:36px;min-height:36px;margin:0;border:1px solid #dbe6df;border-radius:8px;background:#f2f7f3;color:#266243;font-size:21px}#routeNavControls button:nth-child(3){margin-left:auto}#routeNavControls button:disabled{opacity:.35;cursor:default}.viewer-stop-sequence li.route-nav-current{background:#fff1dc;border-radius:8px;box-shadow:inset 3px 0 #d95a13}.viewer-stop-sequence li.route-nav-current button{color:#a14210;font-weight:700}

#zoomLevelRuler{position:relative;height:26px;margin:-8px 10px 12px}#zoomLevelRuler button{position:absolute;transform:translateX(-50%);padding:7px 3px 2px;margin:0;min-height:25px;border:0;background:transparent;color:#76877b;font-size:11px;line-height:14px}#zoomLevelRuler button:before{content:"";position:absolute;left:50%;top:0;height:5px;border-left:1px solid #9eafa3}#zoomLevelRuler button[aria-pressed=true]{color:#236a42;font-weight:750}#zoomLevelIndicator{position:absolute;left:50%;top:180px;transform:translateX(-50%);z-index:1190;pointer-events:none;background:#244c3aeb;color:#fff;border-radius:20px;padding:9px 17px;font-size:14px;font-weight:650;box-shadow:0 3px 14px #0002}#zoomLevelIndicator[hidden]{display:none}
