.top-actions .segmented .seg.active{background:#f59e0b;color:#111827;font-weight:700;font-size:12px;border:1px solid #ffda80;box-shadow:0 0 8px #f59e0b35}
.work-mode-label{color:#ffca68;font-size:11px;white-space:nowrap;margin-right:10px}
.voice-dialog{background:#181e29;color:#eef1f8;border:1px solid #535d72;border-radius:12px;padding:24px;max-width:520px;box-shadow:0 12px 55px #0008}
.voice-dialog::backdrop{background:#0009}.voice-dialog p{white-space:pre-line;line-height:1.7}.voice-dialog button{padding:10px 16px}
body.voice-mode .workspace,body.voice-mode .timeline-panel,body.voice-mode .timeline-splitter{display:none!important}
body.voice-mode .app-shell{grid-template-rows:auto minmax(0,1fr)}
#voiceWorkspace{grid-column:1/-1;min-height:0;overflow:auto;background:#0f141e;color:#e6ebf6;padding:22px}
#voiceWorkspace[hidden]{display:none}
.voice-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:20px}.voice-heading h1{font-size:25px;margin:8px 0}.voice-heading p,.voice-note,.voice-local-status{color:#9eacc3;font-size:12px;line-height:1.6}
.voice-local-status{padding:12px;border:1px solid #354258;border-radius:8px}.voice-context{background:#171f2d;border:1px solid #313f54;border-radius:12px;padding:16px;margin-bottom:20px}.voice-context summary{cursor:pointer;font-weight:700;font-size:15px}.voice-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
.voice-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#adbad0;margin-bottom:12px}.voice-field input,.voice-field textarea,.voice-field select{width:100%;min-width:0;background:#0f1623;border:1px solid #3c4960;color:#f0f3fa;padding:9px;border-radius:6px;line-height:1.5}.voice-field textarea{resize:vertical}.voice-field :focus{outline:2px solid #f59e0b;outline-offset:1px}.voice-field :disabled{opacity:.55}
.voice-lock{display:flex;align-items:center;gap:6px;color:#e6b660;font-size:12px;margin:12px 0}.voice-lock input{width:auto}.voice-columns{display:grid;grid-template-columns:250px minmax(320px,1fr) 290px;gap:18px;align-items:start}.voice-columns h2,.voice-timeline h2{font-size:15px;margin:0 0 15px}.voice-cast,.voice-script,.voice-segment-settings,.voice-timeline{background:#171f2d;border:1px solid #313f54;border-radius:12px;padding:16px;min-width:0}.voice-character-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.voice-character-tabs button.active{color:#161b23;background:#f59e0b}.voice-cast .button-row{margin-bottom:16px}.voice-script .button-row{flex-wrap:wrap}.voice-file-button{border:1px solid #3c4960;border-radius:6px;padding:8px;cursor:pointer;font-size:12px}.voice-card{display:block;text-align:left;width:100%;padding:14px;margin:10px 0;border:1px solid #39455e;border-radius:8px;background:#101827;color:#ecf0f8}.voice-card.selected{border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b}.voice-card p{white-space:pre-wrap;margin:8px 0}.voice-card small{color:#a2b0c9}.voice-empty{color:#8999b2;padding:25px 0}.voice-errors{color:#ffb5b5;white-space:pre-line;margin-top:12px}.voice-timeline{margin-top:18px;overflow:auto}.voice-timeline>span{color:#a2b0c9;font-size:12px}
@media(max-width:1100px){.voice-columns{grid-template-columns:220px minmax(300px,1fr)}.voice-segment-settings{grid-column:1/-1}.voice-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.voice-local-status{display:none}}
@media(max-width:650px){.voice-columns,.voice-context-grid{grid-template-columns:1fr}#voiceWorkspace{padding:12px}.voice-heading h1{font-size:20px}}
.voice-analysis-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0 20px}.voice-analysis-bar>span,.voice-analysis-bar>small{color:#b7c5d8;font-size:12px}.voice-analysis-bar button:first-child{background:#f59e0b;color:#131722;font-weight:700}.voice-segment-settings{max-height:1000px;overflow:auto}
.voice-request-error{width:100%;margin:8px 0;padding:12px;border:1px solid #b76774;border-radius:8px;background:#321e2a;color:#ffd1d6;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.voice-generation-bar>span{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;user-select:text}
.voice-generation-bar{padding:0 0 15px}.voice-generation-bar>span{margin:10px;color:#ffcc79}.voice-player{display:flex;align-items:center;gap:8px;padding:14px 0;flex-wrap:wrap}.voice-player label{display:flex;align-items:center;gap:10px;flex:1}.voice-player input{flex:1}.voice-wave-list{display:flex;gap:3px;overflow:auto;padding-bottom:8px}.voice-wave{min-width:140px;max-width:260px;background:#243140;border:1px solid #778194;color:#dfe7f5;padding:6px;text-align:left}.voice-wave.selected{border-color:#f59e0b}.voice-wave canvas{width:100%;height:48px;display:block}.voice-wave span{font-size:11px}
#voiceVersionControls .button-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}#voiceVersionControls h3{font-size:14px}#voiceVersionControls hr{border:0;border-top:1px solid #3b4759;margin:18px 0}.voice-card.dragging,.voice-wave.dragging{opacity:.4}
.voice-wave{min-width:0;max-width:none}.voice-wave-list{gap:0}.voice-wave span{white-space:nowrap;overflow:hidden;display:block}.voice-wave-list:empty{min-height:65px}
.voice-transfer{margin:18px 0;padding:18px;background:#172131;border:1px solid #38465d;border-radius:10px}.voice-transfer h2{font-size:15px}.voice-transfer button{margin-right:8px}
.voice-export-bar{display:flex;gap:10px;align-items:center;padding:18px 0}.voice-export-bar span{font-size:12px;color:#adbad0}

/* 3.2: one full-width studio; the public editor's layout is untouched. */
#voiceWorkspace{padding:18px 24px}.voice-heading{margin-bottom:14px}.voice-heading h1{font-size:21px}.voice-context,.voice-cast,.voice-script,.voice-timeline,.voice-segment-settings{margin:0 0 14px;padding:14px;border-color:#303e52}.voice-cast>summary{cursor:pointer;font-size:15px;font-weight:700}.voice-cast>summary small{font-weight:400;color:#9baac1;margin-left:12px}.voice-cast-actions{display:flex;align-items:center;gap:15px;margin:12px 0}.voice-character-records{overflow-x:auto}.voice-character-record{min-width:1030px;padding:10px;margin-bottom:7px;border:1px solid #354258;border-radius:8px;background:#101927;outline:none}.voice-character-record.selected{border-color:#f7b348;background:#222233;box-shadow:inset 3px 0 #f7b348}.voice-character-line{display:grid;gap:8px;align-items:end}.voice-character-line.first{grid-template-columns:25px 115px 85px 70px minmax(205px,1fr) 90px 100px 34px;margin-bottom:7px}.voice-character-line.second{grid-template-columns:1.4fr 1.15fr 1fr .8fr 1fr 1fr 1.3fr 1.1fr 100px}.voice-character-record .voice-field{gap:3px;margin:0;font-size:11px;min-width:0}.voice-character-record input,.voice-character-record select,.voice-character-record .voice-field button{padding:5px 7px;min-height:31px;line-height:1.3;height:31px;font-size:12px}.voice-character-record .voice-field button{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.voice-character-record .voice-lock{margin:0;height:31px;white-space:nowrap}.voice-character-record .voice-lock input{min-height:0;height:auto}.voice-drag-grip{cursor:grab;padding:4px}.voice-character-record:focus-visible{outline:2px solid #f7b348}.voice-conflict{color:#ffcf85;font-size:11px;margin:6px 0 0}.voice-context-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.voice-context-grid textarea{min-height:64px}.voice-script>h2{font-size:15px}.voice-script textarea[data-voice=script]{font-size:14px;line-height:1.75;max-height:900px;min-height:100px}.voice-script-actions,.voice-work-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.voice-work-actions{border-top:1px solid #303e52;margin-top:12px;padding-top:8px}.voice-analysis-bar,.voice-generation-bar{padding:4px 0;margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.voice-generation-bar .voice-note{width:100%;margin:4px 0}.voice-script-index{display:flex;overflow:auto;gap:5px;max-height:110px}.voice-script-index .voice-card{min-width:180px;max-width:250px;margin:0;padding:8px;font-size:11px}.voice-script-index .voice-card p{max-height:2.8em;overflow:hidden;margin:4px 0}.voice-segment-settings{max-height:none}.voice-preset-dialog{width:min(620px,92vw);max-width:620px;max-height:86vh;overflow:auto}.voice-preset-dialog input[type=search]{width:100%;padding:8px}.voice-preset-tabs{display:flex;gap:5px;margin:10px 0}.voice-preset-options{max-height:310px;overflow:auto;border:1px solid #354258;padding:7px;margin-bottom:12px}.voice-preset-option{display:flex;align-items:center;gap:8px;min-height:35px}.voice-preset-option label{flex:1;display:flex;align-items:center;gap:8px;font-size:13px}.voice-preset-option button{padding:3px 10px;color:#ffca68}.voice-segment-settings #voiceSegmentInspector{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.voice-segment-settings #voiceSegmentInspector>p,.voice-segment-settings #voiceVersionControls{grid-column:1/-1}#voiceVersionControls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#voiceVersionControls>hr,#voiceVersionControls>.voice-note,#voiceVersionControls>h3{grid-column:1/-1;width:100%}#voiceVersionControls .voice-field{margin:0}
@media(max-width:1000px){.voice-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.voice-segment-settings #voiceSegmentInspector{grid-template-columns:repeat(2,minmax(0,1fr))}.voice-character-records{max-width:100%}#voiceWorkspace{padding:12px}.voice-export-bar{flex-wrap:wrap}}
@media(max-width:650px){.voice-context-grid,.voice-segment-settings #voiceSegmentInspector,#voiceVersionControls{grid-template-columns:1fr}.voice-heading h1{font-size:18px}.voice-cast-actions{align-items:start;flex-direction:column}.voice-character-record{min-width:1030px}.voice-cast{overflow:hidden}}
.voice-prompt-dialog{width:min(900px,94vw);max-height:90vh;overflow:auto}.voice-prompt-dialog textarea{width:100%;box-sizing:border-box}.voice-prompt-dialog section{margin-top:16px;border-top:1px solid #455067;padding-top:12px}
.voice-time-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;border:1px solid #313c50;border-radius:8px;background:#0d121b}.voice-time-content{position:relative;min-width:100%;touch-action:pan-y}.voice-time-ruler{height:30px;position:relative;border-bottom:1px solid #455167;pointer-events:none}.voice-time-ruler span{position:absolute;top:4px;font:11px monospace;color:#a6b4ca;border-left:1px solid #58667d;padding-left:4px}.voice-time-track{position:relative;border-bottom:1px solid #303b4e;min-height:36px;overflow:hidden}.voice-time-script-track{height:78px}.voice-time-script{position:absolute;top:4px;bottom:4px;box-sizing:border-box;overflow:hidden;padding:5px!important;text-align:left;background:#252f44;border:1px solid;border-radius:5px;display:flex;flex-direction:column;white-space:nowrap;gap:2px}.voice-time-script span{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:12px}.voice-time-script small{font:10px monospace;color:#c5cddd}.voice-time-script.playing{background:#615030;box-shadow:inset 0 0 0 2px #ffbf63}.voice-time-wave{position:absolute;top:0;background:#87baff0a;border-left:1px solid #536981;box-sizing:border-box}.voice-time-wave canvas{width:100%;height:100%;pointer-events:none}.voice-track-label{position:sticky;left:4px;top:0;z-index:3;background:#101826d9;display:inline-block;font-size:11px;max-width:70%;pointer-events:none}.voice-track-label button{font-size:11px!important;padding:3px 6px!important;pointer-events:auto}.voice-time-selection{position:absolute;top:30px;bottom:0;background:#ff9e2525;outline:1px solid #ffac4c;z-index:4;pointer-events:none;box-sizing:border-box}.voice-time-selection [data-range-handle]{position:absolute;top:0;bottom:0;width:9px;border:0!important;border-radius:0!important;background:#ffad61a0!important;padding:0!important;pointer-events:auto;cursor:ew-resize}.voice-time-selection [data-range-handle="start"]{left:-4px}.voice-time-selection [data-range-handle="end"]{right:-4px}.voice-time-head{position:absolute;top:0;bottom:0;border-left:2px solid #fa658d;z-index:5;pointer-events:none}.voice-range-toolbar,.voice-range-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0;font-size:12px}.voice-range-options input[type=number]{width:70px}.voice-wave-resizer{cursor:ns-resize;text-align:center;color:#9eb1cd;background:#1e2839;font-size:10px;padding:3px;touch-action:none}.voice-range-part{display:grid;grid-template-columns:160px 1fr 1fr 1fr;align-items:start;gap:10px;margin:8px 0;padding:10px;border:1px solid #445166;border-radius:6px}.voice-range-part textarea{width:100%;box-sizing:border-box}.voice-range-part .voice-conflict{grid-column:1/-1}.voice-lyrics-bar{width:100%;padding:8px 0}.voice-lyrics-bar>span{margin-left:12px}.voice-generation-bar{width:100%}.voice-player{flex-wrap:wrap}.voice-player label{min-width:120px}#voiceSegments[hidden]{display:none!important}@media(max-width:850px){.voice-range-part{grid-template-columns:1fr}.voice-range-part .voice-conflict{grid-column:1}.voice-time-scroll{max-width:calc(100vw - 60px)}}
.voice-character-record *{box-sizing:border-box}.voice-character-record .voice-field>span{height:15px}.voice-character-record .voice-lock input{height:14px;min-height:14px}.voice-character-record .voice-field button{border:1px solid #3c4960;background:#172131;color:#edf1fa;border-radius:5px}.voice-prompt-dialog{max-width:900px}
/* Emphasize character identity fields by exactly 1pt without resizing the grid. */
.voice-character-record :is(.voice-name,.voice-gender,.voice-age)>span{font-size:calc(11px + 1pt);font-weight:700}
.voice-character-record :is(.voice-name,.voice-gender,.voice-age)>input{font-size:calc(12px + 1pt);font-weight:700}
.voice-job-status{width:100%;border:1px solid #45536a;border-radius:8px;padding:12px;font-size:12px}.voice-job-row{padding:8px;border-top:1px solid #3d4b60;overflow-wrap:anywhere;user-select:text}.voice-job-row.success{color:#9fe1b9}.voice-job-row.failed,.voice-job-row.unknown,.voice-job-row.invalid-result{color:#ffbe92}.voice-job-row p{white-space:pre-wrap}
.voice-page-index{display:flex;gap:6px;overflow:auto;margin-bottom:16px;padding:3px}.voice-page-index button{flex-shrink:0;padding:8px 12px;background:#302744;border:1px solid #8565b6;color:#ddc9ff;border-radius:6px}
.voice-split-dialog .voice-split-pages>.voice-split-boundary{position:relative;box-sizing:border-box;height:4px;min-height:0;line-height:4px;margin:14px 0;padding:0;font-size:11px;overflow:visible;user-select:none}.voice-split-dialog .voice-split-boundary::before{content:'';position:absolute;inset:-12px 0;z-index:1}.voice-split-dialog .voice-split-source{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.voice-split-dialog .voice-split-page{contain:layout style}.voice-split-pages{scrollbar-gutter:stable}
.voice-split-page.over-limit{border:2px solid #f69438;background:#34241e}.voice-split-page.over-limit .voice-split-source{color:#ed8937}.voice-split-page.over-limit .voice-split-page-info,.voice-split-warning{color:#ffc38c}.voice-split-page.over-limit .voice-split-watermark{color:#ff962f}.voice-split-pages .voice-split-boundary.over-limit{border-top:3px solid #fa962e;color:#ffc087}.voice-split-warning{font-size:13px;white-space:pre-line;line-height:1.6}.voice-split-dialog [data-split-confirm]:disabled{background:#3c3b40;color:#918d8a;cursor:not-allowed}
.voice-split-page{position:relative}.voice-split-page-info{font-size:13px;color:#baccdf;line-height:1.5;margin:0 0 18px}.voice-split-watermark{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-size:clamp(28px,4vw,65px);font-weight:800;opacity:.1;color:#bdc7e3}.voice-split-source{position:relative;font-family:inherit;font-size:15px;line-height:1.9}
.voice-split-page{padding:22px;background:#172031;border:1px solid #35425a;border-radius:8px;min-height:140px}.voice-split-pages .voice-split-boundary{display:block;width:100%;border:0;border-top:2px dashed #8b79b6;border-radius:0;margin:14px 0;padding:6px;background:transparent;color:#b8a9d9;cursor:ns-resize;touch-action:none}.voice-split-pages .voice-split-boundary.manual{border-top:3px solid #ffaf43;color:#ffbf69}.voice-split-pages .voice-split-boundary:hover,.voice-split-pages .voice-split-boundary:focus-visible{background:#ffa63125;outline:2px solid #ffca76}
.voice-dialog.voice-split-dialog{width:min(1180px,94vw);max-width:1180px;height:90vh;max-height:90vh;box-sizing:border-box;padding:22px;overflow:hidden}.voice-split-dialog[open]{display:flex;flex-direction:column}.voice-split-dialog header h2{margin:0;font-size:21px}.voice-split-dialog header p{font-size:12px;color:#aabbcf;margin:8px 0 15px}.voice-split-pages{flex:1;overflow:auto;min-height:0;padding:14px 22px;background:#0f1520;border-radius:8px}.voice-split-source{font:15px/1.9 inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.voice-split-dialog footer{display:flex;justify-content:flex-end;gap:10px;padding-top:14px}.voice-split-impact{font-size:12px;white-space:pre-wrap;color:#ffc082;margin:10px 0 0}
/* Voice navigation only; MP4/GIF layout is intentionally unchanged. */
.voice-request-diagnostics{grid-column:1/-1;font-size:12px;border-top:1px solid #3c4960;padding-top:10px}.voice-request-diagnostics summary{cursor:pointer;color:#b4c4de}.voice-request-diagnostics p{font-size:11px;color:#a6b8d0}.voice-request-diagnostics button{margin:4px;padding:6px}.voice-request-diagnostics pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#0d1420;padding:10px;user-select:text}
.voice-suitability{display:inline-block;border-radius:4px;padding:3px 6px;white-space:nowrap;font-size:10px;font-weight:600}.voice-suitability.narration{background:#214b72;color:#bce1ff}.voice-suitability.role{background:#623b17;color:#ffce98}.voice-suitability.common{background:#364052;color:#d8dfeb}.voice-recommend{font-size:11px;color:#d4bfff;white-space:nowrap}.voice-preset-evidence{font-size:12px;color:#adbbd2}.voice-preset-option label{min-width:0}.voice-preset-option>button{flex-shrink:0}.voice-preset-option{padding:4px 0;border-bottom:1px solid #303b50}
/* 3.8 character identity and fixed acting directions, scoped away from MP4/GIF. */
.voice-character-records{overflow-x:visible}.voice-character-record{min-width:0}.voice-character-line.first{grid-template-columns:24px 138px 78px 78px 190px minmax(240px,1fr);align-items:end}.voice-character-line.second{grid-template-columns:repeat(4,minmax(120px,1fr));row-gap:9px;margin-top:10px}.voice-character-record .voice-field>span{height:auto;min-height:17px}.voice-character-record .voice-identity :is(input,select){background:#242e43;border-color:#7286aa;font-weight:700;font-size:calc(12px + 1pt)}.voice-character-record .voice-identity>span{color:#e2eaff;font-weight:750}.voice-identity b{color:#ffcc8a}.voice-character-record .voice-actingDirection>span{display:flex;gap:5px;align-items:center;flex-wrap:wrap;color:#d4dff2}.voice-actingDirection small{font-size:10px;color:#a5b6cd}.voice-character-record .voice-actingDirection [data-acting-examples]{height:auto;min-height:0;padding:2px 7px;font-size:10px;margin-left:auto}.voice-character-record [data-acting-edit]{width:100%;font-weight:500}.voice-character-more{margin-top:12px;font-size:11px;color:#acbdd6}.voice-character-more summary{cursor:pointer}.voice-character-footer{display:flex;gap:12px;align-items:center;margin-top:8px}.voice-character-footer>button{margin-left:auto;background:#202a3b;border:1px solid #49586c;border-radius:5px;color:#cdd8ea}.voice-character-validation{color:#ffbd97;font-size:12px}.voice-character-record [aria-invalid=true]{border-color:#ff897c}.voice-dialog.voice-acting-dialog{width:min(900px,94vw);max-width:900px;max-height:90vh;overflow:auto;box-sizing:border-box}.voice-acting-dialog header{display:flex;justify-content:space-between;gap:15px;align-items:center}.voice-acting-dialog h2{font-size:19px}.voice-acting-dialog textarea{font-size:15px;line-height:1.8;min-height:200px;box-sizing:border-box}.voice-acting-examples summary{cursor:pointer;color:#ffce83}.voice-acting-examples article{padding:12px 0;border-bottom:1px solid #41506a}.voice-acting-examples h3{font-size:15px}.voice-acting-examples p{font-size:14px}.voice-acting-dialog button{border:1px solid #65708a;background:#26324a;border-radius:6px;color:#eef2fa}.voice-acting-dialog :focus-visible{outline:2px solid #ffc175;outline-offset:2px}
@media(max-width:1450px){.voice-character-line.first{grid-template-columns:24px minmax(110px,1fr) 78px 78px 180px}.voice-character-line.first .voice-actingDirection{grid-column:2/-1}}@media(max-width:900px){.voice-character-line.first{grid-template-columns:24px minmax(100px,1fr) 85px 85px}.voice-character-line.first .voice-voice{grid-column:2/4;width:180px}.voice-character-line.first .voice-actingDirection{grid-column:2/-1}.voice-character-line.second{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.voice-character-record{min-width:0}.voice-character-line.first{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr)}.voice-character-line.first .voice-name{grid-column:2/-1}.voice-character-line.first .voice-gender{grid-column:2}.voice-character-line.first .voice-age{grid-column:3}.voice-character-line.first .voice-voice{grid-column:2/-1;width:160px;max-width:100%}.voice-character-line.first .voice-actingDirection{grid-column:1/-1}.voice-character-line.second{grid-template-columns:1fr}.voice-character-footer{flex-wrap:wrap}.voice-dialog.voice-acting-dialog{padding:15px}.voice-acting-dialog h2{font-size:16px}}
.voice-step-progress{max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#ffca79}.voice-step-slot{max-width:100%;flex-wrap:wrap}
.voice-studio-shell{display:grid;grid-template-columns:172px minmax(0,1fr);gap:20px;align-items:start}
.voice-sidebar{position:sticky;top:0;background:#151d2b;border:1px solid #354057;border-radius:10px;padding:8px}
.voice-sidebar [role=tablist]{display:flex;flex-direction:column;gap:8px}
.voice-sidebar [role=tab]{display:flex;align-items:center;gap:10px;text-align:left;padding:13px 9px;border:1px solid transparent;background:transparent;color:#c5cee0;border-radius:7px;font-size:13px}
.voice-sidebar [role=tab][aria-selected=true]{background:#7560d632;border-color:#9275ff;color:#fff}
.voice-sidebar small{display:block;font-size:10px;color:#a9b6ce;margin-top:5px}.voice-tab-icon{font-size:20px;color:#ffc46a}.voice-studio-content{min-width:0}
.voice-studio-content>[hidden]{display:none!important}.voice-studio-content>[role=tabpanel]{min-width:0}.voice-studio-content .voice-work-actions{margin-bottom:18px}
.voice-step-toolbar{background:#182235;border:1px solid #40506b;border-radius:12px;padding:16px;margin-bottom:16px}.voice-step-sequence{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.voice-step-slot{display:inline-flex;align-items:center;gap:6px}.voice-step-slot button{border:1px solid #8f74ec;border-radius:7px;background:#6650b7;color:white;padding:10px 14px;font-weight:700;font-size:13px}.voice-step-slot button[hidden]{display:none}.voice-step-extras{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.voice-step-extras:empty{display:none}
.voice-step-slot{position:relative}.voice-step-toolbar [data-step-state=complete]{background:#184936;color:#b6f5d2;border-color:#51a47b}.voice-step-toolbar [data-step-state=complete]::before{content:'✓ ';font-weight:bold}.voice-step-toolbar [data-step-state=disabled]{background:#252c39;color:#8897ad;border-color:#3b4658;cursor:not-allowed}.voice-step-toolbar [data-step-state=error]{background:#6b2733;border-color:#f28a98}.voice-disabled-help{display:none;position:absolute;z-index:12;top:100%;left:0;min-width:210px;max-width:300px;padding:9px;background:#080e17;border:1px solid #72819a;border-radius:6px;font-size:12px;color:#eef2fb;box-shadow:0 5px 20px #0008}.voice-step-slot:hover>.voice-disabled-help:not(:empty),.voice-step-slot:focus-within>.voice-disabled-help:not(:empty){display:block}.voice-step-extras{position:relative}.voice-step-extras:focus-within>.voice-disabled-help:not(:empty){display:block}.voice-workflow-impact,.voice-edit-impact{color:#ffc479;font-size:12px;line-height:1.6}.voice-workflow-impact:empty{display:none}
@media(max-width:850px){.voice-studio-shell{grid-template-columns:105px minmax(0,1fr);gap:10px}.voice-sidebar{padding:4px}.voice-sidebar [role=tab]{font-size:11px;gap:5px;padding:12px 3px}.voice-tab-icon{display:none}}
@media(max-width:600px){.voice-studio-shell{grid-template-columns:minmax(0,1fr)}.voice-sidebar{position:static}.voice-sidebar [role=tablist]{flex-direction:row;flex-wrap:wrap}.voice-sidebar [role=tab]{flex:1;min-width:100px;padding:8px}.voice-sidebar small{margin-top:2px}}
/* 3.9 identity is visible without duplicating editable demographic overrides. */
.voice-segment-identity{grid-column:1/-1;border:1px solid #5b6280;border-radius:8px;padding:12px;background:#1c2636}
.voice-segment-identity dl{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0}.voice-segment-identity dt{color:#aebcd1;font-size:11px}.voice-segment-identity dd{margin:4px 0;font-weight:700}.voice-segment-identity p{white-space:pre-wrap;overflow-wrap:anywhere}.voice-intensity-help,.voice-emotion-migrations{grid-column:1/-1}.voice-voice-facts{margin:5px 0}.voice-intensity-explanation{font-size:12px;margin:6px 0}
.voice-units{grid-column:1/-1;padding:10px;border:1px solid #4b5367;border-radius:8px}.voice-units article,.voice-audition-dialog article{margin:8px 0;padding:8px;border:1px solid #48516a;border-radius:6px}.voice-units textarea,.voice-units input,.voice-audition-dialog textarea{width:100%;max-width:100%}.voice-audition-dialog{width:min(840px,94vw);max-height:90vh;overflow:auto}.voice-audition-dialog label{display:block;margin:8px 0}.voice-audition-dialog pre{white-space:pre-wrap;max-height:230px;overflow:auto;font-size:12px}.voice-audition-dialog p{overflow-wrap:anywhere}
.voice-request-table{width:100%;border-collapse:collapse;font-size:12px}.voice-request-table th,.voice-request-table td{padding:6px;border:1px solid #39465a;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.voice-request-table th{width:120px}
.voice-compare-grid{display:grid;grid-template-columns:128px minmax(0,1fr);max-width:100%;overflow:hidden}
.voice-compare-controls{position:relative;z-index:4;background:#172131;border-right:1px solid #45536c}
.voice-compare-ruler-label{height:24px;box-sizing:border-box;font-size:11px;padding:4px 8px;color:#abc1dc}
.voice-compare-card{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:3px 8px;box-sizing:border-box;border-top:1px solid #39465a;min-height:36px}
.voice-compare-card strong{font-size:12px;line-height:14px}
.voice-compare-card>div{display:flex;gap:6px}
.voice-compare-card button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:26px;padding:3px;border-radius:5px}
.voice-compare-card.playing{background:#3d3267;box-shadow:inset 3px 0 #ae96ff}
.voice-compare-card button[aria-pressed=true]{background:#8061ed}
.voice-compare-card button:focus-visible,.voice-wave-resizer:focus-visible{outline:2px solid #ffd17c;outline-offset:-2px}
.voice-compare-content{position:relative}
.voice-compare-content>.voice-time-ruler{height:24px;box-sizing:border-box}
.voice-compare-content>.voice-time-head{top:0;bottom:0;pointer-events:none;z-index:3}
.voice-compare-grid>.voice-compare-scroll{min-width:0;margin:0;overflow-x:auto}
@media(max-width:600px){.voice-compare-grid{grid-template-columns:110px minmax(0,1fr)}.voice-compare-card{padding:3px 5px}}
.voice-compare-grid{border:1px solid #37455a;border-radius:6px}
.voice-compare-grid>.voice-compare-scroll{border:0;border-radius:0}
.voice-compare-content>.voice-time-track{box-sizing:border-box}
.voice-compare-card{display:grid;grid-template-columns:1fr auto;align-items:center;padding:3px 4px}
.voice-axis-grid,.voice-compare-grid{display:grid;grid-template-columns:var(--voice-controls-width,128px) minmax(0,1fr);border:1px solid #37455a;border-radius:6px;overflow:hidden;min-width:0}
.voice-axis-grid>.voice-time-scroll{border:0;border-radius:0;min-width:0;max-width:none}
.voice-axis-gutter{background:#172131;border-right:1px solid #45536c;font-size:11px;box-sizing:border-box}
.voice-axis-gutter>div{display:flex;align-items:center;padding:4px 8px;box-sizing:border-box;border-bottom:1px solid #39465a}
#voiceWorkspace{--voice-controls-width:128px}
@media(max-width:600px){#voiceWorkspace{--voice-controls-width:110px}.voice-axis-grid,.voice-compare-grid{grid-template-columns:var(--voice-controls-width) minmax(0,1fr)}}
.voice-compare-card strong{overflow-wrap:normal}
@media(max-width:600px){.voice-compare-card{padding:3px 3px}.voice-compare-card strong{font-size:11px}.voice-compare-card>div{gap:3px}}
