:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: #101820; color: #edf5f7; font: 19px/1.5 "Segoe UI", Arial, sans-serif; }
main { max-width: 1840px; margin: auto; padding: 30px 48px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.eyebrow { color: #8ae4cd; font-size: 13px; letter-spacing: .16em; font-weight: 700; margin: 0 0 8px; }
.eyebrow span { color: #9bb2c1; margin-left: 18px; }
h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 8px; }
.intro { margin: 0; color: #a9bdc9; }
.target { padding: 14px 18px; border: 1px solid #496271; border-radius: 12px; font-size: 15px; color: #8ae4cd; }
.target small { display: block; color: #a9bdc9; }
.layout { display: grid; grid-template-columns: 370px minmax(0,1fr); gap: 26px; align-items: start; }
aside { background: #192a35; border: 1px solid #3b5363; padding: 20px; border-radius: 16px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
h2 span { margin-right: 10px; color: #8ae4cd; font-size: 14px; }
.sources { display: grid; gap: 10px; margin-bottom: 22px; }
button { font: inherit; font-size: 17px; color: #edf5f7; background: #243d4b; border: 2px solid #526d7c; border-radius: 10px; min-height: 54px; padding: 11px 14px; cursor: pointer; }
.sources button { text-align: left; }
button small { display: block; font-size: 12px; color: #b5cad5; }
button[aria-pressed="true"] { background: #244f4b; border-color: #8ae4cd; }
button:focus, pre:focus { outline: 4px solid #ffdb91; outline-offset: 4px; }
button:disabled { opacity: .38; cursor: default; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wide { width: 100%; margin-top: 14px; }
.primary { background: #8ae4cd; border-color: #8ae4cd; color: #102a24; font-weight: 700; }
.small { font-size: 13px; color: #adc4d1; }
.screen { height: 42vh; max-height: 520px; min-height: 250px; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #3b5363; background: #060e14; }
#video-host, video { width: 100%; height: 100%; }
video { display: block; object-fit: contain; }
#placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; color: #bdd0da; pointer-events: none; padding: 20px; }
#placeholder > span { color: #8ae4cd; font-size: 62px; line-height: 1; margin-bottom: 18px; }
#placeholder p { font-size: 16px; }
.screen-label { position: absolute; top: 14px; left: 16px; color: #8ae4cd; background: #102b35e6; padding: 5px 10px; font-size: 12px; letter-spacing: .06em; }
.transport { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.transport button { font-size: 14px; min-height: 48px; }
#stop { border-color: #dd9b87; color: #ffcfbd; }
.state-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #1b303d; border: 1px solid #496271; border-radius: 12px; padding: 16px 20px; }
.state-panel strong { display: block; font-size: 24px; color: #8ae4cd; }
.state-panel span { display: block; font-size: 13px; color: #c1d2db; }
.state-panel .caption { font-size: 11px; letter-spacing: .12em; color: #9cb6c6; }
.help { font-size: 14px; color: #e7d2a4; margin: 12px 0; }
#confirm { font-size: 14px; min-height: 42px; padding: 7px 13px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.stats > div { border: 1px solid #3b5363; background: #192a35; border-radius: 10px; padding: 13px; }
.stats span, .stats small { display: block; color: #adc4d1; font-size: 12px; }
.stats strong { font-size: 22px; color: #8ae4cd; font-weight: 600; display: block; margin: 4px 0; }
section { margin-top: 24px; }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.section-title span { color: #adc4d1; font-size: 12px; }
pre { font: 14px/1.6 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #0b131b; border: 1px solid #3b5363; border-radius: 12px; padding: 16px; margin: 0; max-height: 210px; overflow: auto; }
#signals { max-height: 135px; } #history { max-height: 180px; }
.limitations { color: #adc4d1; font-size: 15px; margin-top: 24px; }
footer { font-size: 11px; letter-spacing: .12em; color: #8ca6b6; margin-top: 24px; }
@media (min-width: 1500px) { .layout { grid-template-columns: 400px minmax(0,1fr); } button { font-size: 19px; min-height: 58px; } .small, button small { font-size: 14px; } }
@media (max-width: 950px) { main { padding: 24px; } .layout { grid-template-columns: 1fr; } .target { display: none; } h1 { font-size: 32px; } .sources { grid-template-columns: 1fr 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
