:root{color:#172026;background:#f4f7f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden;background:linear-gradient(135deg,rgba(18,95,103,.08),transparent 36%),linear-gradient(315deg,rgba(195,87,55,.08),transparent 30%),#f4f7f5}button{border:0;border-radius:8px;cursor:pointer;font:inherit;min-height:44px;padding:0 18px;transition:background-color .16s ease,color .16s ease,opacity .16s ease,transform .16s ease}button:focus-visible,input:focus-visible{outline:3px solid #d79c2f;outline-offset:3px}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.48}.app-shell{min-height:100vh;padding:24px}.workspace{display:grid;gap:18px;margin:0 auto;max-width:1280px;min-width:0;width:100%}.topbar{align-items:start;display:flex;gap:20px;justify-content:space-between}.eyebrow{color:#58676c;font-size:.85rem;font-weight:700;letter-spacing:0;margin:0 0 8px;text-transform:uppercase}h1{color:#172026;font-size:2.65rem;line-height:1;margin:0;max-width:760px}.status-pill{align-items:center;background:#fff;border:1px solid #d8e2de;border-radius:999px;color:#34454b;display:inline-flex;flex:0 0 auto;gap:10px;min-height:40px;padding:0 14px;white-space:nowrap}.status-dot{background:#87939a;border-radius:50%;display:inline-block;height:10px;width:10px}.status-pill[data-status=listening] .status-dot{background:#1f9d68}.status-pill[data-status=connecting] .status-dot,.status-pill[data-status=translating] .status-dot{background:#2b73c8}.status-pill[data-status=verified] .status-dot{background:#1f9d68}.status-pill[data-status=delayed] .status-dot,.status-pill[data-status=weak-signal] .status-dot,.status-pill[data-status=stopped] .status-dot{background:#c56b2f}.status-pill[data-status=error] .status-dot{background:#c73939}.control-panel{align-items:center;background:#fff;border:1px solid #d8e2de;border-radius:8px;display:grid;gap:16px;grid-template-columns:minmax(0,1fr) auto;padding:14px}.control-copy{display:grid;gap:4px}.control-copy p{color:#58676c;margin:0}.control-copy .panel-title{color:#172026;font-weight:800}.control-actions{display:flex;gap:10px}.demo-layout{align-items:start;display:grid;gap:18px;grid-template-columns:minmax(0,1fr) minmax(300px,360px)}.player-shell,.support-panel{display:grid;gap:14px;min-width:0}.video-viewport{aspect-ratio:16 / 9;background:linear-gradient(180deg,#070f121f,#070f12db),linear-gradient(135deg,#1c3038,#11181d 58%,#3f2524);border:1px solid #26383d;border-radius:8px;box-shadow:0 18px 48px #1720262e;color:#fff;min-height:360px;max-width:100%;min-width:0;overflow:hidden;position:relative;width:100%}.video-placeholder{display:grid;grid-template-rows:auto 1fr;inset:0;padding:18px;position:absolute;pointer-events:none;transition:opacity .18s ease,visibility .18s ease;z-index:2}.live-video{background:#070f12;display:block;height:100%;inset:0;object-fit:cover;position:absolute;width:100%;z-index:1}.video-placeholder-top{display:flex;justify-content:space-between}.video-placeholder p{align-self:center;background:#070f12c7;border:1px solid rgba(255,255,255,.18);border-radius:8px;color:#fff;font-size:1.05rem;font-weight:800;justify-self:center;margin:0;padding:10px 14px;text-shadow:0 2px 10px rgba(0,0,0,.72)}.video-state-overlay{align-items:center;background:#070f12b3;border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#fff;display:inline-flex;font-size:.86rem;font-weight:800;min-height:34px;padding:0 12px;position:absolute;right:16px;text-shadow:0 2px 8px rgba(0,0,0,.65);top:16px;z-index:5}.video-viewport[data-video-state=ready] .video-placeholder,.video-viewport[data-video-state=paused] .video-placeholder{opacity:0;visibility:hidden}.video-viewport[data-video-state=paused] .live-video{filter:brightness(.78)}.channel-mark,.live-badge{align-items:center;background:#ffffffeb;border-radius:6px;color:#172026;display:inline-flex;font-size:.78rem;font-weight:900;height:30px;padding:0 10px;text-transform:uppercase}.live-badge{background:#b93434;color:#fff}.status-grid,.diagnostics{background:#fff;border:1px solid #d8e2de;border-radius:8px;color:#34454b;display:grid;gap:10px;padding:14px 16px}.status-grid{gap:8px}.diagnostic-row{display:flex;font-size:.95rem;gap:12px;justify-content:space-between;min-width:0}.diagnostic-row span{min-width:0;overflow-wrap:anywhere}.diagnostic-row span:first-child{color:#58676c;font-weight:700}#audioCaptureStatus{font-weight:700}#audioCaptureStatus[data-source=video]{color:#1f7a5a}#audioCaptureStatus[data-source=micro],#audioCaptureStatus[data-source=fallback]{color:#9a5727}#audioCaptureStatus[data-source=none]{color:#58676c}.level-meter{background:#e8efec;border-radius:999px;height:10px;overflow:hidden}.level-meter span{background:#1f9d68;display:block;height:100%;transition:width 80ms linear;width:0}.gain-control{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(86px,auto) 1fr minmax(36px,auto)}.gain-control span{color:#58676c;font-size:.9rem;font-weight:700}.gain-control input{accent-color:#125f67;width:100%}#eventStatus{color:#58676c;font-size:.9rem;margin:0;overflow-wrap:anywhere}.primary-action{background:#125f67;color:#fff}.secondary-action{background:#e1e8e5;color:#172026}.subtitle-stage{align-content:end;background:linear-gradient(180deg,transparent,rgba(0,0,0,.72));bottom:0;color:#fff;display:grid;gap:6px;left:0;padding:86px 44px 34px;position:absolute;right:0;min-height:38%;min-width:0;pointer-events:none;z-index:4}.source-stage{background:#fff;border:1px solid #d8e2de;border-radius:8px;color:#172026;display:grid;gap:8px;min-height:180px;padding:18px}.source-stage .stage-label{color:#58676c}.source-stage[data-source-state=partial]{border-color:#2b73c8}.source-stage[data-source-state=final]{border-color:#1f9d68}.source-stage[data-source-state=error]{border-color:#c73939}.subtitle-stage[data-subtitle-state=partial]{background:linear-gradient(180deg,transparent,rgba(20,41,54,.9))}.subtitle-stage[data-subtitle-state=final]{background:linear-gradient(180deg,transparent,rgba(20,51,38,.9))}.subtitle-stage[data-subtitle-state=verified]{background:linear-gradient(180deg,transparent,rgba(16,47,40,.9))}.subtitle-stage[data-subtitle-state=pending]{background:linear-gradient(180deg,transparent,rgba(17,43,50,.9))}.subtitle-stage[data-subtitle-state=standby]{background:linear-gradient(180deg,transparent,rgba(8,18,22,.86))}.subtitle-stage[data-subtitle-state=delayed]{background:linear-gradient(180deg,transparent,rgba(55,41,28,.92))}.subtitle-stage[data-subtitle-state=stopped]{background:linear-gradient(180deg,transparent,rgba(31,35,38,.92))}.subtitle-stage[data-subtitle-state=error]{background:linear-gradient(180deg,transparent,rgba(58,32,32,.94))}.stage-label{color:#a8b9bd;font-size:.78rem;font-weight:700;letter-spacing:0;margin:0;text-transform:uppercase}.subtitle-mode{color:#e7f0ef;font-size:.88rem;font-weight:700;margin:0;text-shadow:0 2px 10px rgba(0,0,0,.65)}.source-mode{color:#58676c;font-size:.95rem;font-weight:700;margin:0 0 14px}.subtitle-text{display:-webkit-box;font-size:2.65rem;font-weight:800;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-height:1.12;margin:0;max-width:960px;overflow:hidden;overflow-wrap:break-word;text-shadow:0 2px 6px rgba(0,0,0,.95),0 0 18px rgba(0,0,0,.72);word-break:break-word}.subtitle-stage[data-subtitle-state=delayed] .subtitle-text,.subtitle-stage[data-subtitle-state=error] .subtitle-text,.subtitle-stage[data-subtitle-state=standby] .subtitle-text{font-size:1.35rem;font-weight:750;line-height:1.18;max-width:720px}.subtitle-stage[data-subtitle-state=stopped] .subtitle-text{opacity:.82}.source-text{font-size:1.35rem;font-weight:750;line-height:1.25;margin:0;overflow-wrap:anywhere;text-align:right}.error-message{background:#fff0ec;border:1px solid #f1b6a7;border-radius:8px;color:#8d2f22;margin:0;padding:14px 16px}@media(max-width:680px){.app-shell{padding:16px}h1{font-size:2rem}.demo-layout{grid-template-columns:1fr}.video-viewport{min-height:280px}.subtitle-stage{padding:74px 18px 22px;width:100%}.video-placeholder,.video-state-overlay{left:12px;right:12px}.video-state-overlay{justify-content:center;top:54px}.subtitle-text{font-size:1.15rem;-webkit-line-clamp:4;max-width:100%}.subtitle-stage[data-subtitle-state=delayed] .subtitle-text,.subtitle-stage[data-subtitle-state=error] .subtitle-text,.subtitle-stage[data-subtitle-state=standby] .subtitle-text{font-size:1rem}.diagnostic-row{flex-wrap:wrap}.topbar,.control-panel,.control-actions{align-items:stretch;display:grid;grid-template-columns:1fr}.status-pill{justify-content:center;width:100%}button{width:100%}}@media(min-width:681px)and (max-width:1040px){.demo-layout{grid-template-columns:1fr}}
