/* icome — look "Lime di notte" (design/look-scelto-2026-11-10), ridisegno 2 del 10 novembre 2026.
   Superfici: sfondo #000; schede #121212 solo per gli oggetti veri (il tuo piano, "Stasera esci?", il posto);
   le liste sono righe su nero separate da linee #1F1F22. Raggi: 20 schede, 14 foto e tile, pillola solo per
   i bottoni. Facce: cerchio #2C2C2E con iniziali crema; anello lime solo a chi ha un piano stasera.
   Lime #C8FF2E = "esco / mi unisco" (bottone principale, "+", anelli, voce attiva, linea del logo).
   Crema #F2E8D8 = logotipo, titoli larghi, numeri grandi. Niente sfumature, bagliori, barre, scatole vuote.
   Icone: un solo set a linea 1,75 px. Animazioni: ease-out 180-220 ms, niente molla. */

@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/MonaSans-VF.ttf') format('truetype');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Mona Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bg: #000000;
  --s1: #121212;
  --s2: #1C1C1E;
  --s3: #2C2C2E;
  --line: #1F1F22;
  --lime: #C8FF2E;
  --cream: #F2E8D8;
  --text: #FFFFFF;
  --muted: #9A9AA0;
  --red: #FF6B64;
  --red-bg: #2A1514;
  --r: 20px;
  --rt: 14px;
  --tab-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 200ms;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: #000; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; font-weight: 400; font-stretch: 100%; line-height: 1.45;
  font-variant-numeric: lining-nums proportional-nums; font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; overflow-x: clip; }
@media (min-width: 560px) {
  html, body { background: #060606; }
  .app { box-shadow: 0 0 0 1px var(--line); }
}

::view-transition-old(root) { animation: 140ms ease-out both vt-out; }
::view-transition-new(root) { animation: var(--t) var(--ease) both vt-in; }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(32px); opacity: 0; } }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }

/* stato premuto: opacità .8, scala .98 */
.press, .btn, .row[data-go], .card[data-go], .face-btn, .join, .day, .rx, .ib, .hbtn, .tile-ph, .settings .item { transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), background var(--t) var(--ease); }
.btn:active, .row[data-go]:active, .card[data-go]:active, .face-btn:active, .join:active, .day:active, .rx:active, .ib:active, .hbtn:active, .tile-ph:active { opacity: .8; transform: scale(.98); }

/* ---------- tipografia ---------- */
.display { font-stretch: 118%; font-weight: 800; color: var(--cream); letter-spacing: -.03em; line-height: 1.08; }
/* Il logo di icome (19/11): un'immagine, public/icons/logo.svg (la scritta crema in Gabarito, con la i che è Ico lime, per
   il fondo scuro: l'app ha solo il tema scuro). L'altezza sta qui, nelle classi: la CSP vieta style="...". La larghezza
   segue. Più alta di quella di prima: Ico sopra la scritta prende spazio, e le lettere restano della stessa misura. */
.logo { display: block; height: 24px; width: auto; }

/* titoli di sezione: 22 px crema */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 32px 20px 12px; }
.sec-h h2 { font-size: 22px; font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; color: var(--cream); line-height: 1.15; }
.sec-h h2 small { font-size: 14px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.sec-h .all { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sec-h.tight { padding-top: 22px; }
.hint { color: var(--muted); font-size: 13px; padding: 10px 20px 0; line-height: 1.45; }
.hint.center { text-align: center; }
.lead { color: var(--muted); font-size: 15px; padding: 0 20px; margin-top: 8px; line-height: 1.45; }
.big { font-size: 32px; padding: 0 20px; margin-top: 6px; overflow-wrap: anywhere; }
.cityline { padding: 0 20px; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cityline b { font-size: 20px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--cream); margin-right: 2px; vertical-align: -1px; }
.cityline i { font-style: normal; color: var(--text); font-weight: 600; }
.cityline span { display: block; font-size: 13px; margin-top: 2px; }

/* ---------- testata ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.topbar.flat { position: static; }
.topbar.over { position: absolute; left: 0; right: 0; background: transparent; }
.topbar:empty { display: none; }
/* scorsa la pagina, una riga sottile e un'ombra leggera sotto la barra ferma (dal controllo delle modifiche dell'utente 1):
   le righe che passano sotto sfumano invece di sembrare tagliate. Solo per la barra ferma (non .flat né .over). */
.topbar.scrolled:not(.flat):not(.over) { box-shadow: 0 1px 0 var(--s3), 0 10px 14px -6px rgba(0, 0, 0, .9); }
.hdr { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; }
.hdr .title { flex: 1; text-align: center; font-size: 16px; font-weight: 650; font-stretch: 108%; letter-spacing: -.01em; }
.hbtn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--s2); color: var(--text); border-radius: 50%; position: relative; flex: none; }
.hbtn.plain { background: none; }
.topbar.over .hbtn { background: rgba(0, 0, 0, .55); }
.hdr.hello { height: 64px; gap: 8px; padding: 0 16px 0 20px; }
.hdr.hello .logo { height: 25px; }
.rdot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--s2); }
.hdr.tab { height: auto; min-height: 64px; padding: 14px 16px 4px 20px; align-items: flex-end; }
.htitle { font-size: 28px; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1.1; color: var(--cream); }
.hsub { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }

/* ---------- pagina ---------- */
.view { padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.view.no-tab { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.px { padding-left: 16px; padding-right: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

/* ---------- striscia dei giorni: tipografica, linea lime sotto il selezionato ---------- */
.days { display: flex; overflow-x: auto; padding: 6px 12px 0; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 1 0 42px; max-width: 56px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; color: var(--text); position: relative; padding-top: 6px; }
.day span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.day b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--text); }
.day i { width: 4px; height: 4px; border-radius: 50%; background: transparent; margin-top: 2px; }
.day i.has { background: var(--muted); }
.day.on b { color: var(--cream); font-weight: 800; font-stretch: 112%; }
.day.on span { color: var(--cream); }
.day.on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px 2px 0 0; background: var(--lime); }
.form-days { padding-left: 0; padding-right: 0; margin: 0 -4px; }

