@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#19231f;--muted:#87918c;--line:#e9eeeb;--green:#3c795c;--mint:#eaf2ed;--bg:#f8faf9}*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:'DM Sans',sans-serif;color:var(--ink)}button{font:inherit;cursor:pointer}.sidebar{position:absolute;inset:0 auto 0 0;width:308px;background:#fff;border-right:1px solid var(--line);z-index:800;display:flex;flex-direction:column}.brand{height:76px;display:flex;align-items:center;padding:0 22px;gap:11px;border-bottom:1px solid var(--line)}.brand-mark{width:34px;height:34px;border-radius:10px;background:#e9f2ec;display:grid;place-items:center}.brand-mark svg{width:20px;fill:#3c795c}.brand b{font:800 21px Manrope;letter-spacing:-1px}.brand b span{color:#67a07f}.brand small{display:block;font:700 8px 'DM Sans';letter-spacing:1.5px;color:#97a29c;margin-top:1px}.icon-btn{border:0;background:transparent;color:#607069;font-size:18px}.sidebar-toggle{margin-left:auto;display:none}.sidebar-content{padding:27px 20px 18px;overflow:auto;flex:1}.eyebrow,.section-head{font-size:10px;font-weight:700;letter-spacing:1.15px;color:#8d9892}.sidebar h1{font:700 21px Manrope;letter-spacing:-.5px;margin:10px 0 5px}.intro{font-size:12px;color:#849089;line-height:1.5;margin:0 0 22px}.draw-button{width:100%;display:flex;align-items:center;gap:11px;padding:12px 11px;border:1px solid #dce8df;background:#f4f8f5;border-radius:9px;text-align:left;color:var(--ink);transition:.2s}.draw-button:hover{border-color:#8bb49a;background:#eef6f0}.draw-icon{width:31px;height:31px;border-radius:8px;background:#dcebe0;color:#3f805e;display:grid;place-items:center;font-size:22px}.draw-button b{font-size:12px;display:block}.draw-button small{font-size:10px;color:#86918b;display:block;margin-top:3px}.shortcut{margin-left:auto;border:1px solid #d9e0dc;background:#fff;border-radius:4px;padding:2px 6px;color:#98a29c;font-size:10px}.section-head{margin:30px 0 12px;display:flex;align-items:center;justify-content:space-between}.tiny-add{border:0;background:transparent;color:#73827a;font-size:19px}.routes{display:grid;gap:8px}.route-card{border:1px solid var(--line);border-radius:9px;padding:11px 11px 10px;cursor:pointer;transition:.18s}.route-card:hover,.route-card.selected{border-color:#b7cdbd;background:#f8fbf8}.route-row{display:flex;gap:9px;align-items:center}.route-color{width:9px;height:9px;border-radius:50%;flex:none}.route-name{font-weight:600;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.route-menu{border:0;background:none;color:#94a099;font-size:19px;padding:0 3px}.route-meta{display:flex;gap:10px;color:#8a958e;font-size:10px;margin:8px 0 0 18px}.empty-state{min-height:145px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#75817a;text-align:center}.empty-icon{font-size:26px;color:#a9beb0}.empty-state b{font-size:11px;color:#56635b}.empty-state span{font-size:10px;line-height:1.5;color:#98a19c}.storage-note{margin:17px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:10px;color:#86918b;display:flex;gap:7px;align-items:center}.green-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#67a47a}.help-card{display:flex;gap:10px;background:#f7f9f8;border-radius:8px;padding:12px;margin-top:19px}.help-symbol{width:25px;height:25px;border-radius:7px;background:#e7eee9;display:grid;place-items:center;color:#4c7e60}.help-card b{font-size:10px}.help-card p{font-size:10px;line-height:1.5;color:#839088;margin:4px 0 0}.sidebar-footer{border-top:1px solid var(--line);height:65px;display:flex;align-items:center;padding:0 20px;gap:10px}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e5eee8;color:#4b775d;font-size:12px;font-weight:700}.sidebar-footer b{font-size:11px;display:block}.sidebar-footer small{font-size:10px;color:#939d97}.more{margin-left:auto;color:#8b968f;font-size:20px}.main{position:absolute;inset:0 0 0 308px;background:#e8eee9}.main:after{content:'';position:absolute;inset:76px 0 0;pointer-events:none;box-shadow:inset 0 10px 20px -22px #16271d;z-index:400}#map{position:absolute;inset:0}.topbar{position:absolute;z-index:500;top:0;left:0;right:0;height:76px;background:rgba(255,255,255,.95);border-bottom:1px solid #e8eeea;display:flex;align-items:center;padding:0 25px;backdrop-filter:blur(10px)}.crumb{font-size:12px;color:#87928b;display:flex;gap:12px;align-items:center}.crumb b{color:#34423a;font-weight:600}.slash{color:#c2cbc5}.top-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.save-state{display:flex;gap:7px;align-items:center;color:#829087;font-size:10px;margin-right:6px}.tool-btn{height:34px;width:36px;border:1px solid #e2e8e4;border-radius:7px;background:white;color:#536159;font-size:18px}.tool-btn:hover{background:#f5f8f6}.share-btn{height:34px;background:#3d795b;border:1px solid #3d795b;color:white;border-radius:7px;padding:0 12px;font-size:11px;font-weight:600}.share-btn:hover{background:#30694c}.share-btn span{font-size:15px;margin-right:5px}.map-controls{position:absolute;z-index:500;top:98px;left:25px;display:flex;gap:12px;align-items:center}.map-label{background:#fff;border:1px solid #e4eae6;border-radius:7px;padding:8px 10px;font-size:9px;font-weight:700;letter-spacing:1px;box-shadow:0 2px 10px #1b352012;display:flex;gap:7px;align-items:center;color:#66746b}.live-dot{width:6px;height:6px;background:#62a779;border-radius:50%}.layer-switcher{padding:4px;background:#fff;border:1px solid #e4eae6;border-radius:8px;display:flex;gap:2px;box-shadow:0 2px 10px #1b352012}.layer-switcher button{border:0;border-radius:5px;background:transparent;padding:6px 10px;color:#7d8982;font-size:10px}.layer-switcher button.active{color:#3c7355;background:#eaf2ec;font-weight:700}.zoom-controls{position:absolute;z-index:500;right:22px;top:100px;border:1px solid #e1e8e3;border-radius:8px;background:#fff;box-shadow:0 2px 10px #1b352012;display:flex;flex-direction:column;overflow:hidden}.zoom-controls button{width:38px;height:37px;border:0;background:#fff;color:#58655d;font-size:19px}.zoom-controls button:hover{background:#f2f6f3}.zoom-divider{height:1px;background:#edf0ee;margin:0 8px}.zoom-controls button:last-child{font-size:15px}.draw-hint{display:none;position:absolute;top:91px;left:50%;transform:translateX(-50%);z-index:600;background:#fff;border:1px solid #dce9df;border-radius:9px;box-shadow:0 6px 24px #263e301a;padding:10px 12px;align-items:center;gap:10px}.draw-hint.show{display:flex}.hint-pulse{width:9px;height:9px;background:#54a572;border-radius:50%;box-shadow:0 0 0 4px #e6f2e9}.draw-hint b{display:block;font-size:11px}.draw-hint small{display:block;font-size:9px;color:#86928b;margin-top:3px}.draw-hint #finishDraw{border:0;background:#3e7b5a;color:white;border-radius:6px;padding:7px 10px;font-size:10px;font-weight:600;margin-left:7px}.hint-close{border:0;background:transparent;color:#8b968f;font-size:18px}.profile-panel{position:absolute;z-index:500;bottom:22px;left:25px;width:min(500px,calc(100% - 60px));background:#fff;border:1px solid #e3eae5;border-radius:12px;box-shadow:0 8px 32px #213c2a1b;padding:16px 18px 12px;display:none}.profile-panel.open{display:block}.profile-head{display:flex;justify-content:space-between;align-items:flex-start}.profile-title{display:flex;gap:7px;align-items:center;font-size:12px}.profile-icon{color:#438260;font-size:18px}.elevation-badge{font-size:9px;color:#668372;background:#eef5ef;padding:4px 6px;border-radius:4px;margin-left:4px}.profile-sub{font-size:10px;color:#8a958e;margin:5px 0 0 25px}.close-profile{border:0;background:transparent;color:#97a19b;font-size:20px}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:16px 0 12px}.profile-stats div{padding-left:11px;border-left:1px solid #edf0ee}.profile-stats div:first-child{padding-left:0;border:0}.profile-stats small{display:block;font-size:8px;letter-spacing:.7px;color:#949e98;margin-bottom:4px}.profile-stats b{font:700 14px Manrope;color:#28372e}.chart-wrap{display:flex;height:75px;gap:9px;align-items:stretch}.chart-axis{display:flex;flex-direction:column;justify-content:space-between;color:#9ca69f;font-size:8px;padding:2px 0 12px}.chart{flex:1;height:75px;position:relative}.chart svg{width:100%;height:100%;overflow:visible}.profile-foot{display:flex;justify-content:space-between;color:#9aa49e;font-size:9px;margin-top:7px}.profile-foot span:first-child{display:flex;align-items:center;gap:5px}.profile-foot i{width:7px;height:7px;background:#55a574;border-radius:50%}.map-attribution{position:absolute;z-index:450;bottom:4px;right:5px;background:#ffffffbf;color:#506057;font-size:9px;padding:3px 6px;border-radius:4px}.toast{position:absolute;z-index:800;bottom:30px;right:25px;transform:translateY(12px);opacity:0;transition:.25s;background:#20352a;color:#fff;padding:10px 14px;border-radius:7px;font-size:11px;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.mobile-menu{display:none}@media(max-width:760px){.sidebar{width:285px;transform:translateX(-100%);transition:transform .25s;box-shadow:8px 0 24px #203a3018}.sidebar.mobile-open{transform:translateX(0)}.sidebar-toggle,.mobile-menu{display:block}.main{left:0}.topbar{height:62px;padding:0 13px}.topbar .crumb{font-size:11px;gap:7px}.top-actions{gap:6px}.save-state{display:none}.share-btn{font-size:0;padding:0;width:35px}.share-btn span{font-size:16px;margin:0}.tool-btn{width:33px;height:33px}.mobile-menu{margin-right:9px}.map-controls{top:76px;left:12px;gap:7px}.map-label{padding:7px}.layer-switcher button{padding:6px 8px}.zoom-controls{right:12px;top:76px}.draw-hint{top:127px;max-width:calc(100vw - 24px);padding:9px}.draw-hint small{max-width:180px;line-height:1.3}.profile-panel{left:12px;bottom:14px;width:calc(100% - 24px);padding:13px}.profile-stats small{font-size:7px;letter-spacing:.3px}.profile-stats b{font-size:12px}.map-attribution{font-size:8px}}





