:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: #0e110f;
  --surface-raised: #141815;
  --line: rgba(232, 240, 234, 0.14);
  --line-strong: rgba(232, 240, 234, 0.25);
  --text: #f2f6f3;
  --muted: #8c9690;
  --quiet: #5e6862;
  --accent: #c8ff3d;
  --accent-soft: rgba(200, 255, 61, 0.13);
  --danger: #ff6b58;
  --radius: 4px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(200, 255, 61, 0.06), transparent 31rem),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ambient-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(340px, 560px) minmax(180px, 1fr);
  min-height: 72px;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 10, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-product {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.node-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.node-control label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-control input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080a09;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.node-control input:hover {
  border-color: var(--line-strong);
}

.node-state {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--quiet);
  box-shadow: 0 0 0 4px rgba(94, 104, 98, 0.1);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px rgba(200, 255, 61, 0.38);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 88, 0.12);
}

main {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0 28px 72px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 760px;
  border-inline: 1px solid var(--line);
}

.stage {
  min-width: 0;
  padding: 34px 34px 28px;
  border-right: 1px solid var(--line);
}

.stage-heading,
.telemetry-heading,
.inspector-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 560;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-control {
  display: grid;
  gap: 4px;
}

.source-control span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-control select {
  height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080a09;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button-primary {
  background: var(--accent);
  color: #0a0c0a;
}

.button-primary:hover:not(:disabled) {
  background: #d5ff70;
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-quiet:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-danger {
  border-color: rgba(255, 107, 88, 0.28);
  background: transparent;
  color: #ff9b8e;
}

.button-danger:hover:not(:disabled) {
  background: rgba(255, 107, 88, 0.08);
}

.broadcast-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #050605;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.broadcast-frame::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
  content: "";
}

.broadcast-frame::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 70%,
    rgba(0, 0, 0, 0.56) 100%
  );
  content: "";
}

#viewer-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 520ms ease;
}

#viewer-video.ready {
  opacity: 1;
}

.standby {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.standby.hidden {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.standby-scope {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border: 1px solid rgba(200, 255, 61, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(200, 255, 61, 0.35) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(200, 255, 61, 0.35) 50%, transparent 51%);
  box-shadow: 0 0 42px rgba(200, 255, 61, 0.08);
  animation: scope-breathe 2.4s ease-in-out infinite;
}

.standby p {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 670;
}

.standby > span:last-child {
  max-width: 380px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.broadcast-overlay {
  position: absolute;
  z-index: 7;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(5, 6, 5, 0.7);
  backdrop-filter: blur(8px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--quiet);
}

.live-label.live span {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 88, 0.12);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.timecode {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(5, 6, 5, 0.7);
  color: #d8ded9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.media-readout {
  position: absolute;
  z-index: 7;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 9px;
}

.media-readout div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.media-readout span {
  width: 96px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-readout b {
  color: rgba(255, 255, 255, 0.9);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.broadcast-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.share-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(300px, 1.25fr);
  gap: 28px;
  margin-top: 28px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.share-strip h2 {
  margin-bottom: 8px;
}

.share-strip p:last-child {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.share-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.ingest-controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.share-controls input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070907;
  color: #cdd4cf;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
}

.audience-panel {
  padding-top: 27px;
}

.audience-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.audience-heading strong {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.viewer-list {
  border-top: 1px solid var(--line);
}

.viewer-empty {
  padding: 28px 0;
  color: var(--quiet);
  font-size: 11px;
}

.viewer-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.viewer-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.viewer-state-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--quiet);
  box-shadow: 0 0 0 4px rgba(94, 104, 98, 0.1);
}

.viewer-row[data-state="connected"] .viewer-state-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.viewer-row[data-state="failed"] .viewer-state-dot,
.viewer-row[data-state="closed"] .viewer-state-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 88, 0.12);
}

.viewer-identity div {
  min-width: 0;
}

.viewer-identity b,
.viewer-identity span {
  display: block;
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-identity b {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
}

.viewer-identity span {
  color: var(--muted);
  font-size: 9px;
}

.viewer-debug-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 18px;
  min-width: 0;
  margin: 0;
}

.viewer-debug-grid div {
  min-width: 0;
}

.viewer-debug-grid dt {
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-debug-grid dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #cdd4cf;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-session-label {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.watch-session-label span {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.watch-session-label b {
  max-width: 420px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 720px;
  border-inline: 1px solid var(--line);
}

.watch-stage {
  min-width: 0;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.watch-frame {
  margin-top: 28px;
}

.watch-readout {
  right: 18px;
}

.watch-inspector {
  min-width: 0;
}

.debug-facts > div {
  grid-template-columns: 100px minmax(0, 1fr);
}

.watch-telemetry {
  border-top: 0;
}

.watch-boundary {
  padding: 28px 26px;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 107, 88, 0.025);
}

.watch-boundary h2 {
  margin-bottom: 10px;
}

.watch-boundary p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.inspector {
  padding: 34px 26px 28px;
  background: rgba(14, 17, 15, 0.42);
}

.inspector-heading {
  display: block;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.session-facts {
  margin: 0;
}

.session-facts > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.session-facts dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-facts dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-proof,
.request-metrics {
  padding-top: 27px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label b {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 500;
}

#proof-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#proof-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  transition: color 180ms ease;
}

#proof-list li span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--quiet);
  border-radius: 50%;
}

#proof-list li.complete {
  color: var(--text);
}

#proof-list li.complete span {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.34);
}

