/* Approved map-first mobile shell; desktop surfaces keep their existing layout. */
.mobile-shell [hidden]{display:none!important}
body.mobile-mode{overflow:hidden;overscroll-behavior:none}
.mobile-shell{position:fixed;left:0;right:0;top:var(--mobile-top,0px);height:var(--mobile-height,100dvh);overflow:hidden;isolation:isolate;--mobile-nav-height:calc(64px + env(safe-area-inset-bottom));--mobile-collapsed-height:112px;--mobile-sheet-height:var(--mobile-collapsed-height);--mobile-menu-height:90%;--mobile-backdrop-layer:690;--mobile-overlay-layer:700;background:var(--background);font:15px/1.45 var(--font-body)}
.mobile-shell[data-snap=half]{--mobile-sheet-height:54%}.mobile-shell[data-snap=full]{--mobile-sheet-height:calc(100% - var(--mobile-nav-height) - 88px - env(safe-area-inset-top))}
.mobile-shell>.mobile-map-stage{position:absolute;inset:0;z-index:0;height:100%;width:100%}.mobile-map-stage .map-canvas{height:100%;width:100%}
.mobile-header{position:absolute;z-index:500;top:calc(12px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px}
.mobile-search-entry{min-width:0;flex:1;min-height:60px;padding:9px 12px;display:flex;align-items:center;gap:11px;background:var(--surface);box-shadow:var(--shadow);border-radius:14px;text-align:left}
.mobile-search-entry:hover{background:var(--background)}.mobile-header>.icon-btn:hover,.mobile-map-controls>.icon-btn:hover,.mobile-nav>button:hover,.mobile-point-action:hover{background:var(--tint)}
.mobile-search-entry img{width:30px;height:30px;flex:none}.mobile-search-entry>span{min-width:0}.mobile-search-entry strong{display:block;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-search-entry small{display:block;font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.mobile-header>.icon-btn,.mobile-map-controls>.icon-btn{width:46px;height:46px;min-width:46px;min-height:46px;border-radius:12px;box-shadow:var(--shadow);background:var(--surface);color:var(--ink)}
.mobile-map-controls{position:absolute;z-index:500;right:max(12px,env(safe-area-inset-right));top:calc(94px + env(safe-area-inset-top));display:flex;flex-direction:column;gap:8px}
.mobile-map-controls .map-layers-options{right:54px;bottom:0}.mobile-map-controls .map-vehicles-toggle[aria-pressed=false]{color:var(--muted);background:var(--surface)}.mobile-map-controls .map-vehicles-toggle[aria-pressed=true]{color:var(--primary);background:var(--tint)}
.mobile-map-controls:has(.map-layers[open]){z-index:540}
.mobile-map-feedback{position:absolute;z-index:510;top:calc(84px + env(safe-area-inset-top));left:12px;right:68px;background:var(--surface);padding:10px 12px;border-radius:10px;box-shadow:var(--shadow);font-size:12px;color:var(--ink);overflow-wrap:anywhere;pointer-events:none}
.mobile-sheet{position:absolute;left:0;right:0;bottom:var(--mobile-nav-height);z-index:520;height:var(--mobile-sheet-drag,var(--mobile-sheet-height));max-height:calc(100% - var(--mobile-nav-height) - 88px - env(safe-area-inset-top));min-height:112px;background:var(--surface);border-radius:22px 22px 0 0;box-shadow:0 -3px 18px #152b4218;display:flex;flex-direction:column;overflow:hidden}
.mobile-sheet-handle{height:44px;min-height:44px;width:100%;display:flex;align-items:center;justify-content:center;border-radius:22px 22px 0 0;touch-action:none;cursor:ns-resize}.mobile-sheet-handle>span{width:34px;height:4px;border-radius:2px;background:var(--muted);opacity:.6}
.mobile-panel-content{padding:0 max(16px,env(safe-area-inset-right)) 22px max(16px,env(safe-area-inset-left));overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-gutter:stable}
.mobile-shell[data-snap=compact] .mobile-home-body{display:none}
.mobile-card-heading{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:12px}.mobile-card-heading h1{font:700 21px/1.25 var(--font-body);letter-spacing:0;flex:1;min-width:0;overflow-wrap:anywhere;display:flex;align-items:center;gap:9px}.mobile-card-heading h1>.line-chip{flex:none}.mobile-card-heading h1>span:not(.line-chip){font-size:16px}.mobile-card-heading>.icon-btn{min-height:44px;min-width:44px;flex:none}
.mobile-panel-content h2{font:700 17px/1.35 var(--font-body);margin:18px 0 8px}.mobile-panel-content h1{font-size:21px;line-height:1.3;letter-spacing:0}.mobile-panel-content p{overflow-wrap:anywhere}.mobile-secondary{font-size:13px;color:var(--muted);margin:10px 0;line-height:1.5}
.mobile-quick-lines{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.mobile-quick-lines>button{min-width:46px;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:6px 8px}
.mobile-result-row{display:flex;align-items:center;gap:11px;width:100%;min-height:64px;padding:12px 1px;text-align:left;border-bottom:1px solid var(--line)}.mobile-result-row>.line-chip,.mobile-result-row>.icon{flex:none}.mobile-result-row>span:not(.line-chip){flex:1;min-width:0}.mobile-result-row strong{display:block;font-size:15px;line-height:1.35;overflow-wrap:anywhere}.mobile-result-row small{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin-top:4px}.mobile-result-row>.icon:last-child{width:18px;height:18px;color:var(--muted)}
.mobile-panel-content>.secondary,.mobile-panel-content>.location-btn{width:100%;min-height:48px;margin-top:12px;justify-content:center}.mobile-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.mobile-card-actions>.secondary{min-height:44px;flex:1;justify-content:center}
.mobile-direction{display:block;font-size:13px;color:var(--muted);margin:14px 0}.mobile-direction select{display:block;min-height:48px;padding:9px 12px;background:var(--background);color:var(--ink);border:1px solid var(--line);border-radius:10px;width:100%;margin-top:6px;font-size:15px}
.mobile-nav{position:absolute;z-index:530;bottom:0;left:0;right:0;height:var(--mobile-nav-height);display:flex;gap:6px;background:var(--surface);padding:4px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid var(--line)}
.mobile-nav>button{flex:1;min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;color:var(--muted);border-radius:12px;line-height:1.3}.mobile-nav>button[aria-current=page]{color:var(--primary);background:var(--tint)}.mobile-nav>.mobile-nav-info{flex:0 0 44px;min-width:44px}.mobile-nav-info>.icon{width:18px;height:18px}
.mobile-overlay-backdrop{position:absolute;inset:0;z-index:var(--mobile-backdrop-layer);border-radius:0;background:rgb(0 0 0 / .28)}.mobile-overlay-backdrop:hover,.mobile-overlay-backdrop:active{background:rgb(0 0 0 / .28)}
.mobile-overlay{position:absolute;z-index:var(--mobile-overlay-layer);inset:0;display:flex;flex-direction:column;background:var(--surface);padding:calc(10px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));overflow:hidden}
.mobile-overlay[data-modal=settings],.mobile-overlay[data-modal=info]{top:calc(100% - var(--mobile-menu-height));max-height:var(--mobile-menu-height);border-radius:22px 22px 0 0;padding-top:14px}
.mobile-overlay[data-modal=map-actions]{top:auto;max-height:var(--mobile-menu-height);border-radius:22px 22px 0 0;padding-top:8px}.mobile-overlay[data-modal=map-actions] .mobile-dialog-body{flex:none;padding-bottom:0}.mobile-overlay[data-modal=map-actions] .mobile-dialog-heading{margin-bottom:0}.mobile-point-action{width:100%;min-height:56px;display:flex;align-items:center;gap:12px;padding:12px;text-align:left;font-size:16px;border-radius:var(--control)}.mobile-point-action>.icon{color:var(--primary);flex:none}
.mobile-city-auto{min-height:48px;margin:0 0 20px;font-size:15px}.mobile-about{margin-top:24px}.mobile-about .content-page{padding:0;border:0;background:none}.mobile-about h1{font-size:21px;letter-spacing:0}.mobile-about h2{font-size:17px;margin-top:24px}.mobile-map-stage .map-canvas{-webkit-touch-callout:none}
.mobile-dialog-heading{display:flex;align-items:center;gap:10px;min-height:56px;margin-bottom:12px}.mobile-dialog-heading h1{font-size:21px;line-height:1.3;letter-spacing:0}.mobile-dialog-heading .icon-btn,.mobile-unified-form .icon-btn{min-width:44px;min-height:44px;flex:none}
.mobile-dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 3px 16px}.mobile-dialog-body>h2{font-size:15px;color:var(--muted);margin:20px 0 5px}.mobile-dialog-body>.secondary{width:100%;min-height:48px;margin-top:16px;justify-content:center}.mobile-dialog-body>.language-switch{margin-top:20px;width:100%}.mobile-dialog-body>.language-switch select{width:100%;font-size:16px}.mobile-dialog-body .scope-picker{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;background:none;border:0;align-items:stretch}.mobile-dialog-body .scope-picker label{display:block;width:100%}.mobile-dialog-body .scope-picker label>span{display:block;margin-bottom:7px}.mobile-dialog-body .scope-picker select{min-height:50px;width:100%;max-width:none;font-size:16px}
.mobile-unified-form{display:flex;align-items:center;gap:4px;min-height:56px;margin-bottom:12px}.mobile-unified-form input{min-width:0;flex:1;width:100%;height:50px;font-size:16px;background:var(--background);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:9px 11px}.mobile-search-privacy{font-size:11px;color:var(--muted);line-height:1.45;padding-top:10px}
.mobile-panel-content .detail-hero{padding:0;margin:0;border:0;background:none;box-shadow:none}.mobile-panel-content .detail-hero h1{font-size:21px}.mobile-panel-content .back{min-height:44px;margin-bottom:8px}.mobile-panel-content .detail-actions{margin:14px 0}.mobile-panel-content .section-head{margin-top:12px}.mobile-panel-content .source-ribbon{margin:14px 0 0}.mobile-panel-content .arrival-list .empty{min-height:0;padding:20px 12px}.mobile-panel-content .arrival{padding:12px 0;gap:10px}.mobile-panel-content .arrival-time{font-size:26px}.mobile-panel-content .arrival-destination{font-size:14px}.mobile-panel-content .favourite{min-height:44px;min-width:44px;margin:0}.mobile-stop-line{min-width:44px;min-height:44px;padding:5px;display:flex;align-items:center;justify-content:center}.mobile-stop-target{display:flex;align-items:center;justify-content:center}
.mobile-panel-content .content-page{padding:0}.mobile-panel-content .journey-page{padding:0;border:0;background:none}.mobile-panel-content .journey-page>p{font-size:13px}.mobile-panel-content .journey-page .planner-status{font-size:12px}.mobile-panel-content .address-field input{font-size:16px;min-height:50px}.mobile-panel-content .form-field{margin-top:16px}.mobile-panel-content .field-wrap>.icon-btn{min-width:44px;min-height:44px}.mobile-panel-content .address-field .journey-map-pick{width:100%;min-height:44px;justify-content:center}.mobile-planner-details{margin:12px 0}.mobile-planner-details>summary{min-height:44px;cursor:pointer;color:var(--primary);font-size:13px;padding:10px 0}.mobile-panel-content .journey-privacy{font-size:11px}.mobile-panel-content .journey-option-select{padding:14px 10px}.mobile-panel-content .journey-option-select strong{font-size:16px}.mobile-panel-content .journey-option-lines{padding-left:10px;padding-right:10px}.mobile-panel-content .transport-info-popup{width:min(260px,calc(100vw - 64px))}.mobile-trip-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.mobile-trip-actions h1{flex:1}.mobile-trip-actions .secondary{min-height:44px}.mobile-panel-content .journey-timeline{padding-left:0}.mobile-panel-content .journey-timeline>li{margin-left:0}.mobile-panel-content .journey-place{font-size:13px}.mobile-current-step{margin:18px 0}.mobile-current-step>.icon{width:30px;height:30px;color:var(--primary)}.mobile-current-step h2{font-size:21px;margin:10px 0}.mobile-current-step strong{display:block;margin:12px 0}.mobile-current-step p{margin:10px 0}
.mobile-mode .toast{position:fixed;bottom:calc(76px + env(safe-area-inset-bottom));z-index:900;left:16px;right:16px;transform:none;max-width:none;font-size:13px}.mobile-mode .update-banner{position:fixed;z-index:950;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:12px;background:var(--surface);font-size:13px;display:flex;gap:12px;align-items:center}.mobile-mode .update-banner[hidden]{display:none}.mobile-mode .update-banner .secondary{min-height:44px;flex:none}
@media(forced-colors:active){.mobile-search-entry,.mobile-sheet,.mobile-nav,.mobile-overlay,.mobile-header>.icon-btn{border:1px solid CanvasText}.mobile-nav>button[aria-current=page]{outline:2px solid Highlight}}
@media(max-height:520px){.mobile-map-controls{flex-direction:row}.mobile-map-controls .map-layers-options{top:0;bottom:auto}}
@media(max-height:520px) and (min-width:560px){.mobile-header{right:calc(max(12px,env(safe-area-inset-right)) + 162px)}.mobile-map-controls{top:calc(19px + env(safe-area-inset-top))}.mobile-map-controls .map-layers-options{top:54px;right:0}}