.street-basemap{filter:grayscale(.25) saturate(.68) brightness(1.02) contrast(1.07)}



.location-pin-wrap{background:transparent;border:0}.location-pin{display:block;width:18px;height:18px;background:#3478d4;border:3px solid #fff;border-radius:50%;box-shadow:0 1px 5px #172d4770,0 0 0 5px #3478d438}.tool-btn:disabled{opacity:.55;cursor:wait}

/* Full-screen map workspace */
html,body{overflow:hidden}
.main{inset:0;width:100vw;height:100vh;height:100dvh;background:#e8eee9}
.main:after{display:none}
#map{inset:0}
.floating-tools{position:absolute;z-index:700;top:14px;right:14px;display:flex;align-items:flex-start;gap:8px}
.control-cluster{background:#ffffffed;border:1px solid #e1e8e3;border-radius:11px;box-shadow:0 3px 14px #1b352019;backdrop-filter:blur(10px)}
.zoom-controls{position:static;display:flex;flex-direction:column;overflow:hidden;padding:3px}
.zoom-controls button{width:36px;height:36px;border-radius:7px;font-size:19px;line-height:1}
.zoom-controls i{height:1px;background:#edf0ee;margin:0 5px}
.layer-controls{display:flex;flex-direction:column;gap:3px;padding:4px}
.layer-controls button{width:58px;height:36px;border:0;border-radius:7px;background:transparent;color:#728078;display:flex;align-items:center;gap:6px;padding:0 7px;font-size:13px;text-align:left}
.layer-controls button span{width:16px;text-align:center;font-size:15px;color:#75847a}
.layer-controls button small{font-size:9px;font-weight:600;white-space:nowrap}
.layer-controls button:hover{background:#f2f6f3}
.layer-controls button.active{color:#356b4e;background:#e9f2ec}
.layer-controls button.active span{color:#3e7958}
.action-controls{display:grid;grid-template-columns:repeat(2,36px);gap:4px;padding:4px}
.action-controls button{height:36px;width:36px;border:0;border-radius:7px;background:transparent;color:#5d6b62;font-size:17px;display:grid;place-items:center}
.action-controls button:hover{background:#f0f5f1;color:#356d4d}
.action-controls button.drawing{background:#e5f1e8;color:#347851;box-shadow:inset 0 0 0 1px #cce1d1}
.action-controls button:disabled{opacity:.5;cursor:wait}
.routes-panel{--routes-edge:14px;--routes-face:#1d2922;--routes-ink:#e1eee5;--routes-muted:#b3c8bb;--routes-rim:#809788;--routes-hover:#2b3b31;--routes-active:#304d3c;--routes-accent:#9be2b5;position:absolute;z-index:680;top:var(--routes-edge);right:calc(var(--routes-edge) + 54px);left:auto;bottom:calc(var(--routes-bottom-panel,0px) + var(--routes-timeline-height,0px) + var(--routes-edge));width:min(320px,calc(100% - var(--routes-edge) - var(--routes-edge) - 54px));max-height:none;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:14px;background:var(--routes-face);color:var(--routes-ink);border:1px solid var(--routes-rim);border-radius:6px;box-shadow:0 3px 12px #10221930;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(24px);transition:transform .38s cubic-bezier(.2,.82,.25,1),opacity .25s ease,visibility .38s,bottom .62s cubic-bezier(.22,.78,.22,1)}
.routes-panel.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0)}
.main:has(.profile-panel.open) .routes-panel{--routes-bottom-panel:var(--profile-height,280px)}
.main:has(.wind-statistics.open) .routes-panel{--routes-bottom-panel:var(--wind-statistics-height,340px)}
.main.wind-mode .routes-panel{--routes-timeline-height:75px}
.main:has(.routes-panel.open) #map :is(.leaflet-bottom,.wind-rose-hud,.wind-center-crosshair){z-index:650}
.routes-panel-head{display:flex;flex:none;align-items:center;gap:7px;margin-bottom:10px;font-size:12px}
.routes-panel-head b{flex:1}
.routes-panel-head button{width:28px;height:28px;flex:none;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--routes-ink);font-size:17px}
.routes-panel-head button:hover,.routes-panel .route-menu:hover{background:var(--routes-hover);color:var(--routes-accent)}
.routes-panel button:focus-visible{outline:1px solid var(--routes-accent);outline-offset:1px}
.routes-panel .routes{display:grid;align-content:start;grid-auto-rows:max-content;flex:1;min-height:0;gap:7px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--routes-rim) transparent}
.routes-panel .routes:empty{display:none}
.routes-panel .route-card{background:transparent;border-color:#80978845;border-radius:4px;padding:10px}
.routes-panel .route-card:hover{background:var(--routes-hover);border-color:var(--routes-rim)}
.routes-panel .route-card.selected{background:var(--routes-active);border-color:var(--routes-accent)}
.routes-panel .route-meta,.routes-panel .route-menu{color:var(--routes-muted)}
.routes-panel .route-menu{border-radius:3px}
.routes-panel .empty-state{flex:1;min-height:0;padding:20px 0}
.routes-panel .empty-state b{color:var(--routes-ink)}
.routes-panel .empty-state span,.routes-panel .empty-icon{color:var(--routes-muted)}
.routes-panel .storage-note{flex:none;margin:10px 0 0;padding-top:10px;border-color:#80978845;color:var(--routes-muted);font-size:9px}
.profile-panel{position:absolute;z-index:600;left:50%;right:auto;bottom:0;width:min(940px,100%);max-height:min(310px,48dvh);overflow:auto;padding:10px 24px 14px;border:1px solid #e2e9e4;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 32px #213c2a20;background:#fffffff2;backdrop-filter:blur(14px);display:block;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,calc(100% + 18px));transition:transform .42s cubic-bezier(.2,.82,.25,1),opacity .25s ease,visibility .42s;}
.profile-panel.open{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
.sheet-actions{display:flex;align-items:center;gap:6px}
.sheet-actions button{width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#7c8981;font-size:19px}
.sheet-actions button:hover{background:#f0f4f1}
.map-attribution{z-index:740;bottom:4px;right:5px;box-shadow:0 1px 4px #fff9}
.draw-hint{top:17px;left:50%;max-width:calc(100vw - 220px);}
.toast{z-index:900}
button:focus-visible,[role=button]:focus-visible{outline:2px solid #438260;outline-offset:2px}
.floating-tools{top:14px;right:14px;display:flex;flex-direction:column;align-items:stretch;gap:2px;width:44px;padding:3px;border:1px solid #e1e8e3;border-radius:12px;background:#ffffffed;box-shadow:0 3px 14px #1b352019;backdrop-filter:blur(10px)}
.floating-tools .toolbar-button{position:relative;width:36px;height:36px;flex:none;border:0;border-radius:8px;background:transparent;color:#5d6b62;font-size:18px;line-height:1;display:grid;place-items:center}
.floating-tools .toolbar-button:hover,.floating-tools .toolbar-button[aria-expanded="true"]{background:#f0f5f1;color:#356d4d}
.floating-tools .toolbar-button.drawing{background:#e5f1e8;color:#347851;box-shadow:inset 0 0 0 1px #cce1d1}
.floating-tools .toolbar-button:disabled{opacity:.5;cursor:wait}
.toolbar-divider{height:1px;background:#edf0ee;margin:1px 5px}
.layer-picker{position:relative;width:36px;height:36px;flex:none}
.layer-popout{position:absolute;top:0;right:calc(100% + 8px);display:flex;gap:3px;padding:3px;border:1px solid #e1e8e3;border-radius:11px;background:#ffffffed;box-shadow:0 3px 14px #1b352019;backdrop-filter:blur(10px);opacity:0;visibility:hidden;pointer-events:none;transform:translateX(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.layer-popout.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0)}
.layer-popout button{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#65736a;font-size:17px;display:grid;place-items:center}
.layer-popout button:hover{background:#f2f6f3}
.layer-popout button.active{background:#e9f2ec;color:#356b4e}
.layer-popout svg,.floating-tools #activeLayerIcon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.satellite-icon{display:block;width:19px;height:19px;object-fit:contain}
.map-layer-image{display:block;width:19px;height:19px;object-fit:contain}
.compass-button svg{width:20px;height:20px;overflow:visible}
.floating-tools .draw-line-icon{width:18px;height:18px;fill:none;stroke:#211e50;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.floating-tools .road-draw-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.road-mode .hint-pulse{background:#269357}
.draw-hint.routing-busy .hint-pulse{animation:routing-pulse .85s ease-in-out infinite alternate}
.draw-hint #finishDraw:disabled{opacity:.5;cursor:wait}
@keyframes routing-pulse{to{box-shadow:0 0 0 7px #26935712;opacity:.5}}
@media(prefers-reduced-motion:reduce){.draw-hint.routing-busy .hint-pulse{animation:none}}
.floating-tools .saved-routes-icon{width:19px;height:19px;overflow:visible}
.saved-routes-icon .route-path{fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-dasharray:1.2 2.6}
.saved-routes-icon .route-pin{fill:currentColor}
.saved-routes-icon .route-pin-hole{fill:#fff}
@media(max-width:640px){.floating-tools{top:9px;right:9px;gap:2px;width:42px;padding:2px}.floating-tools .toolbar-button,.layer-picker,.layer-popout button{width:34px;height:34px}.layer-picker{height:34px}.layer-popout{right:calc(100% + 7px)}}
@media(max-width:380px){.floating-tools{top:7px;right:7px;width:40px}.floating-tools .toolbar-button,.layer-picker,.layer-popout button{width:32px;height:32px}.layer-picker{height:32px}}
@media(max-width:640px){
 .floating-tools{top:9px;right:9px;gap:5px}
 .zoom-controls{padding:2px}
 .zoom-controls button{width:34px;height:34px}
 .layer-controls{padding:3px;gap:2px}
 .layer-controls button{width:52px;height:34px;padding:0 5px;gap:4px}
 .layer-controls button span{width:14px;font-size:13px}
 .layer-controls button small{font-size:8px}
 .action-controls{grid-template-columns:repeat(2,34px);gap:3px;padding:3px}
 .action-controls button{width:34px;height:34px;font-size:16px}
 .routes-panel{--routes-edge:9px}
 .profile-panel{width:100%;max-height:min(350px,52dvh);padding:9px 14px 12px;border-radius:16px 16px 0 0}
 .profile-panel .profile-stats{margin:10px 0 8px}
 .profile-panel .profile-stats small{font-size:7px;letter-spacing:.25px}
 .profile-panel .profile-stats b{font-size:12px}
 .profile-panel .chart-wrap,.profile-panel .chart{height:58px}
 .profile-panel .profile-foot{font-size:8px}
 .draw-hint{top:130px;left:12px;right:12px;transform:none;max-width:none}
 .toast{bottom:75px;right:10px;max-width:calc(100vw - 20px)}
}
@media(max-width:380px){
 .routes-panel{--routes-edge:7px}
 .floating-tools{gap:4px;top:7px;right:7px}
 .layer-controls button{width:47px}
 .zoom-controls button,.action-controls button{width:32px;height:32px}
 .action-controls{grid-template-columns:repeat(2,32px)}
}
.profile-panel{left:0;right:0;width:100%;max-width:none;border-radius:0;border-left:0;border-right:0;transform:translateY(calc(100% + 12px));transition:transform .62s cubic-bezier(.22,.78,.22,1),opacity .4s ease,visibility .62s}
.profile-panel.open{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.routes-panel{transition:none}}
@media(max-width:640px){.profile-panel{left:0;right:0;width:100%;border-radius:0}}
.profile-panel .profile-stats{grid-template-columns:repeat(5,minmax(0,1fr));margin:13px 0 10px}
.profile-panel .chart-wrap{display:block;height:120px}
.profile-panel .elevation-chart{height:120px;width:100%;cursor:crosshair;touch-action:pan-y}
.elevation-chart svg{display:block;overflow:hidden;font-family:'DM Sans',sans-serif;font-size:9px;fill:#89958d}
.elevation-grid{stroke:#e4ece6;stroke-width:1;stroke-dasharray:3 5}
.elevation-trace,.elevation-end-arrow{fill:none;stroke:#39865a;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.elevation-start-flag{fill:#fff;stroke:#000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.start-flag-checks{fill:#000;stroke:none}
.start-flag-pole{stroke-width:2.4}
.elevation-start-flag .start-flag-pole{stroke:#e1eee5;stroke-width:1.2}
#elevationCrosshair{stroke:#5a7865;stroke-width:1;stroke-dasharray:3 3}
#elevationDot{fill:#39865a;stroke:#fff;stroke-width:2}
.elevation-tooltip{position:absolute;top:0;padding:5px 8px;border:1px solid #dfe9e2;border-radius:5px;background:#fffffff5;box-shadow:0 2px 9px #20352a12;color:#2e4d3a;font-size:10px;font-weight:600;pointer-events:none;white-space:nowrap;z-index:2}
.elevation-message{height:100%;display:grid;place-content:center;text-align:center;padding:12px;color:#7d8c82;font-size:12px;line-height:1.5;cursor:default}
.elevation-message.loading:before{content:'';display:block;justify-self:center;width:15px;height:15px;margin-bottom:9px;border:2px solid #e0eae3;border-top-color:#59966d;border-radius:50%;animation:elevation-loading .8s linear infinite}
@keyframes elevation-loading{to{transform:rotate(360deg)}}
.profile-panel .profile-foot{gap:10px;align-items:center;flex-wrap:wrap;line-height:1.6}
.profile-foot a{color:#668472;text-decoration:none;margin-left:8px}
.profile-foot a:hover{text-decoration:underline}
.profile-panel .sheet-actions button{flex:none}
@media(max-width:640px){.profile-panel .chart-wrap,.profile-panel .elevation-chart{height:110px}.profile-panel .profile-stats div{padding-left:7px}.profile-panel .profile-stats div:first-child{padding-left:0}.profile-panel .profile-foot{gap:2px}.profile-panel .profile-stats b{font-size:11px}.profile-panel .profile-head>div:first-child{min-width:0}.profile-panel .profile-title{gap:4px;font-size:11px}.profile-panel .elevation-badge{font-size:8px;margin-left:0}.profile-panel .profile-sub{margin-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100vw - 140px)}}
@media(prefers-reduced-motion:reduce){.elevation-message.loading:before{animation:none}}
.map-attribution,#map .leaflet-bottom{transition:bottom .62s cubic-bezier(.22,.78,.22,1)}
.main:has(.profile-panel.open) .map-attribution{bottom:calc(var(--profile-height,280px) + 4px)}
.main:has(.profile-panel.open) #map .leaflet-bottom{bottom:var(--profile-height,280px)}
.floating-tools .wind-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.floating-tools #windToggle[aria-pressed="true"]{background:#e5f1e8;color:#347851;box-shadow:inset 0 0 0 1px #cce1d1}
#windToggle.loading:after{content:'';position:absolute;inset:3px;border:1px solid transparent;border-top-color:#609d7b;border-radius:50%;animation:elevation-loading 1s linear infinite}
.wind-canvas{position:absolute;inset:0;z-index:350;pointer-events:none;contain:strict;opacity:0;transition:opacity .38s ease}
.map-readability-layer{pointer-events:none!important;opacity:0;transition:opacity .38s ease}
.map-readability-tile{width:100%;height:100%;background:rgba(255,255,255,.1);pointer-events:none}
#map.wind-mode .leaflet-tile-pane .leaflet-tile{filter:grayscale(1) sepia(.18) hue-rotate(75deg) saturate(.65) contrast(1.06)}
.wind-panel{position:absolute;z-index:710;right:70px;top:14px;width:245px;padding:13px 15px 10px;border:1px solid #e1e8e3;border-radius:12px;background:#fffffff2;box-shadow:0 4px 20px #1b352014;backdrop-filter:blur(10px);color:#4a6255}
.wind-panel[hidden]{display:none}
.wind-panel{display:none!important}
.floating-tools .toolbar-button[hidden]{display:none}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.draw-endpoint,.draw-point-flash{background:none;border:0;pointer-events:none!important}
.draw-hint{user-select:none}
.route-context-menu{position:absolute;z-index:950;min-width:106px;padding:3px;border:1px solid #809788;border-radius:5px;background:#1d2922;box-shadow:0 4px 18px #102a2130;user-select:none}
.route-context-menu[hidden]{display:none}
.route-context-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:0;border-radius:3px;background:transparent;color:#e1eee5;font-size:12px;line-height:1.2;text-align:left}
.route-context-menu button:hover{background:#2b3b31;color:#eff8f2}.route-context-menu button:focus-visible{outline:1px solid #9be2b5;outline-offset:-1px;background:#2b3b31}.route-context-menu svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.route-active-point{background:none;border:0;pointer-events:none!important}
.route-active-point-core,.route-active-point-halo{position:absolute;left:50%;top:50%;border-radius:50%;pointer-events:none}
.route-active-point-core{width:9px;height:9px;margin:-4.5px;border:2px solid #fff;background:#438260;box-shadow:0 0 0 .75px #294e3a99}
.route-active-point-halo{width:24px;height:24px;margin:-12px;border:1px solid #438260;background:#4382600a;animation:route-active-point-pulse 2.1s ease-out infinite}
.route-start-flag,.route-end-arrow{background:none;border:0;pointer-events:none!important}
.route-start-flag svg{display:block;width:28px;height:34px;overflow:visible;fill:#fff;stroke:#000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.route-end-arrow svg{display:block;width:28px;height:28px;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round}
@keyframes route-active-point-pulse{0%{transform:scale(.65);opacity:.34}85%,100%{transform:scale(1.1);opacity:0}}
@media(prefers-reduced-motion:reduce){.route-active-point-halo{animation:none;transform:scale(.8);opacity:.2}}
.toast.has-action{display:flex;align-items:center;gap:14px}
.toast.has-action.show{pointer-events:auto}
.toast.has-action button{padding:3px 0;border:0;border-bottom:1px solid #ffffff80;background:none;color:#e4f7e9;font-size:11px;font-weight:600}
.toast.has-action button:hover{color:#fff;border-bottom-color:#fff}
.draw-point-core,.draw-point-halo,.draw-point-impulse{position:absolute;left:50%;top:50%;border-radius:50%;pointer-events:none}
.draw-point-core{width:8px;height:8px;margin:-4px;background:#89918d;border:2px solid #fff;box-shadow:0 0 0 1px #36554366;transition:width .18s,height .18s,margin .18s,background .18s}
.draw-point-halo{width:32px;height:32px;margin:-16px;border:1.5px solid #438260;background:#43826012;opacity:0}
.draw-endpoint.is-endpoint .draw-point-core{width:15px;height:15px;margin:-7.5px;background:#438260;border-width:2.5px;box-shadow:0 0 0 1px #284c38}
.draw-endpoint.is-endpoint .draw-point-halo{animation:draw-endpoint-pulse 1.7s ease-out infinite}
.draw-endpoint.is-start .draw-point-halo{animation-delay:-.55s}
.draw-cursor-point.is-endpoint .draw-point-halo--echo{animation-delay:-.85s}
.draw-temporary-line{stroke:#080808;stroke-width:1.6;stroke-dasharray:7 7;filter:drop-shadow(0 0 1px #fff600) drop-shadow(0 0 3px #ffe600) drop-shadow(0 0 5px #ffe600b3);animation:draw-dash-flow .85s linear infinite}
@keyframes draw-dash-flow{from{stroke-dashoffset:0}to{stroke-dashoffset:-28}}
.draw-point-impulse{width:18px;height:18px;margin:-9px;border:2px solid #438260;background:#4382601a;animation:draw-point-placed .34s ease-out both}
.draw-point-flash--complete .draw-point-impulse{border-width:3px;background:#43826033;animation:draw-point-complete .52s cubic-bezier(.2,.7,.3,1) both}
@keyframes draw-endpoint-pulse{0%{transform:scale(.65);opacity:.5}80%,100%{transform:scale(1.16);opacity:0}}
@keyframes draw-point-placed{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.9);opacity:0}}
@keyframes draw-point-complete{0%{transform:scale(.7);opacity:1}25%{opacity:1}100%{transform:scale(2.5);opacity:0}}
@media(prefers-reduced-motion:reduce){.draw-point-core{transition:none}.draw-endpoint.is-endpoint .draw-point-halo{animation:none;opacity:.22;transform:scale(.8)}.draw-point-impulse,.draw-point-flash--complete .draw-point-impulse{animation:none;opacity:.7}}
@media(prefers-reduced-motion:reduce){.draw-temporary-line{animation:none}.draw-cursor-point .draw-point-halo--echo{display:none}}
.wind-heading{display:flex;align-items:center;gap:8px;font-size:12px}
.wind-heading>span{font-size:9px;color:#829087;flex:1}
.wind-heading button{border:0;background:transparent;color:#839188;font-size:19px;line-height:1;padding:0 2px}
.wind-reading{display:flex;align-items:center;gap:17px;margin-top:12px;min-height:30px}
.wind-reading:empty{display:none}
.wind-reading strong{font-size:27px;line-height:1;font-weight:600;letter-spacing:-1px;white-space:nowrap;color:#2c6854}
.wind-reading strong small{font-size:10px;font-weight:400;letter-spacing:0;margin-left:5px;color:#798a80}
.wind-direction{position:relative;display:block;padding-left:20px;font-size:12px}
.wind-direction svg{position:absolute;left:0;top:0;width:15px;height:15px;fill:#3d8c72}
.wind-direction small{display:block;font-size:9px;color:#829087;white-space:nowrap;margin-top:4px}
#windStatus{font-size:10px;line-height:1.5;color:#7f8c84;margin:10px 0}
.wind-scale{display:flex;justify-content:space-between;flex-wrap:wrap;font-size:8px;color:#829087;gap:4px 0}
.wind-scale i{width:100%;height:3px;border-radius:3px;background:linear-gradient(90deg,#2e9f5c 0%,#2e9f5c 5%,#e8c125 35%,#f47e1e 65%,#f00 95%,#000 100%)}
.wind-scale{position:relative;height:32px;display:block}
.wind-scale i{display:block}.wind-scale span{position:absolute;top:7px}
.wind-scale span:nth-of-type(1){left:0;top:21px;color:#a0aaa4}.wind-scale span:nth-of-type(2){left:5%;transform:translateX(-50%)}.wind-scale span:nth-of-type(3){left:35%;transform:translateX(-50%)}.wind-scale span:nth-of-type(4){left:65%;transform:translateX(-50%)}.wind-scale span:nth-of-type(5){left:95%;transform:translateX(-50%)}.wind-scale span:nth-of-type(6){right:0;top:21px;color:#a0aaa4}
.wind-scale-head{display:flex;align-items:center;justify-content:space-between;margin:10px 0 6px;font-size:9px;color:#829087}
.wind-unit-switch{display:flex;gap:2px;background:#f0f4f1;padding:2px;border-radius:5px}
.wind-unit-switch button{border:0;background:transparent;color:#829087;font-size:9px;padding:3px 6px;border-radius:3px}
.wind-unit-switch button[aria-pressed="true"]{background:#fff;color:#356d4d;box-shadow:0 1px 3px #183e2e15}
.wind-point-info{font-size:9px;line-height:1.5;color:#7f8c84;margin:-3px 0 10px;font-variant-numeric:tabular-nums}
#map.wind-picking,#map.wind-picking .leaflet-interactive{cursor:crosshair!important}
.wind-rose-hud{--rose-drag-x:0px;--rose-drag-y:0px;position:absolute;z-index:800;left:16px;bottom:18px;width:292px;height:292px;transform:translate(var(--rose-drag-x),var(--rose-drag-y));transition:transform .72s cubic-bezier(.2,.82,.28,1.08);pointer-events:none;overflow:visible;touch-action:none}
.wind-rose-hud[hidden]{display:none}
.wind-rose-hud.dragging{transition:none;cursor:grabbing}
.wind-rose{position:absolute;inset:0;display:block;width:292px;height:292px;--wind-rose-color:#2e9f5c;color:#40554a;font-family:inherit;user-select:none;pointer-events:none}
.wind-rose-face{position:absolute;left:50%;top:50%;display:block;width:196px;height:196px;overflow:visible;transform:translate(-50%,-50%);filter:drop-shadow(0 4px 9px #10201855);pointer-events:auto;cursor:grab;touch-action:none}
.wind-rose-hud.dragging .wind-rose-face{cursor:grabbing}
.wind-rose-glass{fill:#1d2922;stroke:#809788;stroke-width:.8}
.wind-rose-dial,.wind-rose-needle{transform-box:view-box;transform-origin:50% 50%}
.wind-rose-rim{fill:none;stroke:#d0e1d6;stroke-width:.75}
.wind-rose-ring{fill:none;stroke:#62776a;stroke-width:.48}
.wind-rose-tick{fill:none;stroke:#9eb4a5;stroke-width:.6}.wind-rose-tick.major{stroke:#e1eee5;stroke-width:.9}
.wind-rose-degrees text{fill:#e1eee5;font-size:7px;text-anchor:middle;dominant-baseline:central;font-variant-numeric:tabular-nums}
.wind-rose-cardinals text{fill:#c3d8ca;text-anchor:middle;dominant-baseline:central;font-size:8px;font-weight:500;letter-spacing:.3px}
.wind-rose-cardinals .cardinal{font-size:13px;font-weight:650;fill:#eff8f2}
.wind-rose-cardinals .cardinal:first-child{fill:#9be2b5}
.wind-rose-needle{transition:transform 1.15s cubic-bezier(.2,.8,.2,1),opacity .3s;filter:drop-shadow(1px 2px 1px #24372c30)}
.wind-rose-arrow{fill:var(--wind-needle-color,var(--wind-rose-color));stroke:#718a79;stroke-width:.35;stroke-linejoin:round}
.wind-rose-arrow-light{fill:#ffffff22}
.wind-rose-tail{fill:#050806;stroke:#788c7e;stroke-width:.45}
.wind-rose-hub{fill:#0d1410;stroke:#53675a;stroke-width:.8}.wind-rose-center{fill:#acc2b1}
.wind-rose-loader{opacity:0;transition:opacity .18s ease;pointer-events:none}
.wind-rose-loader-backplate{fill:#1d2922;stroke:#809788;stroke-width:.8}
.wind-rose-loader-track{fill:none;stroke:#62776a;stroke-width:1;opacity:.45}
.wind-rose-loader-arc{fill:none;stroke:#9be2b5;stroke-width:1.7;stroke-linecap:round;stroke-dasharray:47 35;transform-origin:112px 112px;animation:wind-rose-loading 1s linear infinite;animation-play-state:paused}
.wind-rose-hud.is-loading .wind-rose-loader{opacity:1}
.wind-rose-hud.is-loading .wind-rose-loader-arc{animation-play-state:running}
.wind-rose-hud.is-loading .wind-rose-center{opacity:0}
@keyframes wind-rose-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.wind-rose-loader{transition:none}.wind-rose-loader-arc{animation:none}}
.wind-rose-flow{fill:none;stroke:var(--wind-rose-color);stroke-width:2;stroke-linecap:round;stroke-dasharray:2 12;opacity:.45;animation:wind-rose-flow 1.8s linear infinite}
@keyframes wind-rose-flow{to{stroke-dashoffset:-28}}
.wind-rose-reading-orbit{position:absolute;left:50%;top:50%;width:448px;height:448px;overflow:visible;transform:translate(-50%,-50%);pointer-events:none}
.wind-rose-scale-orbit{transform-box:view-box;transform-origin:224px 224px;transition:transform 1.15s cubic-bezier(.2,.8,.2,1)}
.wind-rose-scale-bar{fill:none;stroke:url(#wind-rose-scale-gradient);stroke-width:3.2;stroke-linecap:round;filter:drop-shadow(0 1px 2px #10191355)}
.wind-rose-scale-tick{fill:none;stroke:#000;stroke-width:.38;stroke-linecap:round;filter:drop-shadow(0 0 1px #fff)}.wind-rose-scale-tick.major{stroke:#000;stroke-width:.62}
.wind-rose-scale-label{fill:#000;font-size:8.5px;font-weight:500;letter-spacing:-.15px;dominant-baseline:central;font-variant-numeric:tabular-nums;paint-order:stroke fill;stroke:#fff;stroke-width:2.5;stroke-linejoin:round}
.wind-rose-scale-indicator{fill:var(--wind-rose-color);stroke:#fff;stroke-width:.8}
.wind-rose[data-state="loading"] .wind-rose-scale-indicator,.wind-rose[data-state="pending"] .wind-rose-scale-indicator{display:none}
.wind-rose-speed-orbit{transform-box:view-box;transform-origin:224px 224px;transition:transform 1.15s cubic-bezier(.2,.8,.2,1)}
.wind-rose-speed-text{font-family:inherit;font-variant-numeric:tabular-nums;fill:#000;paint-order:stroke fill;stroke:var(--wind-rose-color);stroke-width:1.5px;stroke-opacity:.95;stroke-linejoin:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--wind-rose-color) 58%,transparent)) drop-shadow(0 0 9px color-mix(in srgb,var(--wind-rose-color) 32%,transparent));pointer-events:visiblePainted;cursor:pointer}
.wind-rose-current{font-size:17px;font-weight:700;fill:#000}
.wind-rose-separator{font-size:10px;font-weight:500;fill:#000}
.wind-rose-gust-value{font-size:11px;font-weight:600;fill:#000}
.wind-rose-unit{font-size:8px;font-weight:500;fill:#000}
.wind-rose-unit:focus{outline:none}
.wind-rose[data-state="loading"] .wind-rose-needle{opacity:0}.wind-rose.is-calm .wind-rose-needle{opacity:.25}.wind-rose.is-calm .wind-rose-flow{animation:none}
@media(prefers-reduced-motion:reduce){.wind-rose-needle,.wind-rose-speed-orbit,.wind-rose-scale-orbit,.wind-rose-scale-label{transition:none!important}.wind-rose-flow{animation:none}}
.wind-center-crosshair{position:absolute;z-index:790;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:none;color:#111}
#map.wind-mode .wind-center-crosshair{pointer-events:auto;cursor:pointer}
#map.wind-mode .wind-center-crosshair[aria-pressed="true"]{color:#28794b}
.wind-center-crosshair[hidden]{display:none}
.wind-center-crosshair svg{width:40px;height:40px;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round}
.wind-center-crosshair .crosshair-outline{stroke:#fff;stroke-width:2}
.wind-center-crosshair .crosshair-line,.wind-center-crosshair .crosshair-ring{stroke:currentColor;stroke-width:.78}
.wind-center-crosshair .crosshair-center{fill:currentColor;stroke:#fff;stroke-width:.5}
.wind-center-crosshair .crosshair-center-cut{display:none}
.wind-source{display:flex;align-items:center;gap:8px;font-size:8px;color:#89958e;margin-top:10px}
.wind-source a{color:#708c7d;text-decoration:none}.wind-source a:hover{text-decoration:underline}
.wind-source button{margin-left:auto;border:0;background:transparent;color:#708c7d;font-size:16px;line-height:1}
@media(max-width:640px){.wind-panel{top:9px;right:60px;width:min(245px,calc(100vw - 75px));padding:11px 12px}.wind-reading{gap:12px}.wind-reading strong{font-size:24px}}
@media(max-width:640px){.wind-rose-hud{left:8px;bottom:12px;width:260px;height:260px}.wind-rose{width:260px;height:260px}.wind-rose-reading-orbit{width:420px;height:420px}}
@media(prefers-reduced-motion:reduce){#windToggle.loading:after{animation:none}.wind-rose-hud{transition:none}}

/* Wind mode fades its map tint, tile treatment and HUD together. */
.main.wind-mode .map-readability-layer{opacity:1}
#map.wind-mode .wind-canvas{opacity:.9}
#map .leaflet-tile-pane .leaflet-tile{transition:filter .45s ease}
.wind-rose-hud{--rose-enter-y:44px;--rose-profile-shift:0px;translate:0 var(--rose-profile-shift);opacity:0;visibility:hidden;transform:translate(var(--rose-drag-x),calc(var(--rose-drag-y) + var(--rose-enter-y)));transition:opacity .58s ease,visibility 0s linear .72s,transform .72s cubic-bezier(.2,.82,.28,1.08),translate .72s cubic-bezier(.2,.82,.28,1.08)}
#map.wind-mode .wind-rose-hud{--rose-enter-y:0px;opacity:1;visibility:visible;transition:opacity .58s ease,visibility 0s,transform .72s cubic-bezier(.2,.82,.28,1.08),translate .72s cubic-bezier(.2,.82,.28,1.08)}
.main:has(.profile-panel.open) #map.wind-mode .wind-rose-hud{--rose-profile-shift:calc(328px - 100vh)}
@media(max-width:640px){.main:has(.profile-panel.open) #map.wind-mode .wind-rose-hud{--rose-profile-shift:calc(284px - 100vh)}}
.wind-center-crosshair{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
#map.wind-mode .wind-center-crosshair{opacity:1;visibility:visible;transition:opacity .3s ease,visibility 0s}
@media(prefers-reduced-motion:reduce){.wind-canvas,.map-readability-layer,.wind-rose-hud,.wind-center-crosshair,#map .leaflet-tile-pane .leaflet-tile{transition:none!important}}

/* Persistent map controls stay grouped below a separate, expandable tools menu. */
.floating-tools{top:14px;right:14px;width:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;display:flex;flex-direction:column;align-items:center;gap:8px}
.floating-tools .toolbar-menu-button{width:42px;height:42px;border:1px solid #e1e8e3;border-radius:12px;background:#fff;box-shadow:0 3px 12px #1b35202a;backdrop-filter:blur(10px);transition:background .2s ease,color .2s ease,transform .32s cubic-bezier(.2,.82,.28,1.08)}
.floating-tools .toolbar-menu-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;transition:transform .32s cubic-bezier(.2,.82,.28,1.08)}
.toolbar-core,.toolbar-extra{width:44px;display:flex;flex-direction:column;align-items:center;border:1px solid #e1e8e3;border-radius:12px;background:#fff;box-shadow:0 3px 12px #1b35202a;backdrop-filter:blur(10px)}
.toolbar-core{padding:3px;gap:2px}
.toolbar-core .toolbar-divider{width:auto;align-self:stretch}
.toolbar-extra{gap:2px;padding:0 3px;margin-top:-8px;max-height:0;opacity:0;visibility:hidden;overflow:hidden;pointer-events:none;border-color:transparent;box-shadow:none;transform:translateY(-10px);transition:max-height .48s cubic-bezier(.2,.82,.28,1.08),opacity .32s ease,transform .48s cubic-bezier(.2,.82,.28,1.08),padding .35s ease,margin .35s ease,border-color .25s ease,visibility 0s linear .48s,box-shadow .25s ease}
.toolbar-extra.open{max-height:400px;padding:3px;margin-top:0;opacity:1;visibility:visible;pointer-events:auto;border-color:#e1e8e3;box-shadow:0 3px 12px #1b35202a;transform:translateY(0);transition:max-height .52s cubic-bezier(.2,.82,.28,1.08),opacity .32s ease,transform .48s cubic-bezier(.2,.82,.28,1.08),padding .35s ease,margin .35s ease,border-color .25s ease,visibility 0s,box-shadow .25s ease}
.toolbar-extra{order:2;border-radius:0 0 6px 6px}
.toolbar-extra.open{margin-top:-8px;border-radius:0 0 6px 6px}
.toolbar-core{order:3;border-radius:6px}
.floating-tools .toolbar-menu-button{border-radius:6px}
.floating-tools .toolbar-menu-button[aria-expanded="true"]{border-radius:6px 6px 0 0}
.floating-tools>.toolbar-button:not(.toolbar-menu-button),.toolbar-core .toolbar-button,.toolbar-extra .toolbar-button,.toolbar-extra .layer-picker .toolbar-button,.layer-popout button{border-radius:4px}
.layer-popout{border-radius:6px}
.toolbar-extra.open:has(.layer-popout.open){overflow:visible}
/* Shared dark palette for the map controls, timeline and wind compass. */
.floating-tools{--tool-face:#1d2922;--tool-ink:#e1eee5;--tool-muted:#a8bfb0;--tool-rim:#809788;--tool-hover:#2b3b31;--tool-active:#304d3c;--tool-accent:#9be2b5;--tool-shadow:0 3px 12px #10221930}
.floating-tools .toolbar-menu-button,.floating-tools .toolbar-core,.floating-tools .toolbar-extra,.floating-tools .layer-popout{background:var(--tool-face);color:var(--tool-ink);border-color:var(--tool-rim)}
.floating-tools .toolbar-menu-button,.floating-tools .toolbar-core,.floating-tools .layer-popout,.floating-tools .toolbar-extra.open{box-shadow:var(--tool-shadow)}
.floating-tools .toolbar-extra:not(.open){border-color:transparent}
.floating-tools .toolbar-button,.floating-tools .layer-popout button{--tool-button-face:transparent;background:var(--tool-button-face);color:var(--tool-ink);transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.floating-tools .toolbar-menu-button{--tool-button-face:var(--tool-face);transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .32s cubic-bezier(.2,.82,.28,1.08)}
.floating-tools .toolbar-button:hover,.floating-tools .layer-popout button:hover{--tool-button-face:var(--tool-hover);background:var(--tool-button-face);color:#eff8f2}
.floating-tools .toolbar-button[aria-expanded="true"],.floating-tools .toolbar-button[aria-pressed="true"],.floating-tools .toolbar-button.drawing,.floating-tools #windToggle[aria-pressed="true"],.floating-tools .layer-popout button.active{--tool-button-face:var(--tool-active);background:var(--tool-button-face);color:var(--tool-accent);box-shadow:inset 0 0 0 1px #6b9d7d80}
.floating-tools .toolbar-menu-button[aria-expanded="true"]{--tool-button-face:var(--tool-face);box-shadow:var(--tool-shadow)}
.floating-tools .toolbar-button:focus-visible,.floating-tools .layer-popout button:focus-visible{outline:1px solid var(--tool-accent);outline-offset:-2px}
.floating-tools .toolbar-divider{background:#80978845}
.floating-tools .draw-line-icon{stroke:currentColor}
.floating-tools .map-layer-image,.floating-tools .satellite-icon{filter:brightness(0) saturate(100%) invert(94%) sepia(7%) saturate(327%) hue-rotate(87deg) brightness(98%) contrast(94%)}
.floating-tools .layer-popout button.active img{filter:brightness(0) saturate(100%) invert(85%) sepia(22%) saturate(522%) hue-rotate(88deg) brightness(99%) contrast(89%)}
.floating-tools .saved-routes-icon .route-pin-hole{fill:var(--tool-face)}
.floating-tools .toolbar-button:hover .route-pin-hole{fill:var(--tool-hover)}
.floating-tools .toolbar-button[aria-expanded="true"] .route-pin-hole{fill:var(--tool-active)}
.floating-tools #compass svg>circle,.floating-tools #compass svg>path{stroke:var(--tool-muted)}
.floating-tools #compassNeedle path:first-child{fill:var(--tool-ink)}
.floating-tools #compassNeedle path:nth-child(2){fill:#7f9889}
.floating-tools #compassNeedle circle{fill:var(--tool-face);stroke:var(--tool-muted);stroke-width:.5}
.floating-tools #windToggle.loading:after{border-top-color:var(--tool-accent)}
.floating-tools .info-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.toolbar-extra>.toolbar-divider{width:24px;flex-shrink:0}
.route-cluster-marker{border:0;background:transparent;display:grid;place-items:center;cursor:pointer}
.route-cluster-face{width:56px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:50%;border:2.5px solid var(--cluster-color,#89918d);background:#1d2922;color:#e1eee5;box-shadow:0 5px 14px #0d19164d,0 1px 3px #0d19164a,inset 0 0 0 3px #1d2922;transition:border-color .4s ease,box-shadow .2s ease,transform .22s cubic-bezier(.2,.82,.28,1.08);animation:route-cluster-enter .3s cubic-bezier(.2,.82,.28,1.08)}
.route-cluster-count{color:var(--cluster-color,#89918d);font:600 18px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.3px;transition:color .4s ease}
.route-cluster-distance{color:#c3d8ca;font:500 9px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.route-cluster-marker:hover .route-cluster-face{transform:scale(1.08);box-shadow:0 7px 19px #0d19165c,0 2px 5px #0d191633,inset 0 0 0 3px #1d2922}
.route-cluster-marker:active .route-cluster-face{transform:scale(.96)}
.route-cluster-marker:focus-visible{outline:none}
.route-cluster-marker:focus-visible .route-cluster-face{outline:2px solid #9be2b5;outline-offset:4px}
.leaflet-tooltip.route-cluster-tooltip{width:340px;max-width:calc(100vw - 32px);padding:8px 10px;border:1px solid #809788;border-radius:5px;background:#1d2922;color:#e1eee5;box-shadow:0 4px 14px #0d19164d;font:11px/1.6 'DM Sans',sans-serif;white-space:normal;overflow-wrap:anywhere;transition:opacity .2s cubic-bezier(.22,.61,.36,1)}
.leaflet-tooltip-top.route-cluster-tooltip:before{border-top-color:#809788}
@media(prefers-reduced-motion:reduce){.leaflet-tooltip.route-cluster-tooltip{transition:none}}
@keyframes route-cluster-enter{from{opacity:0;scale:.8}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.route-cluster-face{animation:none;transition:none}}
.info-dialog{--info-face:#1d2922;--info-ink:#e1eee5;--info-muted:#b3c8bb;--info-accent:#9be2b5;width:min(620px,calc(100vw - 32px));max-height:min(740px,calc(100dvh - 48px));padding:0;border:1px solid #809788;border-radius:8px;background:var(--info-face);color:var(--info-ink);box-shadow:0 16px 70px #10221955;overflow:hidden;opacity:0;transform:translateY(12px) scale(.985);transition:opacity .22s ease,transform .3s cubic-bezier(.2,.82,.25,1),display .3s allow-discrete,overlay .3s allow-discrete}
.info-dialog[open]{display:flex;flex-direction:column;opacity:1;transform:translateY(0) scale(1)}
.info-dialog::backdrop{background:#0d19165c;backdrop-filter:blur(4px);opacity:0;transition:opacity .25s ease,display .3s allow-discrete,overlay .3s allow-discrete}
.info-dialog[open]::backdrop{opacity:1}
@starting-style{.info-dialog[open]{opacity:0;transform:translateY(12px) scale(.985)}.info-dialog[open]::backdrop{opacity:0}}
.info-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:24px 26px 20px;border-bottom:1px solid #80978845}
.info-eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:600;color:var(--info-accent)}
.info-dialog h1{margin:5px 0 0;font-size:23px;line-height:1.25;font-weight:500;letter-spacing:-.5px}
.info-dialog-head button{display:grid;place-items:center;align-self:flex-start;width:32px;height:32px;border:0;border-radius:4px;background:transparent;color:var(--info-muted);font-size:25px;line-height:1;transition:background .2s,color .2s}
.info-dialog-head button:hover{background:#2b3b31;color:#eff8f2}
.info-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 26px 22px;scrollbar-width:thin;scrollbar-color:#62776a transparent}
.info-dialog-body>p{font-size:12px;line-height:1.6;color:var(--info-muted);margin:18px 0 26px}
.info-dialog h2{margin:24px 0 6px;color:var(--info-accent);font-size:10px;font-weight:600;letter-spacing:1.1px;text-transform:uppercase}
.info-dialog dl{margin:0}
.info-dialog dl>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:16px;padding:13px 0;border-bottom:1px solid #80978826}
.info-dialog dl>div:last-child{border-bottom:0}
.info-dialog dt{font-size:12px;line-height:1.65;font-weight:500}
.info-dialog dd{margin:0;font-size:11px;line-height:1.75;color:var(--info-muted);overflow-wrap:anywhere}
.info-dialog a{color:var(--info-ink);text-decoration-color:#80978880;text-underline-offset:3px}
.info-dialog a:hover{color:var(--info-accent);text-decoration-color:currentColor}
.info-dialog :focus-visible{outline:1px solid var(--info-accent);outline-offset:3px}
.profile-panel{--profile-face:#1d2922;--profile-ink:#e1eee5;--profile-muted:#b3c8bb;--profile-rim:#809788;background:var(--profile-face);color:var(--profile-ink);border-color:var(--profile-rim);box-shadow:0 -8px 32px #10221955}
.profile-panel .profile-title,.profile-panel .profile-stats b{color:var(--profile-ink)}
.profile-panel .profile-sub,.profile-panel .profile-stats small,.profile-panel .profile-foot{color:var(--profile-muted)}
.profile-panel .profile-stats div{border-color:#80978845}
.profile-panel .elevation-badge{color:#a9d6b7;background:#2b3b31}
.profile-panel .close-profile,.profile-panel .sheet-actions button{color:var(--profile-muted)}
.profile-panel .sheet-actions button:hover{background:#2b3b31;color:#eff8f2}
.profile-panel .profile-foot a{color:#9be2b5}
.profile-panel .profile-foot a:hover{color:#c2f0d0}
.profile-panel .elevation-chart svg{fill:#a8b9ac}
.profile-panel .elevation-grid{stroke:#80978845}
.profile-panel #elevationCrosshair{stroke:#9be2b5}
.profile-panel #elevationDot{stroke:var(--profile-face)}
.profile-panel .elevation-tooltip{color:var(--profile-ink);background:#2b3b31;border-color:var(--profile-rim);box-shadow:0 3px 12px #0d191655}
.profile-panel .elevation-message{color:var(--profile-muted)}
.profile-panel .elevation-message.loading:before{border-color:#80978870;border-top-color:#9be2b5}
@media(max-width:520px){.info-dialog-head{padding:20px}.info-dialog-body{padding:0 20px 20px}.info-dialog dl>div{grid-template-columns:1fr;gap:3px}.info-dialog h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){.info-dialog,.info-dialog::backdrop{transition:none}}
@media(max-width:640px){.floating-tools{top:9px;right:9px;gap:8px}}
@media(max-width:380px){.floating-tools{top:7px;right:7px;gap:7px}}
@media(prefers-reduced-motion:reduce){.toolbar-extra,.toolbar-extra.open,.floating-tools .toolbar-menu-button,.floating-tools .toolbar-menu-button svg{transition:none!important}}
.map-scale-control{display:grid;gap:0;width:max-content;margin:0 24px 13px 0!important;padding:2px 0;border:0;background:transparent;color:#111;font:500 10px/1.1 'DM Sans',sans-serif}
.map-scale-control,.map-scale-control *{pointer-events:none}
.map-scale-row{display:flex;flex-direction:column;align-items:flex-start;gap:4.5px}
.map-scale-labels{position:relative;display:block;height:12px;white-space:nowrap;text-shadow:-1px 0 #fff,0 1px #fff,1px 0 #fff,0 -1px #fff,0 0 3px #fff;transition:width 220ms cubic-bezier(.22,.61,.36,1)}
.map-scale-labels span{position:absolute;top:0}
.map-scale-labels .scale-start{left:0;transform:translateX(-50%)}
.map-scale-labels .scale-unit{left:50%;transform:translateX(-50%)}
.map-scale-labels .scale-end{left:100%;transform:translateX(-50%)}
.map-scale-bar{position:relative;height:3px;border:0;border-bottom:1px solid #111;background:linear-gradient(to right,#111 0 25%,#fff 25% 50%,#111 50% 75%,#fff 75% 100%);transition:width 220ms cubic-bezier(.22,.61,.36,1)}
.map-scale-ticks{position:absolute;top:-6px;right:0;bottom:0;left:0;display:flex;justify-content:space-between;align-items:flex-end}
.map-scale-ticks span{height:4px;width:1px;background:#111}
.map-scale-ticks span:first-child,.map-scale-ticks span:last-child{height:7px}
.map-scale-ticks span:nth-child(3){height:5px}
@media(prefers-reduced-motion:reduce){.map-scale-labels,.map-scale-bar{transition:none}}
