/* ============================ Trama 1.1 — «Entra nei Mille»: abbonamento, fondatori, prima settimana ============================
   Sopra app.css, v49.css e v50.css: stessi gettoni (--bg, --surface, --ink, --dawn…), stesse righe delle Impostazioni (t10-row). */
:root { --t11-night: #0D0C0A; --t11-paper: #F6F1E7; --t11-amber: #F2B12D; --t11-low: #C2620A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --t11-low: #F0A05A; } }
:root[data-theme="dark"] { --t11-low: #F0A05A; }

/* il marchio: tre fili chiari e tre ambra, intrecciati (le misure del logo, in percentuale) */
.t11-mk { position: relative; display: inline-block; width: 56px; height: 56px; flex: none; }
.t11-mk i { position: absolute; border-radius: 2px; }
.t11-mk .mh { left: 8.18%; width: 83.64%; height: 15.3%; background: var(--ink); }
.t11-mk .h1 { top: 15.83%; } .t11-mk .h2 { top: 42.35%; } .t11-mk .h3 { top: 68.86%; }
.t11-mk .mv { top: 8.18%; height: 83.64%; width: 15.3%; background: var(--dawn); }
.t11-mk .v1 { left: 15.83%; } .t11-mk .v2 { left: 42.35%; } .t11-mk .v3 { left: 68.86%; }
.t11-mk .mk { width: 15.3%; height: 15.3%; background: var(--ink); border-radius: 0; }
.t11-mk .k1 { left: 42.35%; top: 15.83%; } .t11-mk .k2 { left: 15.83%; top: 42.35%; } .t11-mk .k3 { left: 68.86%; top: 42.35%; } .t11-mk .k4 { left: 42.35%; top: 68.86%; }
.t11-mk.sm { width: 34px; height: 34px; margin-bottom: 14px; }
.t11-mk.xs { width: 20px; height: 20px; }
.t11-mk.xs i { border-radius: 1px; }

.t11-big { width: 100%; min-height: 52px; font-size: 17px; font-weight: 600; border-radius: 14px; justify-content: center; }

/* ---------------- «Rientra» ---------------- */
.t11-gate { min-height: 70vh; display: grid; place-items: center; padding: 24px 0 40px; }
.t11-back { width: 100%; max-width: 460px; margin: 0 auto; text-align: left; }
.t11-back > .t11-mk { margin-bottom: 18px; }
.t11-back h1 { font-size: clamp(28px, 6vw, 34px); line-height: 1.08; letter-spacing: -.025em; font-weight: 750; margin: 0 0 10px; }
.t11-back > p { color: var(--ink-2); font-size: 17px; line-height: 1.45; margin: 0 0 10px; }
.t11-back .t11-keep { color: var(--ink); background: var(--dawn-soft); border-radius: 12px; padding: 12px 14px; margin: 16px 0 4px; }
.t11-back .t11-keep b { color: var(--dawn-ink); font-weight: 650; }
.t11-back .t11-soft { color: var(--ink-3); font-size: 15px; }
.t11-back-act { display: grid; gap: 10px; margin: 22px 0 10px; }
.t11-back-act .btn.ghost.t11-big { font-size: 15px; font-weight: 500; min-height: 46px; }
.t11-back .t11-fine { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; margin: 0 2px 26px; }
.t11-back .t11-fine a { color: inherit; }
.t11-back-links { margin-top: 8px; }
.t11-sub .t11-back { max-width: none; }
html.t11-gated #capture-form, html.t11-gated #capture-preview { display: none !important; }

/* ---------------- la prima volta: tre schermate ---------------- */
html.t11-lock, html.t11-lock body { overflow: hidden; }
.t11-onb { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: flex; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: t11-fade .25s ease; }
.t11-onb.out { opacity: 0; transition: opacity .25s ease; }
@keyframes t11-fade { from { opacity: 0; } }
.t11-onb-in { width: 100%; max-width: 460px; min-height: 100%; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .t11-onb-in { min-height: auto; margin: auto; padding-top: 28px; padding-bottom: 28px; } }
.t11-onb-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.t11-steps { display: flex; gap: 6px; }
.t11-steps i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.t11-steps i.on { background: var(--dawn); }
.t11-skip { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 15px; padding: 8px 2px 8px 12px; cursor: pointer; }
.t11-onb-body { flex: 1; padding: 22px 0 18px; }
.t11-onb h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; font-weight: 750; margin: 0 0 18px; }
.t11-onb h2 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin: 32px 0 12px; }
.t11-onb .t11-sub { color: var(--ink-2); font-size: 16px; line-height: 1.4; margin: -8px 0 20px; }
.t11-in { width: 100%; font: inherit; font-size: 20px; padding: 14px 16px; border-radius: 14px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.t11-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--dawn); }
.t11-hint { color: var(--ink-3); font-size: 14px; line-height: 1.45; margin: 12px 2px 0; }
.t11-onb-foot { display: grid; gap: 10px; text-align: center; padding-top: 8px; }
.t11-count { color: var(--ink-3); font-size: 13px; }

/* la rotella dell'ora */
.t11-wheel { --h: 40px; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: calc(var(--h) * 5); background: var(--surface); border-radius: 14px; overflow: hidden; }
.t11-wheel::before { content: ''; position: absolute; left: 10px; right: 10px; top: calc(var(--h) * 2); height: var(--h); border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); pointer-events: none; }
.t11-wheel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--surface), transparent 34%, transparent 66%, var(--surface)); }
.t11-wheel > b { position: relative; z-index: 1; font-size: 22px; font-weight: 600; }
.t11-col { position: relative; z-index: 1; height: 100%; width: 72px; overflow-y: auto; scroll-snap-type: y mandatory; padding: calc(var(--h) * 2) 0; scrollbar-width: none; overscroll-behavior: contain; outline: none; border-radius: 10px; }
.t11-col::-webkit-scrollbar { display: none; }
.t11-col:focus-visible { box-shadow: inset 0 0 0 2px var(--dawn); }
.t11-it { height: var(--h); line-height: var(--h); text-align: center; scroll-snap-align: center; font-size: 21px; font-variant-numeric: tabular-nums; color: var(--ink-3); cursor: pointer; user-select: none; }
.t11-it.on { color: var(--ink); font-weight: 650; font-size: 23px; }

