/* ---------- mini-lettore della musica sul PC ---------- */
.lt-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 16px; }
.lt-riga { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lt-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.lt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lt-txt b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-txt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 12px 0 4px; }
.lt-riga .lt-ctrl { margin: 0; gap: 6px; flex: none; }
.lt-tondo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); }
.lt-tondo svg { width: 22px; height: 22px; }
.lt-play { width: 60px; height: 60px; background: var(--accent); color: var(--accent-ink); }
.lt-riga .lt-tondo { width: 40px; height: 40px; } .lt-riga .lt-play { width: 46px; height: 46px; }
.lt-vol { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lt-vol input { flex: 1; accent-color: var(--accent); min-width: 0; }
.lt-vol output { width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.lt-mini { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); font-size: 18px; flex: none; }
.lt-b { padding: 9px 14px; border-radius: 12px; background: var(--panel-2); font-weight: 600; flex: none; }
.lt-apri { display: block; width: 100%; margin-top: 12px; padding: 13px; background: var(--accent); color: var(--accent-ink); }
.lt-usc { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.lt-usc select { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.lt-nota { margin-top: 10px; font-size: 13px; color: var(--muted); }
.lt-aiuto { color: var(--muted); font-size: 14px; }

/* ---------- scelta della seduta ---------- */
.pl .pl-ripresa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.pl .pl-ripresa div { flex: 1; display: flex; flex-direction: column; } .pl .pl-ripresa small { color: var(--muted); }
.pl-b { padding: 11px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.pl-b-big { display: block; width: 100%; padding: 15px; font-size: 17px; margin-top: 12px; }
.pl-vuota { text-align: center; padding: 28px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pl-vuota p { color: var(--muted); max-width: 420px; margin: 8px auto 6px; }
.pl-emo { font-size: 44px; margin-bottom: 6px; }
.pl-tit { font-size: 18px; font-weight: 700; margin: 6px 2px 10px; } .pl-tit small { font-weight: 400; color: var(--muted); font-size: 13px; }
.pl-nota { color: var(--muted); font-size: 14px; margin: -4px 2px 12px; }
.pl-sedute { display: grid; gap: 14px; }
.pl-sed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.pl-sed-h { display: flex; gap: 12px; align-items: center; }
.pl-sed-h div { display: flex; flex-direction: column; min-width: 0; } .pl-sed-h b { font-size: 17px; } .pl-sed-h small { color: var(--muted); font-size: 13px; }
.pl-let { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--text); color: var(--bg); }
.pl-sed ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.pl-sed li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.pl-sed li em { font-style: normal; color: var(--muted); white-space: nowrap; }
.pl-link { display: block; margin: 16px auto 0; padding: 10px 14px; color: var(--accent); font-weight: 600; }
.pl-opz { margin-top: 20px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.pl-opz label { display: flex; gap: 10px; align-items: center; } .pl-opz input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- modalità guidata a schermo intero ---------- */
body.pal-on #sidebar, body.pal-on #tabbar { display: none !important; }
body.pal-on .view { padding: 0 !important; }
.pg { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg);
  padding: calc(10px + var(--sat)) 16px calc(14px + var(--sab)); user-select: none; -webkit-user-select: none; overflow: hidden; }
.pg[data-fase="recupero"] { background: color-mix(in srgb, #1f9d63 12%, var(--bg)); }
.pg-top { display: flex; align-items: center; gap: 10px; }
.pg-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); font-size: 18px; font-weight: 700; flex: none; }
.pg-ic.on { background: var(--accent); color: var(--accent-ink); }
.pg-tot { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0; }
.pg-tot span { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-tot small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pg-wake { font-size: 18px; opacity: .25; width: 24px; text-align: center; } .pg-wake.on { opacity: .9; color: #f5a524; }
.pg-musica { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.pg-musica .lt-ic { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
.pg-musica .lt-vol { margin-top: 6px; } .pg-musica .lt-vol input { height: 22px; }
.pg-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; overflow-y: auto; padding: 8px 0; }
.pg-lab { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.pg-nome { font-size: clamp(28px, 8vw, 44px); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.pg-serie { font-size: 22px; color: var(--muted); } .pg-serie b { color: var(--text); font-size: 30px; }
.pg-dots { display: flex; gap: 8px; } .pg-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.pg-dots i.ok { background: #1f9d63; } .pg-dots i.cur { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.pg-vals { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 8px 0; width: 100%; }
.pg-val { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px; flex: 1; max-width: 260px; min-width: 190px; }
.pg-val > div { flex: 1; display: flex; flex-direction: column; line-height: 1; }
.pg-val b { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; } .pg-val-t b { font-size: 26px; }
.pg-val small { color: var(--muted); font-size: 13px; margin-top: 6px; }
.pg-val button { width: 56px; height: 72px; border-radius: 14px; background: var(--panel-2); font-size: 30px; font-weight: 700; flex: none; }
.pg-note { color: var(--muted); font-size: 15px; max-width: 460px; }
.pg-ult { font-size: 13px; color: var(--muted); background: var(--panel-2); border-radius: 10px; padding: 5px 10px; }
.pg-bot { display: flex; flex-direction: column; gap: 10px; }
.pg-go { width: 100%; min-height: 104px; border-radius: 26px; background: var(--accent); color: var(--accent-ink); font-size: 30px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.pg-go:active { transform: scale(.985); } .pg-go:disabled { opacity: .7; }
.pg-go-2 { background: var(--text); color: var(--bg); box-shadow: none; min-height: 84px; font-size: 24px; }
.pg-sec { display: flex; gap: 10px; } .pg-sec button { flex: 1; min-height: 54px; border-radius: 16px; background: var(--panel-2); font-weight: 650; font-size: 16px; }
.pg-recupero .pg-lab { color: #1f9d63; font-size: 18px; }
.pg-big { font-size: clamp(96px, 30vw, 170px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pg-bar { width: 100%; max-width: 460px; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pg-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: #1f9d63; transition: width .25s linear; }
.pg-plus { display: flex; gap: 10px; } .pg-chip { padding: 10px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 650; }
.pg-next { margin-top: 10px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; min-width: 70%; }
.pg-next small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.pg-next b { font-size: 24px; } .pg-next span { color: var(--muted); }
.pg-inpausa { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(4px); }
.pg-inpausa b { font-size: 40px; } .pg-inpausa span { color: var(--muted); }
.pg-fine { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.pg-stat { display: flex; gap: 12px; width: 100%; } .pg-stat div { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; }
.pg-stat b { font-size: 34px; font-weight: 800; line-height: 1.1; } .pg-stat small { color: var(--muted); }
.pg-ries { list-style: none; margin: 0; padding: 0; width: 100%; font-size: 14px; }
.pg-ries li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.pg-ries span { color: var(--muted); text-align: right; }
.pg-lab2 { font-weight: 700; margin-top: 4px; }
.pg-sens { display: flex; gap: 8px; width: 100%; } .pg-sens button { flex: 1; padding: 8px 0; border-radius: 16px; background: var(--panel); border: 2px solid var(--line); font-size: 28px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pg-sens button small { font-size: 12px; color: var(--muted); } .pg-sens button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.pg-fine textarea { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; resize: none; }
.pg-err { color: var(--danger); font-size: 14px; text-align: center; }
.pg-sheet { z-index: 60; }
@media (max-height: 700px) { .pg-go { min-height: 84px; font-size: 26px; } .pg-val b { font-size: 42px; } .pg-val button { height: 60px; } .pg-musica .lt-vol { display: none; } }

/* Casse di casa (casse.js): suona l'audio del telefono sulle casse via LEA */
.cs-go { display: block; width: 100%; margin-top: 12px; padding: 16px; border-radius: 14px; font-size: 17px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.cs-go.on { background: var(--danger); color: #fff; }
.cs-go:disabled { opacity: .6; }
.cs-zone { display: flex; gap: 8px; margin-top: 12px; }
.cs-z { flex: 1; padding: 10px; border-radius: 12px; background: var(--panel-2); font-weight: 600; border: 1px solid transparent; }
.cs-z.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cs-opz { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
