/* Mobile map fills the viewport. Existing desktop layout is unchanged. */
.gps-mobile-launcher[hidden]{display:none}.gps-mobile-launcher{margin:12px 0;min-height:48px;width:100%}
@media(max-width:700px){
.gps-fleet.gps-mobile-mode{position:fixed;inset:0;z-index:10000;width:100%;height:100vh;height:100dvh;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#e8eff3;overflow:hidden;font-size:15px}
.gps-mobile-mode> :not(.gps-mobile-bar):not(.gps-fleet-layout):not(.gps-mobile-nav):not(dialog){display:none!important}
.gps-mobile-mode>.gps-fleet-layout,.gps-mobile-mode>.gps-fleet-layout>div{display:contents}.gps-mobile-mode .gps-fleet-sidebar{display:none}
.gps-mobile-mode .gps-map-stage{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100%;min-height:0;border:0;border-radius:0;background:#e8eff3;position:relative}
.gps-mobile-mode .gps-map-tools,.gps-mobile-mode .gps-map-stage>[data-load-tiles]{display:none!important}
.gps-mobile-mode .gps-fleet-map,.gps-mobile-mode.gps-history-open .gps-fleet-map{height:100%;min-height:0;border:0;border-radius:0;width:100%}
.gps-mobile-bar{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 12px;background:#fff;padding:calc(8px + env(safe-area-inset-top)) 12px 9px;box-shadow:0 2px 12px #16334814;z-index:9}
.gps-mobile-bar>button{grid-row:1/3;padding:8px 9px!important;min-height:44px;min-width:65px;font-size:14px!important;background:#f0f5f8!important;border:0!important;border-radius:10px!important;color:#23445e!important}.gps-mobile-bar>strong{font-size:16px}.gps-mobile-bar>small{font-size:11px;color:#15704b}.gps-mobile-bar>small.gps-mobile-error{color:#a44616}
.gps-mobile-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#fff;padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #dce4ed;z-index:9}
.gps-mobile-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;padding:6px!important;background:#f4f7fa!important;border:0!important;border-radius:12px!important;color:#1b507c!important;font-size:12px!important;font-weight:600}.gps-mobile-nav>button>span{font-size:23px;line-height:23px}.gps-mobile-nav>button[aria-expanded=true]{background:#e4f0fc!important}
.gps-mobile-mode .gps-full-controls{gap:7px;padding:9px 12px;background:#fff;display:flex;flex-wrap:wrap;border-top:1px solid #d5e1eb}.gps-mobile-mode [data-history=false] .gps-full-controls{display:none}.gps-mobile-mode .gps-full-controls>label:first-child{flex:1 1 100%}.gps-mobile-mode .gps-full-controls select{width:100%;max-width:100%;font-size:13px}.gps-mobile-mode .gps-full-controls>label:has(input){flex:1;min-width:100px}.gps-mobile-mode .gps-full-controls input[type=range]{width:100%;min-height:28px;padding:0}.gps-mobile-mode .gps-full-controls button{font-size:12px;min-height:40px;padding:6px 9px}.gps-mobile-mode [data-full-clock]{font-size:11px;flex:1 1 100%;text-align:center}
.gps-mobile-mode .gps-full-controls{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:5px 10px;padding:8px 12px}.gps-mobile-mode .gps-full-controls>label:first-child{grid-column:1/-1;font-size:10px;gap:2px}.gps-mobile-mode .gps-full-controls select{min-height:36px;height:36px;padding:5px 8px}.gps-mobile-mode .gps-full-controls button{height:44px;min-height:44px;padding:6px;font-size:11px;align-self:center}.gps-mobile-mode .gps-full-controls>label:has(input){font-size:10px;gap:0;min-width:0}.gps-mobile-mode [data-full-clock]{font-size:10px;grid-column:2;grid-row:3}.gps-mobile-mode [data-full-live]{grid-column:1;grid-row:3}
.gps-mobile-mode .gps-trip-sheet{max-height:30%;overflow:auto;max-width:390px}.gps-mobile-mode .gps-map-brand{pointer-events:none}
.gps-mobile-drawer{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:82vh;max-height:82dvh;margin:0;padding:0;border:0;border-radius:22px 22px 0 0;background:#fff;color:#17324b;box-shadow:0 -12px 60px #0d254533;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;font:15px/1.5 system-ui,sans-serif}
.gps-mobile-drawer::backdrop{background:#10273c66}.gps-mobile-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:#fff;border-bottom:1px solid #e2e8ef;position:sticky;top:0;z-index:12}.gps-mobile-drawer h2{font-size:20px;margin:0}.gps-mobile-drawer>header>button{min-height:44px;font-size:14px;padding:9px 12px;border:1px solid #bdcedd;background:#f4f8fc;border-radius:10px;color:#244e72}.gps-mobile-drawer-content{padding:12px 16px calc(18px + env(safe-area-inset-bottom));min-width:0}.gps-mobile-drawer-content>button{width:100%;margin-top:14px;min-height:44px}
.gps-mobile-drawer .gps-fleet-filters{margin:0 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.gps-mobile-drawer .gps-fleet-filters label{grid-column:1/-1;min-width:0;font-size:13px}.gps-mobile-drawer input:not([type=checkbox]):not([type=range]),.gps-mobile-drawer select{font-size:16px;width:100%;box-sizing:border-box}.gps-mobile-drawer .gps-follow-label{display:grid;font-size:13px;gap:5px}.gps-mobile-drawer .gps-fleet-vehicles{display:block!important;max-height:none;overflow:visible}.gps-mobile-drawer .gps-fleet-item{align-items:center;gap:12px;padding:14px 4px}.gps-mobile-drawer input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.gps-mobile-drawer [data-fleet-route-summary]{display:block!important;max-height:none;overflow:visible}.gps-mobile-drawer .gps-history-form{display:grid;grid-template-columns:minmax(0,1fr);margin:0 0 16px;gap:12px}.gps-mobile-drawer .gps-history-form label{font-size:13px}.gps-mobile-drawer .gps-history-form p{font-size:12px;margin:0}.gps-mobile-drawer .gps-journey-scroll{max-height:none;overflow:visible}.gps-mobile-drawer .gps-journey-header{flex-wrap:wrap}.gps-mobile-drawer .gps-workspace{margin:0;padding:0;border:0;box-shadow:none}.gps-mobile-drawer .gps-workspace .gps-toolbar{gap:8px}.gps-mobile-drawer .gps-workspace .gps-toolbar h2{font-size:18px}.gps-mobile-drawer .gps-workspace .gps-toolbar button{width:auto;font-size:13px;padding:8px 10px}.gps-mobile-drawer .gps-road-status{margin:12px 0;padding:0}.gps-mobile-vehicle-options{padding:16px 0;border-top:1px solid #dbe4ed}.gps-mobile-vehicle-options h3{font-size:16px;margin:0 0 10px}.gps-mobile-vehicle-options button{font-size:14px;min-height:44px;margin:5px 6px 0 0}.gps-mobile-drawer [data-fleet-info]>button{min-height:44px;margin:5px 6px 0 0}
}
