/* MiniMax writing tools share the studio theme and the single live text field. */
html body.reference-ui-shell[data-studio-ui] .audio-text-tools {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 0 0;
  color:var(--studio-sub); border-top:1px solid var(--studio-line); margin-top:8px;
}
html body.reference-ui-shell[data-studio-ui] .audio-text-tools[hidden],
html body.reference-ui-shell[data-studio-ui] .audio-text-tools button[hidden],
html body.reference-ui-shell[data-studio-ui] .audio-text-notice[hidden],
html body.reference-ui-shell[data-studio-ui] .audio-text-menu[hidden] { display:none!important; }
html body.reference-ui-shell[data-studio-ui] .audio-text-tools button,
html body.reference-ui-shell[data-studio-ui] .audio-text-menu button,
html body.reference-ui-shell[data-studio-ui] .audio-text-notice button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:34px; padding:6px 12px; border:1px solid var(--studio-line);
  border-radius:9px; background:var(--studio-surface); color:var(--studio-sub);
  font-size:12px; font-weight:500; line-height:20px; box-shadow:none;
}
html body.reference-ui-shell[data-studio-ui] .audio-text-tools button:hover:not(:disabled),
html body.reference-ui-shell[data-studio-ui] .audio-text-menu button:hover:not(:disabled) {
  background:var(--studio-tint); border-color:var(--studio-accent); color:var(--studio-accent);
}
html body.reference-ui-shell[data-studio-ui] .audio-text-tools button[aria-expanded="true"],
html body.reference-ui-shell[data-studio-ui] .audio-text-menu button[aria-pressed="true"] {
  color:var(--studio-accent); border-color:var(--studio-accent); background:var(--studio-tint);
}
html body.reference-ui-shell[data-studio-ui] .audio-text-tools button:disabled { opacity:.45; cursor:not-allowed; }
html body.reference-ui-shell[data-studio-ui] .audio-text-tools svg { width:15px; height:15px; flex:none; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu {
  position:fixed; z-index:10060; width:320px; max-width:calc(100vw - 32px); max-height:min(400px,65vh);
  overflow:auto; box-sizing:border-box; padding:16px; border:1px solid var(--studio-line);
  border-radius:14px; background:var(--studio-surface); color:var(--studio-text);
  box-shadow:0 12px 40px #0002;
}
html body.reference-ui-shell[data-studio-ui] .audio-text-menu header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 12px; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu header strong { font-size:14px; font-weight:600; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu header button { min-height:26px; width:26px; padding:0; border:0; background:transparent; font-size:18px; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu p { margin:12px 0 0; color:var(--studio-muted); font-size:12px; line-height:1.6; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu p:empty { display:none; }
html body.reference-ui-shell[data-studio-ui] .audio-text-pause-custom { display:flex; align-items:center; gap:8px; padding-top:12px; margin-top:12px; border-top:1px solid var(--studio-line); font-size:12px; }
html body.reference-ui-shell[data-studio-ui] .audio-text-pause-custom input { flex:1; min-width:0; width:80px; height:34px; padding:6px 9px; border:1px solid var(--studio-line); border-radius:8px; background:var(--studio-bg); color:var(--studio-text); font-size:13px; }
html body.reference-ui-shell[data-studio-ui] .audio-text-menu .audio-text-menu-error { color:var(--studio-danger,#b83c4c); }
html body.reference-ui-shell[data-studio-ui] .audio-text-notice { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 12px; margin-top:10px; border:1px solid var(--studio-line); border-radius:10px; background:var(--studio-soft); color:var(--studio-sub); font-size:12px; line-height:1.6; }
html body.reference-ui-shell[data-studio-ui] :is(.audio-text-tools,.audio-text-menu,.audio-text-notice) button:focus-visible { outline:2px solid var(--studio-accent); outline-offset:3px; }
@media(max-width:600px){html body.reference-ui-shell[data-studio-ui] .audio-text-tools {gap:6px} html body.reference-ui-shell[data-studio-ui] .audio-text-tools button {min-height:38px;padding:6px 10px}}
html body.reference-ui-shell[data-studio-ui] .audio-output-stack { display:grid; width:100%; box-sizing:border-box; gap:12px; padding:14px; background:var(--studio-soft); border-radius:12px; }
html body.reference-ui-shell[data-studio-ui] .audio-output-item { min-width:0; padding:12px; background:var(--studio-surface); border:1px solid var(--studio-line); border-radius:10px; }
html body.reference-ui-shell[data-studio-ui] .audio-output-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:8px; color:var(--studio-sub); font-size:12px; }
html body.reference-ui-shell[data-studio-ui] .audio-output-download { border:0; background:transparent; color:var(--studio-accent); font-size:12px; padding:4px 8px; min-height:28px; }
html body.reference-ui-shell[data-studio-ui] .audio-output-item audio { display:block; width:100%; min-width:0; height:36px; }
html body.reference-ui-shell[data-studio-ui] :is(.work-media,.project-work-media,.thumb):has(>.audio-output-stack) { height:auto!important; min-height:0!important; aspect-ratio:auto!important; overflow:visible!important; }
html body.reference-ui-shell[data-studio-ui] :is(#jobBoard[data-view-mode],.project-work-grid.is-list) .job-row.job-type-audio>.thumb:has(>.audio-output-stack) { width:100%!important; height:auto!important; min-height:0!important; max-height:none!important; aspect-ratio:auto!important; overflow:visible!important; }
html body.reference-ui-shell[data-studio-ui] :is(.work-media,.project-work-media,.thumb)>.audio-output-stack { padding-top:40px; }
html[data-zq-theme=light] body.reference-ui-shell[data-studio-ui] .audio-output-stack {color-scheme:light}
html[data-zq-theme=dark] body.reference-ui-shell[data-studio-ui] .audio-output-stack {color-scheme:dark}
