:root{--hajlo-safe-top:max(env(safe-area-inset-top,0px),var(--hajlo-native-top,0px));--hajlo-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--hajlo-native-bottom,0px));--hajlo-safe-left:max(env(safe-area-inset-left,0px),var(--hajlo-native-left,0px));--hajlo-safe-right:max(env(safe-area-inset-right,0px),var(--hajlo-native-right,0px));}
/* Five spatial systems, one palette and the original HAJLO controls. */
html[data-direction]{--dd-bg:#fffdf8;--dd-soft:#eef3ed;--dd-ink:#173d35;--dd-muted:#5d7369;--dd-line:#dae2d8;--dd-accent:#17664d;--dd-top:142px;--dd-bottom:calc(142px + var(--ev-alert-h,0px));--dd-left:0px;--dd-font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html[data-direction] body{background:var(--dd-bg)!important}
html[data-direction] #riquadroSchermo{position:fixed!important;top:calc(var(--dd-top) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;bottom:calc(var(--dd-bottom) + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;left:var(--dd-left)!important;right:0!important;width:calc(100% - var(--dd-left))!important;height:calc(100dvh - var(--dd-top) - var(--dd-bottom) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;border:0!important;border-radius:0!important}
html[data-direction] :is(#topbar,#actionbar){background:transparent!important;box-shadow:none!important;border:0!important;pointer-events:none!important;min-height:0!important;padding:0!important}
html[data-direction] #topbar{height:var(--dd-top)!important;top:var(--hajlo-safe-top,env(safe-area-inset-top,0px))!important}
html[data-direction] #topbar :is(.brand,#credit),html[data-direction] #actionbar>.solo-cruscotto,html[data-direction] #actionbar>#planciaRadar,html[data-direction] #pulsantiVista{display:none!important}
html[data-direction] #mapAttribution{visibility:hidden!important}
#dd-shell{position:fixed;inset:0;pointer-events:none;z-index:1003;color:var(--dd-ink);font:13px/1.25 var(--dd-font)}
#dd-shell *,#dd-shell *::before,#dd-shell *::after{box-sizing:border-box}
#dd-shell :is(button,a,input){pointer-events:auto;touch-action:manipulation}
#dd-shell :is(button,a){font-family:var(--dd-font)!important;text-transform:none!important;letter-spacing:0!important;text-shadow:none!important;box-shadow:none!important;cursor:pointer}
#dd-shell button{margin:0!important;background:var(--dd-bg)!important;color:var(--dd-ink)!important;border:1px solid var(--dd-line)!important;min-height:44px;padding:7px!important;border-radius:12px!important;font-size:12px!important;line-height:1.2!important;font-weight:600!important}
#dd-shell :is(button,a):focus-visible{outline:3px solid #bc8d39;outline-offset:2px}
#dd-shell button:active{background:var(--dd-soft)!important}
#dd-brand{position:absolute;top:var(--hajlo-safe-top,env(safe-area-inset-top,0px));left:0;right:0;height:44px;padding:0 12px;display:flex;align-items:center;gap:12px;background:var(--dd-bg);border-bottom:1px solid var(--dd-line)}
#dd-brand a{color:var(--dd-ink);text-decoration:none;display:flex;align-items:center;min-height:44px}#dd-brand b{font-size:23px;letter-spacing:-1.2px}#dd-brand b span{font-size:7px;letter-spacing:1.4px;margin-left:6px}#dd-title{font-size:10px;color:var(--dd-muted)}#dd-shell #dd-gps{margin-left:auto!important;font-size:10px!important;border:0!important;padding:0!important}
#dd-quick{position:absolute;left:0;right:0;top:calc(44px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)));height:54px;background:var(--dd-bg);padding:4px 8px;border-bottom:1px solid var(--dd-line)}
#dd-shell #barraComandi{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;width:100%;height:100%;padding:0!important;margin:0!important}
#dd-shell #barraComandi>button{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:44px;padding:4px 2px!important;font-size:9px!important;border-radius:10px!important;border:0!important;background:var(--dd-soft)!important;position:relative}
#dd-shell #barraComandi .ico{font-size:17px!important;line-height:1!important}#dd-shell #barraComandi .lab{font:600 8px/1.2 var(--dd-font)!important;letter-spacing:0!important;white-space:nowrap}
#dd-data{position:absolute;top:calc(98px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)));left:0;right:0;height:44px;background:var(--dd-bg);border-bottom:1px solid var(--dd-line);padding:3px 8px}
#dd-shell #quickIconStack{position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%!important;height:100%!important;gap:6px;margin:0!important;padding:0!important;transform:none!important}
#dd-shell #quickIconStack .iconItem{position:relative!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:4px;min-width:0!important;max-width:none!important;width:auto!important;margin:0!important}
#dd-shell #quickIconStack :is(#tempBadge,#altBadge,#italyOverviewBtn,#ventoBadge){height:36px!important;min-height:36px!important;width:auto!important;min-width:32px!important;max-width:none!important;border:0!important;border-radius:9px!important;background:var(--dd-soft)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:3px 4px!important;font:650 15px/1 var(--dd-font)!important;box-shadow:none!important;color:var(--dd-ink)!important;text-shadow:none!important;transform:none!important}
#dd-shell #quickIconStack svg{display:none!important}#dd-shell #quickIconStack #italyOverviewBtn::before{content:'◉';font-size:18px}
#dd-shell #quickIconStack :is(#tempBadgeNum,#altBadgeNum,#ventoBadgeNum){font:650 15px/1 var(--dd-font)!important;letter-spacing:0!important;color:var(--dd-ink)!important;text-shadow:none!important}
#dd-shell #quickIconStack .iconLabel{font:600 7px/1.1 var(--dd-font)!important;letter-spacing:0!important;background:none!important;color:var(--dd-muted)!important;position:static!important;padding:0!important;max-width:43px;white-space:normal!important}
#dd-readings{position:absolute;bottom:calc(64px + var(--ev-alert-h,0px) + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));left:0;right:0;height:78px;background:var(--dd-bg);border-top:1px solid var(--dd-line);display:grid;grid-template-columns:1fr 1.1fr;padding:8px 12px;gap:12px}
#dd-speed{min-width:0;display:flex;align-items:center;border-right:1px solid var(--dd-line);padding-right:10px}
#dd-shell #speedBadge{position:static!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;justify-content:space-between!important;gap:12px;width:100%!important;min-width:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;transform:none!important;visibility:visible!important}
#dd-shell #speedBadgeLimit{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border:3px solid #cf423c!important;border-radius:50%!important;background:white!important;color:#182e27!important;box-shadow:none!important;font:750 22px/1 var(--dd-font)!important;transform:none!important;visibility:visible!important}
#dd-shell #speedBadge.ignoto #speedBadgeLimit{border-color:#a5b3aa!important;color:#677c70!important}
#dd-shell #speedPill{position:static!important;display:flex!important;align-items:baseline!important;flex-direction:row!important;gap:3px;min-width:0!important;width:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;transform:none!important}
#dd-shell #speedBadgeNum{position:static!important;font:700 37px/1 var(--dd-font)!important;color:var(--dd-ink)!important;letter-spacing:-1px!important;text-shadow:none!important}
#dd-shell #speedUnita{position:static!important;font:600 8px/1 var(--dd-font)!important;color:var(--dd-muted)!important}
#dd-shell #speedBadge.over-limit #speedBadgeNum{color:#b52f3c!important}
#dd-shell #dd-hail{display:grid;grid-template-columns:auto 1fr;grid-template-rows:16px 1fr;gap:2px 7px;text-align:left;min-width:0;align-items:center;background:var(--dd-soft)!important;border:0!important;padding:7px 9px!important}
#dd-hail>span{font-size:8px;grid-column:1/-1;color:var(--dd-muted);font-weight:650}#dd-hail>b{font-size:29px;line-height:1}#dd-hail>small{font-size:9px;line-height:1.2}
html[data-dd-hail=high] #dd-shell #dd-hail{background:#a62b3c!important;color:white!important}html[data-dd-hail=high] #dd-hail>span{color:#ffe3e6}html[data-dd-hail=medium] #dd-shell #dd-hail{background:#fff0c9!important;color:#73501d!important}
#dd-primary{position:absolute;bottom:calc(var(--ev-alert-h,0px) + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));height:64px;left:0;right:0;background:var(--dd-bg);padding:5px 12px 15px}
#dd-shell #abComandiRow{display:grid!important;grid-template-columns:1fr 1fr 1.15fr;gap:7px;margin:0!important;padding:0!important;width:100%;height:44px}
#dd-shell #abComandiRow>button{min-width:0!important;flex:none!important;height:44px!important;font-size:12px!important;background:var(--dd-soft)!important}
#dd-shell #abComandiRow #openNavBtn{background:var(--dd-accent)!important;color:var(--dd-on,#fff)!important;border-color:var(--dd-accent)!important}
#dd-shell #abComandiRow :is(#reportTypeBtn,#reportType){display:none!important}
#dd-credit{position:absolute;bottom:calc(2px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));left:3px;right:3px;text-align:center;font:5px/1.1 var(--dd-font)!important;margin:0!important;color:var(--dd-muted);pointer-events:none}
#dd-map{position:absolute;right:8px;top:calc(var(--dd-top) + 9px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)));display:grid;grid-template-columns:38px 38px;gap:5px}
#dd-shell #dd-map button{min-height:38px;width:38px;padding:0!important;font-size:16px!important;background:var(--dd-bg)!important;box-shadow:0 2px 7px #0001!important}
#dd-shell #dd-expand,#dd-context{display:none}
/* 2. BINARIO: six always-visible controls in a vertical rail; no top icon row. */
html[data-direction=binario]{--dd-top:88px;--dd-left:64px}
html[data-direction=binario] #dd-brand{left:64px}
html[data-direction=binario] #dd-brand b{font-size:20px}html[data-direction=binario] #dd-brand b span{display:none}
html[data-direction=binario] #dd-quick{top:var(--hajlo-safe-top,env(safe-area-inset-top,0px));left:0;right:auto;width:64px;bottom:calc(142px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));height:auto;padding:8px 6px;border-right:1px solid var(--dd-line)}
html[data-direction=binario] #dd-shell #barraComandi{grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(44px,1fr));gap:6px}
html[data-direction=binario] #dd-shell #barraComandi>button{max-height:68px;height:100%;border-radius:13px!important}
html[data-direction=binario] #dd-data{top:calc(44px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)));left:64px}
/* 3. POLLICE: a bottom thumb keyboard, all primary and quick actions in reach. */
html[data-direction=pollice]{--dd-top:88px;--dd-bottom:258px}
html[data-direction=pollice] #dd-data{top:calc(44px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))}
html[data-direction=pollice] #dd-quick{top:auto;bottom:calc(64px + var(--ev-alert-h,0px) + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));height:116px;border-top:1px solid var(--dd-line);padding:7px 12px}
html[data-direction=pollice] #dd-shell #barraComandi{grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;gap:6px}
html[data-direction=pollice] #dd-shell #barraComandi>button{flex-direction:row;gap:7px;font-size:13px!important}
html[data-direction=pollice] #dd-shell #barraComandi .lab{font-size:11px!important}
html[data-direction=pollice] #dd-readings{bottom:calc(180px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))}
/* 4. ORIZZONTE: all driving instruments at the top, six shortcuts docked below. */
html[data-direction=orizzonte]{--dd-top:166px;--dd-bottom:118px}
html[data-direction=orizzonte] #dd-readings{bottom:auto;top:calc(44px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)));height:78px;border-top:0;border-bottom:1px solid var(--dd-line)}
html[data-direction=orizzonte] #dd-data{top:calc(122px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))}
html[data-direction=orizzonte] #dd-quick{top:auto;bottom:calc(64px + var(--ev-alert-h,0px) + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));height:54px;border-top:1px solid var(--dd-line)}
/* 5. FISARMONICA: native shortcuts stay on top; contextual console expands by choice. */
html[data-direction=fisarmonica]{--dd-top:98px;--dd-bottom:188px}
html[data-direction=fisarmonica] #dd-data{top:auto;bottom:calc(142px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));height:46px;border-top:1px solid var(--dd-line)}
html[data-direction=fisarmonica] #dd-shell #dd-expand{display:block;position:absolute;bottom:calc(188px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));right:12px;min-height:32px;padding:5px 11px!important;font-size:10px!important;border-radius:12px 12px 0 0!important}
html[data-direction=fisarmonica].dd-expanded{--dd-bottom:296px}
html[data-direction=fisarmonica].dd-expanded #dd-shell #dd-expand{bottom:calc(296px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))}
html[data-direction=fisarmonica].dd-expanded #dd-context{display:grid;grid-template-columns:repeat(2,1fr);position:absolute;left:0;right:0;bottom:calc(188px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)));height:108px;padding:8px 12px;gap:6px;background:var(--dd-bg);border-top:1px solid var(--dd-line)}
/* Panels retain their native stacking and handlers; hide only the design surface. */
html[data-direction].dd-panel #dd-shell{visibility:hidden;pointer-events:none}
html[data-direction].dd-panel #riquadroSchermo{inset:0!important;width:100%!important;height:100dvh!important}
html[data-direction].dd-help #dd-help-close{display:block}
#dd-help-close{display:none;position:fixed;top:calc(8px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)));left:12px;z-index:5900;min-height:44px;padding:8px 14px;border:1px solid #d9e3dc;border-radius:12px;background:white;color:#173d35;font:600 13px var(--dd-font)}
html[data-direction].dd-help #topbarDropdown{top:calc(60px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;bottom:12px!important;max-height:calc(100dvh - 74px - var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;pointer-events:auto!important}
html[data-direction].dd-no-gps #fixedVehicleIcon{visibility:hidden!important}
html[data-direction].dd-no-gps.dd-position-known #fixedVehicleIcon{visibility:visible!important}
/* Keep the vehicle colour in every renderer. The label identifies a stale fix. */
html[data-direction].dd-no-gps.dd-position-known :is(#fixedVehicleIcon,.hajlo-vehicle-marker)>:first-child{opacity:.72}
html[data-direction].dd-no-gps.dd-position-known :is(#fixedVehicleIcon,.hajlo-vehicle-marker)::after{content:"Ultima posizione";position:absolute;top:100%;left:50%;transform:translateX(-50%) rotate(var(--controrotazione,0deg));padding:3px 6px;border-radius:6px;background:#fff;color:#303734;font:600 10px/1.2 system-ui;white-space:nowrap;box-shadow:0 1px 4px #0002;pointer-events:none}
html[data-direction].dd-radar #dd-shell #dd-primary{visibility:hidden}
html[data-direction].dd-radar #abRadarRow{pointer-events:auto!important;display:flex!important;position:fixed!important;left:12px;bottom:20px;z-index:1100}
html[data-direction].dd-guiding{--dd-top:210px}
html[data-direction].dd-guiding #guidaCompatta{position:fixed!important;top:calc(142px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;left:8px!important;right:8px!important;pointer-events:auto!important;z-index:1100}
html[data-textsize=large] #dd-shell #barraComandi .lab{font-size:10px!important}
html[data-textsize=large] #dd-shell #dd-hail>small{font-size:10px!important}
html[data-direction] #dd-shell #dd-credit{font-size:5px!important}
@media(max-height:720px){html[data-direction=binario] #dd-shell #barraComandi>button{max-height:60px}#dd-brand b span{display:none}}
@media(prefers-reduced-motion:reduce){#dd-shell *{transition:none!important;animation:none!important}}
/* The native dashboard draws decorative icons with pseudo-elements. Use the native
   button contents here so its old silhouettes do not collide with the new geometry. */
#dd-shell button::before,#dd-shell button::after,#dd-shell .ico::before,#dd-shell .ico::after{content:none!important;display:none!important}
#dd-shell #barraComandi .ico{font-family:Arial,sans-serif!important;font-size:17px!important;line-height:1!important;color:var(--dd-ink)!important;opacity:1!important;background:none!important;text-indent:0!important;width:auto!important;height:auto!important;filter:none!important;transform:none!important;overflow:visible!important}
#dd-shell #barraComandi .lab{color:var(--dd-ink)!important;opacity:1!important;text-indent:0!important}
#dd-shell #abComandiRow>button{color:var(--dd-ink)!important;font:650 12px/1.2 var(--dd-font)!important;text-indent:0!important;letter-spacing:0!important;filter:none!important}
#dd-shell #abComandiRow>#openNavBtn{color:var(--dd-on,#fff)!important}
#dd-shell #italyOverviewBtn::before{content:'◉'!important;display:block!important}
html[data-direction] #actionbar::before,html[data-direction] #actionbar::after{display:none!important;content:none!important}
html[data-direction].dd-no-gps #bussolaInvito{display:none!important}
#dd-shell #barraComandi .ico{display:block!important}
#dd-shell #topbarDropdownToggle #status{position:static!important;display:inline!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important;font-size:8px!important}
html[data-direction] #recenterBtn{display:none!important}
#dd-shell #altBadge{font-size:0!important}
html[data-direction].dd-panel #dd-shell #speedBadge{visibility:hidden!important}
html[data-direction] #pillolaPosizione{display:none!important}
#dd-shell #dd-map #serviziBtn{position:static!important;inset:auto!important;width:auto!important;min-width:38px!important;height:38px!important;min-height:38px!important;grid-column:1/-1;transform:none!important;font-size:10px!important;max-width:81px!important;align-items:center!important;justify-content:center!important;padding:4px!important}
html[data-direction=fisarmonica]{--dd-bottom:220px}
html[data-direction=fisarmonica].dd-expanded{--dd-bottom:328px}
#dd-shell #quickIconStack{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
#dd-shell #quickIconStack .iconItem{flex-direction:column!important;gap:0!important}
#dd-shell #quickIconStack :is(#tempBadge,#altBadge,#italyOverviewBtn,#ventoBadge){height:23px!important;min-height:23px!important;background:none!important;padding:1px!important}
#dd-shell #quickIconStack #altBadge>span:not(#altBadgeNum){display:none!important}
#dd-shell #quickIconStack .iconLabel{height:10px;max-width:none!important;white-space:nowrap!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-decoration:none!important;padding:0!important;font-size:7px!important}
html[data-direction] #reportTypeModal{z-index:5200!important}
/* Keep cancellation reachable while the full list of report types scrolls. */
html[data-direction] #reportTypeCancel{position:sticky!important;bottom:0!important;z-index:2;background:#fff!important;box-shadow:0 -5px 12px #fff!important}
#dd-shell #dd-map #destWeatherBtn{position:static!important;inset:auto!important;width:auto!important;min-width:38px!important;max-width:81px!important;min-height:38px!important;height:auto!important;grid-column:1/-1;transform:none!important;white-space:normal!important;font-size:9px!important;padding:5px!important}
html[data-direction][data-textsize=large] #dd-shell #abComandiRow>button{font-size:14px!important}
html[data-direction][data-textsize=large] #dd-shell #quickIconStack .iconLabel{font-size:9px!important}
html[data-direction][data-textsize=large] #dd-shell #dd-hail>small{font-size:11px!important}
html[data-direction][data-textsize=large] #dd-shell #dd-title{font-size:12px!important}
html[data-direction][data-textsize=small] #dd-shell #barraComandi .lab{font-size:7px!important}
html[data-direction][data-textsize=small] #dd-shell #abComandiRow>button{font-size:10px!important}

#dd-shell #dd-map #compassItem{position:static!important;inset:auto!important;transform:none!important;grid-column:1/-1;max-width:81px!important;margin:0!important}
#dd-shell #dd-map #compassItem .iconLabel{font:8px/1.1 var(--dd-font)!important;background:none!important;color:var(--dd-muted)!important}
html[data-direction=binario].dd-guiding,html[data-direction=pollice].dd-guiding{--dd-top:156px}
html[data-direction=binario].dd-guiding #guidaCompatta{top:calc(88px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;left:72px!important}
html[data-direction=pollice].dd-guiding #guidaCompatta{top:calc(88px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important}
html[data-direction=orizzonte].dd-guiding{--dd-top:234px}
html[data-direction=orizzonte].dd-guiding #guidaCompatta{top:calc(166px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important}
html[data-direction=fisarmonica].dd-guiding{--dd-top:166px}
html[data-direction=fisarmonica].dd-guiding #guidaCompatta{top:calc(98px + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important}

/* Real version and identity on two compact rows, below the system status bar. */
html[data-direction=evoluzione]{--dd-top:134px}
html[data-direction=evoluzione].dd-guiding{--dd-top:202px}
html[data-direction=evoluzione] #dd-brand{height:50px;display:grid;grid-template-columns:max-content minmax(0,1fr) 44px;grid-template-rows:26px 20px;gap:0 8px;padding:2px 12px}
html[data-direction=evoluzione] #dd-brand a{min-height:26px;white-space:nowrap}
html[data-direction=evoluzione] #dd-brand b{font-size:22px}
html[data-direction=evoluzione] #dd-title{min-width:0;white-space:nowrap}
html[data-direction=evoluzione] #dd-brand #appVersion{position:static!important;display:inline!important;font:600 11px/1.2 var(--dd-font)!important;color:var(--dd-ink)!important;letter-spacing:0!important;white-space:nowrap}
html[data-direction=evoluzione] #dd-brand #credit{display:block!important;position:static!important;inset:auto!important;grid-column:1/3;grid-row:2;font:500 11px/20px var(--dd-font)!important;color:var(--dd-ink)!important;background:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left;white-space:normal;overflow-wrap:anywhere;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation;cursor:pointer;pointer-events:auto;z-index:auto}
html[data-direction=evoluzione] #dd-shell #dd-gps{grid-column:3;grid-row:1/3;margin:0!important;min-height:44px!important;width:44px}
html[data-direction=evoluzione] #dd-quick{top:calc(50px + var(--hajlo-safe-top));height:46px;padding:0 8px 2px}
html[data-direction=evoluzione] #dd-data{top:calc(96px + var(--hajlo-safe-top));height:38px;padding:2px 8px}
html[data-direction=evoluzione].dd-guiding #guidaCompatta{top:calc(134px + var(--hajlo-safe-top))!important}
/* Landscape side cutouts use the same native measurements. */
html[data-direction=evoluzione] :is(#dd-brand,#dd-quick,#dd-data,#dd-readings,#dd-primary){left:var(--hajlo-safe-left);right:var(--hajlo-safe-right)}
html[data-direction=evoluzione] #dd-map{right:calc(8px + var(--hajlo-safe-right))}
@media(max-width:360px){html[data-direction=evoluzione] #dd-brand{padding-left:8px;padding-right:8px;column-gap:6px}html[data-direction=evoluzione] #dd-brand b{font-size:20px}html[data-direction=evoluzione] #dd-brand #credit{font-size:10px!important}}

/* Keep the native overspeed state visible in every Evoluzione palette and drive layout. */
html[data-direction=evoluzione] #dd-shell #speedPill{height:auto!important;padding:4px 6px!important;border-radius:8px!important;box-sizing:border-box!important}
html[data-direction=evoluzione] #dd-shell #speedBadge.over-limit #speedPill{background:#b42332!important;box-shadow:0 0 0 2px #b4233233!important;animation:none!important}
html[data-direction=evoluzione] #dd-shell #speedBadge.over-limit #speedBadgeNum,
html[data-direction=evoluzione] #dd-shell #speedBadge.over-limit #speedUnita{color:#ffffff!important}
html[data-direction=evoluzione] #dd-shell #speedBadge.over-limit #speedBadgeLimit{border-color:#b42332!important;animation:none!important}

/* Requested GPS/radar states, bound to actual engine state in evolution-home.js. */
html[data-direction=evoluzione]{--dd-status-on:#137547;--dd-status-off:#b42332}
html[data-direction=evoluzione] #dd-shell #dd-gps{font-size:11px!important;font-weight:800!important;background:none!important;color:var(--dd-status-off)!important}
html[data-direction=evoluzione] #dd-shell #dd-gps[data-state=on]{color:var(--dd-status-on)!important}
html[data-direction=evoluzione] #dd-shell #quickIconStack #italyOverviewBtn{color:#172025!important;background:none!important;min-width:44px!important}
html[data-direction=evoluzione] #dd-shell #quickIconStack .iconItem:has(#italyOverviewBtn) .iconLabel{color:#172025!important}
html[data-direction=evoluzione] #dd-shell #quickIconStack #italyOverviewBtn[data-state=on],html[data-direction=evoluzione] #dd-shell #quickIconStack .iconItem:has(#italyOverviewBtn[data-state=on]) .iconLabel{color:var(--dd-status-on)!important}
html[data-direction=evoluzione] #dd-shell #quickIconStack .iconItem:has(#italyOverviewBtn){min-height:38px!important}
html[data-direction=evoluzione] #dd-shell #quickIconStack #italyOverviewBtn:focus-visible,html[data-direction=evoluzione] #dd-shell #dd-gps:focus-visible{outline:2px solid currentColor!important;outline-offset:1px}
/* Keep the requested colours legible in HAJLO's existing dark palettes. */
html[data-direction=evoluzione][data-ev-tone]:not([data-ev-tone=sabbia]):not([data-ev-tone=vetro]){--dd-status-on:#71daa7;--dd-status-off:#ff9093}
/* The Radar cell has the same transparent surface as temperature, altitude and wind. */
html[data-direction=evoluzione] #dd-shell #quickIconStack .iconItem:has(#italyOverviewBtn){background:none!important}
html[data-direction=evoluzione][data-ev-tone]:not([data-ev-tone=sabbia]):not([data-ev-tone=vetro]) #dd-shell #quickIconStack #italyOverviewBtn:not([data-state=on]),html[data-direction=evoluzione][data-ev-tone]:not([data-ev-tone=sabbia]):not([data-ev-tone=vetro]) #dd-shell #quickIconStack .iconItem:has(#italyOverviewBtn:not([data-state=on])) .iconLabel{color:var(--dd-ink)!important}
/* Legal-limit visual signal is independent of the chosen audible tolerance. */
html[data-direction=evoluzione] #dd-shell #speedBadge.speed-exceeded #speedPill{background:#b42332!important;box-shadow:0 0 0 2px #b4233233!important;animation:none!important}
html[data-direction=evoluzione] #dd-shell #speedBadge.speed-exceeded :is(#speedBadgeNum,#speedUnita){color:#fff!important}
html[data-direction=evoluzione] #dd-shell #speedBadge.speed-exceeded #speedBadgeLimit{border-color:#b42332!important}

/* The original speed control is a div/span: make its native click handler reachable inside the pointer-transparent shell. */
#dd-shell #speedBadge,#dd-shell #speedBadgeLimit{pointer-events:auto!important;cursor:pointer;touch-action:manipulation}
#dd-shell #speedBadge:focus-visible{outline:3px solid var(--dd-accent);outline-offset:3px;border-radius:10px!important}

/* A default is visibly distinct from a mapped number, without another overlay. */
#dd-shell #speedBadge.dedotto #speedBadgeLimit{border-style:dashed!important}

#dd-shell #speedBadge[data-limit-basis=nearby] #speedBadgeLimit{position:relative!important}
#dd-shell #speedBadge[data-limit-basis=nearby] #speedBadgeLimit::after{content:'vicino';position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);font:600 8px/1.1 var(--dd-font);color:var(--dd-ink);letter-spacing:0;white-space:nowrap}
/* A camera release control, separate from the GPS switch. */
#hajlo-map-unlock{position:fixed;left:calc(10px + var(--hajlo-safe-left,0px));top:calc(var(--dd-top,176px) + var(--hajlo-safe-top,0px) + 10px);z-index:1500;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:48px;min-height:48px;padding:5px;border:1px solid var(--dd-line);border-radius:16px;background:var(--dd-bg);color:var(--dd-ink);box-shadow:0 3px 10px #0002;touch-action:manipulation}
#hajlo-map-unlock small{font:600 10px/1.2 var(--dd-font,system-ui)}
#hajlo-map-unlock[aria-pressed=true]{background:var(--dd-accent,#21684b);color:var(--dd-on,#fff);border-color:currentColor}
html.dd-panel #hajlo-map-unlock,html.dd-radar #hajlo-map-unlock,html.ev-drive-menu-open #hajlo-map-unlock{display:none!important}

html[data-direction=evoluzione] #bussolaNordBtn{display:none!important}
