:root {
  --viewer-log-max-height: 240px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.divider {
  height: 1px;
  background: var(--border-subtle, rgba(255, 255, 255, 0.12));
  margin: 16px 0;
}

.gap-24 {
  height: 24px;
}

.gap-12 {
  height: 12px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.3px;
}

.navbar__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-accent {
  color: var(--brand-primary);
}

.remote-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.remote-control-surface {
  position: relative;
  border-radius: 12px;
  outline: none;
  overflow: hidden;
}

.remote-control-surface:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

.remote-control-surface:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-control-surface:fullscreen .remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.remote-control-surface__fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.remote-control-surface__fullscreen:hover {
  background: rgba(0, 0, 0, 0.72);
}

.remote-control-surface__hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.viewer-id-display {
  user-select: text;
  cursor: text;
}

.form-actions {
  margin-top: 16px;
}

.session-status {
  display: grid;
  gap: 10px;
}

.session-status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.log-output {
  white-space: pre-wrap;
  max-height: var(--viewer-log-max-height);
  overflow: auto;
}

@media (max-width: 1200px) {
  .hero__grid {
    gap: 24px;
  }
}

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