html {
  min-width: 320px;
  background: #070a0d;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(6, 168, 255, 0.35);
}
:root {
  color-scheme: dark;
  --bg: #070a0d;
  --bg-2: #0b1116;
  --panel: #10161c;
  --panel-2: #121a21;
  --line: #26313a;
  --line-soft: #1b252d;
  --text: #f4f8fb;
  --muted: #92a2ad;
  --muted-2: #6f7f89;
  --cyan: #06a8ff;
  --cyan-2: #5bd6ff;
  --amber: #f3bd3b;
  --program: #32d66b;
  --preview: #ff514d;
  --green: #32d66b;
  --red: #ff514d;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

button,
input,
select {
  font: inherit;
}

input,
textarea,
select {
  user-select: text;
  -webkit-user-select: text;
}

button {
  cursor: pointer;
}

.app {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-width: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% -10%, rgba(6, 168, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(26, 89, 196, 0.11), transparent 24rem),
    linear-gradient(135deg, #070a0d 0%, #0b1116 52%, #06090c 100%);
}

.app::before {
  content: "";
  position: fixed;
  z-index: -1;
  right: 9vw;
  top: 18vh;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(89, 214, 255, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(185, 245, 255, 0.12), transparent 15%),
    radial-gradient(circle at 64% 72%, rgba(6, 168, 255, 0.1), transparent 48%);
  box-shadow: 0 0 100px rgba(6, 168, 255, 0.05), inset 0 0 60px rgba(255, 255, 255, 0.025);
  filter: blur(0.2px);
  pointer-events: none;
  transform: rotate(-18deg);
}

.app.startup-active {
  height: 100vh;
  overflow: hidden;
}

@media (min-width: 1181px) and (max-height: 860px) {
  .app {
    width: 138.889vw;
    min-height: 138.889vh;
    zoom: 0.72;
  }
}

@media (min-width: 1181px) and (min-height: 861px) and (max-height: 980px) {
  .app {
    width: 131.579vw;
    min-height: 131.579vh;
    zoom: 0.76;
  }
}

@media (min-width: 1181px) and (max-height: 980px) {
  .right-dock .guest-mobile {
    display: none;
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(18, 200, 255, 0.2));
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #f5fbff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-name strong {
  color: var(--cyan-2);
  font-weight: 950;
}

.brand-name span {
  color: #dbe5ea;
  font-weight: 650;
}

.startup-shell {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(7, 10, 13, 0.96), rgba(7, 10, 13, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(6, 168, 255, 0.2), transparent 30rem);
  backdrop-filter: blur(14px);
}

.startup-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 22, 28, 0.96), rgba(10, 15, 20, 0.96));
  box-shadow: var(--shadow);
  padding: 32px;
}

.startup-copy {
  margin-top: 38px;
}

.startup-copy .eyeline {
  margin: 0 0 10px;
  color: var(--cyan-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.startup-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.startup-copy p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.startup-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1116;
}

.startup-session span,
.startup-session small {
  display: block;
  color: var(--muted);
}

.startup-session strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
}

.session-picker {
  margin-bottom: 22px;
}

.session-picker .section-heading small {
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.session-list {
  display: grid;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  margin-top: 10px;
  padding-right: 2px;
}

.session-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b1116;
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.session-row.selected {
  border-color: rgba(6, 168, 255, 0.64);
  background: rgba(6, 168, 255, 0.08);
}

.session-row strong,
.session-row small {
  display: block;
}

.session-row strong {
  font-size: 14px;
}

.session-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.trash-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 81, 77, 0.38);
  border-radius: 6px;
  color: var(--red);
}

.startup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-action,
.secondary-action,
.copy-button,
.action-button,
.stacked-buttons button,
.guest-tools button,
.take-inline,
.transition-strip button,
.guest-link,
.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111820;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-action,
.secondary-action:hover,
.copy-button:hover,
.guest-tools button:first-child {
  border-color: rgba(6, 168, 255, 0.7);
  background: linear-gradient(180deg, #08aefe, #057ed5);
  color: #00131f;
}

.secondary-action {
  background: transparent;
}

.session-panel {
  min-width: 0;
  min-height: 100vh;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.96), rgba(6, 10, 14, 0.86));
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(22px);
  padding: 22px 18px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111820;
  color: var(--muted);
}

.panel-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 33, 0.96), rgba(12, 17, 22, 0.96));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  padding: 16px;
}

.session-panel .panel-card + .panel-card {
  margin-top: 16px;
}

.section-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d5dde2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-dot {
  color: var(--green);
  font-size: 11px;
}

.field-label {
  display: block;
  margin: 16px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b1015;
  color: var(--text);
  outline: none;
}

input {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

select {
  height: 38px;
  margin-top: 7px;
  padding: 0 10px;
  color: #d8e1e7;
  font-size: 13px;
}

.session-meta,
.output-meta {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
}

.session-meta div,
.output-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  color: #dfe7ec;
  font-size: 12px;
  font-weight: 800;
}

.green {
  color: var(--green);
}

.option-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.option:hover,
.option.selected {
  border-color: rgba(6, 168, 255, 0.38);
  background: rgba(6, 168, 255, 0.08);
}

.radio-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 2px solid #53636f;
  border-radius: 999px;
}

.option.selected .radio-dot {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 3px #0b1116;
  background: var(--cyan);
}

.option strong,
.option small {
  display: block;
}

.option strong {
  font-size: 13px;
}

.option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compact-output code,
.pgm-url {
  display: block;
  width: 100%;
  min-height: 42px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090d12;
  color: #bfd2df;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.copy-button {
  width: 100%;
  margin-top: 12px;
}

.director-hub {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: 18px;
  padding: 18px;
}

.status-bar {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

.status-bar > div:first-child span,
.status-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-bar > div:first-child strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(50, 214, 107, 0.34);
  border-radius: 999px;
  background: rgba(50, 214, 107, 0.12);
  color: var(--green);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin-left: auto;
}

.status-tile {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(16, 22, 28, 0.72);
  padding: 9px 10px;
}

.status-tile svg {
  grid-row: span 2;
  color: var(--cyan);
}

.status-tile strong {
  display: block;
  color: #e7edf1;
  font-size: 13px;
  white-space: nowrap;
}

.switcher-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 84px minmax(280px, 1fr);
  align-items: center;
  gap: 14px;
}

