:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #e9f1f7;
  background: #0e141d;
  font-size: 16px;
  --muted: #a8b6c9;
  --line: #2b384a;
  --accent: #83e7ce;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, .surface:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bar { min-height: 4.5rem; padding: .7rem clamp(1rem, 3vw, 2.5rem); display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #131c28; }
.brand, .bar-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.brand { font-weight: 700; }
.mark { display: inline-block; width: 1.15rem; height: .8rem; border: 2px solid var(--accent); border-radius: 3px; position: relative; }
.mark::after { content: ''; position: absolute; width: .65rem; height: 2px; background: var(--accent); bottom: -.32rem; left: .125rem; }
.status { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.status::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #6c7b8f; margin-right: .45rem; vertical-align: .12em; }
.status[data-state="busy"]::before { background: #ffd683; }
.status[data-state="live"]::before { background: var(--accent); }
.landing { display: grid; justify-items: center; align-items: start; padding: clamp(3rem, 12vh, 8rem) 1rem 2rem; }
.panel { width: min(100%, 30rem); padding: clamp(1.25rem, 5vw, 2.35rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #151f2c; box-shadow: 0 16px 40px #05070c55; }
h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.55; margin: .8rem 0 1.6rem; }
label { display: block; color: #cfdae8; font-size: .95rem; margin: .75rem 0 .45rem; }
input, select { width: 100%; min-height: 3rem; border: 1px solid var(--line); border-radius: .55rem; background: #0e161f; color: #e9f1f7; padding: .7rem .8rem; }
input::placeholder { color: #8797aa; }
.primary, .secondary { border-radius: .55rem; min-height: 2.5rem; padding: .55rem .85rem; font-weight: 650; }
.primary { width: 100%; margin-top: 1rem; min-height: 3rem; border: 1px solid #9df6de; background: var(--accent); color: #0b2925; }
.primary:hover:enabled { background: #a6f4e1; }
.secondary { border: 1px solid var(--line); color: #e9f1f7; background: #1c2939; font-size: .9rem; }
.secondary:hover:enabled { background: #273749; }
.stop { width: 100%; margin-top: 1rem; }
.pairing { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
#show-code { margin-top: .5rem; }
.message { color: #ffc6ac; margin: 1rem 0 0; font-size: .95rem; }
.session { padding: .75rem clamp(.6rem, 2vw, 1.5rem); }
.surface { height: max(14rem, calc(100dvh - 8rem)); position: relative; background: #080b10; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; touch-action: none; }
.surface:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.surface video, .surface canvas { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; }
.play-screen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.telemetry { padding: .6rem .2rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; color: var(--muted); font-size: .9rem; }
.touch-tip { display: none; }
@media (pointer: coarse) {
  .mouse-tip { display: none; }
  .touch-tip { display: inline; }
}
