/* AutoTube User1 — private Voice UI V4.5 (display only). */
/* Native ElevenLabs controls, their IDs, handlers and status data stay intact. */

#voiceWorkspace .voice-right-column {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: clamp(10px, 1.45vh, 18px) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
}
#voiceWorkspace .voice-right-column > :not(.voice-hidden-account) {
  flex-shrink: 0;
}
#voiceWorkspace .voice-right-column > .voice-generation-compact {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-width: 0;
  padding-top: clamp(10px, 1.8vh, 18px) !important;
  border-top: 1px solid #ececee !important;
}
#voiceWorkspace .voice-generation-compact > #generateVoiceButton {
  /* Native button stays in DOM for its existing event listeners and disabled state. */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}
#voiceWorkspace .voice-generation-compact > .at45-voice-action {
  order: 10 !important;
  display: block !important;
  width: 100% !important;
  flex: 0 0 auto;
  min-height: 46px !important;
  padding: 11px 15px !important;
  background: #F00016 !important;
  background-image: none !important;
  border: 1px solid #F00016 !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  font-family: Inter, sans-serif !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  letter-spacing: -0.015em !important;
  box-shadow: 0 7px 19px rgba(240,0,22,.12) !important;
  cursor: pointer !important;
  transition: background .15s ease, box-shadow .15s ease;
}
#voiceWorkspace .voice-generation-compact > .at45-voice-action:hover:not(:disabled) {
  background: #D80015 !important;
  border-color: #D80015 !important;
}
#voiceWorkspace .voice-generation-compact > .at45-voice-action:disabled {
  background: #F00016 !important;
  border-color: #F00016 !important;
  color: #FFFFFF !important;
  opacity: .72 !important;
  cursor: wait !important;
  box-shadow: none !important;
}
#voiceWorkspace .voice-generation-compact > #voiceProgress,
#voiceWorkspace .voice-generation-compact > #voiceWarning,
#voiceWorkspace .voice-generation-compact > #voiceError {
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  text-align: left !important;
  overflow-wrap: anywhere;
  font-family: Inter, sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
#voiceWorkspace .voice-generation-compact > #voiceProgress { order: 1 !important; color: #27272A !important; }
#voiceWorkspace .voice-generation-compact > #voiceWarning { order: 3 !important; }
#voiceWorkspace .voice-generation-compact > #voiceError { order: 4 !important; }
#voiceWorkspace .voice-generation-compact > :is(#voiceProgress,#voiceWarning,#voiceError):empty {
  display: none !important;
}
#voiceWorkspace .voice-generation-compact > #cancelVoiceButton {
  order: 11 !important;
  min-height: 38px !important;
}
#voiceWorkspace .voice-generation-compact > #voiceDiagnosticCard { order: 12 !important; }
#voiceWorkspace .voice-generation-compact > .at45-voice-track {
  order: 2 !important;
  width: 100%;
  height: 7px;
  flex: 0 0 7px;
  overflow: hidden;
  background: #F6DFE1;
  border-radius: 999px;
  display: none;
  position: relative;
}
#voiceWorkspace .voice-generation-compact.at45-busy > .at45-voice-track {
  display: block !important;
}
#voiceWorkspace .voice-generation-compact > .at45-voice-track > .at45-voice-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: #F00016;
  border-radius: inherit;
  width: var(--at45-progress, 0%);
}
#voiceWorkspace .voice-generation-compact.at45-indeterminate > .at45-voice-track > .at45-voice-fill {
  width: 36%;
  animation: at45-voice-loading 1.4s ease-in-out infinite alternate;
}
@keyframes at45-voice-loading {
  0% {transform: translateX(0%)}
  100% {transform: translateX(180%)}
}
@media (prefers-reduced-motion: reduce) {
  #voiceWorkspace .voice-generation-compact.at45-indeterminate > .at45-voice-track > .at45-voice-fill {
    animation: none;
    width: 40%;
  }
}
#voiceWorkspace .voice-generation-compact > .at45-voice-hint {
  order: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-family: Inter, sans-serif !important;
  font-weight: 700 !important;
  color: #BB0015 !important;
  line-height: 1.4 !important;
}
#voiceWorkspace .voice-generation-compact > .at45-voice-hint[hidden] { display: none !important; }
/* Always reserve a clean lower action zone without an empty card. */
@media (min-width: 851px) and (max-height: 740px) {
  #voiceWorkspace .voice-right-column { justify-content: flex-start !important; }
  #voiceWorkspace .voice-right-column > .voice-generation-compact { margin-top: auto !important; }
}
@media (max-width: 850px) {
  #voiceWorkspace .voice-right-column { overflow: visible !important; }
  #voiceWorkspace .voice-right-column > .voice-generation-compact { margin-top: 12px !important; }
}
/* AUTOTUBE_USER1_PRIVATE_V45_END */
