/* Lecteur patient généré ; source et recette : docs/points-de-vue.md. */
.vmsg { display: flex; align-items: center; gap: var(--palette-espacement-cabinet-conversation-6); min-width: 240px; max-width: 320px; padding: var(--palette-espacement-cabinet-2) 0; }
.vmsg-play { width: 36px; height: 36px; min-width: 36px; min-height: 36px; flex: 0 0 36px; aspect-ratio: 1 / 1; padding: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; border-radius: var(--palette-rayon-composants-2); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s; }
.vmsg-play:hover { transform: scale(1.06); }
.vmsg-play:active { transform: scale(0.95); }
.vmsg-play svg { width: 14px; height: 14px; }
.vmsg-time { font-size: var(--palette-typographie-components-4); font-variant-numeric: tabular-nums; opacity: .8; flex-shrink: 0; min-width: 36px; text-align: right; }
.vmsg-wave { flex: 1; display: flex; align-items: center; gap: var(--palette-espacement-composants-5); cursor: pointer; height: 26px; min-width: 48px; touch-action: pan-y; }
.vmsg-wave .b { display: block; width: 2.5px; border-radius: var(--palette-rayon-consultation); transition: background-color 0.1s linear; }
.vmsg-wave .b:nth-child(1)  { height: 30%; }
.vmsg-wave .b:nth-child(2)  { height: 55%; }
.vmsg-wave .b:nth-child(3)  { height: 75%; }
.vmsg-wave .b:nth-child(4)  { height: 50%; }
.vmsg-wave .b:nth-child(5)  { height: 90%; }
.vmsg-wave .b:nth-child(6)  { height: 70%; }
.vmsg-wave .b:nth-child(7)  { height: 45%; }
.vmsg-wave .b:nth-child(8)  { height: 65%; }
.vmsg-wave .b:nth-child(9)  { height: 85%; }
.vmsg-wave .b:nth-child(10) { height: 55%; }
.vmsg-wave .b:nth-child(11) { height: 100%; }
.vmsg-wave .b:nth-child(12) { height: 60%; }
.vmsg-wave .b:nth-child(13) { height: 80%; }
.vmsg-wave .b:nth-child(14) { height: 40%; }
.vmsg-wave .b:nth-child(15) { height: 70%; }
.vmsg-wave .b:nth-child(16) { height: 95%; }
.vmsg-wave .b:nth-child(17) { height: 50%; }
.vmsg-wave .b:nth-child(18) { height: 75%; }
.vmsg-wave .b:nth-child(19) { height: 65%; }
.vmsg-wave .b:nth-child(20) { height: 85%; }
.vmsg-wave .b:nth-child(21) { height: 45%; }
.vmsg-wave .b:nth-child(22) { height: 70%; }
.vmsg-wave .b:nth-child(23) { height: 90%; }
.vmsg-wave .b:nth-child(24) { height: 55%; }
.vmsg-wave .b:nth-child(25) { height: 80%; }
.vmsg-wave .b:nth-child(26) { height: 60%; }
.vmsg-wave .b:nth-child(27) { height: 75%; }
.vmsg-wave .b:nth-child(28) { height: 40%; }
.vmsg-wave .b:nth-child(29) { height: 65%; }
.vmsg-wave .b:nth-child(30) { height: 50%; }
.msg-row.them .vmsg-play { background: var(--adaptation-fond-action-accent, var(--accent, var(--palette-fond-action-composants))); color: var(--palette-texte-inverse-components); }
.msg-row.them .vmsg-wave .b { background: var(--palette-fond-action-espace-patient); }
.msg-row.them .vmsg-wave .b.is-active { background: var(--adaptation-fond-action-accent, var(--accent, var(--palette-fond-action-composants))); }
.msg-row.them .vmsg-time { color: var(--muted, var(--palette-texte-secondaire-composants-3)); }
.msg-row.me .vmsg-play { background: var(--palette-surface-espace-patient-5); color: var(--accent, var(--palette-texte-action-composants)); }
.msg-row.me .vmsg-wave .b { background: var(--palette-surface-espace-patient-6); }
.msg-row.me .vmsg-wave .b.is-active { background: var(--palette-surface-cabinet-conversation); }
.msg-row.me .vmsg-time { color: var(--palette-texte-inverse-espace-patient); }

.vmsg-play.is-playing { animation: vmsgPlayPulse 2s ease-in-out infinite; }
@keyframes vmsgPlayPulse { 0%,100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 50% { box-shadow: 0 0 0 4px transparent; opacity: .85; } }
