@charset "UTF-8";

:root{color-scheme:light;--paper:#f5f4ec;--sidebar:#fbfaf4;--white:#fffefa;--ink:#223a33;--muted:#758078;--line:#e3e5da;--green:#164b3f;--green-dark:#123f35;--green-soft:#e9efe5;--lime:#d2e4a4;--amber:#956e43;--amber-soft:#f1e9db;--danger:#a34237;--radius:20px;--shadow:0 8px 30px #263e2f06;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.5}
button,input,select{font:inherit}
button,a,summary,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button{touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.48}
button,a,select,summary{outline-offset:4px}
:focus-visible{outline:3px solid #8dba72}
button{border:0}
button svg,.card-header svg,.privacy-mark svg,.microphone-settings summary svg,.routing-pill svg,.install-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[hidden]{display:none!important}
p,h1,h2,h3{margin:0}
a{color:inherit}
.skip-link{position:fixed;top:12px;left:12px;z-index:100;background:var(--green);color:#fff;padding:12px 18px;border-radius:10px;transform:translateY(-160%);text-decoration:none}
.skip-link:focus{transform:translateY(0)}
.app-shell{max-width:1600px;min-height:100vh;margin:0 auto;display:grid;grid-template-columns:306px minmax(0,1fr)}
.sidebar{position:sticky;top:0;align-self:start;min-height:100vh;padding:30px 25px 23px;border-right:1px solid var(--line);background:var(--sidebar);display:flex;flex-direction:column}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:inline-flex;align-items:center;gap:9px;color:var(--green);text-decoration:none}
.brand-mark{display:block;width:43px;height:43px}
.brand-mark svg{width:100%;height:100%}
.brand-name{font-size:37px;line-height:1;font-weight:650;letter-spacing:-2px}
.brand-period{color:#9eac80}
.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:11px;background:transparent;color:var(--muted);transition:background .16s,color .16s;flex-shrink:0}
.icon-button:hover{background:var(--green-soft);color:var(--green)}
.sidebar-intro{padding:34px 0 32px}
.eyebrow{font-size:10px;line-height:1.5;font-weight:700;letter-spacing:1.9px}
.sidebar-intro .eyebrow{color:var(--muted);letter-spacing:2px;margin-bottom:11px}
.sidebar-tagline{font-size:24px;font-weight:480;line-height:1.35;letter-spacing:-.65px}
.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-label h2{font-size:12px;font-weight:650;letter-spacing:.1px}
.section-label>span{font-size:10px;color:#a6ada1;font-variant-numeric:tabular-nums}
.mode-options{display:grid;gap:9px}
.mode-option{width:100%;min-height:79px;display:flex;align-items:center;gap:12px;padding:13px 11px;border:1px solid var(--line);border-radius:14px;text-align:left;background:transparent;color:var(--ink);transition:border-color .16s,background .16s,box-shadow .16s}
.mode-option:hover{border-color:#aabb9b;background:#f1f3e9}
.mode-option[aria-pressed="true"],.mode-option.active,.mode-option.is-selected{background:var(--green-soft);border-color:#9db18b;box-shadow:inset 0 0 0 .5px #9db18b}
.mode-icon{display:flex;align-items:center;justify-content:center;width:30px;color:var(--green);flex-shrink:0}
.mode-icon svg{width:24px;height:24px}
.mode-copy{min-width:0;flex:1}
.mode-copy strong{display:block;font-size:12.5px;line-height:1.35;font-weight:650}
.mode-copy>span{display:block;margin-top:4px;font-size:10.5px;color:var(--muted);line-height:1.4}
.mode-check{display:grid;place-items:center;width:16px;height:16px;border:1px solid #c7cec0;border-radius:50%;color:transparent;flex-shrink:0}
.mode-check svg{width:13px;height:13px;stroke-width:2.2}
.mode-option[aria-pressed="true"] .mode-check,.mode-option.active .mode-check,.mode-option.is-selected .mode-check{background:var(--green);border-color:var(--green);color:white}
.mode-help{min-height:51px;margin:12px 2px 14px;color:var(--muted);font-size:11px;line-height:1.6}
.ear-tests{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.ear-test{display:flex;align-items:center;gap:6px;min-height:52px;padding:8px 7px;color:var(--ink);border:1px solid var(--line);border-radius:11px;background:var(--white);text-align:left;transition:background .16s,border-color .16s}
.ear-test:hover{background:var(--green-soft);border-color:#becbb0}
.ear-letter{display:grid;place-items:center;flex-shrink:0;width:21px;height:25px;font-size:12px;font-weight:650;color:var(--green);border-right:1px solid var(--line);padding-right:4px}
.ear-test>span:nth-child(2){font-size:10px;font-weight:600;line-height:1.3;flex:1}
.ear-test small{display:block;margin-top:2px;font-size:9px;font-weight:400;color:var(--muted)}
.ear-test>svg{width:12px;height:12px;fill:currentColor;stroke:none;color:#8b978a}
.microphone-settings{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.microphone-settings summary{min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font-size:12px;font-weight:600}
.microphone-settings summary::-webkit-details-marker{display:none}
.microphone-settings summary>span{display:flex;align-items:center;gap:9px}
.microphone-settings summary>span svg{width:17px;height:17px;color:var(--muted)}
.microphone-settings .details-chevron{width:14px;height:14px;color:#899381;transition:transform .16s}
.microphone-settings[open] .details-chevron{transform:rotate(180deg)}
.microphone-body{padding:0 0 17px}
.field-label{display:block;font-size:11px;color:var(--muted);margin:3px 0 7px}
.input-row{display:flex;align-items:center;gap:4px}
.input-row select{min-width:0;flex:1;width:100%;height:40px;padding:0 25px 0 9px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-size:12px}
.input-row .icon-button{width:33px;height:37px}
.microphone-note{font-size:10px;line-height:1.6;color:var(--muted);margin-top:8px}
.button{min-height:47px;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 14px;border-radius:11px;font-size:12px;font-weight:650;line-height:1.35;text-align:center;transition:background .16s,box-shadow .16s,transform .16s}
.button svg{width:18px;height:18px}
.button:hover:not(:disabled){transform:translateY(-1px)}
.button-primary{background:var(--green);color:#fffdf6;box-shadow:0 4px 12px #164b3f13}
.button-primary:hover:not(:disabled){background:var(--green-dark);box-shadow:0 5px 15px #164b3f24}
.button-secondary{background:transparent;color:var(--green);border:1px solid #cbd2c2}
.button-secondary:hover:not(:disabled){background:var(--green-soft)}
.button-secondary svg{fill:currentColor;stroke-width:1.3}
.button-stop{background:var(--danger);color:#fff}
.button-stop svg{fill:currentColor;stroke:0}
.button-quiet{background:var(--green-soft);color:var(--green)}
.mic-test-button{width:100%;margin-top:10px;min-height:36px;padding:8px;font-size:11px}
.mic-test-button svg{width:15px;height:15px}
.session-controls{position:sticky;top:12px;z-index:20;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:9px 12px;margin:0 0 20px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfaf4fa;box-shadow:0 5px 20px #2d482d08}
.primary-actions{min-width:0}
.primary-actions .button{width:100%}
.start-help{grid-column:1 / -1;margin:0;color:var(--green);font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.controls-note{grid-column:1 / -1;font-size:10px;text-align:center;color:#949c90;margin-top:1px}
.session-overview{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 10px;border-bottom:1px solid var(--line);min-width:0}.conversation-clock{display:flex;align-items:center;gap:12px;min-width:0}.conversation-clock>span{font-size:12px;line-height:1.5;color:#708067}.conversation-clock time{font-size:24px;line-height:1.25;letter-spacing:.3px;font-weight:550;font-variant-numeric:tabular-nums;color:var(--green);min-width:5ch;white-space:nowrap}.conversation-phase{font-size:12px;line-height:1.5;color:#77846e;text-align:right;overflow-wrap:anywhere}.is-session-active .conversation-phase{color:#436948}.retry-button{grid-column:1 / -1}
.sidebar-footer{padding-top:34px;margin-top:auto;display:grid;gap:13px}
.privacy-mark{display:flex;align-items:center;gap:7px;font-size:10px;color:#8b9588}
.privacy-mark svg{width:16px;height:16px}
.text-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;padding:0;min-height:30px;background:none;color:var(--muted);font-size:11px;text-align:left;line-height:1.4}
.text-button:hover{color:var(--green)}
.sidebar-footer .text-button{font-size:11px;color:var(--green)}
.sidebar-footer .text-button span{font-size:16px;margin-left:3px}
.workspace{min-width:0;padding:27px 40px 25px}
.workspace-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:27px;margin-bottom:21px}
.app-badge{display:inline-flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1.1px;font-weight:700;color:#7b8875;white-space:nowrap}
.app-badge>span{width:5px;height:5px;border-radius:50%;background:#9dac86}
.workspace-meta{font-size:10px;color:#8f978c}
.install-button{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;color:var(--green);border:1px solid #d4dbcb;background:transparent;border-radius:7px;font-size:10px;margin-left:auto}
.install-button svg{width:14px;height:14px}
.hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:33px 35px 30px;min-height:263px;background:var(--green);color:var(--white);border-radius:23px}
.hero::after{content:"";position:absolute;z-index:-1;width:340px;height:340px;right:-170px;top:-200px;border:1px solid #ffffff0d;border-radius:50%;box-shadow:0 0 0 42px #ffffff04,0 0 0 84px #ffffff03}
.hero-copy{position:relative;z-index:2;max-width:430px}
.hero .eyebrow{color:#c0d2b2;font-size:9px;letter-spacing:1.65px;margin-bottom:11px}
.hero h1{font-size:clamp(29px,3vw,43px);font-weight:500;letter-spacing:-1.45px;line-height:1.18}
.hero-copy>p:not(.eyebrow){max-width:370px;margin-top:14px;font-size:11px;line-height:1.7;color:#d0ddd0}
.hero-footnote{display:flex;align-items:center;gap:7px;margin-top:21px;color:#becdb8;font-size:9px;letter-spacing:.2px}
.hero-footnote>span{width:5px;height:5px;background:var(--lime);border-radius:50%}
.hero-art{position:relative;width:245px;height:190px;flex-shrink:0;margin-right:4px}
.hero-orbit{position:absolute;border:1px solid #b4d39424;border-radius:50%}
.orbit-one{inset:2px 1px 0 25px;transform:rotate(-20deg)}
.orbit-two{inset:20px -13px 12px 14px;transform:rotate(30deg)}
.language-orb{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:29px;font-weight:450;line-height:1;letter-spacing:-1.8px;font-size:48px}
.language-orb>span{margin-top:12px;font-size:10px;font-weight:400;letter-spacing:0}
.orb-vi{width:114px;height:130px;top:7px;left:8px;z-index:2;background:#d7e6b3;color:#294d3a;transform:rotate(-9deg);box-shadow:0 10px 25px #09271d1a}
.orb-zh{width:114px;height:130px;bottom:1px;right:-2px;z-index:3;background:#f3f0df;color:#365345;transform:rotate(8deg);font-size:49px;box-shadow:0 10px 25px #09271d12}
.hero-bridge{position:absolute;width:180px;height:80px;left:26px;bottom:8px;z-index:4;color:#c8d7ac;transform:rotate(-15deg)}
.status-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 2px 17px;border-bottom:1px solid var(--line)}
.status-main{display:flex;align-items:center;gap:11px;min-width:0}
.status-dot{display:block;flex-shrink:0;width:9px;height:9px;border-radius:50%;background:#a7b18f;box-shadow:0 0 0 5px #e8ecdF}
.status-dot.active,.status-dot.is-active,.status-dot.connected,.status-dot.ready,.status-dot.listening{background:#3e8764;box-shadow:0 0 0 5px #dfead9}
.status-dot.error{background:var(--danger);box-shadow:0 0 0 5px #f2e2db}
.status-dot.connecting,.status-dot.pending{background:#b18b43;box-shadow:0 0 0 5px #f0e8d8}
.status-text{font-size:12px;font-weight:650}
.direction-text{font-size:10px;color:var(--muted);margin-top:3px}
.status-side{text-align:right;min-width:130px}
.connection-status{font-size:9px;line-height:1.4;color:#8c957f}
.meter-track{height:3px;width:90px;max-width:100%;background:#dde4d3;border-radius:3px;margin:7px 0 1px auto;overflow:hidden}
.meter-bar{height:100%;width:0%;background:#69995c;border-radius:3px;transition:width 80ms linear;transform-origin:left center}
.notice{position:relative;margin-top:12px;padding:0 0 0 14px;font-size:10.5px;line-height:1.65;color:#8b9183}
.notice::before{content:"";position:absolute;top:6px;left:1px;width:5px;height:5px;border:1px solid #a5b193;border-radius:50%}
.notice:empty{display:none}
.notice.error,.notice.warning{padding:10px 12px;color:#85532f;background:#f2e8d8;border-radius:9px}
.notice.error::before,.notice.warning::before{display:none}
.conversation{margin-top:29px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.workspace-heading .eyebrow{font-size:8px;letter-spacing:1.45px;color:#8c9780;margin-bottom:5px}
.workspace-heading h2{font-size:23px;font-weight:500;letter-spacing:-.75px;line-height:1.3}
.clear-button{align-self:flex-end;font-size:10px;padding:5px 0;white-space:nowrap}
.clear-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.caption-card{background:#eeefe4;border:1px solid #e3e5d7;border-radius:16px;padding:16px 20px 18px}
.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.card-header h3{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:650}
.caption-card .card-header svg{width:16px;height:16px;color:#78916f}
.source-language{font-size:8px;letter-spacing:.6px;font-weight:600;color:#8f9a84;text-align:right}
.source-text{font-size:16px;line-height:1.65;margin-top:12px;min-height:51px;white-space:pre-wrap;overflow-wrap:anywhere}
.source-text:empty::before{content:attr(data-placeholder);color:#929c8b;font-size:12px}
.source-text.is-empty{color:#929c8b;font-size:12px}
.translation-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:17px}
.translation-card{--card-accent:var(--green);--card-tint:#e9efe5;position:relative;display:flex;flex-direction:column;min-width:0;min-height:247px;padding:20px 20px 0;border:1px solid #e7e8de;background:var(--white);border-radius:18px;box-shadow:var(--shadow);transition:border-color .2s,box-shadow .2s,background .2s}
.partner-card,.chinese-card{--card-accent:var(--amber);--card-tint:var(--amber-soft)}
.translation-card.playing,.translation-card.is-playing,.translation-card[data-playing="true"],.translation-card:has(.playing-pill:not([hidden])){border-color:var(--card-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--card-accent) 8%,transparent);background:color-mix(in srgb,var(--card-tint) 35%,var(--white))}
.language-heading{display:flex;align-items:center;gap:10px}
.language-monogram{display:grid;place-items:center;width:37px;height:41px;color:var(--card-accent);background:var(--card-tint);border-radius:10px;font-size:21px;letter-spacing:-.7px;line-height:1}
.language-heading h3{font-size:16px;line-height:1.3;letter-spacing:-.3px;font-weight:600;color:var(--card-accent)}
.language-heading p{font-size:9px;color:#98a18f;line-height:1.5;margin-top:3px}
.chinese-card .language-heading h3{font-size:20px;line-height:1.05;font-weight:500;letter-spacing:1px}
.playing-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;flex-shrink:0;color:var(--card-accent);background:var(--card-tint);font-size:8px;line-height:1.3;font-weight:650;border-radius:5px;white-space:nowrap}
.playing-pill>span{width:4px;height:4px;border-radius:50%;background:currentColor}
.translation-text{min-height:107px;padding:21px 0 20px;font-size:22px;line-height:1.5;font-weight:400;letter-spacing:-.35px;white-space:pre-wrap;overflow-wrap:anywhere}
.translation-text:empty::before{content:attr(data-placeholder);color:#a2a99b;font-size:13px;line-height:1.7;font-weight:400;letter-spacing:0}
.translation-text.is-empty{color:#a2a99b;font-size:13px;line-height:1.7;letter-spacing:0}
.chinese-text{font-size:24px;line-height:1.65;letter-spacing:.7px}
.translation-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;min-height:45px;border-top:1px solid #eff0e7}
.translation-footer>span:first-child{font-size:7px;font-weight:600;letter-spacing:1px;color:#a2aa99}
.routing-pill{display:inline-flex;align-items:center;gap:4px;color:var(--card-accent);font-size:8px;font-weight:500;line-height:1.3}
.routing-pill svg{width:12px;height:12px;stroke-width:1.4}
.workspace-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;margin-top:21px;padding:0 1px;color:#9aa18f;font-size:8px;line-height:1.7}
.workspace-footer p{max-width:310px}
.workspace-footer p:last-child{text-align:right}
.setup-dialog{width:min(640px,calc(100% - 32px));max-height:min(840px,calc(100dvh - 44px));padding:0;border:1px solid #d9dfcf;border-radius:21px;background:var(--sidebar);color:var(--ink);box-shadow:0 24px 100px #18392d30;overscroll-behavior:contain}
.setup-dialog::backdrop{background:#18392d66;backdrop-filter:blur(5px)}
.dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 20px;border-bottom:1px solid var(--line);background:var(--sidebar)}
.dialog-header .eyebrow{color:#96a187;font-size:8px;letter-spacing:1.6px;margin-bottom:6px}
.dialog-header h2{font-size:24px;font-weight:500;letter-spacing:-.8px;line-height:1.25}
.dialog-header .icon-button{margin:-3px -9px 0 0}
.dialog-body{padding:3px 26px 4px}
.setup-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:14px;padding:23px 0;border-bottom:1px solid var(--line)}
.setup-step:last-child{border:0}
.step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--green-soft);color:var(--green);font-size:10px;letter-spacing:.5px;font-weight:650}
.setup-step h3{font-size:14px;font-weight:650;padding-top:2px;margin-bottom:9px;line-height:1.5}
.setup-step p{color:#7d8978;font-size:11px;line-height:1.8;margin-top:9px}
.setup-step strong{color:#4c6553;font-weight:650}
.setup-step code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;color:#446249;font-size:10px;background:#eaf0e3;padding:2px 4px;border-radius:4px}
.setup-step .step-note{font-size:10px;line-height:1.8;color:#9aa28e}
.compact-button{display:inline-flex;margin-top:13px;padding:10px 12px;min-height:37px;font-size:10px;gap:6px}
.compact-button svg{width:14px;height:14px}
.dialog-footer{font-size:9px;line-height:1.8;padding:15px 26px 19px;color:#909c85;background:#f0f2e7;border-top:1px solid var(--line)}
.noscript-message{position:fixed;inset:auto 14px 14px;z-index:60;padding:15px;background:#fff4dd;border:1px solid #dfc482;border-radius:10px;color:#69532c;text-align:center;font-size:12px}

@media(min-width:1450px){.workspace{padding-right:58px;padding-left:58px}.hero{padding:38px 43px;min-height:285px}.hero-art{margin-right:40px}.translation-card{min-height:272px}.translation-text{min-height:130px}.app-shell{grid-template-columns:320px minmax(0,1fr)}}
@media(max-width:1150px){.app-shell{grid-template-columns:276px minmax(0,1fr)}.sidebar{padding:26px 20px 22px}.workspace{padding:25px 27px}.hero{padding:28px;gap:10px;min-height:253px}.hero-art{width:178px;height:169px;margin-right:-8px}.language-orb{width:91px;height:111px;border-radius:24px;font-size:40px}.orb-vi{left:0;top:6px}.orb-zh{right:-1px;bottom:2px;font-size:41px}.language-orb>span{font-size:9px;margin-top:11px}.hero-bridge{width:142px;left:12px;bottom:5px}.hero h1{font-size:32px}.hero-copy>p:not(.eyebrow){max-width:300px;font-size:10px}.hero .eyebrow{font-size:8px;letter-spacing:1.3px}.translation-card{padding:17px 16px 0}.language-heading{gap:8px}.language-heading h3{font-size:14px}.language-heading p{font-size:8px}.language-monogram{width:32px;height:37px}.playing-pill{font-size:7px;padding:4px}.translation-text{font-size:20px}.chinese-text{font-size:23px}.workspace-meta{font-size:9px}.status-side{min-width:110px}.workspace-footer{gap:18px}}
@media(max-width:900px) and (min-width:761px){.hero-art{display:none}.hero-copy{max-width:100%}.hero h1{font-size:34px}.hero-copy>p:not(.eyebrow){max-width:100%}.hero{min-height:250px}.translation-grid{grid-template-columns:1fr}.translation-card{min-height:205px}.translation-text{min-height:88px}.workspace-meta{display:none}.workspace-footer{display:block}.workspace-footer p:last-child{text-align:left;margin-top:6px}.translation-card .card-header{gap:8px}.language-heading h3{font-size:16px}.language-heading p{font-size:9px}}
@media(max-width:760px){.app-shell{display:flex;flex-direction:column;min-height:100dvh}.sidebar{position:static;min-height:0;width:auto;border-right:0;border-bottom:1px solid var(--line);padding:19px 22px 15px;background:var(--sidebar)}.brand-row{margin-bottom:23px}.brand-mark{width:35px;height:35px}.brand-name{font-size:31px;letter-spacing:-1.7px}.brand-row .icon-button{width:35px;height:35px}.sidebar-intro{display:none}.mode-panel .section-label{margin-bottom:9px}.section-label h2{font-size:11px}.section-label>span{display:none}.mode-options{grid-template-columns:1fr 1fr;gap:9px}.mode-option{min-height:68px;padding:11px 10px;gap:8px;border-radius:12px}.mode-icon{width:24px}.mode-icon svg{width:21px;height:21px}.mode-copy strong{font-size:11px}.mode-copy>span{font-size:9px;margin-top:3px}.mode-check{width:14px;height:14px}.mode-check svg{width:11px;height:11px}.mode-help{font-size:10px;min-height:0;margin:9px 1px 11px;line-height:1.6}.ear-tests{gap:9px}.ear-test{min-height:40px;padding:6px 10px;gap:8px}.ear-test>span:nth-child(2){display:flex;align-items:center;gap:7px;font-size:10px}.ear-test small{display:inline;margin-top:0;font-size:9px}.ear-letter{height:23px;width:22px;font-size:11px}.ear-test>svg{margin-left:auto}.microphone-settings{margin-top:12px;border-bottom:0}.microphone-settings summary{min-height:37px;font-size:10px}.microphone-settings summary>span{gap:7px}.microphone-settings summary>span svg{width:15px;height:15px}.microphone-body{padding:7px 0 0}.input-row select{font-size:14px;height:42px}.microphone-note{font-size:10px}.mic-test-button{min-height:38px;font-size:11px}.sidebar-footer{display:none}.session-controls{position:fixed;z-index:20;inset:auto 0 0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#fbfaf4ed;border-top:1px solid #dfe4d3;backdrop-filter:blur(15px);box-shadow:0 -7px 25px #2d482d05}.session-controls .button{width:100%;height:48px;padding:9px 8px;gap:6px;font-size:11px;border-radius:11px}.session-controls .button svg{width:16px;height:16px}.controls-note{display:none}.workspace{padding:17px 22px calc(105px + env(safe-area-inset-bottom))}.workspace-topline{margin-bottom:14px;gap:10px;min-height:21px}.app-badge{font-size:8px;gap:6px;letter-spacing:1px}.workspace-meta{font-size:8px}.install-button{font-size:9px;padding:5px 7px;gap:4px}.install-button:not([hidden])+.workspace-meta{display:none}.hero{padding:25px 24px;min-height:229px;border-radius:18px;gap:8px}.hero h1{font-size:33px;letter-spacing:-1.2px}.hero .eyebrow{font-size:7px;letter-spacing:1.3px;margin-bottom:11px}.hero-copy>p:not(.eyebrow){max-width:275px;font-size:10px;margin-top:12px}.hero-footnote{font-size:8px;margin-top:17px;gap:6px}.hero-art{width:167px;height:164px;margin-right:1px}.language-orb{width:86px;height:105px;border-radius:22px;font-size:38px}.orb-zh{font-size:40px}.language-orb>span{font-size:8px;margin-top:10px}.hero-bridge{width:131px;left:12px;bottom:10px}.status-banner{padding:18px 1px 16px;gap:10px}.status-main{gap:10px}.status-text{font-size:11px}.direction-text{font-size:9px}.status-dot{width:7px;height:7px;box-shadow:0 0 0 4px #e8ecdf}.status-side{min-width:105px}.connection-status{font-size:8px}.meter-track{width:68px;height:3px;margin-top:6px}.notice{font-size:10px;line-height:1.7;margin-top:11px;padding-left:13px}.conversation{margin-top:25px}.workspace-heading{margin-bottom:15px}.workspace-heading .eyebrow{font-size:7px;letter-spacing:1.2px;margin-bottom:5px}.workspace-heading h2{font-size:22px}.clear-button{font-size:9px;gap:4px}.clear-button svg{width:13px;height:13px}.caption-card{border-radius:13px;padding:14px 16px 15px}.card-header h3{font-size:9px;gap:6px}.source-language{font-size:7px;letter-spacing:.35px}.caption-card .card-header svg{width:14px;height:14px}.source-text{font-size:16px;min-height:50px;margin-top:11px}.source-text:empty::before{font-size:11px}.translation-grid{gap:12px;margin-top:12px}.translation-card{padding:16px 15px 0;border-radius:14px;min-height:230px}.language-heading{gap:8px}.language-monogram{width:30px;height:35px;border-radius:8px;font-size:19px}.language-heading h3{font-size:13px}.language-heading p{font-size:8px}.chinese-card .language-heading h3{font-size:19px}.playing-pill{font-size:7px;padding:3px 4px;gap:3px}.playing-pill>span{width:3px;height:3px}.translation-text{font-size:19px;min-height:113px;padding:18px 0;letter-spacing:-.2px}.translation-text:empty::before{font-size:11px}.chinese-text{font-size:23px;line-height:1.65}.translation-footer{min-height:39px;gap:5px}.translation-footer>span:first-child{font-size:6px;letter-spacing:.6px}.routing-pill{font-size:7px;gap:3px}.routing-pill svg{width:10px;height:10px}.workspace-footer{font-size:8px;line-height:1.8;gap:18px;margin-top:17px}.setup-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 28px);border-radius:17px}.dialog-header{padding:21px 20px 17px}.dialog-header h2{font-size:21px}.dialog-header .eyebrow{font-size:7px}.dialog-body{padding:0 20px}.setup-step{grid-template-columns:25px minmax(0,1fr);gap:11px;padding:20px 0}.step-number{width:25px;height:26px;font-size:9px;border-radius:7px}.setup-step h3{font-size:13px;margin-bottom:7px;padding-top:1px}.setup-step p{font-size:11px;line-height:1.8}.setup-step .step-note{font-size:10px}.dialog-footer{padding:13px 20px 16px;font-size:9px}.compact-button{min-height:38px;font-size:10px;padding:10px;gap:5px}}
@media(max-width:520px){.sidebar{padding-right:18px;padding-left:18px}.workspace{padding-right:18px;padding-left:18px}.hero{padding:25px 22px;min-height:225px}.hero-art{width:125px;height:152px;position:absolute;right:12px;top:37px;opacity:.28;z-index:0}.hero-copy{max-width:310px}.hero h1{font-size:33px}.hero-copy>p:not(.eyebrow){max-width:270px}.hero .eyebrow{max-width:240px}.hero-footnote{margin-top:18px}.language-orb{width:75px;height:94px;border-radius:20px;font-size:35px}.orb-vi{top:0;left:-7px}.orb-zh{right:-2px;bottom:0;font-size:36px}.hero-orbit{opacity:.7}.hero-bridge{display:none}.workspace-meta{font-size:7px;max-width:155px;text-align:right}.translation-grid{grid-template-columns:1fr}.translation-card{min-height:205px;padding:18px 18px 0}.language-monogram{width:35px;height:39px;font-size:21px}.language-heading h3{font-size:16px}.language-heading p{font-size:9px}.chinese-card .language-heading h3{font-size:21px}.playing-pill{font-size:8px;padding:4px 6px;gap:4px}.translation-text{font-size:23px;min-height:105px;padding:20px 0 21px}.translation-text:empty::before{font-size:12px}.chinese-text{font-size:26px}.translation-footer{min-height:43px}.translation-footer>span:first-child{font-size:7px}.routing-pill{font-size:8px}.routing-pill svg{width:12px;height:12px}.workspace-footer{display:block}.workspace-footer p{max-width:none}.workspace-footer p:last-child{text-align:left;margin-top:6px}.session-controls{padding-right:16px;padding-left:16px;gap:8px}}
@media(max-width:360px){.sidebar{padding:16px 15px 12px}.brand-row{margin-bottom:18px}.mode-option{gap:6px;padding:10px 8px;min-height:73px}.mode-icon{width:19px}.mode-icon svg{width:19px;height:19px}.mode-copy strong{font-size:10px}.mode-copy>span{font-size:8px;line-height:1.5}.mode-check{width:12px;height:12px}.mode-check svg{width:10px;height:10px}.ear-test{padding:6px;gap:5px}.ear-test>span:nth-child(2){display:block;font-size:9px}.ear-test small{display:block;font-size:8px}.ear-letter{width:18px;padding-right:4px}.mode-help{font-size:9px}.workspace{padding:15px 15px calc(102px + env(safe-area-inset-bottom))}.hero{padding:23px 18px;min-height:218px}.hero h1{font-size:29px;letter-spacing:-1.1px}.hero .eyebrow{font-size:6.5px;letter-spacing:1.1px}.hero-copy>p:not(.eyebrow){font-size:9px;max-width:240px}.hero-footnote{font-size:7px}.hero-art{right:7px;opacity:.2}.workspace-meta{font-size:6.5px;max-width:142px}.status-side{min-width:82px;max-width:92px}.status-text{font-size:10px}.direction-text{font-size:8px}.connection-status{font-size:7px}.status-main{gap:9px}.workspace-heading h2{font-size:20px}.workspace-heading .eyebrow{font-size:6.5px}.caption-card{padding:13px 14px}.card-header h3{font-size:8px}.source-language{font-size:6px}.source-text:empty::before{font-size:10px}.session-controls{padding-right:13px;padding-left:13px}.session-controls .button{font-size:10px;gap:5px;padding:8px 7px}.session-controls .button svg{width:15px;height:15px}.dialog-header h2{font-size:19px}.dialog-header{padding-right:17px;padding-left:17px}.dialog-body{padding-right:17px;padding-left:17px}.setup-step{gap:9px}.setup-step p{font-size:10px}.setup-step .step-note{font-size:9px}.compact-button{font-size:9px;gap:4px}.dialog-footer{font-size:8px;padding-right:17px;padding-left:17px}}
/* Keep the working surface readable at normal zoom, including a 320px phone. */
.section-label h2{font-size:13px}.section-label>span{font-size:11px}
.mode-copy strong{font-size:14px}.mode-copy>span{font-size:12px}.mode-help{font-size:12px;line-height:1.7;min-height:0}
.ear-test{min-height:48px}.ear-test>span:nth-child(2){font-size:12px}.ear-test small{font-size:11px}.ear-letter{font-size:13px}
.microphone-settings summary{font-size:13px;min-height:48px}.field-label{font-size:12px}.input-row select{font-size:14px;min-height:44px}.input-row .icon-button{width:44px;height:44px}.microphone-note{font-size:12px}
.button{font-size:14px;min-height:48px}.mic-test-button{font-size:13px;min-height:44px}.controls-note{font-size:11px}.privacy-mark{font-size:12px}.text-button,.sidebar-footer .text-button{font-size:12px;min-height:44px}
.icon-button{width:44px;height:44px}.app-badge{font-size:11px}.workspace-meta{font-size:12px}.install-button{font-size:12px;min-height:44px}
.hero .eyebrow{font-size:11px}.hero-copy>p:not(.eyebrow){font-size:13px;line-height:1.75}.hero-footnote{font-size:12px}.language-orb>span{font-size:12px}
.status-text{font-size:14px}.direction-text{font-size:12px}.connection-status{font-size:12px;overflow-wrap:anywhere}.status-side{max-width:235px}.notice{font-size:12px;line-height:1.75}.notice::before{top:8px}
.workspace-heading .eyebrow{font-size:11px;letter-spacing:1.1px}.clear-button{font-size:12px}.card-header h3{font-size:12px}.source-language{font-size:11px;letter-spacing:.3px}.source-text:empty::before,.source-text.is-empty{font-size:14px}
.language-heading h3{font-size:17px}.language-heading p{font-size:12px}.playing-pill{font-size:11px;white-space:normal;text-align:center;line-height:1.4}.translation-card .card-header{flex-wrap:wrap}.translation-text:empty::before,.translation-text.is-empty{font-size:14px}.translation-footer>span:first-child{font-size:11px;letter-spacing:.5px}.routing-pill{font-size:11px}.workspace-footer{font-size:12px;line-height:1.75}
.dialog-header .eyebrow{font-size:11px}.setup-step h3{font-size:16px}.setup-step p{font-size:14px;line-height:1.75}.setup-step .step-note{font-size:13px}.setup-step code{font-size:12px}.compact-button{font-size:14px;min-height:44px}.step-number{font-size:12px}.dialog-footer{font-size:12px}.setup-step .setup-status{font-size:13px;color:var(--green);padding:10px 12px;border-radius:9px;background:var(--green-soft)}.setup-status:empty{display:none}
@media(max-width:1150px) and (min-width:761px){.hero-art{opacity:.65}.hero-copy{max-width:100%}.hero h1{font-size:34px}.hero .eyebrow{font-size:10px}.hero-art{width:145px}.hero-copy>p:not(.eyebrow){max-width:330px}.translation-grid{grid-template-columns:1fr}.translation-card{min-height:225px}.mode-option{gap:9px}.mode-icon{width:25px}.mode-copy>span{line-height:1.45}.workspace-meta{font-size:11px}.status-side{max-width:180px}.workspace-footer{flex-direction:column;gap:8px}.workspace-footer p{max-width:none}.workspace-footer p:last-child{text-align:left}}
@media(max-width:760px){.brand-row .icon-button{width:44px;height:44px}.section-label h2{font-size:12px}.mode-option{min-height:92px;position:relative;padding:12px 11px;gap:9px}.mode-copy strong{font-size:14px;line-height:1.35;padding-right:8px}.mode-copy>span{display:none}.mode-icon{width:23px}.mode-check{position:absolute;right:9px;top:10px;width:13px;height:13px}.mode-help{font-size:13px;line-height:1.65;margin-top:10px;margin-bottom:12px}.ear-test{min-height:48px;padding:8px;gap:7px}.ear-test>span:nth-child(2){display:block;font-size:12px}.ear-test small{display:block;font-size:11px;margin-top:2px}.ear-letter{width:23px;font-size:13px}.microphone-settings summary{font-size:13px;min-height:44px}.microphone-note{font-size:13px}.field-label{font-size:12px}.input-row select{font-size:16px;min-height:44px}.mic-test-button{font-size:14px;min-height:44px}.session-controls .button{min-height:50px;height:auto;font-size:14px;padding:10px 8px;line-height:1.3}.session-controls .button svg{width:17px;height:17px}.workspace{padding-bottom:calc(114px + env(safe-area-inset-bottom))}.workspace-topline{gap:12px}.app-badge{font-size:11px}.workspace-meta{display:none}.install-button{font-size:12px;min-height:44px}.hero{min-height:249px}.hero h1{font-size:33px}.hero .eyebrow{font-size:11px;line-height:1.6;letter-spacing:1.05px;max-width:290px}.hero-copy>p:not(.eyebrow){font-size:13px;max-width:340px}.hero-footnote{font-size:12px;line-height:1.6}.hero-art{opacity:.18}.status-banner{flex-wrap:wrap;gap:11px;padding-top:19px}.status-text{font-size:14px}.direction-text{font-size:13px}.status-side{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:none;width:100%;text-align:left;padding-left:17px}.connection-status{font-size:12px;max-width:calc(100% - 72px)}.meter-track{flex-shrink:0;width:60px;margin:0 0 0 auto}.notice{font-size:13px;line-height:1.7}.workspace-heading .eyebrow{font-size:11px;line-height:1.55;max-width:190px}.workspace-heading h2{font-size:23px}.clear-button{font-size:12px;gap:5px}.clear-button svg{width:16px;height:16px}.caption-card .card-header{flex-wrap:wrap;gap:7px}.card-header h3{font-size:12px}.source-language{font-size:11px}.source-text:empty::before,.source-text.is-empty{font-size:14px}.translation-card{min-height:225px}.language-heading h3{font-size:17px}.language-heading p{font-size:12px}.translation-text:empty::before,.translation-text.is-empty{font-size:14px;line-height:1.7}.playing-pill{font-size:11px;padding:5px 7px}.translation-footer>span:first-child{font-size:11px;line-height:1.5}.routing-pill{font-size:11px}.workspace-footer{font-size:12px;line-height:1.7}.setup-step p{font-size:14px;line-height:1.75}.setup-step .step-note{font-size:13px}.setup-step h3{font-size:16px;line-height:1.5}.step-number{font-size:11px}.compact-button{font-size:14px;min-height:46px;padding:10px;line-height:1.4}.dialog-footer{font-size:12px;line-height:1.7}.dialog-header .eyebrow{font-size:11px}.setup-step code{font-size:12px}.setup-step .setup-status{font-size:13px}.dialog-header h2{font-size:22px;line-height:1.3}}
@media(max-width:360px){.mode-option{min-height:94px;padding:11px 8px;gap:7px}.mode-icon{width:20px}.mode-icon svg{width:20px;height:20px}.mode-copy strong{font-size:13px;line-height:1.4;padding-right:5px}.mode-help{font-size:13px}.ear-test{gap:6px}.ear-test>span:nth-child(2){font-size:11px}.ear-test small{font-size:11px}.hero h1{font-size:29px;letter-spacing:-1px}.hero .eyebrow{font-size:10px;line-height:1.6}.hero-copy>p:not(.eyebrow){font-size:13px;line-height:1.7}.hero-footnote{font-size:11px}.status-text{font-size:14px}.direction-text{font-size:12px}.source-language{font-size:11px}.workspace-heading h2{font-size:21px}.workspace-heading .eyebrow{font-size:10px}.workspace-heading{gap:9px}.session-controls .button{font-size:14px;gap:5px;padding:10px 6px;min-height:52px}.session-controls .button svg{width:15px;height:15px}.dialog-header{padding-right:15px;padding-left:15px}.dialog-body{padding-right:15px;padding-left:15px}.setup-step{grid-template-columns:23px minmax(0,1fr);gap:9px}.setup-step p{font-size:13px}.setup-step .step-note{font-size:13px}.setup-step h3{font-size:15px}.compact-button{font-size:13px;padding:10px 8px}.dialog-header h2{font-size:21px}.dialog-footer{font-size:12px}.workspace{padding-bottom:calc(117px + env(safe-area-inset-bottom))}}
@media(min-width:761px) and (max-height:850px){.sidebar{padding-top:22px;padding-bottom:18px}.sidebar-intro{padding-top:20px;padding-bottom:22px}.sidebar-tagline{font-size:21px;line-height:1.3}.mode-option{min-height:73px}.session-controls{margin-top:18px}.controls-note{display:none}.sidebar-footer{padding-top:18px}.privacy-mark{display:none}}
@media(max-width:360px){.hero .eyebrow,.workspace-heading .eyebrow{font-size:11px}.compact-button{font-size:14px}}
/* Keep session actions within reach without covering the final captions. */
@media(min-width:761px){.session-controls{margin-top:0}.session-controls .button{min-height:50px}}
@media(max-width:760px){.session-controls{top:auto;border-right:0;border-bottom:0;border-left:0;border-radius:0;align-items:start}.start-help{grid-column:1 / -1;font-size:13px;line-height:1.55;text-align:left}.workspace{padding-bottom:calc(300px + env(safe-area-inset-bottom))}.session-overview{gap:10px;padding-bottom:9px}.conversation-clock{gap:8px;flex-wrap:wrap}.conversation-clock>span{font-size:11px;max-width:88px}.conversation-clock time{font-size:23px}.conversation-phase{font-size:11px;max-width:130px}}
@media(max-width:360px){.session-overview{align-items:flex-end}.conversation-clock{gap:3px;flex-direction:column;align-items:flex-start}.conversation-clock>span{max-width:none}.conversation-clock time{font-size:22px}.conversation-phase{max-width:125px}.workspace{padding-bottom:calc(330px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}.button:hover:not(:disabled){transform:none}}

/* Account history remains separate from the live captions. */
.workspace-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.history-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;min-height:44px;background:var(--white);border:1px solid #cbd2c2;border-radius:10px;color:var(--green);font-size:13px;font-weight:600;line-height:1.4}
.history-button:hover{background:var(--green-soft)}
.history-button svg{width:18px;height:18px}
.conversation-privacy{font-size:12px;color:var(--muted);line-height:1.75;margin-top:18px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fbfaf480}
.history-storage-warning{margin-top:14px;padding:12px 14px;border:1px solid #d6bf99;border-radius:10px;background:var(--amber-soft);color:#775525;font-size:13px;line-height:1.75}
.history-dialog{width:min(780px,calc(100% - 40px));color:var(--ink)}
.history-dialog .dialog-header{position:sticky;top:0;z-index:1;background:var(--white);border-bottom:1px solid var(--line)}
.history-body{padding:20px 26px 26px}
.history-privacy{padding:13px 15px;background:var(--green-soft);border:1px solid #cbd8bf;border-radius:10px;color:var(--green);font-size:13px;line-height:1.7}
.history-toolbar{display:flex;justify-content:flex-end;gap:16px;margin:10px 0}
.history-toolbar #history-back{margin-right:auto}
.history-toolbar .text-button{color:var(--green);font-size:13px}
.history-hint{font-size:12px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
.history-list,.history-messages{padding:0;margin:16px 0 0;list-style:none;display:grid;gap:10px}
.history-session{display:grid;width:100%;text-align:left;gap:7px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.history-session:hover{border-color:#9db18b;background:var(--green-soft)}
.history-session-title{font-size:16px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.history-session-meta{font-size:12px;line-height:1.6;color:var(--muted)}
.history-session-open{font-size:12px;line-height:1.6;color:var(--green)}
.history-detail h3{font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:8px}
.history-detail .history-hint+.history-hint{margin-top:8px}
.history-message{padding:15px 17px;border:1px solid var(--line);border-left:3px solid #91a58a;border-radius:10px;background:var(--paper);min-width:0}
.history-translation{border-left-color:var(--green);background:var(--green-soft)}
.history-message-label{font-size:12px;font-weight:650;color:var(--green);line-height:1.5}
.history-message-text{font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}
.history-message-time{font-size:11px;line-height:1.6;color:var(--muted)}
.history-feedback{font-size:13px;line-height:1.75;color:var(--muted);padding-top:16px;overflow-wrap:anywhere}
.history-feedback:empty{display:none}
.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.history-pagination .button{font-size:13px;min-height:44px;padding:10px 12px}
.history-pagination>span{font-size:12px;color:var(--muted);text-align:center}
@media(max-width:760px){.workspace-topline{align-items:center;gap:10px}.workspace-tools{gap:8px}.history-button{font-size:12px;padding:8px 10px}.workspace-tools .install-button{max-width:140px}.conversation-privacy{font-size:12px}.history-dialog{width:calc(100% - 24px)}.history-body{padding:16px 18px 22px}.history-session{padding:14px}.history-dialog .dialog-header h2{font-size:22px}.history-privacy{font-size:13px;padding:12px}.history-detail h3{font-size:19px}.history-message{padding:14px}.history-message-text{font-size:16px}.history-pagination{gap:8px}.history-pagination .button{font-size:12px;padding:9px}.history-pagination>span{font-size:11px}}
@media(max-width:400px){.workspace-topline{flex-wrap:wrap}.workspace-tools{margin-left:auto}.workspace-tools .install-button{max-width:none}.history-body{padding-right:15px;padding-left:15px}.history-pagination .button{padding:9px 8px}}

/* One working surface and one set of controls, expanded within the viewport. */
.focus-view-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:44px;padding:8px 10px;border:1px solid #cbd2c2;border-radius:10px;background:var(--white);color:var(--green);font-size:12px;line-height:1.4;white-space:nowrap}
.focus-view-button:hover{background:var(--green-soft)}
.focus-view-button svg{width:17px;height:17px}
.session-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px}
.session-overview .conversation-phase{max-width:none}
html.is-conversation-expanded{overflow:hidden;scroll-behavior:auto}
.is-conversation-expanded body{overflow:hidden}
.is-conversation-expanded .sidebar,.is-conversation-expanded .workspace-topline,.is-conversation-expanded .hero,.is-conversation-expanded .workspace-footer,.is-conversation-expanded .conversation-privacy{display:none}
.is-conversation-expanded .workspace{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;padding:16px;padding: max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:var(--paper);overflow:hidden}
.is-conversation-expanded .session-controls{position:static;inset:auto;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto;grid-template-rows:auto auto;align-items:center;gap:2px 20px;margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:14px;backdrop-filter:none;box-shadow:none}
.is-conversation-expanded .session-overview{display:contents}
.is-conversation-expanded .conversation-clock{grid-column:1;grid-row:1;display:flex;align-items:center;gap:12px}
.is-conversation-expanded .conversation-clock>span{max-width:none;font-size:12px}
.is-conversation-expanded .conversation-clock time{font-size:30px;line-height:1.2}
.is-conversation-expanded .conversation-phase{grid-column:1;grid-row:2;text-align:left;font-size:12px}
.is-conversation-expanded .primary-actions{grid-column:2;grid-row:1 / 3}
.is-conversation-expanded .primary-actions .button{min-height:48px;height:auto;font-size:14px}
.is-conversation-expanded .focus-view-button{grid-column:3;grid-row:1 / 3;min-height:48px}
.is-conversation-expanded .retry-button{grid-column:1 / -1;grid-row:3;margin-top:8px;min-height:44px}
.is-conversation-expanded .controls-note,.is-conversation-expanded .start-help{display:none}
.is-conversation-expanded .session-controls:has(#start-button:disabled:not([hidden])) .start-help{display:block;grid-column:1 / -1;grid-row:3;max-height:64px;overflow:auto;margin-top:5px;font-size:12px;line-height:1.5}
.is-conversation-expanded .status-banner{flex:0 0 auto;flex-wrap:nowrap;gap:12px;padding:10px 5px;border:0}
.is-conversation-expanded .status-text{font-size:13px}
.is-conversation-expanded .direction-text{font-size:12px}
.is-conversation-expanded .status-side{display:flex;align-items:center;gap:12px;min-width:0;max-width:40%;width:auto;padding:0}
.is-conversation-expanded .connection-status{font-size:11px;max-width:none}
.is-conversation-expanded .meter-track{width:65px;flex-shrink:0;margin:0}
.is-conversation-expanded .notice,.is-conversation-expanded .history-storage-warning{flex:0 0 auto;max-height:90px;max-height:min(90px,18dvh);overflow:auto;margin:0 0 8px;font-size:12px;line-height:1.5;overscroll-behavior:contain}
.is-conversation-expanded .history-storage-warning{padding:8px 12px}
.is-conversation-expanded .conversation{flex:1 1 auto;display:flex;flex-direction:column;gap:12px;min-height:0;margin:0;padding:3px 4px 4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.is-conversation-expanded .workspace-heading{flex:0 0 auto;gap:10px;margin:0;min-height:36px}
.is-conversation-expanded .workspace-heading .eyebrow{display:none}
.is-conversation-expanded .workspace-heading h2{font-size:22px}
.is-conversation-expanded .clear-button{min-height:36px;align-self:center}
.is-conversation-expanded .caption-card{flex:0 0 auto;padding:13px 17px;max-height:180px;max-height:clamp(100px,24dvh,180px);overflow:auto;overscroll-behavior:contain}
.is-conversation-expanded .caption-card .card-header{flex-wrap:wrap;gap:6px}
.is-conversation-expanded .source-text{min-height:30px;margin-top:8px;font-size:18px;line-height:1.55}
.is-conversation-expanded .source-text.is-empty{font-size:14px}
.is-conversation-expanded .translation-grid{flex:1 0 240px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:14px;margin:0;min-height:240px}
.is-conversation-expanded .translation-card{min-height:0;padding:16px 18px 0;overflow:hidden}
.is-conversation-expanded .translation-card .card-header{flex:0 0 auto}
.is-conversation-expanded .translation-text{flex:1 1 auto;min-height:70px;margin:10px 0;padding:4px 0;overflow:auto;overscroll-behavior:contain;font-size:clamp(23px,2.4vw,34px);line-height:1.55}
.is-conversation-expanded .chinese-text{font-size:clamp(25px,2.6vw,36px)}
.is-conversation-expanded .translation-text.is-empty{font-size:14px}
.is-conversation-expanded .translation-footer{flex:0 0 auto;min-height:36px}
@media(max-width:760px){
  .session-overview .conversation-clock{flex-direction:column;align-items:flex-start;gap:3px}
  .session-overview .conversation-clock>span{max-width:none;font-size:11px}
  .session-overview{gap:8px}
  .focus-view-button{gap:5px;padding:8px;font-size:12px}
  .is-conversation-expanded .workspace{padding:10px;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .is-conversation-expanded .session-controls{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto;gap:6px 8px;padding:10px}
  .is-conversation-expanded .conversation-clock{grid-column:1;grid-row:1;gap:3px;flex-direction:column;align-items:flex-start}
  .is-conversation-expanded .conversation-clock>span{font-size:10px}
  .is-conversation-expanded .conversation-clock time{font-size:24px;letter-spacing:0}
  .is-conversation-expanded .conversation-phase{grid-column:1 / -1;grid-row:2;font-size:11px}
  .is-conversation-expanded .primary-actions{grid-column:2;grid-row:1}
  .is-conversation-expanded .primary-actions .button{font-size:13px;gap:5px;padding:9px 7px}
  .is-conversation-expanded .focus-view-button{grid-column:3;grid-row:1;flex-direction:column;gap:3px;font-size:11px;padding:6px 8px}
  .is-conversation-expanded .status-banner{padding:8px 4px;gap:8px}
  .is-conversation-expanded .status-side{max-width:65px}
  .is-conversation-expanded .connection-status{display:none}
  .is-conversation-expanded .status-text{font-size:12px}
  .is-conversation-expanded .direction-text{font-size:11px}
  .is-conversation-expanded .meter-track{width:48px}
  .is-conversation-expanded .workspace-heading h2{font-size:19px}
  .is-conversation-expanded .clear-button{font-size:11px}
  .is-conversation-expanded .conversation{gap:10px}
  .is-conversation-expanded .caption-card{padding:11px 13px}
  .is-conversation-expanded .source-text{font-size:16px;margin-top:7px}
  .is-conversation-expanded .translation-grid{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;flex-basis:360px;min-height:360px}
  .is-conversation-expanded .translation-card{padding:12px 14px 0;border-radius:14px}
  .is-conversation-expanded .language-monogram{width:30px;height:32px;font-size:19px}
  .is-conversation-expanded .language-heading h3{font-size:16px}
  .is-conversation-expanded .language-heading p{font-size:11px}
  .is-conversation-expanded .translation-text{margin:8px 0;min-height:55px;font-size:23px}
  .is-conversation-expanded .chinese-text{font-size:25px}
  .is-conversation-expanded .translation-text.is-empty{font-size:14px}
  .is-conversation-expanded .translation-footer{min-height:30px}
}
@media(max-height:500px) and (min-width:600px){
  .is-conversation-expanded .conversation-clock{flex-direction:row;align-items:center}
  .is-conversation-expanded .conversation-clock>span{display:none}
  .is-conversation-expanded .translation-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);flex-basis:190px;min-height:190px}
}

/* Independent capture and output controls. */
.output-device-field{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.audio-state-row{display:flex;flex-wrap:wrap;gap:8px 12px;margin:12px 0 6px;font-size:12px;line-height:1.5}
.audio-state-row>span{padding:5px 10px;border:1px solid var(--line);border-radius:9px;background:var(--white);overflow-wrap:anywhere}
.audio-state-row .is-listening{background:var(--green-soft);color:var(--green);border-color:#afc39b}
.audio-note{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:8px}
.mute-output-button{grid-column:2;grid-row:2;min-height:44px}
.is-conversation-expanded .audio-state-row{flex:0 0 auto;margin:3px 4px 7px;font-size:11px}
.is-conversation-expanded .audio-note{flex:0 0 auto;max-height:40px;overflow:auto;margin:0 4px 8px;font-size:11px}
.is-conversation-expanded .mute-output-button{grid-column:2;grid-row:3;margin-top:6px;min-height:44px;padding:7px 12px;font-size:12px}
.is-conversation-expanded .retry-button{grid-row:4}
.is-conversation-expanded .session-controls:has(#mute-output-button[hidden]) .retry-button{grid-row:3}
@media(max-width:760px){#mode-text{grid-column:1 / -1}.audio-state-row{font-size:11px}.is-conversation-expanded .session-controls:has(#mute-output-button:not([hidden])) .conversation-phase{grid-column:1;grid-row:2}.is-conversation-expanded .mute-output-button{grid-column:2 / -1;grid-row:2;margin-top:0}.is-conversation-expanded .retry-button{grid-row:3}}

/* Timestamped paragraphs scroll within each panel in both reading layouts. */
.caption-card{max-height:240px;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto}
.translation-text{max-height:340px;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto}
.caption-entry{display:block;min-width:0;white-space:normal}
.caption-entry+.caption-entry{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.caption-time{display:block;color:#64745e;font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:.2px;line-height:1.5}
.chinese-card .caption-time{color:#8b6438}
.caption-body{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.conversation-timing-note{margin-top:14px;color:#64745e;font-size:12px;line-height:1.6}
.is-conversation-expanded .translation-text{max-height:none}
.is-conversation-expanded .conversation-timing-note{display:none}
.is-conversation-expanded .conversation{overflow-anchor:none;scroll-behavior:auto}
@media(max-width:760px){.caption-entry+.caption-entry{margin-top:13px;padding-top:10px}.caption-time{font-size:12px}}

/* Select the real translation output where the sample conversation used to be. */
.output-control{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--green);font-size:11px;line-height:1.4}
.output-control select{width:100%;min-width:0;min-height:48px;padding:10px 28px 10px 11px;border:1px solid #cbd2c2;border-radius:11px;background:var(--white);color:var(--green);font-size:14px;cursor:pointer}
.output-control select:disabled{opacity:1;cursor:not-allowed;background:var(--green-soft);color:#526452}
.session-controls>.primary-actions{align-self:end}
.session-controls>.mute-output-button{grid-column:1 / -1;grid-row:auto}
.session-controls #output-mode-note{font-size:11px;text-align:left}
.is-conversation-expanded .session-controls>.primary-actions{align-self:center}
.is-conversation-expanded .output-control{grid-column:1;grid-row:3;flex-direction:row;align-items:center;gap:10px;margin-top:7px}
.is-conversation-expanded .output-control>span{flex-shrink:0}
.is-conversation-expanded .output-control select{flex:1;min-height:44px;padding:8px 25px 8px 9px;font-size:13px}
.is-conversation-expanded .session-controls>.mute-output-button{grid-column:2 / -1;grid-row:3;margin-top:7px}
.is-conversation-expanded .session-controls .retry-button,.is-conversation-expanded .session-controls:has(#mute-output-button[hidden]) .retry-button{grid-row:4}
.is-conversation-expanded .session-controls:has(#start-button:not([hidden])) .start-help{grid-row:4}
@media(max-width:760px){
  .output-control select{font-size:16px;min-height:50px;padding-left:9px}
  .session-controls .output-control{align-self:end}
  .is-conversation-expanded .output-control{grid-column:1 / -1;grid-row:3;margin-top:0}
  .is-conversation-expanded .output-control>span{font-size:12px}
  .is-conversation-expanded .output-control select{font-size:16px}
  .is-conversation-expanded .session-controls>.mute-output-button{grid-column:2 / -1;grid-row:2;margin-top:0}
}

/* Keep the reading view compact; setup details return when it is collapsed. */
.is-conversation-expanded .output-control,
.is-conversation-expanded .status-banner,
.is-conversation-expanded .audio-state-row,
.is-conversation-expanded #echo-status,
.is-conversation-expanded #notice[data-routine="true"],
.is-conversation-expanded .conversation-phase:not([data-attention="true"]){display:none}
.is-conversation-expanded .session-controls{grid-template-rows:auto;gap:6px 12px}
.is-conversation-expanded .primary-actions,.is-conversation-expanded .focus-view-button{grid-row:1}
.is-conversation-expanded .conversation-phase[data-attention="true"]{grid-column:1;grid-row:2}
.is-conversation-expanded .session-controls>.mute-output-button{grid-column:2 / -1;grid-row:2;margin-top:0}
.is-conversation-expanded .session-controls .retry-button,
.is-conversation-expanded .session-controls:has(#mute-output-button[hidden]) .retry-button{grid-row:3;margin-top:0}
.is-conversation-expanded .session-controls:has(#mute-output-button[hidden]) .conversation-phase{grid-column:1 / -1}
.is-conversation-expanded .session-controls:has(#start-button:disabled:not([hidden])) .start-help{grid-row:2}

/* Source corrections affect the current screen and remain separate from saved history. */
.source-scope-note{margin-top:9px;color:#64745e;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#source-heading:focus-visible{outline-offset:4px;border-radius:3px}
.source-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px;white-space:normal}
.source-row-edit{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin-inline-start:4px;padding:7px;border:0;border-radius:6px;background:transparent;color:var(--green);line-height:1;vertical-align:-.2em;white-space:normal}
.source-row-edit svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.source-row-edit:hover{background:var(--green-soft)}
.source-edited-label{display:inline-flex;align-items:center;margin-top:4px;color:#64745e;font-size:11px;font-weight:500;line-height:1.6;white-space:normal}
.source-action-feedback{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-top:12px;padding-top:10px;border-top:1px solid #d7ddca}
.source-action-feedback:has(#source-action-message:empty):has(#source-undo-button[hidden]){display:none}
#source-action-message{flex:1 1 180px;color:var(--green);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#source-action-message:empty{display:none}
#source-undo-button{flex:0 0 auto;min-height:44px;padding:9px 12px;font-size:13px}
.source-edit-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
.source-edit-dialog[open]{display:flex;flex-direction:column}
.source-edit-dialog .dialog-header{position:static;flex:0 0 auto;align-items:center;gap:12px;padding:20px 26px 16px}
.source-edit-dialog .dialog-header h2{min-width:0;overflow-wrap:anywhere}
.source-edit-dialog .dialog-header .icon-button{width:44px;height:44px;margin:0 -8px 0 0}
.source-edit-body{flex:1 1 auto;min-height:0;padding:18px 26px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
.source-edit-body .field-label{margin:0 0 8px;color:var(--ink);font-size:14px;font-weight:600;line-height:1.5}
#source-edit-input{display:block;width:100%;min-height:120px;max-height:360px;max-height:min(360px,45dvh);padding:12px 14px;border:1px solid #adbea0;border-radius:11px;background:var(--white);color:var(--ink);font:inherit;font-size:16px;line-height:1.65;resize:vertical;overflow-y:auto;overflow-wrap:anywhere;scroll-margin-block:12px}
#source-edit-input[aria-invalid="true"]{border-color:var(--danger)}
.source-edit-note{margin-top:12px;color:#64745e;font-size:13px;line-height:1.65}
.source-edit-error{margin-top:12px;padding:10px 12px;border:1px solid #d9c2b7;border-radius:9px;background:#f8eee9;color:var(--danger);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.source-edit-error:empty{display:none}
.source-edit-actions{flex:0 0 auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:14px 26px 18px}
.source-edit-actions .button{min-height:44px;font-size:14px}
@media(max-width:760px){
  .source-edit-dialog{width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
  .source-edit-dialog .dialog-header{padding:12px 18px}
  .source-edit-dialog .dialog-header h2{font-size:21px}
  .source-edit-body{padding:16px 18px}
  .source-edit-actions{padding:12px 18px max(14px,env(safe-area-inset-bottom))}
  .source-edit-actions .button{flex:1 1 100px}
}
@media(max-height:500px){
  .source-edit-dialog .dialog-header{padding-top:8px;padding-bottom:8px}
  .source-edit-body{padding-top:12px;padding-bottom:12px}
  .source-edit-actions{padding-top:10px;padding-bottom:10px}
}

/* Edited-source translations stay visible alongside the ongoing mic transcript. */
.translation-corrections{flex:0 0 auto;min-width:0;margin-top:14px;padding:12px 14px;border:1px solid #cbd8bf;border-left:3px solid var(--card-accent);border-radius:10px;background:var(--card-tint)}
.translation-corrections h4{margin:0 0 10px;color:var(--card-accent);font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.translation-correction-rows{max-height:240px;min-width:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;font-size:20px;line-height:1.6;overflow-wrap:anywhere}
.chinese-card .translation-corrections{border-color:#ddccb5;border-left-color:var(--card-accent)}
.chinese-card .translation-correction-rows{font-size:22px}
.translation-correction-rows .caption-entry+.caption-entry{margin-top:12px;padding-top:10px;border-top-color:#cad6c1}
.chinese-card .translation-correction-rows .caption-entry+.caption-entry{border-top-color:#ddccb5}
.translation-live-note{flex:0 0 auto;margin-top:14px;color:#64745e;font-size:12px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.translation-live-note:not([hidden])+.translation-text{padding-top:8px}
.source-translation-status{display:block;flex-basis:100%;margin-top:8px;color:var(--green);font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.source-translation-status:empty{display:none}
.source-translation-retry{display:inline-flex;align-items:center;justify-content:center;min-width:80px;min-height:44px;margin-top:8px;padding:9px 12px;border:1px solid #bdcbb1;border-radius:9px;background:var(--white);color:var(--green);font-size:13px;font-weight:600;line-height:1.4;white-space:normal}
.source-translation-retry:hover:not(:disabled){background:var(--green-soft)}
.is-conversation-expanded .translation-card:has(.translation-corrections:not([hidden])){overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
.is-conversation-expanded .translation-corrections{margin-top:10px;padding:10px 12px}
.is-conversation-expanded .translation-correction-rows{max-height:180px;font-size:clamp(20px,2.2vw,28px)}
.is-conversation-expanded .chinese-card .translation-correction-rows{font-size:clamp(22px,2.4vw,30px)}
.is-conversation-expanded .translation-card:has(.translation-corrections:not([hidden])) .translation-text{flex:0 0 auto;max-height:220px}
.is-conversation-expanded .translation-live-note{margin-top:12px}
@media(max-width:760px){
  .translation-corrections{margin-top:12px;padding:10px 12px}
  .translation-correction-rows{max-height:200px;font-size:19px}
  .chinese-card .translation-correction-rows{font-size:21px}
  .is-conversation-expanded .translation-correction-rows{max-height:160px;font-size:20px}
  .is-conversation-expanded .chinese-card .translation-correction-rows{font-size:22px}
}

/* Entry permission check is separate from starting the live microphone session. */
.mic-permission-panel{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin:0 0 18px;padding:14px 16px;border:1px solid #cbd8bf;border-radius:12px;background:var(--green-soft);color:var(--green)}
.mic-permission-copy{flex:1 1 260px;min-width:0}
#mic-permission-message{font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.mic-permission-note{margin-top:5px;color:#526452;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
#mic-permission-button{flex:0 0 auto;min-height:44px;max-width:100%;padding:10px 14px;font-size:14px;background:var(--white);overflow-wrap:anywhere}
#mic-permission-button:hover:not(:disabled){background:#f4f8ef}
.mic-permission-panel[data-state="denied"],.mic-permission-panel[data-state="error"],.mic-permission-panel[data-state="unavailable"]{border-color:#d6bf99;background:var(--amber-soft);color:#775525}
.is-conversation-expanded .mic-permission-panel{display:none}
@media(max-width:760px){
  .mic-permission-panel{gap:12px;margin-bottom:16px;padding:13px 14px}
  .mic-permission-copy{flex-basis:100%}
  #mic-permission-button{width:100%}
}

/* Direction remains visible while reading; change it between live sessions. */
.translation-direction-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:0 0 18px;color:var(--green);font-size:13px;line-height:1.5}
.translation-direction-control .language-choice{display:flex;flex-direction:column;gap:4px;min-width:0}
.translation-direction-control label{font-weight:600}
.translation-direction-control select{min-width:0;min-height:44px;max-width:100%;padding:9px 28px 9px 11px;border:1px solid #cbd2c2;border-radius:10px;background:var(--white);color:var(--green);font-size:14px}
.translation-direction-control select:disabled{opacity:1;cursor:not-allowed;background:var(--green-soft);color:#526452}
#translation-direction-note{grid-column:1 / -1;color:var(--muted);font-size:12px}
.translation-missing-warning{white-space:pre-line;overflow-wrap:anywhere}
.is-conversation-expanded .translation-direction-control{flex:0 0 auto;gap:6px 10px;margin:8px 4px}
.is-conversation-expanded #translation-direction-note{display:none}
@media(max-width:760px){.translation-direction-control select{flex:1;font-size:16px}#translation-direction-note{flex-basis:100%}.is-conversation-expanded .translation-direction-control{font-size:12px}}
@media(max-width:380px){.translation-direction-control{gap:8px}.translation-direction-control select{font-size:14px;padding-left:8px;padding-right:20px}}

/* Conversation first: settings have their own dialog, the page stays one viewport. */
html.cabin-workspace,body.cabin-app{height:100%;overflow:hidden}
.cabin-app .app-shell{display:block;height:100vh;height:100dvh;min-height:0;overflow:hidden}
.cabin-app .workspace{display:flex;flex-direction:column;gap:10px;width:100%;max-width:none;height:100%;min-height:0;padding:14px max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));overflow:hidden}
.cabin-app .workspace-topline.quick-navigation{display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:16px;min-height:44px;margin:0;min-width:0}
.cabin-app .quick-brand{color:var(--green);font-size:27px;font-weight:750;letter-spacing:-1.5px;line-height:1;text-decoration:none}
.cabin-app .quick-brand span{color:#9eac80}
.cabin-app .quick-navigation .workspace-tools{display:flex;flex:0 1 auto;min-width:0;flex-wrap:nowrap;justify-content:flex-start;gap:6px;margin-left:auto;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#cbd8bf transparent}
.cabin-app .quick-nav-button{flex:0 0 auto;min-height:42px;padding:8px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--green);font:inherit;font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap}
.cabin-app .quick-nav-button:hover{background:var(--green-soft)}
.cabin-app .quick-nav-button[aria-current="page"]{border-color:#cbd8bf;background:var(--green-soft)}
.cabin-app .workspace .session-controls{position:static;inset:auto;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto;grid-template-rows:auto;align-items:center;gap:6px 14px;margin:0;padding:10px 14px;border:1px solid var(--line);border-radius:12px;backdrop-filter:none;box-shadow:none}
.cabin-app .workspace .session-overview{display:contents}
.cabin-app .workspace .conversation-clock{grid-column:1;grid-row:1;display:flex;align-items:center;gap:10px}
.cabin-app .workspace .conversation-clock>span{max-width:none;font-size:12px}
.cabin-app .workspace .conversation-clock time{font-size:28px;line-height:1.2}
.cabin-app .workspace .primary-actions{grid-column:2;grid-row:1}
.cabin-app .workspace .primary-actions .button{height:auto;min-height:46px;font-size:14px}
.cabin-app .workspace .focus-view-button{grid-column:3;grid-row:1;min-height:44px}
.cabin-app .workspace .conversation-phase{grid-column:1;grid-row:2;max-width:none;text-align:left;font-size:12px}
.cabin-app .workspace .conversation-phase:not([data-attention="true"]){display:none}
.cabin-app .workspace .session-controls>.mute-output-button{grid-column:2 / -1;grid-row:2;margin:0;min-height:38px;font-size:12px}
.cabin-app .workspace .session-controls .retry-button{grid-column:1 / -1;grid-row:3;margin:0;min-height:42px}
.cabin-app .workspace .start-help{display:none}
.cabin-app .workspace .session-controls:has(#start-button:disabled:not([hidden])) .start-help{display:block;grid-column:1 / -1;grid-row:3;max-height:58px;margin:0;overflow:auto;font-size:12px}
.cabin-app .workspace>.status-banner,.cabin-app .workspace>.audio-state-row,.cabin-app .workspace>#echo-status,.cabin-app .workspace>#notice[data-routine="true"]{display:none}
.cabin-app .workspace>.notice,.cabin-app .workspace>.history-storage-warning{flex:0 0 auto;max-height:min(80px,15dvh);overflow:auto;margin:0;font-size:13px;line-height:1.5;overscroll-behavior:contain}
.cabin-app .workspace .mic-permission-panel{flex:0 0 auto;gap:8px 12px;max-height:145px;margin:0;padding:10px 12px;overflow:auto}
.cabin-app .workspace .mic-permission-copy{flex-basis:250px}
.cabin-app .workspace #mic-permission-message{font-size:13px;line-height:1.45}
.cabin-app .workspace .mic-permission-note{font-size:12px;line-height:1.45}
.cabin-app .workspace #mic-permission-button{width:auto;font-size:13px}
.cabin-app .workspace .conversation{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;min-height:0;margin:0;padding:2px 3px 3px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.cabin-app .workspace .workspace-heading{flex:0 0 auto;min-height:30px;margin:0;gap:10px}
.cabin-app .workspace .workspace-heading .eyebrow{display:none}
.cabin-app .workspace .workspace-heading h1{font-size:22px;font-weight:550;letter-spacing:-.5px;line-height:1.3}
.cabin-app .workspace .clear-button{min-height:36px;align-self:center;font-size:12px}
.cabin-app .workspace .caption-card{flex:0 0 auto;max-height:clamp(90px,22dvh,160px);padding:11px 15px;overflow:auto;overscroll-behavior:contain}
.cabin-app .workspace .source-text{min-height:28px;margin-top:7px;font-size:18px;line-height:1.55}
.cabin-app .workspace .source-text.is-empty{font-size:14px}
.cabin-app .workspace .source-scope-note{font-size:12px;line-height:1.45}
.cabin-app .workspace .translation-grid{flex:1 0 220px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:12px;min-height:220px;margin:0}
.cabin-app .workspace .translation-card{min-height:0;padding:14px 16px 0;overflow:hidden}
.cabin-app .workspace .translation-text{flex:1 1 auto;min-height:55px;max-height:none;margin:8px 0;padding:4px 0;overflow:auto;overscroll-behavior:contain;font-size:clamp(23px,2.3vw,32px);line-height:1.55}
.cabin-app .workspace .chinese-text{font-size:clamp(25px,2.5vw,34px)}
.cabin-app .workspace .translation-text.is-empty{font-size:14px}
.cabin-app .workspace .translation-footer{flex:0 0 auto;min-height:30px}
.cabin-app .workspace .translation-card:has(.translation-corrections:not([hidden])){overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
.cabin-app .workspace .translation-card:has(.translation-corrections:not([hidden])) .translation-text{flex:0 0 auto;max-height:220px}
.cabin-app .settings-dialog{width:min(540px,calc(100% - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #cbd2c2;border-radius:18px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.cabin-app .settings-dialog::backdrop{background:#142f2866;backdrop-filter:blur(3px)}
.cabin-app .settings-dialog .sidebar{display:block;position:static;inset:auto;width:auto;min-height:0;height:auto;padding:22px 24px;border:0;background:var(--paper);overflow:visible}
.cabin-app .settings-dialog .brand-row{position:sticky;top:0;z-index:2;margin-bottom:16px;background:var(--paper)}
.cabin-app .settings-dialog .brand-name{font-size:29px}
.cabin-app .settings-title{font-size:24px;letter-spacing:-.6px}
.cabin-app .settings-language-pair{margin-bottom:6px;color:var(--muted)}
.cabin-app .settings-intro{margin:8px 0 20px;color:var(--muted);font-size:14px;line-height:1.6}
.cabin-app .settings-dialog .translation-direction-control{display:grid;margin:0 0 22px}
.cabin-app .settings-dialog #translation-direction-note{display:block;flex-basis:100%}
.cabin-app .settings-dialog .output-control{display:flex;margin:0 0 12px;font-size:13px}
.cabin-app .settings-dialog .mode-options{display:none}
.cabin-app .settings-dialog .mode-help{min-height:0;margin:12px 0;font-size:13px}
.cabin-app .settings-dialog .controls-note{display:block;margin-bottom:14px;font-size:12px}
.cabin-app .settings-dialog .section-label h2{font-size:14px}
.cabin-app .settings-dialog .microphone-settings{margin-top:20px}
.cabin-app .settings-dialog .microphone-settings summary{min-height:48px;font-size:14px}
.cabin-app .settings-dialog .session-information{margin-top:18px;padding-top:8px;border-top:1px solid var(--line)}
.cabin-app .settings-dialog .session-information>summary{min-height:48px;padding:12px 0;color:var(--green);font-size:14px;font-weight:600;cursor:pointer}
.cabin-app .settings-dialog .sidebar-footer{display:flex;gap:14px;margin-top:22px;padding:18px 0;border-bottom:1px solid var(--line)}
.cabin-app .settings-dialog .conversation-timing-note,.cabin-app .settings-dialog .conversation-privacy{display:block;margin-top:16px;font-size:13px;line-height:1.6}
.cabin-app .settings-dialog .workspace-footer{display:block;margin-top:14px;font-size:12px;line-height:1.65}
.cabin-app .settings-dialog .workspace-footer p{max-width:none;text-align:left;margin-top:8px}
.cabin-app .settings-dialog .status-banner{display:flex;margin:16px 0;padding:12px 0}
.cabin-app .settings-dialog .audio-state-row{display:flex}
.cabin-app .settings-dialog #echo-status:not([hidden]){display:block}
.is-conversation-expanded .cabin-app .workspace{gap:8px}
.is-conversation-expanded .cabin-app .quick-brand{display:none}
.is-conversation-expanded .cabin-app .quick-navigation .workspace-tools{margin-left:auto}
@media(max-width:760px){
  .cabin-app .workspace,.is-conversation-expanded .cabin-app .workspace{gap:8px;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .cabin-app .workspace-topline.quick-navigation{gap:8px;min-height:40px}
  .cabin-app .quick-brand{font-size:24px}
  .cabin-app .quick-navigation .workspace-tools{gap:2px;flex-wrap:nowrap}
  .cabin-app .quick-nav-button{min-height:42px;padding:8px;font-size:12px}
  .cabin-app .quick-navigation .install-button{display:none}
  .cabin-app .workspace .session-controls{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) auto;gap:5px 8px;padding:9px}
  .cabin-app .workspace .conversation-clock{flex-direction:column;align-items:flex-start;gap:2px}
  .cabin-app .workspace .conversation-clock>span{font-size:10px}
  .cabin-app .workspace .conversation-clock time{font-size:24px}
  .cabin-app .workspace .primary-actions .button{font-size:13px;min-height:46px;padding:8px 6px}
  .cabin-app .workspace .focus-view-button{font-size:11px;padding:6px;gap:3px;flex-direction:column}
  .cabin-app .workspace .workspace-heading h1{font-size:19px}
  .cabin-app .workspace .caption-card{max-height:clamp(88px,20dvh,140px);padding:10px 12px}
  .cabin-app .workspace .source-text{font-size:16px}
  .cabin-app .workspace .translation-grid{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));flex-basis:290px;min-height:290px;gap:8px}
  .cabin-app .workspace .translation-card{padding:10px 12px 0}
  .cabin-app .workspace .language-monogram{width:27px;height:29px;font-size:18px}
  .cabin-app .workspace .language-heading h3{font-size:15px}
  .cabin-app .workspace .language-heading p{font-size:11px}
  .cabin-app .workspace .translation-text{min-height:48px;font-size:22px}
  .cabin-app .workspace .chinese-text{font-size:24px}
  .cabin-app .workspace .translation-footer{min-height:26px;font-size:10px}
  .cabin-app .settings-dialog .sidebar{padding:18px}
  .cabin-app .settings-dialog .output-control select{font-size:16px}
  .cabin-app .settings-dialog .translation-direction-control{grid-template-columns:minmax(0,1fr)}
  .cabin-app .settings-dialog .translation-direction-control select{font-size:16px}
}
@media(max-width:370px){.cabin-app .quick-brand{display:none}.cabin-app .quick-navigation .workspace-tools{width:100%;justify-content:flex-start}.cabin-app .workspace .conversation-clock>span{max-width:70px}.cabin-app .workspace .primary-actions .button{font-size:12px}}
@media(max-height:500px) and (min-width:600px){.cabin-app .workspace .translation-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);flex-basis:180px;min-height:180px}.cabin-app .workspace .conversation-clock{flex-direction:row;align-items:center}.cabin-app .workspace .conversation-clock>span{display:none}}

/* Explicit edit translations remain reachable outside nested caption scrollers. */
.source-translation-feedback{display:flex;flex:0 0 auto;align-items:center;flex-wrap:wrap;gap:4px 12px;max-height:min(110px,22dvh);overflow:auto;padding:9px 12px;border:1px solid #cbd8bf;border-radius:10px;background:var(--green-soft);color:var(--green);font-size:13px;line-height:1.5;overscroll-behavior:contain}
#source-translation-message{flex:1 1 250px;min-width:0;overflow-wrap:anywhere}
.source-translation-feedback .text-button{flex:0 0 auto;min-height:44px;padding:6px;font-size:13px;font-weight:600}
.source-translation-feedback[data-state="error"]{border-color:#d6bf99;background:var(--amber-soft);color:#775525}

/* Optional English reading help belongs to its translated paragraph. */
.english-learning-help{flex:0 0 auto;margin:8px 0;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.english-replay-all-controls{flex:0 0 auto;margin:0 0 10px;overflow-wrap:anywhere}
.english-replay-all-controls .english-learning-replay{max-width:100%;white-space:normal;text-align:left}
.english-replay-all-controls .english-learning-status:empty{display:none}
.cabin-app .workspace .translation-card[data-language="en"]{overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
.english-learning{margin-top:10px;padding:10px 12px;border:1px solid #d7dfce;border-radius:10px;background:#f6f8f1;color:var(--ink);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.english-learning-title{margin:0 0 6px;color:var(--green);font-size:12px;font-weight:700;letter-spacing:.2px}
.english-learning-stress{margin:0 0 6px;font-size:15px;line-height:1.6}
.english-learning-stress strong{font-weight:750;color:#234d38;text-decoration:underline;text-decoration-color:#9baa70;text-underline-offset:3px}
.english-learning-ipa{margin:0 0 6px;font-family:"Arial Unicode MS","Charis SIL","Noto Sans",Arial,sans-serif;font-size:17px;line-height:1.65;letter-spacing:0;overflow-wrap:anywhere}
.english-learning-note,.english-learning-status{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.english-learning-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.english-learning-replay,.english-learning-retry{min-height:44px;padding:8px 12px;border:1px solid #becbb0;border-radius:8px;background:var(--white);color:var(--green);font:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}
.english-learning-replay:disabled,.english-learning-retry:disabled{opacity:.6;cursor:default}
.english-learning-replay:focus-visible,.english-learning-retry:focus-visible{outline:3px solid #477c4f;outline-offset:3px}
@media(max-width:760px){.english-learning{padding:9px 10px}.english-learning-ipa{font-size:16px}.english-learning-help{font-size:12px}}

/* The practice library lives in a dialog, leaving the conversation viewport free. */
.learning-dialog{width:min(720px,calc(100% - 24px));background:var(--paper)}
.learning-dialog .dialog-header{align-items:center;background:var(--paper)}
.learning-dialog .dialog-header .icon-button{flex:0 0 44px;width:44px;height:44px;margin:0 -8px 0 0}
.learning-body{padding:20px 26px 24px}
.learning-intro,.learning-context{color:var(--muted);font-size:14px;line-height:1.65}
.learning-selectors{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 22px}
.learning-selectors label{display:flex;flex-direction:column;gap:8px;min-width:0;color:var(--green);font-size:13px;font-weight:600}
.learning-selectors select{width:100%;min-width:0;min-height:46px;padding:10px 32px 10px 12px;border:1px solid #cbd2c2;border-radius:10px;background-color:var(--white);color:var(--ink);font:inherit;font-size:16px}
.learning-lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}
.learning-lesson-heading h3{font-size:20px;line-height:1.35;letter-spacing:-.3px}
#learning-progress{flex-shrink:0;color:var(--muted);font-size:12px;white-space:nowrap}
.learning-context{margin-top:7px}
.learning-meaning-toggle{display:flex;align-items:center;gap:9px;width:fit-content;min-height:44px;margin:8px 0;color:var(--green);font-size:13px;cursor:pointer}
.learning-meaning-toggle input{width:18px;height:18px;margin:0;accent-color:var(--green)}
.learning-dialogue{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.learning-line{display:flex;align-items:flex-start;gap:13px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.learning-line:nth-child(even){background:var(--green-soft)}
.learning-speaker{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#e3eadb;color:var(--green);font-size:13px;font-weight:700}
.learning-line:nth-child(even) .learning-speaker{background:#d7e2ca}
.learning-line-copy{min-width:0;overflow-wrap:anywhere}
.learning-original{color:var(--ink);font-size:19px;line-height:1.55}
.learning-pronunciation{margin-top:5px;color:#876638;font-size:13px;line-height:1.6}
.learning-translation{margin-top:7px;color:#59685f;font-size:14px;line-height:1.65}
.learning-pagination{display:flex;justify-content:space-between;gap:12px;margin-top:22px}
.learning-pagination .button{min-height:44px;padding:10px 14px;font-size:13px}
.learning-pagination .button:disabled{opacity:.45;cursor:default}
.learning-dialog :focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:760px){.learning-body{padding:16px 18px 20px}.learning-dialog .dialog-header{padding:16px 18px}.learning-selectors{gap:10px}.learning-selectors label{font-size:12px}.learning-line{gap:10px;padding:13px}.learning-original{font-size:18px}.learning-lesson-heading h3{font-size:19px}}
@media(max-width:420px){.learning-selectors{grid-template-columns:1fr;gap:12px}.learning-dialog .dialog-header .eyebrow{font-size:7px;letter-spacing:1px}.learning-lesson-heading{align-items:flex-start}.learning-line{gap:9px}.learning-speaker{flex-basis:26px;width:26px;height:28px}.learning-pagination .button{padding:10px 12px}}
