/* Emate conversation workspace: readable transcript first, tools within reach. */
.studio-page .app-main{padding:23px 25px 18px;max-width:none}.studio-page .page-heading{margin-bottom:17px}.studio-page .page-heading h1{font-size:27px}.studio-page .page-heading p:last-child{font-size:12px}.studio-page .assistant-modes{margin-bottom:16px}.studio-page .heading-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}.studio-page .heading-actions .secondary{font-size:12px;padding:9px 12px}.studio-page .workspace{height:clamp(550px,calc(100dvh - 258px),1000px);min-height:550px;gap:14px;align-items:stretch}.studio-page[data-mode=translate].insights-open .workspace{grid-template-columns:minmax(0,1fr) 340px}.studio-page .stage{height:100%;display:flex;flex-direction:column;min-height:0}.studio-page .toolbar{gap:10px;padding:14px 18px;flex-wrap:wrap;flex-shrink:0}.studio-page .language-pair{gap:7px}.studio-page .language-pair label{font-size:10px}.studio-page .language-pair select{font-size:12px;width:115px}.studio-page .reading-actions button{font-size:10px;padding:7px 9px}.studio-page .reading-bar{margin-left:auto}.live-feed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex-shrink:0}.caption-view{display:flex;background:var(--bg);padding:3px;border-radius:9px;gap:3px}.caption-view button{font-size:11px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted)}.caption-view button[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 2px 7px #00000009}.feed-tools{display:flex;align-items:center;gap:10px}.feed-tools>span{font-size:10px;color:var(--muted)}.feed-tools button{font-size:11px;padding:6px 9px;display:flex;align-items:center;gap:5px}.feed-tools .icon{height:15px;width:15px}.live-feed-wrap{flex:1;min-height:0;position:relative;background:var(--bg)}.live-feed{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:21px 22px;outline-offset:-4px}.live-empty{min-height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px 15px}.live-empty .eyebrow{font-size:9px;letter-spacing:.17em;margin:25px 0 12px}.live-empty h2{font-size:29px;margin:0 0 13px;font-weight:600;letter-spacing:-.04em}.live-empty>p:not(.eyebrow){font-size:12px;line-height:1.9;color:var(--muted);margin:0}.empty-wave{display:flex;gap:5px;align-items:center;height:40px}.empty-wave i{width:5px;height:13px;border-radius:4px;background:var(--accent);opacity:.8}.empty-wave i:nth-child(2),.empty-wave i:nth-child(6){height:22px}.empty-wave i:nth-child(3),.empty-wave i:nth-child(5){height:33px}.empty-wave i:nth-child(4){height:42px}.empty-guide{display:flex;gap:17px;margin:23px 0;font-size:10px;color:var(--muted)}.empty-guide span{display:flex;align-items:center;gap:5px}.empty-guide .icon{width:14px;height:14px}.live-empty button{font-size:11px;padding:9px 14px}.live-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:17px 20px;margin-bottom:13px;overflow-wrap:anywhere}.live-card:last-child{margin-bottom:20px}.live-card.is-pending{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}.live-card.is-bookmarked{border-left:3px solid var(--accent)}.live-card-meta{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted);min-height:26px;margin-bottom:9px;flex-wrap:wrap}.speaker-name{background:var(--soft);border:0;color:var(--accent);border-radius:20px;padding:4px 9px;font-size:10px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.speaker-name:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:6px}.live-card-meta time{font-variant-numeric:tabular-nums}.card-progress{margin-left:auto;font-size:9px}.card-original{font-size:15px;line-height:1.75;color:var(--muted);margin:0 0 8px;white-space:pre-wrap}.card-translation{font-size:21px;line-height:1.75;font-weight:520;margin:0;white-space:pre-wrap;letter-spacing:-.01em}.card-original .provisional,.card-translation .provisional{opacity:.85}.translation-wait{display:block;height:25px;max-width:65%;border-radius:5px;background:linear-gradient(90deg,var(--soft),var(--line),var(--soft));background-size:200% 100%;animation:shimmer 1.5s infinite}.card-actions{display:flex;gap:3px;justify-content:flex-end;align-items:center;margin-top:12px}.card-actions button{display:inline-flex;gap:4px;align-items:center;font-size:10px;padding:5px 8px;border:0;background:transparent;color:var(--muted);border-radius:7px}.card-actions button:hover,.card-actions button:focus-visible,.card-actions button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.card-actions .icon{width:13px;height:13px}.follow-latest{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:25px;padding:9px 15px;background:var(--surface);color:var(--accent);box-shadow:var(--shadow);font-size:11px;white-space:nowrap}.live-selection-bar{display:flex;align-items:center;justify-content:space-between;background:var(--soft);padding:7px 18px;font-size:11px}.live-selection-bar button{font-size:10px;padding:5px 9px}.live-session-banner{padding:8px 19px;font-size:11px;background:var(--soft);color:var(--accent);border-top:1px solid var(--line)}.studio-page .control{padding:13px 17px;min-height:75px;gap:8px;flex-wrap:wrap;flex-shrink:0}.studio-page .input-strip{margin:0;gap:0;flex:1 1 160px}.studio-page .input-strip>label{font-size:10px}.studio-page .input-strip select{font-size:11px;max-width:185px}.studio-page #start,.studio-page #pauseLive{font-size:12px;padding:10px 13px;white-space:nowrap}.studio-page .studio-control-end{justify-content:space-between;width:100%}.studio-page #notice{padding:0 17px 8px;font-size:10px;min-height:25px;flex-shrink:0}.studio-page .studio-save-status{padding:9px 17px;flex-shrink:0}.studio-page .workspace-tips{margin:12px 0 0}.studio-page .transcripts{flex:1;min-height:0;height:auto}.studio-page[data-caption-view=cards] .transcripts{display:none}.studio-page[data-caption-view=columns] .live-feed-wrap{display:none}.studio-page[data-caption-view=columns] .live-selection-bar{display:none}.studio-page .transcripts article{min-height:0}.studio-page .transcripts .transcript{overscroll-behavior:contain}.studio-page[data-mode=translate] .answer-card{display:none}.studio-page:not([data-mode=translate]) .workspace{height:auto}.studio-page:not([data-mode=translate]) .stage{min-height:620px;height:76dvh}.studio-page:not([data-mode=translate]) .answer-card{height:auto}.studio-page:not([data-mode=translate]) #toggleInsights{display:none}.studio-page:not([data-mode=translate]) .live-feed-wrap{display:none}.studio-page:not([data-mode=translate]) .transcripts{display:grid}.studio-page:not([data-mode=translate]) .live-feed-toolbar{display:none}
.insight-panel{padding:0;margin:0;position:static;width:100%;max-width:none;height:100%;max-height:none;min-height:0;border-radius:18px;box-shadow:none;overflow:hidden;border:1px solid var(--line);background:var(--surface);color:var(--text)}.insight-panel[open]{display:flex;flex-direction:column}.insight-header{padding:20px 20px 14px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.insight-header .eyebrow{font-size:8px;letter-spacing:.15em}.insight-header h2{font-size:18px;letter-spacing:-.03em;margin:8px 0 0}.insight-header .icon-button{width:29px;height:29px}.insight-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 16px;gap:6px;flex-shrink:0}.insight-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;padding:11px 8px;border:0;border-radius:0;background:transparent;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.insight-tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent)}.insight-tabs .icon{width:15px;height:15px}.insight-section{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px;overflow:auto}.insight-chat{flex:1;min-height:90px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 2px 15px;outline-offset:-3px}.insight-empty{min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:12px 7px}.insight-empty>.icon{width:31px;height:31px;opacity:.65;margin-bottom:20px}.insight-empty h3{font-size:17px;margin:0 0 12px;line-height:1.5}.insight-empty p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.insight-suggestions{display:flex;gap:6px;flex-wrap:wrap;padding:10px 0}.insight-suggestions button{padding:6px 9px;border-radius:20px;background:var(--bg);color:var(--muted);border:1px solid var(--line);font-size:10px}.insight-compose{display:flex;align-items:flex-end;border:1px solid var(--line);border-radius:13px;padding:8px;background:var(--bg);gap:6px;flex-shrink:0}.insight-compose:focus-within{border-color:var(--accent)}.insight-compose textarea{border:0;background:transparent;box-shadow:none!important;outline:none!important;resize:none;min-height:56px;max-height:140px;font-size:12px;line-height:1.7;padding:4px}.insight-compose button{width:34px;height:34px;flex-shrink:0;padding:8px;border-radius:10px}.insight-message{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 18px;padding:13px;border-radius:12px;background:var(--bg)}.insight-message.user{background:var(--soft);margin-left:25px}.insight-message .message-label{display:block;font-size:9px;color:var(--muted);margin-bottom:7px;font-weight:600}.insight-message .message-content{margin:0;white-space:pre-wrap}.insight-message.is-loading .message-content:after{content:'';display:inline-block;height:12px;width:4px;margin-left:5px;background:var(--accent);animation:cursor-pulse 1s infinite}.quote-preview{display:flex;border-left:2px solid var(--accent);background:var(--soft);padding:7px 8px;margin-bottom:8px;align-items:start}.quote-preview p{font-size:10px;line-height:1.6;max-height:60px;overflow:auto;margin:0;flex:1}.quote-preview button{width:24px;height:24px;flex-shrink:0}.insight-footer{border-top:1px solid var(--line);padding:10px 17px;flex-shrink:0}.insight-footer p{font-size:10px;margin:0;line-height:1.6;color:var(--muted)}.insight-footer .panel-disclosure{font-size:9px;margin-top:5px;opacity:.8}.insight-footer button{font-size:11px;padding:4px 0;color:var(--accent)}.notes-actions{display:flex;justify-content:space-between;gap:8px;flex-shrink:0}.notes-actions button{font-size:11px;padding:9px 12px}.notes-actions .icon{width:15px;height:15px}.panel-hint{font-size:10px;line-height:1.8;color:var(--muted);margin:12px 0}.session-notes{min-height:150px;background:var(--bg);padding:14px;border-radius:12px;font-size:12px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.session-notes[aria-busy=true]{opacity:.7}.bookmarks-heading{display:flex;align-items:center;justify-content:space-between;margin:23px 0 10px}.bookmarks-heading h3{font-size:13px;margin:0}.bookmarks-heading span{font-size:10px;background:var(--soft);padding:2px 7px;border-radius:12px;color:var(--accent)}.bookmark-entry{border-left:2px solid var(--accent);padding:5px 10px;margin:8px 0 15px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.bookmark-entry button{font-size:10px;color:var(--accent);border:0;background:none;padding:3px 0}.quick-languages{display:flex;align-items:end;gap:6px;margin:0 0 14px}.quick-languages label{min-width:0;flex:1;font-size:10px;color:var(--muted)}.quick-languages select{font-size:12px;padding:8px;width:100%}.quick-languages .icon-button{flex-shrink:0;width:30px}.quick-actions{display:flex;justify-content:space-between;gap:10px;margin:13px 0}.quick-actions button{font-size:11px}.quick-result{min-height:150px;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--soft);border-radius:12px;padding:15px;font-size:15px;line-height:1.8}.quick-result[aria-busy=true]{opacity:.6}.speaker-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#speakerDialog input{width:100%;margin-top:8px}#speakerDialog p{font-size:13px;color:var(--muted)}.studio-page.reading-focus .workspace{height:calc(100dvh - 40px);min-height:450px}.studio-page.reading-focus .app-main{max-width:none}.studio-page.reading-focus .transcripts{height:auto}.studio-page.reading-focus .workspace-tips{display:none}.studio-page[data-reading-size=normal] .card-translation{font-size:18px}.studio-page[data-reading-size=xlarge] .card-translation{font-size:27px}.studio-page[data-reading-size=xlarge] .card-original{font-size:18px}.live-feed[data-display=full] .live-card{background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:16px 0}.live-feed[data-display=focus] .card-translation{font-size:30px}.live-feed[data-display=focus] .live-card{min-height:220px}.studio-page [hidden]{display:none!important}@keyframes cursor-pulse{50%{opacity:.2}}
@media(min-width:1500px){.studio-page[data-mode=translate].insights-open .workspace{grid-template-columns:minmax(0,1fr) 375px}.studio-page .control{flex-wrap:nowrap}.studio-page .studio-control-end{width:auto}.studio-page .input-strip{flex:initial}.studio-page .language-pair select{width:135px}.studio-page .toolbar{flex-wrap:nowrap}}
@media(max-width:1100px){.studio-page .workspace,.studio-page[data-mode=translate].insights-open .workspace{grid-template-columns:1fr}.insight-panel{position:fixed;inset:auto 0 0 auto;width:min(450px,100%);height:85dvh;max-height:85dvh;border-radius:21px 21px 0 0;box-shadow:var(--shadow);margin:0}.insight-panel::backdrop{background:#17102470;backdrop-filter:blur(4px)}.studio-page .app-main{padding:23px 20px}.studio-page .reading-bar{margin-left:auto}.studio-page .page-heading h1{font-size:24px}}
@media(max-width:760px){.studio-page .app-main{padding:20px 12px 14px}.studio-page .page-heading{gap:10px;flex-direction:column;margin-bottom:13px}.studio-page .page-heading h1{font-size:23px}.studio-page .page-heading p:last-child{font-size:11px}.studio-page .heading-actions{width:100%;justify-content:flex-start}.studio-page .heading-actions .badge{margin-left:auto}.studio-page .assistant-modes{margin-bottom:13px}.studio-page .workspace{height:calc(100dvh - 300px);min-height:540px}.studio-page .toolbar{display:flex;padding:11px 12px;gap:8px}.studio-page .language-pair{width:100%;gap:8px}.studio-page .language-pair select{width:100%;max-width:none}.studio-page .reading-bar{width:100%;margin:0}.studio-page .reading-actions{justify-content:space-between;width:100%}.studio-page .reading-actions button{font-size:10px}.live-feed-toolbar{padding:8px 12px}.live-feed{padding:15px 12px}.live-card{padding:13px 15px;border-radius:12px}.card-translation{font-size:19px}.card-original{font-size:13px}.card-actions button{padding:5px 7px;min-height:32px}.live-empty{padding:18px 5px}.live-empty h2{font-size:24px}.live-empty>p:not(.eyebrow){font-size:11px}.empty-guide{gap:10px;font-size:9px}.empty-guide .icon{width:12px}.studio-page .control{padding:11px 12px;gap:7px}.studio-page .input-strip{flex:1 1 100%;margin-bottom:3px}.studio-page .input-strip>label{display:flex;align-items:center;justify-content:space-between;width:100%}.studio-page .input-strip select{width:195px;max-width:75%;font-size:10px}.studio-page #start{flex:1}.studio-page #pauseLive{flex:0 0 auto}.studio-page .studio-control-end{padding-top:3px}.studio-page #notice{padding-inline:12px}.studio-page .studio-save-status{font-size:9px;padding-inline:12px}.insight-panel{width:100%;height:82dvh;padding-bottom:env(safe-area-inset-bottom)}.studio-page.reading-focus .workspace{height:calc(100dvh - 20px);min-height:400px}.studio-page[data-reading-size=xlarge] .card-translation{font-size:25px}.feed-tools>span{display:none}.live-selection-bar{padding-inline:12px}.studio-page:not([data-mode=translate]) .stage{height:650px;min-height:550px}.studio-page:not([data-mode=translate]) .workspace{min-height:0}}
@media(prefers-reduced-motion:reduce){.live-card,.translation-wait,.insight-message.is-loading .message-content:after{animation:none}}

/* Provisional captions remain readable while the provider confirms wording. */
.studio-page .interim,.studio-page #originalDraft,.studio-page #translationDraft{opacity:.85}

/* Show provider text immediately, then settle it in the same reading position. */
.studio-page .transcripts .sentence-line{animation:none}
.live-card{transition:border-color .12s ease}
.live-card.is-streaming{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.card-original .provisional,.card-translation .provisional,.studio-page .transcripts .interim{color:inherit;opacity:.92}
.card-translation{min-block-size:1.75em;min-block-size:1lh}
.translation-wait{display:inline-flex;align-items:center;gap:4px;vertical-align:top;height:1.75em;height:1lh;max-width:none;background:none;border-radius:0;animation:none}
.translation-wait i{display:block;inline-size:4px;block-size:4px;border-radius:50%;background:var(--accent);opacity:.4}
.live-card.is-streaming .translation-wait i{animation:caption-dot .9s ease-in-out infinite}
.live-card.is-streaming .translation-wait i:nth-child(2){animation-delay:.12s}
.live-card.is-streaming .translation-wait i:nth-child(3){animation-delay:.24s}
.card-progress{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;min-inline-size:7em;white-space:nowrap}
.card-progress:before{content:'';inline-size:4px;block-size:4px;border-radius:50%;background:var(--accent);opacity:0}
.is-streaming .card-progress:before{opacity:.8;animation:caption-dot .9s ease-in-out infinite}
@keyframes caption-dot{0%,100%{opacity:.35}50%{opacity:.9}}
@media(prefers-reduced-motion:reduce){.live-card{transition:none}.live-card.is-streaming .translation-wait i,.is-streaming .card-progress:before{animation:none;opacity:.65}}
