/* Approved Figma aSch2MsjAfTLtBTCk4X5L6 / 3:2. Natural canvas: 1920 × 760.
   One stylesheet; measured design geometry is adapted with native Grid/Flex. */
@font-face{font-family:Inter;src:url('/static/assets/fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{
  color-scheme:dark;--canvas:#030b1b;--shell:#061329;--panel:#07182f;--listening-bar:#0b203c;
  --shell-line:#1b3b69;--panel-line:#1c4c83;--answer:#14194b;--answer-line:#7854fa;
  --text:#f5f5ff;--muted:#b7c9e8;--green:#35e7ae;--purple:#b06ef7;--logo:#6e4aff;--stop:#fc2b63;
  --shell-radius:23px;--panel-radius:17px;--shell-inset:26px;--header-height:101px;
  --gap-top:19px;--gap-bottom:25px;--footer-height:78px;--panel-gap:25px;
  --brand-size:27px;--body-size:21px;--vi-size:20px;--answer-size:34px;--answer-leading:59px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--canvas);color:var(--text);font:400 18px/1.5 Inter,'Segoe UI',sans-serif;font-optical-sizing:none;font-feature-settings:'liga' 1,'calt' 1}
h1,h2,h3,p{margin:0}
button,input,select,summary{font:inherit}
button,input,select{color:inherit;background:#091c37;border:1px solid #254575;border-radius:9px}
button{cursor:pointer;padding:10px 14px}
button:hover:not(:disabled){border-color:var(--answer-line)}
button:disabled{opacity:.45;cursor:not-allowed}
input,select{width:100%;min-width:0;padding:10px 12px}
input::placeholder{color:#849abb}
:focus-visible{outline:3px solid var(--purple);outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0}
.app-shell{width:calc(100% - 50px);max-width:1870px;height:calc(100dvh - 24px);min-height:700px;margin:16px auto 8px;padding:0 var(--shell-inset) 21px;border:1px solid var(--shell-line);border-radius:var(--shell-radius);background:var(--shell);display:grid;grid-template-rows:var(--header-height) var(--gap-top) minmax(0,1fr) var(--gap-bottom) var(--footer-height)}
.app-header{grid-row:1;display:grid;grid-template-columns:minmax(0,807fr) auto minmax(110px,311fr);align-items:center;border-bottom:1px solid #17345b;position:relative;z-index:4;min-width:0}
.brand{display:flex;align-items:center;gap:19px;min-width:0;margin-left:24px}
.brand-mark{display:flex;align-items:center;gap:6px;width:49px;height:39px;flex:none;position:relative;top:-2px}
.brand-mark i{display:block;width:5px;border-radius:3px;background:var(--logo);flex:none}
.brand-mark i:nth-child(1),.brand-mark i:nth-child(5){height:12px}
.brand-mark i:nth-child(2),.brand-mark i:nth-child(4){height:25px}
.brand-mark i:nth-child(3){height:39px}
h1{font-size:var(--brand-size);font-weight:600;line-height:40px;white-space:nowrap;letter-spacing:0;position:relative;top:5px}
.session-badge{display:flex;align-items:center;gap:9px;min-width:126px;height:37px;padding:0 16px;flex:none;background:#102944;border-radius:20px;font-size:17px;font-weight:600;color:var(--muted);white-space:nowrap;position:relative;top:4px}
.session-badge::before{content:'';width:12px;height:12px;border-radius:6px;background:currentColor;flex:none}
.session-badge:is([data-state='ready'],[data-state='listening']){background:#063f4a;color:var(--green)}
.session-badge[data-state='thinking']{background:#2d245a;color:#d4b7ff}
.session-badge[data-state='error']{background:#43273e;color:#ffb4c8}
.document-status{display:flex;gap:17px;min-width:0;position:relative;top:2.5px}
.document-chip{display:flex;align-items:center;gap:13px;width:345px;height:73px;padding:12px 13px;border:1px solid #254575;border-radius:12px;background:#091c37;min-width:0;text-align:left}
.document-chip:disabled{opacity:1;cursor:default}
.document-chip:last-child{width:336px}
.document-icon{display:grid;place-items:center;width:46px;height:45px;border-radius:8px;background:#1e3974;font-size:14px;font-weight:600;color:#c7d7ff;flex:none}
.document-chip strong{display:block;font-size:18px;font-weight:600;line-height:23px;white-space:nowrap}
.document-chip small{display:block;font-size:14px;line-height:20px;color:var(--muted);margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}
.document-chip>span:last-child{min-width:0}
.document-dialog{width:min(640px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;color:var(--text);background:#0b203c;border:1px solid #365580;border-radius:17px;font-size:14px}
.document-dialog::backdrop{background:#030b1bbd}
.document-dialog-heading,.document-dialog-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}
.document-dialog h2{font-size:22px}
.document-dialog label{display:block;margin:14px 0 6px;color:var(--muted)}
.document-dialog input[type='checkbox']{width:auto;margin-right:8px}
.document-dialog textarea{width:100%;resize:vertical;border:1px solid #254575;border-radius:9px;background:#091c37;color:var(--text);padding:10px;font:14px/1.5 Inter,sans-serif}
.document-dialog details{margin-top:16px}
.document-dialog details button{margin-top:10px}
.document-dialog summary{cursor:pointer}
#document-status{margin-top:16px;color:var(--green)}
#document-review{max-height:200px;overflow:auto;white-space:pre-wrap;font:13px/1.6 Inter,sans-serif;color:var(--muted);margin:12px 0}
.header-actions{display:flex;align-items:center;justify-self:end;gap:28px;margin-right:-12px}
.settings-glyph,.theme-icon{display:grid;place-items:center;width:40px;height:40px;font:30px/40px 'Segoe UI Symbol',Inter,sans-serif;color:#b7d1f7}
.theme-icon{width:42px}
.disclosure>summary{list-style:none;cursor:pointer;user-select:none}
.disclosure>summary::-webkit-details-marker{display:none}
.setup>summary{display:grid;place-items:center;width:40px;height:40px;border-radius:8px}
.setup>summary:hover,.setup[open]>summary{background:#132c50}
.disclosure-panel{position:absolute;z-index:5;width:360px;max-width:calc(100vw - 32px);padding:22px;border:1px solid #365580;border-radius:13px;background:#0b203c;box-shadow:0 15px 45px #0009;overflow-y:auto;font-size:13px;line-height:1.6}
.setup-content{right:0;top:calc(100% + 12px);max-height:calc(100dvh - 160px)}
.disclosure-panel h2{font-size:17px;font-weight:600}
.disclosure-panel label{display:block;color:var(--muted);font-size:12px;margin:15px 0 6px}
.setup-actions{display:flex;gap:8px;margin:10px 0 14px}
.setup-actions button{flex:1;font-size:12px;padding:9px 8px}
.field-help,.setup-notice{color:var(--muted);font-size:11px;margin-top:8px}
.setup-notice{border-top:1px solid #254575;padding-top:14px;margin-top:18px}
#mock{display:none;border-top:1px solid #254575;padding-top:15px;margin-top:18px}
#mock h3{font-size:11px;font-weight:500;color:var(--muted)}
#mock-send{width:100%;font-size:12px;margin-top:10px}
.workspace{grid-row:3;display:grid;grid-template-columns:minmax(0,991fr) minmax(0,800fr);gap:var(--panel-gap);min-width:0;min-height:0}
.panel{min-width:0;min-height:0;border:1px solid var(--panel-line);border-radius:var(--panel-radius);background:var(--panel);overflow:hidden}
.live-panel{display:grid;grid-template-rows:74px minmax(0,201fr) minmax(0,213fr)}
.panel-heading{background:var(--listening-bar);padding:20px 17px 15px 26px}
.listening-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.listening-state{display:flex;align-items:center;min-width:0;color:var(--muted);font-size:21px;font-weight:600;white-space:nowrap}
.status-dot{display:grid;place-items:center;width:39px;height:39px;border-radius:20px;background:#3d5964;flex:none}
.status-dot::after{content:'';width:15px;height:15px;border-radius:9px;background:#8295b1}
.is-listening .status-dot::after{background:var(--green)}
.is-listening .listening-state{color:var(--green)}
.waveform{position:relative;width:67px;height:30px;margin-left:26px;margin-right:19px;flex:none;color:#7999af}
.is-listening .waveform{color:#33e0a6}
.waveform i{position:absolute;width:3px;border-radius:2px;background:currentColor}
.waveform i:nth-child(1){left:0;top:5px;height:10px}.waveform i:nth-child(2){left:8px;top:3px;height:18px}.waveform i:nth-child(3){left:16px;top:5.5px;height:8px}.waveform i:nth-child(4){left:24px;top:1px;height:26px}.waveform i:nth-child(5){left:32px;top:4px;height:14px}.waveform i:nth-child(6){left:40px;top:0;height:30px}.waveform i:nth-child(7){left:48px;top:4.5px;height:12px}.waveform i:nth-child(8){left:56px;top:2.5px;height:20px}.waveform i:nth-child(9){left:64px;top:5.5px;height:8px}
#session-time{width:100px;flex:none;color:var(--muted);font-size:20px;line-height:40px;font-variant-numeric:tabular-nums;white-space:nowrap}
.transcript-zone{display:flex;flex-direction:column;min-height:0;min-width:0;position:relative}
.english-zone{padding:23px 43px 0;gap:21px}
.speaker-meta{display:flex;align-items:center;gap:16px;height:34px;flex:none}
.speaker-label{display:grid;place-items:center;min-width:127px;height:34px;padding:0 15px;border-radius:17px;background:#443197;color:#f5ecff;font-size:17px;white-space:nowrap}
.speaker-time{font-size:17px;color:var(--muted);white-space:nowrap;position:relative;top:2px}
.translation-zone{padding:29px 43px 0;gap:24px}
.translation-zone::before{content:'';position:absolute;top:0;left:43px;right:46px;height:1px;background:#1d3a62}
.translation-icon{position:absolute;left:43px;top:29px;width:40px;height:40px;border-radius:9px;background:#38338d;color:#f4eeff;text-align:center;font-size:25px;font-weight:600;line-height:40px}
.translation-zone h3{margin-left:58px;height:40px;line-height:40px;font-size:18px;font-weight:400;color:var(--muted);flex:none;white-space:nowrap}
.scroll-content{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overflow-wrap:anywhere;white-space:pre-wrap;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#355f94 transparent}
#live{font-size:var(--body-size);line-height:37px;flex:1;margin-top:-5px}
#vi{font-size:var(--vi-size);line-height:36px;flex:1;margin-top:-6px}
#vi[data-provisional='true']{color:#c9baff}
.empty-message{font-size:20px;line-height:1.7;color:#8da2c1}
.answer-panel{display:flex;flex-direction:column;position:relative;background:var(--answer);border-color:var(--answer-line);padding:25px 31px 20px 39px}
.answer-panel::before{content:'';position:absolute;left:0;right:0;top:0;height:7px;border-radius:4px;background:#24246b}
.answer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:46px}
.answer-heading-title{display:flex;align-items:center;gap:5px;min-width:0}
.answer-mark{display:block;width:58px;flex:none;color:#d4b7ff;font-size:43px;line-height:40px;font-weight:600;position:relative;top:8px}
.answer-heading h2{font-size:25px;line-height:40px;font-weight:600;white-space:nowrap;position:relative;top:3px}
.answer-length{display:grid;place-items:center;width:145px;height:46px;flex:none;background:#273773;border-radius:14px;color:#e9efff;font-size:17px;white-space:nowrap}
.answer-status{position:absolute;top:77px;left:61px;right:30px;font-size:11px;line-height:18px;color:var(--muted);overflow-wrap:anywhere}
#answer-card[data-state='ready'] .answer-status{color:var(--green)}
#answer-card[data-state='error'] .answer-status{color:#ffb4c8}
.answer-question{display:none;margin:36px 0 0 21px;max-height:44px;overflow:auto;color:var(--muted);border-left:2px solid #7355bd;padding-left:10px;font-size:12px;line-height:20px;flex:none;white-space:pre-wrap}
#answer-card:is([data-state='previous'],[data-state='thinking'],[data-state='error']) .answer-question{display:block}
.answer-body{display:flex;flex:1;min-height:0;margin:35px 7px 0 21px}
.answer-text{font-size:var(--answer-size);line-height:var(--answer-leading);font-weight:400;letter-spacing:0;flex:1}
.answer-placeholder{font-size:30px;line-height:1.6}
#answer-card[data-empty='true'][data-state='waiting'] .answer-status{display:none}
.topic-chip{align-self:flex-start;margin:12px 0 0 22px;width:345px;height:38px;padding:7px 18px;border-radius:15px;background:#1a3470;color:#55cbff;font-size:16px;line-height:24px;flex:none}
.app-footer{grid-row:5;display:grid;grid-template-columns:315px minmax(0,1fr);gap:24px;min-width:0;position:relative;align-items:stretch}
.stop-button{display:flex;align-items:center;width:100%;height:78px;padding:0 20px 0 36px;gap:33px;border:0;border-radius:13px;background:var(--stop);color:var(--text);font-weight:600;font-size:25px;white-space:nowrap}
.stop-button:hover:not(:disabled){background:#ff4477}
#start{background:#6747df}
#start:hover:not(:disabled){background:#7854fa}
.control-label{width:54px;text-align:left;flex:none}
.play-icon{clip-path:polygon(12% 0,100% 50%,12% 100%);border-radius:0}
.stop-button[aria-busy='true']{cursor:progress}
.stop-button[aria-busy='true'] .stop-square{clip-path:none;border:3px solid #f5f5ff55;border-top-color:var(--text);border-radius:50%;background:transparent}
.stop-square{width:22px;height:22px;border-radius:4px;background:var(--text);flex:none}
.stop-divider{width:1px;height:42px;background:#ff7a97;margin-left:-3px;flex:none}
.stop-button kbd{font:400 18px/40px Inter,sans-serif;white-space:nowrap}
.footer-statusbar{display:grid;grid-template-columns:minmax(0,317fr) minmax(0,440fr) minmax(0,383fr) minmax(0,154fr) minmax(0,137fr);align-items:center;min-width:0;padding:0 0 0 44px;background:#08182f;border:1px solid #183861;border-radius:13px}
.capture-status,.diarization-status,.language-direction,.connection-status{display:flex;align-items:center;min-width:0;gap:34px;white-space:nowrap;font-size:18px;color:var(--muted)}
.capture-status b,.diarization-status b,.connection-status b{font-weight:400}
.is-listening #audio{color:var(--green)}
.capture-icon{position:relative;top:-3px;width:17px;height:36px;flex:none;color:#9ac4f9}
.capture-icon i{position:absolute;display:block;background:currentColor}
.capture-icon i:nth-child(1){left:2px;top:0;width:12px;height:26px;border-radius:6px}.capture-icon i:nth-child(2){left:7px;top:26px;width:3px;height:8px;border-radius:2px}.capture-icon i:nth-child(3){left:0;top:33px;width:17px;height:3px;border-radius:2px}
.diarization-status{gap:14px}
.speaker-icon{position:relative;top:-6px;width:35px;height:30px;flex:none}
.speaker-icon img{position:absolute;display:block;max-width:none}
.speaker-icon img:nth-child(1){left:3px;top:0}.speaker-icon img:nth-child(2){left:19px;top:3px}
.speaker-icon i{position:absolute;top:17px;height:12px;border-radius:5px;background:#9ac4f9}.speaker-icon i:nth-of-type(1){left:0;width:18px}.speaker-icon i:nth-of-type(2){left:20px;width:15px}
.language-direction{gap:11px}
.language-direction>span{font-size:25px;color:#a9c9f9}
.connection-status{gap:30px;font-size:18px;color:var(--muted)}
.signal-icon{display:flex;align-items:flex-end;gap:3px;width:33px;height:34px;flex:none;color:#7289a9}
.signal-icon i{width:6px;border-radius:2px;background:currentColor}.signal-icon i:nth-child(1){height:16px}.signal-icon i:nth-child(2){height:22px}.signal-icon i:nth-child(3){height:28px}.signal-icon i:nth-child(4){height:34px}
.is-connected .signal-icon,.is-connected #connection{color:var(--green)}
.diagnostics>summary{display:flex;align-items:center;gap:8px;min-height:42px;font-size:16px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
.diagnostics>summary>span:first-child{color:#f7cd65;font-size:23px}
.diagnostics-content{right:0;bottom:calc(100% + 14px);max-height:calc(100dvh - 130px)}
.technical-status{display:flex;gap:20px;margin:14px 0;font-size:12px;color:var(--muted)}
.technical-status b{font-weight:500;color:var(--text)}
#latency,#audio-metrics{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
#audio-metrics{margin-top:10px}
.diagnostics-content h3{font-size:12px;margin:16px 0 8px;font-weight:600}
#errors{font-size:12px;white-space:pre-wrap;color:#ffb4c8;max-height:180px;overflow:auto;overflow-wrap:anywhere}
@media(max-width:1750px){
  .app-header{grid-template-columns:minmax(0,1fr) auto auto;gap:22px}.brand{margin-left:12px;gap:14px}h1{font-size:23px}.session-badge{font-size:13px;min-width:0;padding:0 11px}.document-chip{width:260px}.document-chip:last-child{width:245px}.document-chip strong{font-size:15px}.document-chip small{font-size:12px}.header-actions{margin-right:0;gap:20px}
  .app-footer{grid-template-columns:260px minmax(0,1fr)}.stop-button{gap:20px;padding-left:26px;font-size:23px}.stop-button kbd{font-size:16px}.footer-statusbar{padding-left:22px;grid-template-columns:1fr 1.5fr 1.35fr .8fr 115px}.capture-status,.diarization-status,.language-direction,.connection-status{font-size:14px;gap:12px}.diagnostics>summary{font-size:13px}
  .answer-heading h2{font-size:22px}.answer-length{width:122px;font-size:14px}.answer-mark{width:44px;font-size:36px}.answer-panel{padding-left:28px}.answer-body{margin-left:12px}.answer-status{left:40px}
}
@media(max-width:1450px){
  :root{--body-size:18px;--vi-size:18px;--answer-size:26px;--answer-leading:45px;--shell-inset:20px;--panel-gap:20px}.app-shell{width:calc(100% - 32px);margin-left:16px;margin-right:16px}.brand{margin-left:0;gap:12px}.brand-mark{transform:scale(.85);transform-origin:left center;width:43px}h1{font-size:21px}.document-chip{width:220px}.document-chip:last-child{width:205px}.document-status{gap:10px}.document-icon{width:36px;height:40px}.document-chip strong{font-size:13px}.header-actions{gap:12px}.session-badge{font-size:12px}
  .english-zone{padding-left:28px;padding-right:28px}.translation-zone{padding-left:28px;padding-right:28px}.translation-zone::before{left:28px;right:28px}.translation-icon{left:28px}.panel-heading{padding-left:20px}.listening-state{font-size:17px}.waveform{margin-left:16px;margin-right:14px}.speaker-label,.speaker-time{font-size:14px}#session-time{font-size:16px;width:82px}#live{line-height:31px}#vi{line-height:31px}
  .app-footer{grid-template-columns:230px minmax(0,1fr);gap:18px}.stop-button{gap:17px;padding-left:22px;font-size:21px}.stop-divider{margin-left:0}.footer-statusbar{padding-left:14px;grid-template-columns:1fr 1.45fr 1.3fr .85fr 104px}.capture-status,.diarization-status,.language-direction,.connection-status{font-size:12px;gap:10px}.diagnostics>summary{font-size:12px}.language-direction>span{font-size:21px}.signal-icon{gap:2px;width:25px;transform:scale(.8);transform-origin:center}.speaker-icon{margin-right:0}
}
@media(max-width:1100px){.session-badge{display:none}.document-chip{width:190px}.document-chip:last-child{width:180px}.header-actions{gap:6px}.document-chip strong{font-size:12px}.document-chip small{font-size:11px}.answer-heading{flex-wrap:wrap}.answer-length{height:30px;width:115px}.answer-status{top:112px}.answer-body{margin-top:30px}.footer-statusbar{display:flex;justify-content:space-around;gap:12px;padding:10px;flex-wrap:wrap}.capture-status,.diarization-status,.language-direction,.connection-status{font-size:11px}.diarization-status .speaker-icon{display:none}}
@media(max-width:900px){
  .app-shell{width:calc(100% - 24px);height:auto;min-height:calc(100dvh - 24px);margin:12px;padding:0 14px 16px;display:flex;flex-direction:column;gap:16px}.app-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:14px 0}.brand{gap:8px}h1{font-size:18px}.brand-mark{width:35px;transform:scale(.7)}.document-status{order:3;width:100%;gap:8px}.document-chip,.document-chip:last-child{flex:1;min-width:0;width:auto;padding:8px;gap:8px;height:62px}.document-icon{width:28px;height:34px;font-size:10px}.document-chip strong{font-size:11px;white-space:normal}.document-chip small{font-size:10px;margin-top:3px}.header-actions{margin-right:0;gap:4px}.settings-glyph,.theme-icon,.setup>summary{width:30px;height:36px;font-size:24px}.theme-icon{width:24px}.setup-content{top:64px}
  .workspace{display:flex;flex-direction:column;gap:16px}.answer-panel{order:-1;min-height:330px;max-height:75dvh;padding:22px}.answer-mark{width:36px;font-size:32px}.answer-heading h2{font-size:20px}.answer-length{width:auto;height:30px;padding:0 10px;font-size:12px}.answer-status{position:static;margin:8px 0 0;font-size:10px}.answer-body{margin:20px 0 0;min-height:80px}.answer-text{font-size:26px;line-height:1.55}.answer-placeholder{font-size:25px}.answer-question{margin:12px 0 0}.topic-chip{font-size:12px;margin:12px 0 0;max-width:100%}.live-panel{height:650px;max-height:100dvh;min-height:480px}.panel-heading{padding-left:16px;padding-right:12px}.status-dot{width:29px;height:29px}.status-dot::after{width:12px;height:12px}.waveform{margin-left:12px;margin-right:10px;transform:scale(.75);transform-origin:center;width:52px}.listening-state{font-size:15px}.speaker-meta{gap:10px}.speaker-label{min-width:0;padding:0 12px;font-size:13px}.speaker-time{font-size:12px}.english-zone{padding-left:18px;padding-right:18px}.translation-zone{padding-left:18px;padding-right:18px}.translation-zone::before{left:18px;right:18px}.translation-icon{left:18px;width:34px;height:34px;font-size:22px;line-height:34px}.translation-zone h3{margin-left:46px;font-size:13px;white-space:normal;line-height:20px;display:flex;align-items:center}#session-time{font-size:12px;width:66px}
  .app-footer{display:flex;flex-direction:column;gap:12px}.stop-button{width:230px;height:60px;align-self:flex-start}.stop-square{width:18px;height:18px}.stop-divider{height:34px}.footer-statusbar{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:18px;padding:14px;min-height:110px}.capture-status,.diarization-status,.language-direction,.connection-status{font-size:11px}.diarization-status .speaker-icon{display:inline-block}.language-direction{order:5}.diagnostics{margin-left:auto}.diagnostics-content{max-height:65dvh}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