/* le sei abitudini */
.t11-habs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.t11-hab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 104px; padding: 14px; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s, background .15s; }
.t11-hab b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.t11-hab .ti-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--ac); }
.t11-hab .ti-tile .ti { width: 22px; height: 22px; }
.t11-hab .ti-tile .ti .l { stroke: #fff; } .t11-hab .ti-tile .ti .f { fill: rgba(255,255,255,.35); }
.t11-hab.on { background: var(--dawn-soft); box-shadow: inset 0 0 0 2px var(--dawn); }
.t11-ck { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--dawn); display: none; }
.t11-ck::after { content: ''; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.t11-hab.on .t11-ck { display: block; }
.t11-hab:focus-visible { outline: 2px solid var(--dawn); outline-offset: 2px; }

/* i cinque fili */
.t11-bar5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 2px 0 16px; }
.t11-bar5 i { height: 6px; border-radius: 3px; background: var(--line); }
.t11-bar5 i.on { background: var(--dawn); }
.t11-list { padding: 4px 0; margin-bottom: 14px; }
.t11-filo { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 14px; font-size: 16px; position: relative; }
.t11-filo + .t11-filo::before { content: ''; position: absolute; top: 0; left: 48px; right: 0; border-top: .5px solid var(--line); }
.t11-filo span { flex: 1; min-width: 0; }
.t11-filo.ok span { color: var(--ink-3); }
.t11-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.8px var(--ink-3); }
.t11-filo.ok .t11-dot { background: var(--dawn); box-shadow: none; }
.t11-filo.ok .t11-dot::after { content: ''; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.t11-filo a, .t11-filo button { margin-left: auto; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 650; color: var(--dawn-ink); text-decoration: none; padding: 6px 0 6px 10px; cursor: pointer; }
.t11-rem { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.t11-rem b { display: block; font-size: 15.5px; margin: 1px 0 3px; }
.t11-rem small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.t11-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; border: 0; border-radius: 999px; padding: 7px 13px; background: var(--dawn-soft); color: var(--dawn-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.t11-pill .ti { width: 16px; height: 16px; }
.t11-pill.ok { background: var(--ok-soft); color: var(--ok); cursor: default; }

/* Oggi: la scheda dei fili */
.t11-fili { padding: 14px 14px 6px; margin: 0 0 14px; }
.t11-fili-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.t11-fili-h b { flex: 1; font-size: 16px; }
.t11-fili-h > span { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.t11-fili .t11-bar5 { margin: 0 0 4px; }
.t11-fili .t11-filo { padding: 6px 0; }
.t11-fili .t11-filo + .t11-filo::before { left: 34px; }
.t11-fili.done { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 14px; background: var(--dawn-soft); }
.t11-fili.done b { display: block; font-size: 16px; } .t11-fili.done small { color: var(--ink-2); font-size: 14px; }
.t11-fili.done .s-x { top: 50%; transform: translateY(-50%); }
.t11-pd { margin-bottom: 14px; }

/* Diario: le righe guida */
textarea.t11-guide::placeholder { color: var(--dawn-ink); opacity: .55; line-height: 2.1; }
.t11-guide-note { color: var(--ink-3); font-size: 13.5px; margin: -4px 4px 16px; }

/* ---------------- Impostazioni › Abbonamento ---------------- */
.t11-tag { color: var(--dawn-ink) !important; font-weight: 600; }
.t10-me .t11-tag { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--dawn-soft); font-size: 13px !important; }
.t11-hero { position: relative; overflow: hidden; background: var(--t11-night); color: var(--t11-paper); border-radius: 18px; padding: 18px 64px 18px 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.t11-hero .t11-thr { position: absolute; top: 0; bottom: 0; right: 40px; width: 4px; background: linear-gradient(transparent, var(--t11-amber) 18%, var(--t11-amber) 82%, transparent); }
.t11-hero small { color: var(--t11-amber); font-size: 13px; font-weight: 600; }
.t11-hero b { font-size: clamp(40px, 11vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; font-variant-numeric: tabular-nums; }
.t11-hero span { font-size: 17px; font-weight: 600; margin-top: 4px; }
.t11-hero em { font-style: normal; color: rgba(246,241,231,.62); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.t11-warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 14px; background: var(--warn-soft); }
.t11-warn b { display: block; } .t11-warn p { margin: 3px 0 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.t11-annual { padding: 16px; margin-bottom: 14px; background: var(--dawn-soft); }
.t11-annual b { display: block; font-size: 17px; line-height: 1.3; }
.t11-annual p { color: var(--dawn-ink); font-size: 14.5px; line-height: 1.4; margin: 4px 0 14px; }
.t11-ended { padding: 16px; margin-bottom: 14px; }
.t11-ended p { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 16px; }
.t11-pilltag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.t11-n { margin-top: 0 !important; }
.t11-why-sub { margin: -6px 0 12px; }
.t11-why { margin-bottom: 12px; }
.t11-why .t10-row { min-height: 48px; }
.t11-why input { width: 20px; height: 20px; accent-color: var(--dawn); flex: none; margin: 0 2px; }
.t11-why .t10-row + .t10-row::before { left: 48px; }
.t11-why-n textarea { width: 100%; }

/* I tuoi inviti */
.t11-inv { padding: 14px 16px; margin-bottom: 12px; }
.t11-inv-h { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.t11-inv-ok { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; font-size: 16px; }
.t11-inv-ok .ti { width: 22px; height: 22px; flex: none; }
.t11-code { font-size: 30px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.t11-link { color: var(--ink-3); font-size: 13.5px; overflow-wrap: anywhere; margin-bottom: 12px; }
.t11-inv-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t11-inv-act .btn { justify-content: center; min-height: 44px; border-radius: 12px; }
.t11-inv-note { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; margin: 10px 0 0; }
.t11-cardbox { display: flex; gap: 16px; align-items: center; padding: 14px; margin-top: 4px; }
.t11-cardprev { width: 72px; height: 128px; border-radius: 8px; background: var(--t11-night); object-fit: cover; flex: none; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.t11-cardbox b { display: block; font-size: 16px; } .t11-cardbox small { display: block; color: var(--ink-3); font-size: 13.5px; margin: 2px 0 12px; }
.t11-cardbox .btn { min-height: 42px; border-radius: 12px; }

/* Notifiche */
.t11-time { margin-left: auto; font: inherit; font-size: 16px; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; border-radius: 8px; padding: 5px 8px; font-variant-numeric: tabular-nums; }

/* La tua settimana */
.t11-week { max-width: 680px; margin: 0 auto; }
.t11-wk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.t11-wk .card { padding: 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.t11-wk b { font-size: clamp(34px, 9vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.t11-wk span { font-size: 14.5px; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.t11-wk small { color: var(--ink-3); font-size: 13px; }

/* Indice: il voto del mese */
.t11-vote { padding: 14px 16px; margin: 14px 0; }
.t11-vote > b { display: block; font-size: 16px; } .t11-vote > small { display: block; color: var(--ink-3); font-size: 13.5px; margin: 2px 0 12px; }
.t11-vopts, .t11-vres { display: grid; gap: 8px; }
.t11-vopts button, .t11-vres button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-size: 15px; color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); border: 0; border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.t11-vres i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--dawn) 22%, transparent); }
.t11-vres span { position: relative; flex: 1; } .t11-vres em { position: relative; font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.t11-vres button.on { box-shadow: inset 0 0 0 2px var(--dawn); font-weight: 600; }

/* ---------------- #numeri (solo amministratore) ---------------- */
.t11-num { max-width: 1180px; margin: 0 auto; }
.t11-num-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.t11-num h1 { font-size: 32px; letter-spacing: -.02em; margin: 0; }
.t11-nav { display: flex; gap: 6px; }
.t11-num .card { margin-bottom: 14px; }
.t11-fbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; }
.t11-fbar > b { font-variant-numeric: tabular-nums; }
.t11-bar { flex: 1 1 220px; display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.t11-bar i { height: 100%; } .t11-bar .a, .t11-leg .a { background: #C88A0E; } .t11-bar .b, .t11-leg .b { background: var(--t11-amber); }
.t11-bar .a + .b { margin-left: 2px; }
.t11-leg { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.t11-leg i { width: 10px; height: 10px; border-radius: 3px; }
.t11-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.t11-kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.t11-kpi > span { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.t11-kpi > b { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.t11-kpi > b small { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.t11-kpi > small { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.t11-kpi em { font-style: normal; font-weight: 700; } .t11-kpi em.up { color: var(--ok); } .t11-kpi em.dn { color: var(--warn); }
.t11-tb { padding: 16px 18px; }
.t11-tb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.t11-tb-h b { font-size: 17px; } .t11-tb-h small { color: var(--ink-3); font-size: 13.5px; }
.t11-mt { margin-top: 18px; }
.t11-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.t11-tb table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.t11-tb th { text-align: right; color: var(--ink-3); font-weight: 500; font-size: 13px; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t11-tb td { text-align: right; padding: 9px 10px; border-bottom: .5px solid var(--line-2); white-space: nowrap; }
.t11-tb th:first-child, .t11-tb td:first-child { text-align: left; padding-left: 0; }
.t11-tb td small { color: var(--ink-3); }
.t11-tb tfoot td { font-weight: 700; border-bottom: 0; }
.t11-tb td.t11-low { color: var(--t11-low); font-weight: 650; }
.t11-foot { color: var(--ink-3); font-size: 13px; line-height: 1.45; margin: 10px 0 0; }
.t11-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.t11-two > .card { margin-bottom: 0; }
.t11-two + .card { margin-top: 14px; }
.t11-why-bars { display: grid; gap: 8px; }
.t11-why-bars div { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2rem; align-items: center; gap: 10px; font-size: 14.5px; }
.t11-why-bars i { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.t11-why-bars u { display: block; height: 100%; background: var(--ink-3); }
.t11-why-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.t11-dl > div, .t11-testers > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: .5px solid var(--line); }
.t11-dl > div:first-child, .t11-testers > div:first-child { border-top: 0; }
.t11-dl span, .t11-testers span { flex: 1; min-width: 0; } .t11-dl b, .t11-testers b { display: block; font-size: 14.5px; }
.t11-dl small, .t11-testers small { display: block; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.t11-testers .t11-off b { text-decoration: line-through; color: var(--ink-3); }
.t11-testers { max-height: 360px; overflow-y: auto; }
.t11-cfgs { padding: 0; }
.t11-cfgs > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 18px; }
.t11-cfgs > summary::-webkit-details-marker { display: none; }
.t11-cfgs > summary::after { content: '+'; margin-left: auto; color: var(--ink-3); font-size: 20px; line-height: 1; }
.t11-cfgs[open] > summary::after { content: '−'; }
.t11-cfgs > summary small { color: var(--ink-3); font-size: 13.5px; }
.t11-cfg { display: grid; gap: 8px; padding: 16px 18px; border-top: .5px solid var(--line); }
.t11-cfg > small { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; margin-bottom: 4px; }
.t11-cfg input, .t11-cfg textarea { font: inherit; font-size: 15px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.t11-cfg .field { margin: 0; }
.t11-cfg .field input { width: 100%; }
.t11-cfg > .btn, .t11-row .btn { justify-self: start; }
.t11-prices { display: grid; grid-template-columns: minmax(0, 1fr) 7rem 7rem; gap: 8px 10px; align-items: center; font-size: 14.5px; }
.t11-prices > span:nth-child(-n+3) { color: var(--ink-3); font-size: 13px; }
.t11-prices input { text-align: right; font-variant-numeric: tabular-nums; }
.t11-wins { display: grid; gap: 8px; } .t11-wins > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t11-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t11-row input[type=number] { width: 8rem; }
.t11-crow { display: grid; grid-template-columns: 1fr 1.4fr 7rem auto; gap: 8px; }
@media (max-width: 699px) {
  .t11-kpis, .t11-two { grid-template-columns: none; }
  .t11-two > .card { margin-bottom: 14px; }
}
@media (max-width: 560px) {
  .t11-prices { grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem; }
  .t11-crow { grid-template-columns: 1fr 1fr; }
  .t11-wins > div { grid-template-columns: none; }
  .t11-why-bars div { grid-template-columns: minmax(0, 1fr) 4rem 1.5rem; }
  .t11-wk { gap: 8px; } .t11-wk .card { padding: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { .t11-onb { animation: none; } .t11-onb.out { transition: none; } }
.t11-inv-act .btn.ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); background: var(--surface); }
.t11-cfg .field, .t11-cfg > textarea { max-width: 620px; }

/* 1.1.4 · impegni che passano la mezzanotte: «+1» accanto alla fine, il seguito il giorno dopo */
.ev-p1 { font-size: .8em; font-weight: 600; color: var(--dawn-ink); margin-left: .4em; white-space: nowrap; }   /* 1.1.7: «giorno dopo» per esteso */
.v5-tp .ev-p1 { margin-right: 4px; }
.v5-tl .ev-p1 { color: var(--dawn); }
.chip.night { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }
.chip.cont { border-top-left-radius: 2px; border-top-right-radius: 2px; opacity: .82; }
.s-ev.cont { opacity: .82; }

/* 1.1.10: gli avvisi in Oggi (abbonamenti aperti, pagamento non andato): la seconda riga più raccolta */
.p-banner.t11-pd small { display: block; line-height: 1.4; margin-top: 2px; }

/* 1.1.11: copie di sicurezza */
.bk-hero.bk-late b { color: #B3261E; }
.bk-list { padding: 4px 0; }
.bk-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.bk-row:first-child { border-top: 0; }
.bk-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-row .t small { color: var(--muted, #6E6E73); font-size: .82em; }
.bk-act { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 420px) { .bk-act .btn { padding-left: 9px; padding-right: 9px; } }

/* 1.1.12: «Da un documento» */
.docai { max-width: 720px; margin: 0 auto; }
.docai-lead { color: var(--muted, #6E6E73); margin: -4px 0 14px; }
.docai-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 2px dashed var(--line, rgba(0,0,0,.14)); border-radius: 18px; background: var(--card, #fff); cursor: pointer; margin-bottom: 12px; }
.docai-drop b { font-size: 1.05em; }
.docai-drop small { color: var(--muted, #6E6E73); }
.docai-drop.over, .docai-drop.on { border-color: var(--accent, #D9A21B); border-style: solid; }
.docai-opts { padding: 14px 16px; margin-bottom: 12px; }
.docai-opts textarea { width: 100%; resize: vertical; }
.docai-ok { display: flex; gap: 10px; align-items: flex-start; font-size: .92em; line-height: 1.4; margin: 4px 2px 14px; }
.docai-ok input { margin-top: 3px; flex-shrink: 0; }
.docai-why, .docai-note { padding: 12px 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.docai-why { border-left: 3px solid #B3261E; }
.docai-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: docai-sp .8s linear infinite; vertical-align: -2px; }
@keyframes docai-sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .docai-spin { animation: none; } }
.docai-bar { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.docai-bar .meta { margin-left: auto; color: var(--muted, #6E6E73); font-size: .9em; }
.docai-list { padding: 2px 0; }
.docai-m { padding: 12px 14px 4px; font-size: .78em; font-weight: 600; color: var(--muted, #6E6E73); text-transform: capitalize; }
.docai-ev { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line, rgba(0,0,0,.07)); cursor: pointer; }
.docai-ev:not(.on) { opacity: .55; }
.docai-ev input { flex-shrink: 0; width: 18px; height: 18px; }
.docai-ev .d { width: 34px; text-align: center; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.1; }
.docai-ev .d b { font-size: 1.15em; }
.docai-ev .d small, .docai-ev .t small { color: var(--muted, #6E6E73); font-size: .82em; }
.docai-ev .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.docai-ev .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docai-ev em { font-style: normal; font-size: .75em; font-weight: 600; align-self: flex-start; margin-top: 3px; padding: 1px 7px; border-radius: 99px; }
.docai-chk { background: #FFF1D6; color: #8A5A00; }
.docai-dup { background: var(--line, rgba(0,0,0,.07)); color: var(--muted, #6E6E73); }
.docai-ed { background: none; border: 0; padding: 8px; color: var(--muted, #6E6E73); cursor: pointer; }
.docai-ed svg { width: 18px; height: 18px; }
.docai-foot { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.docai-s span { margin-left: 4px; }
.docai-s svg, [data-docai] svg { width: 16px; height: 16px; vertical-align: -3px; }
.s-head .docai-s { margin-left: auto; margin-right: 6px; }
.docai-row { display: flex; gap: 8px; margin-top: 4px; }
.docai-seg button { display: flex; flex-direction: column; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.docai-seg button small { font-size: .75em; opacity: .75; font-weight: 400; }
@media (max-width: 520px) { .s-head .docai-s span { display: none; } }

/* 1.2 — suggerimenti nei titoli degli impegni */
.sg-list { margin: .35rem 0 .2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: 0 10px 30px rgba(25,28,31,.10); }
.sg-list[hidden] { display: none; }
.sg-row { display: grid; grid-template-columns: 10px 1fr auto; gap: .1rem .7rem; align-items: center; width: 100%; padding: .6rem .85rem; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sg-row:last-child { border-bottom: 0; }
.sg-row.on, .sg-row:hover { background: var(--dawn-soft); }
.sg-row i { width: 10px; height: 10px; border-radius: 50%; grid-row: 1; }
.sg-row b { font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row b u { text-decoration: none; color: var(--ink); font-weight: 700; }
.sg-row small { grid-column: 2; color: var(--ink-3); font-size: .8rem; }
.sg-row em { font-style: normal; font-size: .74rem; color: var(--ink-3); grid-row: 1 / span 2; grid-column: 3; white-space: nowrap; }

/* 1.2 — Trama gratis: contatore, scheda «Hai 100…», quanto hai usato */
.lm-bar { display: flex; flex-direction: column; gap: .35rem; padding: .7rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); margin: 0 0 .9rem; text-decoration: none; color: inherit; }
.lm-bar .t { display: flex; justify-content: space-between; gap: .6rem; font-size: .86rem; color: var(--ink-2); }
.lm-bar .t b { color: var(--ink); } .lm-bar .t .a { color: var(--dawn-ink); font-weight: 600; white-space: nowrap; }
.lm-bar.full .t .a { color: var(--warn); }
.lm-track { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lm-track i { display: block; height: 100%; background: var(--dawn); border-radius: 99px; }
.lm-bar.full .lm-track i, .lm-track.full i { background: var(--warn); }
.lm-sheet { position: fixed; inset: 0; background: rgba(20,18,15,.38); display: flex; align-items: flex-end; justify-content: center; z-index: 1200; }
.lm-card { background: var(--surface); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); }
@media (min-width: 700px) { .lm-sheet { align-items: center; } .lm-card { border-radius: 22px; } }
.lm-card .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 10px; }
.lm-card .lm-k { color: var(--dawn-ink); font-weight: 600; font-size: .85rem; }
.lm-card h2 { font-size: 1.45rem; margin: .2rem 0 .45rem; }
.lm-card p { color: var(--ink-2); margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.lm-opt { display: flex; justify-content: space-between; align-items: center; gap: .8rem; width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .55rem; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.lm-opt.main { border-color: var(--dawn); background: var(--dawn-soft); }
.lm-opt.soon { cursor: default; background: var(--surface-2); }
.lm-opt b { display: block; } .lm-opt small { color: var(--ink-3); font-size: .82rem; } .lm-opt .p { font-weight: 700; white-space: nowrap; }
.lm-card .lm-foot { font-size: .82rem; color: var(--ink-3); text-align: center; margin: .7rem 0 0; }
.lm-use { padding: .3rem 0; }
.lm-use .r { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; padding: .65rem 1.1rem; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.lm-use .r:last-child { border-bottom: 0; } .lm-use .r .lm-track { grid-column: 1 / span 2; } .lm-use .r small { color: var(--ink-3); } .lm-use .r small b { color: var(--warn); }

/* 1.2.1: Oggi, solo per l'amministratore — aprire le iscrizioni */
.su-ban { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--dawn-soft); border: 1px solid var(--line-2); margin: 0 0 .9rem; }
.su-ban div { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.su-ban b { font-size: .95rem; color: var(--ink); }
.su-ban small { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.su-ban .btn { white-space: nowrap; }
@media (max-width: 560px) { .su-ban { flex-direction: column; align-items: stretch; } }

/* 1.3: il Centro di comando (solo l'amministratore) */
.cc-tabs { margin: .1rem 0 1.1rem; }
.cc-tabs button b { font-weight: 700; margin-left: .3rem; color: var(--warn); }
.cc-hero { position: relative; overflow: hidden; background: var(--t11-night); color: var(--t11-paper); border-radius: 18px; padding: 18px 20px 17px; margin-bottom: 1rem; }
.cc-hero::after { content: ''; position: absolute; top: 0; bottom: 0; right: 30px; width: 4px; background: linear-gradient(transparent, var(--t11-amber) 18%, var(--t11-amber) 82%, transparent); }
.cc-hero small { color: var(--t11-amber); font-size: 13px; font-weight: 600; }
.cc-hero > b { display: block; font-family: var(--serif); font-size: 1.62rem; line-height: 1.2; font-weight: 500; margin: .3rem 2.6rem .95rem 0; letter-spacing: -.01em; }
.cc-lights { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-right: 2.4rem; }
.cc-lights span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(246,241,231,.78); }
.cc-lights span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5CC08A; box-shadow: 0 0 0 3px rgba(92,192,138,.18); }
.cc-lights .ko { color: #F6F1E7; font-weight: 600; } .cc-lights .ko::before { background: #F07A6A; box-shadow: 0 0 0 3px rgba(240,122,106,.22); }
.cc-lights .wait::before { background: var(--t11-amber); box-shadow: 0 0 0 3px rgba(242,177,45,.2); }
.cc-done { padding: .75rem 1.1rem; font-size: .86rem; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.cc-done b { color: var(--ok); font-weight: 600; }
.cc-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.cc-chips a { font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.cc-chips a:hover { background: var(--dawn-soft); color: var(--dawn-ink); }
.cc .lc-r small { display: block; color: var(--ink-3); font-size: .85rem; line-height: 1.45; margin-top: .1rem; }
.cc .lc-r b { font-weight: 600; }
.cc-grid { display: block; }
@media (min-width: 1000px) { .cc-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0 1.3rem; align-items: start; } .cc-grid.even { grid-template-columns: 1fr 1fr; } }
a.an-u.cc-u { color: inherit; text-decoration: none; } a.an-u.cc-u:hover { background: var(--surface-2); }
.cc-flow { display: grid; grid-template-columns: 1fr; }
.cc-step { display: grid; grid-template-columns: 30px 1fr; gap: .15rem .85rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-2); align-content: start; }
.cc-step .n { grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; background: var(--dawn-soft); color: var(--dawn-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.cc-step b { font-weight: 600; } .cc-step small { color: var(--ink-3); font-size: .85rem; line-height: 1.45; }
.cc-step .btn { justify-self: start; margin-top: .65rem; }
.cc-step .cc-why { color: var(--warn); font-weight: 600; margin-top: .45rem; }
@media (min-width: 1000px) { .cc-flow { grid-template-columns: repeat(3, 1fr); } .cc-step { border-bottom: 0; border-right: 1px solid var(--line-2); } .cc-step:last-child { border-right: 0; } }
.cc-foot { padding: .7rem 1.1rem; font-size: .84rem; color: var(--ink-3); border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--r, 16px) var(--r, 16px); }
.cc-foot b { color: var(--ink-2); } .cc-foot a { color: var(--dawn-ink); font-weight: 600; text-decoration: none; }
.cc-h { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: .1rem .85rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.cc-h:last-child { border-bottom: 0; }
.cc-h i { grid-row: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.cc-h.ko i { background: var(--warn); } .cc-h.wait i { background: var(--dawn); }
.cc-h b { grid-column: 2; grid-row: 1; font-weight: 600; } .cc-h span { grid-column: 2; grid-row: 2; color: var(--ink-3); font-size: .86rem; } .cc-h.ko span { color: var(--warn); font-weight: 600; }
.cc-h .btn { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
.cc-f { padding: 1.1rem 1.15rem 1rem; margin-bottom: 1rem; }
.cc-f .big { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cc-f .big small { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.cc-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .7rem 0 .45rem; }
.cc-bar i { display: block; height: 100%; background: var(--dawn); border-radius: 99px; }
.cc-f p { margin: 0; font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.cc-scroll { overflow-x: auto; }
.cc-tab { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cc-tab th { text-align: right; font-size: .74rem; color: var(--ink-3); font-weight: 600; padding: .7rem 1.1rem .4rem; }
.cc-tab th:first-child, .cc-tab td:first-child { text-align: left; }
.cc-tab td { text-align: right; padding: .62rem 1.1rem; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cc-tab td:first-child b { color: var(--ink); font-weight: 600; } .cc-tab td:first-child small { color: var(--ink-3); }
.cc-link { display: inline-block; margin: .1rem 0 1.2rem; font-size: .9rem; font-weight: 600; color: var(--dawn-ink); text-decoration: none; }
.cc-q { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 .9rem; font: inherit; margin-bottom: .6rem; box-sizing: border-box; }
.cc-filter { margin-bottom: .8rem; flex-wrap: wrap; }
.cc-filter button small { margin-left: .3rem; color: var(--ink-3); font-weight: 600; }
.cc-more { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; cursor: pointer; }
.cc-more:hover { background: var(--surface-2); }
.cc-note { font-size: .84rem; color: var(--ink-3); margin: .2rem 0 1rem; } .cc-note a { color: var(--dawn-ink); font-weight: 600; }
.cc-pop { position: fixed; z-index: 120; min-width: 250px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.35); padding: .45rem; display: flex; flex-direction: column; }
.cc-pop > b { padding: .35rem .6rem 0; font-size: .92rem; } .cc-pop > small { padding: 0 .6rem .45rem; color: var(--ink-3); font-size: .78rem; border-bottom: 1px solid var(--line-2); margin-bottom: .3rem; overflow-wrap: anywhere; }
.cc-pop button { text-align: left; background: none; border: 0; padding: .6rem .6rem; border-radius: 9px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.cc-pop button:hover, .cc-pop button:focus-visible { background: var(--surface-2); outline: none; }
.cc-ol { margin: 0 0 .4rem; padding-left: 1.2rem; line-height: 1.6; font-size: .92rem; }
.cc-back { display: inline-block; margin-bottom: .4rem; }
@media (max-width: 560px) { .cc-hero > b { font-size: 1.4rem; } .cc .an-u-act .btn { padding-left: .6rem; padding-right: .6rem; } }

/* ============================ 1.4.0 ============================ */
/* Svuota la testa: il pulsante nella barra e il foglio */
.capture .cap-dump { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
.capture .cap-dump .ti { width: 22px; height: 22px; }
.capture .cap-dump:hover { background: var(--bg); }
.v14-lead { margin: -.2rem 0 .8rem; color: var(--ink-2); line-height: 1.45; }
.v14-dump-ta { width: 100%; min-height: 9.5rem; resize: vertical; font: inherit; font-size: 1.02rem; line-height: 1.45; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.v14-dump-ta:focus { outline: none; border-color: var(--dawn); box-shadow: 0 0 0 3px var(--dawn-soft); }
.v14-unsure { color: var(--warn); font-weight: 600; }

/* La tua trama */
.v14-card { padding: 14px 16px 12px; margin: 0 0 14px; }
.v14-card.flat { margin: 0 0 12px; }
.v14-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: 10px; }
.v14-h b { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }
.v14-n { color: var(--ink-3); font-size: .86rem; }
.v14-weave { display: block; width: 100%; height: auto; max-height: 120px; }
.v14-weft { stroke: var(--line); stroke-width: .6; }
.v14-dot { fill: var(--ink-3); opacity: .35; }
.v14-today { fill: none; stroke: var(--dawn); stroke-width: 1.4; stroke-dasharray: 2 1.6; }
.v14-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 10px; }
.v14-done { display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); font-weight: 600; font-size: .92rem; }
.v14-done .ti { width: 18px; height: 18px; }
.v14-wk { border: 0; background: none; color: var(--ink-3); font: inherit; font-size: .88rem; cursor: pointer; padding: .3rem 0; }
.v14-wk.on { color: var(--dawn-ink); font-weight: 600; }
.v14-wk:hover { color: var(--ink); }
.v14-hint { margin: .7rem 0 0; color: var(--ink-3); font-size: .86rem; line-height: 1.45; }

/* La tua settimana */
.v14-wkbox { display: grid; place-items: center; margin: -.2rem 0 .8rem; }
.v14-wkbox img { width: min(62vw, 260px); aspect-ratio: 9 / 16; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg); }
.v14-money { margin: 0 0 .8rem; }
.v14-wkbtn { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* Invita qualcuno */
.v14-inv { padding: 16px; margin-bottom: 12px; }
.v14-link { display: flex; gap: .5rem; margin: .2rem 0 .7rem; }
.v14-link input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); }
.v14-inv-share { width: 100%; }
.v14-mo-at input { margin-left: auto; font: inherit; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .3rem .5rem; background: var(--surface); color: var(--ink); }

/* Centro di comando: Percorso */
.v14-d { margin: 0 0 14px; }
.v14-fun, .v14-ad { padding: 8px 16px 12px; }
.v14-fr { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr auto; grid-template-areas: "l b n" "s s s"; align-items: center; gap: .2rem .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.v14-fr:last-child { border-bottom: 0; }
.v14-fr .l { grid-area: l; font-size: .92rem; }
.v14-fr .b { grid-area: b; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.v14-fr .b i { display: block; height: 100%; border-radius: 99px; background: var(--dawn); }
.v14-fr b { grid-area: n; font-variant-numeric: tabular-nums; }
.v14-fr small { grid-area: s; color: var(--ink-3); font-size: .8rem; }
.v14-fr.sm { padding: .38rem 0; grid-template-areas: "l b n s"; grid-template-columns: minmax(8rem, 12rem) 1fr auto 3.2rem; }
.v14-fr.sm .b { height: 7px; }
.v14-fr.sm .b i { background: var(--c-cal); }
.v14-fr.sm small { text-align: right; }
.v14-ad-h { color: var(--ink-2); font-size: .9rem; padding: .5rem 0 .3rem; }
.v14-star { padding: 16px; }
.v14-star-n { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: baseline; }
.v14-star-n b { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; grid-row: span 2; }
.v14-star-n span { color: var(--ink-2); font-size: .92rem; }
.v14-star-n small { color: var(--ink-3); font-size: .82rem; }
.v14-star-n small.up { color: var(--ok); font-weight: 600; }
.v14-bars, .v14-hbars { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin: 14px 0 6px; }
.v14-bars i, .v14-hbars i { flex: 1; background: var(--dawn); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.v14-bars i:last-child { opacity: 1; }
.v14-hbars { height: 56px; gap: 2px; margin: 12px 16px 2px; }
.v14-hbars i { background: var(--c-cal); opacity: .7; }
.v14-hbars i.e { background: var(--warn); opacity: 1; }
.v14-hlab { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .74rem; margin: 0 16px 8px; }
.v14-cap { color: var(--ink-3); font-size: .8rem; }
.v14-coh td.hi { color: var(--ok); font-weight: 600; }
.v14-coh td.na { color: var(--ink-3); }
.v14-load .an-kpis { margin: 12px 16px 0; grid-template-columns: repeat(2, 1fr); }
.v14-ik .an-kpis { grid-template-columns: repeat(2, 1fr); }
.v14-coh td:first-child { white-space: nowrap; }

/* Centro di comando: Email */
.v14-smtp { padding: 12px 16px 14px; border-top: 1px solid var(--line-2); }
.v14-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
.v14-g2 .field { margin-bottom: .55rem; }
.v14-smtp select { width: 100%; }
.v14-smtp .s-switch { margin: .3rem 0 .7rem; }
.v14-smtp-b { display: flex; flex-wrap: wrap; gap: .5rem; }
.v14-smtp .t10-note { margin: .8rem 0 0; }
.cc-h select { font: inherit; font-size: .88rem; border: 1px solid var(--line); border-radius: 8px; padding: .15rem .4rem; background: var(--surface); color: var(--ink); }
@media (max-width: 560px) { .v14-g2 { grid-template-columns: 1fr; } .v14-fr.sm { grid-template-columns: minmax(6.5rem, 9rem) 1fr auto 2.8rem; } }

/* La Trama di prova */
.v14-prova { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 9999; background: var(--warn); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: .18rem .8rem .22rem; border-radius: 0 0 10px 10px; pointer-events: none; white-space: nowrap; }
.v14-wkopen { width: 100%; margin: 0 0 14px; }
/* 1.4.1: quante copie automatiche tenere */
.bk-keep { padding: 4px 16px; margin: 0 0 14px; }
.bk-keep .t10-row { gap: 12px; }
.bk-keep .t10-row .t small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.bk-keep select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .5rem; background: var(--surface); color: var(--ink); flex: none; }

/* 1.4.1 · schede: si trascinano per spostarle, fuori dalla barra per una finestra nuova, dentro un'altra finestra */
.tb-list { position: relative; }
.vtab[draggable="true"] { -webkit-user-drag: element; }
.vtab.tb-drag { opacity: .35; }
.tb-mark { position: absolute; bottom: 5px; height: 24px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--dawn); pointer-events: none; z-index: 3; }
.tb-strip.tb-over { background: color-mix(in srgb, var(--dawn-soft) 55%, var(--bg)); }
.tb-menu hr { border: 0; border-top: 1px solid var(--sep, var(--line)); margin: 4px 2px; }

/* 1.4.5 · «La tua trama» come scheda della home (piccola o grande) e «Oggi è chiusa» che si tocca */
.h5-trama .v15-tw { margin: 2px 0 0; }
.h5-trama .v14-weave { max-height: 104px; }
.h5c.sm.h5-trama .v14-weave { max-height: 92px; }
.h5-trama .v14-foot { margin-top: 10px; }
.h5c.sm.h5-trama .v14-foot .btn { width: 100%; justify-content: center; padding-left: .5rem; padding-right: .5rem; }
.h5-trama .v14-hint { margin-top: .6rem; }
button.v14-done { border: 0; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ok); cursor: pointer; padding: .35rem 0; display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; text-align: left; }
button.v14-done .v15-mod { color: var(--ink-3); font-weight: 500; font-size: .84rem; margin-left: .15rem; }
button.v14-done:hover .v15-mod { color: var(--ink); text-decoration: underline; }
.v15-acts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.v15-acts .btn { width: 100%; justify-content: center; text-align: center; }

/* ===== 1.4.6 — un tocco = un salvataggio; quando la rete non lascia passare Trama ===== */
button[aria-busy="true"] { opacity: .5; pointer-events: none; cursor: progress; }
.v49-mh-a[aria-busy="true"]::after { content: ''; display: inline-block; width: .8em; height: .8em; margin-left: .4em; vertical-align: -.08em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nw-spin .7s linear infinite; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v49-mh-a[aria-busy="true"]::after { animation: none; } }
#netwall { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); overflow-y: auto; }
#netwall .nw { width: 100%; max-width: 420px; text-align: center; }
#netwall h1 { font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; margin: 16px 0 8px; }
#netwall p { color: var(--ink-2); margin: 0 0 14px; line-height: 1.45; }
#netwall ul { text-align: left; margin: 0 auto 14px; padding: 12px 16px 12px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); line-height: 1.45; }
#netwall li + li { margin-top: 6px; }
#netwall .nw-safe { font-size: .92rem; color: var(--ink-2); }
#netwall .btn { min-width: 160px; justify-content: center; margin: 4px 0 14px; }
#netwall small { display: block; color: var(--ink-3); font-size: .8rem; overflow-wrap: anywhere; }

/* ===== 1.4.7 — l'agenda in PDF ===== */
.pdf-s span, [data-pdfag] span { margin-left: 4px; }
.pdf-s svg, [data-pdfag] svg { width: 16px; height: 16px; vertical-align: -3px; }
.s-head .pdf-s { margin-left: auto; margin-right: 6px; }
.s-head .docai-s + .pdf-s { margin-left: 0; }
.pdf-sh { display: grid; gap: .75rem; padding: .1rem .1rem .6rem; }
.pdf-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.pdf-seg button { border: 0; background: none; padding: .55rem .15rem; border-radius: 9px; font: 500 .84rem var(--sans); color: var(--ink-2); cursor: pointer; }
.pdf-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.pdf-range { display: flex; align-items: center; gap: .5rem; padding: 0 .1rem; }
.pdf-range b { flex: 1; text-align: center; font: 500 1.2rem var(--serif); letter-spacing: -.01em; }
.pdf-nav { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.pdf-nav[hidden] { display: block; visibility: hidden; }
.pdf-custom { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pdf-custom[hidden] { display: none; }
.pdf-custom label { display: grid; gap: .25rem; font-size: .8rem; color: var(--ink-2); }
.pdf-custom input { width: 100%; min-width: 0; }
.pdf-h { font: 600 .82rem var(--sans); color: var(--ink-2); margin: .35rem .25rem -.3rem; }
.pdf-h small { font-weight: 400; color: var(--ink-3); margin-left: .35rem; }
.pdf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pdf-sty { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdf-card { display: grid; justify-items: center; align-content: start; gap: .12rem; min-width: 0; padding: .7rem .3rem .6rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pdf-card svg { height: 54px; width: auto; max-width: 100%; margin-bottom: .4rem; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .09)); }
.pdf-card b { font: 600 .8rem var(--sans); }
.pdf-card small { font-size: .68rem; line-height: 1.25; color: var(--ink-3); }
.pdf-card.on { border-color: var(--dawn); box-shadow: 0 0 0 3px var(--dawn-soft); }
.pdf-card:focus-visible, .pdf-seg button:focus-visible, .pdf-paper button:focus-visible { outline: 2px solid var(--dawn); outline-offset: 2px; }
.pdf-opts .v49-row > span:first-child small { display: block; margin-top: 1px; font-size: .74rem; color: var(--ink-3); }
.pdf-paper { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.pdf-paper button { border: 0; background: none; padding: .35rem .7rem; border-radius: 8px; font: 500 .8rem var(--sans); color: var(--ink-2); cursor: pointer; }
.pdf-paper button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.pdf-go { display: grid; gap: .5rem; padding-top: .2rem; }
.pdf-make { width: 100%; min-height: 50px; justify-content: center; font-size: 1rem; }
.pdf-msg { margin: 0; text-align: center; font-size: .86rem; color: var(--ink-2); }
.pdf-msg:empty { display: none; }
.pdf-done { display: grid; gap: .2rem; padding: 1rem .9rem; text-align: center; background: var(--dawn-soft); border-radius: 16px; }
.pdf-done > b { font: 500 1.25rem var(--serif); }
.pdf-done > span { font-size: .86rem; color: var(--ink-2); }
.pdf-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .55rem; }
.pdf-acts .btn { min-width: 112px; justify-content: center; text-decoration: none; }
@media (max-width: 400px) { .pdf-sty { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pdf-card small { display: none; } }
@media (max-width: 520px) { .s-head .docai-s + .pdf-s span { display: none; } }

/* ===== 1.4.8 — le versioni precedenti di una pagina; un blocco di una versione più nuova ===== */
.ph-sh { display: grid; gap: .7rem; padding: .1rem .1rem .5rem; }
.ph-q { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ph-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h b" "p p"; align-items: center; gap: .35rem .75rem; padding: .75rem .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ph-h { grid-area: h; display: grid; gap: 1px; min-width: 0; }
.ph-h b { font: 600 .92rem var(--sans); }
.ph-h small { font-size: .76rem; color: var(--ink-3); }
.ph-it .btn { grid-area: b; }
.ph-pv { grid-area: p; margin: 0; font-size: .84rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ph-pv i { color: var(--ink-3); }
.ph-none { margin: .2rem 0 0; padding: .9rem 1rem; border-radius: 14px; background: var(--surface-2); font-size: .88rem; color: var(--ink-2); }
.s-editbn .btn.ghost { margin-left: auto; background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 40%, transparent); }
.s-editbn .btn.ghost + .btn { margin-left: -.5rem; }
.s-editbn .ph-short { display: none; }
@media (max-width: 480px) { .s-editbn .ph-long { display: none; } .s-editbn .ph-short { display: inline; } .s-editbn > span:first-child { font-size: .9rem; } }
.pg-raw { padding: .8rem 1rem; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--surface-2); }
.pg-raw p { margin: 0; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 420px) { .ph-it { grid-template-areas: "h h" "p p" "b b"; } .ph-it .btn { justify-self: start; } }

/* ===== 1.4.10 — la copertina di «Il mio spazio» ===== */
.page-layout.t8-home.hc-on .cover:not(.none) { display: block !important; margin: 0 0 12px; border-radius: 22px; height: calc(150px * var(--ch, 1.6)); box-shadow: 0 10px 30px -14px rgba(20, 14, 6, .35); }
@media (min-width: 640px) { .page-layout.t8-home.hc-on .cover:not(.none) { height: calc(170px * var(--ch, 1.6)); } }
.page-layout.t8-home .cover .cover-tools { display: none !important; }
.page-layout.t8-home .cover .hc-head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; justify-items: start; gap: 2px; margin: 0 !important; padding: 46px 20px 16px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .18) 35%, rgba(0, 0, 0, .52)); border-radius: 0 0 22px 22px; }
.page-layout.t8-home .cover .hc-head .s-date { display: block; color: rgba(255, 255, 255, .88); margin: 0; }
.page-layout.t8-home .cover .hc-head .s-h1 { display: block; color: #fff; margin: 0; text-align: left; text-shadow: 0 1px 14px rgba(0, 0, 0, .28); }
.page-layout.t8-home .cover.editing .hc-head { display: none; }
.page-layout.t8-home.hc-on .t8-head { margin-top: 0; }
.page-layout.t8-home.hc-on .t8-head .s-sum { margin-top: 0; }
@media (prefers-color-scheme: dark) { .page-layout.t8-home.hc-on .cover:not(.none) { box-shadow: none; } }
/* Modifica home › Copertina */
.s-hcov { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .9rem; align-items: start; margin: 0 0 .8rem; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.s-hcov .cover.s-hcov-th { --ch: 1; height: 80px; margin: 0; border-radius: 14px; display: grid; place-items: center; }
.s-hcov .cover.s-hcov-th.empty { background: var(--surface-2); color: var(--ink-3); border: 1.5px dashed var(--line); }
.s-hcov .cover.s-hcov-th.empty svg { width: 28px; height: 28px; }
.s-hcov-t { display: grid; gap: .35rem; min-width: 0; }
.s-hcov-t b { font-weight: 600; }
.s-hcov-t small { color: var(--ink-3); font-size: .82rem; line-height: 1.35; }
.s-hcov-a { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .15rem; }
.s-hcov-a label.busy { opacity: .7; pointer-events: none; }
.s-hcov-g { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .1rem; }
.s-hcov-g button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.s-hcov-g button.on { box-shadow: 0 0 0 2px var(--dawn); }
.s-hcov-g button:focus-visible { outline: 2px solid var(--dawn); outline-offset: 2px; }
@media (max-width: 420px) { .s-hcov { grid-template-columns: 1fr; } .s-hcov .cover.s-hcov-th { height: 96px; } }

/* ===== 1.4.11 — «Controlla la rete» nella schermata senza rete ===== */
#netwall .nw-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 14px; }
#netwall .nw-acts .btn { margin: 0; }
#netwall .nw-acts a.btn { text-decoration: none; }

/* =====================================================================================================
   1.4.13 · I FILI. Ogni tema ha i suoi fili (armocromia: stesso sottotono, stessa croma, luce misurata) e
   con quelli tinge tutto: icone, sezioni, ambiti, abitudini. Più la forma delle tessere e il punto del ricamo.
   --t-<filo>: i 13 fili · --k-<sezione>: il filo di ogni sezione (icone) · --c-<sezione>: lo stesso, leggibile come testo
   ===================================================================================================== */
/* Alba · Primavera */
html:not([data-palette]) { --t-rosso:#DC6557;--t-arancio:#E07930;--t-giallo:#E39F02;--t-erba:#90AC37;--t-verde:#4DA55E;--t-menta:#25A68A;--t-acqua:#199CB4;--t-blu:#4789D1;--t-indaco:#6974CB;--t-viola:#9A5FAC;--t-rosa:#D56587;--t-terra:#A2714B;--t-grigio:#787068;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-rosso);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#966803;--c-oggi-soft:#FBF3DE;--c-att:#B45701;--c-att-soft:#FBEEE4;--c-cal:#087C90;--c-cal-soft:#E1F2F5;--c-dia:#B9466C;--c-dia-soft:#FAEBEF;--c-fin:#1A8138;--c-fin-soft:#E8F3EA;--c-rou:#C04639;--c-rou-soft:#FAEBE9;--c-pag:#6B6F78;--c-pag-soft:#E7F0F9;--ti-r:30%;--st-d:1.1 1.7;--st-w:.9; }
html:not([data-palette])[data-theme="dark"] { --t-rosso:#FA897A;--t-arancio:#FD9C5E;--t-giallo:#FEBE4D;--t-erba:#AFCB65;--t-verde:#74C380;--t-menta:#5BC4A9;--t-acqua:#54BBD1;--t-blu:#6CA9EC;--t-indaco:#8794E6;--t-viola:#B780C8;--t-rosa:#F388A6;--t-terra:#BF906D;--t-grigio:#958E86;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-rosso);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#DB9E2A;--c-oggi-soft:#493C27;--c-att:#EE9053;--c-att-soft:#49362B;--c-cal:#57BBD0;--c-cal-soft:#273C42;--c-dia:#EE86A3;--c-dia-soft:#473239;--c-fin:#72C07E;--c-fin-soft:#2E3D32;--c-rou:#F58778;--c-rou-soft:#483230;--c-pag:#A3A9B4;--c-pag-soft:#2C3847; }
@media (prefers-color-scheme: dark) { html:not([data-palette]):not([data-theme="light"]) { --t-rosso:#FA897A;--t-arancio:#FD9C5E;--t-giallo:#FEBE4D;--t-erba:#AFCB65;--t-verde:#74C380;--t-menta:#5BC4A9;--t-acqua:#54BBD1;--t-blu:#6CA9EC;--t-indaco:#8794E6;--t-viola:#B780C8;--t-rosa:#F388A6;--t-terra:#BF906D;--t-grigio:#958E86;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-rosso);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#DB9E2A;--c-oggi-soft:#493C27;--c-att:#EE9053;--c-att-soft:#49362B;--c-cal:#57BBD0;--c-cal-soft:#273C42;--c-dia:#EE86A3;--c-dia-soft:#473239;--c-fin:#72C07E;--c-fin-soft:#2E3D32;--c-rou:#F58778;--c-rou-soft:#483230;--c-pag:#A3A9B4;--c-pag-soft:#2C3847; } }
/* Oceano · Estate */
html[data-palette="oceano"] { --t-rosso:#C66769;--t-arancio:#CC7C5C;--t-giallo:#C9A85F;--t-erba:#77A268;--t-verde:#4E9974;--t-menta:#43988B;--t-acqua:#3196AB;--t-blu:#3D80BC;--t-indaco:#6074BA;--t-viola:#8672B0;--t-rosa:#B76D8A;--t-terra:#947D65;--t-grigio:#6A757E;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-indaco);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-acqua);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#8D6C16;--c-oggi-soft:#F8F4EA;--c-att:#AC5B3A;--c-att-soft:#F8EEEA;--c-cal:#576DB5;--c-cal-soft:#EAEDF6;--c-dia:#A45976;--c-dia-soft:#F6ECF0;--c-fin:#2E805A;--c-fin-soft:#E8F2ED;--c-rou:#067C90;--c-rou-soft:#E4F1F4;--c-pag:#6B6F78;--c-pag-soft:#E6EEF6;--ti-r:36%;--st-d:.01 1.9;--st-w:1.1; }
html[data-palette="oceano"][data-theme="dark"] { --t-rosso:#E38989;--t-arancio:#EA9D7F;--t-giallo:#E5C784;--t-erba:#97C08A;--t-verde:#73B793;--t-menta:#6BB7AA;--t-acqua:#5EB5C8;--t-blu:#629FD8;--t-indaco:#7E93D6;--t-viola:#A391CC;--t-rosa:#D58EA8;--t-terra:#B19C85;--t-grigio:#88929B;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-indaco);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-acqua);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#C4A767;--c-oggi-soft:#3D4141;--c-att:#E09679;--c-att-soft:#3E3940;--c-cal:#92A8EA;--c-cal-soft:#283751;--c-dia:#D993AD;--c-dia-soft:#3A3648;--c-fin:#79BC98;--c-fin-soft:#263E44;--c-rou:#65B9CC;--c-rou-soft:#223E4E;--c-pag:#A3A9B4;--c-pag-soft:#233952; }
@media (prefers-color-scheme: dark) { html[data-palette="oceano"]:not([data-theme="light"]) { --t-rosso:#E38989;--t-arancio:#EA9D7F;--t-giallo:#E5C784;--t-erba:#97C08A;--t-verde:#73B793;--t-menta:#6BB7AA;--t-acqua:#5EB5C8;--t-blu:#629FD8;--t-indaco:#7E93D6;--t-viola:#A391CC;--t-rosa:#D58EA8;--t-terra:#B19C85;--t-grigio:#88929B;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-indaco);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-acqua);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#C4A767;--c-oggi-soft:#3D4141;--c-att:#E09679;--c-att-soft:#3E3940;--c-cal:#92A8EA;--c-cal-soft:#283751;--c-dia:#D993AD;--c-dia-soft:#3A3648;--c-fin:#79BC98;--c-fin-soft:#263E44;--c-rou:#65B9CC;--c-rou-soft:#223E4E;--c-pag:#A3A9B4;--c-pag-soft:#233952; } }
/* Foresta · Autunno */
html[data-palette="foresta"] { --t-rosso:#B85E4D;--t-arancio:#BC743C;--t-giallo:#C19A3B;--t-erba:#859841;--t-verde:#568B50;--t-menta:#498B71;--t-acqua:#3A868D;--t-blu:#4A7997;--t-indaco:#5A6C96;--t-viola:#8B5A82;--t-rosa:#B06A73;--t-terra:#8B6343;--t-grigio:#696C62;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-viola);--k-pag:var(--t-blu);--k-ai:var(--t-indaco);--k-trama:var(--dawn);--c-oggi:#8E6C02;--c-oggi-soft:#F7F2E6;--c-att:#A95F21;--c-att-soft:#F6EDE6;--c-cal:#287C84;--c-cal-soft:#E5EFF0;--c-dia:#A45C66;--c-dia-soft:#F5ECED;--c-fin:#467E40;--c-fin-soft:#E9F0E8;--c-rou:#94608A;--c-rou-soft:#F0EAEF;--c-pag:#6B6F78;--c-pag-soft:#E7EEF1;--ti-r:22%;--st-d:1.9 1.4;--st-w:.9; }
html[data-palette="foresta"][data-theme="dark"] { --t-rosso:#D57F6E;--t-arancio:#D99463;--t-giallo:#DFBA67;--t-erba:#A4B668;--t-verde:#77A971;--t-menta:#6CA98F;--t-acqua:#60A3AA;--t-blu:#6B97B4;--t-indaco:#788AB3;--t-viola:#A8799E;--t-rosa:#CE8B92;--t-terra:#A88263;--t-grigio:#868980;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-viola);--k-pag:var(--t-blu);--k-ai:var(--t-indaco);--k-trama:var(--dawn);--c-oggi:#C9A655;--c-oggi-soft:#3D4029;--c-att:#DD9969;--c-att-soft:#3B3928;--c-cal:#76B8BE;--c-cal-soft:#233C36;--c-dia:#D9969D;--c-dia-soft:#393731;--c-fin:#88BA83;--c-fin-soft:#283D2B;--c-rou:#C999BF;--c-rou-soft:#323334;--c-pag:#A3A9B4;--c-pag-soft:#253938; }
@media (prefers-color-scheme: dark) { html[data-palette="foresta"]:not([data-theme="light"]) { --t-rosso:#D57F6E;--t-arancio:#D99463;--t-giallo:#DFBA67;--t-erba:#A4B668;--t-verde:#77A971;--t-menta:#6CA98F;--t-acqua:#60A3AA;--t-blu:#6B97B4;--t-indaco:#788AB3;--t-viola:#A8799E;--t-rosa:#CE8B92;--t-terra:#A88263;--t-grigio:#868980;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-verde);--k-rou:var(--t-viola);--k-pag:var(--t-blu);--k-ai:var(--t-indaco);--k-trama:var(--dawn);--c-oggi:#C9A655;--c-oggi-soft:#3D4029;--c-att:#DD9969;--c-att-soft:#3B3928;--c-cal:#76B8BE;--c-cal-soft:#233C36;--c-dia:#D9969D;--c-dia-soft:#393731;--c-fin:#88BA83;--c-fin-soft:#283D2B;--c-rou:#C999BF;--c-rou-soft:#323334;--c-pag:#A3A9B4;--c-pag-soft:#253938; } }
/* Tramonto · Autunno caldo */
html[data-palette="tramonto"] { --t-rosso:#C56153;--t-arancio:#D07843;--t-giallo:#D69B3B;--t-erba:#8E964B;--t-verde:#6C9264;--t-menta:#529182;--t-acqua:#3F8A93;--t-blu:#4C7DA3;--t-indaco:#6B6FA6;--t-viola:#985D8D;--t-rosa:#C36A7E;--t-terra:#9C6A49;--t-grigio:#7C6E67;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-erba);--k-rou:var(--t-rosso);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#976703;--c-oggi-soft:#FAF2E6;--c-att:#B25819;--c-att-soft:#F9EDE7;--c-cal:#297C85;--c-cal-soft:#E6F0F1;--c-dia:#AE536A;--c-dia-soft:#F7ECEE;--c-fin:#6E7522;--c-fin-soft:#F0F1E8;--c-rou:#B75042;--c-rou-soft:#F7EAE9;--c-pag:#6B6F78;--c-pag-soft:#E8EEF3;--ti-r:30%;--st-d:.9 1.3;--st-w:.9; }
html[data-palette="tramonto"][data-theme="dark"] { --t-rosso:#E28374;--t-arancio:#EE9A69;--t-giallo:#F4BC69;--t-erba:#ADB570;--t-verde:#8CB084;--t-menta:#75AFA0;--t-acqua:#65A8B0;--t-blu:#6E9BC0;--t-indaco:#888DC2;--t-viola:#B57DAA;--t-rosa:#E08B9D;--t-terra:#B9896A;--t-grigio:#998C85;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-erba);--k-rou:var(--t-rosso);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#D5A04E;--c-oggi-soft:#4E3924;--c-att:#E69465;--c-att-soft:#4D3224;--c-cal:#76B7C0;--c-cal-soft:#323532;--c-dia:#E38FA1;--c-dia-soft:#4A2F2F;--c-fin:#AAB26E;--c-fin-soft:#403726;--c-rou:#EB8E7E;--c-rou-soft:#4B2D26;--c-pag:#A3A9B4;--c-pag-soft:#343236; }
@media (prefers-color-scheme: dark) { html[data-palette="tramonto"]:not([data-theme="light"]) { --t-rosso:#E28374;--t-arancio:#EE9A69;--t-giallo:#F4BC69;--t-erba:#ADB570;--t-verde:#8CB084;--t-menta:#75AFA0;--t-acqua:#65A8B0;--t-blu:#6E9BC0;--t-indaco:#888DC2;--t-viola:#B57DAA;--t-rosa:#E08B9D;--t-terra:#B9896A;--t-grigio:#998C85;--k-oggi:var(--t-giallo);--k-att:var(--t-arancio);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-erba);--k-rou:var(--t-rosso);--k-pag:var(--t-blu);--k-ai:var(--t-viola);--k-trama:var(--dawn);--c-oggi:#D5A04E;--c-oggi-soft:#4E3924;--c-att:#E69465;--c-att-soft:#4D3224;--c-cal:#76B7C0;--c-cal-soft:#323532;--c-dia:#E38FA1;--c-dia-soft:#4A2F2F;--c-fin:#AAB26E;--c-fin-soft:#403726;--c-rou:#EB8E7E;--c-rou-soft:#4B2D26;--c-pag:#A3A9B4;--c-pag-soft:#343236; } }
/* Lavanda · Inverno */
html[data-palette="viola"] { --t-rosso:#C44F60;--t-arancio:#CC6C4E;--t-giallo:#C3AC4A;--t-erba:#6B9E52;--t-verde:#30905D;--t-menta:#2D9486;--t-acqua:#258FAB;--t-blu:#3B76C3;--t-indaco:#5F6ABE;--t-viola:#8565BA;--t-rosa:#BF5794;--t-terra:#8B6560;--t-grigio:#747081;--k-oggi:var(--t-giallo);--k-att:var(--t-acqua);--k-cal:var(--t-indaco);--k-dia:var(--t-rosso);--k-fin:var(--t-verde);--k-rou:var(--t-rosa);--k-pag:var(--t-viola);--k-ai:var(--t-menta);--k-trama:var(--dawn);--c-oggi:#857004;--c-oggi-soft:#F7F4E7;--c-att:#067E99;--c-att-soft:#E3F0F4;--c-cal:#606AC3;--c-cal-soft:#EAECF7;--c-dia:#BE4358;--c-dia-soft:#F7E8EA;--c-fin:#11844E;--c-fin-soft:#E4F1EA;--c-rou:#B24788;--c-rou-soft:#F7E9F1;--c-pag:#6B6F78;--c-pag-soft:#EFEBF6;--ti-r:42%;--st-d:.01 1.55;--st-w:1; }
html[data-palette="viola"][data-theme="dark"] { --t-rosso:#E17380;--t-arancio:#E98D71;--t-giallo:#E0CB73;--t-erba:#8CBC75;--t-verde:#5BAE7D;--t-menta:#5BB2A4;--t-acqua:#56ADC8;--t-blu:#5E95DF;--t-indaco:#7D89D9;--t-viola:#A285D5;--t-rosa:#DC7AB2;--t-terra:#A8847E;--t-grigio:#918E9E;--k-oggi:var(--t-giallo);--k-att:var(--t-acqua);--k-cal:var(--t-indaco);--k-dia:var(--t-rosso);--k-fin:var(--t-verde);--k-rou:var(--t-rosa);--k-pag:var(--t-viola);--k-ai:var(--t-menta);--k-trama:var(--dawn);--c-oggi:#BFAB56;--c-oggi-soft:#453B35;--c-att:#64B8D2;--c-att-soft:#293546;--c-cal:#97A4F4;--c-cal-soft:#312E4A;--c-dia:#F38591;--c-dia-soft:#452938;--c-fin:#6EBF8E;--c-fin-soft:#2A3537;--c-rou:#E786BD;--c-rou-soft:#442B42;--c-pag:#A3A9B4;--c-pag-soft:#382D49; }
@media (prefers-color-scheme: dark) { html[data-palette="viola"]:not([data-theme="light"]) { --t-rosso:#E17380;--t-arancio:#E98D71;--t-giallo:#E0CB73;--t-erba:#8CBC75;--t-verde:#5BAE7D;--t-menta:#5BB2A4;--t-acqua:#56ADC8;--t-blu:#5E95DF;--t-indaco:#7D89D9;--t-viola:#A285D5;--t-rosa:#DC7AB2;--t-terra:#A8847E;--t-grigio:#918E9E;--k-oggi:var(--t-giallo);--k-att:var(--t-acqua);--k-cal:var(--t-indaco);--k-dia:var(--t-rosso);--k-fin:var(--t-verde);--k-rou:var(--t-rosa);--k-pag:var(--t-viola);--k-ai:var(--t-menta);--k-trama:var(--dawn);--c-oggi:#BFAB56;--c-oggi-soft:#453B35;--c-att:#64B8D2;--c-att-soft:#293546;--c-cal:#97A4F4;--c-cal-soft:#312E4A;--c-dia:#F38591;--c-dia-soft:#452938;--c-fin:#6EBF8E;--c-fin-soft:#2A3537;--c-rou:#E786BD;--c-rou-soft:#442B42;--c-pag:#A3A9B4;--c-pag-soft:#382D49; } }
/* Ciliegio · Estate tenue */
html[data-palette="rosa"] { --t-rosso:#CE5F6E;--t-arancio:#D88964;--t-giallo:#D4B253;--t-erba:#91AF6A;--t-verde:#65A573;--t-menta:#58A895;--t-acqua:#4DA2B2;--t-blu:#5591C0;--t-indaco:#7384C1;--t-viola:#9A7ABB;--t-rosa:#CE6C93;--t-terra:#A27569;--t-grigio:#81757C;--k-oggi:var(--t-giallo);--k-att:var(--t-verde);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-arancio);--k-rou:var(--t-viola);--k-pag:var(--t-indaco);--k-ai:var(--t-blu);--k-trama:var(--dawn);--c-oggi:#8B6E01;--c-oggi-soft:#F9F5E9;--c-att:#3B7F4D;--c-att-soft:#EBF3ED;--c-cal:#157C8D;--c-cal-soft:#E8F3F5;--c-dia:#B04D77;--c-dia-soft:#F9ECF1;--c-fin:#AB5C35;--c-fin-soft:#FAF0EB;--c-rou:#8463A5;--c-rou-soft:#F2EEF6;--c-pag:#6B6F78;--c-pag-soft:#EDEFF7;--ti-r:50%;--st-d:1.3 1.9;--st-w:1; }
html[data-palette="rosa"][data-theme="dark"] { --t-rosso:#EB828D;--t-arancio:#F6AB88;--t-giallo:#E6C873;--t-erba:#B1CE8E;--t-verde:#88C494;--t-menta:#7EC7B4;--t-acqua:#75C0D0;--t-blu:#79B0DD;--t-indaco:#93A3DE;--t-viola:#B89AD8;--t-rosa:#EB8FB2;--t-terra:#C09488;--t-grigio:#9E939A;--k-oggi:var(--t-giallo);--k-att:var(--t-verde);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-arancio);--k-rou:var(--t-viola);--k-pag:var(--t-indaco);--k-ai:var(--t-blu);--k-trama:var(--dawn);--c-oggi:#C5A855;--c-oggi-soft:#4B3B2F;--c-att:#81BB8D;--c-att-soft:#383A36;--c-cal:#6EB8C7;--c-cal-soft:#343A42;--c-dia:#E58BAD;--c-dia-soft:#4C303C;--c-fin:#DF9775;--c-fin-soft:#4E3533;--c-rou:#B99CD8;--c-rou-soft:#423243;--c-pag:#A3A9B4;--c-pag-soft:#3A3444; }
@media (prefers-color-scheme: dark) { html[data-palette="rosa"]:not([data-theme="light"]) { --t-rosso:#EB828D;--t-arancio:#F6AB88;--t-giallo:#E6C873;--t-erba:#B1CE8E;--t-verde:#88C494;--t-menta:#7EC7B4;--t-acqua:#75C0D0;--t-blu:#79B0DD;--t-indaco:#93A3DE;--t-viola:#B89AD8;--t-rosa:#EB8FB2;--t-terra:#C09488;--t-grigio:#9E939A;--k-oggi:var(--t-giallo);--k-att:var(--t-verde);--k-cal:var(--t-acqua);--k-dia:var(--t-rosa);--k-fin:var(--t-arancio);--k-rou:var(--t-viola);--k-pag:var(--t-indaco);--k-ai:var(--t-blu);--k-trama:var(--dawn);--c-oggi:#C5A855;--c-oggi-soft:#4B3B2F;--c-att:#81BB8D;--c-att-soft:#383A36;--c-cal:#6EB8C7;--c-cal-soft:#343A42;--c-dia:#E58BAD;--c-dia-soft:#4C303C;--c-fin:#DF9775;--c-fin-soft:#4E3533;--c-rou:#B99CD8;--c-rou-soft:#423243;--c-pag:#A3A9B4;--c-pag-soft:#3A3444; } }

/* le icone: il colore arriva già giusto per il tema, in chiaro e in scuro (prima in scuro si schiariva a parte) */
[data-theme="dark"] .ti.tf { --c: var(--c0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ti.tf { --c: var(--c0); } }
/* il punto filza: un filo più chiaro (in scuro più scuro) che corre dentro il bordo della forma; il punto cambia col tema */
.tf .st { fill: none; stroke: color-mix(in srgb, var(--c) 36%, #fff); stroke-width: var(--st-w, .9); stroke-dasharray: var(--st-d, 1.1 1.7); stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .tf .st { stroke: color-mix(in srgb, var(--c) 44%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tf .st { stroke: color-mix(in srgb, var(--c) 44%, #000); } }
.t11-hab .ti .st { display: none; }   /* icona bianca su colore pieno: niente ricamo */
.btn .tf .st, .h5-edit .tf .st, .crumb-home .tf .st, .s-head .tf .st { display: none; }   /* nei pulsanti l'icona è piccola (15-16 px): pulita */
.t10-bdot .ti .st { display: none; }
/* in scuro i fili sono più chiari: dove sopra c'è del bianco (icona dell'ambito, iniziali, abitudini) il fondo si scurisce un po' */
[data-theme="dark"] .t10-bdot { background: color-mix(in srgb, var(--bc) 72%, #000); } [data-theme="dark"] .t11-hab .ti-tile { background: color-mix(in srgb, var(--ac) 72%, #000); }
[data-theme="dark"] .sh-ini { background: color-mix(in srgb, var(--bc, var(--ec)) 72%, #000); } [data-theme="dark"] .s-ev .sh-ini { background: color-mix(in srgb, var(--ec) 72%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t10-bdot { background: color-mix(in srgb, var(--bc) 72%, #000); } :root:not([data-theme="light"]) .t11-hab .ti-tile { background: color-mix(in srgb, var(--ac) 72%, #000); }
  :root:not([data-theme="light"]) .sh-ini { background: color-mix(in srgb, var(--bc, var(--ec)) 72%, #000); } :root:not([data-theme="light"]) .s-ev .sh-ini { background: color-mix(in srgb, var(--ec) 72%, #000); } }
/* la forma delle tessere cambia col tema (Alba come prima; Ciliegio tonde, Foresta più squadrate) */
.ti-tile { border-radius: var(--ti-r, 30%) !important; }
/* i campioni dei temi: lo sfondo del tema con i suoi fili intrecciati */
.palette-opt .sw { display: grid; place-items: center; overflow: hidden; }
.palette-opt .sw .sw-w { width: 34px; height: 34px; display: block; }
.palette-opt .sw i { display: none; }

/* ===== 1.4.13 — la copertina in tutte le home: «＋ Copertina» accanto alla data, il pulsante sulla copertina ===== */
.hc-top { display: flex; align-items: center; gap: .5rem; min-height: 1.6rem; }
.hc-top .s-date { flex: 1; min-width: 0; }
.hc-add { flex: none; border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; margin-right: -.6rem; border-radius: 99px; cursor: pointer; opacity: .8; transition: opacity .15s, background-color .15s; }
.hc-add:hover, .hc-add:focus-visible { opacity: 1; background: var(--surface-2); color: var(--ink-2); }
@media (hover: hover) { .hc-add { opacity: .5; } .t8-head:hover .hc-add, .h5:hover .hc-top .hc-add, .hc-add:focus-visible { opacity: 1; } }
.cover .hc-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.cover .hc-btn svg { width: 19px; height: 19px; }
.cover .hc-btn:hover, .cover .hc-btn:focus-visible { background: rgba(0, 0, 0, .5); }
.cover.editing .hc-btn { display: none; }
/* la home a schede con la copertina: come «Il mio spazio» */
.h5 .h5-cov { display: block; margin: 0 0 12px; border-radius: 22px; height: calc(150px * var(--ch, 1.6)); box-shadow: 0 10px 30px -14px rgba(20, 14, 6, .35); }
@media (min-width: 640px) { .h5 .h5-cov { height: calc(170px * var(--ch, 1.6)); } }
.h5 .h5-cov .hc-head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; justify-items: start; gap: 2px; margin: 0; padding: 46px 20px 16px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .18) 35%, rgba(0, 0, 0, .52)); border-radius: 0 0 22px 22px; }
.h5 .h5-cov .hc-head .s-date { display: block; color: rgba(255, 255, 255, .88); margin: 0; }
.h5 .h5-cov .hc-head .s-date a { color: #fff; pointer-events: auto; }
.h5 .h5-cov .hc-head .s-h1 { display: block; color: #fff; margin: 0; text-align: left; text-shadow: 0 1px 14px rgba(0, 0, 0, .28); }
.h5 .h5-cov.editing .hc-head { display: none; }
.h5.hc-on > .s-sum { margin-top: 0; }
[data-theme="dark"] .h5 .h5-cov { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h5 .h5-cov { box-shadow: none; } }
.h5.editing > .s-hcov { margin-top: .2rem; }
/* il foglio «Copertina»: la stessa riga di Modifica home, senza cornice */
.hcov-sh .s-hcov { margin: 0; border: 0; padding: .3rem 0 .2rem; background: transparent; }
.hcov-sh .s-hcov-t > b { display: none; }   /* il titolo c'è già in cima al foglio */

/* ============================ 1.5.0 ============================ */
/* l'assistente IA nella barra */
.capture .cap-ai { width: 32px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 999px; }
.capture .cap-ai .ti { width: 20px; height: 20px; }
.capture .cap-ai:hover { background: var(--bg); }
#capture-preview.v150-think { color: var(--ink-3); animation: v150pulse 1.2s ease-in-out infinite; }
@keyframes v150pulse { 50% { opacity: .45; } }
.v150-up { padding: 14px 16px; margin-bottom: 14px; }
.v150-up b { display: block; font-size: 1rem; margin-bottom: 4px; }
.v150-up p { margin: 0 0 10px; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.v150-ex { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.v150-ex span { color: var(--ink-2); font-size: .92rem; }
.v150-hero b { font-size: clamp(30px, 8vw, 40px); }

/* i tuoi fili */
.fi-nodes { flex: none; overflow: visible; }
.fi-nodes line { stroke: var(--fc); stroke-width: 2; opacity: .5; }
.fi-nodes circle { fill: var(--surface); stroke: var(--fc); stroke-width: 2; }
.fi-nodes circle.on { fill: var(--fc); }
.fi-nodes circle.half { fill: color-mix(in srgb, var(--fc) 45%, var(--surface)); }
.fi-nodes-p { font-size: 12px; color: var(--ink-3); flex: none; }
.fi-home { display: flex; flex-direction: column; }
.fi-hr { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-top: 1px solid var(--line); }
.fi-hr:first-child { border-top: 0; padding-top: 2px; }
.fi-hr .ti-tile, .fi-row .ti-tile, .fi-bh .ti-tile, .fi-opt .ti-tile { flex: none; }
.fi-hr .t, .fi-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fi-hr .t b, .fi-row .t b { font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-hr .t small, .fi-row .t small { color: var(--ink-3); font-size: .8rem; }
.fi-hr .t small.ok { color: var(--ok); font-weight: 600; }
.h5h .fi-yr { color: var(--dawn); text-decoration: none; font-weight: 600; }
.fi-res { margin-top: 10px; padding: 11px 13px 12px; border-radius: 14px; background: color-mix(in srgb, var(--t-verde) 11%, var(--surface)); position: relative; }
.fi-res > small { display: flex; align-items: center; gap: 6px; color: var(--t-verde); font-weight: 700; font-size: .8rem; }
.fi-res > small .ti { width: 16px; height: 16px; }
.fi-res p { margin: 5px 0 9px; font-size: .9rem; line-height: 1.42; color: var(--ink-2); }
.fi-res p b { color: var(--ink); }
.fi-res-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fi-res .fi-go { background: var(--t-verde); border-color: var(--t-verde); color: #fff; }
.fi-res .s-x { position: absolute; top: 6px; right: 6px; }
.page-head + .fi-res { margin: 0 0 14px; }
.fi-chs { display: flex; flex-direction: column; gap: 2px; margin: 10px 0; }
.fi-ch { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fi-ch:hover, .fi-ch:focus-visible { background: var(--surface-2); }
.fi-ch:first-child { background: color-mix(in srgb, var(--t-verde) 10%, transparent); }
.fi-ch span { display: flex; flex-direction: column; }
.fi-ch small { color: var(--ink-3); font-size: .84rem; }
.fi-lead { margin: .2rem 0 0; max-width: 56ch; }
.fi-telacard { padding: 14px 14px 10px; margin-bottom: 14px; }
.fi-tw { position: relative; }
.fi-tela { display: block; width: 100%; }
.fi-weft { stroke-width: 1.4; opacity: .22; vector-effect: non-scaling-stroke; }
.fi-now { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.fi-y0 { stroke: var(--ink-3); stroke-dasharray: 2 3; opacity: .5; vector-effect: non-scaling-stroke; }
.fi-mo { position: relative; height: 16px; margin-top: 6px; }
.fi-mo span { position: absolute; top: 0; font-size: 11px; color: var(--ink-3); text-transform: uppercase; }
.fi-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.fi-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fi-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); }
.fi-list { padding: 4px 14px; margin-bottom: 14px; }
.fi-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fi-row:first-child { border-top: 0; }
.fi-row .v { flex: none; display: flex; flex-direction: column; align-items: flex-end; max-width: 46%; text-align: right; }
.fi-row .v b { font-size: .88rem; font-weight: 600; }
.fi-row .v small { color: var(--ink-3); font-size: .78rem; }
.fi-acts { display: flex; gap: 8px; margin-bottom: 10px; }
.fi-empty { max-width: 520px; margin: 1.5rem auto; text-align: left; }
.fi-empty h1 { margin: 1rem 0 .4rem; }
.fi-empty .fi-tw { padding: 14px; background: var(--surface); border-radius: 18px; }
.fi-step { margin: 0; color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.fi-h { margin: .15rem 0 .35rem; font-size: 1.35rem; }
.fi-sug { display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; overflow: hidden; margin: 10px 0 4px; }
.fi-opt { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.fi-opt:first-child { border-top: 0; }
.fi-opt > input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.fi-opt .grow { display: flex; flex-direction: column; min-width: 0; }
.fi-opt .grow small { color: var(--ink-3); font-size: .82rem; }
.fi-opt .fi-ck { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--line-2, var(--line)); flex: none; display: grid; place-items: center; }
.fi-opt.on .fi-ck { background: var(--fc, var(--dawn)); border-color: var(--fc, var(--dawn)); }
.fi-opt.on .fi-ck::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.fi-opt > input:focus-visible ~ .fi-ck { outline: 2px solid var(--dawn); outline-offset: 2px; }
.fi-opt.own .grow input { width: 100%; border: 0; background: transparent; font: inherit; padding: 4px 0; color: inherit; }
.fi-opt.own .grow input:focus { outline: none; }
.fi-b { background: var(--surface); border-radius: 16px; padding: 12px 14px; margin: 12px 0; box-shadow: inset 3px 0 0 var(--fc); }
.fi-bh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fi-bh input { flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 1.05rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 4px 0; color: inherit; }
.fi-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.fi-r > span:first-child { color: var(--ink-2); font-size: .9rem; }
.fi-num { display: inline-flex; align-items: center; gap: 6px; }
.fi-num input { width: 5.2rem; text-align: right; }
.fi-num input.fi-u { width: 7rem; text-align: left; }
.fi-num em { font-style: normal; color: var(--ink-3); }
.fi-days { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fi-days label { position: relative; cursor: pointer; }
.fi-days input { position: absolute; opacity: 0; pointer-events: none; }
.fi-days span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.fi-days input:checked + span { background: var(--fc, var(--dawn)); color: #fff; }
.fi-days input:focus-visible + span { outline: 2px solid var(--dawn); outline-offset: 2px; }
.fi-time { width: 7rem; }
.field .fi-days { margin-bottom: 8px; }
.fi-prep { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.fi-prep > small { color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.fi-prep .s-switch { padding: .6rem 0; }
.fi-tagnote { padding: .6rem 0; display: flex; flex-direction: column; }
.fi-tagnote b { color: var(--fc); }
.fi-tagnote small { color: var(--ink-3); font-size: .84rem; }
.fi-ai { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.fi-ai .ti { width: 18px; height: 18px; }
.fi-ai small { margin-left: auto; color: var(--ink-3); }
.fi-aiw { margin: 8px 0 0; font-size: .88rem; color: var(--ink-2); }
.fi-sw { padding: .7rem 0; }
.fi-eb { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.fi-cardbox img { aspect-ratio: 9 / 16; }
.fi-ready { margin: .2rem 0 .6rem; }
.v150-chip { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--fc); background: color-mix(in srgb, var(--fc) 14%, transparent); vertical-align: 1px; }
.hc-streak .hc-tr { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.v150-ft { position: fixed; left: 50%; bottom: 8.5rem; z-index: 61; display: flex; align-items: center; gap: 11px; width: min(92vw, 380px); padding: 11px 14px; border-radius: 16px;
  background: var(--t11-night); color: var(--t11-paper); box-shadow: var(--shadow-lg); transform: translate(-50%, 12px); opacity: 0; transition: transform .28s var(--ease-out, ease), opacity .28s; }
.v150-ft.in { transform: translate(-50%, 0); opacity: 1; }
.v150-ft > span:not(.ti-tile) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v150-ft b { font-size: .92rem; }
.v150-ft small { color: rgba(246, 241, 231, .7); font-size: .8rem; line-height: 1.35; }
.v150-ft .fi-nodes circle { fill: var(--t11-night); }
.v150-ft .fi-nodes circle.on { fill: var(--fc); }
@media (min-width: 700px) { .v150-ft { bottom: 2rem; } }

/* la settimana gentile */
.gw { margin: 10px 0 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.gw-h { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.gw-h b { color: var(--dawn); }
.gw.full .gw-h b { color: var(--ok); }
.gw-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0 4px; }
.gw-d, .eve-d { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gw-d i, .eve-d i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; border: 1.6px solid color-mix(in srgb, var(--ink-3) 40%, transparent); }
.gw-d small, .eve-d small { font-size: .7rem; color: var(--ink-3); }
.gw-d.on i { background: var(--dawn); border-color: var(--dawn); }
.gw-d svg, .eve-d svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gw-d.td i { border: 2px solid var(--dawn); }
.gw-d.rest i, .eve-d.rest i { border-style: dashed; }
.gw-d.rest em, .eve-d.rest em { font-style: normal; font-size: 7.5px; color: var(--ink-3); }
.gw-d.fu i, .gw-d.miss i { opacity: .55; }
.gw-cap { margin: 4px 0 0; font-size: .8rem; color: var(--ink-3); line-height: 1.4; }

/* il momento della sera */
#v150-eve { position: fixed; inset: 0; z-index: 80; background: var(--t11-night); color: var(--t11-paper); display: flex; align-items: center; justify-content: center; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); opacity: 0; transition: opacity .3s; overflow-y: auto; }
#v150-eve.in { opacity: 1; }
#v150-eve .eve-in { width: 100%; max-width: 440px; margin: auto; }
#v150-eve .eve-k { display: block; color: rgba(246, 241, 231, .6); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
#v150-eve h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 9vw, 44px); line-height: 1.08; margin: 10px 0 10px; letter-spacing: -.01em; }
#v150-eve h2 b { color: var(--t11-amber); font-weight: 500; }
#v150-eve .eve-l { margin: 0 0 16px; color: rgba(246, 241, 231, .78); font-size: .95rem; line-height: 1.45; }
#v150-eve .eve-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 20px; }
#v150-eve .eve-d i { width: 36px; height: 36px; border-color: rgba(246, 241, 231, .35); }
#v150-eve .eve-d small { color: rgba(246, 241, 231, .55); }
#v150-eve .eve-d.on i { background: var(--t11-amber); border-color: var(--t11-amber); }
#v150-eve .eve-d.on svg { stroke: var(--t11-night); }
#v150-eve .eve-d.td i { border-color: var(--t11-amber); border-width: 2px; }
#v150-eve .eve-d.fu i { opacity: .4; }
#v150-eve .eve-c { background: rgba(246, 241, 231, .07); border-radius: 16px; padding: 13px 15px; margin-bottom: 10px; }
#v150-eve .eve-c small { color: var(--t11-amber); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
#v150-eve .eve-c p { margin: 6px 0 4px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.4; }
#v150-eve .eve-c p.s { font-family: inherit; font-size: .92rem; color: rgba(246, 241, 231, .85); }
#v150-eve .eve-c em { font-style: normal; font-size: .76rem; color: rgba(246, 241, 231, .5); }
#v150-eve .eve-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
#v150-eve .eve-b .btn { justify-content: center; min-height: 46px; border-radius: 14px; background: rgba(246, 241, 231, .1); color: var(--t11-paper); border: 0; }
#v150-eve .eve-b .btn.primary { background: var(--t11-paper); color: var(--t11-night); }
@media (prefers-reduced-motion: reduce) { #v150-eve, .v150-ft { transition: none; } #capture-preview.v150-think { animation: none; } }

/* Oggi: una cosa piccola, il mese pronto; Impostazioni */
.v150-small { margin: 0 0 12px; }
.v150-small .h5h .s-x { margin-left: auto; }
.v150-sub { display: block; color: var(--ink-3); font-size: .8rem; margin: 2px 0 0 34px; }
.v150-wkrow, .v150-nr { flex-wrap: wrap; gap: 8px; }
.v150-wkrow .seg, .v150-nr .seg { flex: none; }
.v150-q { gap: 8px; }
.v150-q input[type=time] { width: 7rem; }
.v150-q input:disabled { opacity: .45; }
.fi-b input[type=number], .fi-b input.fi-u, .fi-b input[type=time], .fi-sw ~ .field input, .fi-num input { font: inherit; font-size: .95rem; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); padding: .45rem .6rem; min-height: 36px; box-sizing: border-box; }
.fi-b input:focus-visible, .fi-num input:focus-visible { outline: 2px solid color-mix(in srgb, var(--fc, var(--dawn)) 60%, transparent); outline-offset: 0; }
.fi-bh input:focus { outline: none; border-bottom-color: var(--fc, var(--dawn)); }
.fi-empty .t11-big { width: 100%; justify-content: center; }
.fi-empty .t10-note { margin-top: 14px; }
.fi-aiw:not([hidden]) { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.v150-nr .t, .v150-wkrow .t { flex: 1 0 100%; }
.v150-nr, .v150-wkrow { padding-top: 10px; padding-bottom: 10px; }
.v14-wkbtn + .t10-note, .fi-acts + .t10-note { margin-top: 14px; }
.fi-row .v .fi-nodes { margin-top: 4px; }
.fi-mo span { text-transform: none; }

/* 1.5.1: il foglio «Trama 1.5» */
.v151-list { display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; overflow: hidden; margin: 10px 0 4px; }
.v151-r { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line); }
.v151-r:first-child { border-top: 0; }
.v151-r .ti-tile { flex: none; margin-top: 2px; }
.v151-r .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v151-r b { font-size: .98rem; }
.v151-r small { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.v151-a { align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--dawn); text-decoration: none; cursor: pointer; }

/* ---------------- 1.5.2: prima Trama, poi Claude · il microfono · Claude nell'Assistente ---------------- */
.capture .cap-ai { border: 0; background: transparent; cursor: pointer; padding: 0; }
.capture .cap-mic, .chat-input-row .cap-mic { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; position: relative; }
.chat-input-row .cap-mic { width: 42px; height: 42px; background: var(--surface); box-shadow: var(--shadow-lg); }
.capture .cap-mic .ti, .chat-input-row .cap-mic .ti { width: 22px; height: 22px; }
.capture .cap-mic:hover { background: var(--bg); }
.cap-mic.on::after, .cap-mic.rec::after { content: ''; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--dawn); animation: v152ring 1.1s ease-out infinite; }
.cap-mic.rec::after { border-color: #E5534B; }
.cap-mic.rec { background: color-mix(in srgb, #E5534B 14%, transparent) !important; }
.cap-mic.busy { opacity: .55; pointer-events: none; }
@keyframes v152ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
#capture-preview.v152-who { color: var(--c-ass, #8B5CF6); font-weight: 600; }
.asst-head { display: flex; align-items: center; gap: .5rem; }
.asst-ai { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem .3rem .45rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.asst-ai .ti { width: 18px; height: 18px; }
.asst-ai.on { color: #6D44D9; background: color-mix(in srgb, #8B5CF6 10%, var(--surface)); border-color: color-mix(in srgb, #8B5CF6 30%, transparent); }
.chat-via { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .74rem; color: var(--ink-3); }
.chat-via .ti { width: 13px; height: 13px; }
.chat-vox { position: fixed; left: var(--nav-w); right: 0; bottom: calc(4.4rem + env(safe-area-inset-bottom)); z-index: 31; text-align: center; font-size: .85rem; color: var(--ink-2); pointer-events: none; min-height: 1.2em; }
.chat-vox.v150-think { color: var(--ink-3); animation: v150pulse 1.2s ease-in-out infinite; }
@media (max-width: 699px) { .chat-vox { left: 0; bottom: calc(66px + 3.6rem + env(safe-area-inset-bottom)); } }
.v152-stt .seg { margin: .6rem 0; }
.v152-stt .row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.v152-stt .ok-t { color: var(--ok); font-weight: 600; margin-left: .4rem; }
@media (prefers-reduced-motion: reduce) { .cap-mic.on::after, .cap-mic.rec::after, .chat-vox.v150-think { animation: none; } }

.abubble.float { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; margin: 0 auto; max-width: 560px; }
@media (min-width: 700px) { .abubble.float { left: calc(var(--nav-w) + 24px); right: 24px; bottom: 24px; } }
.ab-via { display: flex; align-items: center; gap: .3rem; margin-top: .45rem; font-size: .74rem; opacity: .7; }
.ab-via .ti { width: 13px; height: 13px; }
