/* Trama 1.6.0 «Telaio» — la faccia nuova del tema di partenza. Carta di giorno, velluto di sera, Fraunces per i titoli e i numeri,
   Manrope per il resto; il colore solo dove vuol dire qualcosa: le tinte degli ambiti, l'ambra del lume (adesso, oggi).
   Gli altri temi restano com'erano, tranne una cosa che vale per tutti: le icone non hanno più i tratteggi. */

/* ---- in tutti i temi: niente tratteggi nelle icone ---- */
.tf .st, .ti .st { display: none !important; }

@font-face { font-family: 'Fraunces'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 500; font-style: italic; font-display: swap; src: url('fonts/fraunces-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/manrope-latin-800-normal.woff2') format('woff2'); }

/* ============================ i colori ============================ */
html:not([data-palette]):not([data-t16-off]) {
  --bg: #FBFAF6; --surface: #FFFFFF; --surface-2: #F3F2EC; --ink: #16181E; --ink-2: #4D5059; --ink-3: #7C7F88;
  --line: rgba(22,24,30,.11); --line-2: rgba(22,24,30,.065); --sep: rgba(22,24,30,.09); --fill: rgba(22,24,30,.055); --fill-2: rgba(22,24,30,.035);
  --dawn: #E89B12; --dawn-soft: #FCF1DC; --dawn-ink: #8A5300; --dusk: #7C7F88; --dusk-soft: #F3F2EC; --hero: #16181E; --today: #E89B12;
  --blu: #0D2FDB; --brace: #8A5300; --danger: #8A5300; --err: #8A5300; --warn: #8A5300; --warn-soft: #FCF1DC; --pat: none; --amb-1: transparent; --amb-2: transparent; --amb-3: transparent;
  --shadow: none; --shadow-lg: 0 28px 70px -24px rgba(22,24,30,.32);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Fraunces', Georgia, serif;
  --r: 18px; --r-sm: 12px;
  --t16-lume: #E89B12; --t16-paper: #FBFAF6; --t16-glass: rgba(251,250,246,.9);
  --t16-indaco: #3F4D8F; --t16-reseda: #CB9B33; --t16-robbia: #BC5A3F; --t16-cocciniglia: #B3586F; --t16-guado: #4A879B; --t16-salvia: #6B9271; --t16-mora: #6F5888;
  --t16-linen: #DCD3C2; --t16-rest: #EAD7AE; --t16-warp: #CFC6B4;
}
html:not([data-palette]):not([data-t16-off])[data-theme="dark"] {
  --bg: #0F1116; --surface: #171A21; --surface-2: #1E2129; --ink: #EDECE7; --ink-2: #B7B8BE; --ink-3: #8A8C94;
  --line: rgba(237,236,231,.12); --line-2: rgba(237,236,231,.07); --sep: rgba(237,236,231,.09); --fill: rgba(237,236,231,.07); --fill-2: rgba(237,236,231,.045);
  --dawn: #F0A92A; --dawn-soft: #2A2113; --dawn-ink: #F6C46A; --dusk: #8A8C94; --dusk-soft: #1E2129; --hero: #EDECE7; --today: #F0A92A; --blu: #6F84FF; --brace: #F6C46A; --danger: #F6C46A; --err: #F6C46A; --warn: #F6C46A; --warn-soft: #2A2113; --pat: none;
  --shadow: none; --shadow-lg: 0 28px 70px -20px rgba(0,0,0,.7);
  --t16-lume: #F0A92A; --t16-paper: #0F1116; --t16-glass: rgba(26,29,37,.86);
  --t16-indaco: #7F8DD6; --t16-reseda: #E0B85A; --t16-robbia: #D97A5F; --t16-cocciniglia: #DB859E; --t16-guado: #6FB0C4; --t16-salvia: #8DBA94; --t16-mora: #A58DC2;
  --t16-linen: #3B3E47; --t16-rest: #5B4A2A; --t16-warp: #2A2D35;
}
@media (prefers-color-scheme: dark) { html:not([data-palette]):not([data-t16-off]):not([data-theme="light"]) {
  --bg: #0F1116; --surface: #171A21; --surface-2: #1E2129; --ink: #EDECE7; --ink-2: #B7B8BE; --ink-3: #8A8C94;
  --line: rgba(237,236,231,.12); --line-2: rgba(237,236,231,.07); --sep: rgba(237,236,231,.09); --fill: rgba(237,236,231,.07); --fill-2: rgba(237,236,231,.045);
  --dawn: #F0A92A; --dawn-soft: #2A2113; --dawn-ink: #F6C46A; --dusk: #8A8C94; --dusk-soft: #1E2129; --hero: #EDECE7; --today: #F0A92A; --blu: #6F84FF; --brace: #F6C46A; --danger: #F6C46A; --err: #F6C46A; --warn: #F6C46A; --warn-soft: #2A2113; --pat: none;
  --shadow: none; --shadow-lg: 0 28px 70px -20px rgba(0,0,0,.7);
  --t16-lume: #F0A92A; --t16-paper: #0F1116; --t16-glass: rgba(26,29,37,.86);
  --t16-indaco: #7F8DD6; --t16-reseda: #E0B85A; --t16-robbia: #D97A5F; --t16-cocciniglia: #DB859E; --t16-guado: #6FB0C4; --t16-salvia: #8DBA94; --t16-mora: #A58DC2;
  --t16-linen: #3B3E47; --t16-rest: #5B4A2A; --t16-warp: #2A2D35;
} }

