:root{--tem-green:#2E4120;--tem-fuchsia:#e90070;--tem-paper:#fff;--tem-soft:#f4f2ed;--tem-line:#d9ddd4;--tem-text:#263021;--tem-ivory:#F7F3E8;--tem-muted:#6d7468}
.tem-wrap{font-family:inherit;color:var(--tem-text);max-width:1180px;margin:28px auto;padding:0 16px}.tem-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:18px}.tem-kicker{font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--tem-fuchsia)}.tem-head h2{margin:.25rem 0 0;font-size:clamp(22px,3vw,34px);color:var(--tem-green)}.tem-layer-toggle{display:flex;align-items:center;gap:8px;font-weight:700;white-space:nowrap}.tem-layer-toggle input{accent-color:var(--tem-fuchsia)}
.tem-now{background:var(--tem-green);color:#fff;border-radius:22px;overflow:hidden;margin-bottom:18px;box-shadow:0 12px 30px rgba(0,0,0,.08)}.tem-now-time{display:flex;align-items:center;gap:9px;padding:10px 16px;font-size:12px;background:rgba(255,255,255,.08)}.tem-live-dot{width:8px;height:8px;border-radius:50%;background:var(--tem-fuchsia);box-shadow:0 0 0 5px rgba(233,0,112,.16)}.tem-now-main{padding:18px;display:flex;gap:16px;align-items:center}.tem-cover{width:72px;height:72px;border-radius:14px;background:#e7eadf;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto;font-size:28px;color:var(--tem-green)}.tem-cover img{width:100%;height:100%;object-fit:cover}.tem-cover-now{width:82px;height:82px}.tem-now-text{display:flex;flex-direction:column;min-width:180px;flex:1}.tem-now-text strong{font-size:20px}.tem-now audio{max-width:360px;width:40%}.tem-progress{height:5px;background:rgba(255,255,255,.16)}.tem-progress span{display:block;height:100%;background:var(--tem-fuchsia);transition:width .4s ease}
.tem-grid{display:grid;gap:16px}.tem-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tem-card{background:var(--tem-paper);border:1px solid var(--tem-line);border-radius:18px;padding:18px}.tem-card h3{margin-top:0;color:var(--tem-green)}.tem-card-accent{border-top:4px solid var(--tem-fuchsia)}.tem-muted{color:#6d7468}.tem-inline-form{display:flex;gap:8px;margin:12px 0}.tem-inline-form input{flex:1;min-width:0}.tem-wrap input,.tem-wrap select,.tem-wrap textarea{border:1px solid #cfd5ca;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.tem-wrap label{display:grid;gap:6px;margin:12px 0;font-weight:650}.tem-btn{border:0;background:var(--tem-green);color:#fff!important;border-radius:10px;padding:10px 14px;font-weight:750;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.tem-btn-secondary{background:#fff;color:var(--tem-green)!important;border:1px solid var(--tem-green)}.tem-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.tem-chip{border:1px solid var(--tem-green);background:#fff;color:var(--tem-green);border-radius:999px;padding:7px 10px;cursor:pointer}.tem-chip span{color:var(--tem-fuchsia);font-weight:900}
.tem-section{margin:28px 0}.tem-section-title{display:flex;align-items:baseline;gap:10px;justify-content:space-between;margin-bottom:12px}.tem-section-title h3{font-size:23px;margin:0;color:var(--tem-green)}.tem-empty{border:1px dashed #bec7b6;border-radius:14px;padding:18px;color:#71786c;background:#fafbf8}.tem-timeline{display:grid;gap:10px}.tem-event{display:grid;grid-template-columns:72px 1fr;gap:14px;border-left:4px solid var(--tem-fuchsia);background:#fff;border-radius:12px;padding:14px 16px;box-shadow:0 3px 14px rgba(0,0,0,.04)}.tem-event time{display:flex;flex-direction:column;text-align:center;justify-content:center}.tem-event time strong{font-size:28px;color:var(--tem-green);line-height:1}.tem-event time span{font-size:11px;letter-spacing:.1em}.tem-event h4{margin:4px 0 3px}.tem-event p{margin:5px 0}.tem-event-meta{font-size:12px;color:var(--tem-fuchsia);font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.tem-track-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tem-track{border:1px solid var(--tem-line);background:#fff;border-radius:16px;padding:12px;display:flex;gap:12px;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.tem-track:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}.tem-track .tem-cover{width:58px;height:58px;border-radius:12px}.tem-track-text{display:flex;flex-direction:column;min-width:0}.tem-track-text strong,.tem-track-text span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tem-track-text small{margin-top:4px;color:var(--tem-fuchsia)}
.tem-ideas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tem-idea{border:1px solid var(--tem-line);border-radius:14px;padding:14px;background:#fff}.tem-idea>span{font-size:11px;text-transform:uppercase;font-weight:800;color:var(--tem-fuchsia)}.tem-idea strong{display:block;color:var(--tem-green);margin:5px 0}.tem-idea p{margin:5px 0}.tem-idea time{font-size:11px;color:#777}.tem-cta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:26px}
.tem-modal{position:fixed;inset:0;background:rgba(25,31,22,.55);display:none;align-items:center;justify-content:center;padding:18px;z-index:99999}.tem-modal.is-open{display:flex}.tem-modal-panel{position:relative;background:#fff;border-radius:20px;padding:22px;max-width:720px;width:min(720px,96vw);max-height:88vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.25)}.tem-modal-close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#555}.tem-detail-head{display:flex;gap:16px;align-items:center;padding-right:25px}.tem-detail-head img{width:110px;height:110px;border-radius:15px;object-fit:cover}.tem-detail-head h2{margin:2px 0}.tem-detail-head p{margin:2px 0}.tem-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.tem-lyrics{white-space:pre-wrap;background:var(--tem-soft);border-radius:12px;padding:14px;max-height:220px;overflow:auto}.tem-stars{display:flex;gap:4px}.tem-star{font-size:28px;border:0;background:transparent;color:#b8b8b8;cursor:pointer;padding:0}.tem-star.on{color:var(--tem-fuchsia)}.tem-comment{border-top:1px solid #eceee9;padding:10px 0}.tem-comment p{margin:4px 0}.tem-comment small{color:#7d8378}.tem-prompt-box{background:#f5f2e9;border-left:4px solid var(--tem-fuchsia);padding:12px;border-radius:8px;margin:12px 0;font-style:italic}.tem-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:start}.tem-check input{margin-top:4px}.tem-toast{position:fixed;right:22px;bottom:22px;background:var(--tem-green);color:#fff;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(10px);transition:.2s;z-index:100000;max-width:360px}.tem-toast.show{opacity:1;transform:none}
@media(max-width:900px){.tem-track-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tem-ideas{grid-template-columns:repeat(2,minmax(0,1fr))}.tem-now-main{flex-wrap:wrap}.tem-now audio{width:100%;max-width:none}}@media(max-width:640px){.tem-head{align-items:flex-start;flex-direction:column}.tem-grid-2,.tem-cta-grid,.tem-ideas,.tem-track-grid{grid-template-columns:1fr}.tem-event{grid-template-columns:56px 1fr}.tem-now-text strong{font-size:17px}.tem-inline-form{flex-direction:column}.tem-section-title{align-items:flex-start;flex-direction:column}.tem-detail-head{align-items:flex-start}.tem-detail-head img{width:88px;height:88px}}

/* v1.1 — integrazione nativa nel sistema di layer */
.tem-head-brand{display:flex;align-items:center;gap:14px;min-width:0}
.tem-head-hornbill{width:54px;height:54px;object-fit:contain;background:var(--tem-green);border-radius:12px;padding:5px;box-sizing:border-box;flex:0 0 54px}
.tem-system-badge{display:inline-flex;align-items:center;border:1px solid rgba(46,65,32,.18);border-radius:999px;padding:6px 10px;font-size:12px;color:var(--tem-green);white-space:nowrap}
.tem-event{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.tem-event:hover,.tem-event:focus-visible{transform:translateY(-1px);box-shadow:0 7px 20px rgba(31,48,21,.08);outline:2px solid rgba(46,65,32,.12);outline-offset:2px}
.tem-open-hint{display:inline-block;margin-top:5px;color:var(--tem-green);font-weight:600}
.tem-event-symbol{width:74px;height:74px;border-radius:14px;background:var(--tem-green);color:var(--tem-ivory);display:grid;place-items:center;font-size:30px;flex:0 0 74px}
.tem-layer-share{margin-top:24px;padding-top:18px;border-top:1px solid rgba(46,65,32,.15)}
.tem-layer-share-title h3{margin-bottom:3px}
.tem-layer-share-title small{display:block;color:var(--tem-muted);margin-bottom:12px;line-height:1.35}
.tem-layer-checks{display:flex;flex-wrap:wrap;gap:8px}
.tem-layer-check{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(46,65,32,.18);border-radius:999px;padding:7px 11px;background:#fff;cursor:pointer;font-size:13px}
.tem-layer-check.is-origin{background:rgba(46,65,32,.08);cursor:default;font-weight:700}
.tem-layer-check input{accent-color:var(--tem-green)}
.tem-layer-save-state{min-height:18px;margin-top:7px;font-size:12px;color:var(--tem-muted)}
.tem-shared-host{margin:14px 0 18px;padding:14px;border:1px solid rgba(46,65,32,.15);border-radius:16px;background:rgba(247,243,232,.48)}
.tem-shared-host[hidden]{display:none!important}
.tem-shared-head{display:flex;align-items:baseline;gap:9px;margin-bottom:10px}
.tem-shared-head strong{color:var(--tem-green);font-size:15px}
.tem-shared-head span{font-size:12px;color:var(--tem-muted)}
.tem-shared-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.tem-shared-card{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid rgba(46,65,32,.12);background:#fff;border-radius:12px;padding:10px;cursor:pointer;color:inherit}
.tem-shared-card:hover{border-color:rgba(46,65,32,.32)}
.tem-shared-card>span:last-child{display:grid;gap:2px;min-width:0}
.tem-shared-card small{font-size:10px;color:var(--tem-muted);text-transform:uppercase;letter-spacing:.05em}
.tem-shared-card strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tem-shared-card em{font-size:12px;color:var(--tem-muted);font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tem-shared-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--tem-green);color:var(--tem-ivory);font-size:18px;flex:0 0 34px}
@media(max-width:680px){.tem-head-brand{align-items:flex-start}.tem-head-hornbill{width:44px;height:44px;flex-basis:44px}.tem-system-badge{display:none}.tem-layer-checks{gap:6px}.tem-layer-check{padding:6px 9px}}

/* v1.3 — motore suggerimenti Music, distanza e laboratorio idee */
.tem-discovery-bar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:14px;align-items:center;background:linear-gradient(135deg,rgba(46,65,32,.08),rgba(233,0,112,.04));border:1px solid rgba(46,65,32,.15);border-radius:18px;padding:16px 18px;margin:0 0 18px}
.tem-discovery-copy{display:flex;flex-direction:column;gap:3px}.tem-discovery-copy strong{color:var(--tem-green);font-size:17px}.tem-discovery-copy span{color:var(--tem-muted);font-size:13px}.tem-radius-label{margin:0!important;display:flex!important;align-items:center!important;grid-template-columns:none!important;gap:8px;font-size:13px}.tem-radius-label select{min-width:92px}.tem-discovery-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tem-discovery-bar>small{grid-column:1/-1;color:var(--tem-muted)}
.tem-link-btn{border:0;background:transparent;color:var(--tem-green);text-decoration:underline;cursor:pointer;padding:8px}
.tem-filter-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.tem-filter-chips [data-mt-suggestion-filter]{border:1px solid rgba(46,65,32,.18);background:#fff;color:var(--tem-green);border-radius:999px;padding:6px 10px;font-weight:700;cursor:pointer}.tem-filter-chips [data-mt-suggestion-filter].is-active{background:var(--tem-green);color:#fff}
.tem-event{grid-template-columns:64px 76px minmax(0,1fr);align-items:center}.tem-event-thumb{width:70px;height:70px;border-radius:13px;overflow:hidden;background:#eef1e8;display:grid;place-items:center;font-size:28px}.tem-event-thumb img{width:100%;height:100%;object-fit:cover}.tem-event--followed{border-left-color:var(--tem-green);box-shadow:0 8px 24px rgba(46,65,32,.10);background:linear-gradient(90deg,rgba(46,65,32,.045),#fff 22%)}.tem-followed-badge{display:inline-flex;margin:3px 0 1px;background:var(--tem-green);color:var(--tem-ivory);font-size:10px;font-weight:850;letter-spacing:.07em;border-radius:999px;padding:4px 7px}.tem-event-modal-image{width:110px;height:110px;border-radius:15px;object-fit:cover;flex:0 0 110px}
.tem-idea{font:inherit;text-align:left;cursor:pointer;width:100%;transition:transform .15s ease,box-shadow .15s ease}.tem-idea:hover,.tem-idea:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08);outline:2px solid rgba(46,65,32,.12);outline-offset:2px}.tem-idea em{display:block;margin-top:8px;color:var(--tem-green);font-size:12px;font-style:normal;font-weight:750}.tem-idea-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tem-danger-btn{border:1px solid #b42318;background:#fff;color:#b42318;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer}
@media(max-width:820px){.tem-discovery-bar{grid-template-columns:1fr}.tem-discovery-bar>small{grid-column:auto}.tem-discovery-actions{justify-content:flex-start}.tem-event{grid-template-columns:54px 62px minmax(0,1fr)}.tem-event-thumb{width:58px;height:58px}.tem-filter-chips{justify-content:flex-start}}
@media(max-width:520px){.tem-event{grid-template-columns:50px minmax(0,1fr)}.tem-event-thumb{display:none}.tem-filter-chips [data-mt-suggestion-filter]{padding:5px 8px;font-size:12px}}

/* v1.3.2 — stato fonti e intervalli multi-giorno */
.tem-source-warning{display:block;margin-top:6px;padding:7px 10px;border-radius:10px;background:rgba(192,80,77,.08);color:#7b3532}
.tem-source-ok{display:block;margin-top:6px;color:#526b45}
.tem-event-range{font-size:12px;font-weight:700;color:#526b45;margin:.25rem 0}

/* v1.3.6 - posizione più evidente */
.tem-btn-location{font-weight:800;letter-spacing:.02em;border:2px solid #2e4120!important;background:#f5f1dc!important;color:#2e4120!important}
.tem-btn-location:not(.is-active){box-shadow:0 0 0 4px rgba(46,65,32,.12)}
.tem-btn-location:hover{filter:brightness(1.04);transform:translateY(-1px)}
.tem-location-coords{display:block;margin-top:4px;opacity:.72}
[data-tem-location-panel][data-location-active="0"] [data-tem-location-status]{font-weight:800;color:#9b3d35}
[data-tem-location-panel][data-location-active="1"] [data-tem-location-status]{font-weight:700;color:#2e4120}


/* 1.4.0 — Chat pubblica per gli eventi Music */
.tem-public-chat{margin:18px 0;padding:16px;border:1px solid rgba(46,65,32,.2);border-radius:18px;background:rgba(255,255,255,.76)}
.tem-public-chat-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.tem-public-chat-head h3{margin:0 0 3px}.tem-public-chat-head p{margin:0;font-size:.88rem;opacity:.72}.tem-public-chat-count{white-space:nowrap;font-size:.78rem;opacity:.7}
.tem-public-chat-list{display:flex;flex-direction:column;gap:9px;max-height:340px;overflow:auto;padding:2px 2px 10px}
.tem-public-chat-message{padding:10px 12px;border-radius:14px;background:rgba(46,65,32,.07)}.tem-public-chat-message.is-mine{outline:1px solid rgba(46,65,32,.2)}
.tem-public-chat-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.76rem;opacity:.78;margin-bottom:5px}.tem-public-chat-meta strong{opacity:1}.tem-public-chat-body{line-height:1.45;word-break:break-word}.tem-public-chat-tools{display:flex;gap:6px;margin-top:7px}.tem-public-chat-tools button{border:0;background:transparent;text-decoration:underline;cursor:pointer;font-size:.76rem;opacity:.75}
.tem-public-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:10px}.tem-public-chat-compose textarea{width:100%;box-sizing:border-box}.tem-public-chat-compose textarea{resize:vertical;min-height:68px}.tem-public-chat-note{display:block;margin-top:7px;opacity:.64;line-height:1.35}
@media(max-width:680px){.tem-public-chat-head{display:block}.tem-public-chat-count{display:block;margin-top:4px}.tem-public-chat-compose{grid-template-columns:1fr}.tem-public-chat-list{max-height:300px}}


/* 1.4.1 — scelta identità obbligatoria ad ogni pubblicazione */
.tem-identity-backdrop{position:fixed;inset:0;z-index:100200;background:rgba(25,31,22,.64);display:flex;align-items:center;justify-content:center;padding:18px}
.tem-identity-panel{position:relative;width:min(560px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:22px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.28);color:var(--tem-text)}
.tem-identity-panel h3{margin:.2rem 0 .4rem;color:var(--tem-green);font-size:1.45rem}.tem-identity-panel>p{margin:.2rem 0 16px;opacity:.76}.tem-identity-panel>small{display:block;margin-top:14px;opacity:.67;line-height:1.4}
.tem-identity-kicker{font-size:.7rem;font-weight:850;letter-spacing:.13em;color:var(--tem-fuchsia)}.tem-identity-close{position:absolute;right:12px;top:9px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#555}
.tem-identity-options{display:grid;gap:10px}.tem-identity-option{display:grid;gap:3px;width:100%;text-align:left;border:1px solid rgba(46,65,32,.2);background:#fff;border-radius:14px;padding:13px 15px;cursor:pointer;color:inherit}.tem-identity-option:hover,.tem-identity-option:focus-visible{border-color:var(--tem-green);box-shadow:0 0 0 3px rgba(46,65,32,.09);outline:0}.tem-identity-option strong{color:var(--tem-green);font-size:1rem}.tem-identity-option span{font-size:.82rem;opacity:.72}.tem-identity-option em{font-size:.8rem;font-style:normal;color:var(--tem-fuchsia);font-weight:750}
@media(max-width:680px){.tem-public-chat-compose{grid-template-columns:1fr}.tem-identity-panel{padding:20px}}

/* v1.6 — Concorsi TreeEnd Creators integrati nell'Agenda comune Music */
.tem-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.tem-contests-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(46,65,32,.24);background:#fff;color:var(--tem-green);border-radius:999px;padding:6px 8px 6px 12px;font:inherit;font-size:12px;font-weight:850;letter-spacing:.05em;cursor:pointer}
.tem-contests-btn strong{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--tem-fuchsia);color:#fff;font-size:12px;letter-spacing:0}
.tem-contest-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(46,65,32,.16);background:linear-gradient(135deg,#fff,#f6f7f2);border-radius:18px;padding:15px 17px;margin:0 0 18px}
.tem-contest-banner.has-contests{border-left:5px solid var(--tem-fuchsia);background:linear-gradient(135deg,#fff,#fff6fa)}
.tem-contest-banner>div{display:flex;flex-direction:column;gap:2px;min-width:0}.tem-contest-banner strong{font-size:18px;color:var(--tem-green)}.tem-contest-banner small{color:var(--tem-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:760px}
.tem-contests-modal>h2{margin:.25rem 0 4px;color:var(--tem-green);font-size:30px}.tem-contest-list{display:grid;gap:14px;margin-top:18px}
.tem-contest-card{border:1px solid var(--tem-line);border-radius:16px;padding:17px;background:#fff;box-shadow:0 5px 18px rgba(31,48,21,.05)}.tem-contest-card h3{font-size:22px;color:var(--tem-green);margin:8px 0}.tem-contest-description p{margin:7px 0;line-height:1.5}
.tem-contest-topline{display:flex;justify-content:space-between;gap:12px;align-items:center}.tem-contest-topline span{font-size:11px;color:var(--tem-fuchsia);font-weight:900;letter-spacing:.08em}.tem-contest-topline strong{font-size:12px;color:var(--tem-green);background:var(--tem-soft);border-radius:999px;padding:5px 9px}
.tem-contest-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--tem-muted);font-size:13px;margin-top:12px}
@media(max-width:640px){.tem-head-actions{justify-content:flex-start}.tem-contest-banner{align-items:flex-start;flex-direction:column}.tem-contest-banner small{white-space:normal}.tem-contest-topline{align-items:flex-start;flex-direction:column}}



/* v1.7 — Radio Virtuosa: now playing realmente live + programmazione di oggi */
.tem-now-time .tem-radio-day-btn{margin-left:auto;border:1px solid rgba(255,255,255,.36);background:rgba(255,255,255,.1);color:#fff;border-radius:999px;padding:5px 10px;font:inherit;font-size:10px;font-weight:850;letter-spacing:.05em;cursor:pointer}
.tem-now-time .tem-radio-day-btn:hover{background:rgba(255,255,255,.18)}
.tem-radio-day-modal{width:min(760px,94vw)!important}.tem-radio-day-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:8px}.tem-radio-day-heading h2{margin:.2rem 0;color:var(--tem-green)}
.tem-radio-day-list{display:flex;flex-direction:column;gap:7px;margin-top:14px;max-height:58vh;overflow:auto;padding-right:4px}.tem-radio-day-row{display:grid;grid-template-columns:54px 48px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--tem-line);border-radius:13px;padding:8px 10px;background:#fff}.tem-radio-day-row.is-live{border-color:var(--tem-fuchsia);box-shadow:0 0 0 2px rgba(233,0,112,.08);background:#fff8fb}.tem-radio-day-row time{font-size:12px;font-weight:850;color:var(--tem-green)}.tem-radio-day-cover{width:42px;height:42px;border-radius:9px;overflow:hidden;background:#eef1e8;display:grid;place-items:center;color:var(--tem-green);font-size:18px}.tem-radio-day-cover img{width:100%;height:100%;object-fit:cover}.tem-radio-day-copy{display:flex;flex-direction:column;min-width:0}.tem-radio-day-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--tem-green)}.tem-radio-day-copy em{font-style:normal;color:var(--tem-muted);font-size:12px}.tem-radio-day-row>b{font-size:10px;color:#fff;background:var(--tem-fuchsia);border-radius:999px;padding:4px 7px;white-space:nowrap}
@media(max-width:600px){.tem-now-time{flex-wrap:wrap}.tem-now-time .tem-radio-day-btn{margin-left:0}.tem-radio-day-heading{flex-direction:column}.tem-radio-day-row{grid-template-columns:46px 42px minmax(0,1fr)}.tem-radio-day-row>b{grid-column:3;justify-self:start}.tem-radio-day-copy strong{white-space:normal}}
/* v1.8 — stato programmazione futura */
.tem-radio-planned{font-size:10px;letter-spacing:.06em;opacity:.65;white-space:nowrap}

/* TreeEnd Madre Terra 0.3.0 — stessa grammatica grafica di TreeEnd Music */
.tem-mt-wrap .tem-head-earth{width:54px;height:54px;object-fit:contain;background:var(--tem-green);border-radius:12px;padding:7px;box-sizing:border-box;flex:0 0 54px}
.tem-mt-wrap .tem-ma-cover{background:#f3f0e7;color:var(--tem-green);font-weight:900;letter-spacing:-.04em;display:grid;place-items:center;text-align:center;padding:7px;line-height:.9}
.tem-mt-wrap .tem-ma-cover img{width:100%;height:100%;object-fit:contain;background:#fff}
.tem-mt-wrap .tem-ma-cover span{font-size:20px}.tem-mt-wrap .tem-ma-cover small{font-size:7px;letter-spacing:.01em;margin-top:3px}
.tem-mt-wrap .tem-now-main{position:relative}.tem-mt-wrap .tem-now-copy{max-width:560px;color:rgba(255,255,255,.84);font-size:13px;line-height:1.42;margin-top:4px}
.tem-mt-wrap .tem-now-action{margin-left:auto;display:flex;align-items:center;gap:8px}.tem-mt-wrap .tem-now-action a{background:#fff;color:var(--tem-green)!important;border-radius:999px;padding:9px 14px;font-weight:800;text-decoration:none;white-space:nowrap}
.tem-mt-wrap .tem-mt-nav{display:flex;gap:6px;margin-left:auto}.tem-mt-wrap .tem-mt-nav button{width:28px;height:28px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.09);color:#fff;cursor:pointer;font:inherit;line-height:1}
.tem-mt-wrap .tem-mt-slide[hidden]{display:none!important}.tem-mt-wrap .tem-mt-slide{display:contents}
.tem-mt-wrap .tem-discovery-bar{margin-bottom:16px}
.tem-mt-wrap .tem-follow-list{margin-top:10px}.tem-mt-wrap .tem-follow-empty{margin-top:10px}
.tem-mt-wrap .tem-filter-chips{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tem-mt-wrap .tem-filter-chips [data-mt-suggestion-filter]{border:1px solid var(--tem-line);background:#fff;border-radius:999px;padding:6px 10px;color:var(--tem-green);font:inherit;font-size:12px;cursor:pointer}.tem-mt-wrap .tem-filter-chips [data-mt-suggestion-filter].is-active{background:var(--tem-green);border-color:var(--tem-green);color:#fff}
.tem-mt-wrap .tem-event{grid-template-columns:72px 62px minmax(0,1fr)}.tem-mt-wrap .tem-event-thumb{width:58px;height:58px;border-radius:11px;overflow:hidden;background:#eef1e8;display:grid;place-items:center;color:var(--tem-green);font-size:22px;align-self:center}.tem-mt-wrap .tem-event-thumb img{width:100%;height:100%;object-fit:cover}.tem-mt-wrap .tem-event time strong{font-size:20px}.tem-mt-wrap .tem-event h4{font-size:19px;line-height:1.18}.tem-mt-wrap .tem-event p{color:var(--tem-muted);font-size:13px;line-height:1.42}
.tem-mt-wrap .tem-source-label{font-size:11px;color:var(--tem-fuchsia);font-weight:850;text-transform:uppercase;letter-spacing:.06em}.tem-mt-wrap .tem-event-location{display:block;font-size:11px;color:var(--tem-green);margin-top:4px;font-weight:700}
.tem-mt-wrap .tem-track{cursor:default}.tem-mt-wrap .tem-track a{text-decoration:none;color:inherit}.tem-mt-wrap .tem-track-text span{white-space:normal;line-height:1.25}.tem-mt-wrap .tem-track .tem-cover{background:#eef1e8;font-size:22px}
.tem-mt-wrap .tem-idea{cursor:default}.tem-mt-wrap .tem-idea:hover{transform:none}.tem-mt-wrap .tem-idea p{line-height:1.4}.tem-mt-wrap .tem-idea .tem-lab-link{display:inline-block;margin-top:7px;font-size:12px;font-weight:800;color:var(--tem-green);text-decoration:none}
.tem-mt-wrap .tem-mt-modal-form .tem-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.tem-mt-wrap .tem-mt-modal-form .tem-wide{grid-column:1/-1}.tem-mt-wrap .tem-mt-modal-form button[type=submit]{margin-top:10px}
.tem-mt-wrap .tem-mt-selected-empty{grid-column:1/-1}
.tem-mt-wrap .tem-contest-banner{margin-top:0}
.tem-mt-wrap .tem-near-results{margin-top:14px}.tem-mt-wrap .tem-near-results[hidden]{display:none!important}
.tem-mt-wrap .tem-head-actions:empty{display:none}
.tem-mt-wrap .tem-card p{line-height:1.5}
.tem-mt-wrap .tem-mt-concorsi-link{white-space:nowrap}
@media(max-width:760px){.tem-mt-wrap .tem-now-action{width:100%;margin-left:0}.tem-mt-wrap .tem-now-action a{width:100%}.tem-mt-wrap .tem-mt-nav{margin-left:0}.tem-mt-wrap .tem-mt-modal-form .tem-form-grid{grid-template-columns:1fr}.tem-mt-wrap .tem-mt-modal-form .tem-wide{grid-column:auto}.tem-mt-wrap .tem-event{grid-template-columns:52px minmax(0,1fr)}.tem-mt-wrap .tem-event-thumb{display:none}}

/* 0.3.2 — mount nativo Madre Terra, stesso schema di TreeEnd Music */
.tem-mt-footer-mount{display:none;width:100%;box-sizing:border-box;margin:0 0 18px}
.tem-mt-footer-mount.tem-mt-footer-mount--placed{display:block}
.tem-mt-wrap.tem-integrated{display:none}
.tem-mt-wrap.tem-integrated.tem-layer-active{display:block}
body.treeend-madre-terra-layer-active .tem-mt-footer-mount.tem-mt-footer-mount--placed{display:block}

.tem-mt-missione .tem-ma-cover img{width:100%;height:100%;object-fit:contain;background:#fff;padding:6px}

/* 0.6.0 — Agenda come contenitore unico + filtri categoria collegati all'Agenda */
.tem-mt-wrap .tem-filter-chips [data-mt-suggestion-filter]{transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.tem-mt-wrap .tem-filter-chips [data-mt-suggestion-filter]:hover{transform:translateY(-1px)}
.treeend-next-event.tem-mt-agenda-dim{opacity:.28;filter:saturate(.45);transition:opacity .18s ease,filter .18s ease,box-shadow .18s ease}
.treeend-next-event.tem-mt-agenda-match{opacity:1;filter:none;box-shadow:0 0 0 2px rgba(233,0,112,.22),0 8px 22px rgba(46,65,32,.08);position:relative;z-index:1;transition:opacity .18s ease,filter .18s ease,box-shadow .18s ease}
.treeend-next-event.tem-mt-agenda-match .treeend-next-event-text{font-weight:800}

.tem-mt-wrap [data-mt-suggestion-filter]{display:inline-flex;align-items:center;user-select:none;-webkit-user-select:none}.tem-mt-wrap [data-mt-suggestion-filter]:focus-visible{outline:2px solid var(--tem-pink);outline-offset:2px}
/* 0.8.0 — marchio associazione in evidenza */
.tem-ma-cover small{display:block;max-width:86px;line-height:1.05;text-align:center;overflow-wrap:anywhere}
