/* Ivy-F.org's tinted optic and edge highlights, without nested backdrop filters. */
html:root.ivy-duo-mode :is(.dx-tabs,.duo-finance-tabs,.dd-tabs,.dt-tabs,.dl-tabs,.dd-overview-units).duo-lens-nav {position:relative;isolation:isolate;}
html:root.ivy-duo-mode .duo-lens-nav::before {
 content:"";position:absolute;z-index:0;pointer-events:none;box-sizing:border-box;
 left:var(--tab-lens-x,0px);top:var(--tab-lens-y,0px);width:var(--tab-lens-w,0px);height:var(--tab-lens-h,0px);
 transform:scale(1);
 border-radius:999px;opacity:0;
 background:radial-gradient(120% 120% at 30% 22%,#ffffff9e 0%,#ffffff24 42%,#ffffff0f 100%);
 box-shadow:0 0 0 1px #fffffff2,0 0 0 2px #11111120,0 5px 12px #11111116,inset 0 1px 0 #ffffffe6,inset 0 -6px 12px -6px #11111138,inset 0 0 14px 2px #ffffff59;
 transition:left .55s cubic-bezier(.34,1.3,.5,1),top .55s cubic-bezier(.34,1.3,.5,1),width .55s cubic-bezier(.34,1.3,.5,1),height .55s cubic-bezier(.34,1.3,.5,1)!important;
}
html:root.ivy-duo-mode .duo-lens-nav.has-tab-lens::before {opacity:1;}
html:root.ivy-duo-mode .duo-lens-nav.lens-instant::before {transition:none!important;}
html:root.ivy-duo-mode :is(.dx-tabs,.duo-finance-tabs,.dd-tabs,.dt-tabs,.dl-tabs,.dd-overview-units).duo-lens-nav > button {position:relative;z-index:1;background:transparent!important;box-shadow:none!important;}
html:root.ivy-duo-mode.dark-mode .duo-lens-nav::before {background:radial-gradient(120% 120% at 30% 22%,#ffffff30,#ffffff0c 65%);box-shadow:0 0 0 1px #ffffff50,0 5px 12px #0002,inset 0 1px 0 #ffffff66,inset 0 -6px 12px -6px #0004;}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .duo-lens-nav::before {transition:none;}}

html:root.ivy-duo-mode .duo-lens-nav.lens-settling::before {animation:duo-tab-lens-settle .45s cubic-bezier(.34,1.56,.64,1)!important;}
@keyframes duo-tab-lens-settle {0%{transform:scale(1)}40%{transform:scale(1.07)}70%{transform:scale(.985)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .duo-lens-nav::before,html:root.ivy-duo-mode .duo-lens-nav.lens-settling::before {transition:none!important;animation:none!important;}}
/* An opaque silver base keeps the optic legible on pale panel surfaces. */
html:root.ivy-duo-mode .duo-lens-nav.has-tab-lens::before,
html:root.ivy-duo-mode .life-panel.dl-panel .life-panel__stage :is(.lp-place-search,.lp-world-hud__copy,.lp-hud-action,.lp-zoom-controls) {
 border:1.5px solid #fff!important;
 background:radial-gradient(ellipse at 28% 12%,#ffffffed 0%,#ffffff00 62%),linear-gradient(155deg,#e8e8eb 0%,#e5e5e9 58%,#d9d9df 100%)!important;
 box-shadow:0 0 0 1px #77778045,0 4px 9px #20202b16,inset 0 1px 1px #fff,inset 0 -2px 5px #ffffffa6!important;
}
html:root.ivy-duo-mode.dark-mode .duo-lens-nav.has-tab-lens::before,
html:root.ivy-duo-mode.dark-mode .life-panel.dl-panel .life-panel__stage :is(.lp-place-search,.lp-world-hud__copy,.lp-hud-action,.lp-zoom-controls) {
 border-color:#d6d6df99!important;
 background:radial-gradient(ellipse at 28% 12%,#ffffff40 0%,#ffffff00 62%),linear-gradient(155deg,#52545e,#353740)!important;
 box-shadow:0 0 0 1px #08080c40,0 4px 9px #0002,inset 0 1px 1px #ffffff66,inset 0 -2px 5px #ffffff15!important;
}

/* The glass identifies the selection; labels stay neutral. */
html:root.ivy-duo-mode .routine-finance-panel:not(.rf-view-row) .duo-finance-tabs.duo-lens-nav button[aria-selected=true] {color:var(--rf-ink)!important;}
html:root.ivy-duo-mode .duo-decisions .dd-tabs.duo-lens-nav button[aria-current=page] {color:var(--dd-text)!important;}
html:root.ivy-duo-mode .dt-panel .dt-tabs.duo-lens-nav button[aria-current=page] {color:var(--dt-text)!important;}

html:root.ivy-duo-mode .life-panel .dl-tabs.duo-lens-nav button[aria-current=page] {color:var(--dl-text)!important;}
