/* =========================================================
   HYPERVEX — Appuntamenti del coach: LATO ATLETA   (mig. 107, 9/11/2026)
   Card «Prossimo appuntamento» in Home, riga «annullato», schermata «I miei appuntamenti» (js/agenda-athlete.js).
   Solo colori, raggi e ombre del tema (--surface, --line, --txt, --red, --ok, --warn…): funziona con tutti i temi e gli accenti.
   Prefisso agm-. Tocchi >= 44 px, nessuno scroll orizzontale, testi lunghi a capo (overflow-wrap).
   ========================================================= */

.agm-slot:empty{ display:none; }
.agm-screen{ max-width:720px; margin-left:auto; margin-right:auto; }

/* ---------- card «Prossimo appuntamento» (Home) ---------- */
.agm-card{ padding:14px 16px 12px; border-color:rgba(255,46,62,.32); background:linear-gradient(135deg, var(--red-soft), var(--surface) 62%); }
.agm-eyebrow{ font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--txt-3); overflow-wrap:anywhere; }
.agm-when{ margin:6px 0 2px; font-size:22px; font-weight:900; letter-spacing:-.4px; line-height:1.2; }
.agm-when::first-letter{ text-transform:uppercase; }                      /* «Mer 7 ott», non «Mer 7 Ott» */
.agm-title{ font-size:16px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; }
.agm-meta{ margin-top:3px; font-size:13px; font-weight:600; color:var(--txt-2); line-height:1.4; overflow-wrap:anywhere; }
.agm-link{ color:var(--red); text-decoration:underline; text-underline-offset:2px; }
.agm-reply:empty{ display:none; }
.agm-reply{ margin-top:12px; }
.agm-acts{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.agm-acts .btn{ height:auto; min-height:48px; padding:8px 6px; font-size:14px; line-height:1.15; text-align:center; white-space:normal; }
.agm-answered{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.agm-note{ font-size:13.5px; font-weight:600; color:var(--txt); line-height:1.4; overflow-wrap:anywhere; }
.agm-change{ margin-top:10px; min-height:44px; height:auto; }
.agm-altbox .agm-ta{ width:100%; min-height:84px; padding:10px 12px; font-size:16px; line-height:1.4; resize:vertical; }   /* 16 px: l'iPhone non zooma */
.agm-altacts{ display:flex; gap:8px; margin-top:10px; }
.agm-altacts .btn{ min-height:44px; height:auto; }
.agm-err{ margin-top:8px; padding:9px 12px; border-radius:11px; background:var(--red-soft); color:var(--red); font-size:13px; font-weight:800; line-height:1.35; }
.agm-err[hidden]{ display:none; }
.agm-all{ display:flex; align-items:center; justify-content:flex-end; gap:4px; width:100%; min-height:44px; margin-top:6px; padding:0; background:none; border:0; color:var(--txt-2); font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.agm-all .ic{ width:15px; height:15px; }
.agm-all:active{ opacity:.7; }

/* ---------- chip di stato e risposta ---------- */
.agm-chip{ display:inline-flex; align-items:center; flex:none; max-width:100%; min-height:26px; padding:3px 11px; border-radius:99px; border:1px solid var(--line); background:var(--surface-2); color:var(--txt-2); font-size:12px; font-weight:800; line-height:1.2; }
.agm-chip.st-done{ color:var(--ok); border-color:rgba(47,208,122,.45); }
.agm-chip.st-cancelled{ color:var(--txt-3); text-decoration:line-through; }
.agm-chip.r-ok{ color:var(--ok); border-color:rgba(47,208,122,.45); }
.agm-chip.r-no{ color:var(--warn); border-color:rgba(255,176,32,.5); }
.agm-chip.r-alt{ color:#5AA9FF; border-color:rgba(90,169,255,.5); }

/* ---------- appuntamento annullato (Home) ---------- */
.agm-cancelled{ display:flex; align-items:center; gap:12px; padding:12px 14px; }
.agm-cx{ width:36px; height:36px; flex:none; border-radius:11px; display:grid; place-items:center; background:var(--surface-3); color:var(--txt-3); }
.agm-cx .ic{ width:18px; height:18px; }
.agm-cx-t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.agm-cx-t b{ font-size:14.5px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; text-decoration:line-through; text-decoration-color:var(--txt-3); }
.agm-cx-t span{ font-size:12.5px; font-weight:600; color:var(--txt-2); line-height:1.35; overflow-wrap:anywhere; }
.agm-cancelled .chev{ width:16px; height:16px; flex:none; color:var(--txt-3); }

/* ---------- schermata «I miei appuntamenti» ---------- */
.agm-sec{ margin:18px 4px 8px; font-size:11.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--txt-3); }
.agm-sec:first-child{ margin-top:6px; }
.agm-row{ padding:12px 14px; }
.agm-rtop{ display:flex; align-items:center; gap:12px; }
.agm-date{ width:46px; flex:none; display:flex; flex-direction:column; align-items:center; line-height:1.1; text-align:center; }
.agm-date b{ font-size:20px; font-weight:900; }
.agm-date span{ font-size:11px; font-weight:700; color:var(--txt-2); text-transform:uppercase; }
.agm-rmain{ flex:1; min-width:0; }
.agm-row .agm-title{ font-size:15px; }
.agm-row.is-cancelled .agm-title{ text-decoration:line-through; color:var(--txt-3); }
.agm-why{ margin:8px 0 0 58px; font-size:12.5px; font-weight:600; color:var(--txt-2); line-height:1.4; overflow-wrap:anywhere; }
.agm-row .agm-reply{ margin-top:12px; }
.agm-empty{ padding:34px 12px; text-align:center; color:var(--txt-3); font-size:14px; font-weight:600; line-height:1.5; }
.agm-empty b{ display:block; margin-bottom:4px; font-size:15px; color:var(--txt-2); }
@media (max-width:350px){ .agm-acts{ grid-template-columns:1fr; } .agm-when{ font-size:20px; } }