.video-pane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(50, 214, 107, 0.68);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(19, 28, 36, 0.94), rgba(8, 12, 16, 0.95));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.video-pane.preview {
  border-color: rgba(255, 81, 77, 0.78);
}

.video-art,
.thumb,
.phone-screen {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: filter, transform, background-position, background-size;
}

.stream-video {
  position: absolute;
  z-index: 0;
  display: block;
  min-width: 100%;
  min-height: 100%;
  will-change: filter, transform, width, height;
}

.soft-cover {
  background: rgba(4, 8, 12, 0.58);
  color: #dff7ff;
}

.video-art {
  aspect-ratio: 16 / 9;
}

.video-art::before,
.thumb::before,
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.38)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.feed-rio {
  background:
    linear-gradient(135deg, rgba(28, 69, 94, 0.1), rgba(12, 34, 50, 0.15)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='675' viewBox='0 0 1200 675'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%2397c9de'/%3E%3Cstop offset='.5' stop-color='%234f839d'/%3E%3Cstop offset='1' stop-color='%231d3141'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23s)' width='1200' height='675'/%3E%3Cpath fill='%23253635' d='M0 455c145-60 241-36 341-88 98-51 175-148 267-96 84 47 113 124 209 89 129-47 211-11 383 63v252H0z'/%3E%3Cpath fill='%23799fb1' d='M0 507c180-44 296-19 430-23 151-4 260-53 383-21 122 33 233 26 387-2v214H0z' opacity='.6'/%3E%3Cpath fill='%23131a20' d='M0 582h1200v93H0z'/%3E%3Ccircle cx='830' cy='185' r='84' fill='%23606f72'/%3E%3Cpath fill='%233a4447' d='M818 113c54 87 57 190 7 282l-75-23c45-87 49-163 68-259z'/%3E%3Cg fill='%23d5e2e7' opacity='.76'%3E%3Crect x='108' y='501' width='32' height='85'/%3E%3Crect x='151' y='474' width='42' height='112'/%3E%3Crect x='225' y='515' width='30' height='71'/%3E%3Crect x='970' y='486' width='36' height='96'/%3E%3Crect x='1022' y='455' width='48' height='127'/%3E%3C/g%3E%3C/svg%3E");
}

.feed-city {
  background:
    linear-gradient(135deg, rgba(27, 50, 65, 0.2), rgba(18, 22, 27, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='675' viewBox='0 0 1200 675'%3E%3Crect width='1200' height='675' fill='%239bb7c4'/%3E%3Cpath d='M0 408h1200v267H0z' fill='%2336464d'/%3E%3Cg fill='%23dce7eb'%3E%3Crect x='70' y='230' width='85' height='260'/%3E%3Crect x='170' y='280' width='58' height='210'/%3E%3Crect x='270' y='195' width='102' height='295'/%3E%3Crect x='424' y='250' width='74' height='240'/%3E%3Crect x='535' y='170' width='86' height='320'/%3E%3Crect x='700' y='285' width='64' height='205'/%3E%3Crect x='825' y='220' width='92' height='270'/%3E%3Crect x='1010' y='260' width='75' height='230'/%3E%3C/g%3E%3Cpath d='M0 520c148-57 252-42 372 0 163 58 274 58 426 0 125-47 255-51 402 8v147H0z' fill='%232a5f67'/%3E%3C/svg%3E");
}

.feed-monument {
  background:
    linear-gradient(135deg, rgba(83, 93, 104, 0.05), rgba(14, 26, 39, 0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='675' viewBox='0 0 1200 675'%3E%3Crect width='1200' height='675' fill='%238fc4e2'/%3E%3Cpath d='M0 455c260-52 353-36 532-15 239 29 352-34 668-14v249H0z' fill='%23406b58'/%3E%3Cpath d='M580 160l-45 236h130l-45-236z' fill='%23d6d0c0'/%3E%3Cpath d='M548 230c-87 14-155 50-236 114l20 32c83-46 149-78 208-88zM652 230c87 14 155 50 236 114l-20 32c-83-46-149-78-208-88z' fill='%23ded8c7'/%3E%3Ccircle cx='600' cy='132' r='34' fill='%23eee8d8'/%3E%3Cpath d='M0 580c154-18 273-9 390 8 134 18 264 29 430 0 139-24 252-22 380-3v90H0z' fill='%2327353c'/%3E%3C/svg%3E");
}

.feed-sunset {
  background:
    linear-gradient(135deg, rgba(76, 37, 25, 0.1), rgba(13, 20, 27, 0.15)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='675' viewBox='0 0 1200 675'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%236a8aa5'/%3E%3Cstop offset='.6' stop-color='%23d58b4d'/%3E%3Cstop offset='1' stop-color='%23271f25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='675' fill='url(%23a)'/%3E%3Ccircle cx='760' cy='315' r='72' fill='%23ffcf6d'/%3E%3Cpath d='M0 448c120-40 245-56 380-14 150 47 284 47 430 0 159-51 281-25 390 12v229H0z' fill='%233f2d2e'/%3E%3Cg fill='%231b1a1e'%3E%3Cpath d='M142 420h10v185h-10zM126 455l21-44 28 43-26-17zM306 410h10v195h-10zM288 445l26-50 30 48-29-19z'/%3E%3C/g%3E%3C/svg%3E");
}

.feed-night {
  background:
    linear-gradient(135deg, rgba(20, 32, 51, 0.08), rgba(5, 9, 14, 0.1)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='675' viewBox='0 0 1200 675'%3E%3Crect width='1200' height='675' fill='%230a1220'/%3E%3Cpath d='M0 460c130-36 255-50 420-16 169 36 286 36 440 0 123-29 235-36 340-9v240H0z' fill='%2316232d'/%3E%3Cg fill='%23e4d681'%3E%3Ccircle cx='80' cy='565' r='3'/%3E%3Ccircle cx='125' cy='520' r='3'/%3E%3Ccircle cx='188' cy='582' r='2'/%3E%3Ccircle cx='290' cy='535' r='3'/%3E%3Ccircle cx='455' cy='560' r='2'/%3E%3Ccircle cx='610' cy='512' r='3'/%3E%3Ccircle cx='720' cy='570' r='2'/%3E%3Ccircle cx='815' cy='524' r='3'/%3E%3Ccircle cx='955' cy='555' r='2'/%3E%3Ccircle cx='1070' cy='505' r='3'/%3E%3C/g%3E%3Cg fill='%23273644'%3E%3Crect x='120' y='280' width='70' height='210'/%3E%3Crect x='235' y='230' width='92' height='260'/%3E%3Crect x='480' y='255' width='80' height='235'/%3E%3Crect x='790' y='205' width='100' height='285'/%3E%3Crect x='980' y='270' width='78' height='220'/%3E%3C/g%3E%3C/svg%3E");
}

.feed-empty {
  background:
    linear-gradient(135deg, rgba(10, 15, 20, 0.98), rgba(3, 6, 9, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 14px);
}

.pane-topline {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(5, 8, 11, 0.72), transparent);
}

.pane-topline strong {
  color: var(--program);
  font-size: 27px;
  letter-spacing: 0;
}

.preview .pane-topline strong {
  color: var(--preview);
}

.pane-topline span,
.phone-live,
.air-flag {
  border-radius: 5px;
  background: rgba(50, 214, 107, 0.78);
  color: #e8f8ff;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview .pane-topline span {
  background: rgba(255, 81, 77, 0.86);
}

.clean-monitor {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #e5edf1;
  text-align: center;
  text-transform: uppercase;
}

.clean-monitor strong,
.clean-monitor span {
  display: block;
}

.clean-monitor strong {
  font-size: 17px;
  letter-spacing: 0;
}

.clean-monitor span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lower-third {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: stretch;
  max-width: 470px;
  background: rgba(0, 0, 0, 0.74);
  border-right: 3px solid var(--cyan);
}

.preview .lower-third {
  border-right-color: var(--amber);
}

.clock {
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #00131f;
  font-size: 13px;
  font-weight: 900;
}

.preview .clock {
  background: var(--amber);
}

.lower-third div:last-child {
  padding: 12px 14px;
}

.lower-third strong,
.lower-third span {
  display: block;
}

.lower-third strong {
  color: var(--cyan-2);
  font-size: 14px;
  text-transform: uppercase;
}

.preview .lower-third strong {
  color: #ffd66d;
}

.lower-third span {
  margin-top: 4px;
  color: #e8eef2;
  font-size: 13px;
}

.camera-cover,
.thumb-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 11, 0.82);
  color: #dce8ee;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-meters {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  color: #d1dbe1;
  font-size: 12px;
}

.video-meters span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.video-meters svg {
  color: var(--green);
}

.preview .video-meters svg {
  color: var(--preview);
}

.take-inline {
  min-height: 30px;
  margin-left: auto;
  border-color: rgba(50, 214, 107, 0.5);
  background: rgba(50, 214, 107, 0.12);
  color: var(--program);
}

.transition-strip {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.transition-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.transition-strip button {
  min-height: 46px;
  padding: 0 8px;
}

.transition-strip button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.transition-strip .take-button {
  min-height: 70px;
  border-color: var(--program);
  color: var(--program);
}

.transition-strip .soft {
  color: #cfd8dd;
  text-transform: none;
}

.guest-section {
  min-width: 0;
}

.guest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guest-heading span,
.guest-heading strong {
  color: #d8e1e7;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-heading strong {
  margin-left: 5px;
  color: var(--muted);
}

.guest-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-tools button {
  min-height: 36px;
  padding: 0 12px;
}

.guest-tools button:not(:first-child) {
  width: 36px;
  padding: 0;
  background: #111820;
  color: var(--muted);
}

.guest-tools button.selected {
  border-color: rgba(6, 168, 255, 0.66);
  background: rgba(6, 168, 255, 0.14);
  color: var(--cyan-2);
}

.guest-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(142px, 1fr));
  gap: 12px;
}

.guest-strip.list-view {
  grid-template-columns: minmax(0, 1fr);
}

.empty-guests {
  min-height: 164px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1px dashed rgba(146, 162, 173, 0.3);
  border-radius: var(--radius);
  background: rgba(16, 22, 28, 0.55);
  color: var(--muted);
  text-align: center;
}

.empty-guests strong {
  color: #edf4f7;
  font-size: 15px;
  text-transform: uppercase;
}

.empty-guests span {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.45;
}

.approval-queue {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(16, 22, 28, 0.58);
  padding: 12px;
}

.approval-queue.has-requests {
  border-color: rgba(243, 189, 59, 0.46);
  background: rgba(36, 28, 13, 0.28);
}

.queue-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.queue-status.enabled {
  border-color: rgba(243, 189, 59, 0.45);
  color: var(--amber);
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(10, 15, 20, 0.86);
  padding: 10px;
}

.request-thumb {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.request-thumb span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 5px;
  background: rgba(5, 8, 11, 0.78);
  color: #eaf4f8;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-info {
  min-width: 0;
}

.request-info strong,
.request-info span,
.request-info small {
  display: block;
}

.request-info strong {
  overflow: hidden;
  color: #edf5f8;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-info span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.request-info small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #cfd8dd;
  font-size: 11px;
  font-weight: 800;
}

.request-actions {
  display: grid;
  gap: 8px;
}

.request-actions button {
  min-width: 110px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111820;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-actions .approve {
  border-color: rgba(50, 214, 107, 0.52);
  color: var(--green);
}

.request-actions .reject {
  border-color: rgba(255, 81, 77, 0.52);
  color: var(--red);
}

.empty-requests {
  min-height: 88px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed rgba(146, 162, 173, 0.26);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-requests strong,
.empty-requests span {
  display: block;
}

.empty-requests strong {
  color: #eaf1f5;
  font-size: 13px;
  text-transform: uppercase;
}

.empty-requests span {
  max-width: 410px;
  font-size: 12px;
  line-height: 1.45;
}

.guest-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(16, 22, 28, 0.9);
  overflow: hidden;
}

.guest-card.selected {
  border-color: rgba(6, 168, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(6, 168, 255, 0.2);
}

.guest-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
}

.guest-card strong,
.guest-card span {
  display: block;
}

.guest-card strong {
  overflow: hidden;
  color: #eef5f8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-card header span:not(.signal) {
  color: var(--muted);
  font-size: 11px;
}

.signal {
  position: relative;
  padding-left: 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.signal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.signal.good {
  color: #8ce887;
}

.signal.limited {
  color: var(--amber);
}

.signal.offline {
  color: var(--red);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}

.air-flag {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 8px;
  background: rgba(255, 81, 77, 0.85);
}

.guest-card footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
}

.input-audio-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(36px, 1fr) auto;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line-soft);
  color: #86cde8;
  padding: 6px 8px;
}

.input-audio-row > span,
.input-audio-row > small {
  color: #9fb0ba;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.input-audio-row > small {
  color: #dce8ed;
  text-align: right;
}

.input-vu {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #1c2a33;
}

.input-vu i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b9d9, #32d66b 72%, #d7f24d);
  box-shadow: 0 0 9px rgba(50, 214, 107, 0.42);
  transition: width 70ms linear;
}

.input-vu.muted i {
  background: var(--red);
  box-shadow: none;
}

.mini-control {
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111820;
  color: #d8e1e7;
}

.active-danger {
  color: var(--red);
}

.mini-control.active {
  border-color: rgba(6, 168, 255, 0.64);
  background: rgba(6, 168, 255, 0.13);
  color: var(--cyan-2);
}

.mini-control.active-on-air {
  border-color: rgba(255, 81, 77, 0.66);
  background: rgba(255, 81, 77, 0.13);
  color: #ff9c97;
}

.mini-control.active-monitor {
  border-color: rgba(50, 214, 107, 0.64);
  background: rgba(50, 214, 107, 0.13);
  color: #8ff1b8;
}

.quick-actions {
  align-self: start;
}

.production-suite {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(18, 27, 35, 0.82), rgba(8, 13, 17, 0.88));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(16px);
  padding: 12px;
}

.suite-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.suite-tabs button,
.switch-row button,
.layout-buttons button,
.asset-actions label,
.layer-actions button,
.layer-actions label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111820;
  color: #dce7ed;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.suite-tabs button.selected,
.switch-row button.selected,
.layout-buttons button.selected {
  border-color: rgba(6, 168, 255, 0.64);
  background: rgba(6, 168, 255, 0.12);
  color: var(--cyan-2);
}

.suite-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.suite-preview,
.scene-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d12;
  padding: 10px;
}

