/* A shared task-first shell; settings remain usable in the menu. */
.compact-app{background:var(--bg,#f5f7fa);padding-bottom:calc(88px + env(safe-area-inset-bottom))}.compact-app body{line-height:1.7}.compact-app>header{display:flex!important;align-items:center!important;gap:12px!important;min-height:68px!important;margin:0 auto!important;padding:12px 72px 12px 20px!important;max-width:1200px;width:100%;flex-wrap:wrap;position:relative}.compact-app>header>.brand{font-size:1.4rem;flex-shrink:0}.compact-app>header>:is(.head-right,.header-right,nav:not(.shell-service-switch),.appearance-controls,.app-feedback-menu){display:none!important}.compact-app>.portal-nav,.compact-app #demo-banner,.compact-app #storage-status,.compact-app #portal-footer,.compact-app main>footer,.compact-app #communication-launcher{display:none!important}.compact-app .shell-menu-toggle{position:absolute;right:20px;top:12px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line,#dce1e8);background:var(--surface,#fff);color:var(--text,#172033);border-radius:12px;font-size:1.5rem;padding:0}.shell-role-status{margin-left:auto;max-width:45%;font-size:.75rem;line-height:1.7;color:var(--muted,#606b79);overflow-wrap:anywhere}.shell-role-status.is-online{color:#268756}.shell-service-switch{display:flex!important;gap:3px;margin-left:auto;background:var(--raised,#eef1f6);border-radius:24px;padding:3px}.shell-service-switch a{padding:7px 12px;border-radius:20px;text-decoration:none;color:var(--muted);font-size:.8rem;line-height:1.8}.shell-service-switch a[aria-current=page]{background:var(--accent);color:white}.shell-service-switch~.shell-role-status:empty{display:none}.shell-bottom-nav{position:fixed;z-index:1300;bottom:0;left:0;right:0;width:100%;display:flex;align-items:stretch;justify-content:center;gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface,#fff);border-top:1px solid var(--line,#dce1e8);box-shadow:0 -4px 22px #17203308}.shell-bottom-nav :is(button,a){position:relative;flex:1 1 0;min-width:0;text-decoration:none;text-align:center;max-width:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:transparent;color:var(--muted,#606b79);border:0;border-radius:12px;min-height:56px;padding:5px 8px;font:600 .75rem Manrope,'Noto Sans Myanmar',sans-serif;line-height:1.7;white-space:normal}.shell-bottom-nav button[aria-current=page]{color:var(--accent);background:var(--raised,#f4f7ff)}.shell-bottom-nav svg{width:24px;height:24px}.shell-unread{position:absolute;top:3px;left:calc(50% + 12px);font-size:.65rem;border-radius:12px;background:var(--accent);color:white;padding:1px 6px}.compact-app.map-open .shell-bottom-nav,.compact-app.map-open .shell-menu-toggle{display:none!important}
#app-menu-dialog{position:fixed;inset:0 0 0 auto;width:min(480px,100%);max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:var(--surface,#fff);color:var(--text,#172033);overflow:hidden;box-shadow:-10px 0 40px #0003}#app-menu-dialog[open]{display:flex;flex-direction:column}#app-menu-dialog::backdrop{background:#0006}#app-menu-dialog *{box-sizing:border-box;min-width:0}.shell-menu-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:16px;min-height:64px}.shell-menu-head h2{font-size:1.2rem;margin:0;flex:1}.shell-menu-content{flex:1;overflow:auto;padding:16px 16px calc(24px + env(safe-area-inset-bottom))}.shell-menu-links{display:grid;gap:6px}#app-menu-dialog button{min-height:48px;max-width:100%;padding:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:600 .875rem Manrope,'Noto Sans Myanmar',sans-serif;border-radius:12px;line-height:1.8;white-space:normal}.shell-menu-links>button{display:flex;justify-content:space-between;gap:12px;text-align:left}.shell-settings-title{font-size:1rem;margin:24px 0 12px}.shell-settings{display:grid;gap:12px}.shell-settings .appearance-controls{display:grid;gap:14px}.shell-settings .theme-setting{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shell-settings .theme-setting label{display:block!important;clip-path:none!important;position:static!important;width:auto!important;height:auto!important;font-size:.8rem}.shell-settings .theme-setting>svg{width:20px;height:20px}.shell-settings :is(select,button){width:100%;min-height:48px}.shell-settings select{color:var(--text);background:var(--surface);border:1px solid var(--line);padding:8px;border-radius:10px;font:inherit;max-width:100%}.shell-settings .guidance-setting input{width:24px;height:24px}.shell-switch-role{border:1px solid var(--line);border-radius:12px;padding:14px;font-size:.875rem;line-height:1.8}.shell-switch-role summary{cursor:pointer;min-height:32px}.shell-switch-role a{display:block;min-height:44px;padding:10px 0;color:var(--accent,var(--accent))}.shell-map-settings{margin-top:20px}.shell-map-settings .fleet-source{display:flex!important;padding:12px 0;flex-wrap:wrap}.shell-map-settings .vehicle-icon-guide{display:block!important}.shell-map-settings img{max-width:100%}.compact-app .fleet-source:not(#app-menu-dialog .fleet-source){display:none!important}
.compact-app #portal{max-width:1100px;margin:0 auto;padding:8px 18px}.compact-app .admin-shell{display:block;max-width:100%}.compact-app .admin-nav{display:none}.compact-app .admin-main{padding:0;border:0;background:transparent;min-width:0}.compact-app .registration-shell{max-width:840px}.compact-app .registration-shell .reg-foot{display:none}.view-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.view-heading h1{font-size:1.5rem;margin:8px 0}.view-heading h2{font-size:1.2rem;margin:6px 0}.view-heading>strong{white-space:nowrap;font-size:1rem}.console-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 28px}.console-stats button{display:grid;grid-template-columns:1fr auto;gap:6px;text-align:left;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;color:var(--text);min-width:0}.console-stats button>span:first-child{grid-column:1/-1;font-size:.85rem}.console-stats strong{font-size:1.8rem}.console-queue{display:grid;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}.console-queue button{display:flex;gap:12px;align-items:center;text-align:left;padding:18px;border:0;border-bottom:1px solid var(--line);color:var(--text);background:var(--surface);font:600 .9rem Manrope,'Noto Sans Myanmar',sans-serif;white-space:normal;min-height:58px}.console-queue span{flex:1}.console-queue b{color:var(--accent);background:var(--raised);border-radius:14px;padding:2px 8px}.console-map-head{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;margin-top:25px}.console-map-head h2{font-size:1.1rem}.console-map-head small{color:var(--muted);font-size:.75rem}.console-live-map{height:300px;border-radius:18px;border:1px solid var(--line);overflow:hidden}.console-trip-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}.console-trip-list article{padding:18px;border-radius:16px;background:var(--surface);border:1px solid var(--line);overflow-wrap:anywhere}.console-trip-list small{color:var(--muted)}.console-car-marker svg,.driver-position-marker svg{width:100%;height:100%;display:block}
/* Driver: online switch, map, current passenger and one primary action. */
.driver-workspace{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}.driver-workspace #driver-dispatch{display:contents}.driver-online-bar{order:0;display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:12px 16px;background:var(--surface)}.driver-online-bar>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center;line-height:1.8}.driver-online-bar strong{font-size:.85rem}.driver-online-bar small{font-size:.75rem;color:var(--muted)}.driver-online-switch{padding:8px 14px;border:1px solid var(--line);border-radius:24px;min-height:44px;color:var(--text);background:var(--raised);font:600 .8rem Manrope,'Noto Sans Myanmar',sans-serif;white-space:normal;flex-shrink:0}.driver-online-switch[aria-checked=true]{background:var(--accent);color:white;border-color:var(--accent)}.availability-dot{width:9px;height:9px;border-radius:50%;background:#8993a1;flex-shrink:0}.availability-dot.available{background:#22a467}.availability-dot.busy{background:var(--accent)}.availability-dot.reconnecting{background:#d98b21}.driver-map-stage{position:relative;order:2;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}#driver-live-map{height:clamp(250px,40dvh,450px);width:100%;background:#e3e7eb}.driver-map-recenter{position:absolute;z-index:500;right:12px;bottom:40px;background:var(--surface);color:var(--accent);border:1px solid var(--line);border-radius:50%;width:48px;height:48px;font-size:1.6rem}#driver-map-caption{font-size:.7rem;line-height:1.7;margin:0;padding:4px 12px;color:var(--muted)}#driver-map-caption:empty{display:none}.driver-card-list{order:3}.driver-workspace .dispatch-message{order:1;margin:0;font-size:.85rem;line-height:1.8}.driver-workspace .dispatch-message:empty{display:none}.driver-essential{order:1;padding:14px;background:var(--raised);border-radius:14px;font-size:.85rem;line-height:1.8}.driver-essential button{margin-left:8px;min-height:44px}.driver-trip-card,.driver-waiting{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;margin:0 0 12px}.driver-trip-card .kicker{color:var(--accent);font-size:.75rem}.driver-passenger{display:flex;align-items:center;gap:12px;margin:18px 0}.driver-passenger>div:not(.trip-communication){flex:1;min-width:0}.person-placeholder,.assigned-avatar{width:50px;height:50px;display:grid;place-items:center;background:var(--raised);color:#929baa;border-radius:50%;flex-shrink:0;font-size:1.5rem}.driver-passenger h2{font-size:1.15rem;line-height:1.7;margin:0;overflow-wrap:anywhere}.driver-passenger small{font-size:.75rem;color:var(--muted)}.trip-communication{display:flex;gap:8px;flex-wrap:wrap}.compact-app .trip-communication button{flex:1;min-height:48px;border-radius:12px;background:var(--raised);color:var(--accent);border:1px solid var(--line);padding:10px 14px;font:600 .85rem Manrope,'Noto Sans Myanmar',sans-serif;white-space:normal}.driver-route-summary p{display:flex;align-items:center;gap:12px;margin:0;padding:11px 0;border-top:1px solid var(--line);font-size:.9rem;line-height:1.7}.driver-route-summary p>span:last-child{flex:1;min-width:0;overflow-wrap:anywhere}.driver-route-summary small{display:block;color:var(--muted);font-size:.7rem}.route-dot{width:12px;height:12px;border-radius:50%;background:var(--accent);flex-shrink:0}.route-dot.pickup{background:#248b61}.driver-navigate{display:block;min-height:44px;text-align:center;line-height:1.8;padding:10px;color:var(--accent);background:var(--raised);border-radius:12px;margin:12px 0;text-decoration:none}.compact-app .driver-main-action{display:block;width:100%;min-height:52px;padding:12px 16px;background:var(--accent);border-color:var(--accent);color:white;border-radius:12px;font:700 1rem Manrope,'Noto Sans Myanmar',sans-serif;white-space:normal}.driver-trip-card .button-row{display:flex;gap:10px}.driver-trip-card .button-row>.driver-main-action{flex:1}.driver-trip-card summary,.driver-upcoming summary{font-size:.85rem;min-height:44px;line-height:1.9;padding:12px 0;cursor:pointer;color:var(--muted)}.driver-pin-field{display:grid;gap:8px;margin:14px 0;font-size:.875rem}.driver-pin-field input{width:100%;min-height:52px;padding:10px;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface);font:600 1.4rem Manrope,sans-serif;letter-spacing:.15em}.driver-waiting{display:flex;align-items:center;gap:14px}.waiting-symbol{width:46px;height:46px;display:grid;place-items:center;color:var(--accent);background:var(--raised);border-radius:50%;font-size:1.6rem;flex-shrink:0}.driver-waiting h2{font-size:1.1rem;margin:0;line-height:1.8}.driver-waiting p{font-size:.85rem;margin:3px 0;color:var(--muted)}.driver-settings{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.driver-settings h2{font-size:1.1rem}.driver-settings .check{margin:16px 0}.driver-schedule{font-size:.8rem;line-height:1.8;background:var(--raised);padding:10px;border-radius:10px}
/* Passenger / delivery: only the current step and geographic selection stay on the main screen. */
.compact-app.sequence-layout .hero{padding:4px 0 20px;max-width:960px}.compact-app.sequence-layout .booking{padding:0;border:0;background:transparent;box-shadow:none}.compact-app.sequence-layout .trip-topline,.compact-app.sequence-layout .rides{display:none!important}.compact-app.sequence-layout .real-map-panel{border-radius:18px;box-shadow:none;margin:10px 0}.compact-app.sequence-layout .map-head{padding:10px 14px}.compact-app.sequence-layout .map-head>h2{font-size:1rem}.compact-app.sequence-layout .map-location-switch{display:none}.compact-app.sequence-layout .real-map-panel.expanded .map-location-switch{display:flex}.compact-app.sequence-layout .map-mode{display:none}.compact-app.sequence-layout .map-actions{padding:6px 12px}.compact-app.sequence-layout .map-footer>a,.compact-app.sequence-layout .map-zoom-hint{display:none}.compact-app.sequence-layout .fleet-panel{display:none!important}.compact-app.sequence-layout #map{height:auto;aspect-ratio:4/3;max-height:55dvh;min-height:260px}.compact-app.sequence-layout .expanded #map{max-height:none;aspect-ratio:auto}.compact-app.sequence-layout .pickup-note{font-size:.8rem}.compact-app.sequence-layout .locations{gap:6px 10px}.compact-app.sequence-layout .location-picker{background:var(--surface);min-height:74px}.compact-app.sequence-layout .time-switch{max-width:350px;margin:8px 0}.compact-app.sequence-layout .sequence-actions{margin-top:10px}.compact-app.sequence-layout .sequence-actions>.note,.compact-app.sequence-layout .sequence-actions>.booking-help{display:none}.compact-app.sequence-layout .price-btn{border-radius:14px;background:var(--accent);border-color:var(--accent);color:white;min-height:54px}.compact-app.sequence-layout .journey-panel{background:var(--surface)}.compact-app.sequence-layout #journey-panel{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:20px}.compact-app.sequence-layout #journey-title{font-size:1.4rem;margin:14px 0}.compact-app.sequence-layout .fare-card{background:var(--surface);flex-basis:155px;padding:14px;border-radius:16px}.compact-app.sequence-layout .fare-card.selected{background:var(--raised);color:var(--text);border:2px solid var(--accent);box-shadow:none}.compact-app.sequence-layout .fare-card.selected *{color:var(--text)}.compact-app.sequence-layout .nearest-drivers{padding:0;border:0;background:transparent}.compact-app.sequence-layout .driver-select-card,.compact-app.sequence-layout .driver-card{background:var(--surface);border-radius:16px}.compact-app.sequence-layout .back-button{min-height:44px}.compact-app .focused-trip-card{border-radius:20px;background:var(--surface);padding:18px;border:1px solid var(--line);margin:10px 0}.focused-trip-card h2{font-size:1.1rem;line-height:1.8}.assigned-driver{display:flex;align-items:center;gap:12px;margin:16px 0}.assigned-driver>div{display:grid;gap:2px;font-size:.9rem;min-width:0}.assigned-driver small,.assigned-driver span:not(.assigned-avatar){color:var(--muted);font-size:.8rem}.assigned-avatar{overflow:hidden}.assigned-avatar img{width:100%;height:100%;object-fit:cover}.focused-trip-card details{border-top:1px solid var(--line);margin-top:12px}.focused-trip-card summary,.compact-app .trip-tracking summary{cursor:pointer;min-height:44px;padding:12px 0;line-height:1.8;font-size:.85rem}.compact-app .trip-safety{padding:12px;border:1px solid var(--line);border-radius:12px}.compact-app .trip-safety>summary{color:var(--accent);font-weight:600}.compact-app .trip-tracking{padding:0 14px;margin:8px 0}.compact-app .trip-tracking p{font-size:.8rem}.compact-app .live-steps{padding:8px 0;gap:4px}.compact-app .live-steps li{min-width:70px;font-size:.65rem;padding:9px 3px;border-top-width:3px}.compact-app[data-request-active=true] .real-map-panel .map-head,.compact-app[data-request-active=true] .map-actions{display:none}.compact-app[data-request-active=true] .booking{display:flex;flex-direction:column}.compact-app[data-request-active=true] #live-progress{order:0}.compact-app[data-request-active=true] #map-panel{order:1}.compact-app[data-request-active=true] #passenger-request-status{order:2}.compact-app[data-request-active=true] #trip-tracking{order:3}.compact-app[data-request-active=true] .road-summary{display:none}.compact-app button:disabled{opacity:.5}.compact-app :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
:root[data-theme=night] :is(#driver-live-map,#console-live-map) .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.65) brightness(1.2) contrast(.78)}
@media(min-width:900px){.compact-app .admin-main{padding:12px 24px}.console-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-app[data-driver-ready=true][data-ops-section=home] #portal{max-width:1000px}.driver-workspace{max-width:100%}.driver-map-stage #driver-live-map{height:440px}.compact-app.sequence-layout .hero{max-width:900px}}
@media(max-width:600px){.compact-app>header{padding-left:14px!important;min-height:64px!important;gap:8px!important}.compact-app>header>.brand{font-size:1.2rem}.shell-service-switch a{font-size:.7rem;padding:7px 9px}.shell-role-status{font-size:.65rem;max-width:40%}.compact-app #portal{padding:4px 12px}.compact-app.sequence-layout .hero{padding-inline:12px}.driver-trip-card{padding:14px}.driver-passenger{flex-wrap:wrap}.driver-passenger .trip-communication{margin-left:auto}.console-stats button{padding:15px}.console-stats strong{font-size:1.5rem}.compact-app.sequence-layout .location-label{font-size:.7rem}.compact-app.sequence-layout .location-value{font-size:.8rem}.compact-app.sequence-layout .live-steps li{min-width:65px}.compact-app.sequence-layout .real-map-panel.expanded{border-radius:0}}
.compact-app>header{height:auto!important}.shell-menu-head{height:auto!important;max-width:none!important;margin:0!important}#app-menu-dialog{color-scheme:inherit}
:is(#driver-live-map,#console-live-map) .fleet-carriage{display:grid;place-items:center;width:40px;height:44px;pointer-events:none}:is(#driver-live-map,#console-live-map) img.vehicle-plan-art{position:static;display:block;width:32px!important;height:40px!important;max-width:none;object-fit:contain;filter:drop-shadow(0 1px 2px #14223455)}:is(#driver-live-map,#console-live-map) :is(.fleet-service-badge,.fleet-availability){display:none}
.compact-app.sequence-layout:not([data-step=locations]):not([data-request-active=true]) #map-panel{display:none}
.compact-app :is(.toast,.chat-notice,#toast){bottom:calc(92px + env(safe-area-inset-bottom))}
.compact-app{padding-bottom:calc(var(--shell-nav-height,88px) + 12px)}.compact-app :is(.toast,.chat-notice,#toast){bottom:calc(var(--shell-nav-height,88px) + 12px)}.driver-online-bar>div{flex:1;min-width:0}.driver-online-switch{max-width:48%}.admin-account-control{margin:18px 0;border:1px solid var(--line);border-radius:14px;padding:0 14px}.admin-account-control>summary{min-height:48px;padding:12px 0;cursor:pointer;line-height:1.8;font-size:.9rem}
.shell-demo-badge{font-size:.7rem;line-height:1.8;color:#8b571a;background:#fff1d7;padding:4px 9px;border-radius:9px;flex-basis:100%}.shell-demo-badge[hidden]{display:none!important}
.shell-fleet-state{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;color:var(--muted);font-size:.75rem;line-height:1.8}.shell-fleet-state[hidden]{display:none!important}.shell-fleet-state button{min-height:44px;border:1px solid var(--line);background:var(--raised);color:var(--accent);border-radius:10px;padding:6px 12px;font:inherit;flex-shrink:0}

@media(max-width:600px){.shell-bottom-nav{gap:2px;padding-left:6px;padding-right:6px}.shell-bottom-nav :is(button,a){padding:5px 2px;font-size:.7rem;overflow-wrap:anywhere}}
