@charset "UTF-8";
:root { color-scheme: light; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #262626; background: #ffffff; font-synthesis: none; --accent: #ed0016; --tv-font-size: 72px; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, summary, select, input[type="range"] { cursor: pointer; }
button { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
button:active { transform: translateY(1px); }
button:disabled { cursor: default; opacity: .48; transform: none; }
:focus-visible { outline: 3px solid #0057b8; outline-offset: 4px; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.shell { max-width: 1360px; margin: 0 auto; padding: 0 54px; }
.masthead { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d9dfe5; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 650; font-size: 21px; letter-spacing: -.65px; }
.brand-symbol { display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--accent); width: 34px; height: 34px; border-radius: 0; font-size: 25px; letter-spacing: -5px; padding-right: 5px; }
.brand-symbol span { font-size: 20px; padding-top: 6px; }
.local-label { font-size: 10px; letter-spacing: 1.4px; display: flex; align-items: center; gap: 9px; color: #535b63; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #687b8d; flex: 0 0 auto; }
.page-heading { padding: 48px 0 36px; display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 2px; color: #535b63; margin-bottom: 16px; }
h1 { font-size: clamp(34px, 4vw, 51px); line-height: 1.08; letter-spacing: -1.6px; font-weight: 300; margin: 0; }
h1 span { color: #0057b8; }
.page-heading p { color: #535b63; margin: 17px 0 0; font-size: 14px; }
.language-route { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 550; letter-spacing: 1px; margin: 40px 4px 0 30px; }
.language-route > span:not(.route-line) { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #cbd7e3; }
.language-route > span:last-child { background: #eaf2fa; color: #0057b8; border-color: transparent; }
.route-line { color: #0057b8; font-size: 26px; }
.workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 30px; align-items: start; }
.control-panel { background: #ffffff; border: 1px solid #d9dfe5; border-radius: 0; padding: 25px; }
.panel-top, .preview-heading, .label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.25px; }
.small-tag { color: #617080; font-size: 11px; font-variant-numeric: tabular-nums; }
.session-status { display: flex; gap: 8px; align-items: center; color: #535b63; font-size: 11px; margin: 22px 0 29px; min-height: 18px; }
#timer { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 11px; color: #617080; }
.field-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; color: #535b63; margin-bottom: 9px; }
select, input[type="password"] { width: 100%; border: 1px solid #b7c2cd; background: #ffffff; color: #262626; border-radius: 0; padding: 12px; font-size: 12px; min-height: 43px; }
select { text-overflow: ellipsis; padding-right: 28px; }
.text-button { border: 0; padding: 9px 0; background: transparent; color: #0057b8; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.primary-button { border: 0; border-radius: 0; background: var(--accent); color: #fff; width: 100%; padding: 14px; margin-top: 16px; font-size: 13px; font-weight: 550; }
.primary-button:hover { background: #c90014; }
.primary-button span { margin-right: 7px; font-size: 10px; }
.primary-button.is-recording { background: #003b71; }
.control-note { font-size: 10px; line-height: 1.6; text-align: center; color: #535b63; margin: 10px 0 0; }
.control-divider { border-top: 1px solid #d9dfe5; margin: 24px 0; }
.label-row .field-label { margin: 0; }
output { font-size: 11px; color: #535b63; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 15px 0 4px; accent-color: #0057b8; height: 16px; }
.range-labels { display: flex; justify-content: space-between; font-size: 9px; color: #617080; }
.secondary-actions { display: flex; gap: 8px; margin: 23px 0; }
.secondary-button { border: 1px solid #b7c2cd; border-radius: 0; background: transparent; padding: 10px; font-size: 10px; font-weight: 500; color: #003b71; flex: 1; }
.secondary-button:hover { background: #eaf2fa; border-color: #0057b8; }
.setup-panel { border-top: 1px solid #d9dfe5; padding-top: 17px; }
summary { font-size: 11px; color: #535b63; }
.setup-panel summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.setup-panel summary::before { content: '+'; color: #0057b8; }
.setup-panel[open] summary::before { content: '−'; }
.setup-panel summary > span:first-child { margin-right: auto; }
#key-status { font-size: 9px; color: #9c6c28; }
#key-status.is-connected { color: #4a7251; }
#key-form { padding-top: 22px; }
#save-key { width: 100%; margin-top: 10px; }
.setup-panel p { font-size: 10px; line-height: 1.7; color: #535b63; margin: 12px 0 0; }
.preview-heading { min-height: 48px; margin-bottom: 13px; }
.preview-heading h2 { margin-bottom: 6px; }
#display-status { font-size: 10px; color: #617080; }
.display-button { border: 1px solid #0057b8; color: #0057b8; border-radius: 0; padding: 11px 13px; background: transparent; font-size: 11px; font-weight: 500; white-space: nowrap; }
.display-button span { margin-left: 9px; font-size: 16px; }
.display-button:hover { background: #eaf2fa; }
.caption-preview { background: #002b49; color: #ffffff; width: 100%; min-width: 0; aspect-ratio: 16/9; min-height: 280px; position: relative; border-radius: 0; padding: 28px; display: flex; flex-direction: column; }
.preview-meta, .preview-bottom { display: flex; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.preview-meta { font-size: 8px; letter-spacing: 1.8px; color: #c3d4e5; }
#preview-status { letter-spacing: .8px; text-align: right; }
.preview-bottom { margin-top: auto; font-size: 9px; color: #b7cce0; }
.preview-bottom > span:last-child { font-size: 8px; letter-spacing: 1px; }
.preview-empty { position: absolute; inset: 50px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-symbol { color: #a6c5e4; font-size: 26px; margin-bottom: 10px; }
.preview-empty p { font-size: clamp(22px, 2.6vw, 35px); font-weight: 450; line-height: 1.22; letter-spacing: -.8px; margin: 0; color: #ffffff; }
.preview-empty > span:last-child { font-size: 10px; margin-top: 16px; color: #c3d4e5; }
.caption-viewport { overflow: hidden; overflow-anchor: none; }
.preview-viewport { margin: 30px 0 24px; max-height: 195px; }
.caption-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.preview-viewport .caption-text { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.38; letter-spacing: -.5px; }
.draft { color: #adc9e5; }
.display-help { display: flex; gap: 9px; align-items: baseline; font-size: 10px; color: #535b63; line-height: 1.7; margin: 15px 1px 26px; }
.display-help > span { color: #0057b8; }
.transcript-panel { border-top: 1px solid #d9dfe5; padding-top: 17px; }
.transcript-panel summary { font-size: 11px; }
.transcript-panel summary span { float: right; font-size: 10px; color: #617080; }
.english-viewport { max-height: 150px; overflow: auto; }
.english-viewport p { font-size: 13px; line-height: 1.7; color: #262626; }
#english-empty { color: #617080; }
.notice { border: 1px solid #e4bfa8; background: #fff5e9; padding: 14px 18px; font-size: 13px; color: #7d4529; border-radius: 0; line-height: 1.5; margin-bottom: 22px; }
footer { border-top: 1px solid #d9dfe5; margin-top: 43px; padding: 23px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: #535b63; font-size: 10px; }
.footer-separator { padding: 0 9px; color: #9baaba; }
.dot[data-state="recording"] { background: #79c595; box-shadow: 0 0 0 3px #79c59518; }
.dot[data-state="reconnecting"], .dot[data-state="demo"], .dot[data-state="muted"] { background: #deb276; }
.dot[data-state="error"], .dot[data-state="disconnected"] { background: #eb846c; }
.caption-preview[data-state="demo"] #preview-status { color: #e2b77f; }
.tv { color-scheme: dark; background: #002b49; color: #ffffff; height: 100dvh; min-height: 320px; display: flex; flex-direction: column; overflow: hidden; padding: clamp(22px, 3.4vw, 64px); }
.tv-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tv-brand { color: #ffffff; font-size: 15px; letter-spacing: -.2px; }
.tv-brand span { color: #b7cce0; margin-left: 24px; font-size: 11px; letter-spacing: 2px; }
.tv-status { font-size: 13px; display: flex; gap: 10px; align-items: center; color: #c3d4e5; text-align: right; }
.tv-main { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 45px 0 28px; }
.tv-viewport { max-height: 100%; width: 100%; }
.tv .caption-text { font-size: clamp(32px, 7.5vw, var(--tv-font-size)); line-height: 1.4; font-weight: 450; letter-spacing: -.025em; }
.tv-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tv-empty p { font-size: clamp(30px, 5vw, 68px); margin: 0 0 24px; font-weight: 450; letter-spacing: -.035em; }
.tv-empty span { font-size: clamp(16px, 2vw, 25px); line-height: 1.6; color: #b7cce0; }
.tv-controls { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: #b7cce0; font-size: 11px; transition: opacity .2s ease; }
.tv-controls button { color: #ffffff; border: 1px solid #41627e; background: #003b71; padding: 11px 18px; border-radius: 0; font-size: 12px; white-space: nowrap; }
.tv.hide-controls .tv-controls { opacity: 0; }
.tv.hide-controls .tv-controls:focus-within { opacity: 1; }
.tv.hide-controls { cursor: none; }
.tv[data-state="demo"] .tv-status, .tv[data-state="reconnecting"] .tv-status, .tv[data-state="muted"] .tv-status { color: #edc18b; }
.tv[data-state="disconnected"] .tv-status, .tv[data-state="error"] .tv-status { color: #ffa58f; }
.tv[data-state="disconnected"] .caption-text, .tv[data-state="error"] .caption-text { opacity: .55; }
@media(min-width:1450px) { .shell { padding: 0 64px; } .page-heading { padding-top: 56px; } .workspace { grid-template-columns: 330px minmax(0, 1fr); gap: 40px; } .preview-viewport { max-height: 230px; } }
@media(max-width:900px) { .shell { padding: 0 28px; } .workspace { gap: 20px; grid-template-columns: 280px minmax(0, 1fr); } .control-panel { padding: 20px; } .caption-preview { min-height: 280px; padding: 22px; } .preview-heading { flex-wrap: wrap; } .preview-meta { letter-spacing: .8px; } }
@media(max-width:700px) { .shell { padding: 0 22px; } .masthead { height: 76px; } .local-label { font-size: 8px; letter-spacing: .7px; } .brand { font-size: 18px; } .page-heading { padding: 32px 0 28px; } .language-route { display: none; } h1 { letter-spacing: -1.5px; } .workspace { display: flex; flex-direction: column; gap: 28px; } .control-panel, .preview-panel { width: 100%; } .control-panel { padding: 24px; } .preview-heading { flex-wrap: nowrap; } .caption-preview { min-height: 300px; } .preview-viewport { max-height: 190px; } .preview-viewport .caption-text { font-size: 26px; } .preview-empty p { font-size: 30px; } .tv-header { align-items: flex-start; } .tv-brand span { display: block; margin: 10px 0 0; } .tv-status { font-size: 11px; } .tv-controls span { max-width: 55%; line-height: 1.6; } .secondary-button, .display-button, .text-button { min-height: 42px; } select, input[type="password"] { font-size: 16px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

#heading-source { color: inherit; }
#direction + .control-note { margin-bottom: 20px; }
.transcript-panel { background: #ffffff; border: 1px solid #d9dfe5; padding: 20px; border-radius: 0; }
.english-viewport { max-height: 230px; }
.english-viewport p { font-size: 18px; }
.english-viewport .draft { color: #536b83; }
.tv-pane { display: flex; flex-direction: column; position: relative; min-height: 0; flex: 1; overflow: hidden; }
.tv-pane[hidden] { display: none; }
.tv-pane h2 { flex: none; font-size: 15px; letter-spacing: 1px; color: #b7cce0; margin: 0 0 14px; }
.tv-pane .caption-viewport { min-height: 0; flex: 1; }
.tv-input-empty { color: #b7cce0; }
.split-view .tv-main { display: flex; flex-direction: column; gap: 24px; }
.split-view .tv-output-panel { border-top: 1px solid #41627e; padding-top: 24px; }
.split-view .caption-text { font-size: clamp(26px, 4vw, calc(var(--tv-font-size) * .7)); line-height: 1.35; }
.split-view .tv-empty p { font-size: 32px; }
.split-view .tv-empty span { font-size: 16px; }

.preview-panel > .transcript-panel { margin-bottom: 18px; }

/* Corporate visual direction: red actions, blue accents, clean editorial panels. */
.masthead { border-bottom: 1px solid #d9dfe5; }
.brand { color: #ed0016; font-weight: 700; letter-spacing: -.8px; }
.brand-symbol { background: transparent; color: #ed0016; border-right: 1px solid #d9dfe5; width: 38px; margin-right: 2px; }
.page-heading { border-bottom: 4px solid #ed0016; margin-bottom: 32px; padding-bottom: 30px; }
.eyebrow { color: #0057b8; font-size: 11px; letter-spacing: 1.3px; }
.language-route > span:not(.route-line) { border-radius: 0; }
.control-panel { background: #f5f7f9; border: 0; border-top: 3px solid #0057b8; }
.panel-top h2, .preview-heading h2 { font-size: 20px; font-weight: 400; }
.primary-button { min-height: 48px; font-weight: 600; }
.secondary-button, .display-button { font-weight: 600; }
.field-label { font-size: 10px; }
.transcript-panel { border: 1px solid #d9dfe5; border-left: 3px solid #0057b8; }
.caption-preview { border-top: 3px solid #ed0016; }
.tv-header { border-bottom: 2px solid #ed0016; padding-bottom: 20px; }
.tv-brand { font-weight: 700; font-size: 20px; }
.tv-brand span { font-weight: 400; }
.tv-pane h2 { font-weight: 500; text-transform: uppercase; font-size: 13px; }
footer { border-top: 2px solid #0057b8; }

.shell { padding-bottom: 32px; }
.login-panel { max-width: 520px; margin: 70px auto; }
.login-panel h1 { font-size: 36px; margin-bottom: 30px; }
#pair-link, #tv-pair-link { width: 100%; padding: 12px; border: 1px solid #b7c2cd; background: #fff; color: #262626; font-size: 13px; }
#pair-status { font-size: 11px; line-height: 1.5; color: #535b63; }
.tv-pair-panel { position: fixed; z-index: 10; inset: 0; background: #002b49; padding: 12vh max(24px, calc((100vw - 600px) / 2)); }
.tv-pair-panel h1 { font-size: 40px; margin-bottom: 30px; }
.tv-pair-panel label { display: block; margin-bottom: 12px; }