.suite-preview > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.suite-preview-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.suite-controls {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.switch-row,
.layout-buttons,
.asset-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.reset-config-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: rgba(243, 189, 59, 0.42);
  color: var(--amber);
}

.reset-config-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.layout-buttons {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.asset-actions label {
  cursor: pointer;
}

.asset-actions input {
  display: none;
}

.layers-suite {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.05fr);
  gap: 12px;
}

.source-library {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d12;
  padding: 12px;
}

.source-library-heading,
.source-category > header,
.source-input {
  display: flex;
  align-items: center;
}

.source-library-heading {
  justify-content: space-between;
  gap: 12px;
}

.source-library-heading > div:first-child {
  display: grid;
  gap: 3px;
}

.source-library-heading strong {
  color: #eff7fb;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.source-library-heading span,
.source-category-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.category-create {
  display: flex;
  align-items: center;
  gap: 7px;
}

.category-create input {
  width: min(180px, 34vw);
  min-height: 32px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #05090d;
  color: #eaf5f9;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.category-create button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 185, 255, 0.48);
  border-radius: 4px;
  background: rgba(0, 185, 255, 0.12);
  color: #b9edff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.source-category-list {
  display: grid;
  gap: 8px;
}

.source-category {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--category-color) 48%, transparent);
  border-radius: 6px;
  background: #060b0f;
}

