/* =========================================================
   HYPERVEX — COACH DA TELEFONO (voce 1, fetta 1 — 6/10/2026)
   Caricato da index.html con media="not all and (min-width:1024px)" e con TUTTE le regole sotto body.coach-m, che js/coach-mobile.js
   accende solo per il COACH sotto i 1024 px: il computer e l'atleta non lo vedono mai (prova dev/coach-mobile-invarianza).
   Stile = token dell'app (nero + rosso; l'accento scelto rimappa --red). Per iPhone vecchi (iOS 14.5+): niente inset,
   :has, color-mix, aspect-ratio; 100dvh solo con riserva; gap dei flex ok.
   ========================================================= */

/* ---------- movimento: entrata a cascata solo cambiando pagina (gli aggiornamenti sul posto restano fermi) ---------- */
@keyframes cmIn{ from{ opacity:0; transform:translate3d(0,12px,0); } to{ opacity:1; transform:none; } }
@keyframes cmPop{ from{ opacity:0; transform:scale(.4); } to{ opacity:1; transform:none; } }
@keyframes cmShine{ 0%{ left:-45%; } 55%,100%{ left:130%; } }
@keyframes cmFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }
@keyframes cmGrow{ from{ width:30%; } to{ width:72%; } }
body.coach-m .screen:not(.instant) .cm-rv{ animation:cmIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(var(--i, 0) * 45ms); }
body.coach-m .sheet .cm-row{ animation:cmIn .34s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- barra in alto (sezioni principali) ---------- */
body.coach-m .cm-top{ gap:6px; padding-left:12px; padding-right:10px; }
body.coach-m .cm-top-l{ display:flex; align-items:center; gap:10px; min-width:0; flex:0 1 auto; }
body.coach-m .cm-top-l .brand-name{ font-size:19px; letter-spacing:-.4px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-top .ghost-btn{ position:relative; width:44px; height:44px; min-width:44px; min-height:44px; border-radius:14px; background:rgba(255,255,255,.14); color:#fff; flex:none; }
body.coach-m .cm-top .ghost-btn .ic{ width:21px; height:21px; }
body.coach-m .cm-tb-n{ position:absolute; top:-5px; right:-5px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:#fff; color:#C1101C; font-size:11px; font-weight:900; font-style:normal; display:grid; place-items:center; box-shadow:0 0 0 2px rgba(0,0,0,.12); animation:cmPop .45s cubic-bezier(.3,1.6,.5,1) both; }
body.coach-m .cm-pres-ring{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35); }
body.coach-m .cm-pres-ring .cds-pres-dot{ width:12px; height:12px; }
body.coach-m .cm-tb-add{ height:44px; padding:0 14px; border-radius:14px; background:rgba(255,255,255,.95); color:#B00718; font-size:14.5px; font-weight:900; display:inline-flex; align-items:center; gap:7px; flex:none; transition:transform .14s; }
body.coach-m .cm-tb-add .ic{ width:18px; height:18px; }
body.coach-m .cm-tb-add:active{ transform:scale(.94); }
@media (max-width:399px){   /* telefoni stretti: «Invita» diventa solo icona, così il titolo «Clienti» si legge intero */
  body.coach-m .cm-tb-add{ width:44px; padding:0; justify-content:center; }
  body.coach-m .cm-tb-add span{ display:none; }
}

/* barra scura delle pagine interne: titolo + riga piccola sotto */
body.coach-m .cm-subbar .cm-sub-t{ display:flex; flex-direction:column-reverse; min-width:0; line-height:1.15; }
body.coach-m .cm-subbar .cm-sub-t small{ font-size:12px; font-weight:700; color:var(--txt-3); letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
body.coach-m .cm-subbar .cm-sub-t small.k-red{ color:var(--red); } body.coach-m .cm-subbar .cm-sub-t small.k-warn{ color:var(--warn); }

/* ---------- barra in basso: 5 voci ---------- */
body.coach-m .cm-tabbar{ background:rgba(13,13,17,.96); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
body.coach-m .cm-tabbar button{ min-height:44px; font-size:10.5px; }
body.coach-m .cm-tab-n{ position:absolute; top:9px; left:50%; margin-left:4px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--red); color:#fff; font-size:10.5px; font-weight:900; font-style:normal; display:grid; place-items:center; box-shadow:0 0 0 2px var(--nav-bg); animation:cmPop .45s cubic-bezier(.3,1.6,.5,1) both; }

/* ---------- pezzi comuni ---------- */
body.coach-m .cm-scr .wrap{ padding-top:6px; }
body.coach-m .cm-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l); padding:14px 14px 10px; margin-bottom:12px; box-shadow:var(--shadow); position:relative; }
body.coach-m .cm-card-h{ display:flex; align-items:center; gap:9px; margin-bottom:6px; min-height:28px; }
body.coach-m .cm-card-h > .ic{ color:var(--red); width:21px; height:21px; }
body.coach-m .cm-card-h > b{ flex:1; min-width:0; font-size:16.5px; font-weight:900; letter-spacing:-.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-card-h .cm-sub{ font-size:11.5px; font-weight:800; color:var(--txt-3); white-space:nowrap; }
body.coach-m .cm-cnt{ background:var(--red); color:#fff; min-width:24px; height:24px; border-radius:8px; display:grid; place-items:center; font-size:12.5px; font-weight:900; padding:0 6px; box-shadow:var(--shadow-red); }
body.coach-m .cm-note{ font-size:13px; font-weight:700; color:var(--txt-3); line-height:1.45; margin:0 2px 8px; }
body.coach-m .cm-center{ text-align:center; }
body.coach-m .cm-mt{ margin-top:10px; }
body.coach-m .cm-none{ font-size:13.5px; font-weight:700; color:var(--txt-3); padding:10px 2px; }
body.coach-m .cm-empty{ text-align:center; padding:26px 14px 18px; color:var(--txt-3); font-weight:700; font-size:14px; line-height:1.45; }
body.coach-m .cm-empty > .ic{ display:block; width:40px; height:40px; color:var(--surface-3); margin:0 auto 8px; }
body.coach-m .cm-empty b{ display:block; color:var(--txt-2); font-size:16px; margin-bottom:4px; }
body.coach-m .cm-empty .cm-code{ display:inline; color:var(--red); letter-spacing:1.5px; font-size:14px; margin:0; }
body.coach-m .cm-link{ display:inline-flex; align-items:center; gap:5px; min-height:44px; color:var(--red); font-size:14px; font-weight:800; padding:0 2px; }
body.coach-m .cm-link .ic{ width:16px; height:16px; }
body.coach-m .cm-sec{ display:flex; align-items:center; gap:7px; margin:18px 2px 10px; font-size:11.5px; font-weight:900; letter-spacing:.9px; text-transform:uppercase; color:var(--txt-3); }
body.coach-m .cm-sec .ic{ width:15px; height:15px; color:var(--red); }
body.coach-m .k-red{ color:var(--red) !important; } body.coach-m .k-warn{ color:var(--warn) !important; }

/* riga toccabile (lista clienti, chat, notifiche, menu) */
body.coach-m .cm-row{ display:flex; align-items:center; gap:12px; width:100%; min-height:62px; padding:9px 12px; border-radius:var(--r-m); background:var(--surface); border:1px solid var(--line); margin-bottom:8px; text-align:left; color:var(--txt); transition:transform .14s, background .15s; }
body.coach-m .cm-row:active{ transform:scale(.985); background:var(--surface-2); }
body.coach-m .cm-row.flat{ background:transparent; border:0; border-bottom:1px solid var(--line-soft); border-radius:0; margin:0; padding:9px 2px; }
body.coach-m .cm-row.flat:last-of-type{ border-bottom:0; }
body.coach-m .cm-rt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
body.coach-m .cm-rt > b{ font-size:15.5px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-rt > b small{ font-size:12px; color:var(--txt-3); font-weight:700; }
body.coach-m .cm-rt > span{ font-size:12.5px; font-weight:700; color:var(--txt-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-rt > span.on{ color:var(--txt-2); }
body.coach-m .cm-rt > em{ font-size:12.5px; color:var(--txt-3); font-weight:700; font-style:italic; white-space:normal; }
body.coach-m .cm-row.wrap .cm-rt > b{ white-space:normal; font-size:14px; line-height:1.3; }
body.coach-m .sheet .cm-row .cm-rt > span{ white-space:normal; }   /* nelle finestre c'è spazio: la spiegazione va a capo invece di finire coi puntini */
body.coach-m .cm-row.unread .cm-rt > b::before{ content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--red); margin-right:7px; vertical-align:1px; box-shadow:0 0 8px var(--red-glow); }
body.coach-m .cm-row.bold .cm-rt > b{ color:#fff; }
body.coach-m .cm-row.danger .cm-rt > b, body.coach-m .cm-row.danger .cm-ric{ color:var(--red); }
body.coach-m .cm-ric{ width:40px; height:40px; border-radius:13px; display:grid; place-items:center; background:var(--red-soft); color:var(--red); flex:none; }
body.coach-m .cm-ric .ic{ width:20px; height:20px; }
body.coach-m .cm-ric.grey{ background:var(--surface-2); color:var(--txt-2); }
body.coach-m .cm-chev{ width:18px; height:18px; color:var(--txt-3); flex:none; }
body.coach-m .cm-time{ font-size:11.5px; font-weight:800; color:var(--txt-3); white-space:nowrap; flex:none; }

body.coach-m .cm-av{ position:relative; width:46px; height:46px; border-radius:15px; background:var(--grad-flat); color:#fff; display:grid; place-items:center; font-size:17px; font-weight:900; flex:none; box-shadow:var(--shadow-red); }
body.coach-m .cm-av.grey{ background:var(--surface-3); color:var(--txt-2); box-shadow:none; }
body.coach-m .cm-av.sm{ width:36px; height:36px; border-radius:12px; font-size:13.5px; }
body.coach-m .cm-un{ position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#fff; color:#C1101C; font-size:11px; font-weight:900; font-style:normal; display:grid; place-items:center; box-shadow:0 0 0 2px var(--surface); animation:cmPop .45s cubic-bezier(.3,1.6,.5,1) both; }
body.coach-m .cm-tags{ display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
body.coach-m .cm-tag{ display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:7px; font-size:11px; font-weight:800; color:var(--c, var(--txt-2)); border:1px solid var(--c, var(--line)); white-space:nowrap; }
body.coach-m .cm-tag.ok{ --c:var(--ok); }
body.coach-m .cm-mini{ display:inline-flex; gap:5px; flex:none; }
body.coach-m .cm-mini i{ width:24px; height:24px; border-radius:8px; display:grid; place-items:center; font-style:normal; background:var(--surface-2); color:var(--txt-3); }
body.coach-m .cm-mini i.y{ background:rgba(47,208,122,.14); color:var(--ok); }
body.coach-m .cm-mini .ic{ width:13px; height:13px; }

/* ricerca e filtri */
body.coach-m .cm-search{ display:flex; align-items:center; gap:10px; height:50px; padding:0 14px; border-radius:15px; background:var(--surface-2); border:1.5px solid var(--line); margin-bottom:10px; transition:border-color .18s, box-shadow .18s; }
body.coach-m .cm-search > span{ line-height:0; color:var(--txt-3); }
body.coach-m .cm-search .ic{ width:19px; height:19px; }
body.coach-m .cm-search input{ flex:1; min-width:0; height:100%; background:transparent; border:0; outline:none; font-size:16px; font-weight:700; color:var(--txt); padding:0; }
body.coach-m .cm-search input::placeholder{ color:var(--txt-3); font-weight:600; }
body.coach-m .cm-search:focus-within{ border-color:var(--red); box-shadow:0 0 0 4px var(--red-soft); }
body.coach-m .cm-chips{ display:flex; gap:8px; overflow-x:auto; padding:2px var(--pad) 4px; margin:0 calc(var(--pad) * -1) 10px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
body.coach-m .cm-chips::-webkit-scrollbar{ display:none; }
body.coach-m .cm-chips.wrap{ flex-wrap:wrap; overflow:visible; margin:0 0 6px; padding:0; }
body.coach-m .cm-chip{ flex:none; display:inline-flex; align-items:center; gap:7px; height:44px; padding:0 14px; border-radius:14px; background:var(--surface-2); color:var(--txt-2); border:1px solid var(--line); font-size:14px; font-weight:800; transition:transform .14s, background .15s, color .15s, border-color .15s; }
body.coach-m .cm-chip:active{ transform:scale(.95); }
body.coach-m .cm-chip.on{ background:var(--red-soft); color:var(--red); border-color:var(--red); }
body.coach-m .cm-chip i{ font-style:normal; min-width:21px; height:21px; border-radius:7px; padding:0 5px; display:grid; place-items:center; background:var(--surface-3); color:var(--txt); font-size:11.5px; }
body.coach-m .cm-chip.on i{ background:var(--red); color:#fff; }
body.coach-m .cm-chips.wrap .cm-chip.on{ background:var(--surface-3); color:var(--txt); border-color:var(--c, var(--red)); box-shadow:inset 0 0 0 1px var(--c, var(--red)); }
body.coach-m .cm-dot{ width:10px; height:10px; border-radius:50%; background:var(--c, var(--red)); flex:none; }
body.coach-m .cm-seg{ display:flex; gap:6px; padding:4px; border-radius:15px; background:var(--surface-2); border:1px solid var(--line); margin-bottom:10px; }
body.coach-m .cm-seg button{ flex:1; min-height:44px; border-radius:11px; font-size:14px; font-weight:900; color:var(--txt-2); transition:background .2s, color .2s; }
body.coach-m .cm-seg button.on{ background:var(--grad-flat); color:#fff; box-shadow:var(--shadow-red); }
body.coach-m .cm-sw{ position:relative; width:52px; height:31px; border-radius:16px; background:var(--surface-3); flex:none; transition:background .2s; }
body.coach-m .cm-sw i{ position:absolute; top:3px; left:3px; width:25px; height:25px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.4); transition:transform .25s cubic-bezier(.3,1.4,.5,1); }
body.coach-m .cm-sw.on{ background:var(--ok); }
body.coach-m .cm-sw.on i{ transform:translateX(21px); }

/* card «si fa dal computer» */
body.coach-m .cm-pc{ display:flex; gap:12px; align-items:flex-start; padding:13px 14px 6px; border-radius:18px; border:1px dashed rgba(255,255,255,.2); background:rgba(255,255,255,.025); margin:4px 0 12px; }
body.coach-m .cm-pc > .ic{ color:var(--red); width:22px; height:22px; margin-top:2px; }
body.coach-m .cm-pc-t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:13px; color:var(--txt-2); line-height:1.45; font-weight:700; }
body.coach-m .cm-pc-t b{ color:var(--txt); font-size:14.5px; }
body.coach-m .cm-pc-t .cm-link{ align-self:flex-start; }

/* ---------- HOME: cosa richiede la tua attenzione ---------- */
body.coach-m .cm-hello{ display:flex; align-items:flex-end; gap:10px; margin:6px 2px 14px; }
body.coach-m .cm-hello > div{ flex:1; min-width:0; }
body.coach-m .cm-hello-d{ display:block; font-size:13px; font-weight:800; color:var(--txt-3); }
body.coach-m .cm-hello-d::first-letter{ text-transform:uppercase; }
body.coach-m .cm-hello h1{ margin:2px 0 0; font-size:28px; font-weight:900; letter-spacing:-1px; line-height:1.05; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-pres-chip{ display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0 13px; border-radius:13px; background:var(--surface-2); border:1px solid var(--line); font-size:13px; font-weight:800; color:var(--txt-2); flex:none; transition:transform .14s; }
body.coach-m .cm-pres-chip:active{ transform:scale(.95); }
body.coach-m .cm-att{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
body.coach-m .cm-att-t{ position:relative; display:flex; flex-direction:column; align-items:flex-start; text-align:left; padding:13px 13px 12px; border-radius:18px; background:var(--surface); border:1px solid var(--line); min-height:98px; overflow:hidden; color:var(--txt); transition:transform .14s, border-color .2s; }
body.coach-m .cm-att-t:active{ transform:scale(.97); }
body.coach-m .cm-att-t.hot{ border-color:rgba(255,255,255,.14); background:linear-gradient(160deg, var(--red-soft), var(--surface) 70%); }
body.coach-m .cm-att-t .v{ font-size:34px; font-weight:900; letter-spacing:-1.4px; line-height:1; }
body.coach-m .cm-att-t .k{ font-size:13px; font-weight:800; color:var(--txt-2); margin-top:6px; line-height:1.2; }
body.coach-m .cm-att-t > .ic{ position:absolute; top:12px; right:12px; width:20px; height:20px; color:var(--red); }
body.coach-m .cm-att-t:not(.hot) .v{ color:var(--txt-2); } body.coach-m .cm-att-t:not(.hot) > .ic{ color:var(--txt-3); }

/* ---------- PAGINA CLIENTE ---------- */
/* le schede del cliente: stessi riquadri di prima (.cli-tiles/.cli-tile) ma come linguette che scorrono, sempre in vista */
body.coach-m .cli-tiles.cm-ctabs{ position:-webkit-sticky; position:sticky; top:calc(60px + var(--safe-t) + var(--vv-top, 0px) + 8px); z-index:20; display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; margin:-6px calc(var(--pad) * -1) 8px; padding:10px var(--pad) 10px; background:linear-gradient(180deg, var(--bg) 82%, rgba(8,8,10,0)); scrollbar-width:none; -webkit-overflow-scrolling:touch; }
body.coach-m .cli-tiles.cm-ctabs::-webkit-scrollbar{ display:none; }
body.coach-m .cm-ctabs .cli-tile{ flex:none; width:auto; height:44px; flex-direction:row; gap:7px; padding:0 14px; border-radius:13px; background:var(--surface-2); border:1px solid var(--line); color:var(--txt-2); transition:background .2s, color .2s, border-color .2s, transform .14s; }
body.coach-m .cm-ctabs .cli-tile:active{ transform:scale(.95); }
body.coach-m .cm-ctabs .cli-tile.on{ background:var(--red-soft); color:var(--red); border-color:var(--red); }
body.coach-m .cm-ctabs .cli-tile-ic svg{ width:18px; height:18px; }
body.coach-m .cm-ctabs .cli-tile-l{ font-size:14px; font-weight:800; }
body.coach-m .cm-hero{ display:flex; align-items:center; gap:12px; padding:14px; border-radius:20px; background:linear-gradient(150deg, var(--surface-2), var(--surface)); border:1px solid var(--line); margin-bottom:10px; }
body.coach-m .cm-hero .cm-rt > b{ font-size:18px; font-weight:900; letter-spacing:-.3px; }
body.coach-m .cm-hero-tags{ display:flex !important; flex-wrap:wrap; gap:5px; margin-top:6px; white-space:normal !important; overflow:visible !important; }
body.coach-m .cm-sub-chip{ display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px; border-radius:7px; font-size:11px; font-weight:800; color:var(--txt-2); background:var(--surface-3); }
body.coach-m .cm-sub-chip .ic{ width:12px; height:12px; }
body.coach-m .cm-sub-chip.on{ color:var(--ok); background:rgba(47,208,122,.13); }
body.coach-m .cm-hero-n{ text-align:right; flex:none; }
body.coach-m .cm-hero-n b{ display:block; font-size:24px; font-weight:900; color:var(--red); line-height:1; }
body.coach-m .cm-hero-n span{ font-size:11.5px; font-weight:800; color:var(--txt-3); }
body.coach-m .cm-hero-n em{ display:block; margin-top:2px; font-size:11px; font-style:normal; font-weight:800; color:var(--txt-3); }
body.coach-m .cm-qa{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-bottom:12px; }
body.coach-m .cm-qa button{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; height:62px; border-radius:16px; background:var(--surface); border:1px solid var(--line); font-size:12.5px; font-weight:800; color:var(--txt-2); transition:transform .14s; }
body.coach-m .cm-qa button .ic{ color:var(--red); width:21px; height:21px; }
body.coach-m .cm-qa button:active{ transform:scale(.95); }
body.coach-m .cm-glance{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:6px; }
body.coach-m .cm-glance > button{ text-align:left; padding:12px 13px; border-radius:18px; background:var(--surface); border:1px solid var(--line); min-height:108px; display:flex; flex-direction:column; gap:5px; color:var(--txt); transition:transform .14s; min-width:0; }
body.coach-m .cm-glance > button:active{ transform:scale(.97); }
body.coach-m .cm-glance .k{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:900; letter-spacing:.5px; text-transform:uppercase; color:var(--txt-3); }
body.coach-m .cm-glance .k .ic{ width:15px; height:15px; color:var(--red); }
body.coach-m .cm-glance .v{ font-size:22px; font-weight:900; letter-spacing:-.6px; line-height:1.05; }
body.coach-m .cm-glance .v small{ font-size:12.5px; color:var(--txt-3); font-weight:800; letter-spacing:0; }
body.coach-m .cm-glance .v.cm-dim{ font-size:16px; color:var(--txt-2); }
body.coach-m .cm-glance .v.cm-v-sm{ font-size:17px; }
body.coach-m .cm-glance .s{ font-size:12px; font-weight:800; color:var(--txt-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-ok{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:800; color:var(--ok); margin-top:auto; }
body.coach-m .cm-ok .ic{ width:13px; height:13px; }
body.coach-m .cm-d7{ display:flex; gap:3px; margin-top:auto; }
body.coach-m .cm-d7 i{ flex:1; height:22px; border-radius:6px; background:var(--surface-2); font-style:normal; font-size:10px; font-weight:900; color:var(--txt-3); display:grid; place-items:center; }
body.coach-m .cm-d7 i.y{ background:var(--grad-flat); color:#fff; }
body.coach-m .cm-d7 i.t{ box-shadow:inset 0 0 0 1.5px var(--red); }
body.coach-m .cm-old .card{ border-radius:18px; }
body.coach-m .cm-old .cp-trend-top{ grid-template-columns:minmax(0,1fr); gap:8px; }   /* esercizio e metrica uno sotto l'altro: niente testo tagliato */
body.coach-m .cm-panel{ margin-bottom:10px; }
body.coach-m .cm-panel .cli-panel-h{ min-height:52px; font-size:15px; }
body.coach-m .cm-renew{ grid-template-columns:repeat(3, 1fr); }
body.coach-m .cm-activate{ margin-bottom:12px; }
body.coach-m .cm-full{ width:100%; margin-top:6px; }
body.coach-m .cm-scr > .wrap .btn.sm{ height:44px; }   /* sul telefono ogni tasto si tocca bene col pollice (≥ 44 px) */
body.coach-m .cm-macro{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px; margin:4px 0 8px; }
body.coach-m .cm-macro div{ background:var(--surface-2); border-radius:12px; padding:9px 6px; text-align:center; min-width:0; }
body.coach-m .cm-macro b{ display:block; font-size:15px; font-weight:900; white-space:nowrap; }
body.coach-m .cm-macro span{ font-size:10.5px; font-weight:800; color:var(--txt-3); text-transform:uppercase; letter-spacing:.3px; }
body.coach-m textarea.input.cm-ta{ min-height:260px; font-size:16px; resize:none; }
/* allenamenti in sola lettura: giorni a tendina */
body.coach-m .cm-acc{ border-bottom:1px solid var(--line-soft); }
body.coach-m .cm-acc:last-child{ border-bottom:0; }
body.coach-m .cm-acc-h{ display:flex; align-items:center; gap:12px; width:100%; min-height:58px; padding:6px 2px; text-align:left; color:var(--txt); }
body.coach-m .cm-acc-h .cm-chev{ transition:transform .25s; }
body.coach-m .cm-acc.open .cm-acc-h .cm-chev{ transform:rotate(90deg); }
body.coach-m .cm-acc-b{ display:none; padding:0 0 10px 0; }
body.coach-m .cm-acc.open .cm-acc-b{ display:block; animation:cmIn .3s ease both; }
body.coach-m .cm-dn{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--red-soft); color:var(--red); font-size:16px; font-weight:900; flex:none; }
body.coach-m .cm-ex{ display:flex; gap:10px; padding:9px 4px; border-top:1px solid var(--line-soft); }
body.coach-m .cm-ex-n{ width:26px; flex:none; font-size:12px; font-weight:900; color:var(--red); padding-top:2px; text-align:center; }
body.coach-m .cm-ex .cm-rt > b{ white-space:normal; font-size:14.5px; }
body.coach-m .cm-ex .cm-rt > span{ white-space:normal; color:var(--txt-2); }
body.coach-m .cm-ex-c{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:var(--txt-2); padding:6px 4px 8px; }
body.coach-m .cm-ex-c .ic{ width:15px; height:15px; color:var(--red); }
body.coach-m .cm-prog{ padding:4px 14px; }
body.coach-m .cm-prog .cm-rt > span.cm-tags{ white-space:normal; overflow:visible; }

/* ---------- AGENDA a lista ---------- */
body.coach-m .cm-agnav{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
body.coach-m .cm-agnav b{ flex:1; min-width:0; text-align:center; font-size:15px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-ib{ width:44px; height:44px; border-radius:13px; display:grid; place-items:center; background:var(--surface-2); border:1px solid var(--line); color:var(--txt); flex:none; }
body.coach-m .cm-ib .ic{ width:19px; height:19px; }
body.coach-m .cm-today{ height:44px; padding:0 12px; border-radius:13px; background:var(--red-soft); color:var(--red); font-size:13.5px; font-weight:900; flex:none; }
body.coach-m .cm-week{ display:flex; gap:5px; margin-bottom:6px; }
body.coach-m .cm-week button{ flex:1; min-width:0; height:62px; border-radius:15px; background:var(--surface); border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--txt); transition:transform .14s, background .2s; }
body.coach-m .cm-week button span{ font-size:10.5px; font-weight:900; color:var(--txt-3); text-transform:uppercase; }
body.coach-m .cm-week button b{ font-size:17px; font-weight:900; }
body.coach-m .cm-week button i{ width:5px; height:5px; border-radius:50%; background:var(--red); opacity:0; }
body.coach-m .cm-week button i.y{ opacity:1; }
body.coach-m .cm-week button.on{ background:var(--grad-flat); border-color:transparent; box-shadow:var(--shadow-red); }
body.coach-m .cm-week button.on span{ color:rgba(255,255,255,.85); } body.coach-m .cm-week button.on i{ background:#fff; }
body.coach-m .cm-week button.today:not(.on){ border-color:var(--red); }
body.coach-m .cm-week button:active{ transform:scale(.94); }
body.coach-m .cm-now{ display:flex; align-items:center; gap:8px; margin:2px 2px 10px; color:var(--red); font-size:12px; font-weight:900; }
body.coach-m .cm-now::before{ content:''; width:9px; height:9px; border-radius:50%; background:var(--red); box-shadow:0 0 10px var(--red); flex:none; }
body.coach-m .cm-now::after{ content:''; flex:1; height:2px; background:var(--red); border-radius:1px; opacity:.6; }
body.coach-m .cm-ev{ --k:var(--red); }
body.coach-m .cm-ev.k-call{ --k:var(--red); } body.coach-m .cm-ev.k-checkin{ --k:#16A34A; } body.coach-m .cm-ev.k-seduta{ --k:#2563EB; }
body.coach-m .cm-ev.k-promemoria{ --k:#64748B; } body.coach-m .cm-ev.k-scadenza{ --k:#D97706; }
body.coach-m .cm-ev-t{ width:50px; flex:none; font-size:14px; font-weight:900; text-align:right; line-height:1.2; }
body.coach-m .cm-ev-t small{ display:block; font-size:11px; color:var(--txt-3); font-weight:800; }
body.coach-m .cm-ev-bar{ width:4px; align-self:stretch; min-height:36px; border-radius:3px; background:var(--k); flex:none; }
body.coach-m .cm-ev.past > *{ opacity:.5; }
body.coach-m .cm-evd{ display:flex; gap:12px; align-items:stretch; padding:4px 2px 6px; --k:var(--red); }
body.coach-m .cm-evd.k-checkin{ --k:#16A34A; } body.coach-m .cm-evd.k-seduta{ --k:#2563EB; } body.coach-m .cm-evd.k-promemoria{ --k:#64748B; } body.coach-m .cm-evd.k-scadenza{ --k:#D97706; }
body.coach-m .cm-evd b{ display:block; font-size:16px; font-weight:900; }
body.coach-m .cm-evd span{ font-size:13px; font-weight:700; color:var(--txt-2); }

/* ---------- ALTRO: tre blocchi diversi fra loro ---------- */
body.coach-m .cm-blk{ margin:6px 0 22px; }
/* Strumenti: titolo grande + riquadri */
body.coach-m .cm-blk-t{ position:relative; margin:4px 2px 14px; font-size:28px; font-weight:900; letter-spacing:-1px; line-height:1.05; }
body.coach-m .cm-blk-t::after{ content:''; display:block; width:44px; height:4px; border-radius:3px; background:var(--grad-flat); margin-top:8px; box-shadow:0 0 14px var(--red-glow); }
body.coach-m .cm-tools{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
body.coach-m .cm-tool{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:3px; text-align:left; padding:13px; min-height:116px; border-radius:18px; background:var(--surface); border:1px solid var(--line); color:var(--txt); overflow:hidden; transition:transform .14s, border-color .2s; min-width:0; }
body.coach-m .cm-tool:active{ transform:scale(.97); }
body.coach-m .cm-tool-ic{ position:relative; width:40px; height:40px; border-radius:13px; display:grid; place-items:center; background:var(--red-soft); color:var(--red); margin-bottom:auto; }
body.coach-m .cm-tool-ic .ic{ width:20px; height:20px; }
body.coach-m .cm-tool-ic i{ position:absolute; top:-6px; right:-8px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:var(--red); color:#fff; font-size:10.5px; font-weight:900; font-style:normal; display:grid; place-items:center; box-shadow:0 0 0 2px var(--surface); }
body.coach-m .cm-tool b{ font-size:15px; font-weight:900; letter-spacing:-.2px; margin-top:10px; }
body.coach-m .cm-tool-s{ font-size:12px; font-weight:700; color:var(--txt-3); line-height:1.3; }
body.coach-m .cm-tool em{ position:absolute; top:12px; right:10px; font-style:normal; font-size:9.5px; font-weight:900; letter-spacing:.5px; text-transform:uppercase; color:var(--txt-2); background:var(--surface-3); padding:3px 7px; border-radius:6px; max-width:60%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-tool.soon{ opacity:.6; }
/* riquadro largo («Usa Hypervex dal computer»): icona a sinistra, testo a destra */
body.coach-m .cm-tool.wide{ grid-column:1 / -1; display:grid; grid-template-columns:40px 1fr; grid-template-rows:auto auto; column-gap:12px; row-gap:2px; align-items:center; min-height:72px; }
body.coach-m .cm-tool.wide .cm-tool-ic{ grid-row:1 / 3; margin:0; }
body.coach-m .cm-tool.wide b{ margin:0; align-self:end; }
body.coach-m .cm-tool.wide .cm-tool-s{ align-self:start; }
body.coach-m .cm-tool.hl{ border-color:rgba(255,255,255,.18); background:linear-gradient(120deg, var(--red-soft), var(--surface) 62%); }
body.coach-m .cm-tool.hl::after{ content:''; position:absolute; top:0; bottom:0; left:-45%; width:30%; background:linear-gradient(100deg, transparent, rgba(255,255,255,.09), transparent); animation:cmShine 3.6s 1.2s ease-in-out infinite; pointer-events:none; }
body.coach-m .cm-wide-row{ margin-bottom:0; }
/* Account: un'unica card con la tua faccina in testa */
body.coach-m .cm-blk-acc{ background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:14px 14px 4px; box-shadow:var(--shadow); }
body.coach-m .cm-blk-h{ display:flex; align-items:center; gap:11px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); }
body.coach-m .cm-blk-h > div{ flex:1; min-width:0; }
body.coach-m .cm-blk-h > div > span{ display:block; font-size:12.5px; font-weight:700; color:var(--txt-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-blk-t2{ margin:0; font-size:20px; font-weight:900; letter-spacing:-.4px; }
body.coach-m .cm-code{ display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 11px; border-radius:13px; background:var(--red-soft); border:1px solid var(--red); color:var(--red); font-size:13px; font-weight:900; letter-spacing:1.3px; flex:none; }
body.coach-m .cm-code .ic{ width:14px; height:14px; }
body.coach-m .cm-blk-list .cm-row{ background:transparent; border:0; border-bottom:1px solid var(--line-soft); border-radius:0; margin:0; padding:8px 2px; min-height:60px; }
body.coach-m .cm-blk-list .cm-row:last-child{ border-bottom:0; }
/* Aiuto: piccolo e sobrio */
body.coach-m .cm-blk-help{ padding:0 2px; }
body.coach-m .cm-blk-h3{ display:flex; align-items:center; gap:8px; margin:0 2px 6px; color:var(--txt-3); }
body.coach-m .cm-blk-h3 .ic{ width:18px; height:18px; }
body.coach-m .cm-blk-t3{ margin:0; font-size:13px; font-weight:900; letter-spacing:1px; text-transform:uppercase; color:var(--txt-3); }
body.coach-m .cm-blk-list.compact{ border:1px solid var(--line); border-radius:18px; padding:0 12px; background:var(--bg-2); }
body.coach-m .cm-blk-list.compact .cm-ric{ width:34px; height:34px; border-radius:11px; background:var(--surface-2); color:var(--txt-2); }
body.coach-m .cm-blk-list.compact .cm-rt > b{ font-size:14.5px; font-weight:800; }

/* ---------- IMPOSTAZIONI: stato online con i pallini colorati ---------- */
body.coach-m .cm-pres-row{ display:flex; align-items:center; gap:12px; width:100%; min-height:58px; padding:8px 4px; border-bottom:1px solid var(--line-soft); text-align:left; color:var(--txt); transition:background .15s; }
body.coach-m .cm-pres-row:last-child{ border-bottom:0; }
body.coach-m .cm-pres-row .cds-pres-dot{ width:16px; height:16px; margin:0 6px 0 4px; }
body.coach-m .cm-pres-row .cds-pres-dot[data-s="dnd"]::after{ left:3.5px; right:3.5px; height:3px; margin-top:-1.5px; background:var(--surface); }
body.coach-m .cm-pres-row .cds-pres-dot[data-s="offline"]{ box-shadow:inset 0 0 0 3.2px #80848e; }
body.coach-m .cm-pres-row .cm-rt > span{ white-space:normal; }
body.coach-m .cm-pres-row.on .cm-rt > b{ color:#fff; }
body.coach-m .cm-ck{ width:20px; height:20px; color:var(--red); flex:none; }
body.coach-m .sheet .cm-pres-row .cds-pres-dot[data-s="dnd"]::after{ background:var(--bg-2); }
/* Impostazioni: i 4 stati in griglia 2×2 (pillole alte 50 px) */
body.coach-m .cm-pres-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; margin:12px 0 0; }
body.coach-m .cm-pres-grid .cm-pres-row, body.coach-m .cm-pres-grid .cm-pres-row:last-child{ min-height:50px; padding:0 10px; gap:9px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); color:var(--txt-2); font-size:13.5px; transition:background .2s, border-color .2s, color .2s, transform .14s; }
body.coach-m .cm-pres-grid .cm-pres-row:active{ transform:scale(.96); }
body.coach-m .cm-pres-grid .cm-pres-row b{ font-weight:800; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-pres-grid .cm-pres-row .cds-pres-dot{ width:14px; height:14px; margin:0 0 0 2px; }
body.coach-m .cm-pres-grid .cm-pres-row .cds-pres-dot[data-s="dnd"]::after{ left:3px; right:3px; height:2.6px; margin-top:-1.3px; background:#fff; }
body.coach-m .cm-pres-grid .cm-pres-row .cds-pres-dot[data-s="offline"]{ box-shadow:inset 0 0 0 2.8px #80848e; }
body.coach-m .cm-pres-grid .cm-pres-row.on{ background:var(--red-soft); border-color:var(--red); color:#fff; }
body.coach-m .cm-pres-now{ margin:10px 2px 0; }
body.coach-m .cm-pres-now b{ color:var(--txt); }
body.coach-m .cm-set .cst-wrap{ padding:0 var(--pad) 10px; }

/* ---------- «Si fa dal computer» / «Usa Hypervex dal computer» ---------- */
body.coach-m .cm-pc-hero{ text-align:center; padding:18px 6px 14px; }
body.coach-m .cm-pc-scene{ position:relative; width:240px; height:130px; margin:0 auto 18px; }
body.coach-m .cm-pc-scene .mon{ position:absolute; left:0; top:6px; width:170px; height:108px; border-radius:12px; border:3px solid var(--txt-2); background:linear-gradient(160deg, var(--surface-2), var(--bg-2)); box-shadow:0 20px 40px -20px var(--red-glow); }
body.coach-m .cm-pc-scene .mon::after{ content:''; position:absolute; left:50%; bottom:-16px; width:46px; height:10px; margin-left:-23px; border-radius:0 0 6px 6px; background:var(--txt-3); }
body.coach-m .cm-pc-scene .mon i{ position:absolute; left:12px; right:12px; height:7px; border-radius:4px; background:var(--surface-3); }
body.coach-m .cm-pc-scene .mon i:nth-child(1){ top:14px; width:56%; background:var(--red); animation:cmGrow 2.4s ease-in-out infinite alternate; }
body.coach-m .cm-pc-scene .mon i:nth-child(2){ top:30px; } body.coach-m .cm-pc-scene .mon i:nth-child(3){ top:46px; width:70%; } body.coach-m .cm-pc-scene .mon i:nth-child(4){ top:62px; width:40%; }
body.coach-m .cm-pc-scene .tel{ position:absolute; right:6px; top:30px; width:56px; height:96px; border-radius:13px; border:3px solid var(--red); background:var(--bg-2); animation:cmFloat 3s ease-in-out infinite; }
body.coach-m .cm-pc-scene .tel::before{ content:''; position:absolute; top:6px; left:50%; width:16px; height:4px; margin-left:-8px; border-radius:2px; background:var(--red); }
body.coach-m .cm-pc-hero h1{ margin:0; font-size:25px; font-weight:900; letter-spacing:-.8px; line-height:1.1; }
body.coach-m .cm-pc-hero p{ color:var(--txt-2); font-size:14.5px; line-height:1.5; margin:8px auto 0; max-width:320px; font-weight:700; }
body.coach-m .cm-adv{ padding:4px 14px; }
body.coach-m .cm-adv-r{ display:flex; gap:12px; align-items:center; padding:12px 2px; border-bottom:1px solid var(--line-soft); font-size:14.5px; font-weight:700; line-height:1.35; }
body.coach-m .cm-adv-r:last-child{ border-bottom:0; }
body.coach-m .cm-url{ display:flex; align-items:center; justify-content:center; gap:9px; margin:14px 0 4px; font-size:15px; font-weight:900; color:var(--txt-2); }
body.coach-m .cm-url .ic{ width:17px; height:17px; color:var(--red); }

/* ---------- FETTA 2: numeri grandi, grafici, Progressi, Foto check, Peso, Progressioni, Notifiche ---------- */
body.coach-m .cm-big{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin:4px 2px 6px; }
body.coach-m .cm-big b{ font-size:36px; font-weight:900; letter-spacing:-1.4px; line-height:1; }
body.coach-m .cm-big span{ font-size:13.5px; font-weight:800; color:var(--txt-3); }
body.coach-m .cm-big em{ margin-left:auto; font-style:normal; font-size:12.5px; font-weight:900; padding:5px 10px; border-radius:999px; background:var(--surface-2); color:var(--txt-2); white-space:nowrap; }
body.coach-m .cm-big em.ok{ background:rgba(47,208,122,.14); color:var(--ok); }
body.coach-m .cm-big em.warn{ background:rgba(240,178,50,.14); color:var(--warn); }
body.coach-m .cm-chart{ margin:6px -4px 10px; }
body.coach-m .cm-chart .trend-wrap{ margin:0; }
body.coach-m .cm-chart .trend-svg{ display:block; width:100%; height:auto; max-height:210px; }
body.coach-m .cm-mchips{ margin-top:-2px; padding-top:0; }
body.coach-m .cm-card .cm-chips{ margin-left:-14px; margin-right:-14px; padding-left:14px; padding-right:14px; }
body.coach-m .cm-per{ margin-bottom:2px; }
body.coach-m .cm-per .cm-chip{ min-width:60px; justify-content:center; }
body.coach-m .cm-2btn{ display:flex; gap:8px; margin:6px 0 4px; }
body.coach-m .cm-2btn .btn{ flex:1; min-width:0; min-height:48px; height:auto; padding:0 12px; }
body.coach-m .cm-danger{ color:var(--red) !important; }
body.coach-m .cm-scr > .wrap > .btn{ margin-bottom:10px; }
body.coach-m .cm-kvs{ margin:0 0 12px; }
body.coach-m .cm-kv{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 2px; border-bottom:1px solid var(--line-soft); font-size:15px; font-weight:700; color:var(--txt-2); }
body.coach-m .cm-kv b{ color:var(--txt); font-weight:900; white-space:nowrap; }
body.coach-m .cm-kv:last-child{ border-bottom:0; }
/* confronta due misurazioni */
body.coach-m .cm-cmp-pick{ display:flex; gap:10px; margin:0 0 10px; }
body.coach-m .cm-cmp-pick label{ flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; font-size:11.5px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; color:var(--txt-3); }
body.coach-m .cm-sel{ width:100%; height:48px; font-size:16px; font-weight:800; padding:0 10px; }
body.coach-m .cm-cmp-r{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr); align-items:center; gap:6px; min-height:44px; padding:6px 2px; border-bottom:1px solid var(--line-soft); font-size:14px; }
body.coach-m .cm-cmp-r > span{ font-weight:800; color:var(--txt-2); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.coach-m .cm-cmp-r > span small{ margin-left:4px; font-size:11px; color:var(--txt-3); }
body.coach-m .cm-cmp-r > b{ text-align:right; font-weight:900; white-space:nowrap; }
body.coach-m .cm-cmp-r > em{ text-align:right; font-style:normal; font-weight:900; color:var(--txt-3); white-space:nowrap; }
body.coach-m .cm-cmp-r > em.ok{ color:var(--ok); } body.coach-m .cm-cmp-r > em.warn{ color:var(--warn); }
body.coach-m .cm-cmp-r.ch{ background:linear-gradient(90deg, var(--red-soft), transparent 70%); border-radius:10px; }
body.coach-m .cm-cmp-h{ min-height:32px; font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; }
body.coach-m .cm-cmp-h > *{ color:var(--txt-3) !important; font-weight:900 !important; }
/* foto check: riquadri 3:4 (padding, niente aspect-ratio per gli iPhone vecchi) */
body.coach-m .cm-pgrid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:2px 0 10px; }
body.coach-m .cm-ptile{ position:relative; display:block; width:100%; height:0; padding:0 0 133% 0; border-radius:16px; overflow:hidden; background:var(--surface-2); border:1px solid var(--line); color:var(--txt-2); text-align:center; transition:transform .14s; }
body.coach-m .cm-ptile:active{ transform:scale(.97); }
body.coach-m .cm-ptile img{ position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }
body.coach-m .cm-ptile-ph{ position:absolute; top:22%; left:0; right:0; display:flex; justify-content:center; color:var(--surface-3); }
body.coach-m .cm-ptile-ph svg{ width:46%; height:auto; max-height:110px; }
body.coach-m .cm-ptile-up{ position:absolute; left:50%; bottom:46px; transform:translateX(-50%); display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px; border-radius:11px; background:var(--red-soft); color:var(--red); font-size:13px; font-weight:900; white-space:nowrap; }
body.coach-m .cm-ptile-up .ic{ width:15px; height:15px; }
body.coach-m .cm-ptile-l{ position:absolute; left:8px; bottom:8px; max-width:calc(100% - 16px); padding:4px 9px; border-radius:9px; background:rgba(0,0,0,.62); color:#fff; font-size:12px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-ptile.busy .spin{ position:absolute; top:50%; left:50%; margin:-14px 0 0 -14px; }
body.coach-m .cm-pview{ display:block; width:100%; max-height:62vh; object-fit:contain; border-radius:16px; background:#000; margin:0 0 12px; }
/* peso: riepilogo in cima */
body.coach-m .cm-wsum .cm-note{ margin-bottom:4px; }
body.coach-m .cm-wsum .cm-note b{ color:var(--txt); }
/* progressioni */
body.coach-m .cm-pick{ display:flex; align-items:center; gap:12px; width:100%; min-height:60px; padding:8px 12px; border-radius:var(--r-m); background:var(--surface); border:1px solid var(--line); margin-bottom:10px; text-align:left; color:var(--txt); }
body.coach-m .cm-pick .cm-rt small{ font-size:11.5px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; color:var(--txt-3); }
body.coach-m .cm-seg3 button{ font-size:13px; padding:0 4px; }
body.coach-m .cm-stats3{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin:0 0 12px; }
body.coach-m .cm-stats3 > div{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px 8px; text-align:center; min-width:0; }
body.coach-m .cm-stats3 b{ display:block; font-size:20px; font-weight:900; letter-spacing:-.5px; white-space:nowrap; }
body.coach-m .cm-stats3 b.up{ color:var(--ok); } body.coach-m .cm-stats3 b.down{ color:var(--warn); }
body.coach-m .cm-stats3 span{ font-size:11px; font-weight:900; letter-spacing:.5px; text-transform:uppercase; color:var(--txt-3); }
/* notifiche ricevute: il testo va a capo */
body.coach-m .cm-nrow{ align-items:flex-start; }
body.coach-m .cm-nrow .cm-ric{ margin-top:2px; }
body.coach-m .cm-nrow .cm-chev{ align-self:center; }
body.coach-m .cm-nrow .cm-rt > b{ white-space:normal; font-size:14.5px; line-height:1.35; font-weight:800; }
body.coach-m .cm-nrow:not(.unread) .cm-rt > b{ color:var(--txt-2); }
/* la «i» delle sezioni: cerchio di 30 px dentro un tasto da 44 */
body.coach-m .hx-info-btn{ width:44px; height:44px; border-color:transparent !important; background:transparent !important; box-shadow:none !important; position:relative; margin:-6px; }
body.coach-m .nm-card .hx-info-btn{ position:absolute; margin:0; }
body.coach-m .hx-info-btn::before{ content:""; position:absolute; top:50%; left:50%; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%; border:2px solid var(--c-accent, var(--red)); box-sizing:border-box; pointer-events:none; }
body.coach-m .hx-info-btn.sm::before{ width:30px; height:30px; margin:-15px 0 0 -15px; }
body.coach-m .hx-info-btn.xs::before{ width:26px; height:26px; margin:-13px 0 0 -13px; border-width:1.7px; }
/* chat: la freccetta del menu del messaggio si tocca su 44 px (anche il tocco lungo apre il menu) */
body.coach-m .chatpage .msg-menu-btn{ width:44px; height:44px; top:-6px; right:-6px; border-radius:12px; }

/* ---------- FETTA 3: Impostazioni a elenco, Bacheca, Pagamenti, e tutto quello che resta toccabile col pollice ---------- */
/* campi: 16 px ovunque sul telefono del coach (l'iPhone non ingrandisce la pagina toccandoli) */
body.coach-m input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), body.coach-m select, body.coach-m textarea{ font-size:16px; }
body.coach-m .btn.sm{ height:44px; }
body.coach-m .sheet .ghost-btn, body.coach-m .modal .ghost-btn{ width:44px !important; height:44px !important; min-width:44px; }
/* Impostazioni: righe-sezione, la sezione aperta sotto la sua riga */
body.coach-m .cm-set-row .cm-chev{ transition:transform .25s cubic-bezier(.2,.8,.2,1); }
body.coach-m .cm-set-it.open > .cm-set-row{ border-color:var(--red); background:linear-gradient(160deg, var(--red-soft), var(--surface) 75%); }
body.coach-m .cm-set-it.open > .cm-set-row .cm-chev{ transform:rotate(180deg); color:var(--red); }
body.coach-m .cm-set .cm-set-pane{ padding:2px 0 10px; }
body.coach-m .cm-set-pane .cst{ display:block; }
body.coach-m .cm-set-pane .cst-main{ padding:0; min-width:0; }
body.coach-m .cm-set-pane .cst-title{ display:none; }
body.coach-m .cm-set-pane .cst-card{ border-radius:var(--r-l); }
body.coach-m .cm-set-pane .cst-grid2, body.coach-m .cm-set-pane .cst-grid3{ display:block; }
body.coach-m .cm-set-pane .cst-field{ display:block; margin-bottom:10px; }
body.coach-m .cst-input{ min-height:48px; font-size:16px; }
body.coach-m .cst-btn{ min-height:48px; }
body.coach-m .cst-tog{ min-height:56px; }
body.coach-m .cst-eye, body.coach-m .cst-collab-del, body.coach-m .cst-ava-edit{ width:44px; height:44px; min-width:44px; }
body.coach-m .cst-code{ min-height:48px; }
body.coach-m .cst-mi{ min-height:44px; }
/* Bacheca */
body.coach-m .cm-bs-intro{ display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border-radius:16px; background:var(--red-soft); margin:0 0 12px; font-size:14px; line-height:1.45; font-weight:600; }
body.coach-m .cm-bs-intro > .ic{ color:var(--red); width:22px; height:22px; flex:none; margin-top:1px; }
body.coach-m .cm-bs-st{ font-size:11px; font-weight:900; letter-spacing:.4px; text-transform:uppercase; padding:4px 9px; border-radius:8px; background:var(--surface-2); color:var(--txt-3); }
body.coach-m .cm-bs-st.ok{ background:rgba(47,208,122,.14); color:var(--ok); }
body.coach-m .cm-bs-pv{ display:flex; gap:12px; align-items:center; margin:4px 0 10px; }
body.coach-m .cm-bs-img{ width:72px; height:72px; border-radius:14px; background:var(--surface-2) center/cover no-repeat; flex:none; display:grid; place-items:center; color:var(--txt-3); }
body.coach-m .cm-bs-open{ margin-bottom:12px; }
body.coach-m .bs-ed .btn.sm{ height:44px; }
body.coach-m .bs-toggle{ min-height:48px; font-size:15px; }
body.coach-m .bs-row2{ display:block; }
body.coach-m .bs-ed-acts .btn{ min-height:48px; }
/* Pagamenti */
body.coach-m .cm-kpi{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:0 0 12px; }
body.coach-m .cm-kpi > div{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:14px 12px; min-width:0; }
body.coach-m .cm-kpi b{ display:block; font-size:24px; font-weight:900; letter-spacing:-.6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-m .cm-kpi b.ok{ color:var(--ok); } body.coach-m .cm-kpi b.warn{ color:var(--warn); } body.coach-m .cm-kpi b.red{ color:var(--red); }
body.coach-m .cm-kpi span{ display:block; margin-top:4px; font-size:11.5px; font-weight:900; letter-spacing:.4px; text-transform:uppercase; color:var(--txt-3); line-height:1.25; }
body.coach-m .cm-bars{ display:flex; gap:8px; align-items:flex-end; height:150px; padding:8px 2px 0; }
body.coach-m .cm-bars > div{ flex:1; min-width:0; height:100%; display:flex; flex-direction:column; align-items:center; gap:4px; }
body.coach-m .cm-bars em{ font-style:normal; font-size:10.5px; font-weight:900; color:var(--txt-2); min-height:14px; white-space:nowrap; }
body.coach-m .cm-bars i{ flex:1; width:100%; max-width:42px; border-radius:10px; background:var(--surface-2); position:relative; overflow:hidden; display:block; }
body.coach-m .cm-bars s{ position:absolute; left:0; right:0; bottom:0; background:var(--grad-flat); border-radius:10px; text-decoration:none; }
body.coach-m .cm-bars span{ font-size:11.5px; font-weight:800; color:var(--txt-3); text-transform:capitalize; }
body.coach-m .cm-payrow .cm-rt > span{ white-space:normal; }
body.coach-m .cm-paychip{ flex:none; font-size:11.5px; font-weight:900; padding:6px 10px; border-radius:10px; white-space:nowrap; background:var(--surface-2); color:var(--txt-3); }
body.coach-m .cm-paychip.ok{ background:rgba(47,208,122,.14); color:var(--ok); }
body.coach-m .cm-paychip.due{ background:rgba(240,178,50,.14); color:var(--warn); }
body.coach-m .cm-paychip.late{ background:var(--red-soft); color:var(--red); }
/* finestre di sempre (pagamenti, tema, misure…): bottoni pieni e righe alte */
body.coach-m .sheet .btn{ min-height:48px; }
body.coach-m .pay-hrow{ min-height:52px; }
/* le ultime cose piccole: pallini del colore, social del profilo, «Esci» del questionario, «Salta il tutorial» */
body.coach-m .acc-b{ width:44px; height:44px; }
body.coach-m .coach-soc{ min-height:44px; }
body.coach-m .cw-exit{ min-height:44px; min-width:44px; padding:0 12px; }
body.coach-m .spot-skip-mini{ min-height:44px; padding:0 16px; }
body.coach-m .spot-next, body.coach-m .spot-back{ min-height:48px; }
body.coach-m .cst-seg button{ min-height:48px; }
/* «Visibile ai clienti» della Bacheca: tutta la riga (48 px) è la casella; il segno di spunta è disegnato qui */
body.coach-m .bs-toggle{ position:relative; padding-left:40px; }
body.coach-m .bs-toggle input{ position:absolute; top:0; left:0; width:100%; height:100%; margin:0; opacity:0; z-index:1; cursor:pointer; }
body.coach-m .bs-toggle span::before{ content:""; position:absolute; left:2px; top:50%; width:26px; height:26px; margin-top:-13px; border-radius:8px; border:2px solid var(--line); background:var(--surface-2); box-sizing:border-box; }
body.coach-m .bs-toggle input:checked + span::before{ background:var(--red); border-color:var(--red); }
body.coach-m .bs-toggle input:checked + span::after{ content:""; position:absolute; left:11px; top:50%; width:7px; height:13px; margin-top:-9px; border:solid #fff; border-width:0 2.5px 2.5px 0; transform:rotate(45deg); }

/* ---------- vista a schermo largo (tablet): più colonne ---------- */
body.coach-m.wide .cm-att{ grid-template-columns:repeat(4, 1fr); }
body.coach-m.wide .cm-glance{ grid-template-columns:repeat(4, 1fr); }
body.coach-m.wide .cm-tools{ grid-template-columns:repeat(3, 1fr); }

@media (prefers-reduced-motion:reduce){
  body.coach-m .cm-rv, body.coach-m .sheet .cm-row, body.coach-m .cm-tool.hl::after, body.coach-m .cm-pc-scene *, body.coach-m .cm-un, body.coach-m .cm-tab-n, body.coach-m .cm-tb-n{ animation:none !important; }
}
