.voice-panel { padding-bottom: 32px; }
.voice-intro { margin: -5px 0 13px; }

.audio-section {
  display: grid;
  gap: 10px;
  margin-bottom: 11px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(25,33,47,.92), rgba(12,17,25,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.audio-section > header { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: start; gap: 8px; }
.audio-section > header > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(184,255,69,.11); color: var(--lime); font-size: 9px; font-weight: 900; }
.audio-section > header > div { min-width: 0; display: grid; gap: 2px; }
.audio-section > header b { font-size: 10px; }
.audio-section > header small { color: var(--muted); font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }

.audio-field-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.audio-field-grid label { min-width: 0; display: grid; gap: 5px; }
.audio-field-grid label > span { color: #aeb8c7; font-size: 8px; font-weight: 800; }
.audio-field-grid select,.voice-script-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #090e16; color: var(--text); outline: 0; }
.audio-field-grid select { height: 37px; padding: 0 10px; }
.audio-field-grid select:focus,.voice-script-field textarea:focus { border-color: rgba(184,255,69,.5); box-shadow: 0 0 0 3px rgba(184,255,69,.06); }

.voice-script-field { position: relative; display: block; min-width: 0; }
.voice-script-field textarea { min-height: 88px; padding: 10px 10px 24px; resize: vertical; font: 10px/1.55 Inter,system-ui,sans-serif; }
.voice-script-field > small { position: absolute; right: 9px; bottom: 7px; color: #667285; font-size: 7px; pointer-events: none; }
.voice-script-field > small b { color: #aab5c5; }
.audio-section .wide-tool { margin: 0; min-height: 39px; }

.voice-picker { display: grid; gap: 8px; min-width: 0; margin: 0; }
.voice-picker-loading { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 8px; }
.voice-picker-loading i { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--lime); border-radius: 50%; animation: voice-spin .8s linear infinite; }
@keyframes voice-spin { to { rotate: 360deg; } }

.voice-option { min-width: 0; display: grid; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #151c29, #0e131c); }
.voice-option.selected { border-color: rgba(184,255,69,.55); box-shadow: inset 3px 0 var(--lime); }
.voice-option > div:first-child { min-width: 0; display: grid; gap: 3px; }
.voice-option > div:first-child b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.voice-option small { color: var(--muted); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.voice-option > div:last-child { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 58px; gap: 6px; }
.voice-option button { min-width: 0; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #202838; font-size: 8px; white-space: nowrap; }
.voice-option .voice-select { border: 0; background: var(--lime); color: #10150a; font-weight: 900; }
.voice-option .voice-select:disabled { opacity: .75; }

.voice-upload-button { display: grid; gap: 3px; min-height: 48px; padding: 10px 12px; border: 1px dashed rgba(184,255,69,.34); border-radius: 11px; background: rgba(184,255,69,.045); cursor: pointer; }
.voice-upload-button b { color: #dcffab; font-size: 9px; }
.voice-upload-button span { color: var(--muted); font-size: 7px; }

.music-preset-list { display: grid; gap: 6px; }
.music-section .audio-row { width: 100%; min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr) 20px; align-items: center; gap: 8px; margin: 0; padding: 9px; color: inherit; text-align: left; }
.music-section .audio-row > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(114,135,255,.1); color: #9dacff; font-style: normal; }
.music-section .audio-row > span { min-width: 0; display: grid; gap: 2px; }
.music-section .audio-row b,.music-section .audio-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-section .audio-row b { font-size: 9px; }
.music-section .audio-row small { color: var(--muted); font-size: 7px; }
.music-section .audio-row em { color: #778296; font-size: 8px; font-style: normal; }
.music-section .audio-row.active { border-color: rgba(184,255,69,.65); background: rgba(184,255,69,.06); box-shadow: 0 0 0 1px rgba(184,255,69,.12) inset; }

@media (min-width: 1380px) { .audio-field-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (min-width: 1101px) { .editor-shell { grid-template-columns: 72px 300px minmax(430px,1fr) 254px; } }
@media (min-width: 761px) and (max-width: 1100px) { .editor-shell { grid-template-columns: 64px 270px 1fr; } }
