/* Adventsroute V0.9 – purpose-built app workspace, map-first. No emoji, OSM only. */
:root{--cockpit-bg:#f1f3f3;--cockpit-ink:#172c32;--cockpit-navy:#13252d;--cockpit-line:#dce4e4;--cockpit-accent:#23786c;--cockpit-orange:#ce7951;--cockpit-rail:90px;--cockpit-top:66px}
html{scroll-behavior:auto}body.app-body{background:var(--cockpit-bg);color:var(--cockpit-ink);font-family:-apple-system,BlinkMacSystemFont,Inter,'Segoe UI',sans-serif}
.app-shell{min-height:100dvh;overflow:visible}
.app-sidebar{width:var(--cockpit-rail);padding:19px 9px 14px;background:var(--cockpit-navy);border-right:0;align-items:center;overflow-y:auto;overflow-x:hidden}
.app-logo{width:100%;padding:0 0 23px;display:flex;justify-content:center}.logo-shape{background:#e1eee8;color:#19483e;width:48px;height:48px;font-size:28px;border-radius:15px;box-shadow:0 4px 12px #061d2330}.app-logo>div{display:none}
.sidebar-label,.sidebar-label.secondary-label{display:none}
.app-side-nav{width:100%;gap:6px}.app-side-link{display:flex;flex-direction:column;gap:6px;padding:14px 3px 11px;min-height:67px;justify-content:center;align-items:center;border-radius:12px;font-size:10px;line-height:1.15;text-align:center;color:#9ab3b1;font-weight:600;letter-spacing:-.1px}
.app-side-link svg{width:23px;height:23px;stroke-width:1.65}.app-side-link>span{display:block!important;font-size:10px;line-height:1.15;max-width:79px;overflow-wrap:anywhere}
.app-side-link:hover{background:#24414a;color:#fff}.app-side-link.active{background:#e3eee9;color:#17483f;font-weight:800}.app-side-link.active svg{color:#1f665a}
.app-sidebar nav.app-side-nav:nth-of-type(2){margin-top:24px;padding-top:16px;border-top:1px solid #31494e}
.sidebar-bottom{margin-top:auto;padding:15px 0 4px;border-top:1px solid #31494e;width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}.sidebar-bottom .source-mini{display:none}.sidebar-bottom>a{display:none}.sidebar-bottom>small{font-size:9px;line-height:1.3;color:#76918f;margin:0}
.app-main{margin-left:var(--cockpit-rail);width:calc(100% - var(--cockpit-rail));min-width:0}
.topbar{height:var(--cockpit-top);position:sticky;top:0;z-index:1200;background:#fff;border-bottom:1px solid var(--cockpit-line);backdrop-filter:none}
.app-top-inner{height:var(--cockpit-top);padding:0 26px;gap:20px}.app-breadcrumb{display:flex;align-items:center;gap:12px}.app-live-dot{width:11px;height:11px;border-radius:50%;background:#2f9781;box-shadow:0 0 0 5px #e5f5ef}
.app-breadcrumb>div{display:flex;flex-direction:column;gap:1px}.app-breadcrumb small{font-size:9px;letter-spacing:1.7px;color:#829796}.app-breadcrumb strong{font-size:19px;letter-spacing:-.55px;color:#1a3136;font-weight:760}
.app-top-actions{gap:20px}.top-source{font-size:12px}.top-source-link{font-size:12px}.model-chip{color:#896945;background:#faf1e8;font-weight:800;font-size:9px;letter-spacing:.85px;padding:8px 11px;border-radius:7px}
.app-main>.footer{margin-top:36px}
body[data-view="route"]{height:100dvh;overflow:hidden}
body[data-view="route"] .app-shell,body[data-view="route"] .app-main{height:100dvh}
body[data-view="route"] .app-main main{height:calc(100dvh - var(--cockpit-top));overflow:hidden}
body[data-view="route"] .app-main .footer{display:none}
body[data-view="route"] .app-main main>#route{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;height:100%;display:flex;flex-direction:column}
body[data-view="route"] #route>.section-head,body[data-view="route"] #route>.notice,body[data-view="route"] #route>.route-lists{display:none!important}
body[data-view="route"] .app-main #route>.planner{display:grid!important;grid-template-columns:318px minmax(0,1fr);width:100%;height:100%;min-height:0;gap:0;align-items:stretch;position:relative}
body[data-view="route"] .planner>.controls{height:100%;max-height:100%;min-height:0;overflow-y:auto;border-radius:0;background:#fafbfb;border:0;border-right:1px solid #dce5e5;box-shadow:none;padding:24px 22px 24px;order:0;scrollbar-width:thin;overscroll-behavior:contain}
body[data-view="route"] .controls-intro{position:relative;padding-bottom:18px;border-bottom:1px solid #e5ebea;margin-bottom:17px}
.controls-intro .overline,.overline{font-size:10px;letter-spacing:1.7px;color:#799087;font-weight:800}
.controls-intro h2{font-size:24px;line-height:1.15;letter-spacing:-1px;color:#1d3537;margin:9px 0 6px;font-weight:790}.controls-intro p{color:#829494;font-size:11px;line-height:1.5;margin:0}.close-planner{display:none}
body[data-view="route"] .control-title{font-size:13px;color:#4b6964;font-weight:750;margin:0 0 12px}
body[data-view="route"] .fields{display:grid;gap:13px}.app-main .fields label{font-size:11px;color:#5a7774;font-weight:720;line-height:1.55}
body[data-view="route"] .fields input[type="date"]{height:37px;background:white;padding:6px 10px;border-radius:8px;border:1px solid #dbe4e1;font-size:12px}
body[data-view="route"] .fields input[type="range"]{accent-color:#287b70}
body[data-view="route"] .controls>button#replan{margin-top:22px;min-height:45px;border-radius:10px;font-size:12px;font-weight:770;background:#1d635a;color:white;box-shadow:0 5px 11px #12493e1e}
body[data-view="route"] .controls>button#replan:hover{background:#194f48}
.assumption-details{font-size:12px;background:#fff;border:1px solid #e2e9e7;border-radius:10px;padding:0;margin-top:16px;overflow:hidden}.assumption-details summary{padding:14px;cursor:pointer;font-size:11px;color:#53706b;font-weight:780}.assumption-details[open] summary{border-bottom:1px solid #e2e9e7}.assumption-details .explain{background:transparent;border:0;padding:12px!important;margin:0;box-shadow:none}.assumption-details .explain p{font-size:11px;line-height:1.65;color:#728680}
body[data-view="route"] .download-actions{display:grid;gap:4px;margin-top:16px}.download-actions button{text-align:left;font-size:11px;white-space:normal}
.control-data-source{display:flex;gap:10px;align-items:start;padding:15px 0 3px;border-top:1px solid #e2e9e7;margin-top:21px}.control-data-source>span{width:8px;height:8px;border-radius:50%;background:#c1a167;flex:none;margin-top:4px}.control-data-source strong{display:block;font-size:11px;color:#48665f}.control-data-source small{display:block;font-size:10px;line-height:1.5;color:#8b9a95;margin-top:3px}.control-data-source a{color:#397264}
body[data-view="route"] .planner>.map-panel{order:1;display:flex;flex-direction:column;min-height:0;height:100%;width:100%;background:#e5ebe8;border:0;border-radius:0;box-shadow:none;overflow:hidden}
body[data-view="route"] .map-panel>.map-header{flex:0 0 auto;background:#fff;min-height:66px;padding:13px 23px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e2e9e7}
body[data-view="route"] .map-header-left{display:flex;flex-direction:column;gap:3px;min-width:0}.map-header-left strong{font-size:16px!important;color:#20383b!important;font-weight:770;letter-spacing:-.25px}.map-header-left span{font-size:11px;color:#849791}
body[data-view="route"] .map-provider-chip{margin-left:auto;display:flex!important;font-size:11px;background:#ebf4ed;padding:7px 10px;border-radius:8px;color:#2d6455;font-weight:750;white-space:nowrap}.osm-status-dot{height:7px;width:7px;background:#269072;border-radius:50%}
.planner-toggle{height:34px;display:flex;gap:7px;align-items:center;justify-content:center;font:inherit;font-size:11px;line-height:1;font-weight:750;padding:0 13px;background:#fff;border:1px solid #dce5e3;border-radius:9px;color:#46615a;cursor:pointer;white-space:nowrap}.planner-toggle svg{flex:none}.planner-toggle:hover{background:#eef4ef}
body[data-view="route"] .map-toolbar{flex:0 0 auto;display:flex;align-items:center;padding:9px 17px;background:#fff;border-bottom:1px solid #e4eae8;gap:9px}
body[data-view="route"] .map-toolbar label{display:flex;align-items:center;gap:7px;font-size:10px;color:#85968f;letter-spacing:0;font-weight:750}
body[data-view="route"] .map-toolbar select{height:36px;min-width:170px;border:1px solid #dce6e2;border-radius:8px;background:#fafcfb;color:#334f49;padding:5px 8px;font-size:11px;font-weight:600}
body[data-view="route"] .map-toolbar button{height:36px;border:1px solid #dce6e2;background:#fafcfb;border-radius:8px;font-size:11px}
body[data-view="route"] #route-map{flex:1 1 auto!important;height:0!important;min-height:0!important;max-height:none!important;background:#e2ebe7}
body[data-view="route"] .map-live-note{flex:0 0 auto;padding:7px 16px;background:#fff;font-size:10px;line-height:1.35;color:#84928d;border-top:1px solid #e4eae8}
body[data-view="route"] .map-footer{flex:0 0 auto;display:flex;align-items:center;flex-wrap:wrap;background:white;padding:9px 16px;gap:14px;border-top:1px solid #e8edeb;min-height:35px}.map-footer span{font-size:10px;color:#677f75}.map-footer a{font-size:10px;white-space:nowrap}
body[data-view="route"] .leaflet-control-attribution{background:#ffffffd9!important;color:#536d65!important;padding:3px 8px!important;font-size:10px!important}
body[data-view="route"] .leaflet-control-zoom{border:0;box-shadow:0 6px 22px #17362e33}.leaflet-control-zoom a{border-bottom:1px solid #dbe1df!important;color:#295448!important}
body.planner-closed[data-view="route"] #route>.planner{grid-template-columns:0 minmax(0,1fr)}body.planner-closed[data-view="route"] #route .planner>.controls{visibility:hidden;padding:0;overflow:hidden;border:none;pointer-events:none}
.planner-scrim{display:none}
/* App dashboard: no marketing landing banner */
body[data-view="overview"] .app-main main>.cockpit-home{display:block}
.cockpit-home{max-width:1350px;margin:0 auto;padding:42px 32px 5px}
.cockpit-home-head{display:flex;align-items:end;justify-content:space-between;gap:24px}.cockpit-home-head h1{font-size:clamp(33px,4.4vw,54px);letter-spacing:-2px;line-height:1.06;color:#1f3337;font-weight:800;margin:11px 0 10px}.cockpit-home-head p{font-size:14px;color:#748a85;max-width:580px}.home-open-map{font-size:12px;text-decoration:none;background:#1e665c;color:#fff;border-radius:10px;padding:14px 20px;font-weight:700;white-space:nowrap}.home-source{display:flex;align-items:center;gap:12px;background:#e5eee9;border:1px solid #d1dfd8;padding:15px 17px;border-radius:12px;margin:30px 0 4px}.home-source-marker{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#236458;color:white;font-weight:800}.home-source div{display:grid;gap:2px}.home-source b{color:#1e5347;font-size:12px}.home-source small{font-size:11px;color:#617d70}.home-source a{margin-left:auto;color:#2d725e;text-decoration:underline;font-size:11px;font-weight:700}
body[data-view="overview"] .stats{margin-top:13px}body[data-view="overview"] .overview-actions{padding-bottom:45px}
.app-main main>.cockpit-home{display:none}
/* Non-map views are application panels */
body[data-view="markets"] #markets,body[data-view="data"] #data,body[data-view="geo-data"] #geo-data,body[data-view="trip"] #route{max-width:1440px;padding:34px 34px 60px;width:100%;margin:0 auto}
body[data-view="trip"] #route>.planner,body[data-view="trip"] #route>.controls-intro{display:none!important}
body[data-view="trip"] #route>.section-head h2:after{font-size:30px}
body[data-view="trip"] #route>.route-lists{margin-top:10px}
body[data-view="trip"] .timeline{max-height:none;overflow:visible}
.app-main #markets .table-shell{max-height:calc(100dvh - 380px);overflow:auto;background:#fff;border:1px solid var(--cockpit-line)}
.app-main #markets .table-shell thead{position:sticky;top:0;background:#f7faf8;z-index:4}
/* Source page uses a documentary sub-view, while maintaining the same visual identity */
body[data-view="sources"] .topbar{background:var(--cockpit-navy);border:0}body[data-view="sources"] .app-breadcrumb strong{color:white}body[data-view="sources"] .app-breadcrumb small{color:#9eb8b6}body[data-view="sources"] .top-source,body[data-view="sources"] .top-source b{color:#e0f0e8}
body[data-view="sources"] .top-source-link{color:#e1f0e9}body[data-view="sources"] .sourcepage{max-width:1150px}
/* Tablet and mobile are designed as a compact navigation app with a bottom sheet. */
@media(max-width:1150px){:root{--cockpit-rail:77px}.app-sidebar{width:var(--cockpit-rail);padding-inline:6px}.app-side-link{padding-inline:2px;min-height:63px;font-size:9px}.app-side-link svg{width:21px;height:21px}.app-main{margin-left:var(--cockpit-rail);width:calc(100% - var(--cockpit-rail))}body[data-view="route"] #route>.planner{grid-template-columns:286px minmax(0,1fr)}.model-chip{display:none}}
@media(max-width:950px){.app-sidebar{width:var(--cockpit-rail);padding:19px 6px}.app-logo{padding-bottom:23px}.app-side-link{justify-content:center;padding:11px 2px}.app-side-link>span{display:block!important}.app-side-link svg{width:21px;height:21px}.app-main{margin-left:var(--cockpit-rail);width:calc(100% - var(--cockpit-rail))}.app-main .planner{grid-template-columns:286px minmax(0,1fr)}.app-main .map-header .map-provider-chip{display:flex}.app-main .stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px), (min-width:761px) and (max-width:1100px) and (orientation:portrait){
 :root{--cockpit-top:59px;--mobile-nav:67px}
 body[data-view="route"]{overflow:hidden;height:100dvh}
 .app-sidebar{display:none!important}.app-main{margin-left:0;width:100%}
 .topbar,.app-top-inner{height:var(--cockpit-top)}.app-top-inner{padding:0 16px}.app-breadcrumb{gap:10px}.app-live-dot{width:8px;height:8px;box-shadow:0 0 0 3px #dff1ea}.app-breadcrumb small{font-size:8px;letter-spacing:1.1px}.app-breadcrumb strong{font-size:16px}.top-source{font-size:10px}.top-source svg{display:none}.top-source-link,.model-chip{display:none}
 body[data-view="route"] .app-main main{height:calc(100dvh - var(--cockpit-top) - var(--mobile-nav) - env(safe-area-inset-bottom,0px))}
 body[data-view="route"] #route>.planner{display:block!important;height:100%;position:relative}
 body[data-view="route"] .planner>.map-panel{height:100%;width:100%;display:flex;order:0}
 body[data-view="route"] .map-panel>.map-header{min-height:60px;padding:10px 15px}.map-header-left strong{font-size:13px!important}.map-header-left span{font-size:10px}.app-main .map-header .map-provider-chip{display:none!important}
 .planner-toggle{margin-left:auto;height:34px;background:#1c655a;border:0;color:white;font-size:11px}.planner-toggle:hover{background:#18584d}
 body[data-view="route"] .map-toolbar{padding:8px 11px;gap:8px;justify-content:space-between}
 body[data-view="route"] .map-toolbar label{display:grid;gap:3px;min-width:0;flex:1;color:#879b91;font-size:9px}
 body[data-view="route"] .map-toolbar label select{width:100%;min-width:0;height:34px;font-size:10px;max-width:none}
 body[data-view="route"] .map-toolbar #map-reset{height:34px;align-self:end;font-size:10px;padding:5px 10px;white-space:nowrap}
 body[data-view="route"] #route-map{flex:1 1 0!important;min-height:0!important;height:0!important}
 body[data-view="route"] .map-live-note{font-size:9px;padding:7px 11px}
 body[data-view="route"] .map-footer{padding:8px 11px;gap:9px}.map-footer span{font-size:9px}.map-footer a{margin-left:auto;font-size:9px}
 body[data-view="route"] .planner>.controls{position:fixed;display:block;visibility:hidden;pointer-events:none;transform:translateY(110%);bottom:calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px));left:0;right:0;z-index:1820;height:min(76dvh,730px);max-height:76dvh;width:100%;border-radius:20px 20px 0 0;border:0;overflow:auto;padding:24px 20px 26px;box-shadow:0 -18px 40px #122d3352;transition:transform .22s ease,visibility .22s}
 body.planner-open[data-view="route"] .planner>.controls{visibility:visible;pointer-events:auto;transform:translateY(0)}
 body[data-view="route"] .controls-intro{margin-bottom:16px}.close-planner{display:grid;place-items:center;position:absolute;right:0;top:0;border:0;background:#e7eeed;border-radius:9px;width:32px;height:32px;cursor:pointer}.close-planner svg{width:15px;height:15px}
 body[data-view="route"] .planner>.planner-scrim:not([hidden]){display:block;position:fixed;inset:var(--cockpit-top) 0 calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px));background:#0e252d7a;z-index:1819}
 .app-mobile-tabs{height:calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px));padding:6px 6px max(7px,env(safe-area-inset-bottom));background:#fff;grid-template-columns:repeat(5,1fr);z-index:2000}
 .app-mobile-tabs a,.app-mobile-tabs .app-mobile-more-toggle{min-height:51px;padding:6px 1px 1px;gap:4px;font-size:9px;letter-spacing:-.1px}
 .app-mobile-tabs a.active{background:#e8f2ed;color:#1b665a}
 .app-mobile-tabs svg{width:20px;height:20px}
 .app-mobile-more{bottom:calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px) + 4px)}
 .cockpit-home{padding:24px 17px 0}.cockpit-home-head{display:block}.cockpit-home-head h1{font-size:33px;letter-spacing:-1.2px}.cockpit-home-head p{font-size:12px}.home-open-map{display:inline-block;margin-top:7px}.home-source{align-items:start;flex-wrap:wrap}.home-source a{margin-left:44px}
 body[data-view="trip"] #route,body[data-view="markets"] #markets,body[data-view="data"] #data,body[data-view="geo-data"] #geo-data{padding:20px 15px 100px}
 body[data-view="markets"] #markets .table-shell{max-height:none}
 .app-main .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-view="sources"] .sourcepage{padding:25px 16px 90px}
}
@media(max-width:380px){.top-source{max-width:112px;text-align:right;line-height:1.2}.app-breadcrumb strong{font-size:14px}.map-footer span:last-of-type{display:none}.app-mobile-tabs a,.app-mobile-tabs .app-mobile-more-toggle{font-size:9px}}
@media(prefers-reduced-motion:reduce){.planner>.controls{transition:none!important}}
@media print{body[data-view="route"]{overflow:visible;height:auto}body[data-view="route"] .app-main main{height:auto;overflow:visible}body[data-view="route"] #route>.planner{height:auto;display:block!important}body[data-view="route"] .planner>.controls{display:block!important;visibility:visible!important;position:static!important}body[data-view="route"] .real-map{height:450px!important} .app-mobile-tabs,.app-sidebar{display:none!important}.app-main{margin:0;width:100%}}
/* Reset legacy map SVG styles which were meant for the discarded static SVG map. */
body[data-view="route"] .map-panel .planner-toggle svg{display:block!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:0!important;max-height:17px!important;max-width:17px!important;flex:0 0 17px!important;background:none!important;box-shadow:none!important;border-radius:0!important}
@media(max-width:760px), (min-width:761px) and (max-width:1100px) and (orientation:portrait){body[data-view="route"] .app-main #route>.planner{display:flex!important;flex-direction:column!important;width:100%!important;grid-template-columns:none!important}body[data-view="route"] .app-main #route .planner>.map-panel{width:100%!important;flex:1 1 auto;min-width:0}}
.home-data-foot{margin:8px 0 5px;font-size:11px;line-height:1.6;color:#899c93}
/* V0.9.1 – bundled tile renderer with visible geographic fallback. */
#route-map{position:relative;overflow:hidden;touch-action:none;user-select:none;background:#ddece9}
#route-map canvas,#route-map .advents-tiles{position:absolute;inset:0;display:block}
#route-map .advents-base{z-index:1;pointer-events:none}
#route-map .advents-tiles{z-index:2;overflow:hidden;pointer-events:none}
#route-map .advents-overlay{z-index:3;pointer-events:none}
#route-map .advents-map-controls{position:absolute;right:13px;bottom:57px;z-index:5;display:grid;overflow:hidden;border-radius:10px;box-shadow:0 4px 18px #17362e42}
#route-map .advents-map-controls button{height:40px;width:41px;border:0;background:#fff;color:#294a44;font-size:24px;font-weight:400;line-height:1}
#route-map .advents-map-controls button:first-child{border-bottom:1px solid #d4dfd9}
#route-map .advents-map-popup{position:absolute;z-index:6;max-width:278px;width:min(278px,calc(100% - 16px));background:#fff;padding:16px 14px 14px;border:1px solid #d9e4dd;border-radius:12px;box-shadow:0 10px 36px #0f353b44;max-height:70%;overflow-y:auto}
#route-map .advents-map-popup[hidden]{display:none!important}
#route-map .advents-popup-close{position:absolute;right:7px;top:4px;border:0;background:none;color:#60796e;font-size:22px}
#route-map .advents-attribution{position:absolute;bottom:0;right:0;z-index:4;padding:3px 8px;background:#ffffffd9;font-size:10px;line-height:1.2}
#route-map .advents-attribution a{color:#39615a;text-decoration:none}
#route-map .advents-osm-tile{max-width:none!important;min-height:0!important;image-rendering:auto}

/* V0.9.2 – mobile-first, uncluttered map presentation. */
#route-map .advents-offline-pill{position:absolute;z-index:4;top:12px;left:12px;border:1px solid rgba(255,255,255,.82);background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-radius:16px;box-shadow:0 2px 12px #193f3120;padding:7px 11px;font-size:10px;font-weight:650;color:#60776e;max-width:calc(100% - 32px);pointer-events:none}
#route-map.osm-loaded .advents-offline-pill{display:none}
#route-map .advents-map-controls{bottom:18px;right:14px}
#route-map .advents-attribution{font-size:9px;max-width:80%;opacity:.92}
#route-map .advents-attribution a{color:#526e68}
#route-map .advents-map-popup .cluster-market-list{margin:10px 0 0;padding:0;list-style:none;max-height:195px;overflow:auto;display:grid;gap:0}
#route-map .cluster-market-list li{padding:9px 0;border-bottom:1px solid #e7eeea}
#route-map .cluster-market-list strong{font-size:11px;display:block;color:#294d45;line-height:1.35}
#route-map .cluster-market-list small{font-size:10px;display:block;color:#7a9187;margin-top:3px}
body[data-view="route"] .map-aggregation-note{background:#eef4f0;border-top:1px solid #dae6df;padding:6px 15px;font-size:10px;font-weight:650;color:#47746a}
body[data-view="route"] .map-toolbar .map-lines-switch{display:flex;align-items:center;gap:5px;white-space:nowrap;letter-spacing:0;font-weight:650;font-size:11px;color:#4e6b61}
.map-lines-switch input{accent-color:#197468}
body[data-view="route"] .map-toolbar a.map-open-osm{border:1px solid #cddfda;border-radius:8px;padding:9px 10px;text-decoration:none;color:#236e61;font-weight:700;font-size:11px;white-space:nowrap;background:#edf5f1}
@media(max-width:760px), (min-width:761px) and (max-width:1100px) and (orientation:portrait){
 body[data-view="route"] .map-panel>.map-header{min-height:50px;padding:8px 13px}
 body[data-view="route"] .map-header-left strong{font-size:14px!important}
 body[data-view="route"] .map-header-left span{font-size:10px}
 body[data-view="route"] .map-toolbar{padding:8px 11px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px}
 body[data-view="route"] .map-toolbar label:not(.map-lines-switch){display:block;min-width:0;line-height:1.6}
 body[data-view="route"] .map-toolbar select{width:100%;min-width:0;height:36px;padding:5px 22px 5px 8px;font-size:11px}
 body[data-view="route"] .map-toolbar #map-reset{height:36px;align-self:end;padding:4px 10px}
 body[data-view="route"] .map-toolbar .map-lines-switch{grid-column:1 / 3;min-height:25px}
 body[data-view="route"] .map-toolbar a.map-open-osm{grid-column:3;justify-self:end;padding:6px 10px}
 body[data-view="route"] .map-footer{padding:7px 12px;gap:8px}
 body[data-view="route"] .map-footer span{font-size:9px}
 body[data-view="route"] .map-live-note{padding:5px 12px;font-size:10px}
 body[data-view="route"] .map-aggregation-note{padding:5px 12px;font-size:9px}
 #route-map .advents-offline-pill{top:10px;left:10px;font-size:9px;padding:6px 9px}
}

body[data-view="route"] .map-toolbar .map-lines-switch.is-disabled{opacity:.42;cursor:not-allowed}


/* V0.9.3 — explainable map statuses and visible routes */
:root{--market-open:#23856d;--market-plan:#d97732;--market-night:#315a91;--market-group:#667785;--model-route:#275d6b}
body[data-view="route"] .map-footer.map-status-legend{display:flex;flex-wrap:wrap;gap:8px 15px;align-items:center;padding:11px 16px;background:#fff;border-top:1px solid #dfe7e4}
.map-status-legend .legend-item{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#354f4c;font-weight:600;white-space:nowrap}
.map-status-legend .legend-symbol{width:12px;height:12px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--market-open);border:2px solid #fff;box-shadow:0 0 0 1px #afc3b9;font-size:9px;font-weight:850;line-height:1;color:#fff}
.map-status-legend .legend-symbol.planned{background:var(--market-plan)}
.map-status-legend .legend-symbol.visited{background:var(--market-open);width:15px;height:15px}
.map-status-legend .legend-symbol.cluster{width:17px;height:17px;background:var(--market-group);border:none;box-shadow:none;font-size:8px}
.map-status-legend .legend-symbol.night{border-radius:4px;background:var(--market-night);width:14px;height:14px;box-shadow:none}
.map-status-legend .legend-route{display:inline-block;width:22px;height:0;border-top:3px solid var(--model-route);border-radius:3px}
.map-status-legend .legend-item.day-route .legend-route{border-color:var(--market-plan)}
.map-status-legend a{margin-left:auto!important;font-size:10px!important;color:#226659;white-space:nowrap}
.map-aggregation-note{font-variant-numeric:tabular-nums}
body[data-view="route"] .map-toolbar .map-lines-switch{color:#2b5e55;font-weight:780}
body[data-view="route"] .map-toolbar .map-lines-switch.is-disabled{opacity:1;cursor:pointer}
@media(max-width:760px), (min-width:761px) and (max-width:1100px) and (orientation:portrait){
 body[data-view="route"] .map-footer.map-status-legend{padding:9px 11px;gap:7px 12px}
 .map-status-legend .legend-item{font-size:9px;gap:5px}
 .map-status-legend a{display:none}
}
