.drive-entry{margin:16px 0 22px;padding:18px;border:1px solid #c9ddf8;border-radius:16px;background:#eef5ff;color:#183251}
.drive-entry h3{margin:0 0 7px;font-size:1.125rem;line-height:1.4}
.drive-entry p{margin:0 0 14px;font-size:1rem;line-height:1.5;color:#465e7a}
.drive-entry button,.drive-continue{display:block;width:100%;min-height:50px;padding:12px 16px;border:1px solid #1468d7;border-radius:12px;background:#176fe5;color:#fff;font:inherit;font-size:1rem;font-weight:700;cursor:pointer}
.drive-entry button:disabled{opacity:.65;cursor:default}
.drive-entry[hidden],.driving-hud[hidden],.driving-hud [hidden]{display:none!important}
.driving-hud{position:absolute;inset:20px auto 42px 24px;width:min(440px,calc(100% - 110px));z-index:1050;display:flex;flex-direction:column;justify-content:space-between;gap:20px;pointer-events:none;color:#142e4b;font-size:1rem;line-height:1.45}
.drive-guidance,.drive-bottom{pointer-events:auto;border:1px solid #cbd9e8;border-radius:18px;background:#fff;box-shadow:0 5px 24px #102e4a26;overflow-wrap:anywhere}
.drive-guidance{display:flex;align-items:center;gap:14px;padding:18px;background:#123f82;color:#fff;border-color:#123f82}
.drive-turn-symbol{flex:0 0 48px;font-size:3rem;line-height:1;text-align:center}
.drive-guidance-text{min-width:0}
.drive-eyebrow{margin:0 0 4px;font-size:.875rem;font-weight:650;letter-spacing:.06em;color:#d2e5ff}
.drive-turn-distance{font-size:1.8rem;line-height:1.1;display:block}
.drive-turn-distance:empty{display:none}
.drive-guidance h2{margin:5px 0 0;font-size:1.125rem;line-height:1.4;font-weight:700}
.drive-road{margin:5px 0 0;font-size:.875rem;color:#d7e7ff}
.drive-road:empty{display:none}
.drive-bottom{padding:17px 18px;max-height:66%;overflow-y:auto;overscroll-behavior:contain}
.drive-target-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:5px;color:#4a627c;font-size:.875rem}
#drive-accuracy{white-space:nowrap;font-variant-numeric:tabular-nums}
.drive-target{display:block;font-size:1.125rem;line-height:1.4}
.drive-next{margin:10px 0;padding:10px 12px;border-radius:9px;background:#eaf7ee;color:#155b36;font-size:1rem;font-weight:650}
.drive-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0 8px}
.drive-metrics div{display:grid;gap:2px}
.drive-metrics span{font-size:.875rem;color:#50677e}
.drive-metrics strong{font-size:1.65rem;line-height:1.2;font-variant-numeric:tabular-nums}
.drive-remaining,.drive-status,.drive-note,.drive-wake{margin:8px 0 0;font-size:.875rem;line-height:1.5;color:#50677e}
.drive-status{color:#294c70}
.drive-note{padding-top:8px;border-top:1px solid #e4ebf2}
.drive-wake:empty{display:none}
.drive-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.drive-actions button{flex:1 1 auto;min-height:44px;padding:9px 12px;border:1px solid #c8d5e4;border-radius:10px;background:#fff;color:#254567;font:inherit;font-size:.875rem;font-weight:650;cursor:pointer}
.drive-actions button:disabled{color:#6d7d8f;background:#f1f4f7;cursor:default}
.drive-actions button[aria-pressed=true]{background:#e9f3ff;border-color:#75a8ea;color:#1758a9}
.drive-actions .drive-stop{border-color:#e5c3c3;color:#9b3333}
.drive-continue{margin:12px 0 0;background:#187749;border-color:#187749}
.drive-manual{margin-top:9px;font-size:.875rem;color:#465e7a}
.drive-manual summary{min-height:36px;padding:7px 0;cursor:pointer}
.drive-manual p{font-size:.875rem;margin:4px 0 8px}
.drive-manual button{min-height:44px;padding:9px 12px;border:1px solid #c8d5e4;border-radius:10px;background:#fff;color:#254567;font:inherit;cursor:pointer}
.drive-entry button:focus-visible,.driving-hud button:focus-visible{outline:3px solid #1874ec;outline-offset:3px}
.driving-hud[data-state=off_route] .drive-guidance,.driving-hud[data-state=poor] .drive-guidance,.driving-hud[data-state=stale] .drive-guidance{background:#735314;border-color:#735314}
.driving-hud[data-state=at-stop] .drive-guidance,.driving-hud[data-state=finished] .drive-guidance{background:#17613e;border-color:#17613e}
.driving-hud[data-state=paused] .drive-guidance{background:#46576b;border-color:#46576b}
body.driving-mode .planner-shell,body.driving-mode .mobile-nav,body.driving-mode .map-pick-toolbar,body.driving-mode .map-instruction,body.driving-mode .map-selection,body.driving-mode .map-calculate,body.driving-mode .map-catalog-chip,body.driving-mode .map-location-status,body.driving-mode .map-route-status{display:none!important}
body.driving-mode .map-credit{left:12px;right:auto;bottom:5px;max-width:calc(100vw - 120px);font-size:.75rem}
body.driving-mode .map-error{top:20px;left:auto;right:82px;max-width:350px;font-size:.875rem}
body.driving-mode .map-controls{top:20px;right:20px}
body.driving-mode .leaflet-control-attribution{font-size:.75rem}
.drive-location-marker{position:relative;width:32px!important;height:32px!important;border:3px solid #fff;border-radius:50%;background:#1674ef;box-shadow:0 0 0 2px #1674ef55,0 2px 9px #163c6944;pointer-events:none}
.drive-location-marker span{display:block;width:100%;height:100%;transform-origin:center}
.drive-location-marker span::before{content:"";display:block;position:absolute;left:7px;top:3px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:15px solid white}
.drive-location-marker.no-heading span::before{left:9px;top:9px;width:8px;height:8px;border:0;border-radius:50%;background:#fff}
.drive-location-marker.uncertain{background:#748496;box-shadow:0 0 0 2px #74849655}
.journey-marker.drive-visited{opacity:.45}
.journey-marker.drive-active-target{box-shadow:0 0 0 5px #1674ef44,0 4px 12px #14395d44;z-index:1200!important}
@media(max-width:760px){
 .driving-hud{inset:calc(12px + env(safe-area-inset-top)) 12px calc(38px + env(safe-area-inset-bottom)) 12px;width:auto;gap:12px}
 .drive-guidance{margin-right:58px;padding:13px;gap:10px;border-radius:14px}
 .drive-turn-symbol{flex-basis:34px;font-size:2.5rem}
 .drive-turn-distance{font-size:1.6rem}
 .drive-guidance h2{font-size:1rem}
 .drive-eyebrow{font-size:.875rem;letter-spacing:.02em}
 .drive-bottom{padding:13px 14px;border-radius:16px;max-height:60%}
 .drive-target{font-size:1rem}
 .drive-metrics{margin-top:10px}
 .drive-metrics strong{font-size:1.4rem}
 body.driving-mode .map-controls{top:calc(12px + env(safe-area-inset-top));right:12px}
 body.driving-mode .map-controls #toggle-stations,body.driving-mode .map-controls .zoom-controls{display:none}
 body.driving-mode .map-error{top:calc(140px + env(safe-area-inset-top));right:12px;left:12px;max-width:none}
 body.driving-mode .map-credit{bottom:calc(4px + env(safe-area-inset-bottom));font-size:.75rem}
 body.driving-mode .leaflet-bottom{bottom:calc(18px + env(safe-area-inset-bottom))}
}
@media(max-height:520px) and (orientation:landscape){
 .driving-hud{width:390px;max-width:calc(100vw - 90px);inset:10px auto 36px 12px;gap:8px}
 .drive-guidance{padding:9px 12px;margin-right:0}
 .drive-eyebrow,.drive-road,.drive-remaining,.drive-note,.drive-wake{display:none}
 .drive-bottom{max-height:62%;padding:10px 12px}
 .drive-metrics{margin:7px 0}
}
/* These suggestions belong to the original energy plan. Keep late asynchronous
   renders hidden until the user restores it or applies a verified new plan. */
body.energy-plan-stale #energy-result,
body.energy-plan-stale #trip-charge-summary,
body.energy-plan-stale #auto-plan-results,
body.energy-plan-stale #charge-suggestions { display: none !important; }
