/* Focused additions to Emate's existing cream and plum conversation workspace. */
.studio-page .input-strip{display:flex;align-items:end;gap:6px}.studio-page #testAudio{font-size:11px;white-space:nowrap;padding:8px}.session-remaining{font-size:10px;color:var(--muted);white-space:nowrap}.studio-page.is-recording .page-heading h1{font-size:22px}.studio-page.is-recording .page-heading .eyebrow,.studio-page.is-recording .page-heading p:last-child{display:none}.studio-page.is-recording .page-heading{margin-bottom:12px}.studio-page.is-recording .workspace{height:calc(100dvh - 202px);min-height:540px}.studio-page .feed-tools{gap:8px;flex-wrap:wrap}.studio-page #openGlossary{display:inline-flex;align-items:center;gap:5px;font-size:12px}
.terms-dialog,.correction-dialog,#audioCheckDialog{width:min(640px,calc(100vw - 24px));max-height:88dvh;border:1px solid var(--line);border-radius:22px;padding:26px;background:var(--surface);color:var(--text);overflow-y:auto;box-shadow:var(--shadow)}.terms-dialog::backdrop,.correction-dialog::backdrop,#audioCheckDialog::backdrop{background:#17102475;backdrop-filter:blur(5px)}.terms-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.terms-heading h2,.correction-dialog h2{font-size:24px;letter-spacing:-.03em;margin:0 0 8px}.terms-note,.terms-empty{font-size:13px;line-height:1.7;color:var(--muted)}.terms-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.terms-dialog label,.correction-dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.terms-dialog input,.terms-dialog select,.terms-dialog textarea,.correction-dialog input,.correction-dialog textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-weight:400;font-size:14px}.correction-dialog>label{margin:16px 0}.correction-dialog textarea{resize:vertical;min-height:100px;line-height:1.7}.terms-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:12px 0 18px}.terms-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 15px}.terms-row:last-child{border:0}.term-words{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.term-words strong{font-size:14px}.term-words span{font-size:13px;color:var(--muted)}.terms-empty{padding:15px;margin:0}.terms-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}.terms-actions button{font-size:12px}.terms-import,.terms-correction-add,.correction-trace{border-top:1px solid var(--line);padding-top:14px;margin-top:16px;font-size:13px}.terms-import summary,.terms-correction-add summary,.correction-trace summary{cursor:pointer;color:var(--text);font-weight:600;margin-bottom:12px}.terms-status{font-size:12px;line-height:1.6;min-height:20px;color:var(--muted);margin-bottom:0}.correction-trace p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);line-height:1.7}.terms-import input[type=file]{font-size:11px;max-width:100%}#audioCheckLevel{width:100%;height:26px;accent-color:var(--accent)}#audioCheckDialog p{font-size:14px;line-height:1.7;color:var(--muted)}
.citation-source{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:6px;border:1px solid var(--line);background:var(--soft);color:var(--text);font:inherit;font-size:11px;font-weight:600;margin:0 3px;vertical-align:baseline;cursor:pointer}.citation-source:hover{background:var(--lilac);border-color:var(--accent)}.citation-excerpts{display:block;border-top:1px solid var(--line);margin-top:12px;padding-top:10px;white-space:normal}.citation-label{display:block;font-size:11px;color:var(--muted);margin:0 0 7px}.citation-excerpt{display:block;width:100%;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);color:var(--muted);border:1px solid var(--line);border-radius:8px;padding:9px 11px;font-size:12px;line-height:1.65;margin:6px 0;cursor:pointer}.live-card.is-citation-target{outline:2px solid var(--accent);outline-offset:3px;background:var(--soft)}.connection-gap{padding:11px 15px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);background:var(--bg);font-size:11px;line-height:1.6;margin:15px 0}.session-recap{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:23px 25px;margin:18px 0}.session-recap h2{margin:0 0 16px;font-size:20px;letter-spacing:-.025em}.session-recap label{display:block;font-size:12px;color:var(--muted)}.session-recap input{display:block;width:min(100%,520px);box-sizing:border-box;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:11px 13px;margin-top:8px;font:inherit;font-size:15px}.recap-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.recap-actions button{font-size:12px}.session-recap .panel-hint{font-size:12px;line-height:1.7}.history-search{width:100%;margin:12px 0}.history-title{display:block;max-width:100%;overflow-wrap:anywhere}.history-record input,.cloud-record input{max-width:100%;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:9px}.summary-progress{font-size:12px;color:var(--muted)}
@media(max-width:1100px){.studio-page.is-recording .workspace{height:calc(100dvh - 220px)}.studio-page .input-strip{flex-wrap:wrap}.session-remaining{display:none}}
@media(max-width:760px){.studio-page.is-recording .workspace{height:calc(100dvh - 210px);min-height:540px}.studio-page.is-recording .page-heading h1{font-size:19px}.studio-page .input-strip{align-items:center;flex-wrap:nowrap}.studio-page .input-strip>label{flex:1;min-width:0;gap:7px}.studio-page .input-strip select{width:180px;max-width:72%}.studio-page #testAudio{padding:7px 5px;font-size:10px}.terms-dialog,.correction-dialog,#audioCheckDialog{padding:20px 17px;border-radius:18px}.terms-pair{gap:10px}.terms-dialog input,.terms-dialog select,.terms-dialog textarea,.correction-dialog input,.correction-dialog textarea{font-size:16px}.terms-actions{gap:7px}.terms-actions button{flex:1}.terms-actions small{flex:1 1 100%}.terms-heading h2,.correction-dialog h2{font-size:22px}.session-recap{padding:19px 17px}.recap-actions button{flex:1;min-width:120px}.studio-page .feed-tools{gap:2px}.studio-page #openGlossary{font-size:11px;padding:7px}.studio-page .live-feed-toolbar{flex-wrap:wrap;gap:6px}}

.studio-page.is-recording.reading-focus .workspace{height:calc(100dvh - 40px);min-height:450px}@media(max-width:760px){.studio-page.is-recording.reading-focus .workspace{height:calc(100dvh - 20px);min-height:400px}}

/* Keep room for reading when the toolbars and audio controls wrap. */
.studio-page[data-mode=translate]:not(.reading-focus) .workspace{
 height:clamp(760px,calc(100dvh - 258px),1200px);
 min-height:760px;
}
.studio-page[data-mode=translate]:not(.reading-focus).is-recording .workspace{
 height:max(760px,calc(100dvh - 202px));
}
.live-feed,.insight-chat{display:flex;flex-direction:column}
.live-feed>*,.insight-chat>*{flex-shrink:0}
.live-empty,.insight-empty{flex:1 0 auto;min-height:0}
.empty-wave{flex-shrink:0}
/* The notes tab owns scrolling; its content must keep its natural height. */
#insightNotes{overscroll-behavior:contain;scrollbar-gutter:stable}
#insightNotes>*{flex-shrink:0;min-width:0}
/* Inline references keep a 24px target without inheriting paragraph leading. */
.citation-source{min-width:24px;min-height:24px;padding:2px 6px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.citation-source:hover:not(:disabled){transform:none}
@media(max-width:1100px){
 .studio-page[data-mode=translate]:not(.reading-focus).is-recording .workspace{
  height:max(760px,calc(100dvh - 220px));
 }
}
@media(max-width:760px){
 .studio-page[data-mode=translate]:not(.reading-focus) .workspace{
  height:max(680px,calc(100dvh - 300px));
  min-height:680px;
 }
 .studio-page[data-mode=translate]:not(.reading-focus).is-recording .workspace{
  height:max(680px,calc(100dvh - 210px));
 }
}
