/* Mobile map first: a small working panel, deliberate disclosure, quiet chrome. */
#mobile-menu,.compact-trip{display:none}
@media(max-width:760px){
 :root{--surface:#fffefa;--surface-alt:#f3f2ef;--edge:#e6e4de;--ink:#242725;--subtle:#72756f;--primary-bg:#242925;--primary-fg:#fffefa}
 [data-theme=dark]{--surface:#181b1a;--surface-alt:#222624;--edge:#343936;--ink:#f4f2eb;--subtle:#a8aea8;--primary-bg:#e4d4b2;--primary-fg:#202521;--accent-soft:#2c302a;--accent-text:#dac7a0}
 body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
 .topbar,[data-theme=dark] .topbar{height:44px;top:max(10px,env(safe-area-inset-top));left:16px;right:16px;padding:0;background:transparent!important;border:0;border-radius:0;box-shadow:none;pointer-events:none}
 .topbar .brand{display:flex;pointer-events:auto;height:44px;padding:0 13px;background:var(--surface);border:1px solid var(--edge);border-radius:15px;font-size:25px;letter-spacing:-1.3px;box-shadow:0 3px 14px #111a1112}
 .topbar .brand-symbol,.topbar .role-switch,.topbar .header-right{display:none}
 #mobile-menu{display:flex;pointer-events:auto;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin-left:auto;width:44px;height:44px;border:1px solid var(--edge);border-radius:50%;background:var(--surface);box-shadow:0 3px 14px #111a1112}
 #mobile-menu span{width:17px;height:1.5px;background:var(--ink);border-radius:2px}#mobile-menu span:last-child{width:11px;margin-left:6px}
 .map-wash{display:none}
 .leaflet-tile-pane{filter:saturate(.26) contrast(.9)}
 [data-theme=dark] .leaflet-tile-pane{filter:grayscale(1) invert(1) brightness(1.35) contrast(.68)}
 .map-top-info,[data-theme=dark] .map-top-info{top:64px;left:16px;right:auto;border:0;border-radius:20px;padding:7px 10px;font-size:10px;box-shadow:0 2px 10px #0000000c;max-width:calc(100vw - 88px)}
 body[data-screen=trip] .map-top-info,body[data-screen=trip] #geo-status{display:none}
 #geo-status{min-height:32px;padding:7px 10px;font-size:9px;max-width:calc(100vw - 90px);box-shadow:none}
 .map-tool,[data-theme=dark] .map-tool{border-radius:50%;border:1px solid var(--edge);box-shadow:0 3px 14px #111a1112}
 .ride-panel,[data-theme=dark] .ride-panel{left:0;right:0;top:auto;bottom:0;width:100%;height:auto;max-height:42dvh;border:0;border-top:1px solid var(--edge);border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -5px 26px #0e1c1510}
 .ride-panel.expanded,[data-theme=dark] .ride-panel.expanded{height:72dvh;max-height:calc(100dvh - 80px)}
 .sheet-header{min-height:38px;padding:0 20px;border:0}
 .sheet-header .panel-handle{min-height:38px;margin:0;padding:10px 0 0;align-self:stretch}
 .panel-handle .sheet-grip{width:26px;height:3px;top:6px;background:var(--edge)}
 .panel-handle .sheet-label{font-size:10px;font-weight:500;color:var(--subtle)}
 .panel-handle .sheet-chevron{font-size:16px}
 #minimize-sheet{min-height:38px;min-width:44px;margin-left:16px;font-size:0}#minimize-sheet svg{width:16px;height:16px}
 .panel-content{padding:0 20px 12px}
 .panel-nav,[data-theme=dark] .panel-nav{display:none}
 .booking-heading{margin:0 0 5px}.city-button{min-height:28px;font-size:11px}
 .route-fields,[data-theme=dark] .route-fields{border:0;border-radius:16px;padding:0 12px;background:var(--surface-alt)}
 .field-row{height:49px;gap:9px}.field-button b{font-size:14px;font-weight:550}.field-button small{font-size:8px;letter-spacing:.7px}
 .route-fields .map-shortcut{background:transparent;border:0;min-width:44px}.field-dot{width:6px;height:6px}.field-dot:after{height:24px}
 #booking-footer,[data-theme=dark] #booking-footer{padding:0 20px 16px;border:0;background:var(--surface)}
 #booking-footer .primary{min-height:48px;border-radius:14px;padding:12px 16px;font-size:14px;box-shadow:none;font-weight:600}
 .mobile-booking-summary{min-height:34px;font-size:11px}
 .ride-panel[data-content=booking][data-sheet=compact].route-ready .field-row{height:46px}
 .ride-panel[data-content=booking][data-sheet=compact].route-ready #booking-footer{padding-bottom:16px}
 .ride-panel[data-content=trip][data-sheet=compact] .panel-content>*:not(.compact-trip){display:none!important}
 .ride-panel[data-content=trip][data-sheet=compact] .compact-trip{display:block}
 .compact-trip-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 8px}
 .compact-caption{font-size:8px;letter-spacing:1.3px;color:var(--subtle)}
 .compact-trip h2{font-size:22px;font-weight:600;letter-spacing:-.65px;line-height:1.2;margin:5px 0}
 .compact-trip-head>strong{font-size:23px;letter-spacing:-.7px;white-space:nowrap;font-weight:600}
 .compact-destination{font-size:11px;line-height:1.5;color:var(--subtle);display:flex;align-items:center;gap:7px;margin:6px 0 0}.compact-destination svg{width:14px;height:14px;flex-shrink:0}
 .compact-vehicle{display:flex;align-items:center;gap:14px;padding:4px 0}.compact-vehicle>.vehicle-image{width:90px;height:65px;filter:drop-shadow(0 6px 4px #0002)}
 .compact-vehicle>div{flex:1;min-width:0}.compact-vehicle>div>b{font-size:12px;font-weight:500;display:block;margin-bottom:7px;color:var(--subtle)}
 .compact-vehicle .registration-plate{height:29px}.compact-vehicle .registration-main b{font-size:20px!important}.compact-vehicle .registration-main span{font-size:13px}.compact-vehicle .registration-region>b{font-size:12px!important}
 .compact-code{display:flex;align-items:center;justify-content:space-between;font-size:11px;border-top:1px solid var(--edge);padding:10px 0 0;margin-top:5px;color:var(--subtle)}.compact-code b{font-size:20px;letter-spacing:4px;color:var(--ink)}
 .compact-driver-route{font-size:12px;line-height:1.45}.compact-driver-route>div{display:flex;gap:10px;margin-top:7px}.compact-driver-route i{font-size:10px;font-style:normal;color:var(--accent-text);padding-top:1px}.compact-driver-route b{font-weight:550}.compact-driver-route span{color:var(--subtle)}
 .compact-waiting{font-size:11px;color:var(--subtle);line-height:1.5;margin:8px 0 0}
 .ride-panel[data-content=trip][data-status=completed][data-sheet=compact],.ride-panel[data-content=trip][data-status=cancelled][data-sheet=compact],.ride-panel[data-content=trip][data-status=expired][data-sheet=compact]{max-height:32dvh}
 .ride-panel[data-status=completed] .compact-trip-head{margin-bottom:2px}.ride-panel[data-status=completed] .compact-trip h2{margin:0}.ride-panel[data-status=completed] .compact-caption{display:none}
 .ride-panel[data-content=offer]{max-height:49dvh}.ride-panel[data-content=offer].expanded{height:72dvh}
 .ride-panel[data-content=offer] .offer-heading{margin:0}.offer-heading button{min-height:36px}.offer-price h1{font-weight:600}.offer-pickup{background:transparent;padding:0;margin:0 0 10px}.offer-route{border:0}
 .ride-panel[data-content=driver][data-sheet=compact] .market-eyebrow,.ride-panel[data-content=driver][data-sheet=compact] .market-info,.ride-panel[data-content=driver][data-sheet=compact] .market-radius,.ride-panel[data-content=driver][data-sheet=compact] .market-list{display:none}
 .market-heading{margin:0 0 10px}.market-heading h1{font-size:23px}.market-status{border:0;background:var(--surface-alt)}.market-modes{border:0}.market-section{margin:8px 0 0}
 .ride-panel[data-content=history]{height:65dvh}.ride-panel[data-content=history] .panel-content{padding-top:8px}
 .mobile-menu-main{display:grid;gap:0;margin:12px 0 20px}.mobile-menu-main button{display:flex;align-items:center;gap:14px;min-height:52px;border-bottom:1px solid var(--edge);text-align:left;font-size:15px}.mobile-menu-main svg{width:19px;height:19px;color:var(--subtle)}
 .mobile-menu-extra summary{min-height:44px;padding:12px 0;font-size:12px;color:var(--subtle);cursor:pointer}.mobile-menu-extra .menu-list{margin-top:4px}
 #toast{top:72px}.connection{top:64px}.picking .topbar .brand{display:none}
 .ride-panel.expanded .assigned-car-art{height:84px}.ride-panel.expanded .assigned-car-art .vehicle-image{height:112px}.stepper i.current,[data-theme=dark] .stepper i.current{background:var(--accent-text)}
}
@media(max-width:760px) and (max-height:640px){
 .ride-panel,[data-theme=dark] .ride-panel{max-height:46dvh}
 .ride-panel[data-content=trip][data-sheet=compact]{max-height:48dvh}
 .ride-panel[data-content=trip][data-status=completed][data-sheet=compact]{max-height:38dvh}
 .ride-panel[data-content=offer]{max-height:54dvh}
 .compact-trip h2{font-size:20px}.compact-vehicle>.vehicle-image{height:52px;width:78px}
 .booking-heading{display:flex}.city-button{min-height:25px}
 .ride-panel[data-content=booking][data-sheet=compact].route-ready .field-row{height:44px}
}
@media(max-width:760px) and (orientation:landscape){
 .ride-panel,[data-theme=dark] .ride-panel{left:0;right:auto;top:64px;bottom:0;width:46%;max-height:calc(100dvh - 64px)}
 .ride-panel[data-content=trip][data-status=completed][data-sheet=compact],.ride-panel[data-content=offer]{max-height:calc(100dvh - 64px)}
 .ride-panel[data-sheet=peek]{top:auto}.map-top-info,[data-theme=dark] .map-top-info{left:calc(46% + 12px)}
}
