/* La voce di Mira: screens/M2-Tel-Voce */
.voice-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 20px 20px; margin: 8px -16px -12px; border-top: 1px solid var(--line); background: var(--surface); text-align: center; }
.voice-status { font-size: 14px; color: var(--fg2); margin: 0; min-height: 20px; }
.voice-bar .hint { font-size: 11.5px; margin: 0; }
.voice-button { width: 72px; height: 72px; border-radius: 36px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.voice-button .ic { width: 28px; height: 28px; }
.voice-setting label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg2); }

.voice-waves { display: flex; align-items: center; gap: 4px; height: 40px; visibility: hidden; }
.voice-waves span { width: 4px; height: 10px; border-radius: 2px; background: var(--fg1); }
[data-state="listening"] .voice-waves, [data-state="speaking"] .voice-waves { visibility: visible; }
[data-state="listening"] .voice-waves span, [data-state="speaking"] .voice-waves span { animation: voice-wave 0.9s ease-in-out infinite alternate; }
.voice-waves span:nth-child(2n) { animation-delay: -0.3s; }
.voice-waves span:nth-child(3n) { animation-delay: -0.6s; }
@keyframes voice-wave { from { height: 8px; } to { height: 36px; } }

[data-state="listening"] .voice-button, [data-state="listening"] .voice-mic { background: var(--cor); color: #fff; }
[data-state="busy"] .voice-button, [data-state="busy"] .voice-mic { opacity: 0.6; }
[data-state="error"] .voice-status { color: var(--red); }
.voice-mic { touch-action: none; user-select: none; -webkit-user-select: none; }
.mp-input .voice-status { font-size: 12px; white-space: nowrap; }

.spoken-figure { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.spoken-figure .big { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.speech .btn { margin-top: 6px; }

/* Nell'app la barra delle schede galleggia sopra la pagina: la voce resta sopra di lei. */
body.native .mira-foot { padding-bottom: 96px; }
body.native .voice-bar { margin-bottom: -96px; padding-bottom: 104px; }