.request-metrics {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 10px;
}

.metric-row b {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.telemetry {
  border: 1px solid var(--line);
  border-top: 0;
}

.telemetry-heading {
  min-height: 94px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.telemetry-note {
  max-width: 440px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.event-log {
  min-height: 210px;
  max-height: 330px;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.event-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  color: var(--quiet);
  font-size: 11px;
}

.event-empty[hidden] {
  display: none;
}

.event-row {
  display: grid;
  grid-template-columns: 90px 72px 90px minmax(140px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 43px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(232, 240, 234, 0.075);
  animation: row-enter 220ms ease-out both;
}

.event-row:last-child {
  border-bottom: 0;
}

.event-time,
.event-source,
.event-code,
.event-meta {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
}

.event-time,
.event-meta {
  color: var(--quiet);
}

.event-source {
  color: var(--muted);
  text-transform: uppercase;
}

.event-code {
  color: var(--accent);
}

.event-message {
  min-width: 0;
  overflow: hidden;
  color: #cdd4cf;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row.error .event-code,
.event-row.error .event-message {
  color: #ff9b8e;
}

.boundaries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.boundaries > div {
  min-height: 190px;
  padding: 33px 28px;
  border-right: 1px solid var(--line);
}

.boundaries > div:last-child {
  border-right: 0;
}

.boundary-index {
  display: block;
  margin-bottom: 32px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.boundaries h2 {
  margin-bottom: 11px;
  font-size: 16px;
}

.boundaries p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 28px 30px;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
}

@keyframes scope-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.56;
  }
  50% {
    opacity: 1;
  }
}

@keyframes row-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .node-control {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .node-state {
    grid-column: 2;
    grid-row: 1;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .watch-workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .stage {
    padding-inline: 24px;
  }

  .watch-stage {
    padding-inline: 24px;
  }

  .inspector {
    padding-inline: 20px;
  }

  .viewer-debug-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  main {
    padding-inline: 16px;
  }

  .topbar {
    padding-inline: 16px;
  }

  .workspace {
    display: block;
    min-height: auto;
  }

  .watch-workspace {
    display: block;
    min-height: auto;
  }

  .stage {
    border-right: 0;
  }

  .watch-stage {
    border-right: 0;
  }

  .inspector {
    border-top: 1px solid var(--line);
  }

  .session-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .flow-proof {
    max-width: 520px;
  }

  .share-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .viewer-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .viewer-debug-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .boundaries {
    grid-template-columns: 1fr;
  }

  .boundaries > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boundaries > div:last-child {
    border-bottom: 0;
  }

  .boundary-index {
    margin-bottom: 18px;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 14px;
  }

  .brand-product {
    display: none;
  }

  .node-state {
    font-size: 10px;
  }

  .node-control {
    grid-template-columns: 1fr auto;
  }

  .node-control label {
    grid-column: 1 / -1;
  }

  .stage {
    padding: 26px 16px 22px;
  }

  .watch-stage {
    padding: 26px 16px 22px;
  }

  .stage-heading {
    display: block;
  }

  .stage-actions {
    margin-top: 18px;
  }

  .stage-actions .button {
    flex: 1;
  }

  .watch-session-label {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .broadcast-frame {
    aspect-ratio: 4 / 3;
    margin-top: 22px;
  }

  .media-readout div:nth-child(1),
  .media-readout div:nth-child(3) {
    display: none;
  }

  .share-controls {
    grid-template-columns: 1fr 1fr;
  }

  .share-controls input {
    grid-column: 1 / -1;
  }

  .viewer-debug-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspector {
    padding: 28px 16px;
  }

  .telemetry-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .telemetry-note {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .event-row {
    grid-template-columns: 70px 58px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 16px;
  }

  .event-code {
    display: none;
  }

  .event-meta {
    grid-column: 3;
  }

  footer {
    display: grid;
    padding-inline: 16px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
