#driver-route-dialog{position:fixed;inset:0;margin:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:#101310;color:#f2f5ed}
#gpsCard.driver-route-expanded{display:grid;grid-template-areas:"heading" "next" "error" "map" "info" "actions";grid-template-rows:auto auto auto minmax(0,1fr) auto auto;gap:8px;width:100%;height:100%;margin:0;border:0;border-radius:0;padding:12px;padding-top:max(12px,var(--native-top,env(safe-area-inset-top,0px)));padding-bottom:max(12px,var(--native-bottom,env(safe-area-inset-bottom,0px)));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));box-sizing:border-box}
#gpsCard.driver-route-expanded>:not(#driver-route-tools):not(#driver-route-map-tools):not(#map):not(#route-info):not(#driver-route-actions):not(#gpsError):not(#driver-next-card){display:none!important}
.driver-route-expanded #driver-route-tools{grid-area:heading;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center}
#driver-route-heading{font-size:20px;line-height:1.25;margin:0}
#driver-route-target{grid-column:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:#c1c9bd;font-size:15px}
#driver-route-close{grid-column:2;grid-row:1/3;margin:0;width:auto;min-height:44px;padding:10px 12px}
.driver-route-expanded #map{grid-area:map;min-height:0;height:100%;width:100%;margin:0;border-radius:12px;z-index:0}
.driver-route-expanded #driver-route-map-tools{grid-area:map;align-self:start;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:calc(100% - 62px);padding:10px;z-index:1;pointer-events:none}
#driver-route-map-tools button{pointer-events:auto;width:auto;min-height:44px;margin:0;padding:10px 12px;box-shadow:0 2px 10px #0005}
#driver-route-follow[aria-pressed=true]{background:#c7fa63;color:#101310}
.driver-route-expanded #gpsError{grid-area:error;margin:0;font-size:14px}
.driver-route-expanded #gpsError:empty{display:none}
.driver-route-expanded #route-info{grid-area:info;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 12px;margin:0;padding:0;border:0;background:none}
.driver-route-expanded #route-info>h2,.driver-route-expanded #route-info>small:not(#googleAttribution),.driver-route-expanded.driver-route-has-route #routeStatus{display:none}
.driver-route-expanded #routeStatus,.driver-route-expanded #driver-route-summary{flex:1 1 65%;margin:0;font-size:16px;line-height:1.4;color:#f2f5ed}
.driver-route-expanded #calculateRoute{width:auto;min-height:44px;padding:8px 12px;margin:0;font-size:14px}
.driver-route-expanded #googleAttribution{flex-basis:100%;font-size:11px;margin:0}
.driver-route-expanded #driver-route-actions{grid-area:actions;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#driver-route-actions button{flex:1 1 40%;width:auto;min-height:48px;margin:0;padding:10px 12px}
#driver-route-actions #shareLocation{background:#30372f;color:#f2f5ed;font-size:14px}
#driver-route-gps,#driver-route-actions #error{flex-basis:100%;font-size:14px;line-height:1.4;margin:0}
#driver-route-actions #error:empty{display:none}
@media(max-height:500px){#gpsCard.driver-route-expanded{gap:4px;padding-top:max(6px,var(--native-top,env(safe-area-inset-top,0px)));padding-bottom:max(6px,var(--native-bottom,env(safe-area-inset-bottom,0px)))}#driver-route-heading{font-size:18px}#driver-route-map-tools button{font-size:14px}.driver-route-expanded #googleAttribution{flex-basis:auto}#driver-route-actions button{min-height:44px}}

.driver-route-expanded #driver-next-card{grid-area:next;margin:0;padding:8px 10px}.driver-next-card{border:1px solid #a6d747;border-radius:12px;padding:12px;margin:12px 0;background:#24341a;color:#f2f5ed}.driver-next-card h2{font-size:16px;margin:0 0 4px}.driver-next-card p{font-size:14px;margin:4px 0}.driver-next-card #driver-next-details{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.driver-next-card #driver-next-error:empty{display:none}.driver-next-actions{display:flex;gap:8px}.driver-next-actions button{min-height:44px;width:auto;flex:1;margin:4px 0;padding:8px}.driver-next-card[hidden]{display:none!important}[data-theme="light"] .driver-next-card{background:#effbdc;color:#18250c}