/* ============================ la carta, i caratteri, la luce dell'ora ============================ */
html:not([data-palette]):not([data-t16-off]) body { font-family: var(--sans); letter-spacing: -.004em; -webkit-font-smoothing: antialiased; background-color: var(--bg); background-repeat: no-repeat; background-size: 100% 420px; }
html:not([data-palette]):not([data-t16-off])[data-t16ora="alba"] body { background-image: radial-gradient(110% 80% at 90% -20%, rgba(232,155,18,.24), transparent 62%), linear-gradient(#F6EBDD, rgba(251,250,246,0) 400px); }
html:not([data-palette]):not([data-t16-off])[data-t16ora="giorno"] body { background-image: radial-gradient(120% 75% at 92% -18%, rgba(232,155,18,.16), transparent 62%), radial-gradient(90% 60% at 0% -20%, rgba(74,135,155,.10), transparent 60%), linear-gradient(#F3EFE6, rgba(251,250,246,0) 400px); }
html:not([data-palette]):not([data-t16-off])[data-t16ora="sera"] body { background-image: radial-gradient(110% 70% at 85% -15%, rgba(214,110,60,.18), transparent 62%), radial-gradient(90% 60% at 0% -20%, rgba(111,88,136,.12), transparent 60%), linear-gradient(#F4E9E2, rgba(251,250,246,0) 400px); }
html:not([data-palette]):not([data-t16-off])[data-t16ora="notte"] body { background-image: radial-gradient(100% 70% at 15% -20%, rgba(63,77,143,.12), transparent 62%), linear-gradient(#EFEEEC, rgba(251,250,246,0) 400px); }
html:not([data-palette]):not([data-t16-off])[data-theme="dark"] body { background-image: radial-gradient(100% 65% at 15% -15%, rgba(111,132,255,.18), transparent 60%), radial-gradient(70% 40% at 100% 10%, rgba(240,169,42,.07), transparent 60%), linear-gradient(#151A2B, rgba(15,17,22,0) 400px); }
@media (prefers-color-scheme: dark) { html:not([data-palette]):not([data-t16-off]):not([data-theme="light"]) body { background-image: radial-gradient(100% 65% at 15% -15%, rgba(111,132,255,.18), transparent 60%), radial-gradient(70% 40% at 100% 10%, rgba(240,169,42,.07), transparent 60%), linear-gradient(#151A2B, rgba(15,17,22,0) 400px); } }
html:not([data-palette]):not([data-t16-off]) :is(h1, .s-h1, .page-head h1) { font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
html:not([data-palette]):not([data-t16-off]) .s-h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
html:not([data-palette]):not([data-t16-off]) .page-head h1 { font-size: clamp(2rem, 8.6vw, 2.4rem); }
html:not([data-palette]):not([data-t16-off]) :is(h2, h3) { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
html:not([data-palette]):not([data-t16-off]) .s-date { font-family: var(--sans); text-transform: none; letter-spacing: .005em; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
html:not([data-palette]):not([data-t16-off]) .s-date::first-letter { text-transform: uppercase; }
html:not([data-palette]):not([data-t16-off]) .s-sum { font-size: 1.04rem; color: var(--ink-2); line-height: 1.45; }
html:not([data-palette]):not([data-t16-off]) .s-lbl { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; letter-spacing: -.015em; }
html:not([data-palette]):not([data-t16-off]) :is(.h5-big, .gw b, .wv-n, .s-big) { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }

/* ---- il marchio: «trama» minuscolo, con il punto di Lume ---- */
html:not([data-palette]):not([data-t16-off]) .brand { font-family: var(--serif); font-weight: 600; letter-spacing: -.03em; text-transform: lowercase; }
html:not([data-palette]):not([data-t16-off]) .brand .mark { display: none; }
html:not([data-palette]):not([data-t16-off]) .topbar .brand { font-size: 1.36rem; position: relative; padding-right: 12px; }
html:not([data-palette]):not([data-t16-off]) .nav .brand { font-size: 1.5rem; position: relative; }
html:not([data-palette]):not([data-t16-off]) .brand::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--t16-lume); box-shadow: 0 0 8px 1px color-mix(in srgb, var(--t16-lume) 55%, transparent); vertical-align: .05em; }
html:not([data-palette]):not([data-t16-off]) .topbar { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: transparent; }
html:not([data-palette]):not([data-t16-off]) .avatar { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
html:not([data-palette]):not([data-t16-off]) .nav { background: color-mix(in srgb, var(--bg) 70%, transparent); border-right-color: var(--line-2); }

/* ============================ Oggi: il tessuto, il filo, la cosa piccola ============================ */
.t16-hero { display: block; position: relative; margin: -10px -16px 8px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.t16-hero svg { display: block; }
.t16-hero .t16-n { position: absolute; right: 16px; bottom: 2px; font-size: .78rem; font-weight: 700; color: var(--ink-3); letter-spacing: .01em; background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 1px 7px; border-radius: 8px; }
@media (min-width: 700px) { .t16-hero { margin: 0 0 14px; border-radius: 20px; overflow: hidden; } .t16-hero .t16-n { right: 12px; bottom: 6px; } }
html:not([data-palette]):not([data-t16-off]) .t16-heroon .h5 .hc-top { margin-top: 2px; }
html:not([data-palette]):not([data-t16-off]).t16-heroon .h5-trama .h5h .v14-n { display: none; }
/* 1.6.1: il filo di oggi — sulla linea i nodi e l'adesso, sotto l'elenco che si legge */
.t16-filo { margin: 12px 0 4px; }
.t16-fl { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.t16-fl svg { display: block; overflow: visible; }
.t16-filo text { font-family: var(--sans); }
.t16-filo .t16-fh { font-size: 10.5px; font-weight: 700; fill: var(--ink-3); opacity: .85; }
.t16-filo .t16-fo { font-size: 11px; font-weight: 800; fill: var(--dawn-ink); }
.t16-nodo .hl { transition: opacity .15s; }
.t16-nodo.prossimo .hl { opacity: .18; }
.t16-nodo.hi .hl { opacity: .34; }
.t16-fr { list-style: none; margin: 8px 0 0; padding: 0; max-width: 640px; }
.t16-fr li { position: relative; }
.t16-fr li + li::before { content: ''; position: absolute; left: 13px; top: -50%; height: 100%; width: 2px; margin-left: -1px; border-radius: 1px;
  background: color-mix(in srgb, var(--ink-3) 30%, transparent); }
.t16-fe { position: relative; display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; width: 100%;
  min-height: 40px; padding: 6px 10px 6px 0; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.t16-fe:hover { background: color-mix(in srgb, var(--ink) 4.5%, transparent); }
.t16-fe:focus-visible { outline: 2px solid var(--dawn); outline-offset: 1px; }
.t16-fe .k { justify-self: center; position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--kc); }
.t16-fe.prossimo .k { box-shadow: inset 0 0 0 2.5px var(--kc), 0 0 0 4px color-mix(in srgb, var(--dawn) 24%, transparent); }
.t16-fe.ora .k { background: var(--kc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dawn) 28%, transparent); }
.t16-fe.giorno .k { border-radius: 4px; background: color-mix(in srgb, var(--kc) 28%, var(--bg)); box-shadow: inset 0 0 0 2px var(--kc); }
.t16-fe .t { min-width: 3.05em; font-size: 15px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.t16-fe .t.g { min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.t16-fe .n { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; }
.t16-fe .w { font-style: normal; white-space: nowrap; font-size: 12.5px; font-weight: 750; color: var(--dawn-ink); font-variant-numeric: tabular-nums; }
.t16-fmore { display: inline-block; margin: 2px 0 0 36px; font-size: 13px; font-weight: 700; color: var(--dawn-ink); text-decoration: none; }
.t16-fnone { margin: 6px 0 0 2px; font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 640px) { .t16-fr li.xm, .t16-fmore.d { display: none; } }
@media (min-width: 641px) { .t16-fr li.xd, .t16-fmore.m { display: none; } }
@media (prefers-reduced-motion: no-preference) { .t16-filo .t16-ora > circle:first-child, .t16-hero .t16-nav > circle:first-child { animation: t16-breath 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes t16-breath { 0%, 100% { opacity: .75; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---- le schede della home: carta su carta, un filo sottile, titoli in Fraunces ---- */
html:not([data-palette]):not([data-t16-off]) .h5c { background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; padding-left: 2px; padding-right: 2px; }
html:not([data-palette]):not([data-t16-off]) .h5-grid { gap: 6px 28px; }
html:not([data-palette]):not([data-t16-off]) .h5h { color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.22rem; letter-spacing: -.015em; }
html:not([data-palette]):not([data-t16-off]) .h5h > span:first-of-type { font-family: var(--serif); font-weight: 500; color: var(--ink); }
html:not([data-palette]):not([data-t16-off]) .h5h .ti { width: 20px; height: 20px; }
html:not([data-palette]):not([data-t16-off]) .h5h .v14-n { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--ink-3); }
html:not([data-palette]):not([data-t16-off]) .h5.editing .h5c { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
/* la cosa piccola, adesso: l'unica in rilievo */
html:not([data-palette]):not([data-t16-off]) .h5c.v150-small { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 14px 16px; box-shadow: 0 1px 0 rgba(22,24,30,.03), 0 18px 36px -24px rgba(22,24,30,.3); }
html:not([data-palette]):not([data-t16-off])[data-theme="dark"] .h5c.v150-small { box-shadow: none; }
html:not([data-palette]):not([data-t16-off]) .h5c.v150-small .h5h { font-style: italic; font-size: 1rem; color: var(--ink-2); }
html:not([data-palette]):not([data-t16-off]) .h5c.v150-small .h5h > span:first-of-type { color: var(--ink-2); }
html:not([data-palette]):not([data-t16-off]) .h5c.v150-small .h5h .ti { display: none; }
html:not([data-palette]):not([data-t16-off]) .h5c.v150-small .h5h::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--t16-lume); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--t16-lume) 50%, transparent); flex: none; }
/* gli inviti: una riga d'ambra a sinistra, niente cornice */
html:not([data-palette]):not([data-t16-off]) .h5-grow { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--t16-lume); border-radius: 18px; box-shadow: none; }
html:not([data-palette]):not([data-t16-off]) .h5-grow .btn { background: var(--ink); color: var(--bg); border-radius: 999px; font-weight: 700; }
/* con il tessuto in cima, la scheda della trama tiene la settimana e «Chiudi la giornata» */
html:not([data-palette]):not([data-t16-off]) .t16-via { display: none; }
html:not([data-palette]):not([data-t16-off]) .h5-edit { border-radius: 999px; }

/* ---- la settimana in quadretti di stoffa ---- */
html:not([data-palette]):not([data-t16-off]) .t16-gw .gw-row { gap: 4px; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d, .t16-eve .eve-d) i { width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; overflow: hidden; display: block; position: relative; box-shadow: none; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d, .t16-eve .eve-d) i > svg:not(.t16-q), html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d, .t16-eve .eve-d) i em { display: none; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw, .t16-eve) .t16-qs { display: block; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw, .t16-eve) .t16-q { display: block; width: 40px; height: 40px; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d, .t16-eve .eve-d) i svg { width: 40px !important; height: 40px !important; stroke: none !important; stroke-width: 0 !important; fill: currentColor; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d, .t16-eve .eve-d) i { opacity: 1 !important; border-style: solid; }
html:not([data-palette]):not([data-t16-off]) .t16-gw .gw-row { justify-items: center; }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d.fu, .t16-eve .eve-d.fu) i { box-shadow: inset 0 0 0 1.4px var(--line); }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d.td, .t16-eve .eve-d.td) i { box-shadow: inset 0 0 0 2px var(--t16-lume); }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d, .t16-eve .eve-d) small { font-weight: 700; color: var(--ink-3); }
html:not([data-palette]):not([data-t16-off]) :is(.t16-gw .gw-d.td, .t16-eve .eve-d.td) small { color: var(--ink); }
html:not([data-palette]):not([data-t16-off]) .t16-gw .gw-h b { color: var(--ink); }
html:not([data-palette]):not([data-t16-off]) .t16-gw .gw-cap { color: var(--ink-2); }

/* ============================ le attività: i nodi ============================ */
html:not([data-palette]):not([data-t16-off]) :is(.s-ck, .check) { border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--ink) 38%, transparent); background: transparent; box-shadow: none; }
html:not([data-palette]):not([data-t16-off]) :is(.s-ck, .check)[data-p="1"] { border-width: 2.6px; border-color: color-mix(in srgb, var(--ink) 72%, transparent); }
html:not([data-palette]):not([data-t16-off]) :is(.s-ck, .check)[data-p="3"] { border-width: 1.2px; border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
html:not([data-palette]):not([data-t16-off]) :is(.s-ck.on, .check.done) { border: 0; background: var(--kc, var(--t16-salvia)); color: transparent; position: relative; overflow: hidden; }
html:not([data-palette]):not([data-t16-off]) :is(.s-ck.on, .check.done)::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, rgba(0,0,0,.10) 0 2px, transparent 2px 5px); }
html:not([data-palette]):not([data-t16-off]) :is(.s-ck.on, .check.done) svg { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { html:not([data-palette]):not([data-t16-off]) :is(.s-ck.on, .check.done) { animation: t16-nodo .2s ease-out; } }
@keyframes t16-nodo { from { transform: scale(1.18); } to { transform: scale(1); } }
html:not([data-palette]):not([data-t16-off]) .task .prio { display: none; }
html:not([data-palette]):not([data-t16-off]) :is(.s-task.done .s-tt > span, .task.done .title) { color: var(--ink-3); text-decoration: none; }
/* niente rosso: «in ritardo» è un'informazione, non una colpa */
html:not([data-palette]):not([data-t16-off]) :is(.late, .s-tt .late, .task .late, .late-h) { color: var(--ink-2) !important; }
html:not([data-palette]):not([data-t16-off]) .late-block .late-h { color: var(--dawn-ink) !important; }
html:not([data-palette]):not([data-t16-off]) .nb53 { background: color-mix(in srgb, var(--ink) 10%, var(--bg)) !important; color: var(--ink) !important; box-shadow: 0 0 0 2px var(--bg) !important; font-weight: 800; }
html:not([data-palette]):not([data-t16-off]) .menu-badge { background: color-mix(in srgb, var(--ink) 10%, transparent) !important; color: var(--ink) !important; }

/* ============================ la barra in basso: capsula di vetro con il lume ============================ */
@media (max-width: 699px) {
  html:not([data-palette]):not([data-t16-off]) .tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; padding: 0 4px; border-radius: 33px; border: 1px solid var(--line); background: var(--t16-glass); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 14px 34px -16px rgba(22,24,30,.38); align-items: center; }
  html:not([data-palette]):not([data-t16-off])[data-theme="dark"] .tabbar { box-shadow: 0 14px 34px -12px rgba(0,0,0,.7); }
  html:not([data-palette]):not([data-t16-off]) .main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}
html:not([data-palette]):not([data-t16-off]) .tabbar .s-tab { font-weight: 700; font-size: .7rem; color: var(--ink-3); letter-spacing: 0; align-self: center; }
html:not([data-palette]):not([data-t16-off]) .tabbar .s-tab .ti-tile { background: transparent; }
html:not([data-palette]):not([data-t16-off]) .tabbar .s-tab:not(.active) .ti { filter: saturate(0) opacity(.55); }
html:not([data-palette]):not([data-t16-off])[data-theme="dark"] .tabbar .s-tab:not(.active) .ti { filter: saturate(0) brightness(1.4) opacity(.6); }
html:not([data-palette]):not([data-t16-off]) .tabbar .s-tab.active { color: var(--ink); }
/* il lume: il ＋ diventa una sfera d'ambra; tenuto premuto, si parla */
html:not([data-palette]):not([data-t16-off]) .s-plus { width: 58px; height: 58px; margin-top: 0; align-self: center; border: 0; border-radius: 50%; color: #2A1A00; font-weight: 300; font-size: 1.9rem; line-height: 1;
  background: radial-gradient(circle at 36% 30%, #FFE3A3 0, #F6B63F 30%, #E89B12 58%, #B86F05 100%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--t16-lume) 14%, transparent), 0 10px 26px -6px rgba(232,155,18,.75), inset 0 -3px 8px rgba(120,62,0,.35), inset 0 2px 3px rgba(255,255,255,.55);
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform .15s ease, box-shadow .2s ease; }
html:not([data-palette]):not([data-t16-off]) .s-plus::after { display: none; }
/* di notte il lume riposa: la stessa sfera, meno luce intorno */
html:not([data-palette]):not([data-t16-off])[data-t16ora="notte"] .s-plus:not(.t16-lp) { filter: saturate(.86) brightness(.95);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--t16-lume) 8%, transparent), 0 8px 18px -8px rgba(232,155,18,.45), inset 0 -3px 8px rgba(120,62,0,.35), inset 0 2px 3px rgba(255,255,255,.45); }
html:not([data-palette]):not([data-t16-off]) .s-plus:active, html:not([data-palette]):not([data-t16-off]) .s-plus.t16-lp { transform: scale(.94); }
html:not([data-palette]):not([data-t16-off]) .s-plus.t16-lp { box-shadow: 0 0 0 9px color-mix(in srgb, var(--t16-lume) 18%, transparent), 0 0 0 18px color-mix(in srgb, var(--t16-lume) 8%, transparent), 0 10px 26px -6px rgba(232,155,18,.8); }

/* ============================ pulsanti, fogli, campi ============================ */
html:not([data-palette]):not([data-t16-off]) :is(.btn.primary, .btn.dawn, button.primary) { background: var(--ink); color: var(--bg); border-color: transparent; border-radius: 999px; font-weight: 700; }
html:not([data-palette]):not([data-t16-off]) .btn { border-radius: 999px; font-weight: 600; }
html:not([data-palette]):not([data-t16-off]) .modal { border-radius: 26px; }
html:not([data-palette]):not([data-t16-off]) :is(.modal h2, .s-plus-sh h2) { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
html:not([data-palette]):not([data-t16-off]) .cap-mic { color: #2A1A00; }
/* l'Assistente: le tue bolle in ambra chiara, quelle di Trama e di Claude sulla carta */
html:not([data-palette]):not([data-t16-off]) .chat-row.mine .chat-bubble { background: var(--dawn-soft); color: var(--ink); border: 0; }
html:not([data-palette]):not([data-t16-off]) .chat-row:not(.mine) .chat-bubble { background: var(--surface); border: 1px solid var(--line-2); box-shadow: none; }
html:not([data-palette]):not([data-t16-off]) .chat-via { color: var(--ink-3); }

/* ============================ «La tua trama»: il campionario ============================ */
.t16-trama .s-h1 { margin-top: 6px; }
.t16-trama .t16-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px; }
.t16-trama .t16-num div { border-top: 1px solid var(--line); padding-top: 10px; }
.t16-trama .t16-num b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.05; }
.t16-trama .t16-num span { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 600; line-height: 1.3; margin-top: 3px; }
.t16-camp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; margin-top: 22px; align-items: end; }
@media (min-width: 700px) { .t16-camp { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t16-mese { margin: 0; }
.t16-mese .t16-sw { border-radius: 12px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -14px rgba(22,24,30,.35); background: var(--surface-2); }
.t16-mese figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; }
.t16-mese figcaption span { font-family: var(--serif); font-style: italic; font-size: 1rem; }
.t16-mese figcaption b { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.t16-leg { display: flex; flex-direction: column; gap: 5px; align-self: center; }
.t16-leg span { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.t16-leg i { width: 18px; height: 5px; border-radius: 3px; flex: none; }
.t16-leg i.l { background: var(--t16-linen); }
.t16-share { margin-top: 26px; text-align: center; }
.t16-share .btn { width: 100%; max-width: 440px; height: 50px; display: inline-flex; align-items: center; justify-content: center; }
.t16-share p { margin: 12px 0 0 !important; position: static !important; }
.t16-open { margin-top: 14px; }

/* ============================ la sera: velluto, il filo che entra ============================ */
#v150-eve.t16-eve { background: radial-gradient(80% 50% at 50% 30%, rgba(240,169,42,.20), transparent 70%), linear-gradient(#141522, #0F1116 70%); color: #EDECE7; }
#v150-eve.t16-eve .eve-in { font-family: var(--sans); }
#v150-eve.t16-eve .eve-k { color: #B7B8BE; text-transform: none; letter-spacing: .01em; font-weight: 600; display: block; text-align: center; }
#v150-eve.t16-eve .eve-k::first-letter { text-transform: uppercase; }
.t16-eve-sw { position: relative; width: min(300px, 82vw); margin: 4px auto 18px; border-radius: 18px; overflow: visible; }
.t16-eve-sw > svg.t16-weave { border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.t16-eve-nav { position: absolute; right: -26px; bottom: -6px; width: 60px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .t16-eve-nav { animation: t16-navetta 1.3s cubic-bezier(.2,.7,.2,1) both; }
  .t16-eve-sw > svg.t16-weave { animation: t16-sale .6s ease-out both; }
}
@keyframes t16-navetta { from { transform: translateX(-280px); opacity: 0; } 25% { opacity: 1; } to { transform: translateX(0); opacity: 1; } }
@keyframes t16-sale { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#v150-eve.t16-eve .t16-eve-h { font-family: var(--serif); font-weight: 500; font-size: 2.5rem; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 0; text-align: center; }
#v150-eve.t16-eve .t16-eve-n { text-align: center; color: #B7B8BE; margin: 8px 0 0; font-size: 1.02rem; }
#v150-eve.t16-eve .eve-l { color: #B7B8BE; }
#v150-eve.t16-eve .eve-c { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
#v150-eve.t16-eve .eve-c small, .t16-dom small { font-family: var(--serif); font-style: italic; font-size: .98rem; color: #B7B8BE; text-transform: none; letter-spacing: 0; }
.t16-dom { margin: 14px 0 6px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); text-align: left; }
.t16-dom p { margin: 4px 0 2px; font-weight: 600; color: #EDECE7; }
.t16-dom em { font-size: .82rem; color: #8A8C94; font-style: normal; }
#v150-eve.t16-eve .btn.primary { background: #F0A92A; color: #2A1A00; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(240,169,42,.8); }
#v150-eve.t16-eve .btn:not(.primary) { background: rgba(255,255,255,.08); color: #EDECE7; }
#v150-eve.t16-eve .eve-d i { box-shadow: none; }
#v150-eve.t16-eve .eve-d small { color: #8A8C94; }

/* ---- le cose rimaste indietro: una riga gentile con tre scelte, al posto del rosso ---- */
.t16-late { margin: 10px 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--dawn-soft); }
.t16-late b { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); }
.t16-late p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }
.t16-late .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.t16-late .acts button { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.t16-late .acts button.via { background: transparent; color: var(--dawn-ink); }
html:not([data-palette]):not([data-t16-off]) .t53-g.warn b, html:not([data-palette]):not([data-t16-off]) .t53-head .meta b { color: var(--dawn-ink); }

/* ---- l'Agenda: il tempo libero, scritto piano; il titolo dell'intervallo più piccolo ---- */
.t16-free { position: absolute; left: 4px; right: 4px; display: grid; place-items: start center; padding-top: 14px; pointer-events: none; z-index: 0; }
.t16-free span { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--ink-3); text-align: center; line-height: 1.25; max-width: 9em; }
html:not([data-palette]):not([data-t16-off]) #view:has(.cal-layout) .page-head h1 { font-size: clamp(1.55rem, 6.4vw, 2rem); }
/* sul telefono (il giorno come lista): una riga tra un impegno e l'altro; a destra l'ordito ancora da tessere, come la riga di oggi */
.t16-lib-row .h { color: var(--ink-3); }
.t16-lib { display: grid; gap: 1px; margin: 2px 0 6px; padding: 9px 14px 10px; border-radius: 12px;
  background: linear-gradient(90deg, var(--bg) 0 46%, transparent 92%), repeating-linear-gradient(90deg, transparent 0 8px, color-mix(in srgb, var(--t16-warp) 70%, transparent) 8px 9px); }
.t16-lib span { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ink-2); line-height: 1.25; }
.t16-lib small { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
