/* Music, Speech and Text share the proven image/video creator layout.
   Scoping avoids changes to existing renderers, billing and media engines. */
body.pyg-create-output-v2 .image-v2-workbench{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)}
body.pyg-create-output-v2 .image-v2-workbench>.creation-form{
  display:block;min-width:0;
}
body.pyg-create-output-v2 .creation-form>.image-v2-section-label{margin:0 0 12px}
body.pyg-create-output-v2 .prompt-label{
  display:block;margin:12px 0 9px;color:#edf1fc;
  font-size:.84rem;font-weight:740;
}
body.pyg-create-output-v2 textarea#prompt,
body.pyg-create-output-v2 #lyrics{
  display:block;width:100%;min-height:168px;max-height:580px;resize:vertical;
  padding:15px;border:1px solid #424d60;background:#0f1826;color:#f3f5fe;
  border-radius:11px;line-height:1.65;font-size:.91rem;
}
body.pyg-create-output-v2 textarea#prompt:focus,
body.pyg-create-output-v2 #lyrics:focus,
body.pyg-create-output-v2 .output-v2-settings input:focus,
body.pyg-create-output-v2 .output-v2-settings select:focus{
  outline:none;border-color:#7f92bc;box-shadow:0 0 0 3px #667bae2c;
}
body.pyg-create-output-v2 textarea#prompt::placeholder,
body.pyg-create-output-v2 #lyrics::placeholder{color:#8291ab}
body.pyg-create-output-v2 .generation-mode-choice{margin:0 0 19px;gap:9px}
body.pyg-create-output-v2 .generation-mode-choice legend{margin-bottom:9px;color:#e7eafa}
body.pyg-create-output-v2 .generation-mode-choice span{
  border:1px solid #435069;border-radius:10px;min-height:73px;
  background:#111a29;color:#ecf1fe;
}
body.pyg-create-output-v2 .generation-mode-choice input:checked+span{
  border-color:#7f92bc;background:#2e2b51;
}
body.pyg-create-output-v2 .generation-mode-choice small{color:#a4b3cb}
body.pyg-create-output-v2 .lyrics-choice{
  margin:18px 0 13px;padding:16px;border-radius:12px;
  background:#171e2c;border:1px solid #394256;color:#eef1fc;
}
body.pyg-create-output-v2 .lyrics-choice legend{color:#cdd7ea;font-size:.85rem}
body.pyg-create-output-v2 .lyrics-choice .choice-pill span{
  background:#171f30;border:1px solid #4b5366;color:#e4eaf8;
}
body.pyg-create-output-v2 .lyrics-choice .choice-pill input:checked+span{
  background:#302b52;border-color:#7f92bc;color:#fafaff;
}
body.pyg-create-output-v2 .exact-lyrics{
  margin:10px 0 18px;padding:15px;border:1px solid #3c465a;
  border-radius:10px;background:#151d2d;color:#dbe3f5;
}
body.pyg-create-output-v2 .exact-lyrics>label{color:#ecf1fa}
body.pyg-create-output-v2 .exact-lyrics p{color:#9dacbf}
body.pyg-create-output-v2 .output-v2-settings{margin:22px 0 0}
body.pyg-create-output-v2 .output-v2-settings-body{padding:13px 16px 19px}
body.pyg-create-output-v2 .output-v2-settings-body>.quality-field{margin:0 0 10px}
body.pyg-create-output-v2 .output-v2-settings-body>.image-v2-tile-group{margin:0 0 18px}
body.pyg-create-output-v2 .output-v2-settings-body .options-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;padding:15px 0 0;border-top:1px solid #ffffff16;
}
body.pyg-create-output-v2 .output-v2-settings-body .options-grid label{
  display:flex;flex-direction:column;gap:8px;min-width:0;
  font-size:.8rem;color:#dce4f2;font-weight:740;
}
body.pyg-create-output-v2 .output-v2-settings-body .options-grid input,
body.pyg-create-output-v2 .output-v2-settings-body .options-grid select{
  display:block;width:100%;height:47px;padding:0 12px;
  border:1px solid #434c60;border-radius:9px;
  background:#101825;color:#f1f5ff;
}
body.pyg-create-output-v2 .field-hint,
body.pyg-create-output-v2 .form-hint{color:#9eacc5;line-height:1.6}
body.pyg-create-output-v2 .speech-transcription-input{
  margin:13px 0;padding:17px;border-radius:12px;
  border:1px solid #444f66;background:#151e2c;color:#e2e9f9;
}
body.pyg-create-output-v2 .speech-transcription-input>label{color:#f0f3ff}
body.pyg-create-output-v2 .speech-transcription-input input[type=file]{
  width:100%;max-width:100%;color:#c1cbea;
}
body.pyg-create-output-v2 .speech-options-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;
}
body.pyg-create-output-v2 .speech-options-grid label{color:#e3eaf8}
body.pyg-create-output-v2 .speech-options-grid select{
  width:100%;max-width:100%;height:46px;border-radius:9px;
  border:1px solid #47546b;background:#101827;color:#f3f5fd;
}
body.pyg-create-output-v2 .speech-audition,
body.pyg-create-output-v2 .speech-voice-browser{
  background:#171f2e;border:1px solid #3d485d;color:#ebefff;
  border-radius:11px;
}
body.pyg-create-output-v2 .speech-audition button{color:inherit}
body.pyg-create-output-v2 .speech-voice-browser summary{color:#edefff;cursor:pointer}
body.pyg-create-output-v2 .speech-voice-card{
  border-color:#454b61;background:#1e2636;color:#e4eaff;
}
body.pyg-create-output-v2 .speech-voice-choose{color:#f3f5ff}
body.pyg-create-output-v2 .speech-preview-button{
  background:#292a4a;border-color:#7f92bc;color:#f4f0ff;
}
body.pyg-create-output-v2 .image-v2-preview-canvas{min-height:clamp(390px,46vw,610px)}
body.pyg-create-output-v2 .image-v2-preview-canvas>[data-output-state][hidden]{display:none!important}
body.pyg-create-output-v2 .image-v2-preview-canvas [data-output-state="progress"]:not([hidden]),
body.pyg-create-output-v2 .image-v2-preview-canvas [data-output-state="error"]:not([hidden]){
  animation:pygImageEnter .3s ease-out both;
}
body.pyg-create-output-v2 .image-v2-preview-canvas [data-output-state="result"]:not([hidden]){
  animation:pygImageResultReveal .48s ease-out both;
}
body.pyg-create-output-v2 .image-v2-standby{
  display:flex;flex:1;flex-direction:column;align-items:center;width:100%;min-height:inherit;
}
body.pyg-create-output-v2 .image-v2-preview-shape .image-v2-shape-core{
  display:grid;place-items:center;
  color:#e1e6f2;font-size:2rem;text-shadow:0 0 20px #667bae;
  transform:rotate(0deg);animation:outputV2Float 7s ease-in-out infinite;
}
@keyframes outputV2Float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
body.pyg-create-output-v2 .output-v2-gallery{
  width:100%;display:flex;flex-direction:column;gap:15px;
}
body.pyg-create-output-v2 .output-v2-audio-item{
  display:flex;flex-direction:column;gap:12px;
  padding:18px;background:#121c2e;border:1px solid #3b4864;border-radius:12px;
}
body.pyg-create-output-v2 .output-v2-audio-item>strong{font-size:.83rem;color:#e9edfc}
body.pyg-create-output-v2 .output-v2-audio-item audio{display:block;width:100%;height:49px}
body.pyg-create-output-v2 .output-v2-text{
  padding:20px;max-height:580px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;
  background:#111b2b;border:1px solid #404b61;border-radius:11px;
  font-size:.9rem;color:#e6ecfa;line-height:1.75;user-select:text;
}
body.pyg-create-output-v2 .output-v2-hint{color:#bdc9de;font-size:.82rem;line-height:1.65}
body.pyg-create-output-v2 .output-v2-download-link{
  border:1px solid #7f92bc;border-radius:9px;min-height:43px;
  padding:9px 14px;color:#f4f2ff;background:#536a9e;
  font-weight:800;font-size:.77rem;
}
body.pyg-create-output-v2 .output-v2-download-link:hover{background:#536a9e}
body.pyg-create-output-v2 .output-v2-copy-button{
  cursor:pointer;border:1px solid #7f92bc;border-radius:9px;
  min-height:43px;padding:9px 14px;background:#26294b;
  color:#f6f2ff;font-weight:750;font-size:.77rem;
}
body.pyg-create-output-v2 .output-v2-copy-button:hover{background:#343258}
@media(max-width:1070px){
  body.pyg-create-output-v2 .image-v2-workbench{grid-template-columns:minmax(0,1fr) minmax(0,.92fr)}
}
@media(max-width:820px){
  body.pyg-create-output-v2 .image-v2-workbench{display:flex;flex-direction:column}
  body.pyg-create-output-v2 .image-v2-preview-canvas{min-height:300px}
}
@media(max-width:540px){
  body.pyg-create-output-v2 .output-v2-settings-body .options-grid,
  body.pyg-create-output-v2 .speech-options-grid{grid-template-columns:1fr}
  body.pyg-create-output-v2 .output-v2-text{padding:14px;font-size:.84rem}
  body.pyg-create-output-v2 .image-v2-ready-state{padding:12px}
}
@media(prefers-reduced-motion:reduce){
  body.pyg-create-output-v2 .image-v2-preview-shape .image-v2-shape-core,
  body.pyg-create-output-v2 .image-v2-preview-canvas [data-output-state]:not([hidden]){animation:none}
}
