:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#202b29;background:#f4f7f5;font-synthesis:none;letter-spacing:0;font-size:14px;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .18s,transform .15s;color:inherit}button:active{transform:scale(.96)}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2c8669;outline-offset:3px}svg{width:20px;height:20px;stroke-width:1.8;flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:10px}button:disabled:active{transform:none}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:#fff;border-bottom:1px solid #e1e8e4}.brand{display:flex;align-items:center;gap:11px;font-size:24px;font-weight:700;text-decoration:none;color:#172d24}.brand-symbol{display:grid;place-items:center;background:#bde8d5;width:34px;height:34px;border-radius:8px}.brand-caption{font-size:12px;font-weight:400;color:#78837d;border-left:1px solid #e1e8e4;margin-left:8px;padding-left:18px}.connection{display:flex;align-items:center;gap:8px;color:#78837d;font-size:12px}.dot,.partner-dot{width:7px;height:7px;background:#a6b1ab;border-radius:50%}.connection.active .dot,.partner-dot{background:#459876}.connection.active{color:#367c60}.workspace{max-width:1550px;min-height:690px;height:calc(100dvh - 125px);max-height:1050px;margin:auto;display:grid;grid-template-columns:260px minmax(340px,1fr) 255px}.settings{padding:30px 25px;border-right:1px solid #e1e8e4;overflow:auto}.section-label{font-size:10px;line-height:1.4;font-weight:650;color:#7a8881;letter-spacing:0}h1{font-size:20px;font-weight:600;margin:10px 0 25px}h2{font-size:19px;line-height:1.4;margin:8px 0}fieldset{margin:0;padding:0;border:0;min-width:0}.topic-list{display:flex;flex-direction:column;gap:5px;margin-bottom:27px}.topic{min-height:66px;display:flex;align-items:center;gap:13px;position:relative;padding:10px 12px;border-radius:6px;cursor:pointer;border:1px solid transparent}.topic input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}.topic:has(input:checked){background:#e0eee7;border-color:#c8ddcf}.topic:has(input:focus-visible){outline:2px solid #2c8669}.topic:has(input:disabled){cursor:default}.topic span{font-size:13px;font-weight:550}.topic small{display:block;font-size:11px;color:#7c8982;font-weight:400;margin-top:5px}.topic-check{width:15px;margin-left:auto;opacity:0}.topic:has(input:checked) .topic-check{opacity:1;color:#2d7a54}.field-title{display:block;font-size:12px;margin-bottom:10px}select{height:40px;border-radius:5px;border:1px solid #dce4df;background:#fff;width:100%;padding:0 10px;color:#334b3d}.range-heading{display:flex;justify-content:space-between;align-items:center;margin-top:23px;font-size:12px}.range-heading output{font-variant-numeric:tabular-nums;color:#718176;font-size:11px}input[type=range]{width:100%;accent-color:#32775c;height:20px;margin:9px 0 0}input[type=checkbox]{appearance:none;width:32px;height:19px;background:#cdd7d1;border-radius:20px;position:relative;transition:background .2s;cursor:pointer}input[type=checkbox]:checked{background:#357859}input[type=checkbox]:before{content:"";position:absolute;background:white;height:13px;width:13px;top:3px;left:3px;border-radius:50%;transition:transform .2s}input[type=checkbox]:checked:before{transform:translateX(13px)}.toggle-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:19px}.session-stats{border-top:1px solid #dfe6e1;margin-top:25px;padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;color:#748277;font-size:12px}.session-stats strong{font-size:20px;font-weight:500;color:#344b3c;font-variant-numeric:tabular-nums}.session-stats div{width:100%;display:flex;justify-content:space-between;margin-top:16px;font-size:11px}.session-stats b{font-size:15px;color:#3b5143;font-weight:550;margin-right:4px}.conversation{background:white;display:flex;flex-direction:column;min-height:0;min-width:0}.conversation-heading{padding:29px 30px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1ee}.conversation-heading h2{margin:7px 0 0;font-weight:550}.icon-button{background:transparent;border:0;border-radius:6px;width:40px;height:40px;flex-shrink:0}.icon-button:hover{background:#edf2ee}.transcript{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:28px 30px;min-height:140px;scroll-behavior:smooth}.empty{height:100%;display:flex;flex-direction:column;justify-content:center;gap:25px}.photo{height:170px;min-height:100px;width:100%;position:relative;overflow:hidden;background:#517268}.photo img{width:100%;height:100%;object-fit:cover;object-position:center 48%;filter:brightness(.85);display:block}.photo span{position:absolute;bottom:15px;left:19px;color:white;font-family:Georgia,serif;font-size:18px;max-width:calc(100% - 38px);text-shadow:0 1px 3px #0005}.empty-copy{padding:0 4px 20px}.eyebrow{font-size:10px;color:#8a958d}.empty-copy h3{font-family:Georgia,"Times New Roman",serif;font-size:32px;line-height:1.18;font-weight:400;margin:12px 0 15px;color:#2f4d3d;text-wrap:balance}.empty-copy p{font-size:12px;color:#839086;margin:0}.empty-copy p span{margin:0 6px}.session-controls{border-top:1px solid #e9eeeb;padding:17px 30px 21px}.live-row{display:flex;align-items:center;gap:12px;font-size:11px;color:#89968d;height:21px}.live-row>span:first-child{min-width:85px}.meter{height:4px;width:64px;background:#e5ede6;border-radius:3px;overflow:hidden}.meter span{display:block;background:#4a9573;height:100%;width:0;transition:width .08s}.latency{margin-left:auto;font-variant-numeric:tabular-nums}.main-controls{display:flex;justify-content:center;align-items:center;gap:15px;margin:15px 0}.primary{background:#275d48;color:#fff;border:0;border-radius:6px;min-width:180px;height:47px;font-weight:550;font-size:13px}.primary:hover{background:#194b37}.primary.running{background:#ab4c41}.secondary{background:#f2f6f3;width:45px;height:45px;border-radius:50%;color:#62816d}.secondary.muted{background:#fbece8;color:#a64d3e}.text-form{display:flex;border:1px solid #e0e8e1;border-radius:6px;padding:1px 4px 1px 11px;align-items:center;background:#fbfcfb}.text-form input{border:0;background:transparent;min-width:0;flex:1;height:38px;outline:none;font-size:12px;color:#314639}.text-form input::placeholder{color:#9aa59e}.text-form button{width:33px;height:33px;color:#557f62}.companion{border-left:1px solid #e1e8e4;padding:32px 24px;display:flex;flex-direction:column;overflow:auto}.partner{display:flex;gap:10px;align-items:center}.avatar{display:grid;place-items:center;width:37px;height:37px;background:#efdcd5;color:#9d6958;border-radius:50%;font-family:Georgia,serif;font-size:21px;flex-shrink:0}.partner strong{display:block;font-size:14px;font-weight:550}.partner div>span{display:block;font-size:9px;color:#8d978f;margin-top:5px}.partner-dot{margin-left:auto;flex-shrink:0}.prompt-section{margin-top:43px}.prompt-section h2{font-size:17px;font-weight:500;margin:12px 0 20px}.prompt{font-family:Georgia,serif;font-size:16px;line-height:1.5;margin:0;padding:17px 0;border-bottom:1px solid #e0e7e1;color:#4b6354}.prompt small{display:block;font-family:system-ui,sans-serif;font-size:11px;color:#92a094;margin-top:7px}.notes-section{margin-top:39px;padding-top:5px}.notes-section svg{color:#aa795e;width:24px;height:24px}.notes-section h2{font-family:Georgia,serif;font-size:17px;font-weight:400;margin:14px 0 10px;color:#536b5b}.notes-section p{color:#8b998e;font-size:11px;line-height:1.9}.stack{margin-top:auto;padding-top:32px;font-size:9px;color:#96a297}.stack p{font-size:10px;line-height:1.8}.stack b{margin:0 5px;font-weight:400}footer{max-width:1550px;padding:15px 30px;display:flex;gap:15px;color:#95a199;font-size:9px}footer span:last-child{margin-left:auto}.error{margin:0 25px 12px;padding:10px 12px;background:#faeee9;color:#994c3b;font-size:12px;line-height:1.7;border-radius:5px}.message{margin-bottom:25px;animation:appear .18s ease-out}.message-label{display:flex;gap:8px;align-items:center;font-size:10px;color:#89988d;margin-bottom:8px}.message-label .initial{width:22px;height:22px;border-radius:50%;background:#e8eee9;display:grid;place-items:center;font-size:11px;color:#577260}.message.assistant .initial{background:#f4e5df;color:#a47b66}.message p{margin:0;padding-left:30px;line-height:1.8;font-size:16px;overflow-wrap:anywhere;white-space:pre-wrap;color:#33483b}.message.user p{color:#667969}.message.partial p{color:#9aaa9e}.interrupted-label{font-size:10px;color:#b88a75;margin-left:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.empty[hidden]{display:none}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1450px){.workspace{grid-template-columns:285px minmax(340px,1fr) 285px}.settings{padding:35px}.companion{padding:35px 30px}.conversation-heading,.transcript{padding-left:42px;padding-right:42px}.photo{height:210px}}
@media(max-width:1050px){.workspace{grid-template-columns:230px minmax(320px,1fr)}.companion{display:none}.topbar{padding:0 25px}.settings{padding:28px 20px}}
@media(max-width:650px){.topbar{height:64px;padding:0 17px}.brand{font-size:21px}.brand-caption{display:none}.workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 100px)}.settings{border-right:0;border-bottom:1px solid #e1e8e4;padding:18px 17px;overflow:visible}.settings h1{font-size:16px;margin:7px 0 13px}.settings>.section-label{display:none}.topic-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:15px}.topic{padding:9px 5px;min-height:58px;justify-content:center;flex-direction:column;gap:6px}.topic>svg{width:18px;height:18px}.topic span{font-size:11px}.topic small,.topic-check{display:none!important}.settings fieldset{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;align-items:center}.topic-list{grid-column:1/-1}.field-title{margin:0;font-size:11px}select{height:34px;font-size:11px}.range-heading{margin-top:13px;font-size:11px}input[type=range]{margin-top:13px;height:15px}.toggle-row{grid-column:1/-1;margin:12px 0 0}.session-stats{display:none}.conversation{min-height:560px;flex:1}.conversation-heading{padding:18px 20px 14px}.conversation-heading h2{font-size:17px}.transcript{padding:20px;min-height:260px;max-height:45dvh}.empty{gap:18px}.photo{height:120px}.photo span{font-size:15px;left:13px;bottom:10px}.empty-copy{padding-bottom:5px}.empty-copy h3{font-size:26px;margin:8px 0 10px}.session-controls{padding:13px 20px 18px}.message p{font-size:15px}.main-controls{margin:13px 0}footer{padding:12px 17px;font-size:8px;flex-wrap:wrap;gap:8px}footer span:last-child{margin-left:0;width:100%}.latency{font-size:10px}.primary{min-width:165px}}
select+.field-title{margin-top:16px}
[data-cosy][hidden],[data-emotion][hidden]{display:none!important}
@media(max-width:650px){select+.field-title{margin-top:8px}#tts,#voice,#emotion{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:651px) and (max-height:900px){.settings{padding-top:25px;padding-bottom:25px}.settings h1{margin-bottom:20px}.topic{min-height:58px}.topic-list{margin-bottom:18px}.range-heading{margin-top:16px}.toggle-row{margin-top:13px}.session-stats{margin-top:16px;padding-top:14px}.prompt-section{margin-top:32px}.notes-section{margin-top:25px}.companion{padding-top:25px;padding-bottom:25px}}
.review-action{display:flex;align-items:center;gap:12px;margin:0 0 13px;padding:10px 12px;background:#edf4ee;border:1px solid #d9e6db;border-radius:5px}
.brand strong{font:700 22px Georgia,serif}
.brand-chinese{font-size:11px;font-weight:550;color:#436454;white-space:nowrap}
.student-input{width:100%;height:40px;border:1px solid #dce4df;border-radius:5px;padding:0 10px;margin:0 0 13px;color:#334b3d;background:#fff;font-size:12px}
.student-input::placeholder{color:#9aa59e}
.review-action[hidden]{display:none}
.review-button{border:0;background:#285b46;color:white;border-radius:4px;min-height:34px;padding:0 11px;font-size:11px;flex-shrink:0}
.review-button:hover{background:#1d4635}
.review-button svg{width:15px;height:15px}
#review-status{font-size:10px;color:#60776a;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:650px){.review-action{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.brand{gap:5px}.brand strong{font-size:17px}.brand-symbol{width:30px;height:30px}.brand-chinese{font-size:10px}}
@media(max-width:650px){.student-input{height:34px;margin:8px 0 0;font-size:11px}}

/* The Omni monitor is a full-width console, not part of the shared cascade UI. */
body[data-engine=omni] .audio-stage{flex:none;min-width:0;overflow:hidden;padding:0 30px;color:#c3d7d0;background:#122523;border-bottom:1px solid #29463d}
.audio-stage-header,.audio-stage-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:9px;font-weight:600;white-space:nowrap}
.audio-stage-header{height:32px;border-bottom:1px solid #ffffff1a;color:#9eb8ae}
.audio-stage-title{display:inline-flex;align-items:center;gap:9px;color:#dcf1e7}
.audio-stage-led{height:6px;width:6px;border-radius:50%;background:#657b73;box-shadow:0 0 0 3px #ffffff0b}
.audio-stage.is-live .audio-stage-led{background:#7de8b8;box-shadow:0 0 0 3px #75e6b722,0 0 10px #65e5ac77}
.audio-stage-status{color:#9fb9ae;font-variant-numeric:tabular-nums}
.audio-stage[data-mode=input] .audio-stage-status{color:#83efc5}
.audio-stage[data-mode=speaking] .audio-stage-status{color:#ffc18e}
.audio-stage-body{display:flex;height:84px;min-width:0}
.audio-stage-labels{flex:0 0 106px;border-right:1px solid #ffffff1a}
.audio-stage-channel{height:42px;display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:16px 11px;align-content:center;padding-right:10px}
.audio-stage-channel:first-child{border-bottom:1px solid #ffffff13}
.audio-stage-channel>span{grid-column:1;grid-row:1;color:#657f77;font-size:9px;font-variant-numeric:tabular-nums}
.audio-stage-channel strong{grid-column:2;grid-row:1;font-size:10px;font-weight:650;color:#82e8c3}
.audio-stage-channel small{grid-column:2;grid-row:2;font-size:8px;color:#829f94;white-space:nowrap}
.audio-stage-channel.alex-channel strong{color:#ffc18e}
.audio-stage-monitor{position:relative;flex:1;min-width:0;padding-right:61px}
.audio-stage-monitor canvas{position:absolute;top:0;left:0;width:calc(100% - 61px);height:100%;display:block}
.audio-stage-readouts{position:absolute;right:0;top:0;width:61px;height:100%;display:flex;flex-direction:column;align-items:flex-end;border-left:1px solid #ffffff13}
.audio-stage-readouts span{height:50%;display:flex;align-items:center;justify-content:flex-end;padding-right:1px;color:#8da99d;font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.audio-stage-readouts span:first-child{border-bottom:1px solid #ffffff13}
.audio-stage-footer{height:21px;border-top:1px solid #ffffff1a;color:#6e9284;font-size:8px;font-weight:500}
.audio-stage-footer b{font-weight:400;margin:0 5px;color:#47695c}
body[data-engine=omni] .empty{gap:17px}
body[data-engine=omni] .empty .photo{height:140px}
body[data-engine=omni] .empty-copy{padding-bottom:0}
body[data-engine=omni] .empty-copy h3{font-size:28px}
@media(min-width:1450px){body[data-engine=omni] .audio-stage{padding-left:42px;padding-right:42px}}
@media(max-width:650px){
  body[data-engine=omni] .audio-stage{padding:0 20px}
  .audio-stage-header{height:28px}
  .audio-stage-body{height:76px}
  .audio-stage-footer{height:19px;font-size:7px}
  .audio-stage-labels{flex-basis:80px}
  .audio-stage-channel{height:38px;grid-template-columns:16px minmax(0,1fr);padding-right:4px}
  .audio-stage-channel small{font-size:7px}
  .audio-stage-monitor{padding-right:52px}
  .audio-stage-monitor canvas{width:calc(100% - 52px)}
  .audio-stage-readouts{width:52px}
  .audio-stage-readouts span{font-size:8px}
  body[data-engine=omni] .empty .photo{height:120px}
  body[data-engine=omni] .empty-copy h3{font-size:26px}
}
@media(max-width:370px){.audio-stage-monitor{padding-right:0}.audio-stage-monitor canvas{width:100%}.audio-stage-readouts{display:none}}

body[data-engine=omni] .top-actions{display:flex;align-items:center;gap:18px;min-width:0}
.history-nav{min-height:40px;padding:0 10px;border:1px solid #dce7df;border-radius:5px;background:#fff;color:#335c48;font-size:12px;font-weight:550;white-space:nowrap}
.history-nav svg{width:16px;height:16px}
.history-nav:hover{background:#edf4ef;border-color:#c9dbcc}
@media(max-width:650px){body[data-engine=omni] .top-actions{gap:7px}.history-nav{width:40px;padding:0}.history-nav span,body[data-engine=omni] .connection{display:none}}

[hidden]{display:none!important}
dialog{border:1px solid #d5e2da;border-radius:16px;padding:26px;color:#263f34;max-width:min(460px,90vw)} dialog::backdrop{background:rgba(25,45,35,.35)} dialog button{padding:10px 16px;border:1px solid #cedbd3;border-radius:9px;margin:10px 8px 0 0;background:#edf4ee}
