/* The active navigation has one measured maneuver band and one 52px console. */
html[data-direction=evoluzione].ev-drive{--dd-top:var(--ev-drive-top,56px)!important;--dd-bottom:calc(52px + var(--ev-alert-h,0px))!important;--dd-left:0px!important}
#ev-drive-controls,#ev-drive-drawer{display:none}
html[data-direction=evoluzione].ev-drive #ev-drive-controls{position:absolute;bottom:var(--hajlo-safe-bottom);right:var(--hajlo-safe-right);height:52px;width:148px;display:flex;gap:3px;padding:4px;pointer-events:auto;background:var(--dd-bg)}
html[data-direction=evoluzione].ev-drive #ev-drive-controls button{flex:1;min-width:0;font-size:22px!important;border:0!important;padding:2px!important;line-height:1!important;min-height:44px}
#ev-drive-controls small{display:block;font-size:8px;line-height:1.2;margin-top:2px}
html[data-direction=evoluzione].ev-drive #dd-shell #ev-drive-menu{background:var(--dd-accent)!important;color:var(--dd-on,#fff)!important}
html[data-direction=evoluzione].ev-drive #dd-readings{position:absolute!important;left:var(--hajlo-safe-left)!important;right:calc(148px + var(--hajlo-safe-right))!important;bottom:var(--hajlo-safe-bottom)!important;height:52px!important;display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;padding:3px 4px 3px 7px!important;gap:4px!important;border:0!important;min-width:0}
html[data-direction=evoluzione].ev-drive #dd-speed{padding:0!important;border:0!important;min-width:0}
html[data-direction=evoluzione].ev-drive #dd-shell #speedBadge{gap:4px!important}
html[data-direction=evoluzione].ev-drive #dd-shell #speedBadgeNum{font-size:28px!important;letter-spacing:-1px!important}
html[data-direction=evoluzione].ev-drive #dd-shell #speedBadgeLimit{width:28px!important;height:28px!important;min-width:28px!important;font-size:18px!important;border-width:2px!important;margin:0!important}
html[data-direction=evoluzione].ev-drive #dd-shell #speedUnita{font-size:7px!important}
html[data-direction=evoluzione].ev-drive #dd-shell #dd-hail{padding:3px 4px!important;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-height:44px!important;background:none!important;border-radius:7px!important;min-width:0}
html[data-direction=evoluzione].ev-drive #dd-hail>span{font-size:7px;line-height:1.1}
html[data-direction=evoluzione].ev-drive #dd-hail>b{font-size:22px;line-height:1.1}
html[data-direction=evoluzione].ev-drive #dd-hail>small{display:none}
html[data-direction=evoluzione].ev-drive #dd-shell #dd-credit{display:none}
html[data-direction=evoluzione].ev-drive #guidaCompatta{position:fixed!important;top:var(--hajlo-safe-top)!important;left:var(--hajlo-safe-left)!important;right:var(--hajlo-safe-right)!important;height:auto!important;min-height:56px!important;display:grid!important;grid-template-columns:26px 43px minmax(0,1fr) minmax(100px,max-content);align-items:center!important;gap:6px!important;padding:5px 8px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--dd-accent)!important;color:var(--dd-on,#fff)!important;z-index:1100!important;overflow:visible!important;box-sizing:border-box!important;font-family:var(--dd-font)!important}
html[data-direction=evoluzione].ev-drive #guidaFreccia{font-size:28px!important;color:inherit!important}
html[data-direction=evoluzione].ev-drive #guidaDist{font-size:17px!important;white-space:normal!important;overflow-wrap:anywhere;color:inherit!important}
html[data-direction=evoluzione].ev-drive #guidaIstr{overflow:visible!important;color:inherit!important;min-width:0}
html[data-direction=evoluzione].ev-drive #guidaIstr>span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;display:block!important;font-size:11px!important;line-height:1.15!important;overflow-wrap:anywhere}
html[data-direction=evoluzione].ev-drive #guidaIstr>span:first-child{font-size:15px!important}
html[data-direction=evoluzione].ev-drive #guidaIstr>span:nth-child(3){font-size:10px!important}
html[data-direction=evoluzione].ev-drive #guidaEta{position:static!important;display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;gap:2px!important;grid-column:4;grid-row:1;padding:2px 0 2px 6px!important;border:0!important;border-left:1px solid currentColor!important;margin:0!important;width:auto!important;background:none!important;color:inherit!important;min-height:42px!important;font-family:var(--dd-font)!important}
html[data-direction=evoluzione].ev-drive #guidaEta .o{font-size:16px!important;order:0;line-height:1.1;color:inherit!important}
html[data-direction=evoluzione].ev-drive #guidaEta .e{font-size:8px!important;order:1;color:inherit!important;letter-spacing:0!important}
html[data-direction=evoluzione].ev-drive #guidaEta .k{display:none!important}
html[data-direction=evoluzione].ev-drive #guidaEta .guidaResiduo:not(:empty){display:block;order:2;font-size:11px;line-height:1.15;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-direction=evoluzione].ev-drive #ev-drive-drawer:not([hidden]){display:flex;flex-direction:column;position:absolute;pointer-events:auto;left:calc(8px + var(--hajlo-safe-left));right:calc(8px + var(--hajlo-safe-right));bottom:calc(60px + var(--hajlo-safe-bottom));max-height:calc(100dvh - var(--dd-top) - 76px - var(--hajlo-safe-top) - var(--hajlo-safe-bottom));border:1px solid var(--dd-line);border-radius:18px;background:var(--dd-bg);box-shadow:0 12px 50px #0005;overflow:hidden;z-index:1800}
#ev-drive-drawer>header{display:flex;align-items:center;justify-content:space-between;padding:5px 12px;border-bottom:1px solid var(--dd-line);flex:none}
#ev-drive-drawer>header button{width:44px;border:0!important;font-size:22px!important}
#ev-drive-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px;pointer-events:auto}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll :is(#dd-brand,#dd-quick,#dd-data,#dd-map,#dd-primary,#dd-context){position:static!important;inset:auto!important;height:auto!important;width:100%!important;padding:6px 0!important;margin:0!important;pointer-events:auto}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-brand{display:grid!important;min-height:50px}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-quick{display:block!important}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-data{display:block!important}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-map{display:flex!important;flex-wrap:wrap;gap:6px}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-map button{width:44px!important;min-height:44px!important}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-primary{display:block!important}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-context{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html[data-direction=evoluzione].ev-drive #ev-drive-scroll #dd-context button{min-height:44px}
html[data-direction=evoluzione].ev-drive #dd-shell #dd-expand{display:none!important}
html[data-direction=evoluzione].ev-drive #stopNavFloatingBtn,html[data-direction=evoluzione].ev-drive #cancellaPercorsoMappa{display:none!important}
html[data-direction=evoluzione].ev-drive.ev-alert-active #dd-shell #planciaDisplay{bottom:calc(60px + var(--hajlo-safe-bottom))!important;left:calc(8px + var(--hajlo-safe-left))!important;right:calc(8px + var(--hajlo-safe-right))!important}
html[data-direction=evoluzione].ev-drive #ev-drive-drawer[hidden]{display:none!important}
@media(max-width:350px){html[data-direction=evoluzione].ev-drive #guidaCompatta{grid-template-columns:24px 35px minmax(0,1fr) minmax(96px,max-content);gap:5px!important;padding-left:6px!important;padding-right:6px!important}html[data-direction=evoluzione].ev-drive #guidaEta .o{font-size:14px!important}html[data-direction=evoluzione].ev-drive #guidaDist{font-size:15px!important}html[data-direction=evoluzione].ev-drive #guidaIstr>span:first-child{font-size:14px!important}html[data-direction=evoluzione].ev-drive #dd-shell #speedBadgeNum{font-size:24px!important}html[data-direction=evoluzione].ev-drive #dd-shell #speedBadgeLimit{width:25px!important;height:25px!important;min-width:25px!important}}
html[data-direction=evoluzione].ev-drive #ev-drive-stop{width:100%;min-height:44px;background:var(--dd-soft)!important}
html[data-direction=evoluzione].ev-drive #riquadroSchermo{bottom:calc(var(--dd-bottom) + var(--hajlo-safe-bottom))!important;height:calc(100dvh - var(--dd-top) - var(--dd-bottom) - var(--hajlo-safe-top) - var(--hajlo-safe-bottom))!important}

html[data-direction=evoluzione].ev-drive #dd-shell #ev-drive-stop-visible{color:#ad3036!important;background:var(--dd-bg)!important;border:1px solid #ad303655!important}
/* POI results stay outside the closed navigation drawer and the hidden home shell.
   The measured 44px results bar reserves its own space only when categories are active. */
html[data-direction=evoluzione].ev-drive.ev-poi-visible:not(.ev-poi-open):not(.dd-panel):not(.dd-radar) #riquadroSchermo{bottom:calc(var(--dd-bottom) + 44px + var(--hajlo-safe-bottom))!important;height:calc(100dvh - var(--dd-top) - var(--dd-bottom) - 44px - var(--hajlo-safe-top) - var(--hajlo-safe-bottom))!important}

html.ev-theme #ev-poi-dock{box-sizing:border-box}
html[data-direction=evoluzione].ev-drive-menu-open:not(.ev-poi-open) #ev-poi-dock{visibility:hidden;pointer-events:none}

/* Compact live camera/tutor notice: native handlers and distance updates remain intact. */
html[data-direction=evoluzione] #speedCameraPopup{position:fixed!important;top:auto!important;bottom:calc(var(--hajlo-safe-bottom,0px) + var(--dd-bottom,100px) + 8px)!important;left:calc(var(--hajlo-safe-left,0px) + 8px)!important;right:calc(var(--hajlo-safe-right,0px) + 8px)!important;height:auto!important;min-height:0!important;max-height:min(145px,28vh)!important;overflow:auto!important;margin:0!important;padding:10px 12px!important;border-radius:16px!important;z-index:6250!important;pointer-events:auto!important;box-shadow:0 3px 14px #0002!important}
html[data-direction=evoluzione].ev-drive #speedCameraPopup{bottom:calc(var(--hajlo-safe-bottom,0px) + 60px + var(--ev-alert-h,0px))!important}
html[data-direction=evoluzione] #speedCameraPopup #closeSpeedCameraPopup{min-width:44px!important;min-height:44px!important;padding:4px 9px!important;font-size:12px!important}
html[data-direction=evoluzione] #speedCameraPopup #veloxTitolo{font-size:16px!important;line-height:1.2!important}
html[data-direction=evoluzione] #speedCameraPopup #veloxCartello{width:40px!important;height:40px!important;font-size:17px!important}
html[data-direction=evoluzione] #speedCameraPopup #veloxRigaTesto{font-size:18px!important;line-height:1.2!important}
html[data-direction=evoluzione] #speedCameraPopup #veloxFonte{font-size:11px!important;line-height:1.2!important}
html[data-direction=evoluzione] #speedCameraPopup.oltre{border-color:#c8102e!important}
