/* Studio workspace, based on the signed-in VibeTTS layout. */
.voice-workspace{--paper:#f3f2ed;--white:#faf9f6;--ink:#191c20;--muted:#8a8b88;--line:#deded9;--blue:#0866ee;--pale:#e1eafb;background:var(--paper);font-size:14px;line-height:1.5;letter-spacing:0}
.voice-workspace[data-appearance=dark]{--paper:#15171a;--white:#1d2024;--ink:#e9edf2;--muted:#969ea8;--line:#343940;--blue:#6ba4ff;--pale:#25354e;color-scheme:dark;color:var(--ink)}
.voice-workspace h1,.voice-workspace h2,.voice-workspace h3{font-family:inherit;letter-spacing:0;line-height:1.4}
.voice-workspace [data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.voice-workspace [data-icon] svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.voice-workspace .button{gap:8px;padding:11px 16px;font-size:13px;letter-spacing:0;font-weight:600;min-height:44px}.voice-workspace .button:hover{transform:none}
.voice-workspace .small-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:6px;padding:8px 12px;font-size:12px;line-height:1.4;white-space:nowrap;cursor:pointer;min-height:36px}.voice-workspace .small-button:hover{border-color:var(--blue);color:var(--blue)}
.voice-workspace .text-button{border:0;background:transparent;color:var(--blue);padding:0;font-size:12px;display:inline-flex;align-items:center;gap:5px;cursor:pointer}.voice-workspace .notice{font-size:13px;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--muted);padding:14px 16px;margin:0 0 20px}
.workspace-sidebar{width:254px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;background:var(--white);border-right:1px solid var(--line);z-index:25;padding:24px 12px 12px}.studio-brand{font-size:19px;letter-spacing:0;margin:0 8px 24px;gap:11px}.studio-brand .logo{width:38px;height:38px;border-radius:6px;background:var(--white)}.studio-brand small{font-size:9px;letter-spacing:.4px;margin-top:2px}.nav-caption{font-size:10px;color:var(--muted);margin:0 8px 8px}.studio-navigation{display:flex;flex-direction:column;gap:4px}.studio-navigation button{display:flex;align-items:center;gap:12px;background:transparent;border:0;border-radius:6px;padding:10px 12px;font-size:14px;text-align:left;color:var(--ink)}.studio-navigation button.active{background:var(--pale);color:var(--blue)}.studio-navigation button:hover{background:var(--pale)}.nav-dot{display:none;width:6px;height:6px;border-radius:50%;background:var(--blue);margin-left:auto}.studio-navigation .active .nav-dot{display:block}
.sidebar-footer{margin-top:auto;padding-top:14px}.theme-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:6px;margin-bottom:12px}.theme-switch button{flex:1;display:flex;gap:8px;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;color:var(--muted);padding:5px 10px;border-radius:5px;font-size:12px}.theme-switch [aria-pressed=true]{background:var(--white);border-color:var(--line);color:var(--ink);box-shadow:0 1px 3px #00000009}.sidebar-account{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:transparent;width:100%;text-align:left;min-width:0}.account-avatar{display:grid;place-items:center;width:36px;height:36px;background:var(--paper);border-radius:4px;font-size:13px;flex-shrink:0}.sidebar-account>span:nth-child(2){flex:1;min-width:0}.sidebar-account strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.sidebar-account small{display:block;font-size:11px;color:var(--muted)}.sidebar-account>[data-icon]{color:var(--muted)}.sidebar-links{display:flex;gap:12px;padding:10px 4px 0;color:var(--muted);font-size:11px}.sidebar-links button{border:0;padding:0;background:none;color:inherit;font:inherit;margin-left:auto}
.workspace-content{margin-left:254px;min-width:0}.workspace-topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px}.topbar-caption{display:block;color:var(--muted);font-size:11px}.workspace-topbar h1{font-size:18px;margin:1px 0 0;font-weight:650}.topbar-actions{display:flex;align-items:center;gap:12px}.queue-indicator{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.queue-indicator [data-icon]{color:var(--blue)}
.voice-workspace .studio-main{padding:28px 60px 48px;max-width:1560px;margin:auto;min-width:0}.studio-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 20px}.section-caption{font-size:11px;color:var(--muted);font-weight:500}.studio-heading h2{font-size:25px;font-weight:650;margin:5px 0 8px}.studio-heading p{font-size:14px;color:var(--muted);margin:0}.balance{background:var(--white);border:1px solid var(--line);border-radius:6px;padding:7px 11px;color:var(--muted);font-size:12px;white-space:nowrap}.balance:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--blue);margin-right:8px}
.voice-workspace .editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 348px;gap:20px;align-items:start}.editor-column{min-width:0}.voice-workspace .editor-box,.voice-workspace .settings-box,.voice-workspace .history-box{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:20px;box-shadow:none;min-width:0;margin:0}.voice-workspace .history-box{margin-top:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.4}.panel-heading h3,.panel-heading label{font-size:11px;font-weight:500;letter-spacing:0;margin:0}.panel-heading>span{font-size:10px;text-align:right}.voice-workspace .editor-box textarea{width:100%;display:block;resize:vertical;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:6px;padding:16px;font-size:14px;min-height:426px;line-height:1.75}.voice-workspace textarea::placeholder{color:var(--muted)}.voice-workspace .editor-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted);margin:16px 0 20px;padding:0;border:0}.editor-foot .text-button{font-size:11px}
.effects-panel{border:1px solid #a9c5f0;background:transparent;border-radius:7px;padding:18px}.effects-panel h3{font-size:17px;font-weight:600;margin:0 0 8px}.effects-panel p{font-size:13px;color:var(--muted);margin:0 0 12px}.voice-workspace code{font:inherit;font-weight:600;background:var(--pale);color:var(--blue);border-radius:4px;padding:2px 4px;white-space:nowrap}.cue-buttons{display:flex;flex-wrap:wrap;gap:8px}.cue-buttons button{border:1px solid #adc8ed;background:var(--pale);font-size:12px;border-radius:5px;padding:8px 10px;white-space:nowrap}.draft-bar{display:flex;align-items:center;gap:10px;margin-top:16px}.draft-bar input{background:transparent;border:0;color:var(--muted);font-size:12px;padding:6px 0;min-width:0;flex:1}.draft-bar .small-button{font-size:11px;min-height:32px;padding:6px 10px}
.settings-box .panel-heading{margin-bottom:20px}.settings-section{border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:20px}.selected-voice{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:12px;margin-top:9px;min-width:0}.selected-voice>div{flex:1;min-width:0}.selected-voice strong{display:block;font-weight:500;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-voice span{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.selected-voice .small-button{padding:8px 10px}.range-label{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:14px 0 12px}.range-label output{font-weight:600;color:var(--blue)}.voice-workspace input[type=range]{width:100%;accent-color:var(--blue);cursor:pointer;margin:0;height:14px}
.dictionary-card{background:var(--pale);border:1px solid #a9c5f0;border-radius:6px;padding:12px;margin:0 0 20px}.dictionary-title{display:flex;gap:6px;align-items:center;color:var(--blue)}.dictionary-title h3{font-size:13px;font-weight:600;color:var(--ink)}.dictionary-title>span:last-child{background:var(--blue);color:var(--white);border-radius:20px;font-size:10px;padding:2px 6px}.dictionary-source{display:inline-block;font-size:10px;color:var(--muted);margin:4px 0 0 25px}.dictionary-card p{font-size:11px;color:var(--muted);margin:6px 0 9px 25px}.dictionary-chips{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}.dictionary-chips span{border:1px solid #adc8ed;border-radius:12px;font-size:10px;color:var(--blue);padding:1px 6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dictionary-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #afc5e3;padding-top:10px}.dictionary-footer label{font-size:10px;display:flex;align-items:center;gap:5px}.dictionary-footer input{accent-color:var(--blue);margin:0}.dictionary-footer .small-button{padding:6px 8px;font-size:11px;min-height:32px}.dictionary-footer svg{width:14px;height:14px}
.generation-cost{border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin:0 0 20px;font-size:11px}.generation-cost>div{display:flex;justify-content:space-between;gap:8px;color:var(--muted)}.generation-cost strong{color:var(--blue);font-size:12px}.generation-cost p{color:var(--muted);font-size:10px;margin:5px 0 0}.voice-workspace .generate-button{width:100%;gap:8px}.stop-preview{width:100%;margin-top:8px}.voice-workspace .empty{font-size:13px;padding:24px 10px;color:var(--muted);text-align:center}.voice-workspace audio{max-width:100%;width:100%;height:38px;display:block;margin:12px 0}.voice-workspace #downloadAudio{margin-bottom:12px}.voice-workspace .history-row{padding:16px 0;border-top:1px solid var(--line);font-size:13px}.history-row p{margin:5px 0;font-size:13px}.history-row small{color:var(--muted);font-size:11px}.audio-row-header{display:flex;gap:12px;justify-content:space-between;align-items:center}.status-pill{font-size:10px;color:var(--blue);background:var(--pale);padding:3px 7px;border-radius:4px;white-space:nowrap}.account-settings{display:grid;grid-template-columns:1fr 1fr;gap:20px}.voice-workspace .account-settings .history-box,.voice-workspace #view-history .history-box,.voice-workspace #view-voices .history-box{margin-top:0}.account-settings h3{font-size:17px;margin-bottom:16px}.account-settings dl{display:grid;grid-template-columns:auto 1fr;gap:12px 20px;font-size:13px}.account-settings dt{color:var(--muted)}.account-settings dd{margin:0;overflow-wrap:anywhere}.account-settings p{font-size:13px;color:var(--muted)}.voice-workspace .plan{background:var(--white)}
.workspace-dialog{width:min(680px,calc(100vw - 32px));max-height:90vh;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);padding:24px}.workspace-dialog::backdrop{background:#0009}.workspace-dialog h2{font-size:18px}.workspace-dialog p{font-size:12px;color:var(--muted)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dictionary-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:10px;margin:10px 0}.dictionary-row.labels{font-size:11px;color:var(--muted)}.dictionary-row input{width:100%;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);padding:8px;font-size:13px}.dictionary-remove{border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--muted)}.voice-workspace [hidden]{display:none!important}
@media(min-width:1700px){.voice-workspace .editor-box textarea{min-height:480px}}
@media(max-width:1250px){.workspace-sidebar{width:220px}.workspace-content{margin-left:220px}.voice-workspace .studio-main{padding:28px 28px 40px}.voice-workspace .editor-grid{grid-template-columns:minmax(0,1fr) 306px;gap:18px}.voice-workspace .editor-box textarea{min-height:400px}.voice-workspace .editor-box,.voice-workspace .settings-box{padding:18px}.studio-heading p{max-width:500px}.dictionary-footer{flex-wrap:wrap}.dictionary-title h3{font-size:12px}.selected-voice{flex-wrap:wrap}.selected-voice>div{flex-basis:100%}}
@media(max-width:960px){.workspace-sidebar{width:192px}.workspace-content{margin-left:192px}.studio-navigation button{font-size:12px;gap:8px;padding:10px 8px}.voice-workspace .studio-main{padding:24px 20px}.voice-workspace .editor-grid{grid-template-columns:minmax(0,1fr) 268px;gap:14px}.studio-heading{align-items:flex-start;flex-direction:column;gap:12px}.studio-heading h2{font-size:22px}.studio-heading p{font-size:13px}.effects-panel{padding:12px}.cue-buttons button{font-size:11px}.panel-heading{flex-wrap:wrap;gap:5px}.voice-workspace .editor-box,.voice-workspace .settings-box{padding:14px}.dictionary-title{flex-wrap:wrap}.dictionary-card p{margin-left:0}.dictionary-source{margin-left:0}.account-settings{grid-template-columns:1fr}}
@media(max-width:760px){.workspace-sidebar{position:static;width:100%;padding:14px 16px 0;border-right:0;border-bottom:1px solid var(--line)}.studio-brand{margin:0 0 12px;font-size:17px}.nav-caption{display:none}.studio-navigation{display:flex;flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:10px}.studio-navigation button{white-space:nowrap;flex-shrink:0;font-size:11px}.studio-navigation [data-icon] svg{width:15px;height:15px}.sidebar-footer{padding:0;margin:0;position:absolute;top:18px;right:16px}.theme-switch{margin:0}.theme-switch button{padding:4px 8px;font-size:11px}.sidebar-account,.sidebar-links{display:none}.workspace-content{margin-left:0}.workspace-topbar{height:66px;padding:0 18px}.workspace-topbar h1{font-size:16px}.queue-indicator{display:none}.voice-workspace .studio-main{padding:22px 16px 32px}.voice-workspace .editor-grid{grid-template-columns:1fr}.settings-box .settings-section{margin-bottom:14px;padding-bottom:14px}.selected-voice{flex-wrap:nowrap}.selected-voice>div{flex-basis:auto}.voice-workspace .editor-box textarea{min-height:300px}.studio-heading h2{font-size:23px}.dictionary-footer{flex-wrap:nowrap}.dictionary-title{flex-wrap:nowrap}.dictionary-card p{margin-left:25px}.dictionary-source{margin-left:25px}.voice-workspace .editor-foot{font-size:10px}.effects-panel h3{font-size:15px}.studio-navigation .nav-dot{display:none}.voice-workspace .history-box{padding:16px}.workspace-dialog{padding:18px}.workspace-topbar .small-button{padding:7px 10px}}
.history-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.audio-file-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.audio-file-actions .recording-delete{margin-left:auto}.voice-workspace .recording-delete,.voice-workspace .recording-delete-all{color:#a9313f}.voice-workspace .recording-delete:hover,.voice-workspace .recording-delete-all:hover{color:#9b2030;border-color:#c75260;background:#fff3f3}.recording-delete svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.voice-workspace .recording-delete:disabled,.voice-workspace .recording-delete-all:disabled{opacity:.4;cursor:default}.voice-workspace .recording-delete-confirm{background:#b83242;border-color:#b83242;color:white}.voice-workspace .recording-delete-confirm:hover{background:#9b2634}.recording-delete-dialog h3{font-size:18px;margin:0 0 12px}.recording-delete-dialog p{line-height:1.7;overflow-wrap:anywhere}.recording-delete-dialog [role=alert]{color:#a9313f}.conversation-history-actions{margin:0 0 14px}.voice-change-history-heading,.isolator-history-heading,.transcription-history-heading,.srt-history-heading{flex-wrap:wrap;row-gap:10px}.voice-workspace[data-appearance=dark] .recording-delete,.voice-workspace[data-appearance=dark] .recording-delete-all{color:#f4a5af}.voice-workspace[data-appearance=dark] .recording-delete:hover,.voice-workspace[data-appearance=dark] .recording-delete-all:hover{background:#3a252c;border-color:#d47786}@media(max-width:760px){.audio-file-actions .recording-delete{margin-left:0}.history-heading-actions{gap:10px}.recording-delete-dialog .dialog-footer{flex-wrap:wrap}.voice-workspace .history-heading-actions .small-button{min-height:34px;padding:7px 10px}}
