/* Voice work area only. Right-panel structure, numbers, fields and switches use the CoS kit. */
.voice-work { min-height:0; }
.voice-work .canvas { min-width:0; min-height:0; flex:1; display:flex; flex-direction:column; overflow:hidden; background:var(--panel); border:1px solid var(--line); border-radius:var(--r-screen,12px); }
.voice-work .titleline { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px 6px; }
.voice-work h1 { font:600 24px/1.2 var(--cond); }
.voice-work .length { color:var(--accent-ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.voice-work #reason,.voice-work #openingContext { padding:6px 22px; font-size:14px; line-height:1.45; }
.voice-work #openingContext { color:var(--accent-ink); }
.voice-work .read { flex:1; min-height:0; overflow:auto; padding:18px 28px 28px; font:25px/1.9 Georgia,serif; }
.voice-work .word { cursor:text; border-radius:3px; }
.voice-work .word.current { background:var(--accent); color:var(--on-accent); }
.voice-work .word.selected { background:var(--accent-soft); box-shadow:0 2px 0 var(--accent); color:var(--text); }
.voice-work .waveDock { flex:none; border-top:1px solid var(--line); padding:8px 14px; height:132px; background:var(--bg-2); }
.voice-work .waveDock canvas { width:100%; height:88px; display:block; touch-action:none; }
.voice-work .wavecaption { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; color:var(--text-2); font-variant-numeric:tabular-nums; }
.voice-work .waveDock.hidden { display:none; }
.voicePanel .sideScroll { overflow-y:auto; overflow-x:hidden; padding:0; }
.voicePanel .sf-panel-foot { display:block; }
.voicePanel .sf-panel-foot>.sf-group { padding:0; border:0; }
.voicePanel .sf-panel-foot .btn.primary,#repair,#play { width:100%; }
.voicePanel #timeLabel { margin:7px 0; font-size:14px; color:var(--text-2); font-variant-numeric:tabular-nums; }
.voice-compare .btn { flex:1; }
.voice-selection { font-size:13px; font-weight:600; margin-bottom:5px; }
.voice-selected-words { max-height:4.3em; overflow:auto; color:var(--text-2); font-size:13px; line-height:1.4; margin-bottom:8px; }
.voicePanel #direction { resize:none; }
.voicePanel #repair { margin-top:8px; }
.voice-quote-note { font-size:12px; margin-top:6px; min-height:1.4em; }
.voice-secondary { margin-top:8px; }
.voice-quote { margin-top:10px; font-size:13px; line-height:1.5; }
.voice-quote summary,.voice-details summary { cursor:pointer; color:var(--text-2); }
.voice-quote p { margin:8px 0; }
.voice-scene-costs { margin-top:10px; }
.voice-status { margin:0 0 8px; font-size:13px; line-height:1.4; max-height:6em; overflow:auto; }
.voice-details { margin-top:12px; font-size:13px; line-height:1.5; }
.voicePanel .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.voicePanel label { margin:8px 0 4px; }
.voicePanel pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.voicePanel .thumbs { display:flex; flex-wrap:wrap; gap:6px; }
.voicePanel .thumb { border:1px solid var(--line); padding:8px; border-radius:8px; }
.voicePanel .thumb .big { display:none; }
.voicePanel .thumb.pinned .big { display:block; font-size:12px; }
.voicePanel #assistantPane { display:none; min-height:0; overflow:auto; flex:1; flex-direction:column; gap:10px; padding:14px; font:14px/1.5 var(--ui); }
.voicePanel.assistantOpen > :not(#assistantPane):not(.sf-grab) { display:none!important; }
.voicePanel.assistantOpen #assistantPane { display:flex; }
.voicePanel .assistantHead { display:flex; align-items:center; justify-content:space-between; }
.voicePanel #conversation { overflow:auto; flex:1; min-height:90px; }
.voicePanel #conversation p { margin:0 0 10px; }
.voicePanel #helpSlot { overflow:auto; }
.voicePanel #assistantTools { display:flex; gap:8px; }
.voicePanel #assistantTools[hidden],.voice-storage[hidden],.invisible-clock,audio { display:none!important; }
body.basic .hands-only { display:none; }
body.hands .basic-only { display:none; }
.voice-manual-foot .btn { width:100%; }
@media(max-width:760px){
 .voice-work .titleline { padding:10px 12px 4px; }
 .voice-work h1 { font-size:20px; }
 .voice-work #reason,.voice-work #openingContext { padding:3px 12px; font-size:12px; }
 .voice-work .read { padding:10px 14px; font-size:20px; line-height:1.65; }
 .voice-work .waveDock { height:92px; padding:4px 8px; }
 .voice-work .waveDock canvas { height:57px; }
 .voice-work .wavecaption { font-size:11px; }
}

.voicePanel button:disabled { opacity:.45; cursor:default; }
