.video-voices-panel [hidden] { display: none !important; }
.video-voices-panel .video-row { flex-wrap: wrap; margin: 12px 0; }
.video-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; gap: 10px; max-height: 540px; overflow: auto; padding: 12px 3px 3px; }
.video-voice-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 20px; min-width: 0; padding: 12px; border: 1px solid #ffffff40; border-radius: 6px; background: #ffffff0a; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.video-voice-card[data-active="true"] { border-color: #ffdf77; box-shadow: 0 0 0 2px #ffdf77; }
.video-voice-card[data-expanded="true"] { grid-column: 1 / -1; grid-template-columns: 200px minmax(0, 1fr); }
.video-voice-card:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.video-voice-card.video-face-drop-target { background: #849a85; box-shadow: inset 0 0 0 3px #fff; }
.voice-controls { min-width: 0; display: grid; gap: 8px; }
.video-workspace .voice-avatar { position: relative; justify-self: center; display: grid; place-items: center; width: 80px; height: 80px; min-height: 80px; margin: 0 0 6px; padding: 0; border: 6px solid green; border-radius: 50%; background: #d9ead7; color: #025753; font-size: 28px; cursor: grab; touch-action: none; }
.video-workspace .voice-avatar:hover { background: #eaf3ea; box-shadow: 0 0 0 2px #025753; }
.video-voice-card[data-masked="true"] .voice-avatar { border-color: #d32f2f; }
.voice-number { position: absolute; bottom: -6px; right: -6px; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #025753; border-radius: 50%; background: #fff; color: #025753; font-size: 14px; font-weight: 700; }
.video-workspace .voice-delete { position: absolute; top: 8px; right: 8px; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 6px; margin: 0; }
.voice-listen { display: flex; gap: 6px; min-width: 0; }
.video-workspace .voice-listen button { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; gap: 6px; min-width: 0; min-height: 40px; margin: 0; padding: 7px 5px; font-size: 13px; }
.voice-listen [data-listening="true"] { outline: 2px solid #ffdf77; outline-offset: 2px; }
.voice-strength-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 12px; }
.voice-strength-heading label { display: flex; align-items: center; gap: 6px; }
.voice-strength-value { font-variant-numeric: tabular-nums; }
.video-workspace .voice-strength { display: block; width: 100%; min-width: 0; height: 24px; margin: 0; padding: 0; accent-color: #b8e4ba; cursor: pointer; }
.voice-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.video-workspace .voice-actions button { width: 36px; min-width: 36px; min-height: 36px; height: 36px; padding: 6px; margin: 0; }
.voice-details { min-width: 0; padding-right: 40px; cursor: default; touch-action: pan-y; }
.voice-timeline { position: relative; height: 10px; margin: 4px 0; background: #ffffff25; overflow: hidden; border-radius: 3px; }
.voice-timeline i { position: absolute; top: 0; bottom: 0; min-width: 2px; background: #b8e4ba; }
.video-voice-card:not([data-masked="true"]) .voice-timeline i { background: #bfc9bf; }
.voice-scale { display: flex; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; }
.voice-ranges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px; max-height: 260px; overflow: auto; margin: 12px 0; }
.voice-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; align-items: center; gap: 5px; }
.voice-range > button:first-child { grid-column: 1 / 3; font-size: 12px; padding: 6px; min-width: 0; }
.voice-range > input { grid-row: 2; }
.voice-range > button:last-child { grid-column: 3; grid-row: 1 / 3; }
.voice-range button, .voice-add-range { margin: 0; }
.video-workspace .voice-range .video-icon-button { width: 36px; min-width: 0; }
.voice-range input { width: 100%; min-width: 0; box-sizing: border-box; font-size: 14px; padding: 5px; user-select: text; -webkit-user-select: text; }
.voice-status { margin: 10px 0; color: #ecf4ed; font-size: 14px; }
.voice-status[data-error="true"] { color: #ffdfbd; }
.voice-drag-icon { position: absolute; inset: 0; display: grid; place-items: center; color: #025753; font-size: 28px; }
@media (max-width: 560px) {
    .video-voice-card[data-expanded="true"] { grid-template-columns: minmax(0, 1fr); }
    .voice-details { padding-right: 0; }
}