.source-category > header {
  min-height: 32px;
  gap: 8px;
  background: color-mix(in srgb, var(--category-color) 11%, #080d12);
  padding: 0 10px;
}

.source-category > header i {
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: var(--category-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--category-color) 55%, transparent);
}

.source-category > header strong {
  color: #eaf5f8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-category > header span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--category-color) 45%, transparent);
  border-radius: 3px;
  color: var(--category-color);
  font-size: 11px;
  font-weight: 950;
}

.source-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
  padding: 7px;
}

.source-input {
  min-width: 0;
  min-height: 38px;
  gap: 7px;
  border: 1px solid rgba(140, 162, 175, 0.2);
  border-radius: 4px;
  background: #101923;
  color: #dce9ef;
  padding: 4px 6px;
  text-align: left;
}

.source-input-select {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.source-input:hover,
.source-input.selected {
  border-color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 12%, #101923);
}

.source-input strong {
  min-width: 0;
  overflow: hidden;
  color: #edf5f8;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-type {
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 4px 5px;
  color: #081014;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.source-guest { background: #58d3ff; }
.source-image { background: #f3c85d; }
.source-composition { background: #ca8bff; }

.source-input select {
  max-width: 104px;
  min-width: 0;
  height: 26px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #071016;
  color: #b8cbd4;
  font-size: 10px;
  font-weight: 750;
}

.source-category-empty {
  display: block;
  padding: 8px 10px 10px 23px;
}

.layer-slots,
.multiview-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d12;
  padding: 10px;
}

.layer-slots {
  display: grid;
  gap: 7px;
}

.layer-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px 22px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 8px;
}

.layer-row strong {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 4px;
  background: #05080b;
  color: #eff7fb;
  font-size: 13px;
  font-weight: 950;
}

.layer-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.layer-row select {
  height: 32px;
  margin: 0;
  border-radius: 4px;
  background: #d6d9dd;
  color: #061018;
  font-size: 12px;
  font-weight: 800;
}

.layer-row button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #18222b;
  color: #dce7ed;
  font-size: 12px;
  font-weight: 850;
}

.layer-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.multiview-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.template-card {
  position: relative;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid #0c1217;
  border-radius: 3px;
  background: #05080b;
}

.template-card span {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.template-card span:nth-child(odd) {
  background: #1216ff;
}

.template-card span:nth-child(even) {
  background: #ff171b;
}

.template-card .full {
  inset: 0;
}

.template-card .half:first-child,
.template-card .top {
  inset: 0 50% 0 0;
}

.template-card .half:nth-child(2),
.template-card .bottom {
  inset: 0 0 0 50%;
}

.template-card .top {
  inset: 0 0 50% 0;
}

.template-card .bottom {
  inset: 50% 0 0 0;
}

.template-card .q:nth-child(1) {
  inset: 0 50% 50% 0;
}

.template-card .q:nth-child(2) {
  inset: 0 0 50% 50%;
}

.template-card .q:nth-child(3) {
  inset: 50% 50% 0 0;
}

.template-card .q:nth-child(4) {
  inset: 50% 0 0 50%;
}

.template-card .wide {
  inset: 0 36% 0 0;
}

.template-card .side {
  inset: 18% 0 18% 64%;
}

.template-card .angle-a {
  inset: 0 50% 0 0;
  clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%);
}

.template-card .angle-b {
  inset: 0 0 0 50%;
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%);
}