/* ---------- facce ---------- */
.face { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--s3); color: var(--cream); font-weight: 700; font-size: 11px; letter-spacing: .01em; flex: none; overflow: hidden; box-shadow: 0 0 0 2px var(--ring-bg, var(--bg)); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--lime), inset 0 0 0 4px #000; pointer-events: none; }
.face.s26 { width: 26px; height: 26px; font-size: 9px; }
.face.s28 { width: 28px; height: 28px; font-size: 10px; }
.face.s36 { width: 36px; height: 36px; font-size: 12px; }
.face.s40 { width: 40px; height: 40px; font-size: 13px; }
.face.s64 { width: 64px; height: 64px; font-size: 18px; font-weight: 800; font-stretch: 112%; }
.face.s64.on::after { box-shadow: inset 0 0 0 2.5px var(--lime), inset 0 0 0 5px #000; }
.face.s96 { width: 96px; height: 96px; font-size: 32px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; }
.face.s96.on::after { box-shadow: inset 0 0 0 3px var(--lime), inset 0 0 0 7px #000; }
.face.more { color: var(--muted); font-size: 10px; background: var(--s2); }
.face.anon { color: var(--muted); }
.stack { display: inline-flex; flex: none; }
.stack .face + .face { margin-left: -4px; }
.card .stack, .box .stack { --ring-bg: var(--s1); }
.face-btn { display: inline-grid; }

/* striscia degli amici con un piano: 64 px, nome sotto */
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 18px 20px 0; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.sp { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; width: 64px; color: var(--text); }
.sp span { font-size: 12px; font-weight: 500; color: var(--muted); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp .face { --ring-bg: var(--bg); }

/* ---------- bottoni ---------- */
.btn { appearance: none; border-radius: 999px; height: 48px; padding: 0 22px; font-family: var(--font); font-size: 16px; font-weight: 650; font-stretch: 108%; letter-spacing: -.01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--s2); color: var(--text); white-space: nowrap; }
.btn.lime { background: var(--lime); color: #000; }
.btn.pri { background: var(--text); color: #000; }
.btn.sec { background: var(--s2); color: var(--text); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn.sm .ic { width: 16px; height: 16px; }
.btn.lg { height: 52px; font-size: 17px; padding: 0 24px; }
.btn.wide { width: 100%; }
.btn.ib { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn.ib.lg { width: 52px; height: 52px; }
.btn:disabled { opacity: .5; transform: none; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.link { color: var(--muted); font: 600 14px var(--font); display: inline-flex; gap: 6px; align-items: center; padding: 10px 12px; }
.link .ic { width: 16px; height: 16px; }
.link.danger { color: var(--red); }
.link.light { color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 0 16px; margin-top: 16px; }
.two.even { grid-template-columns: 1fr 1fr; }
.two.one { grid-template-columns: 1fr; }
.two .btn { width: 100%; padding: 0 12px; }
.center-row { display: flex; justify-content: center; margin-top: 12px; padding: 0 16px; }
.center-row.gap { gap: 8px; flex-wrap: wrap; }

/* "+" tondo lime: mi unisco. Spunta crema: ci vado già. */
.join { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; flex: none; }
.join .ic { stroke-width: 2.25; }
.went { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--cream); }
.went .ic { stroke-width: 2.25; }
.tick-s { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-left: 6px; color: var(--cream); stroke-width: 2.5; }

/* ---------- righe (liste su nero con linee sottili) ---------- */
.rows { margin: 0 16px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--text); text-align: left; width: 100%; }
.rows > .row:first-child, .rows > .row.first { border-top: 0; }
.row[data-go] { cursor: pointer; }
.rt { flex: 1; min-width: 0; }
.rt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rt-top > div { min-width: 0; }
.rt .t { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt .m { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt .m i { font-style: normal; color: var(--text); }
.rt .n { font-size: 13px; color: var(--text); margin-top: 5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt .n b { font-weight: 600; }
.rt .fr { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--text); min-width: 0; }
.rt .fr > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.person .rt .t { font-size: 15px; }
.row.person .rt .m { margin-top: 1px; }
.row.person .rt .n { margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.row.person .rt .n .ic { width: 14px; height: 14px; color: var(--muted); }
.row.person .rt .n.muted { color: var(--muted); }
.row .acts { display: flex; align-items: center; gap: 6px; flex: none; }
.row .chev { color: var(--muted); flex: none; width: 18px; height: 18px; }
.row .num { flex: none; text-align: right; font-size: 22px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--cream); line-height: 1; min-width: 36px; }
.row .num.few { font-size: 13px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.row .num.zero { color: var(--s3); font-size: 16px; }
.row .num small { display: block; font-size: 11px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-top: 3px; }

/* tile: foto della serata / foto del posto / icona del tipo. Mai colorata. */
.tile { width: 56px; height: 56px; border-radius: var(--rt); background: var(--s2); display: grid; place-items: center; color: var(--muted); flex: none; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .ic { width: 22px; height: 22px; color: var(--cream); stroke-width: 1.5; }
.tile.t72 { width: 72px; height: 72px; }
.tile.t72 .ic { width: 26px; height: 26px; }
.tile.t40 { width: 40px; height: 40px; border-radius: 12px; }
.tile.t40 .ic { width: 18px; height: 18px; }

/* ---------- schede: solo per gli oggetti veri ---------- */
.card { display: block; position: relative; background: var(--s1); border-radius: var(--r); padding: 18px 20px; margin: 12px 16px 0; color: var(--text); overflow: hidden; }
.card .eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.card .title { font-size: 26px; margin-top: 6px; overflow-wrap: anywhere; }
.card .meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card .meta b { color: var(--text); font-weight: 600; }
.card .note { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.card .note b { font-weight: 600; }
.card .foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text); min-width: 0; flex-wrap: wrap; }
.card .foot .names { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .foot .names small { display: block; font-size: 12px; color: var(--muted); }
.card .foot .got { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card .tools { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.card .bigshot { display: block; width: calc(100% + 40px); margin: -18px -20px 16px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--s2); padding: 0; }
.card .bigshot img { width: 100%; height: 100%; object-fit: cover; }
.card .corner { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.card .topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* "Stasera esci?" */
.hero { padding: 20px; margin-top: 14px; }
.hero h1 { font-size: 32px; margin-top: 6px; }
.hero .sub { margin-top: 10px; font-size: 15px; color: var(--muted); }
.hero .sub b { color: var(--text); font-weight: 600; }
.hero .choices { display: flex; gap: 8px; margin-top: 20px; }
.hero .choices .btn { flex: 1; padding: 0 12px; }
.hero .choices .btn.lime { flex: 1.2; }

/* scheda "Per cominciare" (solo ai nuovi) */
.steps-card .shead { display: flex; align-items: baseline; gap: 10px; }
.steps-card .shead b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.steps-card .shead span { font-size: 13px; color: var(--muted); }
.steps-card .shead .x { margin-left: auto; color: var(--muted); display: grid; place-items: center; width: 32px; height: 32px; }
.steps-card .shead .x .ic { width: 16px; height: 16px; }
.steps-card .step { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--s3); }
.steps-card .step:first-of-type { margin-top: 8px; }
.steps-card .step .ic { color: var(--muted); }
.steps-card .step .st { flex: 1; min-width: 0; }
.steps-card .step .st b { display: block; font-size: 15px; font-weight: 600; }
.steps-card .step .st small { display: block; font-size: 13px; color: var(--muted); }
.steps-card .step.done .st b { color: var(--muted); text-decoration: line-through; }
.steps-card .step .chev { color: var(--muted); width: 18px; height: 18px; }

/* ---------- reazioni: una sola pillola compatta ---------- */
.rxp { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--s2); flex: none; }
.rx { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rx .ic { width: 16px; height: 16px; }
.rx.on { color: var(--lime); background: var(--s3); }
.rx.on .ic { stroke-width: 2.25; }
.card .rxp { background: var(--s2); }

/* ---------- pagina del posto ---------- */
.phero { position: relative; height: 300px; background: var(--s1); overflow: hidden; }
.phero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.phero.typo { height: 200px; display: grid; place-items: center; color: var(--cream); background: var(--s1); }
.phero.typo .ic { width: 56px; height: 56px; stroke-width: 1.25; }
.psheet { position: relative; margin-top: -24px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 24px 0 0; }
.psheet h1 { font-size: 32px; padding: 0 20px; overflow-wrap: anywhere; }
.psheet .pmeta { font-size: 15px; color: var(--muted); margin-top: 6px; padding: 0 20px; }
.psheet .pmeta + .pmeta { margin-top: 2px; }
.box { display: flex; align-items: center; gap: 14px; margin: 20px 16px 0; padding: 14px 16px; background: var(--s1); border-radius: var(--r); }
.box + .box { margin-top: 8px; }
.box .t { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.box .s { font-size: 14px; color: var(--muted); line-height: 1.3; }
.box.note { align-items: flex-start; }
.box.note p { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.box.note b { font-weight: 600; }
.box.plain { background: transparent; padding: 4px 4px 0; margin-top: 14px; }
.box.plain .ic { color: var(--muted); }
.box.lock .ic { color: var(--muted); }
.slotlines { margin: 20px 16px 0; }
.sl { display: flex; align-items: baseline; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 15px; }
.sl:first-child { border-top: 0; }
.sl span { color: var(--muted); font-size: 13px; }
.sl b { margin-left: auto; font-size: 17px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--cream); }
.sl b.few { font-size: 13px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.sl.top i { font-style: normal; color: var(--text); }
.sl i { font-style: normal; color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 16px 0; }
.tile-ph { position: relative; aspect-ratio: 1 / 1.2; border-radius: var(--rt); overflow: hidden; background: var(--s1); padding: 0; display: block; width: 100%; }
.tile-ph img { width: 100%; height: 100%; object-fit: cover; }
.tile-ph .who { position: absolute; left: 8px; bottom: 8px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(0, 0, 0, .62); font-size: 12px; font-weight: 600; display: flex; align-items: center; color: var(--text); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-ph.empty { border: 1.5px dashed #3A3A3C; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.tile-ph.empty .pl { width: 36px; height: 36px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; }
.tile-ph.empty .pl .ic { width: 18px; height: 18px; }
.cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); z-index: 20; display: flex; gap: 8px; align-items: center; }
.cta .btn.lg { flex: 1; }
.cta .btn.ib.lg { flex: none; }
.dstate { flex: 1; display: flex; align-items: center; gap: 8px; height: 52px; font-weight: 650; font-stretch: 108%; font-size: 16px; color: var(--text); padding-left: 4px; }
.dstate .ic { width: 22px; height: 22px; color: var(--lime); }

/* ---------- profilo ---------- */
.prof { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 20px 0; }
.prof h1 { font-size: 28px; margin-top: 14px; overflow-wrap: anywhere; }
.prof .handle { font-size: 15px; color: var(--muted); margin-top: 4px; }
.prof .mut { font-size: 13px; color: var(--muted); margin-top: 6px; }
.now { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 17px; background: var(--s1); border: 1px solid var(--s3); font-size: 14px; font-weight: 600; margin-top: 12px; max-width: 100%; }
.now i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 16px 16px 0; background: var(--s1); border-radius: var(--r); padding: 12px 8px; }
.stats > * { text-align: center; color: inherit; display: block; }
.stats b { display: block; font-stretch: 118%; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--cream); letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- impostazioni e liste di voci ---------- */
.settings { margin: 20px 16px 0; }
.settings .item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); width: 100%; text-align: left; color: var(--text); font-size: 15px; font-weight: 600; }
.settings .item:first-child { border-top: 0; }
.settings .item .ic { color: var(--muted); }
.settings .item .chev { margin-left: auto; width: 18px; height: 18px; }
.settings .item small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 1px; }
.settings .item > div { flex: 1; min-width: 0; }
.settings .item.danger, .settings .item.danger .ic { color: var(--red); }
.settings .item .fin.narrow { flex: 0 0 110px; font-weight: 600; text-align: right; height: 36px; }
.settings .item .switch { flex: none; }
.settings-h { padding: 24px 20px 6px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- avvisi ---------- */
.notif { display: flex; gap: 14px; align-items: flex-start; }
.notif p { font-size: 15px; line-height: 1.4; color: var(--text); }
.notif.read p { color: var(--muted); }
.notif .time { font-size: 13px; color: var(--muted); margin-top: 3px; }
.notif .dotu { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-top: 7px; flex: none; }

/* ---------- moduli ---------- */
.form { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.flabel { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 20px 4px 4px; }
.fcard { background: var(--s1); border-radius: var(--r); padding: 2px 16px; }
.fcard .frow { display: flex; align-items: center; gap: 12px; min-height: 54px; border-top: 1px solid var(--s3); padding: 10px 0; }
.fcard .frow:first-child { border-top: 0; }
.fcard .frow .ic { color: var(--muted); }
.fcard .frow label, .fcard .frow .lab { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; }
.fcard .frow small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 1px; }
.fcard .frow .at { font-size: 17px; font-weight: 700; color: var(--muted); }
.fcard .frow.sub { border-top: 0; min-height: 44px; margin-top: -10px; padding: 0 0 0 32px; }
.fin { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 15px var(--font); color: var(--text); outline: none; height: 46px; }
.fin::placeholder { color: var(--muted); }
select.fin { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9AA0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 20px; padding-right: 28px; }
select.fin option { background: var(--s1); color: var(--text); }
.fcard .frow.sub.birth { gap: 8px; }
textarea.fin { height: auto; min-height: 80px; padding: 12px 0; resize: vertical; line-height: 1.45; }
.fhelp { font-size: 13px; color: var(--muted); padding: 4px 4px 0; line-height: 1.45; }
.fhelp.center { text-align: center; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--s3); flex: none; cursor: pointer; transition: background var(--t); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform var(--t) var(--ease), background var(--t); }
.switch:has(input:checked) { background: var(--text); }
.switch:has(input:checked)::after { background: #000; transform: translateX(20px); }
.switch:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.radio { appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--s3); margin: 0; flex: none; background: transparent; display: grid; place-items: center; }
.radio:checked { border-color: var(--cream); }
.radio:checked::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); }
.check { appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--s3); margin: 0; flex: none; display: grid; place-items: center; background: transparent; }
.check:checked { background: var(--cream); border-color: var(--cream); }
.check:checked::after { content: ''; width: 6px; height: 11px; border: solid #000; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.fcard.consent { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; margin-top: 8px; }
.fcard.consent span { font-size: 14px; line-height: 1.4; }
.fin.date { flex: 0 0 150px; }

/* scelta del posto e della fascia: righe con la spunta crema */
.picker { background: var(--s1); border-radius: var(--r); padding: 4px 12px 6px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--s2); border-radius: 12px; padding: 0 14px; }
.search .ic { color: var(--muted); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 15px var(--font); height: 44px; outline: none; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search.page { margin: 12px 16px 0; background: var(--s1); }
.picker .search { margin: 6px 0; }
.picks { max-height: 330px; overflow: auto; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick { display: flex; align-items: center; gap: 12px; padding: 11px 4px; cursor: pointer; position: relative; border-top: 1px solid var(--s3); }
.pick:first-child, .picks .pick:first-child { border-top: 0; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.pick .pname { flex: 1; min-width: 0; }
.pick .pname b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .pname small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.pick .tick { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: transparent; }
.pick .tick .ic { width: 18px; height: 18px; stroke-width: 2.5; }
.pick:has(input:checked) .tick { color: var(--cream); }
.pick:has(input:checked) .pname b { color: var(--cream); }
.pick .tile.t40 .ic { color: var(--muted); }
.pick:has(input:checked) .tile.t40 .ic { color: var(--cream); }
.pick .slot-ic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); flex: none; }
.pick:has(input:checked) .slot-ic { color: var(--cream); }
.picker .link { margin: 2px 0 0 -8px; }
.vis .frow { cursor: pointer; }
.vis .lab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vis .lab .ic { width: 18px; height: 18px; color: var(--muted); }
.vis .lab small { flex-basis: 100%; margin-top: -2px; }
.pubopts { display: flex; flex-direction: column; gap: 8px; }
.pubnote { display: flex; gap: 10px; align-items: flex-start; padding: 4px 4px 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pubnote .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- barra in basso ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom, 0px)); padding: 9px 4px env(safe-area-inset-bottom, 0px); background: var(--bg); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 20; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); position: relative; font-size: 11px; font-weight: 600; letter-spacing: .005em; padding-top: 2px; }
.tabbar a .pill { position: relative; display: grid; place-items: center; height: 26px; }
.tabbar a.on { color: var(--lime); }
.tabbar a.on::before { content: ''; position: absolute; top: -10px; width: 22px; height: 3px; border-radius: 0 0 2px 2px; background: var(--lime); }
.tabbar a .ic { width: 24px; height: 24px; }
.tabbar a.new { justify-content: flex-start; padding-top: 1px; }
.plusbtn { width: 56px; height: 36px; border-radius: 18px; background: var(--lime); color: #000; display: grid; place-items: center; }
.plusbtn .ic { width: 22px; height: 22px; stroke-width: 2.5; }
.tabbar .dot { position: absolute; top: -3px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--text); color: #000; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- benvenuto ---------- */
.welcome { position: relative; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(26px + env(safe-area-inset-top, 0px)) 20px calc(30px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.welcome .logo, .ipage .logo { height: 37px; }
.wtop { margin-bottom: 22px; }
.welcome .rows { margin: 0; }
.welcome .row { padding: 12px 0; }
@media (max-height: 760px) { .welcome .row.c3 { display: none; } }
.wbottom { margin-top: auto; padding-top: 26px; }
.wbottom h1 { font-size: 44px; letter-spacing: -.035em; line-height: 1.02; }
.wbottom p { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.45; max-width: 92%; }
.wbottom .btn { margin-top: 22px; width: 100%; }
.wbottom p.small { font-size: 12px; color: var(--muted); margin-top: 12px; }
.invited { display: flex; align-items: center; gap: 12px; background: var(--s1); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; }
.invited b { display: block; font-size: 15px; font-weight: 600; }
.invited span { display: block; font-size: 13px; color: var(--muted); }
.devbox { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--s2); color: var(--text); font-size: 14px; line-height: 1.45; }
.devbox a { font-weight: 700; text-decoration: underline; }

/* la pagina di un invito aperto dal link, prima di entrare */
.ipage { min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.ipage .itop { padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 18px; }
.ipage .phero { border-radius: 0; }
.ipage .psheet { margin-top: -24px; }
.ipage .ibottom { margin-top: auto; padding: 28px 20px 0; }
.ibottom h2 { font-size: 28px; }
.ibottom p { color: var(--muted); font-size: 15px; margin-top: 10px; line-height: 1.45; }
.ibottom .btn { margin-top: 20px; width: 100%; }
.ibottom p.small { font-size: 12px; margin-top: 12px; }

/* ---------- stati ---------- */
.empty { text-align: center; padding: 48px 24px 20px; color: var(--muted); }
.empty .tile { width: 64px; height: 64px; margin: 0 auto 14px; }
.empty .tile .ic { width: 26px; height: 26px; color: var(--muted); }
.empty b { display: block; font-size: 20px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--cream); margin-bottom: 4px; }
.empty .act { margin-top: 18px; }
.sk { height: 140px; margin: 12px 16px 0; border-radius: var(--r); background: var(--s1); animation: sk 1.4s ease-in-out infinite alternate; }
.sk.short { height: 64px; }
@keyframes sk { to { opacity: .5; } }

/* ---------- fogli, avvisi ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade 180ms ease-out; }
.sheet { width: 100%; max-width: 480px; background: var(--s1); border-radius: 24px 24px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: up 220ms var(--ease); max-height: 90dvh; overflow: auto; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--s3); margin: 0 auto 18px; }
.sheet h2 { font-size: 22px; }
.sheet > p, .sheet form > p { color: var(--muted); margin-top: 6px; font-size: 15px; line-height: 1.45; }
.sheet > p b { color: var(--text); }
.sheet .acts { display: flex; gap: 8px; margin-top: 20px; }
.sheet .acts .btn { flex: 1; height: 50px; }
.sheet .fcard { background: var(--s2); margin-top: 16px; }
.sheet .fcard .frow { border-top-color: var(--s3); }
.sheet .picker { background: var(--s2); margin-top: 16px; }
.sheet .pick { border-top-color: var(--s3); }
.sheet .choice { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--s3); cursor: pointer; }
.sheet:focus { outline: none; }
.sheet .choice:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-radius: 10px; }
.sheet > p + .choice, .sheet h2 + .choice { border-top: 0; }
.sheet .choice b { display: block; font-size: 15px; font-weight: 600; }
.sheet .choice small { color: var(--muted); font-size: 13px; }
.sheet .choice .ic { color: var(--muted); }
.sheet .choice .face { --ring-bg: var(--s1); }
.sheet .choice.danger, .sheet .choice.danger .ic { color: var(--red); }
.sheet .fhelp { margin-top: 14px; padding: 0; }
.sheet .rules { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sheet .rules li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; }
.sheet .rules .ic { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
.shot-full { width: 100%; border-radius: var(--rt); display: block; margin-top: 14px; max-height: 60dvh; object-fit: contain; background: var(--bg); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 36px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--s2); color: var(--text); padding: 10px 16px 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 50; display: flex; align-items: center; gap: 10px; animation: rise 200ms var(--ease); width: max-content; max-width: calc(100% - 32px); }
.toast .ic { width: 18px; height: 18px; color: var(--text); }
.toast.err .ic { color: var(--red); }
.celebrate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .78); animation: fade 200ms; padding: 24px; }
.cel-card { position: relative; background: var(--s1); border-radius: 24px; padding: 30px 24px 22px; text-align: center; width: min(100%, 340px); animation: rise 220ms var(--ease); }
.cel-check { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; margin: 0 auto 16px; }
.cel-check .ic { width: 36px; height: 36px; stroke-width: 2.5; }
.cel-card h2 { font-size: 26px; margin-bottom: 6px; }
.cel-card p { color: var(--muted); margin-bottom: 20px; font-size: 15px; }

/* pagina di conferma dell'accesso (/auth/verify) */
.vpage { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.vcard { width: 100%; max-width: 420px; background: var(--s1); border-radius: 24px; padding: 34px 24px 26px; text-align: center; }
.vcard .logo { height: 39px; }
.vlogo { margin: 0; display: flex; justify-content: center; }
.vsub { color: var(--muted); font-size: 15px; margin-top: 22px; }
.vmail { font-size: 18px; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; margin-top: 4px; overflow-wrap: anywhere; }
.vcard form { margin-top: 22px; }
.vcard .btn.lg { margin-top: 22px; width: 100%; }
.vcard form .btn.lg { margin-top: 0; }
.vhelp { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 16px; }
.btn.black { background: var(--lime); color: #000; } /* la pagina di conferma (server) usa ancora .black: è l'azione d'ingresso */

/* moderazione */
.modrow { padding: 14px 4px; border-top: 1px solid var(--line); }
.modrow:first-child { border-top: 0; }
.modrow b { display: block; font-size: 16px; font-weight: 600; }
.modrow p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.modrow .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.modhead { display: flex; align-items: center; gap: 10px; }

/* ---------- passaggio 1 (2026-11-10): calendario, risposte, nota lunga, inviti con richieste, le tue serate ----------
   Regola dei bottoni (B3): lime solo sull'azione principale della schermata ("Esco", "Ci vado", "Chiedi di venire",
   "Accetta"); tutto il resto è grigio scuro #1C1C1E con testo chiaro. I segni piccoli seguono il significato dei
   colori: lime = amici fuori / mi unisco, grigio = cose mie, crema = numeri e date. */

/* l'ultima casella della striscia apre il calendario (o mostra la sera lontana scelta) */
.day.cal b { display: grid; place-items: center; height: 22px; }
.day.cal b .ic { width: 20px; height: 20px; color: var(--muted); }
.day.cal.on b { height: auto; }

/* il calendario: mesi in colonna, lunedì per primo */
.cal-w { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 16px; padding: 8px 0 6px; border-bottom: 1px solid var(--s3); position: sticky; top: -12px; background: var(--s1); z-index: 1; }
.cal-w span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.cal-m h3 { font-size: 15px; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; color: var(--cream); padding: 18px 4px 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cd { position: relative; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; color: var(--text); }
.cd b { font-size: 15px; font-weight: 600; line-height: 1; }
.cd.off b { color: var(--s3); font-weight: 400; }
.cd.today b { color: var(--cream); font-weight: 800; }
.cd.on { background: var(--s2); }
.cd.on b { color: var(--cream); font-weight: 800; }
.cd.on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px 2px 0 0; background: var(--lime); }
button.cd:active { opacity: .8; transform: scale(.96); }
.marks { display: flex; gap: 3px; height: 5px; }
.marks i, .cal-legend i { width: 5px; height: 5px; border-radius: 50%; display: block; }
i.out { background: var(--lime); }
i.has { background: var(--muted); }
.sheet > p.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; margin-top: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* "Stasera esci?": quattro risposte. Lime solo "Esco"; la risposta data ha il contorno crema. */
.hero .choices.four { display: grid; grid-template-columns: 1fr 1fr; }
.hero .choices.four .btn { width: 100%; }
.btn.picked { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn.picked .ic { width: 16px; height: 16px; stroke-width: 2.5; }
.hero.closed h1 { font-size: 26px; }
.hero.closed .tools { margin-top: 14px; }

/* amici che hanno risposto "Forse" / "Stasera no": due righe discrete, facce senza anello */
.answers { margin: 0 16px; padding: 14px 4px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hint + .answers { border-top: 0; padding-top: 12px; }
.ans { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-width: 0; }
.ans b { color: var(--text); font-weight: 600; }
.ans > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* la nota: prime due righe e "Altro" (paint() lo accende solo se la nota continua) */
.notewrap { min-width: 0; flex: 1; }
.clamp { display: block; max-height: 2.9em; max-height: 2lh; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.more { font: 600 14px var(--font); color: var(--muted); padding: 6px 0 2px; }
.card .notewrap { margin-top: 10px; }
.card .notewrap .note { margin-top: 0; }
.sheet > p.note-full { color: var(--text); font-size: 16px; line-height: 1.5; margin-top: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.fcard .frow.top { align-items: flex-start; }
.fcard .frow.top > .ic { margin-top: 13px; }
textarea.fin.grow { min-height: 46px; padding: 12px 0; resize: none; overflow: auto; }
.fin.num { flex: 0 0 72px; text-align: right; font-size: 17px; font-weight: 700; font-stretch: 108%; color: var(--cream); -moz-appearance: textfield; appearance: textfield; }
.fin.num::-webkit-outer-spin-button, .fin.num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* inviti: stato di "Ci vado" (su richiesta, richiesta mandata, al completo) */
.tag { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--s2); color: var(--muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.went.wait { background: var(--s2); color: var(--muted); }
.went.off { color: var(--s3); }
.dstate.quiet, .dstate.quiet .ic { color: var(--muted); }
.dstate.quiet { white-space: nowrap; }
.cta .btn.lg.fit { flex: none; }
.now.quiet { color: var(--muted); padding-left: 14px; }
.card .meta.crowd { margin-top: 8px; }

/* richieste di venire: la riga nella scheda del piano e il foglio con Accetta / Rifiuta */
.reqbar { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; margin-top: 14px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--s2); color: var(--text); font-size: 15px; text-align: left; }
.reqbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--text); flex: none; }
.reqbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reqbar b { font-weight: 650; }
.reqbar .chev { width: 18px; height: 18px; color: var(--muted); }
.reqbar.quiet { color: var(--muted); font-size: 14px; }
.reqbar:active { opacity: .8; transform: scale(.98); }
.reqrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--s3); }
.sheet > p + .reqrow, .sheet-h + .reqrow { border-top: 0; }
.sheet > p + .reqrow { margin-top: 8px; }
.reqrow .face { --ring-bg: var(--s1); }
.reqrow .rt .t { font-size: 15px; }
/* amici in comune e da quando è su icome: vanno a capo, non si tagliano sotto i bottoni (parte B) */
.reqrow .rt .m.wrap { white-space: normal; margin-top: 2px; }
.acts2 { display: flex; gap: 6px; flex: none; }
/* la riga a cui si è appena risposto resta dov'è e dice com'è andata (BRW-12) */
.reqdone { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.reqdone .ic { width: 18px; height: 18px; }
.reqdone.ok { color: var(--text); }
.reqdone.ok .ic { color: var(--lime); }
/* "Info per chi viene" sulla scheda del piano: riservata, con il lucchetto (parte B) */
.card .meta.info { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--text); }
.card .meta.info .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.sheet .out-note { margin: 0 0 8px; font-size: 13px; }
/* nel foglio della nota: "troppo lunga", sopra il testo, che resta (BRW-8) */
.sheet .fwarn { margin-top: 10px; color: var(--red); font-size: 14px; font-weight: 600; line-height: 1.4; }
.sheet-h { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 18px 0 2px; }

/* le tue serate: la data in crema, il posto, quante persone */
.row.past .when { width: 56px; height: 56px; border-radius: var(--rt); background: var(--s1); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.row.past .when b { font-size: 22px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--cream); line-height: 1; }
.row.past .when span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- passaggio 2: profilo e amici ---------- */
.prof .where { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.prof .where .ic, .prof .where svg { width: 15px; height: 15px; }
.prof .bio { font-size: 15px; line-height: 1.4; color: var(--text); margin-top: 8px; max-width: 320px; overflow-wrap: anywhere; white-space: pre-line; }
.prof .mut { display: flex; align-items: center; justify-content: center; gap: 8px; }
.comuni { padding: 0 0 6px 32px; }
.comuni .hint { margin: 6px 0; }
.comune-opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--s3); padding: 11px 0; font: 400 15px var(--font); color: var(--text); cursor: pointer; }
.comune-opt:first-child { border-top: 0; }
.fcard .frow .count { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcard .frow .count.over { color: var(--red); }
.notif .acts.start { justify-content: flex-start; margin-top: 8px; }

/* ---------- passaggio 3, "Vicino a te" ---------- */
/* il selettore della zona, in alto */
.areabar { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 4px 16px 0; padding: 10px 14px; background: var(--s1); border-radius: 14px; text-align: left; color: var(--text); }
.areabar .ic { color: var(--muted); }
.areabar span { flex: 1; min-width: 0; }
.areabar b { display: block; font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.areabar small { display: block; font-size: 12px; color: var(--muted); }
.areabar .chev { width: 18px; height: 18px; }
/* pillole da toccare: fasce, durata, raggio. Scelta = bianco (il lime resta per l'azione principale) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.chip, .fcard .frow .chips label.chip { position: relative; cursor: pointer; flex: none; font-size: 14px; }
.fcard .frow .chips { flex: 1; min-width: 0; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 8px 14px; border-radius: 999px; background: var(--s2); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.chip small { font-size: 12px; font-weight: 500; color: var(--muted); }
.chip:has(input:checked) span { background: var(--text); color: #000; }
.chip:has(input:checked) small { color: #3A3A3C; }
.chip:has(input:focus-visible) span { outline: 2px solid var(--text); outline-offset: 2px; }
.form > .chips { padding: 4px 0 0; }
.fcard .frow.sub .chips { padding: 2px 0 8px; }
.fin.time { flex: 0 0 104px; text-align: right; font-weight: 600; color-scheme: dark; }
.fin.num + .lab { flex: 0 0 auto; color: var(--muted); font-weight: 500; }
.fhelp.first { padding: 14px 4px 0; color: var(--text); }
/* i suggerimenti del posto: nomi scritti da altri, mai chi ci va */
.suggest { padding: 0 0 6px 32px; }
.sugg-h { font-size: 12px; color: var(--muted); padding: 2px 0 2px; }
.sugg-opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--s3); padding: 11px 0; font: 400 15px var(--font); color: var(--text); cursor: pointer; }
.sugg-h + .sugg-opt { border-top: 0; }
/* i paesi con i numeri */
.row.comune .tile .ic { color: var(--muted); }
.row.comune .t { white-space: normal; }
/* la schermata vuota e gli amici ovunque */
.card.first .tools { flex-wrap: wrap; }
.fr.anywhere { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text); }
/* la posizione, nell'iscrizione */
.pospage { padding: 32px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.pospage > h1, .pospage > .lead { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
.pospage .tile.big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--s1); }
.pospage .tile.big .ic { width: 30px; height: 30px; color: var(--cream); }
.pospage .cta { position: static; transform: none; width: auto; max-width: none; padding: 8px 0 0; border-top: 0; background: none; }
.link.inline { display: inline; padding: 0; font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
/* l'avviso sotto un campo (un invito aperto a tutti: posto e info li legge chiunque) */
.form .fwarn { font-size: 13px; font-weight: 600; color: var(--red); padding: 4px 4px 0; line-height: 1.45; }

/* ---------- passaggio 6: l'attesa dell'email (codice di 6 cifre, Apri Mail, Rimanda) ---------- */
.sheet .fin.code { font-size: 22px; font-weight: 700; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; }
.sheet .ferr { margin-top: 10px; color: var(--red); font-size: 14px; line-height: 1.4; }
.sheet .acts.mailacts { margin-top: 10px; }
.sheet .acts.mailacts .btn { height: 46px; font-size: 14px; }
.sheet .acts.mailacts .btn:disabled { opacity: .55; }
.sheet p.small { margin-top: 14px; font-size: 13px; color: var(--muted); }
.sheet p.small a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; } /* la licenza di ISTAT, in fondo alla privacy */
.sheet p.center { text-align: center; }
.linkish { background: none; border: 0; padding: 4px; color: var(--text); font: 600 13px var(--font); text-decoration: underline; cursor: pointer; }

/* ---------- passaggio 6: "Chi sei?" in tre passi ---------- */
.signup .stepbar { display: flex; gap: 6px; padding: 8px 20px 0; }
.signup .stepbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--s3); }
.signup .stepbar i.on { background: var(--cream); }
.signup .stepof { padding: 10px 20px 0; font-size: 13px; color: var(--muted); }
.signup .stepof b { color: var(--text); }
.signup .step > h1 { margin-top: 6px; }
.photo-pick { display: flex; align-items: center; gap: 14px; width: 100%; margin: 10px 0 0; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--s1); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.photo-pick .ph { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick b { display: block; font-size: 15px; font-weight: 600; }
.photo-pick small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.steps-cta .btn.sec { flex: 0 0 auto; padding: 0 18px; }

/* ---------- passaggio 6: "Chi porti con te?" ---------- */
.porta { padding-bottom: 96px; }
.porta .linkcard .who { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.porta .linkcard .who b { display: block; font-size: 16px; font-weight: 700; }
.porta .linkcard .who span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- passaggio 6: Stasera e Vicino (punti 4, 5, 6, 13, 14, 15) ---------- */
/* punto 15: nelle righe il testo va a capo (al massimo 2 righe) invece di tagliarsi con "…" */
.rt .t, .rt .m, .rt .n, .rt .fr > span:last-child, .ans > span:last-child { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* punto 4: per unirsi un bottone con la parola, ad anello crema (il lime resta per creare un piano) */
.jpill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); font: 650 13px var(--font); white-space: nowrap; cursor: pointer; }
.jpill .ic { width: 16px; height: 16px; stroke-width: 2.25; }
.jpill.on { border-color: transparent; background: var(--s2); }
.jpill.wait { border-color: var(--s3); color: var(--text); }
.jpill.off { border-color: transparent; color: var(--muted); }
/* punto 14: l'iniziale del posto scritto a mano, al posto del pin uguale per tutti */
.tile.ini { font: 800 24px var(--font); font-stretch: 118%; color: var(--cream); }
.tile.t72.ini { font-size: 30px; }
.tile.t40.ini { font-size: 18px; }
/* punto 13: la zona in una riga */
.areabar { display: inline-flex; width: auto; max-width: calc(100% - 32px); gap: 6px; padding: 8px 12px; border-radius: 999px; }
.areabar b { display: inline; font-size: 14px; }
.areabar small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.areabar .chev { width: 16px; height: 16px; }
/* punto 5: la riga che porta a Vicino */
.nearlink { display: flex; align-items: center; gap: 12px; margin: 18px 16px 0; padding: 14px 16px; border-radius: var(--r); background: var(--s1); color: var(--text); }
.nearlink span { flex: 1; min-width: 0; }
.nearlink b { display: block; font-size: 15px; font-weight: 650; }
.nearlink small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nearlink > .ic:first-child { color: var(--cream); }
/* punto 6: la regola dei numeri, una volta, con "Perché?" */
.numrule { padding: 0 20px; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.numrule .linkish { font-size: 13px; padding: 0; }
.whylist { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; display: grid; gap: 8px; }
.whylist b { color: var(--text); }

/* ---------- passaggio 6, punto 8: le reazioni con il nome sotto l'icona ---------- */
.rxp { border-radius: 14px; gap: 0; }
.rx { width: auto; min-width: 46px; height: 44px; padding: 4px 6px 3px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rx .rxn { font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.got { display: inline-flex; align-items: center; gap: 10px; }
.got .gx { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.got .gx .ic { width: 14px; height: 14px; color: var(--cream); }

/* ---------- passaggio 6, punti 9, 10, 11: il modulo del piano e gli interruttori ---------- */
.moreopts { margin-top: 18px; }
.moreopts > summary { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--s1); font-size: 15px; font-weight: 650; color: var(--text); cursor: pointer; position: relative; }
.moreopts > summary::-webkit-details-marker { display: none; }
.moreopts > summary small { font-size: 13px; font-weight: 400; color: var(--muted); }
.moreopts > summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform var(--t); }
.moreopts[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.fcard .frow.sub.town { margin-top: -6px; padding-left: 32px; min-height: 36px; }
.fcard .frow.sub.town b { color: var(--text); font-weight: 600; }
/* punto 11: interruttori leggibili. Acceso: binario crema pieno, pallino nero. Spento: binario scuro con il bordo,
   pallino grigio. E lo stato scritto accanto. */
.switch { background: transparent; box-shadow: inset 0 0 0 2px var(--s3); }
.switch::after { background: #6C6C72; }
.switch:has(input:checked) { background: var(--cream); box-shadow: none; }
.switch:has(input:checked)::after { background: #000; }
.sw-state { flex: none; font-size: 12px; font-weight: 650; color: var(--muted); min-width: 42px; text-align: right; }
.sw-state::before { content: 'Spento'; }
:is(label, .item):has(.switch input:checked) .sw-state { color: var(--cream); }
:is(label, .item):has(.switch input:checked) .sw-state::before { content: 'Acceso'; }
/* punto 12: chi organizza apre il profilo di chi chiede toccando il nome */
.reqrow a.t { display: block; color: var(--text); text-decoration: underline; text-decoration-color: var(--s3); text-underline-offset: 3px; }

/* ---------- passaggio 6, N1: Sicurezza e aiuto ---------- */
.safety { margin: 16px 16px 0; padding: 16px 18px; border-radius: var(--r); background: var(--s1); }
.safety-h { display: flex; align-items: center; gap: 10px; }
.safety-h .ic { color: var(--cream); flex: none; }
.safety-h h2 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.safety ul { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.safety ul b { color: var(--text); }
/* N5: "Accetta tutti" */
.sheet .acceptall { margin-top: 14px; }
.sheet .acceptall .btn.wide { width: 100%; height: 46px; }
.sheet .acceptall .acts2 { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
/* N8: "Apri in Mappe" e "Aggiungi al calendario" sotto il tuo piano */
.card .planlinks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.card .planlinks .linkish { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; text-decoration: none; color: var(--muted); font-weight: 600; }
.card .planlinks .linkish .ic { width: 16px; height: 16px; color: var(--cream); }
/* P2: gli avvisi */
.row.notif .chev { flex: none; color: var(--muted); width: 18px; height: 18px; }
.hdr .hbtn.bell { position: relative; }
/* P3: Tu in tre blocchi; il riepilogo si vede come un selettore */
.settings .item select.fin.narrow { border: 1px solid var(--s3); border-radius: 10px; padding: 0 28px 0 10px; background-position: right 6px center; }

/* ---------- passaggio 6, P4: coerenza visiva ----------
   Il lime resta per tre cose: l'azione principale a pagina intera, la scheda attiva, chi esce (anello, pallino, "+").
   Il resto in crema: il giorno scelto, la reazione scelta, i pallini degli avvisi, lo stato "Ci vai", l'azione del toast.
   "Scelto" si dice in due modi soli: pillola bianca o crema piena, pallino crema. Più aria tra i bottoni affiancati. */
.day.on::after, .cd.on::after { background: var(--cream); }
.rx.on { color: var(--cream); }
.dstate .ic { color: var(--cream); }
.notif .dotu { background: var(--cream); }
.rdot { background: var(--cream); }
.reqdone.ok .ic { color: var(--cream); }
.card .tools { gap: 10px; }
.card .tools .btn.sm { padding-left: 14px; padding-right: 14px; }

/* ---------- passaggio 7, parte 1: l'app installabile e con poca rete ---------- */
/* la striscia "Sei offline · dati delle 21:32" in alto, sopra tutto, dentro la zona sicura del telefono */
.offbar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 60; padding: calc(6px + env(safe-area-inset-top, 0px)) 16px 6px; background: var(--s2); color: var(--text); font-size: 13px; font-weight: 600; text-align: center; letter-spacing: .01em; }
body.is-offline .app { padding-top: 30px; }
body.is-offline .topbar { top: 30px; }
/* senza rete le foto non arrivano: niente icona rotta */
img.img-off { visibility: hidden; }

/* passaggio 8: la pagina del proprietario */
.own-nights { list-style: none; margin: 0 20px; padding: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.own-nights li { display: contents; }
.own-nights span { color: var(--muted); }
.own-nights b { font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.stats + .stats { margin-top: 8px; }
.modrow .quote { color: var(--text); font-style: italic; }
.modrow .who { color: var(--text); margin-top: 8px; }

/* ---------- le storie (passaggio 11, parte 1) ----------
   La striscia in cima a Stasera, l'anello (lime: da vedere; crema: da vedere, per gli amici stretti; grigio: viste), il
   visore a tutto schermo e il foglio per metterne una. Solo classi: la CSP vieta style="...". La barra in alto di ogni
   storia dura 5 secondi (animation qui sotto); ferma con .paused. */
.sstrip { display: flex; gap: 12px; overflow-x: auto; padding: 6px 20px 12px; scrollbar-width: none; min-height: 106px; }
.sstrip::-webkit-scrollbar { display: none; }
.sstrip[hidden] { display: none; }
.sstrip:empty { display: none; }
.sitem { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; flex: none; }
.swrap { position: relative; display: inline-grid; }
.sface { padding: 0; border: 0; background: none; color: inherit; border-radius: 50%; cursor: pointer; display: inline-grid; }
.sname { font-size: 12px; color: var(--muted); max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sring { display: inline-grid; place-items: center; border-radius: 50%; padding: 4px; }
.sring.unseen { box-shadow: inset 0 0 0 2.5px var(--lime); }
.sring.close { box-shadow: inset 0 0 0 2.5px var(--cream), inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--cream); }
.sring.seen { box-shadow: inset 0 0 0 1.5px var(--s3); }
.splus { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; border: 2px solid var(--bg); padding: 0; cursor: pointer; }
.splus .ic { width: 14px; height: 14px; stroke-width: 3; }
.prof > .prof-ring { margin: 0 auto; }
.sviewer { position: fixed; inset: 0; z-index: 35; background: #000; display: flex; justify-content: center; outline: none; }
.sframe { position: relative; width: 100%; max-width: 480px; height: 100%; overflow: hidden; background: #000; }
/* in alto e in basso, sopra la foto: una sfumatura scura solo per leggere (niente colori nuovi) */
.stop { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 22px; background: linear-gradient(to bottom, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0)); pointer-events: none; }
.stop .shead { pointer-events: auto; }
.sbars { display: flex; gap: 4px; padding: 0 10px; }
.sbar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.sbar.done i { transform: scaleX(1); }
.sbar.run i { animation: sbar 5s linear forwards; }
.sviewer.paused .sbar.run i { animation-play-state: paused; }
@keyframes sbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shead { display: flex; align-items: center; gap: 4px; padding: 10px 6px 8px 14px; }
.swho { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.snames { min-width: 0; }
.snames b { display: block; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snames small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; color: var(--text); padding: 0; cursor: pointer; }
.shbtn[hidden] { display: none; }
.sstage { position: absolute; inset: 0; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
/* la foto riempie tutto il visore; una molto larga (più di 5:4) resta intera, su nero */
.sphoto { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; }
.sstage.wide .sphoto { object-fit: contain; }
.sviewer.loading .sphoto { opacity: 0; }
/* la scritta sulla foto, in basso verso il centro: testo bianco su una pillola scura semitrasparente, al massimo 3 righe */
.stext { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 24%; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 8px 14px; border-radius: 16px; background: rgba(0, 0, 0, .58); color: var(--text); font-size: 15px; line-height: 1.35; font-weight: 600; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.stext[hidden], .sfail[hidden] { display: none; }
.sfail { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); margin: 0; font-size: 15px; }
.sfoot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px 12px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0)); }
.sfoot .btn .ic { margin-right: 6px; }
.sreacts { display: flex; gap: 10px; }
.sreact-note { flex-basis: 100%; margin: 8px 0 0; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .72); text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.sreact { width: 56px; height: 48px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .42); font-size: 24px; line-height: 1; padding: 0; cursor: pointer; }
.sreact[aria-pressed="true"] { border-color: var(--lime); background: rgba(0, 0, 0, .62); }
.srx { margin-left: auto; font-size: 22px; }
body.in-stories { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scompose .spick { margin-top: 16px; height: 50px; }
.scompose .spick .ic { margin-right: 8px; }
.spreview { margin-top: 12px; border-radius: 16px; overflow: hidden; background: var(--s2); display: grid; place-items: center; }
.spreview[hidden] { display: none; }
.spreview img { max-height: 240px; width: auto; max-width: 100%; display: block; }
.scompose .fcard .count { color: var(--muted); font-size: 12px; align-self: flex-end; white-space: nowrap; }
.scompose .fcard .count.over { color: var(--red); }
.cflist .item .face { flex: none; }
.repimg { display: block; max-width: 180px; max-height: 240px; border-radius: 12px; margin-top: 8px; }

/* passaggio 11, parte 2: le raccolte in evidenza (sotto i numeri), l'archivio, i miei posti. Gli stessi due colori. */
.hlrow { display: flex; gap: 12px; overflow-x: auto; padding: 16px 20px 2px; scrollbar-width: none; }
.hlrow::-webkit-scrollbar { display: none; }
.hlrow[hidden] { display: none; }
.hlitem { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; flex: none; }
.hlbtn { width: 68px; height: 68px; padding: 3px; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--s3); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.hlbtn.hlnew { box-shadow: none; border: 1.5px dashed #3A3A3C; color: var(--text); }
.hlbtn.hlnew .ic { width: 24px; height: 24px; }
.hlcov { display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--s2); color: var(--muted); }
.hlcov.s64 { width: 62px; height: 62px; }
.hlcov.s40 { width: 40px; height: 40px; flex: none; }
.hlcov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hlcov .ic { width: 22px; height: 22px; }
.hlitem .sname { color: var(--text); }
.choice.off { opacity: .55; cursor: default; }
.choice.off > .ic:last-child { margin-left: auto; color: var(--cream); }
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 16px 16px 0; border-radius: var(--r); overflow: hidden; }
.atile { position: relative; display: block; padding: 0; border: 0; background: var(--s1); aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer; color: var(--text); }
.atile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atile .adate { position: absolute; left: 6px; bottom: 6px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(0, 0, 0, .62); font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.atile .alive { position: absolute; left: 6px; top: 6px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--lime); color: var(--bg); font-size: 11px; font-weight: 700; display: flex; align-items: center; }
.atile .ahl { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .62); display: grid; place-items: center; }
.atile .ahl .ic { width: 14px; height: 14px; color: var(--cream); }
.atile.pickable input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.atile .acheck { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text); background: rgba(0, 0, 0, .35); display: grid; place-items: center; color: transparent; }
.atile .acheck .ic { width: 15px; height: 15px; stroke-width: 3; }
.atile.pickable:has(input:checked) .acheck { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.atile.pickable:has(input:checked) img { opacity: .7; }
.atile.pickable:has(input:focus-visible) { outline: 2px solid var(--cream); outline-offset: -2px; }
.atile.off { cursor: default; }
.atile.off img { opacity: .4; }
.abar { position: sticky; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 60%, transparent); margin-top: 8px; }
.mplist { margin: 4px 16px 0; }
.mplist .mplace { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); color: var(--text); }
.mplist .mplace:first-child { border-top: 0; }
.mplist .mplace .rt { flex: 1; min-width: 0; }
.mplist .mplace .t { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mplist .mplace .m { font-size: 13px; color: var(--muted); }
.mplist .mplace .chev { width: 18px; height: 18px; color: var(--muted); }
.mplist .hint { padding: 6px 4px 0; }
.mpord { display: flex; gap: 4px; flex: none; }
.mpord .up .ic { transform: rotate(180deg); }
.mpin { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--cream); flex: none; }
.mpin .ic { width: 16px; height: 16px; }
.mpwho { margin: 0 16px; }
.mpsearch { margin: 0 16px; }
/* il visore: le azioni sulle proprie storie (e raccolte), icona con la scritta sotto */
.sfoot:has(.sact) { gap: 22px; }
.sfoot:has(.sreact-note) { flex-wrap: wrap; } /* F-11: la riga sotto le reazioni va a capo */
.sfoot .sact { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 72px; padding: 6px 6px 2px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 600 12px var(--font); cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.sfoot .sact .ic { width: 24px; height: 24px; margin: 0; }
.sfoot .sact:disabled { opacity: .6; cursor: default; }
.sfoot .sact:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ---------- il sito d'ingresso (20/11/2026) ----------
   La pagina contiene il sito e l'app; avvio.js mette in-sito o in-app su <html>. Senza JavaScript (nessuna delle due)
   si vede il sito e l'app resta nascosta. Lo stile dell'app: nero, lime per l'azione, crema per i titoli, niente
   sfumature, niente immagini da fuori. */
html:not(.in-app) .app, html:not(.in-app) #sheet-root:empty, html:not(.in-app) .tabbar { display: none; }
html.in-app .sito { display: none; }
html.in-sito .app { display: none; }
.sito { max-width: 1040px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
.sito h1, .sito h2, .sito h3 { color: var(--cream); font-stretch: 112%; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.s-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 0 8px; }
.s-logo { width: 132px; height: auto; }
.s-title { font-size: clamp(32px, 9vw, 56px); font-weight: 800; max-width: 14ch; margin-top: 12px; }
.s-lead { font-size: 17px; color: var(--muted); max-width: 34em; }
.s-cta { margin-top: 6px; }
.btn.lg.s-cta, .s-install { height: 54px; padding: 0 28px; font-size: 17px; }
.s-shots { margin: 36px calc(-1 * max(16px, env(safe-area-inset-left))) 0; }
.s-phones { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, env(safe-area-inset-left)) 12px; scrollbar-width: none; }
.s-phones::-webkit-scrollbar { display: none; }
.s-phone { flex: 0 0 auto; width: min(62vw, 240px); margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 10px; }
.s-phone img { width: 100%; height: auto; border: 6px solid var(--s2); border-radius: 30px; background: #000; }
.s-phone figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.s-sec { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.s-sec h2 { font-size: clamp(24px, 6.4vw, 34px); font-weight: 750; }
.s-sec > p { color: var(--muted); max-width: 40em; }
.s-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: passo; }
.s-steps li { counter-increment: passo; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; background: var(--s1); border-radius: var(--r); padding: 16px; color: var(--muted); }
.s-steps li::before { content: counter(passo); width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: #000; font-weight: 750; display: grid; place-items: center; }
.s-steps b, .s-priv b, .s-rules b, .s-list b, .s-ios b, .s-other b { color: var(--text); font-weight: 650; }
.s-steps b { display: block; margin-bottom: 4px; }
.s-box > .btn, .s-other > .btn { align-self: flex-start; }
.s-priv { list-style: none; padding: 0; display: grid; gap: 10px; }
.s-priv li { position: relative; padding-left: 22px; color: var(--muted); }
.s-priv li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.s-full { background: var(--s1); border-radius: var(--r); padding: 4px 16px; }
.s-full summary { cursor: pointer; padding: 12px 0; font-weight: 650; color: var(--text); }
.s-full[open] { padding-bottom: 16px; }
.s-full > p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.s-rules { padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.s-dl .s-box { background: var(--s1); border-radius: var(--r); padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.s-box h3 { font-size: 20px; font-weight: 750; }
.s-list { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.s-ios { list-style: none; padding: 0; display: grid; gap: 14px; }
.s-ios li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; color: var(--muted); }
.s-ios img { width: 120px; height: auto; }
.s-note { font-size: 14px; color: var(--muted); }
.s-other { border: 2px solid var(--lime); border-radius: var(--rt); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--muted); }
.s-done { color: var(--lime); font-weight: 650; }
.s-link { max-width: 100%; }
.s-url { display: inline-block; max-width: 100%; background: var(--s2); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--text); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.s-qr { width: 200px; height: 200px; border-radius: 12px; background: #fff; }
.s-more { margin-top: 2px; }
.s-morebtn { color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 8px 0; }
.s-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14px; color: var(--muted); }
.s-foot a { text-decoration: underline; text-underline-offset: 3px; }
.s-foot .s-enter { color: var(--text); font-weight: 650; }
.s-foot p { flex-basis: 100%; font-size: 12px; }
/* con JavaScript: solo le istruzioni del telefono che si usa (le altre a richiesta) */
.sito .s-box.s-off { display: none; }
/* senza JavaScript i bottoni del sito («Copia il link») non farebbero niente: il link resta da selezionare a mano. Lo stesso
   «Hai già icome? Entra dal browser» (B-SITO-1, controllo del sito d'ingresso): porta all'app, che senza JavaScript non c'è */
html:not(.in-sito):not(.in-app) .sito [data-sito], html:not(.in-sito):not(.in-app) .s-enter { display: none; }
@media (min-width: 900px) {
  .sito { padding-top: 48px; }
  .s-top { align-items: center; text-align: center; }
  .s-title { max-width: 18ch; }
  .s-shots { margin-left: 0; margin-right: 0; }
  .s-phones { justify-content: center; overflow: visible; padding: 4px 0 12px; }
  .s-phone { width: 220px; }
  .s-steps { grid-template-columns: repeat(3, 1fr); }
  .s-steps li { grid-template-columns: 1fr; }
  .s-dl .s-box { max-width: 720px; }
}
/* «Scarica icome» in fondo alle pagine dei link dell'app (un invito, il benvenuto): porta al sito; nell'app installata no */
.dlrow { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.standalone .dlrow { display: none; }

/* L'informativa sulla privacy (/informativa, legal.ts): una pagina di solo testo, con il foglio del sito */
.legale main { max-width: 44em; display: flex; flex-direction: column; gap: 14px; color: var(--muted); line-height: 1.55; }
.legale h1 { color: var(--text); font-size: clamp(26px, 6.4vw, 36px); font-weight: 750; line-height: 1.15; }
.legale h2 { color: var(--text); font-size: 20px; font-weight: 700; margin-top: 18px; }
.legale h3 { color: var(--text); font-size: 16px; font-weight: 700; margin-top: 8px; }
.legale ul { padding-left: 20px; display: grid; gap: 8px; }
.legale strong { color: var(--text); font-weight: 650; }
.legale mark { background: var(--red-bg); color: var(--red); border-radius: 4px; padding: 0 3px; }
.legale-back a { color: var(--text); font-weight: 650; }
.legale-note { background: var(--red-bg); color: var(--red); border-radius: var(--r); padding: 12px 14px; font-weight: 600; }
.s-contact { overflow-wrap: anywhere; }
.selectable { user-select: text; -webkit-user-select: text; overflow-wrap: anywhere; }
