/* Shared Evoluzione design system. Native display conditions and controls remain intact. */
html.ev-theme{--ev-bg:#fffdf8;--ev-soft:#eef3ed;--ev-ink:#173d35;--ev-muted:#60776b;--ev-line:#dce5d8;--ev-green:#17664d;--ev-vh:100dvh;--ev-vt:0px;--ev-gap:12px;--ev-font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio){--bg:var(--ev-paper,#f5f6f0);--carta:var(--ev-bg);--panel:var(--ev-bg);--testo:var(--ev-ink);--testo-2:var(--ev-muted);--muted:var(--ev-muted);--verde:var(--ev-green);--verde-2:var(--ev-green);--verde-p:#e4f0e6;--su-verde:var(--ev-on-accent,#fff);--beige:var(--ev-soft);--line:var(--ev-line);--oro:var(--ev-green);--su-oro:#fff;--petrolio:var(--ev-green);--barlow:var(--ev-font);--num:var(--ev-font);font-family:var(--ev-font)!important;color:var(--ev-ink)!important;-webkit-font-smoothing:antialiased;text-shadow:none!important;line-height:1.45}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) *{box-sizing:border-box;text-shadow:none!important;font-family:var(--ev-font)!important;letter-spacing:normal}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) button{min-height:44px!important;padding:10px 13px!important;background:var(--ev-soft)!important;color:var(--ev-ink)!important;border:1px solid var(--ev-line)!important;border-radius:12px!important;box-shadow:none!important;text-transform:none!important;font:600 14px/1.3 var(--ev-font)!important;letter-spacing:0!important;margin:0;cursor:pointer;touch-action:manipulation;max-width:100%;white-space:normal}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) button:disabled{opacity:.48;cursor:default}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) :is(button,input,select,textarea):focus-visible{outline:3px solid #c29b51!important;outline-offset:2px}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) :is(input,select,textarea){font:400 16px/1.4 var(--ev-font)!important;color:var(--ev-ink)!important;accent-color:var(--ev-green);box-shadow:none!important;max-width:100%}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) select{min-height:46px!important;border:1px solid #c8d6c5!important;border-radius:11px!important;background:var(--ev-input,#fff)!important;padding:10px 12px!important;min-width:0}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) textarea{border:1px solid #c8d6c5!important;border-radius:12px!important;background:var(--ev-input,#fff)!important;padding:12px!important;min-height:110px!important;resize:vertical}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) input:is([type=checkbox],[type=radio]){width:20px!important;height:20px!important;min-height:20px!important;flex-shrink:0;box-shadow:none!important;filter:none!important}
html.ev-theme :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) input[type=range]{min-height:28px!important;height:28px!important;padding:0!important}
html.ev-theme :is(#panel,.ev-surface,#navOverlay) :is(h2,h3){color:var(--ev-ink)!important;font-size:19px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.4px!important}
html.ev-theme :is(#panel,.ev-surface,#navOverlay) p{line-height:1.55;font-size:14px}
html.ev-theme :is(#panel,.ev-surface,#navOverlay) :is(.row,label){font-size:14px!important;color:var(--ev-ink)}
html.ev-theme :is(#panel,.ev-surface,#navOverlay) button:is(.on,[aria-pressed=true],.active),html.ev-theme :is(#panel,.ev-surface,#navOverlay) button.ev-primary{background:var(--ev-green)!important;color:var(--ev-on-accent,#fff)!important;border-color:var(--ev-green)!important}
html.ev-theme :is(#panel,.ev-surface,#navOverlay) button.ev-danger{background:#fff0ed!important;color:#a52e3e!important;border-color:#edc8c8!important}
html.ev-theme :is(#panel,.ev-surface,#navOverlay) .ev-empty{display:none!important}
/* Main menu already has a native header/body/footer. Preserve that exact structure. */
html.ev-theme #panel{position:fixed!important;top:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;bottom:auto!important;left:calc(var(--ev-gap) + var(--hajlo-safe-left))!important;right:calc(var(--ev-gap) + var(--hajlo-safe-right))!important;width:auto!important;max-width:680px!important;margin:0 auto!important;height:calc(var(--ev-vh) - 2 * var(--ev-gap) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;max-height:none!important;padding:0!important;background:var(--ev-bg)!important;border:1px solid var(--ev-line)!important;border-radius:24px!important;box-shadow:0 16px 80px #173d3526!important;overflow:hidden!important;z-index:5000!important}
html.ev-theme #panel.open{display:flex!important;flex-direction:column!important}
html.ev-theme #panelTestata{flex:0 0 auto;min-height:60px;padding:9px 14px!important;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--ev-line);background:var(--ev-bg)!important}
html.ev-theme #panelTitolo{font:700 21px/1.2 var(--ev-font)!important;letter-spacing:-.6px!important;color:var(--ev-ink)!important}
html.ev-theme #panelChiudi{width:44px;flex:0 0 44px;padding:5px!important;background:var(--ev-soft)!important;font-size:24px!important}
html.ev-theme #panelIndietro{flex:0 0 auto;background:var(--ev-bg)!important;border-bottom:1px solid var(--ev-line);padding:4px 14px!important}
html.ev-theme #panelIndietroBtn{border:0!important;background:none!important;font-size:13px!important;padding:6px 0!important;color:var(--ev-green)!important}
html.ev-theme #panelCorpo{position:relative!important;flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;padding:15px!important;background:var(--ev-paper,#f5f6f0)!important;scrollbar-gutter:stable}
html.ev-theme #panelGriglia{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0!important}
html.ev-theme #panelGriglia .catCard{min-height:94px!important;display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center!important;gap:4px!important;padding:13px!important;border-radius:16px!important;background:var(--ev-bg)!important;text-align:left!important}
html.ev-theme #panelGriglia .catCard .ic{font-size:23px!important;line-height:1.1}
html.ev-theme #panelGriglia .catCard .nm{font-size:14px!important;font-weight:650!important;line-height:1.25}
html.ev-theme #panelGriglia .catCard .qt{font-size:10px!important;font-weight:400!important;color:var(--ev-muted)!important}
html.ev-theme #panelDentro .panel-section{border:0!important;padding:0!important;margin:0!important;background:none!important}
html.ev-theme #panelDentro .panel-section>.panel-section-title:first-child{display:none!important}
html.ev-theme #panelDentro .panel-section>button{width:100%;text-align:left;margin-bottom:8px!important;min-height:48px!important}
html.ev-theme #panelDentro .panel-section>label{min-height:44px;align-items:center;padding:8px 2px}
html.ev-theme #panelPiede{position:relative!important;flex:0 0 auto!important;padding:10px 14px!important;border-top:1px solid var(--ev-line)!important;background:var(--ev-bg)!important;min-height:66px!important}
html.ev-theme #panelChiudiSotto{width:100%!important;background:var(--ev-green)!important;color:var(--ev-on-accent,#fff)!important;border-color:var(--ev-green)!important}
/* Generic panel frame: only the centre scrolls, actions never belong to it. */
html.ev-theme .ev-page{position:fixed!important;top:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;bottom:auto!important;left:calc(var(--ev-gap) + var(--hajlo-safe-left))!important;right:calc(var(--ev-gap) + var(--hajlo-safe-right))!important;width:auto!important;height:calc(var(--ev-vh) - 2 * var(--ev-gap) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;max-height:none!important;max-width:680px!important;margin:0 auto!important;padding:0!important;border:1px solid var(--ev-line)!important;border-radius:24px!important;overflow:hidden!important;background:var(--ev-bg)!important;box-shadow:0 16px 70px #173d3526!important}
html.ev-theme .ev-backdrop{position:fixed!important;inset:0!important;padding:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px))) calc(var(--ev-gap) + var(--hajlo-safe-right)) calc(var(--ev-gap) + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px))) calc(var(--ev-gap) + var(--hajlo-safe-left))!important;align-items:flex-start!important;justify-content:center!important;background:#16332988!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);overflow:hidden!important}
html.ev-theme .ev-surface{width:100%!important;min-width:0!important;padding:0!important;background:var(--ev-bg)!important;border:1px solid var(--ev-line)!important;border-radius:24px!important;box-shadow:0 16px 70px #173d3526!important;overflow:hidden!important}
html.ev-theme .ev-backdrop>.ev-surface{height:calc(var(--ev-vh) - 2 * var(--ev-gap) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;max-height:none!important;max-width:680px!important;margin:0 auto!important}
html.ev-theme .ev-frame{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden}
html.ev-theme .ev-head{display:flex;align-items:center;gap:10px;min-height:60px;padding:9px 14px;border-bottom:1px solid var(--ev-line);background:var(--ev-bg);position:relative;z-index:1;flex:none}
html.ev-theme .ev-heading{font:700 20px/1.2 var(--ev-font)!important;letter-spacing:-.5px!important;color:var(--ev-ink)!important;margin:0!important;min-width:0;flex:1}
html.ev-theme .ev-head :is(.ev-close,.ev-native-close){position:static!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;font-size:24px!important;background:var(--ev-soft)!important;border:1px solid var(--ev-line)!important;border-radius:12px!important;box-shadow:none!important;color:var(--ev-ink)!important;line-height:1!important}
html.ev-theme .ev-head .ev-native-close{display:none!important}
html.ev-theme .ev-scroll{overflow:auto;min-width:0;min-height:0;overscroll-behavior:contain;padding:15px;background:var(--ev-paper,#f5f6f0);scrollbar-gutter:stable}
/* One vertical scroller per frame; keep legacy content, not its old scroll box. */
html.ev-theme .ev-scroll>.ev-flow-content{overflow:visible!important;overscroll-behavior:auto!important;height:auto!important;max-height:none!important;flex:0 0 auto!important}
html.ev-theme .ev-scroll>*:first-child{margin-top:0!important}
html.ev-theme .ev-foot{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:10px 14px;border-top:1px solid var(--ev-line);background:var(--ev-bg);min-height:66px;position:relative;z-index:2}
html.ev-theme .ev-foot[hidden]{display:none!important}
html.ev-theme .ev-foot>button{flex:1;min-width:0!important;width:auto!important;position:static!important;margin:0!important;height:auto;min-height:46px!important}
html.ev-theme #dd-help-close{display:none!important}
html.ev-theme.dd-help #topbarDropdown{top:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;bottom:auto!important;max-height:none!important}
/* The entire report chooser fits on ordinary phone heights; Cancel is outside it. */
html.ev-theme #reportTypeModal .ev-scroll{padding:10px 12px}
html.ev-theme #reportTypeOptions{gap:5px!important}
html.ev-theme #reportTypeOptions button{padding:7px 4px!important;min-height:60px!important;font-size:12px!important;line-height:1.2!important;border-radius:12px!important;background:var(--ev-bg)!important}
html.ev-theme #reportTypeOptions button>span:first-child{font-size:21px!important}
html.ev-theme #reportTypeOptions :is(.report-group-title,.report-type-title){font-size:9px!important;letter-spacing:1px!important}
html.ev-theme #reportTypeCancel{position:static!important;bottom:auto!important;box-shadow:none!important;background:var(--ev-soft)!important}
html.ev-theme #reportModalZoomBtn{flex:0 0 auto;min-width:44px;font-size:12px!important;padding:7px!important}
html.ev-theme #customizeIconsList label{display:flex!important;align-items:center;gap:12px;min-height:58px!important;border:1px solid var(--ev-line);border-radius:13px;padding:12px!important;margin:0 0 8px!important;background:var(--ev-bg);font-size:14px!important}
/* Native planner retains its direct header and scroll body (including minimisation). */
html.ev-theme #navOverlay{top:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;left:calc(var(--ev-gap) + var(--hajlo-safe-left))!important;right:calc(var(--ev-gap) + var(--hajlo-safe-right))!important;bottom:auto!important;height:calc(var(--ev-vh) - 2 * var(--ev-gap) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;max-width:680px!important;margin:0 auto!important;padding:0!important;border:1px solid var(--ev-line)!important;border-radius:24px!important;overflow:hidden!important;background:var(--ev-bg)!important}
html.ev-theme #navOverlay .ev-native-header{min-height:60px;flex:0 0 auto!important;padding:9px 14px!important;border-bottom:1px solid var(--ev-line)!important;background:var(--ev-bg)!important}
html.ev-theme #navOverlay .ev-native-header>div{font:700 20px/1.2 var(--ev-font)!important}
html.ev-theme #navOverlay .ev-native-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;background:var(--ev-paper,#f5f6f0)!important}
html.ev-theme #navOverlay .ev-native-footer{position:relative;display:flex!important;flex-wrap:wrap;flex:0 0 auto!important;gap:8px;padding:10px 14px!important;border-top:1px solid var(--ev-line)!important;background:var(--ev-bg)!important;min-height:66px}
html.ev-theme #pianComandi{display:flex!important;gap:6px;flex:1 1 160px!important;min-width:0!important;margin:0!important}
html.ev-theme #calcRouteBtn{background:var(--ev-green)!important;color:var(--ev-on-accent,#fff)!important;flex:1;min-width:0!important;font-size:13px!important}
html.ev-theme #closeNavOverlayBottom{flex:0 0 auto!important;font-size:13px!important}
html.ev-theme #zonaNomeItinerario{flex-basis:100%!important;margin:0!important}
html.ev-theme #navOverlay.abbassata{height:auto!important;top:auto!important;bottom:0!important}
html.ev-theme #navOverlay .nav-tab-content{padding:16px!important}
html.ev-theme #navOverlay :is(.pian-quadro,#pianScambia){width:44px!important;min-width:44px!important;padding:5px!important}
/* Destination search keeps its original sheet, search and list handlers. */
html.ev-theme #dovePortoFoglio{top:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;bottom:auto!important;left:calc(var(--ev-gap) + var(--hajlo-safe-left))!important;right:calc(var(--ev-gap) + var(--hajlo-safe-right))!important;height:calc(var(--ev-vh) - 2 * var(--ev-gap) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;max-height:none!important;max-width:680px!important;margin:0 auto!important;border:1px solid var(--ev-line)!important;border-radius:24px!important;padding:0 14px 14px!important;overflow:auto!important;background:var(--ev-bg)!important;overscroll-behavior:contain}
html.ev-theme .ev-destination-header{position:sticky;top:0;z-index:2;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;background:var(--ev-bg);border-bottom:1px solid var(--ev-line)}
html.ev-theme .ev-destination-header>b{font:700 21px/1.2 var(--ev-font)!important}
html.ev-theme #dovePortoManiglia{display:none!important}
html.ev-theme #dovePortoCerca{width:100%;margin:12px 0!important}
html.ev-theme #dovePortoRecenti button,html.ev-theme #dovePortoLista button{min-height:54px!important;text-align:left}
html.ev-theme .ev-map-panel .ev-scroll{display:flex;flex-direction:column;gap:10px}
html.ev-theme .ev-map-panel :is(#photoLocationPickerMap,#genericLocationPickerMap,#openfreemapTestMap){flex:1 1 auto!important;min-height:230px!important;width:100%!important}
html.ev-theme .leaflet-popup-content-wrapper{background:var(--ev-bg)!important;color:var(--ev-ink)!important;border-radius:18px!important;font-family:var(--ev-font)!important}
html.ev-theme .leaflet-popup-content button{min-height:40px;border-radius:10px;background:var(--ev-soft);color:var(--ev-ink);border:1px solid var(--ev-line);font-family:var(--ev-font)}
html.ev-theme[data-textsize=large] :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) button{font-size:16px!important}
html.ev-theme[data-textsize=large] #reportTypeOptions button{font-size:14px!important}
html.ev-theme[data-textsize=small] :is(#panel,.ev-surface,#navOverlay,#dovePortoFoglio) button{font-size:13px!important}
@media(max-height:720px){html.ev-theme{--ev-gap:8px}html.ev-theme .ev-head,html.ev-theme #panelTestata,html.ev-theme #navOverlay .ev-native-header{min-height:54px!important;padding-top:5px!important;padding-bottom:5px!important}html.ev-theme .ev-foot,html.ev-theme #panelPiede{min-height:60px;padding:7px 12px!important}html.ev-theme #reportTypeOptions button{min-height:53px!important;padding:5px 3px!important;font-size:11px!important}html.ev-theme #reportTypeOptions button>span:first-child{font-size:18px!important}html.ev-theme #reportTypeModal .ev-scroll{padding:6px 10px}}
@media(min-width:750px){html.ev-theme #reportTypeModal>.ev-surface,html.ev-theme #customizeIconsPanel>.ev-surface{max-width:520px!important}}
@media(prefers-reduced-motion:reduce){html.ev-theme :is(.ev-root,#panel,#navOverlay,#dovePortoFoglio) *{animation:none!important;transition:none!important}}
/* Passive recovery notices wait behind the current task, never above its actions. */
html.ev-theme.dd-panel #avvisoRegistroVolo{z-index:999!important}
html.ev-theme .ev-surface pre,html.ev-theme #csvPanelTesto{font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace!important;white-space:pre-wrap!important;overflow-wrap:anywhere}
html.ev-theme #navOverlay #calcRouteBtn,html.ev-theme #panel #panelChiudiSotto{background:var(--ev-green)!important;color:var(--ev-on-accent,#fff)!important;border-color:var(--ev-green)!important}
/* Retain all three native report zoom levels, including the native two-column mode. */
html.ev-theme #reportTypeModal #reportTypeOptions button.report-type-option{font-size:var(--ev-report-font,14px)!important}
html.ev-theme #reportTypeModal #reportTypeOptions .rtTessera .rtIc{font-size:1.4em!important}
html.ev-theme #reportTypeModal #reportTypeCancel{font-size:var(--ev-report-font,14px)!important}
html.ev-theme #alertCenterPanel .ev-foot{flex-wrap:wrap}
html.ev-theme #alertCenterPanel #alertUndoBar{flex-basis:100%;width:100%;margin:0!important;background:var(--ev-soft)!important;border:1px solid var(--ev-line)}
html.ev-theme #panel .vehicle-card[aria-pressed=true]{background:var(--ev-soft)!important;color:var(--ev-ink)!important;border:2px solid var(--ev-green)!important;box-shadow:0 0 0 1px var(--ev-green)!important}
html.ev-theme #panel #aspettoSegmenti{display:flex;gap:6px}
html.ev-theme #panel #aspettoSegmenti button{flex:1;min-width:0;font-size:12px!important;padding:8px 5px!important}
html.ev-theme #panel #aspettoToni button{font-size:11px!important;padding:8px 4px!important}
html.ev-theme #panel #aspettoToni button i{flex:none;width:24px!important;height:24px!important;border:1px solid #ffffff33;border-radius:50%}
html.ev-theme.ev-big-console{--dd-bottom:calc(198px + var(--ev-alert-h,0px))}
html.ev-theme.ev-big-console #dd-readings{height:134px}
html.ev-theme.ev-big-console #dd-shell #speedBadgeNum{font-size:49px!important}
html.ev-theme.ev-big-console #dd-shell #speedBadgeLimit{width:52px!important;height:52px!important;min-width:52px!important;font-size:26px!important}
html.ev-theme.ev-big-console #dd-hail>b{font-size:40px}
html.ev-theme.ev-transparent-plancia #dd-shell :is(#dd-brand,#dd-quick,#dd-data,#dd-readings,#dd-primary){background:color-mix(in srgb,var(--ev-bg) calc(var(--alfa,1) * 100%),transparent)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html.ev-theme #navOverlay.nav-abbassato{transform:translateY(calc(var(--ev-vh) - var(--dd-bottom) - 2 * var(--ev-gap) - 52px))!important}
html.ev-theme.ev-planner-minimised:not(.dd-panel) #riquadroSchermo{bottom:calc(var(--dd-bottom) + 60px + var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;height:calc(100dvh - var(--dd-top) - var(--dd-bottom) - 60px - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important}
/* Native in-menu pages keep their DOM parent (and return path), but get a full
   task view instead of being appended below a long category. */
html.ev-theme #panel,html.ev-theme #panelCorpo,html.ev-theme #panelDentro{transform:none!important;filter:none!important;backdrop-filter:none!important;contain:none!important;will-change:auto!important}
html.ev-theme #panel #panelCorpo .ev-page.dentroIlMenu{position:fixed!important;top:calc(var(--ev-vt) + var(--ev-gap) + var(--hajlo-safe-top,env(safe-area-inset-top,0px)))!important;left:calc(var(--ev-gap) + var(--hajlo-safe-left))!important;right:calc(var(--ev-gap) + var(--hajlo-safe-right))!important;bottom:auto!important;width:auto!important;max-width:680px!important;height:calc(var(--ev-vh) - 2 * var(--ev-gap) - var(--hajlo-safe-top,env(safe-area-inset-top,0px)) - var(--hajlo-safe-bottom,env(safe-area-inset-bottom,0px)))!important;max-height:none!important;overflow:hidden!important;margin:0 auto!important;padding:0!important;z-index:5800!important;border-radius:24px!important;background:var(--ev-bg)!important;box-shadow:0 16px 70px #173d3526!important}

html.ev-theme .ev-foot > .ev-native-close,html.ev-theme #topbarDropdown .ev-foot #dd-help-close{display:block!important;position:static!important;width:auto!important;min-height:46px!important;font-size:14px!important}
/* Task pages must sit above the still-open native menu underneath. */
html.ev-theme .ev-page{z-index:6000!important;box-sizing:border-box!important}
html.ev-theme .ev-page.ev-surface{width:auto!important}
html.ev-theme .ev-backdrop{z-index:6200!important;box-sizing:border-box!important}
html.ev-theme .ev-foot button:disabled{opacity:.5!important}
html.ev-theme #aspettoSegmenti{flex-wrap:wrap}
html.ev-theme #aspettoSegmenti button{min-width:80px!important}

/* Selected demo 1: vertical route weather. Native calculations and actions stay wired. */
html.ev-theme #routeOptions{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box}
html.ev-theme #routeOptions .route-option{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box;padding-left:0!important;overflow-wrap:anywhere}
html.ev-theme #routeOptions .route-option :is(.ro-cima,.ro-dati,.ro-meteo,.ro-striscia){min-width:0;max-width:100%;box-sizing:border-box}
html.ev-theme #routeOptions .ro-cima>span,html.ev-theme #routeOptions .ro-dati>div{min-width:0}
html.ev-theme #routeOptions .ro-dati b{font-size:24px;overflow-wrap:anywhere}
html.ev-theme #routeOptions .ro-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
html.ev-theme #routeOptions .ro-voce{white-space:normal;flex-wrap:wrap}
html.ev-theme #routeOptions .ro-striscia{padding:0 12px 12px}
html.ev-theme .ev-weather-vertical{min-width:0;width:100%;max-width:100%;box-sizing:border-box;color:var(--ev-ink);overflow-wrap:anywhere}
html.ev-theme .ev-weather-title{margin:12px 0!important;font-size:18px!important}
html.ev-theme .ev-weather-vertical>.striscia-riga,html.ev-theme .ev-weather-vertical .striscia-riga{display:grid!important;grid-template-columns:58px minmax(0,1fr) 15px!important;align-items:center!important;gap:10px!important;min-height:74px;padding:12px!important;margin:9px 0;background:var(--ev-bg);border:1px solid var(--ev-line)!important;border-radius:14px;box-sizing:border-box;width:100%;max-width:100%}
html.ev-theme .ev-weather-when{min-width:0!important;font-size:11px!important;line-height:1.7!important;color:var(--ev-muted)!important}
html.ev-theme .ev-weather-when b{font-size:13px;color:var(--ev-ink);font-variant-numeric:tabular-nums}
html.ev-theme .ev-weather-info{min-width:0;display:flex;flex-direction:column;gap:5px;font-size:13px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere}
html.ev-theme .ev-weather-place{font-size:14px;color:var(--ev-ink);font-weight:700}
html.ev-theme .ev-weather-arrow{color:var(--ev-green);font-size:18px}
html.ev-theme .ev-weather-note{margin-top:13px;border:1px solid var(--ev-line);border-radius:12px;background:var(--ev-soft);padding:0 10px}
html.ev-theme .ev-weather-note>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-size:12px;font-weight:650;padding:10px 0;box-sizing:border-box}
html.ev-theme .ev-weather-note>div{font-size:12px!important;line-height:1.55!important;padding:0 0 12px;color:var(--ev-muted)!important}
html.ev-theme .striscia-riga:focus-visible{outline:3px solid var(--ev-green);outline-offset:2px}
@media(max-width:360px){html.ev-theme .ev-weather-vertical .striscia-riga{grid-template-columns:49px minmax(0,1fr) 12px!important;gap:7px!important;padding:10px!important}html.ev-theme #routeOptions .ro-striscia{padding:0 9px 9px}}

/* Generic confirmations/prompts must inherit the active palette, including night. */
html.ev-theme [data-ev-anonymous="1"]{--text:var(--ev-ink);--panel:var(--ev-bg);--muted:var(--ev-muted);--line:var(--ev-line);color:var(--ev-ink)!important;color-scheme:normal}
html.ev-theme [data-ev-anonymous="1"] .ev-scroll{color:var(--ev-ink)!important}
html.ev-theme [data-ev-anonymous="1"] :is(input,textarea,select){color:var(--ev-ink)!important;background:var(--ev-bg)!important;border-color:var(--ev-line)!important;caret-color:var(--ev-ink)}
html.ev-theme [data-ev-anonymous="1"] :is(input,textarea)::placeholder{color:var(--ev-muted)!important;opacity:1}

/* Admin location map must retain real height inside the shared scroll shell. */
html.ev-theme #adminWherePanel .ev-scroll{display:flex!important;flex-direction:column;gap:8px;padding:10px!important;scrollbar-gutter:auto}
html.ev-theme #adminWherePanel .ev-scroll>div:not(#adminWhereMap){flex:0 0 auto!important;padding:0!important;min-width:0}
html.ev-theme #adminWhereMap{flex:1 0 260px!important;min-height:260px!important;width:100%!important;border:1px solid var(--ev-line);border-radius:14px;overflow:hidden;isolation:isolate}
html.ev-theme #adminWherePanel .ev-head #refreshAdminWhere{width:44px;min-width:44px;flex:0 0 44px;padding:5px!important;font-size:19px!important}
html.ev-theme #adminWherePanel #adminWhereSelect{width:100%!important;min-width:0!important}
html.ev-theme #adminWherePanel label{gap:7px!important;line-height:1.3}
html.ev-theme #adminWherePanel .ev-scroll>div:has(#adminWhereStorico){display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 14px!important;font-size:12px!important}
html.ev-theme #adminWherePanel :is(#downloadAdminHistory,#resetAdminHistory,#arrotondaStoricoBtn){font-size:12px!important;min-height:44px!important}
@media(max-height:620px){html.ev-theme #adminWhereMap{flex-basis:210px!important;min-height:210px!important}}
@media(orientation:landscape) and (max-height:500px){html.ev-theme #adminWhereMap{flex-basis:230px!important;min-height:230px!important}}

/* A checkbox and its single caption stay on one readable row after icon decoration. */
html.ev-theme #panelDentro .hajlo-push-label{display:flex!important;flex-wrap:nowrap!important;gap:10px!important;width:100%!important;align-items:flex-start!important}
html.ev-theme #panelDentro .hajlo-push-label>span{flex:1;min-width:0;line-height:1.45}
html.ev-theme #panelDentro :is(#hajloRemotePushStatus,.hajlo-push-info){display:block;flex:0 0 100%;width:100%;box-sizing:border-box;margin:4px 0 10px!important;font-size:13px!important;line-height:1.5!important;color:var(--ev-muted)}
html.ev-theme #panelDentro .hajlo-push-badge{display:block;flex:0 0 auto;border:1px solid var(--ev-line);border-radius:8px;padding:4px 8px;font-size:12px;font-weight:650;background:var(--ev-soft);color:var(--ev-ink)}
html.ev-theme #panelDentro label:has(>.hajlo-setting-copy){display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:10px!important;width:100%;box-sizing:border-box}
html.ev-theme #panelDentro .hajlo-setting-copy{display:block;flex:1;min-width:0;line-height:1.5}
html.ev-theme #panelDentro .hajlo-setting-note{display:block;margin-top:8px;font-size:12px;line-height:1.5;color:var(--ev-muted)}
