[data-telight] [hidden]{display:none!important}
.telight-launchers{display:flex;gap:10px;align-items:center}
.telight-square{width:46px!important;height:46px!important;min-width:46px;padding:0!important;border:0!important;border-radius:3px!important;box-shadow:none!important;cursor:pointer}
.telight-personal{background:#414141!important}.telight-pink{background:#df007c!important}.telight-green{background:#173d31!important}
.telight-square:hover,.telight-square[aria-expanded=true]{filter:brightness(1.2)}.telight-square:focus-visible{outline:3px solid #a9d96d;outline-offset:3px}
#telight-menu{position:fixed;z-index:100000;background:white;color:#173d31;border:1px solid #a9d96d;border-radius:12px;padding:16px;box-shadow:0 12px 40px #0003;overflow:auto;box-sizing:border-box}
.telight-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.telight-menu-head button{background:transparent!important;color:#173d31!important;padding:4px 10px!important;font-size:24px!important;border:0}
.telight-list,.telight-grid{display:grid;gap:8px}.telight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.telight-list a,.telight-grid a{display:block;padding:12px;background:#f0f5ec;border-radius:6px;color:#173d31!important;text-decoration:none!important;overflow-wrap:anywhere}.telight-list a:hover,.telight-grid a:hover{background:#dfebd0}
.telight-commands{display:grid;gap:8px;margin:16px 0}.telight-commands a,.telight-commands button{display:block;width:100%;border:0;border-radius:6px;text-align:center;padding:10px;background:#315b3a;color:white!important;font-size:13px;letter-spacing:1px;text-decoration:none!important}.telight-commands a:last-child{background:#df007c}
@media(max-width:600px){.telight-square{width:38px!important;height:38px!important;min-width:38px}.telight-launchers{gap:6px}}

/* Compact launchers stay image-free; approved artwork loads only in open menus. */
.telight-square.telight-pink,.telight-square.telight-green{display:grid!important;gap:4px;background:transparent!important;border-radius:0!important}
.telight-square.telight-pink{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.telight-square.telight-green{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr)}
.telight-square.telight-pink>span{background:#df007c}.telight-square.telight-green>span{background:#173d31}
.telight-grid-pink{grid-template-columns:repeat(2,minmax(0,1fr))}.telight-grid-green{grid-template-columns:repeat(3,minmax(0,1fr))}
.telight-grid a{padding:0;background:transparent;border-radius:0;text-align:center;min-width:0}
.telight-grid a:hover{background:transparent}.telight-grid a:hover .telight-art{filter:brightness(1.2)}
.telight-art{display:block;width:100%;aspect-ratio:1;background-repeat:no-repeat;background-color:#173d31;color:#d7f1a1;overflow:hidden}
.telight-grid-pink .telight-art{background-color:#df007c;color:#fff}
.telight-art svg{display:block;width:100%;height:100%}
.telight-caption{display:block;padding:6px 0 4px;font-size:12px;line-height:1.3;font-weight:600}

/* Self-contained vector grids avoid empty-span rendering and theme overrides. */
[data-telight] .telight-launchers{display:flex!important;flex-wrap:nowrap!important;width:auto!important;gap:10px!important;overflow:visible!important}
[data-telight] .telight-launchers>.telight-square{display:block!important;flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important;visibility:visible!important;opacity:1!important}
[data-telight] .telight-square>svg{display:block!important;width:100%!important;height:100%!important;max-width:none!important;pointer-events:none!important}
@media(max-width:600px){[data-telight] .telight-launchers{gap:6px!important}[data-telight] .telight-launchers>.telight-square{flex-basis:38px!important;width:38px!important;height:38px!important;min-width:38px!important}}
/* One complete toolbar, including mobile: never a fixed two-column container. */
#treeend-next-portal[data-telight]>.treeend-next-top-tools{
 position:relative!important;inset:auto!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;
 width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:54px!important;gap:8px!important;padding:8px 0!important;margin:0 0 8px!important;box-sizing:border-box!important;overflow:visible!important;grid-column:1/-1!important;
}
#treeend-next-portal[data-telight]>.treeend-next-top-tools>.treeend-next-account-menu{order:1!important}
#treeend-next-portal[data-telight]>.treeend-next-top-tools>.treeend-gl-switcher{order:2!important}
#treeend-next-portal[data-telight]>.treeend-next-top-tools>.treeend-next-message-bell{order:3!important}
#treeend-next-portal[data-telight]>.treeend-next-top-tools>.telight-launchers{order:4!important;flex:0 0 auto!important}
#treeend-next-portal[data-telight]>.treeend-next-top-tools>:is(.treeend-next-account-menu,.treeend-gl-switcher){position:relative!important;inset:auto!important;flex:0 0 46px!important;width:46px!important;height:46px!important;margin:0!important}
#treeend-next-portal[data-telight] .treeend-next-top-tools :is(.treeend-gl-switcher-button,.treeend-next-account-button,.treeend-next-message-bell){width:46px!important;min-width:46px!important;height:46px!important;flex:0 0 46px!important;margin:0!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
#treeend-next-portal[data-telight] .treeend-gl-switcher-button{font-size:22px!important;line-height:1!important}
@media(max-width:700px){
 #treeend-next-portal[data-telight]>.treeend-next-top-tools{justify-content:center!important;gap:6px!important;min-height:50px!important}
 #treeend-next-portal[data-telight]>.treeend-next-top-tools>:is(.treeend-next-account-menu,.treeend-gl-switcher){flex-basis:38px!important;width:38px!important;height:38px!important}
 #treeend-next-portal[data-telight] .treeend-next-top-tools :is(.treeend-gl-switcher-button,.treeend-next-account-button,.treeend-next-message-bell,.telight-square){width:38px!important;min-width:38px!important;height:38px!important;flex-basis:38px!important}
 #treeend-next-portal[data-telight] .telight-launchers{gap:6px!important}
 #treeend-next-portal[data-telight] .treeend-gl-switcher-panel,#treeend-next-portal[data-telight] .treeend-next-account-panel{position:fixed!important;left:12px!important;right:12px!important;width:auto!important;max-width:calc(100vw - 24px)!important;top:150px!important;max-height:calc(100dvh - 170px)!important;overflow:auto!important}
}

#treeend-next-portal[data-telight]>.telight-entry-brand{display:block!important;grid-column:1/-1!important;width:100%!important;box-sizing:border-box;text-align:left!important;margin:0!important;padding:8px 0 0!important}
#treeend-next-portal[data-telight]>.telight-entry-brand .treeend-next-logo{display:block!important;width:220px!important;max-width:70%!important;height:auto!important;margin:0!important}
#treeend-next-portal[data-telight]>.telight-entry-brand .treeend-sidebar-payoff{margin:5px 0 8px!important}
#treeend-next-portal[data-telight]>.treeend-next-top-tools{justify-content:flex-end!important;margin:0 0 16px!important}

#telight-menu.telight-fit-grid{overflow:visible!important;padding:12px!important}
#telight-menu.telight-fit-grid .telight-menu-head{margin-bottom:8px;font-size:13px;line-height:1.2}
#telight-menu.telight-fit-grid .telight-grid{gap:6px}
#telight-menu.telight-fit-grid .telight-caption{font-size:11px;line-height:1.2;padding:4px 0 2px}

.treeend-next-home-tree[data-telight]>.treeend-next-top-tools{position:absolute!important;top:16px!important;right:16px!important;left:auto!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;width:auto!important;max-width:calc(100% - 32px)!important;z-index:1101!important}
.treeend-next-home-tree[data-telight] .treeend-gl-switcher-button{font-size:22px!important}
@media(max-width:700px){.treeend-next-home-tree[data-telight]>.treeend-next-top-tools{top:86px!important;right:12px!important;max-width:calc(100% - 24px)!important}.treeend-next-home-tree[data-telight] .treeend-next-top-tools>*{flex-shrink:0!important}.treeend-next-home-tree[data-telight] .treeend-next-top-tools :is(.treeend-next-account-button,.treeend-next-message-bell,.treeend-gl-switcher-button){width:38px!important;min-width:38px!important;height:38px!important;padding:0!important}}

#treeend-next-contacts[data-telight]>.treeend-next-top-tools{position:relative!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;justify-content:flex-end!important;width:100%!important;grid-column:1/-1}

/* 0.2.2: one approved toolbar on home, personal/common agendas and Contacts.
   Keep the native controls and their handlers; only layout and order change. */
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools{
 --telight-size:clamp(30px,calc((100vw - 92px)/6),46px);
 --telight-gap:clamp(4px,1vw,10px);
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center!important;justify-content:flex-end!important;gap:var(--telight-gap)!important;
 min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 overflow:visible!important;direction:ltr;
}
:is(#treeend-next-portal,#treeend-next-contacts)[data-telight] .treeend-next-top-tools{
 position:relative!important;inset:auto!important;width:100%!important;
 grid-column:1/-1!important;min-height:calc(var(--telight-size) + 16px)!important;
 height:auto!important;padding:8px 0!important;margin:0 0 16px!important;
}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools > .telight-launchers{
 order:0!important;display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto!important;
 width:auto!important;gap:var(--telight-gap)!important;margin:0!important;
}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools > .treeend-next-account-menu{order:1!important}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools > .treeend-gl-switcher{order:2!important}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools > .treeend-next-message-bell{order:3!important}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools :is(.telight-square,.treeend-next-account-menu,.treeend-gl-switcher,.treeend-next-account-button,.treeend-gl-switcher-button,.treeend-next-message-bell){
 width:var(--telight-size)!important;min-width:var(--telight-size)!important;
 max-width:var(--telight-size)!important;height:var(--telight-size)!important;
 min-height:var(--telight-size)!important;flex:0 0 var(--telight-size)!important;
 margin:0!important;padding:0!important;box-sizing:border-box!important;
}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools > :is(.treeend-next-account-menu,.treeend-gl-switcher){position:relative!important;inset:auto!important}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools :is(.treeend-next-account-button,.treeend-gl-switcher-button,.treeend-next-message-bell){display:flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-gl-switcher-button{font-size:calc(var(--telight-size)*.58)!important;line-height:1!important}
:is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .telight-launchers > .telight-square{display:block!important}
@media(max-width:700px){
 :is(#treeend-next-portal,#treeend-next-contacts,.treeend-next-home-tree)[data-telight] .treeend-next-top-tools :is(.treeend-gl-switcher-panel,.treeend-next-account-panel){position:fixed!important;left:12px!important;right:12px!important;width:auto!important;max-width:calc(100vw - 24px)!important;top:150px!important;max-height:calc(100dvh - 170px)!important;overflow:auto!important}
}

/* 0.2.4: brand above the toolbar, and one translation control. */
[data-telight].telight-has-language .teae-controls .teae-language-button{display:none!important}
#treeend-next-portal[data-telight].teae-on > .teae-toolbar{
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;
}
#treeend-next-portal[data-telight].teae-on .teae-brand-logo{grid-column:1!important;grid-row:1!important;justify-self:start!important;text-align:left!important}
#treeend-next-portal[data-telight].teae-on .teae-controls{grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important;justify-content:flex-end!important}
#treeend-next-portal[data-telight].teae-on .teae-agenda-identity{grid-column:1!important;grid-row:3!important}
#treeend-next-portal[data-telight].teae-on .teae-nav{grid-column:1!important;grid-row:4!important;min-width:0!important;max-width:100%!important}
#treeend-next-portal[data-telight].teae-on .teae-controls .treeend-next-top-tools{margin-bottom:0!important}
#treeend-next-contacts[data-telight] > .telight-entry-brand{grid-column:1/-1!important;width:100%!important;text-align:left!important;padding:8px 0 0!important}
#treeend-next-contacts[data-telight] > .telight-entry-brand .treeend-next-logo{display:block!important;width:220px!important;max-width:70%!important;height:auto!important;margin:0!important}
#treeend-next-contacts[data-telight] > .telight-entry-brand .treeend-sidebar-payoff{margin:5px 0 8px!important}
.treeend-next-home-tree[data-telight] > .treeend-next-top-tools{top:var(--telight-home-top,110px)!important;right:16px!important;left:auto!important;max-width:calc(100% - 32px)!important}

/* 0.2.6: personal shortcuts below the profile, including common agendas. */
[data-telight] .telight-commands{min-width:0;max-width:100%;box-sizing:border-box}
[data-telight] .telight-commands :is(a,button){box-sizing:border-box;min-height:44px;white-space:normal;overflow-wrap:anywhere}
[data-telight] .telight-commands a[href*="treeend_layer=ia"]{background:#df007c}
[data-telight] .telight-commands a.telight-being-link{background:#414141;line-height:1.4}

#treeend-next-portal[data-telight].treeend-next-common-agenda #ted-personal-agenda-links{display:none!important}

/* 0.2.8 — one personal entry point across legacy and new common modules. */
#treeend-next-portal[data-telight].treeend-next-common-agenda .treeend-next-sidebar :is(#ted-personal-agenda-links,#tem-personal-agenda-links),
#treeend-next-portal[data-telight]:has(#treeend-craft) .treeend-next-sidebar #ted-personal-agenda-links,
#treeend-next-portal[data-telight].treeend-next-common-agenda #treeend-next-layer-tabs .treeend-next-layer-tab[data-layer-system="0"]{display:none!important}
/* Editorial showcases and partner windows share the approved dark green. */

/* Common scope outranks legacy per-agenda forced sidebar lists. */
#treeend-next-portal[data-telight][data-agenda-scope="common"]:has(#treeend-next-layer-tabs) .treeend-next-sidebar :is(#ted-personal-agenda-links,#tem-personal-agenda-links,[aria-label="Le tue agende personali"]){display:none!important}


/* 0.2.14 — Editorial showcases only. Other agenda panels retain their styling. */

/* White backgrounds outside the editorial windows; Music radio is the reference window. */

/* 0.2.17 — Match the Cucina vector tile to the nine-agenda image tiles. */
#telight-menu .telight-grid-green a[href*="treeend_layer=cucina"] .telight-art{background:#213c19!important;color:#fdf7e9!important;border-radius:12%!important;overflow:hidden}
#telight-menu .telight-grid-green a[href*="treeend_layer=cucina"] .telight-art svg{color:#fdf7e9!important;fill:currentColor!important}
/* 0.2.18 — One Music visual standard for the complete first window of every agenda. */
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:not(.treeend-next-agenda-head):not(:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara)){background-color:#fff!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara){background:#2e4120!important;color:#fff!important;border:0!important;border-left:4px solid var(--teae-accent,#e90070)!important;border-radius:16px!important;box-shadow:none!important;--teae-personal-color:#2e4120!important;--teae-personal-image:none!important;--teae-personal-veil:0!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(section,div,header,footer):not(dialog *):not([role="dialog"] *){background-color:transparent!important;color:inherit!important;box-shadow:none!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(.te-design,.ted-valley-showcase,.tecl-editorial,.tdm-showcase,.teae-card-intro){background:none!important;border:0!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(h2,h3,h4,h5,p,small,strong,em,label,span,dt,dd,li,a){color:inherit!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(button,.teae-inline-button){background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.8)!important;box-shadow:none!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(button,a):has(img){border:0!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(hr,.teae-module-news,.te-design-column + .te-design-column){border:0!important;border-top:1px solid #e90070!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(.teae-editorial-item,.teae-news-item,.teae-partner-card,.tee-empty,dialog,[role="dialog"]){background:#fff!important;color:#2e4120!important;border:0!important;border-radius:10px!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(.teae-editorial-item,.teae-news-item,.teae-partner-card,.tee-empty,dialog,[role="dialog"]) :is(h2,h3,h4,p,small,strong,em,span,label,a,button){color:#2e4120!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(.teae-editorial-item,.teae-news-item,.teae-partner-card,.tee-empty,dialog,[role="dialog"]) button{border-color:#2e4120!important}
#treeend-next-portal#treeend-next-portal[data-telight] .teae-common-card:is(#tem-ascolta-card,#ted-observe,#tea-osserva,#tecu-degusta,#teev-partecipa,#teart-osserva,#tecr-osserva,#tel-leggi,#tesp-pratica,#temia-contribuisci,#tevi-esplora,#tefo-impara) :is(input:not([type="range"]),textarea,select){background:#fff!important;color:#2e4120!important;border:1px solid #fff!important}
