/* Voice136: scoped controls and persistent recording history. */
#ttsWorkspace .voice-history-panel { margin-top: 18px; }
#ttsWorkspace .voice-history-list { display: grid; gap: 8px; max-height: 480px; overflow: auto; min-height: 0; overscroll-behavior: contain; }
#ttsWorkspace .voice-history-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
#ttsWorkspace .voice-history-row.selected { border-color:var(--accent); background:rgba(216,179,92,.05); }
#ttsWorkspace .voice-history-main { background:none; border:0; color:var(--text); text-align:left; min-width:0; flex:1; padding:3px; }
#ttsWorkspace .voice-history-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#ttsWorkspace .voice-history-main span { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
#ttsWorkspace .voice-history-actions { display:flex; flex-wrap:wrap; gap:6px; }
#ttsWorkspace .voice-history-actions button { padding:6px 9px; font-size:12px; }
#ttsWorkspace #voiceJobStatus, #ttsWorkspace #voiceUploadStatus { line-height:1.6; overflow-wrap:anywhere; }
#ttsWorkspace .voice-upload-summary { margin:12px 0; overflow-wrap:anywhere; }
@media(max-width:720px) { #ttsWorkspace .voice-history-row{align-items:stretch;flex-direction:column;} }

/* Engine integration 1.4.0; no change to the Chat workspace. */
.voice-engine-settings{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:14px;background:rgba(255,255,255,.025);display:grid;gap:12px}
.voice-engine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.voice-engine-settings select,.voice-engine-settings textarea,.voice-engine-settings input{width:100%;min-width:0;padding:9px}
.voice-engine-settings p{margin:0;line-height:1.5}.voice-engine-tags{display:flex;gap:6px;flex-wrap:wrap}
.voice-engine-tags button{padding:5px 9px;font-size:12px}.voice-engine-advanced summary{cursor:pointer;color:var(--muted);margin-bottom:10px}
@media(max-width:650px){.voice-engine-grid{grid-template-columns:1fr}}
