/* Trama 5.0 — la home a schede, Trama che si apre man mano, il pop-up «Sta arrivando la 5.0».
   Le schede, la prima schermata e le note compaiono solo con la 5.0 accesa; il pop-up (.v50-ov) lo vedono tutti,
   per questo le sue illustrazioni non dipendono da html.v50. */

/* ============================ la home a schede ============================ */
.h5 { max-width: 680px; }
@media (min-width: 700px) { .h5 { max-width: 940px; } }
/* niente «dense»: l'ordine che vedi è l'ordine delle schede (e quello in cui le sposti) */
.h5-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 4px; }
.h5c.lg { grid-column: span 2; }
@media (min-width: 760px) { .h5-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1280px) { .h5-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .h5c.sm { grid-column: span 2; } .h5c.lg { grid-column: span 3; } }

.h5c { position: relative; min-width: 0; background: var(--surface); border-radius: 18px; padding: 12px 14px 13px; box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,.05));
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.h5c.tap, .h5c.ev { cursor: pointer; }
.h5c.ev { padding-left: 19px; box-shadow: inset 4.5px 0 0 var(--ec, var(--dawn)), var(--shadow, 0 1px 2px rgba(0,0,0,.05)); }
.h5c.tap:active, .h5c.ev:active { transform: scale(.985); transition: transform .12s; }
.h5h { display: flex; align-items: center; gap: 7px; min-height: 22px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.h5h > svg, .h5h > .ti { width: 19px; height: 19px; flex: none; }
.h5h > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5h > .h5-meta { flex: none; font-weight: 500; font-size: 12.5px; }
.h5-plus { flex: none; width: 30px; height: 30px; margin: -5px -5px -5px 0; border: 0; border-radius: 50%; background: var(--fill, rgba(118,118,128,.12)); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.h5-big { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.h5c.sm .h5-big { font-size: 16.5px; }
.h5-sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.h5-amt { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.h5-bar { display: block; height: 6px; margin-top: 9px; border-radius: 3px; background: var(--fill, rgba(118,118,128,.12)); overflow: hidden; }
.h5-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok, #34C759); }
.h5-txt { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.h5-txt.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.h5-page { max-height: 230px; overflow: hidden; font-size: 14.5px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.h5-page > :first-child { margin-top: 0; }
.h5-empty { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.h5-ph { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.h5-more { display: block; padding: 7px 0 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--dawn-ink, var(--dawn)); cursor: pointer; }
/* le righe dentro una scheda: senza margini laterali, la scheda li ha già */
.h5-tasks .s-task { padding: 0; min-height: 46px; }
.h5-tasks .s-tt { padding: .55rem 0; }
.h5-tasks .s-tt span { font-size: 15px; }
:where(html.v49) .h5-tasks .s-task + .s-task::before, :where(html.v49) .h5-evl .s-evl + .s-evl::before { left: 2.1rem; right: 0; }
.h5-evl .s-evl { padding: .55rem 0; }
.h5-habs { display: flex; flex-wrap: wrap; gap: 7px; }
.h5c.sm .h5-habs .s-hab .nm { max-width: 9ch; }
.h5-money { display: flex; gap: 18px; flex-wrap: wrap; }
.h5-money span small { display: block; font-size: 12px; color: var(--ink-3); }
.h5-money span b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h5c.sm .h5-money { gap: 12px; } .h5c.sm .h5-money span b { font-size: 17px; }
.h5-money b.neg { color: var(--warn, #E5534B); }
.h5-days { display: grid; gap: 2px; }
.h5-day { display: flex; align-items: center; gap: 11px; padding: 6px 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.h5-day .dn { width: 34px; flex: none; text-align: center; line-height: 1.05; }
.h5-day .dn small { display: block; font-size: 11px; color: var(--ink-3); text-transform: capitalize; }
.h5-day .dn b { font-size: 17px; font-variant-numeric: tabular-nums; }
.h5-day .dt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.h5-day .dt em { font-style: normal; color: var(--ink-3); font-size: 13px; margin-left: 3px; font-variant-numeric: tabular-nums; }
.h5-day i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--fill, rgba(118,118,128,.12)); border-radius: 999px; padding: 2px 7px; }
.h5-goals { display: grid; gap: 4px; }
.h5-goal { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer; }
.h5-goal i { width: 18px; height: 18px; margin-top: 1px; flex: none; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--ink-3) 70%, transparent); }
.h5-goal.on i { background: var(--dawn); border-color: var(--dawn); box-shadow: inset 0 0 0 3px var(--surface); }
.h5-goal.on span { color: var(--ink-3); text-decoration: line-through; }
.h5-pins { display: grid; gap: 2px; }
.h5-pin { display: flex; align-items: center; gap: 9px; padding: 6px 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.h5-pin .ic { width: 22px; flex: none; display: grid; place-items: center; font-size: 17px; } .h5-pin .ic svg { width: 20px; height: 20px; }
.h5-pin .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }

/* la riga «La home cresce con te» e la nota di chi parte semplice */
.h5-grow, .g50-note { position: relative; display: flex; align-items: center; gap: 11px; margin: 0 0 12px; padding: 10px 40px 10px 11px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dawn) 55%, transparent); font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.h5-grow > span:not(.ti-tile), .g50-note > span:not(.ti-tile) { flex: 1; min-width: 0; }
.h5-grow .btn { flex: none; }
.h5-grow .s-x, .g50-note .s-x { top: 50%; transform: translateY(-50%); right: 4px; }
.g50-note { background: var(--dawn-soft); box-shadow: none; }

.h5-edit { display: flex; align-items: center; gap: 7px; width: max-content; margin: 18px auto 6px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--fill, rgba(118,118,128,.12)); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.h5-edit svg { width: 18px; height: 18px; }

/* ---------------- modifica ---------------- */
.h5-ebar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px -4px 4px; padding: 8px 4px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
/* sotto la barra fissa in alto: quella di cattura (e le schede) sul computer, il titolo sul telefono */
.h5-ebar { top: 4.9rem; } html.has-tabs .h5-ebar { top: calc(4.9rem + 42px); }
@media (max-width: 699px) { .h5-ebar, html.has-tabs .h5-ebar { top: calc(3.25rem + env(safe-area-inset-top)); } }
.h5-ebar b { font-size: 17px; }
.h5-ebar button { border: 0; background: none; font: inherit; font-size: 16px; color: var(--dawn-ink, var(--dawn)); cursor: pointer; padding: 6px 2px; }
.h5-ebar .h5-done { background: var(--ink); color: var(--surface); border-radius: 999px; padding: 7px 17px; font-weight: 600; }
.h5-tip { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); }
.h5.editing .h5c { box-shadow: 0 0 0 1.5px var(--sep, rgba(60,60,67,.17)), 0 10px 22px -16px rgba(0,0,0,.35); }
.h5.editing .h5c.ev { box-shadow: inset 4.5px 0 0 var(--ec, var(--dawn)), 0 0 0 1.5px var(--sep, rgba(60,60,67,.17)), 0 10px 22px -16px rgba(0,0,0,.35); }
.h5.editing .h5c.ph { background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 0 0 1.5px var(--sep, rgba(60,60,67,.17)) inset; }
.h5.editing .h5b { pointer-events: none; max-height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.h5.editing .h5h { padding-right: 30px; }
.h5-rm { position: absolute; left: -8px; top: -8px; z-index: 2; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #FF3B30; color: #fff; font-size: 20px; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 2.5px var(--bg); }
.h5-hdl { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); cursor: grab; touch-action: none; }
.h5-hdl svg { width: 18px; height: 18px; }
.h5-hdl:active { cursor: grabbing; background: var(--fill, rgba(118,118,128,.12)); }
.h5-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.h5-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill, rgba(118,118,128,.12)); }
.h5-seg button { border: 0; background: none; border-radius: 7px; padding: 5px 9px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.h5-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.h5-chg { border: 0; border-radius: 9px; padding: 6px 10px; background: var(--fill, rgba(118,118,128,.12)); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.h5-mv { display: inline-flex; gap: 2px; margin-left: auto; }
.h5-mv button { width: 30px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font-size: 15px; cursor: pointer; }
.h5-mv button:hover { background: var(--fill, rgba(118,118,128,.12)); color: var(--ink); }
.h5c.dragging { z-index: 6; box-shadow: 0 0 0 2px var(--dawn), 0 26px 44px -18px rgba(0,0,0,.45) !important; transition: none; }
.h5-add { display: block; width: 100%; margin-top: 14px; padding: 16px; border: 2px dashed var(--line, #C7C7CC); border-radius: 18px; background: none; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--dawn-ink, var(--dawn)); cursor: pointer; }
.h5-pre { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.h5-out { opacity: 0; transform: scale(.92); transition: opacity .16s, transform .16s; }
@media (prefers-reduced-motion: no-preference) {
  .h5c.h5-new { animation: h5-new .9s cubic-bezier(.2,.9,.3,1); }
  @keyframes h5-new { 0% { transform: scale(.94); box-shadow: 0 0 0 3px var(--dawn); } 60% { box-shadow: 0 0 0 3px var(--dawn); } 100% { transform: none; } }
}
@media (hover: hover) { .h5c.tap:hover { box-shadow: var(--shadow, none), 0 0 0 1px var(--sep, rgba(60,60,67,.17)); } }

/* ---------------- galleria, scelte, modelli (nei fogli) ---------------- */
.h5-srch { width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: var(--fill, rgba(118,118,128,.12)); font: inherit; font-size: 16px; color: var(--ink); }
.h5-gal .h5-gs h3 { margin: 16px 2px 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.h5-gg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
@media (min-width: 640px) { .h5-gg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h5-gt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 92px; padding: 10px 11px 30px; border: 0; border-radius: 14px; background: var(--cell, var(--surface)); box-shadow: 0 0 0 1px var(--sep, rgba(60,60,67,.12)); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.h5-gt[hidden] { display: none; }
.h5-gt .tt { display: flex; align-items: center; gap: 6px; font-size: 13.5px; } .h5-gt .tt svg { width: 20px; height: 20px; flex: none; }
.h5-gt .pv { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); } .h5-gt .pv b { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.h5-gt .pl { position: absolute; right: 8px; bottom: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--surface); font-style: normal; font-size: 16px; line-height: 24px; text-align: center; }
.h5-gt.in { cursor: default; } .h5-gt.in .pl { background: var(--ok, #34C759); color: #fff; font-size: 13px; }
.h5-gt.lk .pl { background: var(--dawn-soft); color: var(--dawn-ink); font-size: 11.5px; font-weight: 700; }
.h5-none { color: var(--ink-3); text-align: center; margin: 18px 0; }
.h5-pk { margin-top: 10px; }
.h5-pk button { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .7rem .9rem; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; position: relative; }
.h5-pk button[hidden] { display: none; }
.h5-pk .t { flex: 1; min-width: 0; } .h5-pk .t small { display: block; color: var(--ink-3); font-size: .82rem; }
.h5-pk .h5-fav { width: 16px; height: 16px; }
.h5-q { margin: -2px 0 12px; color: var(--ink-2); font-size: 15px; }
.h5-prs { display: grid; gap: 9px; }
.h5-pr { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px 13px; border: 0; border-radius: 16px; background: var(--cell, var(--surface)); box-shadow: 0 0 0 1px var(--sep, rgba(60,60,67,.12)); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.h5-pr:hover { box-shadow: 0 0 0 2px var(--dawn); }
.h5-pr b { display: block; font-size: 16px; } .h5-pr small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.h5-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; border-radius: 11px; background: var(--bg); }
.h5-mini i { height: 11px; border-radius: 4px; background: var(--surface); box-shadow: 0 0 0 .5px var(--sep, rgba(60,60,67,.15)); }
.h5-mini i.l { grid-column: span 2; height: 14px; }

/* ============================ Trama che si apre man mano ============================ */
.s-tab.g50-new { position: relative; }
.s-tab.g50-new::after { content: ''; position: absolute; top: 4px; left: calc(50% + 11px); width: 9px; height: 9px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 0 2px var(--surface); }
@media (prefers-reduced-motion: no-preference) { .s-tab.g50-new::after { animation: g50-dot 1.8s ease-in-out 3; } @keyframes g50-dot { 50% { transform: scale(1.35); } } }
.g50-coach { position: fixed; z-index: 120; max-width: min(300px, calc(100vw - 32px)); transform: translate(-50%, 6px); opacity: 0; transition: opacity .22s, transform .22s; padding: 11px 14px; border-radius: 14px; background: #1C1C1E; color: #F5F5F7; font-size: 14.5px; line-height: 1.35; box-shadow: 0 14px 34px rgba(0,0,0,.28); pointer-events: none; }
.g50-coach.in { opacity: 1; transform: translate(-50%, 0); }
.g50-coach b { color: #FFC456; }
.g50-coach::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #1C1C1E; }
.g50-coach.desk { transform: translate(-50%, -6px); } .g50-coach.desk.in { transform: translate(-50%, 0); }
.g50-coach.desk::after { bottom: auto; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #1C1C1E; }
.g50-always { margin-bottom: .9rem; }
.g50-always .t small { display: block; font-size: .82rem; color: var(--ink-3); }
.g50-cat { padding: 2px 0; }
.g50-ci { display: flex; align-items: center; gap: 12px; padding: 10px 12px; position: relative; }
.g50-ci + .g50-ci::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--sep, var(--line-2)); }
.g50-ci .t { flex: 1; min-width: 0; } .g50-ci .t b { display: block; font-size: 15.5px; } .g50-ci .t small { display: block; font-size: 13px; color: var(--ink-3); }
.g50-add { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--dawn-soft); color: var(--dawn-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.g50-set .menu-list button { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .7rem 1rem; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.g50-set .menu-list button > span { flex: 1; } .g50-set .menu-list button small { display: block; color: var(--ink-3); font-size: .85rem; }

/* il primo minuto: «Cosa devi fare?» */
.w50 { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: auto; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--bg, #F2F2F7); opacity: 0; transition: opacity .3s; }
.w50.in { opacity: 1; } .w50.out { opacity: 0; }
.w50-in { width: 100%; max-width: 440px; }
.w50-mk { width: 132px; height: 132px; transform: scale(.5); transform-origin: left top; margin-bottom: -60px; }
.w50 .vi-mark .mh, .w50 .vi-mark .mk { background: var(--ink, #1C1C1E); }
.w50 h1 { margin: 0; font-family: inherit; font-size: clamp(30px, 8vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--ink); }
.w50 > .w50-in > p { margin: 12px 0 22px; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.w50-cap { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--ink), 0 10px 30px -18px rgba(0,0,0,.4); }
.w50-cap input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); outline: none; }
.w50-cap button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--ink); color: var(--surface); display: grid; place-items: center; cursor: pointer; }
.w50-cap button svg { width: 22px; height: 22px; }
.w50-prev { display: block; min-height: 1.4em; margin: 8px 4px 0; font-size: 14px; color: var(--dawn-ink, #A66C00); }
.w50-ex { margin-top: 14px; }
.w50-ex small { display: block; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-3); }
.w50-ex div { display: flex; flex-wrap: wrap; gap: 8px; }
.w50-ex button { padding: 9px 13px; border: 0; border-radius: 999px; background: var(--fill, rgba(118,118,128,.12)); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.w50-later { display: block; margin: 30px auto 0; padding: 10px 14px; border: 0; background: none; font: inherit; font-size: 15.5px; color: var(--ink-3); cursor: pointer; }

/* ============================ il pop-up della 5.0 (lo vedono tutti) ============================ */
.v49-card:has(.st5-light) .v49-bars i { background: rgba(0,0,0,.12); }
.v49-card:has(.st5-light) .v49-bars i b { background: #1C1C1E; }
.v50-ov .v49-stage.st5-light { background: var(--vc-stage); }
.v50-ov svg.ti { width: 13px; height: 13px; flex: none; }
.v50-ov .ti-tile { width: 30px; height: 30px; border-radius: 9px; } .v50-ov .ti-tile .ti { width: 18px; height: 18px; }
@keyframes v5-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes v5-fade { from { opacity: 0; } to { opacity: 1; } }

/* il telefono finto */
.v5-ph { position: relative; width: 206px; height: 318px; padding: 14px 11px 0; border-radius: 30px; background: #F2F2F7; box-shadow: 0 0 0 6px #1C1C1E, 0 24px 48px -16px rgba(0,0,0,.45); overflow: hidden; color: #1C1C1E; font-size: 10px; line-height: 1.25; text-align: left; }
.v5-hd small { display: block; font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8E8E93; }
.v5-hd b { display: block; margin: 1px 0 7px; font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.v5-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.v5-c { position: relative; min-width: 0; padding: 7px 8px 8px; border-radius: 11px; background: #fff; box-shadow: 0 1px 1.5px rgba(0,0,0,.05); opacity: 0; animation: v5-in .5s cubic-bezier(.2,.9,.3,1) var(--d) forwards; }
.v5-c.l { grid-column: span 2; }
.v5-c.ev { padding-left: 11px; overflow: hidden; } .v5-c.ev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #8B5CF6; }
.v5-c small { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; font-size: 8px; font-weight: 600; color: #8E8E93; }
.v5-c b { display: block; font-size: 12.5px; letter-spacing: -.02em; }
.v5-c > span { display: block; color: #8E8E93; font-size: 8.5px; }
.v5-c .v5-amt { font-size: 15px; letter-spacing: -.03em; }
.v5-dots { display: flex !important; gap: 4px; margin-top: 3px; } .v5-dots i { width: 13px; height: 13px; border-radius: 50%; background: #E5E5EA; } .v5-dots i.on { background: #3DAA55; }
.v5-dots i.fl { animation: v5-fill .3s ease 2.4s forwards; } @keyframes v5-fill { to { background: #3DAA55; transform: scale(1.15); } }
.v5-t { display: flex !important; align-items: center; gap: 6px; padding: 3px 0; color: #1C1C1E !important; font-size: 9.5px !important; }
.v5-t i { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.3px solid #AEAEB2; }
.v5-t i.ck { animation: v5-ck .25s ease 2.9s forwards; } @keyframes v5-ck { to { background: #C98500; border-color: #C98500; box-shadow: inset 0 0 0 2px #fff; } }
.v5-t em { margin-left: auto; font-style: normal; color: #8E8E93; }
.v5-p { color: #636366 !important; font-size: 9px !important; line-height: 1.35; }

/* modifica: i meno, la scheda che si sposta, la grandezza che cambia */
.v5-eb { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 10px; font-size: 9px; color: #A66C00; }
.v5-eb b { font-size: 11px; color: #1C1C1E; } .v5-eb .ok { padding: 3px 8px; border-radius: 999px; background: #1C1C1E; color: #fff; font-weight: 600; }
.v5-ph.ed .v5-c { box-shadow: 0 0 0 1px rgba(60,60,67,.2); overflow: visible; }
.v5-ph.ed .v5-c.ev { overflow: visible; }
.v5-c .rm { position: absolute; left: -5px; top: -5px; width: 15px; height: 15px; border-radius: 50%; background: #FF3B30; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; line-height: 15px; text-align: center; transform: scale(0); animation: v5-pop .3s cubic-bezier(.3,1.5,.5,1) calc(var(--d) + .35s) forwards; box-shadow: 0 0 0 1.5px #F2F2F7; z-index: 2; }
@keyframes v5-pop { to { transform: none; } }
.v5-c .hd { position: absolute; right: 5px; top: 5px; width: 13px; height: 13px; color: #AEAEB2; } .v5-c .hd svg { width: 13px; height: 13px; }
.v5-c.mvA { animation: v5-in .5s cubic-bezier(.2,.9,.3,1) var(--d) forwards, v5-down .7s cubic-bezier(.4,0,.2,1) 1.6s forwards; }
.v5-c.mvB { animation: v5-in .5s cubic-bezier(.2,.9,.3,1) var(--d) forwards, v5-up .7s cubic-bezier(.4,0,.2,1) 1.6s forwards; }
@keyframes v5-down { to { opacity: 1; transform: translateY(var(--dy, 49px)); } }
@keyframes v5-up { 0% { opacity: 1; transform: none; } 30% { opacity: 1; transform: scale(1.04) rotate(-1.5deg); box-shadow: 0 0 0 1.5px #C98500, 0 14px 22px -10px rgba(0,0,0,.4); } 100% { opacity: 1; transform: translateY(calc(var(--dy, 49px) * -1)); } }
.v5-c.mvA, .v5-c.mvB { height: 43px; }
.v5-sz { display: inline-flex !important; margin-top: 5px; padding: 1.5px; border-radius: 6px; background: rgba(118,118,128,.14); }
.v5-sz u { padding: 2px 5px; border-radius: 4.5px; text-decoration: none; font-size: 7.5px; font-weight: 600; color: #8E8E93; }
.v5-sz u.a { animation: v5-off .2s ease 3.4s forwards; background: #fff; color: #1C1C1E; }
.v5-sz u.b { animation: v5-on .2s ease 3.4s forwards; }
@keyframes v5-on { to { background: #fff; color: #1C1C1E; } } @keyframes v5-off { to { background: transparent; color: #8E8E93; } }
.v5-c.grow { animation: v5-in .5s cubic-bezier(.2,.9,.3,1) var(--d) forwards, v5-wide .01s linear 3.55s forwards; }
@keyframes v5-wide { to { opacity: 1; grid-column: span 2; } }
.v5-c.gone { animation: v5-in .5s cubic-bezier(.2,.9,.3,1) var(--d) forwards, v5-gone .35s ease 4.6s forwards; }
@keyframes v5-gone { 0% { opacity: 1; } 100% { opacity: 0; transform: scale(.7); } }
.v5-c .rm.hit { animation: v5-pop .3s cubic-bezier(.3,1.5,.5,1) calc(var(--d) + .35s) forwards, v5-press .3s ease 4.3s; }
@keyframes v5-press { 50% { transform: scale(.75); } }

/* galleria */
.v5-g.dim { filter: blur(1.2px); opacity: .55; margin-top: 30px; } .v5-g.dim .v5-c { opacity: 1; animation: none; }
.v5-sh { position: absolute; left: 0; right: 0; bottom: 0; top: 48px; padding: 6px 9px 0; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -8px 26px rgba(0,0,0,.16); transform: translateY(102%); animation: v5-sheet .55s cubic-bezier(.2,.9,.3,1) .35s forwards; }
@keyframes v5-sheet { to { transform: none; } }
.v5-sh .grab { display: block; width: 26px; height: 3.5px; margin: 0 auto 7px; border-radius: 2px; background: #D1D1D6; }
.v5-sht { display: block; font-size: 11.5px; } .v5-srch { display: block; margin: 6px 0 8px; padding: 5px 7px; border-radius: 7px; background: rgba(118,118,128,.12); color: #8E8E93; font-size: 8.5px; }
.v5-gg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.v5-gt { position: relative; display: block; min-height: 56px; padding: 6px 7px; border-radius: 9px; background: #F2F2F7; }
.v5-gt svg { width: 14px !important; height: 14px !important; } .v5-gt b { display: block; margin-top: 2px; font-size: 9.5px; } .v5-gt small { display: block; color: #8E8E93; font-size: 7.5px; line-height: 1.25; }
.v5-gt i { position: absolute; right: 5px; bottom: 5px; width: 15px; height: 15px; border-radius: 50%; background: #1C1C1E; color: #fff; font-style: normal; font-size: 11px; line-height: 15px; text-align: center; }
.v5-gt.hit { animation: v5-ring .3s ease 2.1s forwards; } .v5-gt.hit i { animation: v5-ok .25s ease 2.2s forwards; }
@keyframes v5-ring { to { box-shadow: 0 0 0 1.5px #C98500; } } @keyframes v5-ok { to { background: #34C759; } }
.v5-mods { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; } .v5-mods u { padding: 3px 6px; border-radius: 999px; background: rgba(118,118,128,.12); text-decoration: none; font-size: 7.5px; color: #636366; opacity: 0; animation: v5-fade .3s ease forwards; }
.v5-mods u:nth-child(1) { animation-delay: 3.2s; } .v5-mods u:nth-child(2) { animation-delay: 3.3s; } .v5-mods u:nth-child(3) { animation-delay: 3.4s; } .v5-mods u:nth-child(4) { animation-delay: 3.5s; } .v5-mods u:nth-child(5) { animation-delay: 3.6s; }
.v5-toast { position: absolute; left: 50%; bottom: 12px; display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 10px; background: #1C1C1E; color: #fff; font-size: 8.5px; white-space: nowrap; transform: translate(-50%, 20px); opacity: 0; animation: v5-toast .35s ease 2.45s forwards; }
@keyframes v5-toast { to { opacity: 1; transform: translate(-50%, 0); } }

/* si apre man mano: la barra che cresce */
.v5-mm { position: relative; width: 340px; max-width: 92%; height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #1C1C1E; }
.v5-when { position: relative; width: 100%; height: 20px; text-align: center; font-size: 13px; font-weight: 700; color: #8E8E93; }
.v5-when span { position: absolute; left: 0; right: 0; opacity: 0; }
.v5-when .w1 { animation: v5-shw 1.4s ease .1s forwards; } .v5-when .w2 { animation: v5-shw 2.1s ease 1.6s forwards; } .v5-when .w3 { animation: v5-stay .4s ease 3.8s forwards; }
@keyframes v5-shw { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } } @keyframes v5-stay { to { opacity: 1; } }
.v5-note { position: absolute; top: 58px; left: 50%; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 13px; background: #FFF3D9; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, 8px); opacity: 0; }
.v5-note.n1 { animation: v5-note1 2.2s ease 1.9s forwards; } .v5-note.n2 { animation: v5-stayup .4s ease 4.1s forwards; }
@keyframes v5-note1 { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes v5-stayup { to { opacity: 1; transform: translate(-50%, 0); } }
.v5-tb { display: flex; align-items: center; justify-content: center; margin-top: 64px; padding: 8px 10px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px -12px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.06); }
.v5-tb .t { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 56px; font-size: 10px; color: #8E8E93; overflow: hidden; }
.v5-tb .t svg { width: 22px !important; height: 22px !important; }
.v5-tb .p { width: 40px; height: 40px; margin: 0 6px; border-radius: 50%; background: #1C1C1E; color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 300; }
.v5-tb .add { width: 0; opacity: 0; transform: scale(.4); }
.v5-tb .a1 { animation: v5-tab .55s cubic-bezier(.3,1.4,.5,1) 2s forwards; } .v5-tb .a2 { animation: v5-tab .55s cubic-bezier(.3,1.4,.5,1) 4.2s forwards; }
@keyframes v5-tab { to { width: 56px; opacity: 1; transform: none; color: #1C1C1E; } }
.v5-cap { margin: 6px 0 0; font-size: 12.5px; color: #636366; opacity: 0; animation: v5-fade .4s ease .4s forwards; }

/* la home al sicuro: due dispositivi, la stessa home, l'aggiornamento che non tocca niente */
.v5-sync { position: relative; width: 330px; max-width: 94%; height: 250px; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding-bottom: 40px; }
.v5-lap { position: relative; width: 150px; } .v5-lap .scr { height: 96px; padding: 7px; border-radius: 8px 8px 0 0; background: #F2F2F7; box-shadow: 0 0 0 4px #1C1C1E; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.v5-lap .base { display: block; height: 7px; margin: 4px -16px 0; border-radius: 0 0 7px 7px; background: #3A3A3C; }
.v5-mob { width: 62px; } .v5-mob .scr { height: 112px; padding: 9px 5px; border-radius: 13px; background: #F2F2F7; box-shadow: 0 0 0 3.5px #1C1C1E; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; align-content: start; }
.v5-sync .b { display: block; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); } .v5-sync .b.l { grid-column: span 2; height: 20px; }
.v5-sync .v5-lap .b:first-child, .v5-sync .v5-mob .b:first-child { box-shadow: inset 2.5px 0 0 #8B5CF6; }
.v5-ln { width: 70px; height: 16px; margin: 0 10px 50px; } .v5-ln path { stroke: #AEAEB2; stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.v5-dot { position: absolute; left: calc(50% - 42px); bottom: 98px; width: 8px; height: 8px; border-radius: 50%; background: #C98500; animation: v5-dotgo 1.6s ease-in-out .6s infinite alternate; }
@keyframes v5-dotgo { to { transform: translateX(64px); } }
.v5-upd { position: absolute; top: 4px; left: 50%; padding: 6px 11px; border-radius: 999px; background: #1C1C1E; color: #fff; font-size: 11.5px; font-weight: 600; transform: translate(-50%, -40px); opacity: 0; animation: v5-drop 1.1s cubic-bezier(.3,1.3,.5,1) 1.1s forwards; }
@keyframes v5-drop { 0% { opacity: 0; transform: translate(-50%, -40px); } 60% { opacity: 1; transform: translate(-50%, 8px); } 100% { opacity: .45; transform: translate(-50%, 0); } }
.v5-ok { position: absolute; bottom: 4px; left: 50%; display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; border-radius: 999px; background: #E6F6EA; color: #1E7B35; font-size: 12.5px; font-weight: 700; white-space: nowrap; transform: translate(-50%, 8px) scale(.9); opacity: 0; animation: v5-okin .45s cubic-bezier(.3,1.4,.5,1) 2.5s forwards; }
.v5-ok svg { width: 18px; height: 18px; }
@keyframes v5-okin { to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .v50-ov .v49-stage *, .w50 * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; } }

/* ============================ il patrimonio (Pro) ============================ */
.w5 { max-width: 760px; }
.w5 .s-head h1 { margin-bottom: 2px; }
.w5-hero { margin: 4px 0 6px; }
.w5-hero > small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.w5-big { display: block; font-size: clamp(36px, 9vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink); }
.w5-chg { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 11px; border-radius: 999px; background: var(--fill, rgba(118,118,128,.12)); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.w5-chg i { font-style: normal; font-size: 11px; }
.w5-chg.up { background: color-mix(in srgb, #34C759 16%, var(--surface)); } .w5-chg.up i { color: #1E8E3E; }
.w5-chg.dn { background: color-mix(in srgb, #FF3B30 13%, var(--surface)); } .w5-chg.dn i { color: #D93025; }
.w5-chg small { font-weight: 500; color: var(--ink-3); }
[data-theme="dark"] .w5-chg.up i { color: #4CD964; } [data-theme="dark"] .w5-chg.dn i { color: #FF6B60; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .w5-chg.up i { color: #4CD964; } :root:not([data-theme="light"]) .w5-chg.dn i { color: #FF6B60; } }
.w5-seg { display: flex; margin: 14px 0 10px; }
.w5-seg button { flex: 1; padding-left: 4px; padding-right: 4px; font-size: 13px; }
.w5-card { padding: 12px 8px 8px; }
/* il grafico: linea 2px, velo al 10%, griglia sottile, etichette in inchiostro (mai nel colore della linea) */
.w5-chart { position: relative; touch-action: pan-y; outline: none; border-radius: 10px; }
.w5-chart:focus-visible { box-shadow: 0 0 0 2px var(--dawn); }
.w5-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.w5-chart.mini svg { height: 54px; margin-top: 8px; }
.w5-ln { fill: none; stroke: var(--dawn); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.w5-ar { fill: var(--dawn); opacity: .1; }
.w5-grid { stroke: var(--sep, var(--line-2)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.w5-tk { font-size: 12px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.w5-cr { stroke: var(--ink-3); stroke-width: 1; opacity: .6; }
.w5-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.w5-dot[hidden] { display: none; }
.w5-chart.mini .w5-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; top: auto; }
.w5-chart.mini .w5-dot.end { display: none; }
.w5-tip { position: absolute; top: -6px; transform: translateX(-50%); padding: 6px 9px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; line-height: 1.25; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.w5-tip[hidden] { display: none; }
.w5-tip small { display: block; font-size: 11.5px; opacity: .75; }
.w5-ax { display: flex; justify-content: space-between; padding: 4px 52px 0 4px; font-size: 12px; color: var(--ink-3); }
.w5-comp { padding: 14px 16px; }
.w5-ct { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.w5-ct span { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.w5-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.w5-bar i { display: block; min-width: 4px; }
.w5-lg { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14.5px; }
.w5-lg u { width: 10px; height: 10px; border-radius: 3px; flex: none; } .w5-lg u.debt { background: var(--ink-3); }
.w5-lg span { flex: 1; } .w5-lg b { font-weight: 600; font-variant-numeric: tabular-nums; } .w5-lg em { width: 44px; text-align: right; font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.w5-lbl { margin-top: 1.4rem; }
.w5-sseg { margin-top: 0; }
.w5-rows { padding: 2px 16px; }
.w5-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 48px; position: relative; }
.w5-row + .w5-row { border-top: 1px solid var(--sep, var(--line-2)); }
.w5-row .n { flex: 1; min-width: 0; font-size: 15px; } .w5-row .n:first-letter { text-transform: uppercase; }
.w5-row .n small { display: block; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.w5-row .v { text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w5-row .v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.w5-row .v small.up { color: #1E8E3E; } .w5-row .v small.dn { color: #D93025; }
[data-theme="dark"] .w5-row .v small.up, [data-theme="dark"] .w5-it .v small.up { color: #4CD964; } [data-theme="dark"] .w5-row .v small.dn, [data-theme="dark"] .w5-it .v small.dn { color: #FF6B60; }
.w5-mb { width: 70px; height: 8px; flex: none; display: flex; justify-content: flex-end; }
.w5-mb i { display: block; height: 8px; border-radius: 4px; background: var(--dawn); }
.w5-mb i.dn { background: color-mix(in srgb, var(--ink-3) 70%, transparent); }
.w5-x { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font-size: 18px; cursor: pointer; }
.w5-x:hover { background: var(--fill, rgba(118,118,128,.12)); color: var(--ink); }
.w5-grp { margin: 14px 4px 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.w5-its { padding: 2px 0; }
.w5-it { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); text-decoration: none; position: relative; }
.w5-it + .w5-it::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--sep, var(--line-2)); }
.w5-it .n { flex: 1; min-width: 0; font-size: 15.5px; } .w5-it .n small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w5-it .v { text-align: right; font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w5-it .v small { display: block; font-size: 12.5px; font-weight: 500; } .w5-it .v small.up { color: #1E8E3E; } .w5-it .v small.dn { color: #D93025; }
.w5-note { margin: 16px 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.w5-empty, .w5-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; margin-top: 12px; }
.w5-empty b, .w5-lock b { font-size: 18px; } .w5-empty p, .w5-lock p { margin: 0; color: var(--ink-2); line-height: 1.45; }
.w5-ih { display: flex; align-items: center; gap: 12px; margin: .4rem 0 .6rem; }
.w5-ih h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.1; }
.w5-ih h1 { margin: 0; } .w5-ih small { color: var(--ink-3); font-size: 13.5px; }
.w5-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.w5-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; color: var(--ink); text-decoration: none; }
.w5-link > span:not(.ti-tile):not(.p-pill) { flex: 1; } .w5-link b { display: block; } .w5-link small { display: block; color: var(--ink-3); font-size: 13px; }
.w5-link .chev { width: 16px; height: 16px; color: var(--ink-3); }
/* i fogli: importo grande, tipi, icone */
.w5-amtw { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.w5-amt, .v49-sheet .w5-amt, .modal .w5-amt { width: 100%; max-width: 230px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; font-family: inherit; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; color: var(--ink); outline: none; font-variant-numeric: tabular-nums; }
.w5-amtw span { font-size: 30px; font-weight: 700; color: var(--ink-3); }
.w5-hint { margin: 2px 0 12px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.w5-lab { margin: 14px 2px 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.w5-kinds { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.w5-kinds label { cursor: pointer; } .w5-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.w5-kinds span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 9px; border-radius: 999px; background: var(--fill, rgba(118,118,128,.12)); font-size: 14.5px; color: var(--ink); }
.w5-kinds span svg { width: 20px; height: 20px; }
.w5-kinds input:checked + span { background: var(--ink); color: var(--surface); }
.w5-kinds input:focus-visible + span { box-shadow: 0 0 0 2px var(--dawn); }
.w5-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 6px; }
.w5-icons label { cursor: pointer; } .w5-icons input { position: absolute; opacity: 0; pointer-events: none; }
.w5-icons span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--fill, rgba(118,118,128,.12)); }
.w5-icons span svg { width: 24px; height: 24px; }
.w5-icons input:checked + span { box-shadow: 0 0 0 2px var(--dawn); background: var(--surface); }
.h5-patrimonio .w5-chg { margin-top: 4px; font-size: 13px; }

/* il pop-up: la storia del patrimonio */
.v5-pat { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.v5-pc { width: 260px; padding: 14px 14px 12px; border-radius: 18px; background: #fff; color: #1C1C1E; box-shadow: 0 22px 44px -18px rgba(0,0,0,.35); opacity: 0; animation: v5-in .5s cubic-bezier(.2,.9,.3,1) .15s forwards; }
.v5-pc small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #8E8E93; }
.v5-pn { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.v5-pchg { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: #E6F6EA; font-size: 11px; font-weight: 600; opacity: 0; animation: v5-fade .35s ease 1.5s forwards; }
.v5-pchg i { font-style: normal; color: #1E8E3E; font-size: 9px; } .v5-pchg em { font-style: normal; font-weight: 500; color: #8E8E93; }
.v5-pg { display: block; width: 100%; height: 70px; margin-top: 8px; overflow: visible; }
.v5-pg .l { fill: none; stroke: #C98500; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: v5-draw 1.3s ease .4s forwards; }
.v5-pg .a { fill: #C98500; opacity: 0; animation: v5-veil .5s ease 1.5s forwards; }
.v5-pg .d { fill: #C98500; stroke: #fff; stroke-width: 2; opacity: 0; animation: v5-fade .3s ease 1.6s forwards; }
@keyframes v5-draw { to { stroke-dashoffset: 0; } } @keyframes v5-veil { to { opacity: .1; } }
.v5-pbar { display: flex; gap: 2px; height: 9px; margin-top: 10px; border-radius: 5px; overflow: hidden; }
.v5-pbar i { display: block; width: 0; animation: v5-grow .45s ease var(--d) forwards; } @keyframes v5-grow { to { width: var(--w); } }
.v5-pleg { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; font-size: 9.5px; color: #636366; opacity: 0; animation: v5-fade .3s ease 2.7s forwards; }
.v5-pleg u { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; } .v5-pleg u i { width: 7px; height: 7px; border-radius: 2px; }
.v5-ppro { position: absolute; top: 28px; left: 16px; padding: 4px 9px; border-radius: 7px; background: #1C1C1E; color: #FFC456; font-size: 11px; font-weight: 800; opacity: 0; animation: v5-fade .3s ease 3s forwards; }

/* ---------------- 5.0.1 · la Home libera si chiama Home ---------------- */
.crumbs .crumb-home { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-2); font-weight: 600; }
.crumbs .crumb-home svg { width: 14px; height: 14px; }

/* ---------------- 5.0.1 · copertina sistemabile ---------------- */
.cover { height: calc(180px * var(--ch, 1)); overflow: hidden; container-type: size; isolation: isolate; transition: height .25s ease; }
@media (max-width: 639px) { .cover { height: calc(140px * var(--ch, 1)); } }
.cover .cov-blur { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(26px) saturate(1.15); opacity: .75; z-index: -1; pointer-events: none; user-select: none; }
.cover .cov-img { position: absolute; left: 50%; top: 50%; height: auto; max-width: none; max-height: none; z-index: 0; pointer-events: none; user-select: none; -webkit-user-drag: none;
  transform: translate(-50%, -50%) translate(calc(var(--x, 0) * 1cqw), calc(var(--y, 0) * 1cqh)) rotate(calc(var(--r, 0) * 1deg)) scale(var(--s, 1)); }
.cover .cov-img.m-c { width: max(100cqw, 100cqh * var(--ar, 1.5)); }
.cover .cov-img.m-t { width: min(100cqw, 100cqh * var(--ar, 1.5)); }
.cover .cov-img.m-c.q { width: max(100cqh, 100cqw * var(--ar, 1.5)); }
.cover .cov-img.m-t.q { width: min(100cqh, 100cqw * var(--ar, 1.5)); }
.cover .cov-img.m-o { width: calc(var(--nw, 800) * 1px); }
.cover .cover-tools { z-index: 2; }
.cover-tools [hidden] { display: none !important; }
.cover.editing { cursor: grab; touch-action: none; box-shadow: inset 0 0 0 2px var(--dawn); }
.cover.editing.grabbing { cursor: grabbing; }
.cover.editing .cover-tools { display: none; }
.cover.editing::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 33.333% 0 / 1px 100% no-repeat, linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 66.666% 0 / 1px 100% no-repeat,
              linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 33.333% / 100% 1px no-repeat, linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 66.666% / 100% 1px no-repeat; }
.cover.editing.grabbing .cov-img, .cover.editing .cov-img { transition: none; }
.cover:not(.editing) .cov-img { transition: transform .2s ease, width .2s ease; }

.cov-edit { margin: -.1rem 0 .9rem; padding: .85rem .95rem .8rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); display: grid; gap: .65rem; position: relative; z-index: 3; }
.cov-edit .ce-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.cov-edit .ce-head b { font-size: .98rem; letter-spacing: -.01em; }
.cov-edit .ce-hint { font-size: .8rem; color: var(--ink-3); }
.cov-edit .ce-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.cov-edit .ce-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--surface-2); gap: 2px; }
.cov-edit .ce-seg button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; padding: .38rem .7rem; border-radius: 8px; min-height: 32px; cursor: pointer; }
.cov-edit .ce-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.cov-edit .ce-sl { display: grid; grid-template-columns: 5.6rem auto 1fr auto 3.2rem; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-2); }
.cov-edit label.ce-sl { grid-template-columns: 5.6rem 1fr 3.2rem; }
.cov-edit .ce-sl output { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); font-weight: 600; }
.cov-edit input[type="range"] { width: 100%; accent-color: var(--dawn); min-height: 28px; margin: 0; }
.cov-edit .ce-ib { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cov-edit .ce-ib:hover, .cov-edit .ce-seg button:not(.on):hover { background: var(--surface-2); color: var(--ink); }
.cov-edit .ce-foot { display: flex; gap: .45rem; align-items: center; padding-top: .15rem; }
.cov-edit .ce-foot .grow { flex: 1; }
@media (max-width: 639px) {
  .cov-edit { padding: .75rem .75rem .7rem; }
  .cov-edit .ce-sl, .cov-edit label.ce-sl { grid-template-columns: 1fr auto; }
  .cov-edit .ce-sl > span { grid-column: 1 / -1; margin-bottom: -.35rem; }
  .cov-edit .ce-sl:not(label) { grid-template-columns: auto 1fr auto auto; }
  .cov-edit .ce-sl:not(label) > span { grid-column: 1 / -1; }
  .cov-edit .ce-row { gap: .4rem; }
  .cov-edit .ce-seg button { padding: .38rem .55rem; }
}
@media (prefers-reduced-motion: reduce) { .cover, .cover:not(.editing) .cov-img { transition: none; } }
.cover .cover-tools { left: .6rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

/* ---------------- 5.0.1 · calendario: maniglie, spostamento, bozza ---------------- */
.day-col .chip .rz { position: absolute; left: 0; right: 0; height: 10px; z-index: 3; display: none; touch-action: none; cursor: ns-resize; }
.day-col .chip .rz.t { top: -4px; } .day-col .chip .rz.b { bottom: -4px; }
.day-col .chip .rz::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--bc, var(--c-cal)); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.day-col .chip .rz.t::after { right: 12%; top: 0; } .day-col .chip .rz.b::after { left: 12%; bottom: 0; }
@media (hover: hover) and (pointer: fine) { .day-col .chip:hover .rz { display: block; } .day-col .chip:hover { overflow: visible; } }
.day-col .chip.sel, .day-col .chip.moving { overflow: visible; z-index: 6; box-shadow: 0 0 0 1.5px var(--bc, var(--c-cal)), 0 10px 24px -12px rgba(0,0,0,.45); background: color-mix(in srgb, var(--bc, var(--c-cal)) 26%, var(--surface)); }
.day-col .chip.sel .rz, .day-col .chip.moving .rz { display: block; }
/* nella 4.x un evento bloccava lo scorrimento (touch-action: none): partendo da un evento la griglia non scorreva.
   Ora scorre sempre; si solleva tenendo premuto. Selezionato: col dito si sposta subito, senza tenere premuto. */
html.v50 .day-col .chip[data-ev]:not(.allday-chip) { touch-action: auto; }
html.v50 .day-col .chip[data-ev].sel, html.v50 .day-col .chip[data-ev].moving { touch-action: none; }
@media (pointer: coarse) {   /* sul touch la zona da toccare è grande (24 px), il pallino resta piccolo */
  .day-col .chip .rz { height: 24px; } .day-col .chip .rz.t { top: -17px; } .day-col .chip .rz.b { bottom: -17px; }
  .day-col .chip .rz.t::after { top: 12px; } .day-col .chip .rz.b::after { bottom: 12px; }
  .day-col .chip .rz::after { width: 11px; height: 11px; }
}
.day-col .chip.moving { cursor: grabbing; opacity: .97; transform: scale(1.015); transition: transform .12s ease, box-shadow .12s ease; z-index: 8; }
.day-col .chip.ghost50 { opacity: .32; pointer-events: none; box-shadow: none; }
.day-col .chip .t50 { position: absolute; left: 0; top: -26px; z-index: 9; font-style: normal; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--ink); color: var(--bg); padding: 3px 8px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); pointer-events: none; }
.day-col .chip .t50.lft { left: auto; right: 0; }
.day-col .chip.d50 { overflow: visible; pointer-events: none; }
.day-col .chip.d50.q50 { box-shadow: 0 0 0 1.5px var(--c-cal), 0 10px 24px -12px rgba(0,0,0,.4); outline: none; }
.week-body.drafting { touch-action: none; }
.cq50 { position: fixed; z-index: 70; width: 280px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px -14px rgba(0,0,0,.4); padding: .7rem .75rem .65rem; display: grid; gap: .45rem; animation: cq50 .16s ease; }
@keyframes cq50 { from { opacity: 0; transform: scale(.97); } }
.cq50 input { border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; font: inherit; font-size: 1.02rem; font-weight: 600; padding: .3rem .1rem .35rem; color: var(--ink); outline: none; min-height: 0; }
.cq50 input:focus { border-bottom-color: var(--c-cal); }
.cq50 .cq-when { font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cq50 .cq-act { display: flex; justify-content: flex-end; gap: .4rem; }
.toast.toast-act { display: flex; align-items: center; gap: .9rem; padding-right: .5rem; }
.toast.toast-act button { border: 0; background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); font: inherit; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; cursor: pointer; }

/* ---------------- 5.0.1 · orari a pastiglia ---------------- */
.v5-thid { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
.field:has(> .v5-thid) { position: relative; }
.v5-tp { border: 0; background: var(--fill, var(--surface-2)); color: var(--ink); font: inherit; font-size: 17px; border-radius: 8px; padding: .32rem .7rem; cursor: pointer; white-space: nowrap; min-height: 34px; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: .45rem; position: relative; }
.v5-tp b { font-weight: 500; }
.v5-tp small { font-size: 13px; color: var(--ink-3); }
.v5-tp.open, .v5-tp.typing { color: var(--dawn); }
.v5-tp.typing b { letter-spacing: .02em; }
.v5-tp .v5-tp-ar { width: 0; height: 14px; align-self: center; position: relative; transition: width .15s ease, opacity .15s ease; opacity: 0; }
.v5-tp .v5-tp-ar::before, .v5-tp .v5-tp-ar::after { content: ''; position: absolute; left: 3px; width: 5px; height: 5px; border: solid var(--ink-3); border-width: 1.5px 0 0 1.5px; }
.v5-tp .v5-tp-ar::before { top: 1px; transform: rotate(45deg); } .v5-tp .v5-tp-ar::after { bottom: 1px; transform: rotate(-135deg); }
@media (hover: hover) and (pointer: fine) { .v5-tp:hover { background: color-mix(in srgb, var(--ink) 9%, var(--fill, var(--surface-2))); } .v5-tp:hover .v5-tp-ar, .v5-tp:focus-visible .v5-tp-ar { width: 10px; opacity: 1; } }
.v5-pop { background: var(--cell, var(--surface)); animation: v49cal .2s ease; }
.field + .v5-pop { border-radius: 0 0 12px 12px; }
.v5-tl { max-height: 232px; overflow-y: auto; padding: .25rem .5rem .5rem; display: grid; overscroll-behavior: contain; }
.v5-tl button { border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; padding: .42rem .6rem; border-radius: 8px; cursor: pointer; display: flex; gap: .55rem; align-items: baseline; font-variant-numeric: tabular-nums; }
.v5-tl button small { color: var(--ink-3); font-size: 13px; }
.v5-tl button:hover { background: var(--fill, var(--surface-2)); }
.v5-tl button.on { color: var(--dawn); font-weight: 600; }
.v5-wh { position: relative; display: flex; justify-content: center; align-items: center; gap: .2rem; height: 200px; padding: 0 1rem; overflow: hidden; user-select: none; -webkit-user-select: none; }
.v5-whc { height: 200px; width: 72px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 80px 0; box-sizing: border-box; scrollbar-width: none; overscroll-behavior: contain; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.v5-whc::-webkit-scrollbar { display: none; }
.v5-whc > div { height: 40px; line-height: 40px; text-align: center; scroll-snap-align: center; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.v5-whs { font-size: 22px; font-weight: 600; color: var(--ink); z-index: 1; }
.v5-whb { position: absolute; left: .8rem; right: .8rem; top: 80px; height: 40px; border-radius: 10px; background: var(--fill, var(--surface-2)); pointer-events: none; }
.toast.toast-act span { white-space: nowrap; }
/* foglio «Nuova»: giorni e orari nascosti davvero quando non servono (display:flex vinceva su hidden) */
.s-days[hidden], .s-times[hidden] { display: none; }
.week-body.moving50, .week-body.moving50 * { cursor: grabbing !important; }

/* ---------------- 5.1 · lingue ---------------- */
.l51-list { padding: 0; overflow: hidden; }
.l51-list .l51-o { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; text-align: left; padding: .8rem 1rem; min-height: 48px; cursor: pointer; }
.l51-list .l51-o + .l51-o { border-top: 1px solid var(--line-2); }
.l51-list .l51-o span { flex: 1; }
.l51-list .l51-o.on { font-weight: 600; }
.l51-list .l51-ck { width: 20px; height: 20px; color: var(--dawn); }
@media (hover: hover) { .l51-list .l51-o:hover { background: var(--surface-2); } }
.l51-tz-l { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .9rem; }
.l51-tz-l span { padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .95rem; }
/* 5.1: con le parole più lunghe (spagnolo, tedesco) la riga dei filtri va a capo invece di uscire dallo schermo */
.page-head > .row { flex-wrap: wrap; row-gap: .5rem; }
/* 5.1: in inglese e tedesco i mesi hanno la maiuscola */
html[lang="en"] .v49-calh b, html[lang="de"] .v49-calh b { text-transform: none; }
.l51-fail { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 1rem; }
.l51-fail + .l51-fail { border-top: 1px solid var(--line-2); }
.l51-fail small { font-size: .82rem; overflow-wrap: anywhere; }

/* ======================= 5.2 · Attività con gli ambiti: Lista · Bacheca · Statistiche ======================= */
/* la pillola dell'ambito nell'anteprima della barra (un tocco per cambiarlo) */
.preview .c52-amb { pointer-events: auto; display: inline-flex; align-items: center; gap: .35rem; height: 26px; padding: 0 .6rem 0 .4rem; margin: .15rem 0 0 .15rem; vertical-align: middle; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 650; background: color-mix(in srgb, var(--bc, var(--ink-3)) 14%, var(--surface)); color: color-mix(in srgb, var(--bc, var(--ink-3)) 72%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc, var(--ink-3)) 30%, transparent); }
.preview .c52-amb .ti { width: 16px; height: 16px; }
.preview .c52-amb i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); }
.preview .c52-amb em { font-style: normal; font-weight: 500; opacity: .62; }
.preview .c52-amb.none { --bc: var(--ink-3); background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.c52-plus { font-weight: 600; margin-right: .1rem; }
.c52-menu { position: fixed; z-index: 400; min-width: 210px; max-width: min(300px, calc(100vw - 16px)); max-height: min(420px, 70vh); overflow: auto; padding: .35rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.18)); }
.c52-menu .c52-mh { font-size: .74rem; font-weight: 650; color: var(--ink-3); padding: .45rem .6rem .3rem; }
.c52-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 40px; padding: .3rem .55rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.c52-menu button:hover, .c52-menu button:focus-visible { background: var(--surface-2); outline: none; }
.c52-menu .b52-t { width: 26px; height: 26px; border-radius: 8px; } .c52-menu .b52-t .ti { width: 17px; height: 17px; }
.c52-menu .c52-new { color: var(--ink-2); }
.c52-menu .c52-new .c52-plus { width: 26px; text-align: center; font-size: 1.1rem; }
.a52-menu button span { flex: 1; } .a52-menu button svg { width: 17px; height: 17px; fill: none; stroke: var(--dawn); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a52-menu button.on { font-weight: 650; }
.rv-nb { font-size: .82rem; color: var(--ink-2); margin: .35rem 0 .2rem; }

/* il riquadro dell'ambito */
.b52-t { width: 30px; height: 30px; border-radius: 9px; } .b52-t .ti { width: 19px; height: 19px; }
.b52-t b { font-size: .85rem; font-weight: 750; color: var(--ac); }
.b52-t.none { background: var(--surface-2); }

/* testata e strumenti */
.a52-ph .row { gap: .6rem; align-items: center; }
.a52-head { margin: 0 0 .2rem; }
.a52-views { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.a52-views button { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: 0 .85rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: .92rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.a52-views button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a52-views button svg circle { fill: currentColor; stroke: none; }
.a52-views button.on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.06); }
.a52-head .a52-views { display: flex; } .a52-head .a52-views button { flex: 1; justify-content: center; }
.a52-tools { display: flex; align-items: center; gap: .6rem; margin: .8rem 0 .5rem; min-width: 0; }
.a52-scroll { display: flex; align-items: center; gap: .45rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding: 2px 1px; }
.a52-scroll::-webkit-scrollbar { display: none; }
.a52-pill { display: inline-flex; align-items: center; gap: .35rem; flex: none; height: 32px; padding: 0 .75rem 0 .5rem; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.a52-pill .ti { width: 18px; height: 18px; }
.a52-pill.on { background: var(--ink); color: var(--surface); box-shadow: none; }
.a52-pill.plain, .a52-pill:not(:has(.ti, .a52-dot)) { padding-left: .75rem; }
.a52-pill.add { background: transparent; color: var(--ink-3); }
.a52-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bc); flex: none; }
.a52-sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.a52-per { flex: none; margin-left: auto; }
.a52-per button { padding: 0 .7rem; font-size: .86rem; }

/* Lista per ambito */
.a52-gh { display: flex; align-items: center; gap: .6rem; }
.a52-gh h2 { margin: 0; }
.a52-gh .meta { margin-left: auto; }
.a52-gh .prio { width: 10px; height: 10px; margin: 0 .15rem; }
.a52-prog { display: flex; align-items: center; gap: .5rem; margin: -.2rem 0 .6rem 2.4rem; font-size: .8rem; color: var(--ink-3); }
.a52-prog i { position: relative; display: block; flex: 0 0 110px; height: 6px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--bc) 20%, var(--surface)); }
.a52-prog i b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--bc); }

/* Bacheca */
.b52-board { display: flex; gap: .85rem; align-items: flex-start; overflow-x: auto; padding: .3rem .1rem 1rem; margin-top: .4rem; scrollbar-width: thin; }
.b52-col { flex: 0 0 280px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); border-radius: 18px; padding: .7rem; background: color-mix(in srgb, var(--bc) 7%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 15%, transparent); transition: box-shadow .15s, background .15s; }
.b52-col.over { background: color-mix(in srgb, var(--bc) 14%, var(--bg)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bc) 55%, transparent); }
.b52-ch { display: flex; align-items: center; gap: .55rem; padding: .1rem .2rem .6rem; }
.b52-ch b { font-size: 1rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b52-ch .n { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.b52-ch .prio { width: 10px; height: 10px; margin: 0 .2rem; }
.b52-ch .b52-t { width: 28px; height: 28px; } .b52-ch .b52-t .ti { width: 18px; height: 18px; }
.b52-plus { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.b52-plus:hover { background: color-mix(in srgb, var(--bc) 14%, transparent); color: var(--ink); }
.b52-list { display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; min-height: 40px; }
.b52-card { display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 13px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 .5px rgba(0,0,0,.06); cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.b52-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 0 .5px rgba(0,0,0,.08); }
.b52-card.dragging { opacity: .35; }
.b52-ghost { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; box-shadow: 0 16px 34px -8px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.06); }
.b52-ck { width: 21px; height: 21px; margin-top: 0; }
.b52-ct { min-width: 0; flex: 1; }
.b52-ct .t { display: flex; gap: .45rem; align-items: baseline; font-size: .93rem; font-weight: 550; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.b52-ct .t .prio { flex: none; margin: 0; transform: translateY(-1px); }
.b52-ct .m { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.b52-due { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .45rem; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); font-size: .76rem; font-weight: 600; }
.b52-due.late { background: var(--warn-soft); color: var(--warn); }
.b52-due.today { background: var(--dawn-soft); color: var(--dawn-ink); }
.b52-due .a52-dot { width: 7px; height: 7px; }
.b52-empty { padding: .9rem .5rem; border: 1.5px dashed color-mix(in srgb, var(--bc) 35%, transparent); border-radius: 12px; text-align: center; font-size: .82rem; color: var(--ink-3); }
.b52-done { display: flex; align-items: center; gap: .35rem; padding: .55rem .25rem .1rem; font-size: .8rem; color: var(--ink-3); }
.b52-done svg { width: 15px; height: 15px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.b52-board.phone { scroll-snap-type: x mandatory; scroll-padding: 0 1rem; margin-inline: -1rem; padding-inline: 1rem; }
.b52-board.phone .b52-col { flex-basis: min(84vw, 320px); scroll-snap-align: start; max-height: none; }
.b52-board.phone .b52-list { overflow: visible; }

/* Statistiche */
.a52-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .3rem; }
.h-sum .w { color: var(--warn); }
.a52-grid { display: grid; gap: .9rem; }
.a52-grid.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.a52-colg { display: grid; gap: .9rem; min-width: 0; }
.a52-card { padding: 1rem 1.1rem .9rem; min-width: 0; }
.a52-ct { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
.a52-ct h3 { margin: 0; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.a52-ct small { margin-left: auto; font-size: .8rem; color: var(--ink-3); }
.a52-leg { display: flex; gap: .9rem; margin: .1rem 0 .6rem; font-size: .76rem; color: var(--ink-3); }
.a52-leg span { display: inline-flex; align-items: center; gap: .35rem; }
.a52-leg i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; background: var(--ink-2); }
.a52-leg i.lt { background: color-mix(in srgb, var(--ink-2) 22%, var(--surface)); }
.a52-row { display: grid; grid-template-columns: 30px minmax(80px, 120px) minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .4rem 0; }
.a52-row .nm { min-width: 0; font-size: .93rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a52-row .nm small { display: block; font-size: .74rem; font-weight: 600; color: var(--warn); }
.a52-bar { display: flex; gap: 2px; height: 14px; min-width: 0; }
.a52-bar i { display: block; min-width: 3px; border-radius: 4px; background: var(--bc); }
.a52-bar i.lt { background: color-mix(in srgb, var(--bc) 24%, var(--surface)); }
.a52-row .num, .a52-pr .num { font-size: .82rem; color: var(--ink-2); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.a52-row .num b, .a52-pr .num b { color: var(--ink); font-weight: 700; }
.a52-wk { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .5rem; align-items: end; height: 150px; margin-top: .5rem; }
.a52-wk .c { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.a52-wk .c i { display: block; width: 70%; max-width: 28px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--dawn) 50%, var(--surface)); }
.a52-wk .c.last i { background: var(--dawn); }
.a52-wk .c b { font-size: .76rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.a52-wk .c b.hid { visibility: hidden; }
.a52-wk .avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); pointer-events: none; }
.a52-wkx { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .5rem; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.a52-wkx span { display: flex; justify-content: center; font-size: .7rem; color: var(--ink-3); white-space: nowrap; overflow: visible; min-width: 0; }
.a52-note { margin: .5rem 0 0; font-size: .76rem; color: var(--ink-3); }
.a52-pr { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .35rem 0; }
.a52-pr .pn { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.a52-pr .prio { margin: 0; }
.a52-ins { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.a52-ins + .a52-ins { border-top: 1px solid var(--line-2); }
.a52-ins b { color: var(--ink); font-weight: 650; }
.a52-ins .w { color: var(--warn); font-weight: 650; }

/* l'annuncio */
.a52-tz-i { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.a52-tz-i span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); font-size: .86rem; font-weight: 600; color: var(--ink); }
.a52-tz-i svg { width: 17px; height: 17px; fill: none; stroke: var(--dawn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a52-tz-i svg circle { fill: var(--dawn); stroke: none; }

@media (max-width: 699px) {
  .a52-tools { margin-top: .7rem; }
  .a52-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a52-row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: .3rem; }
  .a52-row .a52-bar { grid-column: 2 / 4; grid-row: 2; }
  .a52-prog { margin-left: 2.4rem; }
}
@media (max-width: 380px) { .a52-views button { padding: 0 .55rem; gap: .3rem; font-size: .86rem; } }
@media (prefers-reduced-motion: reduce) { .b52-col { transition: none; } }
.a52-wrap { contain: inline-size; min-width: 0; max-width: 100%; }

/* ============================ 5.3 · Attività, una pagina sua ============================ */
:root { --t53-doing: #2F6FDE; --t53-doing-ink: #2456B8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --t53-doing: #5B8FF0; --t53-doing-ink: #9DBBF7; } }
[data-theme="dark"] { --t53-doing: #5B8FF0; --t53-doing-ink: #9DBBF7; }
/* il numero accanto ad «Attività»: nel menu a destra, nella barra in basso sopra l'icona */
.nb53 { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 10px; background: var(--warn); color: #fff; font-size: .72rem; font-weight: 750; font-style: normal; line-height: 1; }
.nb53[hidden] { display: none; }
.tabbar .s-tab .nb53 { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; margin: 0; font-size: .64rem; box-shadow: 0 0 0 2px var(--surface); }
.h5-all53 { color: var(--ink-2); }

/* testata, viste salvate, strumenti */
.t53 { contain: inline-size; min-width: 0; }
.t53-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.t53-head h1 { margin: 0; }
.t53-head .meta { margin-top: .35rem; font-size: .95rem; color: var(--ink-3); font-weight: 500; }
.t53-head .meta b { color: var(--warn); font-weight: 650; }
.t53-tabs { display: flex; align-items: center; gap: .15rem; margin: 1.1rem 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.t53-tabs::-webkit-scrollbar { display: none; }
.t53-tabs > button { display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 42px; padding: 0 .75rem; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font: inherit; font-size: .94rem; font-weight: 550; white-space: nowrap; cursor: pointer; }
.t53-tabs > button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.t53-tabs > button svg circle { fill: currentColor; stroke: none; }
.t53-tabs > button:hover { color: var(--ink-2); }
.t53-tabs > button.on { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.t53-tabs > button.tinted > svg:first-child { color: var(--bc); }
.t53-tabs .t53-vm { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: -.3rem; border-radius: 6px; color: var(--ink-3); }
.t53-tabs .t53-vm:hover { background: var(--surface-2); color: var(--ink); }
.t53-tabs .t53-vm svg { width: 15px; height: 15px; }
.t53-tabs .t53-addv { color: var(--ink-3); font-weight: 500; }
.t53-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: .85rem 0 .75rem; flex-wrap: wrap; }
.t53-tl, .t53-tr2 { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; min-width: 0; }
.t53-chip { display: inline-flex; align-items: center; gap: .4rem; flex: none; height: 32px; padding: 0 .65rem 0 .7rem; border: 0; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 550; white-space: nowrap; cursor: pointer; }
.t53-chip:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, var(--line)); }
.t53-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.t53-chip > svg:last-child { width: 14px; height: 14px; margin-left: -.1rem; opacity: .7; }
.t53-chip[data-srch53] > svg:last-child, .t53-chip[data-wdone53] > svg:last-child, .t53-chip[data-w53] > svg:last-child { width: 15px; height: 15px; margin: 0; opacity: 1; }
.t53-chip.on { background: color-mix(in srgb, var(--dawn) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dawn) 45%, transparent); color: var(--dawn-ink); }
.t53-chip .prio { margin: 0; }
.t53-reset { height: 32px; padding: 0 .4rem; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: .86rem; font-weight: 550; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t53-search { display: inline-flex; align-items: center; gap: .45rem; height: 32px; width: 150px; padding: 0 .65rem; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.t53-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--dawn); }
.t53-search svg, .t53-sbox svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.t53-search input, .t53-sbox input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: .88rem; box-shadow: none; outline: none; }
.t53-wnav { display: inline-flex; align-items: center; gap: .2rem; margin-right: .3rem; }
.t53-wnav b { font-size: 1.02rem; font-weight: 700; padding: 0 .35rem; white-space: nowrap; }
.t53-wnav button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.t53-wnav button:hover { background: var(--surface-2); }
.t53-tools .a52-per { margin-left: 0; }
.t53-note { margin: .6rem .2rem 0; font-size: .8rem; color: var(--ink-3); }
.t53-empty .s-link { margin-left: .3rem; }

/* i menu */
.a53-menu button span { flex: none; }
.a53-menu button .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.a53-menu button small { color: var(--ink-3); font-size: .8rem; }
.a53-menu button:disabled { opacity: .55; cursor: default; }
.a53-menu i.prio { width: 9px; height: 9px; margin: 0 .3rem 0 .35rem; flex: none; }
.a53-menu .t53-sd { margin: 0 .3rem 0 .35rem; }
.a53-menu .a53-date { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .3rem .55rem; border-radius: 10px; font-size: .92rem; color: var(--ink); }
.a53-menu .a53-date input { width: auto; max-width: 150px; height: 32px; padding: 0 .4rem; font-size: .86rem; }
.a53-menu .a53-clear { color: var(--ink-3); }
.a53-menu .a53-danger { color: var(--warn); }
.a53-menu.a53-wide { min-width: 300px; max-height: min(520px, 80vh); }
.a53-menu .a53-vo { align-items: center; padding: .45rem .55rem; }
.a53-menu .a53-vo .ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); }
.a53-menu .a53-vo .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a53-menu .a53-vo .ic svg circle { fill: var(--ink-2); stroke: none; }
.a53-menu .a53-vo .l b { display: block; font-weight: 650; font-size: .93rem; }
.a53-menu .a53-vo .l small { display: block; margin-top: 1px; white-space: normal; }
.a53-sep { height: 1px; margin: .3rem .3rem; background: var(--line); }

/* lo stato: Da fare · In corso · Fatta */
.t53-sd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ink-3); }
.t53-sd.doing { background: var(--t53-doing); } .t53-sd.done { background: var(--ok); }
.t53-doing { display: inline-flex; align-items: center; height: 20px; margin-left: .45rem; padding: 0 .45rem; border-radius: 6px; vertical-align: 1px; background: color-mix(in srgb, var(--t53-doing) 16%, var(--surface)); color: var(--t53-doing-ink); font-size: .72rem; font-weight: 650; }
.b52-due.doing { background: color-mix(in srgb, var(--t53-doing) 16%, var(--surface)); color: var(--t53-doing-ink); }
.t53-warn h2 { color: var(--warn); }

/* tabella */
.t53-tblw { overflow-x: auto; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); scrollbar-width: thin; }
.t53-tbl { font-size: .9rem; }
.t53-tr { display: grid; grid-template-columns: var(--cols); align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
.t53-tr > div { min-width: 0; padding: 0 .35rem; }
.t53-tr > .t53-c0 { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: .25rem; padding-left: .55rem; background: var(--surface); }
.t53-tr:hover > div, .t53-tr:hover > .t53-c0 { background: color-mix(in srgb, var(--ink) 2.5%, var(--surface)); }
.t53-th { min-height: 40px; border-top: 0; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.t53-th > div, .t53-th > .t53-c0, .t53-th:hover > div, .t53-th:hover > .t53-c0 { background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.t53-th button { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; height: 30px; padding: 0 .4rem; border: 0; border-radius: 7px; background: none; color: var(--ink-3); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.t53-th .t53-c0 button { margin-left: 1.75rem; }
.t53-th button:hover { background: var(--surface-2); color: var(--ink-2); }
.t53-th button.sorted { color: var(--ink); }
.t53-ar { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.t53-ar.dn { transform: rotate(180deg); }
.t53-ck { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin: 0 .2rem; padding: 0; border: 1.6px solid var(--ink-3); border-radius: 50%; background: none; color: transparent; cursor: pointer; }
.t53-ck svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.t53-ck:hover { border-color: var(--ok); color: color-mix(in srgb, var(--ok) 60%, transparent); }
.t53-ck.on { border-color: var(--ok); background: var(--ok); color: #fff; }
.t53-t { display: flex; align-items: center; gap: .35rem; min-width: 0; flex: 1; min-height: 40px; padding: 0 .3rem; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 550; text-align: left; cursor: pointer; }
.t53-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t53-t svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.t53-t:hover span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.t53-tr.done .t53-t { color: var(--ink-3); } .t53-tr.done .t53-t span { text-decoration: line-through; }
.t53-cell { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 .35rem; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.t53-cell:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.t53-cell:focus-visible { outline: 2px solid var(--dawn); outline-offset: -2px; }
.t53-ro { padding: 0 .7rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t53-amb { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; height: 26px; padding: 0 .55rem 0 .4rem; border-radius: 7px; background: color-mix(in srgb, var(--bc) 12%, var(--surface)); color: color-mix(in srgb, var(--bc) 72%, var(--ink)); font-size: .8rem; font-weight: 650; }
.t53-amb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t53-amb .ti { width: 15px; height: 15px; flex: none; }
.t53-amb > i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); flex: none; }
.t53-due { font-weight: 550; color: var(--ink-2); white-space: nowrap; } .t53-due.late { color: var(--warn); } .t53-due.today { color: var(--dawn-ink); }
.t53-pr { display: inline-flex; align-items: center; gap: .35rem; height: 26px; padding: 0 .55rem; border-radius: 7px; font-size: .8rem; font-weight: 650; white-space: nowrap; --pc: var(--ink-3); background: color-mix(in srgb, var(--pc) 12%, var(--surface)); color: color-mix(in srgb, var(--pc) 78%, var(--ink)); }
.t53-pr::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.t53-pr.p1 { --pc: #D9443A; } .t53-pr.p2 { --pc: #D9A21B; } .t53-pr.p3 { --pc: #8E8E93; }
.t53-st { display: inline-flex; align-items: center; height: 26px; padding: 0 .6rem; border-radius: 13px; font-size: .8rem; font-weight: 650; white-space: nowrap; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); color: var(--ink-2); }
.t53-st.doing { background: color-mix(in srgb, var(--t53-doing) 16%, var(--surface)); color: var(--t53-doing-ink); }
.t53-st.done { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }
.t53-rec { color: var(--ink-2); white-space: nowrap; }
.t53-mut { color: var(--ink-3); }
.t53-g { min-height: 46px; display: flex; align-items: center; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bc) 6%, var(--surface)); }
.t53-g .in { position: sticky; left: 0; display: flex; align-items: center; gap: .6rem; min-width: 0; padding: 0 .9rem; flex: 1; }
.t53-g b { font-size: .95rem; font-weight: 700; white-space: nowrap; }
.t53-g.warn b { color: var(--warn); }
.t53-g small { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.t53-g .b52-t { width: 26px; height: 26px; border-radius: 8px; } .t53-g .b52-t .ti { width: 17px; height: 17px; }
.t53-g .prio { width: 10px; height: 10px; margin: 0 .2rem; }
.t53-g .bar { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.t53-g .bar i { position: relative; display: block; width: 90px; height: 6px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--bc) 20%, var(--surface)); }
.t53-g .bar i b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--bc); }
.t53-addr { min-height: 40px; }
.t53-add { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .5rem; margin-left: 1.75rem; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font: inherit; font-size: .86rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.t53-add:hover { background: var(--surface-2); color: var(--ink-2); }
.t53-add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* bacheca (per stato, oltre che per ambito e priorità) */
.b52-card.done { opacity: .7; }
.b52-card.done .b52-ct .t > span:last-child { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.b52-col .t53-sd { margin: 0 .25rem; }
.t53-bd .b52-ch { min-height: 40px; }

/* settimana */
.t53-wk { display: grid; grid-template-columns: minmax(150px, 1.25fr) repeat(7, minmax(0, 1fr)); gap: .55rem; align-items: start; }
.t53-wside { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.t53-day { min-width: 0; min-height: 420px; padding: .45rem; border-radius: 14px; background: color-mix(in srgb, var(--ink) 3%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.t53-day.side { min-height: 0; }
.t53-day.late { --bc: var(--warn); }
.t53-day.late .t53-dh span:first-child { color: var(--warn); }
.t53-day.today { background: color-mix(in srgb, var(--dawn) 8%, var(--bg)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dawn) 50%, transparent); }
.t53-day.past .t53-dh, .t53-day.past .t53-load { opacity: .55; }
.t53-day.over, .t53-pday.over { background: color-mix(in srgb, var(--dawn) 13%, var(--bg)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dawn) 60%, transparent); }
.t53-dh { display: flex; align-items: baseline; gap: .35rem; padding: .2rem .25rem .45rem; font-size: .8rem; font-weight: 650; color: var(--ink-3); }
.t53-dh b { font-size: 1.2rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.t53-day.today .t53-dh b { color: var(--dawn-ink); }
.t53-dh .n { margin-left: auto; }
.t53-load { height: 4px; margin: 0 .25rem .5rem; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.t53-load i { display: block; height: 100%; border-radius: 2px; background: var(--dawn); }
.t53-dl { display: flex; flex-direction: column; gap: .4rem; }
.t53-wk .b52-card { position: relative; gap: .4rem; padding: .5rem .55rem; border-radius: 10px; }
.t53-wk .b52-ck { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; background: var(--surface); opacity: 0; transition: opacity .12s; }
.t53-wk .b52-card:hover .b52-ck, .t53-wk .b52-ck:focus-visible, .t53-wk .b52-card.done .b52-ck { opacity: 1; }
.t53-wk .b52-ct { padding-right: 12px; }
.t53-wk .b52-ct .t { font-size: .84rem; gap: .35rem; overflow-wrap: break-word; hyphens: auto; }
.t53-wk .b52-ct .m { margin-top: .3rem; gap: .2rem; }
.t53-wk .b52-due { font-size: .7rem; padding: .08rem .35rem; }
.t53-wempty { padding: .6rem .3rem; font-size: .78rem; color: var(--ink-3); text-align: center; }
.t53-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin: .1rem 0 .4rem; }
.t53-strip button { display: flex; flex-direction: column; align-items: center; padding: .4rem 0 .5rem; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font: inherit; font-size: .7rem; font-weight: 650; cursor: pointer; }
.t53-strip button b { font-size: 1.05rem; color: var(--ink); margin: 1px 0 4px; }
.t53-strip button i { position: relative; display: block; width: 8px; height: 22px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.t53-strip button i u { position: absolute; left: 0; right: 0; bottom: 0; background: var(--dawn); }
.t53-strip button.past { opacity: .5; }
.t53-strip button.on { background: var(--ink); color: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: none; }
.t53-strip button.on b { color: var(--surface); }
.t53-strip button.on i { background: color-mix(in srgb, var(--surface) 22%, transparent); }
.t53-strip button.over { box-shadow: inset 0 0 0 2px var(--dawn); }
.t53-pday { margin: .3rem -.4rem 0; padding: .1rem .4rem .3rem; border-radius: 14px; scroll-margin-top: 70px; transition: background .15s, box-shadow .15s; }
.t53-pday h3 { display: flex; align-items: baseline; gap: .5rem; margin: .7rem .1rem .5rem; font-size: 1.05rem; font-weight: 750; }
.t53-pday h3 small { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.t53-pday.late h3 { color: var(--warn); }
.t53-pday.today h3 { color: var(--dawn-ink); }
.t53-plist { display: flex; flex-direction: column; gap: .45rem; }

/* matrice */
.t53-mx { display: grid; grid-template-columns: 30px 1fr 1fr; grid-template-rows: auto auto auto; gap: .65rem; }
.t53-mx .ax { display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.t53-mx .ax.v span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.t53-q { min-width: 0; min-height: 230px; padding: .85rem; border-radius: 16px; background: color-mix(in srgb, var(--qc) 6%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qc) 25%, transparent); }
.t53-q h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .2rem; font-size: 1rem; font-weight: 750; color: var(--ink); }
.t53-q h4::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--qc); }
.t53-q h4 small { margin-left: auto; font-size: .8rem; color: var(--ink-3); font-weight: 650; }
.t53-q p { margin: 0 0 .65rem; font-size: .8rem; color: var(--ink-3); }
.t53-ql { display: flex; flex-direction: column; gap: .4rem; }
.t53-mx.ph { grid-template-columns: 1fr; grid-template-rows: none; }
.t53-mx.ph .t53-q { min-height: 0; }

/* Tutto: Pagine in cima, la barra in basso */
.t53-pg { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; padding: .85rem 1rem; color: inherit; text-decoration: none; }
.t53-pg .t { flex: 1; min-width: 0; } .t53-pg b { display: block; font-size: 1.05rem; } .t53-pg small { display: block; margin-top: 2px; color: var(--ink-3); font-size: .84rem; }
.t53-pg .chev { color: var(--ink-3); font-size: 1.4rem; }
.t53-bar-pick { padding: .15rem 0; overflow: hidden; }
.t53-slot { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 52px; padding: .45rem 1rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: .98rem; font-weight: 600; text-align: left; cursor: pointer; }
.t53-slot:first-child { border-top: 0; }
.t53-slot .nm { flex: 1; }
.t53-slot .ti-tile { width: 32px; height: 32px; border-radius: 10px; } .t53-slot .ti-tile .ti { width: 20px; height: 20px; }
.t53-slot .k { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink-3); font-size: .78rem; font-weight: 800; color: #fff; }
.t53-slot .k.on { background: var(--dawn); border-color: var(--dawn); }
.t53-slot .k.fix { background: var(--ink-3); border-color: var(--ink-3); }
.t53-slot .k svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.t53-slot.fix { cursor: default; color: var(--ink-2); }

/* annuncio e pannello */
.t53-tz .a52-tz-i svg circle { fill: currentColor; stroke: none; }
.v53-warn { margin-bottom: .8rem; padding: .8rem 1rem; font-size: .9rem; color: var(--ink-2); background: var(--warn-soft); }

/* telefono e tablet */
@media (max-width: 699px) {
  .t53.ph .t53-head h1 { font-size: 1.9rem; }
  .t53.ph .t53-tabs { gap: .4rem; margin: .8rem -1rem 0; padding: 0 1rem; border: 0; }
  .t53.ph .t53-tabs > button { min-height: 36px; padding: 0 .8rem; margin: 0; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; }
  .t53.ph .t53-tabs > button.on { background: var(--ink); color: var(--surface); box-shadow: none; }
  .t53.ph .t53-tabs > button.on.tinted > svg:first-child { color: inherit; }
  .t53.ph .t53-tabs .t53-vm { color: inherit; }
  .t53.ph .t53-tabs .t53-addv { box-shadow: none; background: none; }
  .t53-tools.ph { display: block; margin: .7rem -1rem .6rem; }
  .t53-tools.ph .t53-scroll { display: flex; align-items: center; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 2px 1rem; }
  .t53-tools.ph .t53-scroll::-webkit-scrollbar { display: none; }
  .t53-tools.ph .a52-per { flex: none; }
  .t53-sbox { display: flex; align-items: center; gap: .5rem; height: 40px; margin: 0 0 .7rem; padding: 0 .75rem; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
  .t53-sbox[hidden] { display: none; }
  .t53-sbox input { font-size: 1rem; }
  .t53-tblw { margin-inline: -1rem; border-radius: 0; box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
  .t53-tbl { font-size: .86rem; }
  .t53-tr > .t53-c0 { box-shadow: 1px 0 0 var(--line); }
  .t53-th .t53-c0 button { margin-left: 1.6rem; }
  .t53-add { margin-left: 1.6rem; }
  .t53-g .in { flex: none; max-width: calc(100vw - 1rem); }
  .t53-g .bar { margin-left: .4rem; }
  .t53-g .bar i { width: 44px; }
  .t53-q { padding: .75rem; }
}

/* ============================ 5.4.1 · gli impegni condivisi si riconoscono ============================ */
/* bordo tratteggiato e righe al posto del pieno, testo più tenue, l'iniziale di chi condivide in un cerchio del suo colore */
.day-col .chip.shared, .chip.allday-chip.shared { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bc) 14%, var(--surface)) 0 5px, var(--surface) 5px 10px) !important; border: 1.5px dashed color-mix(in srgb, var(--bc) 80%, transparent) !important; color: var(--ink-2) !important; box-shadow: none !important; }
.day-col .chip.shared b { font-weight: 600; }
.day-col .chip.shared .sh-ini, .chip.allday-chip.shared .sh-ini { width: 16px; height: 16px; font-size: .62rem; margin-right: .3rem; box-shadow: 0 0 0 1.5px var(--surface); }
.mcal-item.shared { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 70%, transparent); color: var(--ink-2); }
.mcal-item.shared .sh-ini { width: 13px; height: 13px; font-size: .55rem; margin-right: 0; flex: none; }
.s-ev.shared { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ec) 55%, transparent); }
/* il pulsante «Condivisi» accanto a Oggi / Nuovo evento */
.sh54-tg { display: inline-flex; align-items: center; gap: .4rem; }
.sh54-av { display: inline-flex; }
.sh54-av i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; font-weight: 800; color: #fff; background: var(--pc); box-shadow: 0 0 0 2px var(--surface); margin-left: -5px; }
.sh54-av i:first-child { margin-left: 0; }
.sh54-eye { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh54-tg.off { color: var(--ink-3); }
.sh54-tg.off .sh54-av i { background: var(--ink-3); opacity: .5; }
@media (max-width: 520px) { .sh54-tg .sh54-l { display: none; } }

/* ============================ 5.4.2 · Supporto ============================ */
.sup-head { gap: .7rem; }
.sup-head .sup-av { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.sup-head .sup-av img, .sup-mini img { width: 100%; height: 100%; display: block; }
.sup-head h1 { font-size: 1.25rem; margin: 0; line-height: 1.15; }
.sup-head small { display: block; color: var(--ink-3); font-size: .82rem; margin-top: 2px; }
.chat-row.sup { align-items: flex-end; gap: .45rem; }
.sup-mini { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.chat-bubble.sup-hello { background: var(--surface); }

/* ============================ Trama 1.0 — più semplice, per tutti ============================ */
.t10-sub { color: var(--ink-3); font-size: 15px; margin-top: 3px; }
/* Impostazioni come quelle del telefono */
.t10-set { max-width: 680px; margin: 0 auto; }
.t10-h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 2px 16px; }
.t10-set.sub .s-back { display: inline-block; margin: 2px 0 6px; }
.t10-set.desk { max-width: 1080px; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 32px; align-items: start; }
.t10-side { position: sticky; top: 14px; }
.t10-side .t10-h1 { font-size: 26px; }
.t10-side .t10-grp { margin-bottom: 14px; }
.t10-side .t10-row { min-height: 44px; font-size: 15px; }
.t10-pane { min-width: 0; padding-top: 2px; }
.t10-pt { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 8px 2px 16px; }
.t10-me { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border-radius: 14px; color: var(--ink); text-decoration: none; margin-bottom: 20px; }
.t10-me.on { box-shadow: 0 0 0 2px var(--dawn) inset; }
.t10-me .avatar-big { width: 56px; height: 56px; font-size: 22px; flex: none; }
.t10-me .t { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.t10-me b { font-size: 18px; font-weight: 600; }
.t10-me small { color: var(--ink-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t10-me small.p { color: var(--dawn-ink); font-weight: 500; }
.t10-me .chev, .t10-row .chev { width: 14px; height: 14px; color: var(--ink-3); opacity: .55; flex: none; }
.t10-grp { background: var(--surface); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.t10-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 7px 14px; background: none; border: 0; font: inherit; font-size: 16px; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; position: relative; box-sizing: border-box; }
.t10-row + .t10-row::before { content: ''; position: absolute; top: 0; right: 0; left: 62px; border-top: .5px solid var(--sep, var(--line)); }
.t10-row .ti-tile, :root .t10-row .ti-tile, :root:not([data-theme="light"]) .t10-row .ti-tile { width: 32px; height: 32px; border-radius: 9px; background: var(--ac); color: #fff; }
.t10-row .ti-tile .ti { width: 20px; height: 20px; }
.t10-row .ti-tile .ti .l { stroke: #fff; } .t10-row .ti-tile .ti .f { fill: rgba(255,255,255,.35); }
.t10-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t10-row .t small { color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.t10-row .v { color: var(--ink-3); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.t10-row .v .p-pill { vertical-align: 1px; }
.t10-row.muted { color: var(--ink-3); cursor: default; }
@media (hover: hover) { .t10-row:hover { background: var(--fill-2, rgba(0,0,0,.03)); } }
.t10-row.on { background: color-mix(in srgb, var(--dawn) 13%, var(--surface)); }
.t10-row.t10-out { color: #E5484D; justify-content: center; font-weight: 500; }
.t10-row.t10-add { color: var(--dawn-ink); font-weight: 600; }
.t10-row .icon-btn { margin-left: auto; }
.t10-swr { cursor: pointer; }
.t10-swr input { margin-left: auto; flex: none; }
.t10-note { color: var(--ink-3); font-size: 14px; line-height: 1.45; margin: -10px 16px 20px; }
.t10-note.top { margin: 0 4px 14px; }
.t10-lbl { color: var(--ink-3); font-size: 13px; font-weight: 600; margin: 18px 16px 8px; }
.t10-lbl:first-child { margin-top: 0; }
.t10-lbl .p-pill { margin-left: 4px; }
.t10-seg { display: flex; width: 100%; }
.t10-seg button { flex: 1; }
.t10-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .t10-fonts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.t10-fonts .font-opt { padding: 12px 10px; font-size: 16px; }
.t10-sw { padding: 12px 14px; }
.t10-bdot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--bc); color: #fff; flex: none; }
.t10-bdot .ti { width: 20px; height: 20px; } .t10-bdot .ti .l { stroke: #fff; } .t10-bdot .ti .f { fill: rgba(255,255,255,.35); }
.t10-acc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 22px; text-align: center; }
.t10-acc .avatar-big { width: 84px; height: 84px; font-size: 32px; margin-bottom: 8px; }
.t10-acc b { font-size: 20px; font-weight: 600; } .t10-acc small { color: var(--ink-3); font-size: 15px; }
.t10-about { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 24px; text-align: center; }
.t10-about b { font-size: 20px; font-weight: 700; } .t10-about small { color: var(--ink-3); }
.t10-mk { position: relative; width: 64px; height: 64px; margin-bottom: 8px; }
.t10-mcp #mcp-check { display: none; }
/* Tutto */
.t10-tutto .s-tiles .s-tile b .p-pill { font-size: 10px; vertical-align: 2px; }
/* ＋ e barra: l'avviso con Modifica e Annulla */
.t10-toast { gap: .5rem; }
.t10-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: .3rem; }
/* Oggi */
html.t10 .h5-edit { margin: 14px auto 4px; padding: 6px 12px; background: transparent; color: var(--ink-3); font-size: 14px; font-weight: 500; }
html.t10 .h5-edit svg { width: 15px; height: 15px; }
.t10-qp { margin-top: 10px; padding-top: 8px; border-top: .5px solid var(--sep, var(--line)); }
.t10-qp > small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 600; margin: 0 2px 2px; }
@media (min-width: 700px) { .h5 { margin-left: auto; margin-right: auto; } }
/* Attività: un tocco apre; il pallino solo per «Devo» */
.task[data-task] > .grow { cursor: pointer; }
html.t10 .task .title .prio.p2, html.t10 .task .title .prio.p3 { display: none; }
html.t10 .task .title .prio.p1 { background: #E5484D; }
.t10-abar { display: flex; gap: 8px; margin: 2px 0 12px; flex-wrap: wrap; }
.t10-abar button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--fill, rgba(118,118,128,.12)); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.t10-abar button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t10-abar .t10-fbtn.on { background: color-mix(in srgb, var(--dawn) 18%, var(--surface)); color: var(--dawn-ink); }
.t10-att .t53-tabs, .t10-att .t53-tools, .t10-att .t53-sbox { display: none; }
.t10-att.t10-vopen .t53-tabs { display: flex; }
.t10-att.t10-fopen .t53-tools { display: flex; }
.t10-att.t10-fopen .t53-sbox:not([hidden]) { display: flex; }
/* Agenda: un interruttore solo; le frecce restano insieme */
.t10-lseg { margin-left: auto; }
.s-head .t10-lseg button { font-size: 13.5px; }
@media (max-width: 699px) {
  html.t10 .cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
  html.t10 .cal-tools .cal-view-seg { flex: 1 1 100%; display: flex; }
  html.t10 .cal-tools .cal-view-seg button { flex: 1; }
  html.t10 .cal-tools #new-ev { display: none; }
  html.t10 .cal-tools .sh54-tg { margin-left: auto; }
  #cal-side .task .actions .icon-btn[data-plan] { display: grid; }
  .s-head:has(.t10-lseg) { flex-wrap: wrap; gap: 8px; }
  .s-head .t10-lseg { flex: 1 1 100%; display: flex; margin-left: 0; }
  .s-head .t10-lseg button { flex: 1; }
}
/* Soldi: l'umore resta nel Diario */
html.t10 .tx-mood { display: none !important; }
/* il foglio dell'attività: «Altro» */
.t10-more { margin-top: 4px; }
.t10-more > summary { cursor: pointer; color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 8px 2px; list-style: none; }
.t10-more > summary::-webkit-details-marker { display: none; }
.t10-more > summary::before { content: '›'; display: inline-block; margin-right: 6px; transition: transform .15s; }
.t10-more[open] > summary::before { transform: rotate(90deg); }
/* il saluto della 1.0 */
.t10-news { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.t10-news > div { display: flex; gap: 12px; align-items: flex-start; }
.t10-news span { display: flex; flex-direction: column; gap: 2px; }
.t10-news small { color: var(--ink-3); font-size: 14px; line-height: 1.4; }
/* tablet: la barra in basso resta centrata e leggibile */
@media (min-width: 600px) and (max-width: 699px) { html.t10 #tabbar.s-tb5 { max-width: 560px; left: 50%; transform: translateX(-50%); } }
.t10-abar button svg circle { fill: currentColor; stroke: none; }

/* il pop-up della 1.0: le storie */
.t1-bar { display: grid; place-items: center; }
.t1-ph { padding-bottom: 0; }
.t1-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.t1-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 11px; background: #fff; opacity: 0; animation: v5-in .45s cubic-bezier(.2,.9,.3,1) var(--d) forwards; }
.t1-tile .ti-tile { width: 26px; height: 26px; border-radius: 8px; } .t1-tile .ti-tile .ti { width: 16px; height: 16px; }
.t1-tile b { font-size: 8.5px; }
.t1-tb { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; padding: 6px 4px 10px; background: rgba(255,255,255,.96); box-shadow: 0 -.5px 0 rgba(0,0,0,.12); }
.t1-tb .t { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 34px; font-size: 7px; color: #8E8E93; opacity: 0; transform: translateY(8px); }
.t1-tb .t svg { width: 15px !important; height: 15px !important; }
.t1-tb .t.on { color: #1C1C1E; font-weight: 700; }
.t1-tb .p { width: 26px; height: 26px; border-radius: 50%; background: #1C1C1E; color: #fff; display: grid; place-items: center; font-size: 15px; opacity: 0; transform: scale(.4); }
.t1-tb .a1 { animation: t1-up .4s ease .2s forwards; } .t1-tb .a2 { animation: t1-up .4s ease .35s forwards; } .t1-tb .a3 { animation: t1-pop .45s cubic-bezier(.3,1.5,.5,1) .5s forwards; } .t1-tb .a4 { animation: t1-up .4s ease .65s forwards; } .t1-tb .a5 { animation: t1-up .4s ease .8s forwards; }
@keyframes t1-up { to { opacity: 1; transform: none; } } @keyframes t1-pop { to { opacity: 1; transform: none; } }
.t1-set .v5-hd b { margin-bottom: 6px; }
.t1-me { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 11px; background: #fff; margin-bottom: 7px; opacity: 0; animation: v5-in .45s ease var(--d) forwards; }
.t1-me i { width: 24px; height: 24px; border-radius: 50%; background: #1C1C1E; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.t1-me span { display: flex; flex-direction: column; } .t1-me b { font-size: 10px; } .t1-me small { font-size: 7.5px; color: #8E8E93; }
.t1-grp { border-radius: 11px; background: #fff; overflow: hidden; margin-bottom: 7px; }
.t1-row { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 8px; opacity: 0; animation: v5-in .4s ease var(--d) forwards; }
.t1-row + .t1-row::before { content: ''; position: absolute; top: 0; left: 31px; right: 0; border-top: .5px solid rgba(60,60,67,.18); }
.t1-row .ti-tile { width: 18px; height: 18px; border-radius: 5px; background: var(--ac); } .t1-row .ti-tile .ti { width: 12px; height: 12px; } .t1-row .ti-tile .ti .l { stroke: #fff; } .t1-row .ti-tile .ti .f { fill: rgba(255,255,255,.35); }
.t1-row b { flex: 1; font-size: 9px; font-weight: 500; } .t1-row u { text-decoration: none; color: #C7C7CC; font-size: 10px; }
.t1-row.hit { animation: v5-in .4s ease var(--d) forwards, t1-hl .3s ease 2.3s forwards; } @keyframes t1-hl { to { opacity: 1; background: #E5E5EA; } }
.t1-sub { position: absolute; inset: 0; padding: 14px 11px; background: #F2F2F7; transform: translateX(102%); animation: t1-push .45s cubic-bezier(.3,.9,.3,1) 2.65s forwards; }
@keyframes t1-push { to { transform: none; } }
.t1-back { display: block; font-size: 8px; color: #C98500; } .t1-sub > b { display: block; margin: 3px 0 9px; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.t1-seg { display: flex; padding: 2px; border-radius: 7px; background: rgba(118,118,128,.12); } .t1-seg i { flex: 1; padding: 4px 0; border-radius: 5px; text-align: center; font-style: normal; font-size: 8px; color: #636366; } .t1-seg i.on { background: #fff; color: #1C1C1E; font-weight: 600; }
.t1-sw { display: flex; gap: 6px; margin-top: 10px; } .t1-sw i { width: 18px; height: 18px; border-radius: 50%; opacity: 0; animation: t1-pop .3s cubic-bezier(.3,1.5,.5,1) forwards; }
.t1-sw i:nth-child(1) { animation-delay: 3.2s; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #1C1C1E; } .t1-sw i:nth-child(2) { animation-delay: 3.28s; } .t1-sw i:nth-child(3) { animation-delay: 3.36s; } .t1-sw i:nth-child(4) { animation-delay: 3.44s; } .t1-sw i:nth-child(5) { animation-delay: 3.52s; } .t1-sw i:nth-child(6) { animation-delay: 3.6s; }
.t1-tap, .t1-tap2 { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(28,28,30,.22); box-shadow: 0 0 0 2px rgba(255,255,255,.8); opacity: 0; transform: scale(1.6); pointer-events: none; animation: t1-tap .6s ease 2.1s forwards; }
@keyframes t1-tap { 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }
.t1-tap { left: 140px; top: 190px; }
.t1-cap { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 9px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px rgba(201,133,0,.5); }
.t1-type { flex: 1; overflow: hidden; white-space: nowrap; width: 0; max-width: max-content; font-size: 10px; animation: t1-type 1.6s steps(21) .4s forwards; border-right: 1px solid #C98500; }
@keyframes t1-type { to { width: 100%; } }
.t1-cap i { width: 18px; height: 18px; border-radius: 6px; background: #1C1C1E; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.t1-prev { display: flex; align-items: center; gap: 4px; margin: 5px 2px 9px; font-size: 8px; color: #8E8E93; opacity: 0; animation: v5-fade .3s ease 2.1s forwards; } .t1-prev svg { width: 11px !important; height: 11px !important; }
.t1-card { opacity: 0; }
.t1-toast { animation-delay: 3.3s !important; gap: 7px; } .t1-toast u { text-decoration: none; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 700; }
.t1-btns { display: flex; gap: 5px; margin-bottom: 8px; } .t1-btns span { padding: 4px 8px; border-radius: 999px; background: rgba(118,118,128,.12); font-size: 8px; font-weight: 600; }
.t1-task { display: flex; align-items: center; gap: 7px; padding: 7px 8px; background: #fff; border-radius: 10px; margin-bottom: 5px; opacity: 0; animation: v5-in .4s ease var(--d) forwards; }
.t1-task > i { width: 12px; height: 12px; border-radius: 50%; border: 1.3px solid #C7C7CC; flex: none; } .t1-task span { display: flex; flex-direction: column; } .t1-task b { font-size: 9.5px; font-weight: 500; } .t1-task small { font-size: 7.5px; color: #8E8E93; }
.t1-task.hit { animation: v5-in .4s ease var(--d) forwards, t1-hl .25s ease 1.6s forwards; }
.t1-tap2 { left: 104px; top: 74px; animation-delay: 1.35s; }
.t1-sheet { top: 96px; animation-delay: 1.95s; }
.t1-fld { display: block; margin-top: 6px; padding: 5px 7px; border-radius: 8px; background: #F2F2F7; font-size: 9px; } .t1-fld small { display: block; font-size: 7px; color: #8E8E93; }
.t1-chips { display: flex; gap: 4px; margin-top: 7px; } .t1-chips u { flex: 1; padding: 4px 0; border-radius: 6px; background: #F2F2F7; text-align: center; text-decoration: none; font-size: 8px; } .t1-chips u.on { background: #1C1C1E; color: #fff; }
.t1-rt { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 250px; color: #1C1C1E; }
.t1-rcard { width: 100%; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 26px -14px rgba(0,0,0,.35); text-align: left; }
.t1-rcard small { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 600; color: #8E8E93; } .t1-rcard small svg { width: 13px !important; height: 13px !important; }
.t1-rcard b { display: block; margin-top: 2px; font-size: 15px; letter-spacing: -.02em; } .t1-rcard > span { display: block; font-size: 10.5px; color: #8E8E93; } .t1-rcard em { display: block; margin-top: 4px; font-style: normal; font-size: 9.5px; color: #636366; }
.t1-rcard.r1 { opacity: 0; animation: v5-in .45s ease .2s forwards, t1-dim .4s ease 1.6s forwards; }
@keyframes t1-dim { to { opacity: .45; transform: scale(.94); filter: grayscale(1); } }
.t1-rcard.r2 { position: relative; padding-left: 15px; opacity: 0; animation: v5-in .5s cubic-bezier(.2,.9,.3,1) 1.9s forwards; } .t1-rcard.r2::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 14px 0 0 14px; background: #8B5CF6; }
.t1-rcard.r3 { opacity: 0; animation: v5-in .5s cubic-bezier(.2,.9,.3,1) 2.6s forwards; } .t1-rcard .v5-dots { margin-top: 5px; }
.t1-arrow { font-size: 18px; color: #C98500; opacity: 0; animation: v5-fade .3s ease 1.5s forwards; }
@media (prefers-reduced-motion: reduce) { .t1-tile, .t1-row, .t1-me, .t1-task, .t1-rcard, .t1-tb .t, .t1-tb .p, .t1-sw i, .t1-arrow, .t1-prev, .t1-card { opacity: 1 !important; transform: none !important; animation: none !important; } .t1-type { width: auto; animation: none; } .t1-sub { transform: none; animation: none; } }

/* ---------- Trama 1.0.1: sicurezza, consensi ---------- */
.t10-warn { color: var(--warn); font-weight: 600; }
.t101-warn { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border-radius: 14px; margin: 0 0 14px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.t101-warn span { color: var(--ink-2); font-size: 14px; }
.t101-sup { font-weight: 600; color: var(--warn); }
.t101-consent { max-width: 560px; padding: 22px; display: grid; gap: 10px; justify-items: start; }
.t101-consent h2 { margin: 4px 0 0; }
.t101-consent p { margin: 0; color: var(--ink-2); }
.t101-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
