* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

body { display: flex; flex-direction: column; min-height: 100%; }

.landing {
  margin: auto;
  padding: 2rem;
  width: min(360px, 92vw);
  background: #161616;
  border: 1px solid #262626;
  border-radius: 12px;
}
.landing h1 { margin-bottom: 1.25rem; font-size: 1.5rem; font-weight: 600; }
.landing label { display: block; margin-bottom: 0.875rem; color: #a3a3a3; }
.landing input,
.landing select {
  display: block;
  margin-top: 0.375rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  outline: none;
}
.landing input:focus,
.landing select:focus { border-color: #3b82f6; }
.landing button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font: inherit;
  font-weight: 500;
  color: white;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.landing button:hover { background: #2563eb; }
.landing .hint { margin-top: 0.875rem; color: #737373; font-size: 0.8125rem; }

.room-body { background: #0a0a0a; }

.reconnect-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #422006;
  color: #fbbf24;
  border-bottom: 1px solid #78350f;
  font-size: 0.875rem;
}
.reconnect-banner[hidden] { display: none; }
.reconnect-banner.connected { background: #14532d; color: #4ade80; border-color: #15803d; }
.reconnect-banner button {
  padding: 0.375rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  color: inherit;
  background: rgba(0,0,0,0.3);
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
}
.reconnect-banner button:hover { background: rgba(0,0,0,0.5); }
.reconnect-banner #reconnect-close { border: none; background: none; font-size: 1.125rem; padding: 0.25rem 0.5rem; opacity: 0.7; }
.reconnect-banner #reconnect-close:hover { opacity: 1; background: none; }
.reconnect-banner #reconnect-text { flex: 1; }

.room-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: #111;
  border-bottom: 1px solid #262626;
  flex-wrap: wrap;
}
.room-label { font-weight: 600; }
.status, .peer-count { color: #a3a3a3; font-size: 0.8125rem; }
.status.connected { color: #4ade80; }
.status.error { color: #f87171; }
.spacer { flex: 1; }

.room-header button {
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: #e5e5e5;
  background: #262626;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  cursor: pointer;
}
.room-header button:hover:not(:disabled) { background: #333; }
.room-header button:disabled { opacity: 0.45; cursor: not-allowed; }
.room-header button.active { background: #1e3a8a; border-color: #2563eb; }
.room-header button.danger { background: #7f1d1d; border-color: #991b1b; }

.stage {
  flex: 1;
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-content: start;
}

.stage.has-screen {
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  grid-template-areas: "screen cams";
  grid-auto-rows: minmax(0, 1fr);
}
.stage.has-screen .tile.screen { grid-area: screen; aspect-ratio: auto; height: 100%; }
.stage.has-screen .cam-rail {
  grid-area: cams;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}
.stage.has-screen .cam-rail .tile { aspect-ratio: 16/9; }

.tile {
  position: relative;
  background: #000;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  min-height: 0;
}
.tile.screen { aspect-ratio: 16/10; }
.tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.tile.screen video { object-fit: contain; }
.tile-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.625rem;
  background: rgba(0, 0, 0, 0.6);
  color: #f5f5f5;
  font-size: 0.75rem;
  border-radius: 4px;
  pointer-events: none;
}

.tile .live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  display: none;
  pointer-events: none;
}
.tile.is-live .live-badge { display: inline-block; }
.tile.is-live { outline: 2px solid #dc2626; outline-offset: -2px; }

.room-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.program {
  border-top: 1px solid #262626;
  background: #0b0b0b;
  padding: 0.625rem 0.875rem 0.875rem;
}
.program-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.program-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a3a3a3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.program.live .program-header h3 { color: #dc2626; }
.program-hint { font-size: 0.75rem; color: #525252; }
.program.live .program-hint { color: #fca5a5; }
.program-preview {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
}
.program.live .program-preview { border-color: #dc2626; }
.program-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.broadcast-panel {
  margin-top: 0.75rem;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.broadcast-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.5rem;
}
.broadcast-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #a3a3a3;
}
.broadcast-fields input {
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: 0.8125rem;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  outline: none;
}
.broadcast-fields input:focus { border-color: #3b82f6; }
.broadcast-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: #d4d4d4;
}
.broadcast-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.broadcast-checks code {
  background: #1f1f1f;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.75rem;
}
.broadcast-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.broadcast-controls button {
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: #16a34a;
  border: 1px solid #15803d;
  border-radius: 6px;
  cursor: pointer;
}
.broadcast-controls button.live { background: #dc2626; border-color: #991b1b; }
.broadcast-controls button:hover:not(:disabled) { filter: brightness(1.1); }
.broadcast-controls button:disabled { opacity: 0.45; cursor: not-allowed; }
.broadcast-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.broadcast-status.offline { background: #262626; color: #a3a3a3; }
.broadcast-status.connecting { background: #422006; color: #fbbf24; }
.broadcast-status.live { background: #14532d; color: #4ade80; }
.broadcast-status.failed { background: #450a0a; color: #fca5a5; }
.broadcast-detail { font-size: 0.75rem; color: #737373; }

.backstage {
  border-top: 1px solid #262626;
  background: #0d0d0d;
  padding: 0.625rem 0.875rem 0.875rem;
}
.backstage-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.backstage-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a3a3a3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.backstage-hint { font-size: 0.75rem; color: #525252; }
.backstage-grid {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.backstage-grid .tile { aspect-ratio: 16/9; opacity: 0.85; }
.backstage-grid .tile:hover { opacity: 1; }

/* --- layout switcher (program header) --- */
.layout-switch { display: inline-flex; gap: 2px; align-self: center; }
.layout-switch button {
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.6875rem;
  color: #a3a3a3;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  cursor: pointer;
}
.layout-switch button:first-child { border-radius: 5px 0 0 5px; }
.layout-switch button:last-child { border-radius: 0 5px 5px 0; }
.layout-switch button.active { background: #1e3a8a; border-color: #2563eb; color: #fff; }
.layout-switch button:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- broadcast health stats --- */
.broadcast-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.5rem 0.625rem;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  font-size: 0.75rem;
}
.broadcast-stats .stat { display: flex; gap: 0.4rem; align-items: baseline; }
.broadcast-stats .stat-k {
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}
.broadcast-stats b { color: #e5e5e5; font-variant-numeric: tabular-nums; }
.broadcast-stats b.warn { color: #fbbf24; }
.broadcast-stats b.bad { color: #f87171; }

/* --- recording indicator --- */
.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fca5a5;
}
.rec-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #dc2626;
  border-radius: 50%;
  animation: rec-blink 1.4s steps(1) infinite;
}
@keyframes rec-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0.25; }
}

/* --- host per-tile control bar --- */
.tile.host .tile-label { top: 0.5rem; bottom: auto; }
.tile.host.is-live .tile-label { left: 3.6rem; }
.tile-host-ctl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}
.tile-host-ctl button {
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-size: 0.6875rem;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.tile-host-ctl button:hover { background: rgba(0, 0, 0, 0.9); }
.tile-air.on { background: rgba(220, 38, 38, 0.85); border-color: #ef4444; color: #fff; }
.tile-feature.on { background: rgba(245, 158, 11, 0.9); border-color: #f59e0b; color: #111; }
.tile-mute.on { background: rgba(220, 38, 38, 0.85); border-color: #ef4444; color: #fff; }
.tile-vol {
  flex: 1;
  min-width: 36px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* --- graphics & overlays panel --- */
.graphics-panel { margin-top: 0.75rem; max-width: 640px; }
.graphics-toggle {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a3a3a3;
  background: #111;
  border: 1px solid #262626;
  border-radius: 6px;
  cursor: pointer;
}
.graphics-toggle::before { content: "\25B8  "; }
.graphics-toggle[aria-expanded="true"]::before { content: "\25BE  "; }
.graphics-toggle:hover { background: #1a1a1a; }
.graphics-body {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.75rem;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
}
.gfx-section h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 0.5rem;
}
.gfx-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.gfx-row:last-child { margin-bottom: 0; }
.l3-list { display: flex; flex-direction: column; gap: 0.375rem; }
.l3-empty { color: #525252; font-size: 0.75rem; }
.l3-row { display: flex; align-items: center; gap: 0.375rem; }
.l3-row input[type="text"] {
  flex: 1;
  min-width: 70px;
  padding: 0.375rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  outline: none;
}
.l3-row input[type="text"]:focus { border-color: #3b82f6; }
.l3-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #d4d4d4;
  white-space: nowrap;
  cursor: pointer;
}
.standby-row { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.5rem; }
.standby-row button {
  padding: 0.375rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  color: #d4d4d4;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  cursor: pointer;
}
.standby-row button:hover { background: #222; }
.standby-row button.active { background: #7c2d12; border-color: #ea580c; color: #fed7aa; }
.gfx-input, .gfx-select {
  padding: 0.375rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  outline: none;
}
.gfx-input { width: 100%; }
.gfx-input:focus, .gfx-select:focus { border-color: #3b82f6; }
.gfx-btn, .file-btn {
  padding: 0.375rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  color: #d4d4d4;
  background: #262626;
  border: 1px solid #3f3f3f;
  border-radius: 5px;
  cursor: pointer;
}
.gfx-btn:hover, .file-btn:hover { background: #333; }
.gfx-color-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #d4d4d4;
}
.gfx-color-label input[type="color"] {
  width: 2rem;
  height: 1.6rem;
  padding: 0;
  background: none;
  border: 1px solid #3f3f3f;
  border-radius: 4px;
  cursor: pointer;
}

/* --- backstage chat --- */
.chat-unread {
  display: inline-block;
  margin-left: 0.375rem;
  min-width: 1.1rem;
  padding: 0 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
}
.chat-panel {
  position: fixed;
  right: 0.875rem;
  bottom: 0.875rem;
  z-index: 50;
  width: min(320px, calc(100vw - 1.75rem));
  height: min(420px, calc(100vh - 5rem));
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.chat-head button {
  font: inherit;
  font-size: 0.875rem;
  color: #a3a3a3;
  background: none;
  border: none;
  cursor: pointer;
}
.chat-head button:hover { color: #e5e5e5; }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chat-msg { font-size: 0.8125rem; line-height: 1.35; }
.chat-msg .who { font-weight: 600; color: #93c5fd; }
.chat-msg.self .who { color: #86efac; }
.chat-msg .when { color: #525252; font-size: 0.6875rem; margin-left: 0.3rem; }
.chat-msg .body { color: #e5e5e5; word-break: break-word; }
.chat-msg.system { color: #737373; font-style: italic; font-size: 0.75rem; }
.chat-form {
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem;
  border-top: 1px solid #2a2a2a;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: 0.8125rem;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  outline: none;
}
.chat-form input:focus { border-color: #3b82f6; }
.chat-form button {
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.chat-form button:hover { background: #2563eb; }

/* --- connection quality dot --- */
.quality-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: #525252;
}
.quality-dot.q-good { background: #22c55e; }
.quality-dot.q-ok { background: #f59e0b; }
.quality-dot.q-poor { background: #ef4444; }
.quality-dot.q-connecting { background: #3b82f6; }
.quality-dot.q-unknown { background: #525252; }

/* --- tile moderation menu --- */
.tile-kebab { font-weight: 700; line-height: 1; }
.tile-menu {
  position: absolute;
  left: 0.5rem;
  bottom: 2.6rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 9rem;
  background: #1f1f1f;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.tile-menu button {
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  color: #e5e5e5;
  background: none;
  border: none;
  cursor: pointer;
}
.tile-menu button:hover { background: #2a2a2a; }
.tile-menu button.danger { color: #f87171; }

/* --- toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: #fff;
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* --- fullscreen button --- */
.fullscreen-btn {
  align-self: center;
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-size: 0.8125rem;
  color: #a3a3a3;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  cursor: pointer;
}
.fullscreen-btn:hover { background: #222; color: #e5e5e5; }

/* --- device picker --- */
.device-panel {
  position: fixed;
  right: 0.875rem;
  top: 3.4rem;
  z-index: 55;
  width: min(280px, calc(100vw - 1.75rem));
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.device-panel[hidden] { display: none; }
.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.device-head button {
  font: inherit;
  font-size: 0.875rem;
  color: #a3a3a3;
  background: none;
  border: none;
  cursor: pointer;
}
.device-head button:hover { color: #e5e5e5; }
.device-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #a3a3a3;
}
.device-panel select {
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.8125rem;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  outline: none;
}
.device-panel select:focus { border-color: #3b82f6; }

/* --- shortcuts overlay --- */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
}
.shortcuts-overlay[hidden] { display: none; }
.shortcuts-card {
  width: min(340px, 92vw);
  padding: 1.25rem;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}
.shortcuts-card h3 { margin-bottom: 0.875rem; font-size: 1rem; font-weight: 600; }
.shortcuts-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.875rem;
  margin-bottom: 1rem;
}
.shortcuts-card dt {
  align-self: start;
  padding: 0.1rem 0.4rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  color: #93c5fd;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
}
.shortcuts-card dd { font-size: 0.8125rem; color: #d4d4d4; }
.shortcuts-card button {
  width: 100%;
  padding: 0.5rem;
  font: inherit;
  color: #e5e5e5;
  background: #262626;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  cursor: pointer;
}
.shortcuts-card button:hover { background: #333; }

@media (max-width: 640px) {
  .stage.has-screen {
    grid-template-columns: 1fr;
    grid-template-areas: "screen" "cams";
    grid-auto-rows: auto;
  }
  .stage.has-screen .cam-rail {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .stage.has-screen .cam-rail .tile {
    flex: 0 0 60vw;
  }
}
