 
html:has(body.driving){overflow:hidden}
body.driving{padding:0!important;margin:0!important;overflow:hidden!important;width:100vw!important;height:100dvh!important;background:#0b2526!important}
body.driving #touring-global-sidebar,body.driving #touring-global-toggle,body.driving #touring-global-shade{display:none!important}
body.driving .shell,body.driving.tg-nav-route>.shell{position:fixed!important;inset:0!important;z-index:20000!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important;display:block!important;grid-template-columns:1fr!important;margin:0!important;padding:0!important;background:#dfe8df}
body.driving .shell>.side{display:none!important}
body.driving .shell>.mapshell{position:absolute!important;inset:0!important;height:100%!important;width:100%!important;min-height:0!important;overflow:hidden!important}
body.driving #map{height:100%!important;width:100%!important}
body.driving #drive-hud{display:block!important;top:calc(17px + env(safe-area-inset-top,0px))!important;left:clamp(12px,2vw,28px)!important;bottom:auto!important;width:min(490px,calc(100% - 160px))!important;max-width:none!important;padding:16px 19px!important;border-radius:17px!important;z-index:650!important}
body.driving .drive-turn{font-size:clamp(22px,2.5vw,34px)!important;margin:7px 0 11px!important}
body.driving .drive-stats b{font-size:clamp(14px,1.5vw,19px)}
body.driving #satnav-speed{display:block!important;top:auto!important;bottom:calc(108px + env(safe-area-inset-bottom,0px))!important;left:clamp(13px,2vw,28px)!important;z-index:650!important;min-width:95px!important}
body.driving .float-controls{top:calc(19px + env(safe-area-inset-top,0px))!important;right:clamp(12px,2vw,27px)!important;z-index:670!important}
body.driving .float-controls #settings-toggle,body.driving .float-controls #alternate-route{display:none!important}
body.driving .float-controls button{min-width:48px;min-height:48px;border:1px solid #dce8dc}
body.driving #route-choice{display:none!important}
body.driving #map-caption{display:none!important}
body.driving .leaflet-control-zoom{display:none!important}
#touring-drive-dock{display:none}
body.driving #touring-drive-dock{position:absolute;bottom:calc(13px + env(safe-area-inset-bottom,0px));left:clamp(12px,2vw,28px);right:clamp(12px,2vw,28px);z-index:680;display:flex;align-items:center;gap:14px;padding:12px 14px;background:#113a34;color:#fff;border:1px solid #407363;border-radius:16px;box-shadow:0 8px 30px #082a2a88;font:600 13px/1.4 "DM Sans",sans-serif}
#touring-drive-dock .td-destination{flex:1;min-width:0}
#touring-drive-dock .td-destination small{display:block;color:#b5d9c0;font-size:10px;font-weight:800;letter-spacing:.7px}
#touring-drive-dock .td-destination strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:15px}
#touring-drive-dock button{border:1px solid #718e86;border-radius:11px;background:#e1f1d7;color:#173e35;font-weight:850;padding:11px 15px;min-height:46px;white-space:nowrap}
#touring-drive-dock #td-stop{background:#fff0eb;color:#872f29;border-color:#f3b8ac}
#touring-drive-dock button:focus-visible{outline:3px solid #ffcc80}
body.driving .drive-warning{color:#ffe1a2!important}
body.driving .map .leaflet-marker-pane{z-index:625}
@media(max-width:700px){
 body.driving #drive-hud{top:calc(11px + env(safe-area-inset-top,0px))!important;left:10px!important;width:calc(100% - 85px)!important;padding:11px 12px!important}
 body.driving .drive-hud-label{font-size:8px}
 body.driving .drive-turn{font-size:19px!important;margin:5px 0!important}
 body.driving .drive-stats{gap:5px}
 body.driving .drive-stats span{padding:6px 5px}
 body.driving .drive-stats b{font-size:12px}
 body.driving .drive-stats small{font-size:8px}
 body.driving .drive-warning{font-size:8px;line-height:1.25;margin-top:7px}
 body.driving .float-controls{top:calc(12px + env(safe-area-inset-top,0px))!important;right:9px!important;gap:7px}
 body.driving .float-controls button{min-height:44px;min-width:44px;height:44px;width:44px}
 body.driving #touring-drive-dock{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));gap:7px;padding:8px;border-radius:13px}
 #touring-drive-dock .td-destination strong{font-size:12px}
 #touring-drive-dock .td-destination small{font-size:9px}
 #touring-drive-dock button{padding:9px;font-size:11px;min-height:42px}
 body.driving #satnav-speed{bottom:calc(81px + env(safe-area-inset-bottom,0px))!important;left:9px!important;padding:7px 10px!important;min-width:78px!important}
 body.driving #satnav-speed strong{font-size:25px}
}
@media(max-width:390px){body.driving .drive-stats{grid-template-columns:repeat(3,minmax(0,1fr))}body.driving #touring-drive-dock .td-destination{max-width:38%}}