.layer-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.layer-actions input {
  display: none;
}

.colour-bars-preview {
  min-height: 124px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111;
}

.colour-bars-preview span:nth-child(1) {
  background: #777;
}

.colour-bars-preview span:nth-child(2) {
  background: #c6c6c6;
}

.colour-bars-preview span:nth-child(3) {
  background: #d8d400;
}

.colour-bars-preview span:nth-child(4) {
  background: #14c7c8;
}

.colour-bars-preview span:nth-child(5) {
  background: #00c51d;
}

.colour-bars-preview span:nth-child(6) {
  background: #ca18c9;
}

.colour-bars-preview span:nth-child(7) {
  background: #c70000;
}

.colour-bars-preview span:nth-child(8) {
  background: #1210c0;
}

.suite-slider {
  min-width: 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.suite-slider span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.suite-slider strong {
  color: #eef5f8;
}

.suite-slider input {
  height: 6px;
  accent-color: var(--cyan);
}

.scene-preview {
  min-height: 180px;
  display: grid;
  gap: 8px;
  background-size: cover;
  background-position: center;
}

.scene-preview.layout-solo {
  grid-template-columns: 1fr;
}

.scene-preview.layout-duo,
.scene-preview.layout-vertical {
  grid-template-columns: repeat(2, 1fr);
}

.scene-preview.layout-quad {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.scene-preview.layout-spotlight {
  grid-template-columns: 1.6fr 1fr;
}

.suite-composition-preview {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  background: #000;
}

.suite-composition-preview.layout-solo { grid-template-columns: 1fr; }
.suite-composition-preview.layout-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.suite-composition-preview.layout-vertical { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.suite-composition-preview.layout-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.suite-composition-preview.layout-spotlight { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.suite-composition-source {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.scene-tile {
  position: relative;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.scene-tile span {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 7px;
  border-radius: 5px;
  background: rgba(3, 6, 9, 0.72);
  color: #f2f7fa;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.audio-mixer {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
}

.audio-strip {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 12, 16, 0.84);
  padding: 10px;
}

.audio-strip.offline {
  opacity: 0.62;
}

.audio-strip header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.audio-strip strong {
  overflow: hidden;
  color: #edf5f8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-strip header span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.audio-strip.offline header span {
  color: var(--red);
}

.vu-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #05080b;
  margin-bottom: 10px;
}

.vu-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber) 72%, var(--red));
  transition: width 0.18s ease;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.action-button {
  min-height: 64px;
  padding: 0 14px;
}

.action-button.go {
  border-color: rgba(50, 214, 107, 0.7);
  color: var(--green);
}

.action-button.danger {
  border-color: rgba(255, 81, 77, 0.68);
  color: var(--red);
}

.right-dock {
  grid-column: 2;
  grid-row: 2 / 7;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.output-panel {
  display: grid;
  gap: 16px;
}

.guest-url {
  display: block;
  width: 100%;
  min-height: 42px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090d12;
  color: #bfd2df;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.cache-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cache-note svg {
  flex: 0 0 auto;
  color: var(--green);
}

.stacked-buttons {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.stacked-buttons button {
  justify-content: flex-start;
  min-height: 38px;
  padding: 0 12px;
}

.stacked-buttons .danger {
  border-color: rgba(255, 81, 77, 0.68);
  color: var(--red);
}

.guest-mobile {
  min-width: 0;
}

.phone-frame {
  position: relative;
  margin-top: 14px;
  border: 2px solid #1d2d3a;
  border-radius: 26px;
  background: #040609;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone-notch {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 3;
  width: 8px;
  height: 48px;
  border-radius: 999px;
  background: #020304;
  transform: translateY(-50%);
}

.phone-screen {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background-color: #111820;
}

.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen:not(.camera-on) video {
  display: none;
}

.phone-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #eef6fa;
}

.phone-overlay span,
.phone-overlay strong {
  display: block;
}

.phone-overlay span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-overlay strong {
  margin-top: 4px;
  font-size: 16px;
}

.phone-live {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  background: rgba(255, 81, 77, 0.86);
}

.mobile-controls {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.mobile-controls label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.toggle {
  justify-content: flex-start;
  min-height: 38px;
  padding: 0 11px;
  text-transform: none;
}

.toggle.selected {
  border-color: rgba(6, 168, 255, 0.55);
  color: var(--cyan-2);
}

.toggle.primary {
  justify-content: center;
  border-color: rgba(6, 168, 255, 0.55);
}

.guest-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.guest-link {
  width: 100%;
  margin-top: 12px;
  color: var(--cyan-2);
  text-decoration: none;
}

.guest-entry-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 10%, rgba(6, 168, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #070a0d 0%, #0b1116 54%, #05080b 100%);
}

.guest-entry-card {
  width: min(1080px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 22, 28, 0.96), rgba(8, 12, 16, 0.96));
  box-shadow: var(--shadow);
  padding: 24px;
}

.guest-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.guest-entry-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.guest-entry-copy {
  min-width: 0;
  padding: 10px 0;
}

.entry-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(6, 168, 255, 0.45);
  border-radius: 999px;
  color: var(--cyan-2);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-entry-copy h1 {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.guest-entry-copy p {
  max-width: 440px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.entry-meta {
  max-width: 360px;
  margin-top: 22px;
}

.guest-entry-form {
  min-width: 0;
}

.guest-camera-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05080b;
  padding: 10px;
}

.guest-camera-preview .phone-screen {
  border-radius: 7px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.form-grid label {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid input {
  margin-top: 7px;
}

.join-submit {
  width: 100%;
  margin-top: 14px;
}

.join-submit:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.join-result {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: #dfe8ee;
  font-size: 13px;
  font-weight: 800;
}

.join-result.joined {
  border-color: rgba(50, 214, 107, 0.44);
  color: var(--green);
}

.join-result.pending {
  border-color: rgba(243, 189, 59, 0.48);
  color: var(--amber);
}

.join-result.blocked {
  border-color: rgba(255, 81, 77, 0.46);
  color: var(--red);
}

.capture-quality-note {
  margin: 12px 0 0;
  color: #9fc3d5;
  font-size: 12px;
  line-height: 1.45;
}

.capture-quality-note::before {
  content: "Captação limpa · ";
  color: var(--cyan-2);
  font-weight: 800;
}

.guest-preview-live {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(6, 168, 255, 0.48);
  border-radius: 999px;
  background: rgba(3, 12, 18, 0.78);
  color: var(--cyan-2);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.guest-device-grid label,
.guest-name-field {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-device-grid label > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.guest-device-grid select,
.guest-name-field input {
  width: 100%;
  margin-top: 7px;
}

.device-check {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  border: 1px solid rgba(243, 189, 59, 0.38);
  border-radius: 7px;
  background: rgba(243, 189, 59, 0.06);
  padding: 9px 10px;
}

.device-check span {
  color: #f3ca59;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.device-check small {
  color: #aab8bf;
  font-size: 11px;
  line-height: 1.35;
}

.device-check.ready {
  border-color: rgba(50, 214, 107, 0.42);
  background: rgba(50, 214, 107, 0.07);
}

.device-check.ready span {
  color: #82ecae;
}

.guest-preview-button,
.screen-share-link {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border-color: rgba(6, 168, 255, 0.48);
  background: rgba(6, 168, 255, 0.09);
  color: var(--cyan-2);
  font-size: 12px;
  font-weight: 900;
}

.screen-share-link {
  border-color: transparent;
  background: transparent;
  color: #a8c6d4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guest-audio-meter {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(7, 12, 16, 0.5);
  padding: 10px 12px;
}

.guest-audio-meter-heading,
.studio-return-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guest-audio-meter-heading span,
.studio-return-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e7f1f5;
  font-size: 12px;
  font-weight: 900;
}

.guest-audio-meter-heading span svg,
.studio-return-heading span svg {
  color: var(--cyan-2);
}

.guest-audio-meter-heading strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.guest-audio-meter-bars {
  height: 30px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: end;
  gap: 4px;
  margin-top: 9px;
}

.guest-audio-meter-bars span {
  min-height: 7px;
  border-radius: 2px;
  background: #26333d;
  transition: height 90ms linear, background 90ms linear;
}

.guest-audio-meter-bars span:nth-child(3n) { height: 14px; }
.guest-audio-meter-bars span:nth-child(3n + 1) { height: 21px; }
.guest-audio-meter-bars span:nth-child(3n + 2) { height: 27px; }

.guest-audio-meter-bars span.active {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(6, 168, 255, 0.35);
}

.guest-audio-meter-bars span.active:nth-last-child(-n + 4) {
  background: var(--green);
}

.prejoin-monitor {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(103, 145, 165, 0.42);
  border-radius: 7px;
  background: rgba(9, 17, 23, 0.78);
  color: #a5bdc8;
  font-size: 12px;
  font-weight: 800;
}

.prejoin-monitor.active {
  border-color: rgba(50, 214, 107, 0.7);
  background: rgba(50, 214, 107, 0.12);
  color: #8cf3b6;
}

.prejoin-monitor:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.studio-return-panel {
  margin-top: 12px;
  border: 1px solid rgba(6, 168, 255, 0.26);
  border-radius: 9px;
  background: rgba(6, 15, 22, 0.72);
  padding: 11px;
}

.studio-return-heading small {
  display: block;
  max-width: 290px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.return-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.return-toggle.selected {
  border-color: rgba(6, 168, 255, 0.54);
  color: var(--cyan-2);
}

.studio-return-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #030608;
}

.studio-return-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.studio-return-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 7px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.studio-return-empty svg {
  justify-self: center;
  color: #427189;
}

.studio-return-empty span {
  max-width: 250px;
  font-size: 12px;
  line-height: 1.42;
}

.guest-name-field {
  display: block;
  margin-top: 12px;
}

.guest-name-field small {
  margin-left: 4px;
  color: #698292;
  font-size: 10px;
  font-weight: 800;
}

.studio-return-status {
  grid-column: 1 / -1;
  display: block;
  margin-top: -4px;
  color: #8dddb5;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.guest-live-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(6, 168, 255, 0.14), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(50, 214, 107, 0.08), transparent 24%),
    #05080b;
  color: #ecf5f8;
}

.guest-live-canvas {
  width: 100dvw;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(42px, 8vh) minmax(0, 1fr) minmax(84px, 19vh);
  gap: clamp(7px, 1.1vw, 14px);
  padding: clamp(8px, 1.2vw, 16px);
}

.guest-live-header {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  border-bottom: 1px solid rgba(84, 124, 148, 0.35);
  padding: 0 clamp(4px, 0.5vw, 8px) clamp(6px, 0.8vw, 10px);
}

.guest-live-brand {
  flex: 0 0 auto;
  color: #f6fbfd;
  font-size: clamp(15px, 2.1vw, 27px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.guest-live-brand strong {
  color: var(--cyan);
  font-weight: 900;
}

.guest-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(50, 214, 107, 0.62);
  border-radius: 6px;
  background: rgba(50, 214, 107, 0.1);
  color: #7cf2ad;
  padding: 6px 9px;
  font-size: clamp(9px, 1.05vw, 13px);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.guest-live-status.waiting {
  border-color: rgba(243, 189, 59, 0.58);
  background: rgba(243, 189, 59, 0.09);
  color: var(--amber);
}

.guest-live-meta {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
  margin-left: auto;
  color: #8fa5b1;
  font-size: clamp(8px, 0.95vw, 11px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-live-meta strong {
  overflow: hidden;
  max-width: 190px;
  color: #d4e0e6;
  font-size: clamp(9px, 1.08vw, 13px);
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-live-monitors {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.25vw, 16px);
}

.guest-live-frame {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(38px, 15%) minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid var(--cyan);
  border-radius: clamp(7px, 1vw, 12px);
  background: linear-gradient(150deg, rgba(18, 29, 38, 0.95), rgba(3, 7, 10, 0.98));
  box-shadow: 0 0 0 1px rgba(6, 168, 255, 0.12), 0 16px 32px rgba(0, 0, 0, 0.25);
}

.guest-live-frame.camera {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(50, 214, 107, 0.1), 0 16px 32px rgba(0, 0, 0, 0.25);
}

.guest-live-frame header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(105, 143, 162, 0.22);
  padding: 6px clamp(8px, 1vw, 13px);
}

.guest-live-frame header > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}

.guest-live-frame header > div > svg {
  grid-row: span 2;
  color: var(--cyan-2);
}

.guest-live-frame.camera header > div > svg {
  color: #76e9a4;
}

.guest-live-frame header strong,
.guest-live-frame header span {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-live-frame header strong {
  color: #eff7fa;
  font-size: clamp(11px, 1.35vw, 18px);
  font-weight: 900;
  text-transform: uppercase;
}

.guest-live-frame header span {
  margin-top: 1px;
  color: var(--cyan-2);
  font-size: clamp(8px, 0.9vw, 11px);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guest-live-frame.camera header span {
  color: #7ee5a9;
}

.live-headphone {
  flex: 0 0 auto;
  width: clamp(31px, 3.5vw, 43px);
  height: clamp(29px, 3.2vw, 39px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(128, 153, 167, 0.45);
  border-radius: 7px;
  background: rgba(8, 14, 19, 0.86);
  color: #718795;
}

.live-headphone.active {
  border-color: rgba(6, 168, 255, 0.72);
  background: rgba(6, 168, 255, 0.16);
  color: var(--cyan-2);
  box-shadow: inset 0 0 0 1px rgba(6, 168, 255, 0.14);
}

.guest-live-frame.camera .live-headphone.active {
  border-color: rgba(50, 214, 107, 0.72);
  background: rgba(50, 214, 107, 0.14);
  color: #8df0b8;
}

.guest-live-video-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #010304;
}

.live-media-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.guest-live-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 9px;
  background:
    linear-gradient(145deg, rgba(29, 49, 63, 0.18), transparent 50%),
    #020405;
  color: #718895;
  text-align: center;
}

.guest-live-empty svg {
  justify-self: center;
  color: #94a9b5;
}

.guest-live-empty span {
  color: #aabcc5;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guest-live-audio {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(54px, 9%) minmax(0, 1fr) minmax(54px, 9%);
  grid-template-rows: 1fr;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  border: 1px solid rgba(102, 135, 153, 0.42);
  border-radius: clamp(7px, 1vw, 12px);
  background: linear-gradient(155deg, rgba(12, 22, 29, 0.96), rgba(5, 10, 14, 0.94));
  padding: clamp(9px, 1.1vw, 14px);
}

.guest-live-audio-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--cyan-2);
}

.guest-live-audio-heading > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
}

.guest-live-audio-heading > div:first-child svg {
  grid-row: span 2;
}

.guest-live-audio-heading strong {
  color: #edf6f9;
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 900;
  text-transform: uppercase;
}

.guest-live-audio-heading span {
  color: #8298a5;
  font-size: clamp(8px, 0.82vw, 10px);
  font-weight: 800;
  text-transform: uppercase;
}

.guest-live-meter {
  height: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: repeat(30, minmax(2px, 1fr));
  align-items: end;
  gap: clamp(2px, 0.35vw, 5px);
  padding: 4px 0;
}

.guest-live-meter span {
  min-height: 18%;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #23333d, #18242d);
  transition: background 70ms linear, opacity 70ms linear;
}

.guest-live-meter span:nth-child(3n) { height: 52%; }
.guest-live-meter span:nth-child(3n + 1) { height: 78%; }
.guest-live-meter span:nth-child(3n + 2) { height: 98%; }

.guest-live-meter span.active {
  background: linear-gradient(180deg, #93ff68 0%, #32d66b 47%, #00b9d9 100%);
  box-shadow: 0 0 8px rgba(50, 214, 107, 0.36);
}

.guest-live-audio-core {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(22px, auto) minmax(0, 1fr);
  gap: 4px;
}

.guest-gain-control {
  position: relative;
  display: grid;
  place-items: center;
}

.guest-gain-button {
  min-width: 46px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(103, 145, 165, 0.45);
  border-radius: 7px;
  background: rgba(9, 17, 23, 0.82);
  color: #a6c7d6;
  font-size: 10px;
  font-weight: 900;
}

.guest-gain-button.active,
.guest-gain-button:hover {
  border-color: rgba(6, 168, 255, 0.84);
  background: rgba(6, 168, 255, 0.16);
  color: #d6f6ff;
}

.guest-gain-control.center .guest-gain-button {
  min-width: 62px;
  min-height: 28px;
}

.guest-gain-popover {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 7px);
  width: min(190px, 45vw);
  display: grid;
  gap: 7px;
  border: 1px solid rgba(6, 168, 255, 0.66);
  border-radius: 8px;
  background: #0a1218;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  padding: 9px;
  color: #e8f7fc;
}

.guest-gain-control.left .guest-gain-popover { left: 0; }
.guest-gain-control.right .guest-gain-popover { right: 0; }
.guest-gain-control.center .guest-gain-popover { right: 0; }

.guest-gain-popover strong {
  font-size: 11px;
  font-weight: 900;
}

.guest-gain-popover input {
  width: 100%;
  accent-color: var(--cyan);
}

.guest-gain-popover small {
  color: #91a9b4;
  font-size: 10px;
  font-weight: 800;
}

/* The browser chrome on a phone can leave very little visible height in
   landscape.  Keep the control chrome intentionally short so the two live
   monitors, rather than the labels and meter, own the screen. */
@media (max-width: 1000px) and (max-height: 760px) and (orientation: landscape) {
  .guest-live-canvas {
    grid-template-rows: 36px minmax(0, 1fr) 56px;
    gap: 6px;
    padding: 6px;
  }

  .guest-live-header {
    gap: 10px;
    padding: 0 3px 4px;
  }

  .guest-live-status {
    padding: 4px 7px;
  }

  .guest-live-frame {
    grid-template-rows: 32px minmax(0, 1fr);
    border-width: 2px;
  }

  .guest-live-frame header {
    padding: 3px 8px;
  }

  .guest-live-frame header > div {
    column-gap: 6px;
  }

  .live-headphone {
    width: 29px;
    height: 27px;
    border-radius: 6px;
  }

  .guest-live-audio {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 6px 9px;
  }

  .guest-live-audio-heading {
    gap: 4px;
  }

  .guest-gain-button {
    min-width: 42px;
    min-height: 32px;
    font-size: 9px;
  }

  .guest-gain-control.center .guest-gain-button {
    min-width: 54px;
    min-height: 24px;
  }

  .guest-live-meter {
    min-height: 30px;
    padding: 0;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .guest-live-canvas {
    width: 100dvh;
    height: 100dvw;
    transform-origin: top left;
    transform: translateX(100dvw) rotate(90deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app::before {
    animation: studio-orbit 20s ease-in-out infinite alternate;
  }
}

@keyframes studio-orbit {
  from {
    transform: rotate(-18deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotate(-11deg) translate3d(-16px, 10px, 0);
  }
}

.pgm-output {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.pgm-stage {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 0;
  background: #000;
  background-size: cover;
  background-position: center;
}

.pgm-stage.layout-solo {
  grid-template-columns: 1fr;
}

.pgm-stage.layout-duo,
.pgm-stage.layout-vertical {
  grid-template-columns: repeat(2, 1fr);
}

.pgm-stage.layout-quad {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.pgm-stage.layout-spotlight {
  grid-template-columns: 1.6fr 1fr;
}

.pgm-source {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.pgm-live-source {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.pgm-freeze-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  background: #000;
}

.pgm-freeze-frame.available {
  display: block;
}

.pgm-live-source .stream-video {
  z-index: 1;
}

.pgm-live-source.video-stalled .stream-video {
  visibility: hidden;
}

.pgm-composition,
.composition-monitor {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #000;
}

.pgm-composition.layout-solo,
.composition-monitor.layout-solo {
  grid-template-columns: 1fr;
}

.pgm-composition.layout-duo,
.composition-monitor.layout-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pgm-composition.layout-vertical,
.composition-monitor.layout-vertical {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.pgm-composition.layout-quad,
.composition-monitor.layout-quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.pgm-composition.layout-spotlight,
.composition-monitor.layout-spotlight {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.pgm-composition-source,
.composition-source {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.pgm-composition-source .media-layer {
  background-size: cover !important;
}

.composition-source .media-layer,
.suite-composition-source .media-layer {
  background-size: cover !important;
}

.pgm-source::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pgm-source-muted {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 81, 77, 0.045) 0 8px, transparent 8px 16px),
    #020405;
  color: #f08c87;
  font-size: clamp(13px, 1.2vw, 22px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pgm-signal-black {
  position: absolute;
  inset: 0;
  background: #000;
}

.pgm-offline {
  position: absolute;
  z-index: 2;
  right: 2.2vw;
  top: 2.2vw;
  border-radius: 5px;
  background: rgba(255, 81, 77, 0.88);
  color: #fff;
  padding: 0.55vw 0.8vw;
  font-size: clamp(12px, 1vw, 18px);
  font-weight: 950;
  text-transform: uppercase;
}

.pgm-waiting {
  background: rgba(10, 130, 190, 0.84);
}

.pgm-idle {
  min-height: 100vh;
  display: grid;
  place-content: center;
  background: #000;
}

.pgm-signal-bar {
  width: min(32vw, 440px);
  height: min(1.2vw, 12px);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  opacity: 0.7;
}

.pgm-signal-bar i:nth-child(1) { background: #fff; }
.pgm-signal-bar i:nth-child(2) { background: #e8dc00; }
.pgm-signal-bar i:nth-child(3) { background: #00c960; }
.pgm-signal-bar i:nth-child(4) { background: #00d9e5; }
.pgm-signal-bar i:nth-child(5) { background: #1475ff; }
.pgm-signal-bar i:nth-child(6) { background: #d218c4; }
.pgm-signal-bar i:nth-child(7) { background: #e31e2d; }

.studio-return-control {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 10px;
}

.studio-return-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-return-control.ready {
  border-color: rgba(50, 214, 107, 0.42);
  background: rgba(50, 214, 107, 0.06);
}

.studio-return-control.ready span {
  color: var(--green);
}

.return-error {
  color: #ff9b96;
}

@media (max-width: 1380px) {
  .app {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .director-hub {
    grid-template-columns: minmax(0, 1fr);
  }

  .right-dock {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .status-group {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 1080px) {
  .app {
    grid-template-columns: 1fr;
  }

  .session-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .panel-top,
  .session-card {
    grid-column: 1 / -1;
  }

  .session-panel .panel-card + .panel-card {
    margin-top: 0;
  }

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

  .transition-strip {
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }

  .transition-strip span {
    text-align: left;
  }

  .right-dock {
    grid-template-columns: 1fr;
  }

  .suite-grid,
  .audio-mixer,
  .layers-suite {
    grid-template-columns: 1fr;
  }

  .guest-entry-layout {
    grid-template-columns: 1fr;
  }

  .guest-strip {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .startup-card,
  .director-hub,
  .session-panel {
    padding: 16px;
  }

  .startup-copy {
    margin-top: 26px;
  }

  .startup-copy h1 {
    font-size: 26px;
  }

  .startup-actions,
  .session-panel,
  .status-bar,
  .guest-heading,
  .right-dock {
    grid-template-columns: 1fr;
  }

  .status-bar {
    display: grid;
  }

  .status-group {
    width: 100%;
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .guest-strip {
    grid-template-columns: 1fr;
  }

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

  .transition-strip {
    grid-template-columns: 1fr 1fr;
  }

  .suite-tabs,
  .layout-buttons,
  .switch-row,
  .asset-actions,
  .template-grid,
  .layer-actions {
    grid-template-columns: 1fr;
  }

  .suite-slider {
    grid-template-columns: 1fr;
  }

  .request-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .request-thumb {
    width: 100%;
  }

  .request-actions {
    grid-template-columns: 1fr 1fr;
  }

  .guest-entry-shell {
    padding: 14px;
  }

  .guest-entry-card {
    padding: 16px;
  }

  .mobile-first-entry {
    width: 100%;
    border-radius: 12px;
  }

  .mobile-first-entry .guest-entry-top {
    margin-bottom: 18px;
  }

  .mobile-first-entry .guest-entry-copy {
    padding-top: 0;
  }

  .guest-device-grid {
    grid-template-columns: 1fr;
  }

  .guest-audio-meter-heading,
  .studio-return-heading {
    align-items: flex-start;
  }

  .guest-audio-meter-heading strong {
    max-width: 116px;
  }

  .return-toggle {
    flex: 0 0 auto;
  }

  .guest-entry-copy h1 {
    font-size: 28px;
  }

  .lower-third {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 48px 1fr;
  }
}
