:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1115;
  color: #f4f5f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(21, 122, 115, 0.22), transparent 36%),
    linear-gradient(315deg, rgba(149, 63, 37, 0.18), transparent 34%),
    #0f1115;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel,
.workspace {
  width: min(1120px, 100%);
}

.panel {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(20, 23, 29, 0.84);
}

.workspace {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 22px;
}

.topbar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.controls {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 0 14px;
  color: #d8dbdf;
  font-size: 14px;
  font-weight: 700;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #3fb7a8;
}

.field {
  display: inline-grid;
  gap: 5px;
  color: #d8dbdf;
  font-size: 12px;
  font-weight: 700;
}

.field select {
  min-width: min(340px, 76vw);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: #151922;
  color: #f4f5f6;
  font: inherit;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8ad5ca;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin-top: 16px;
  color: #c8cbd0;
  font-size: 18px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f5f6;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button:hover {
  background: rgba(255, 255, 255, 0.13);
}

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

.primary {
  border-color: #3fb7a8;
  background: #218579;
}

.primary:hover {
  background: #27998c;
}

.danger {
  border-color: #a3443b;
  background: #642a27;
}

.stage {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: #050608;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 68vh;
  object-fit: contain;
  background: #050608;
}

.remote-media {
  width: 100%;
  height: 100%;
}

.remote-media audio {
  display: none;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  color: #c8cbd0;
  text-align: center;
}

.empty-state.hidden {
  display: none;
}

.status {
  color: #c8cbd0;
  font-size: 14px;
}

@media (max-width: 720px) {
  .panel,
  .workspace {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage,
  video {
    min-height: 52vh;
  }
}
