/* One responsive HUD layout. All cards in their own flow, not overlapping fixed coordinates. */
.navactive #navhud:not([hidden]){position:absolute;inset:0;z-index:5;pointer-events:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px;padding:calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));box-sizing:border-box}
.navactive #navhud[hidden]{display:none!important}
.navactive #navhud .nav-instructions-stack{grid-area:1/1;align-self:start;justify-self:start;display:flex;flex-direction:column;gap:5px;width:min(100%,360px,32vw);max-height:100%;min-height:0;pointer-events:none}
.navactive #navhud .navtop{position:static;inset:auto;width:100%;max-width:none;max-height:none;box-sizing:border-box;flex:0 1 auto;min-height:0;overflow:auto;pointer-events:auto;gap:5px;padding:10px 12px;border-radius:14px;box-shadow:0 4px 16px #0004}
.navactive #navhud .navmode{font-size:10px;line-height:1.15;letter-spacing:.5px}
.navactive #navhud .maneuver-row{gap:9px}
.navactive #navhud #nav-symbol{width:48px;height:48px;min-width:48px;font-size:34px;border-radius:11px}
.navactive #navhud #navinstruction{font-size:clamp(16px,2.1vw,23px);line-height:1.15;overflow-wrap:anywhere;min-width:0}
.navactive #navhud #navnext{font-size:15px;line-height:1.2;margin:0 0 0 57px}
.navactive #navhud #nav-road-sign{padding:5px 7px;border-radius:8px}
.navactive #navhud #nav-road-name{font-size:13px}
.navactive #navhud #nav-lanes{padding:4px 6px}
.navactive #navhud .guidance-lane{font-size:17px}
.navactive #navhud .nav-alert-stack{position:static;inset:auto;display:flex;flex-direction:column;align-items:stretch;width:100%;min-height:0;overflow:auto;gap:4px;pointer-events:auto}
.navactive #navhud .nav-alert-stack>div{position:static!important;inset:auto!important;width:100%;max-width:none!important;box-sizing:border-box;flex-shrink:0;pointer-events:auto;font-size:11px;padding:6px 8px;border-radius:9px;box-shadow:0 3px 9px #0003;overflow-wrap:anywhere}
.navactive #navhud .nav-alert-stack>div[hidden],.navactive #navhud #navalert:empty{display:none!important}
.navactive #navhud #nav-vigilance strong{font-size:12px}
.navactive #navhud #nav-vigilance span{font-size:11px}
.navactive #navhud .road-nav-side{grid-area:1/2;position:static;inset:auto;align-self:start;justify-self:end;display:flex;gap:5px;pointer-events:auto}
.navactive #navhud .road-nav-side button{width:44px;height:44px;min-height:44px;border-radius:12px;box-shadow:0 3px 10px #0004}
.navactive #navhud .road-nav-side svg{width:22px;height:22px}
.navactive #navhud .nav-speed-stack{grid-area:2/1;position:static;inset:auto;align-self:end;justify-self:start;display:flex;gap:6px;align-items:flex-end;max-width:100%;pointer-events:none}
.navactive #navhud .navspeed{position:static;inset:auto;padding:3px;min-width:0;pointer-events:auto}
.navactive #navhud .speed-ring{width:68px;height:68px;border-width:2px;box-shadow:none}
.navactive #navhud .navspeed strong{font-size:29px}
.navactive #navhud .navspeed small{font-size:10px;margin-top:3px}
.navactive #navhud #speed-limit-hud{position:static;inset:auto;max-width:116px;pointer-events:auto}
.navactive #navhud #speed-sign{width:52px;height:52px;font-size:23px;border-width:4px}
.navactive #navhud .nav-trip-stack{grid-area:2/2;position:relative;inset:auto;width:min(100%,420px,46vw);justify-self:end;align-self:end;display:flex;flex-direction:column;gap:5px;pointer-events:auto;min-width:0}
.navactive #navhud .navbottom,.navactive #navhud .navcontrols{position:static;inset:auto;width:100%;max-width:none;box-sizing:border-box;margin:0;border-radius:12px;box-shadow:0 3px 12px #0004}
.navactive #navhud .navbottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 3px}
.navactive #navhud .navbottom>div{min-width:0;padding:1px 3px}
.navactive #navhud .navbottom svg{width:16px;height:16px;margin:0 auto 3px}
.navactive #navhud .navbottom strong{font-size:clamp(15px,2.2vw,24px);line-height:1.15;white-space:nowrap;letter-spacing:-.3px}
.navactive #navhud .navbottom small{font-size:10px;line-height:1.1;margin-top:3px}
.navactive #navhud .journey-progress{position:static;inset:auto;order:-1;width:100%;height:5px;border-radius:5px;flex-shrink:0;box-shadow:0 2px 6px #0002}
.navactive #navhud #journey-feedback{position:absolute;left:auto;right:0;top:auto;bottom:calc(100% + 6px);transform:none;max-width:100%;font-size:11px;padding:5px 7px}
.navactive #navhud .navcontrols{display:flex;flex-wrap:nowrap;gap:4px;padding:4px}
.navactive #navhud .navcontrols button{min-width:0;flex:1;padding:5px 3px;font-size:11px;line-height:1.12;min-height:40px;border-radius:8px;overflow-wrap:anywhere}
.navactive #navhud .navcontrols button[hidden]{display:none!important}
.navactive #navhud .nav-minimal .navbottom svg,.navactive.nav-minimal #navhud .navbottom svg{display:none}
.navactive .maplibregl-ctrl-bottom-right{bottom:0;right:0}
@media (orientation:portrait){
.navactive #navhud:not([hidden]){grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto;padding:calc(8px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(23px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));gap:7px}
.navactive #navhud .nav-instructions-stack{grid-area:1/1/2/3;width:100%;max-height:42dvh}
.navactive #navhud .navtop{padding:8px 10px}
.navactive #navhud #navinstruction{font-size:20px}
.navactive #navhud .road-nav-side{grid-area:2/2;align-self:end;display:grid;gap:5px}
.navactive #navhud .nav-speed-stack{grid-area:2/1}
.navactive #navhud .nav-trip-stack{grid-area:3/1/4/3;width:100%}
.navactive #navhud .navbottom strong{font-size:clamp(17px,5vw,25px)}
}
@media (orientation:landscape) and (max-height:540px){
.navactive #navhud:not([hidden]){padding:calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(19px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));gap:5px}
.navactive #navhud .nav-instructions-stack{width:min(100%,270px,34vw)}
.navactive #navhud .navtop{padding:6px 8px;gap:3px}
.navactive #navhud .navmode{font-size:8px}
.navactive #navhud #nav-symbol{width:36px;height:36px;min-width:36px;font-size:27px}
.navactive #navhud #navinstruction{font-size:clamp(14px,2.1vw,18px)}
.navactive #navhud #navnext{font-size:12px;margin-left:45px}
.navactive #navhud #nav-road-name{font-size:11px}
.navactive #navhud .guidance-lane{font-size:13px}
.navactive #navhud .road-nav-side button{width:40px;height:40px;min-height:40px}
.navactive #navhud .nav-trip-stack{width:min(100%,330px,46vw);gap:3px}
.navactive #navhud .navbottom{padding:4px 2px}
.navactive #navhud .navbottom svg{display:none}
.navactive #navhud .navbottom strong{font-size:clamp(12px,2.2vw,18px)}
.navactive #navhud .navbottom small{font-size:9px}
.navactive #navhud .navcontrols button{font-size:10px;min-height:36px}
.navactive #navhud .speed-ring{width:52px;height:52px}
.navactive #navhud .navspeed strong{font-size:23px}
.navactive #navhud #speed-sign{width:40px;height:40px;font-size:18px}
.navactive #navhud .journey-progress{height:3px}
}
@media (orientation:landscape) and (max-height:300px){
.navactive #navhud .navmode{font-size:7px}
.navactive #navhud .road-nav-side button{width:36px;height:36px;min-height:36px}
.navactive #navhud .navcontrols button{font-size:9px;min-height:34px}
}
