.video-call-panel {
  position: fixed;
  right: 15px;
  bottom: 64px;
  z-index: 99997;
  width: min(760px, calc(100vw - 30px));
  max-height: calc(100vh - 90px);
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid rgba(205, 164, 94, 0.7);
  border-radius: 12px;
  background: #171612;
  color: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.video-call-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.video-call-header {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #201e18;
  border-bottom: 1px solid rgba(205, 164, 94, 0.25);
}

.video-call-header > div {
  display: flex;
  align-items: center;
}

.video-call-header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.video-call-header button:hover,
.video-call-header button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.video-call-stage {
  min-height: 300px;
  height: min(62vh, 560px);
  background: #171612;
}

.video-call-stage[hidden],
.video-call-link[hidden] {
  display: none;
}

#video-call-embed,
#video-call-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-call-join-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 14px;
  background: #1d1b16;
}

.video-call-join-form label {
  margin-top: 3px;
  color: #e8dfce;
  font-size: 13px;
}

.video-call-join-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(205, 164, 94, 0.42);
  border-radius: 6px;
  background: #292720;
  color: #fff;
}

.video-call-join-form input:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}

.video-call-actions,
.video-call-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.video-call-host-auth[hidden] {
  display: none;
}

.video-call-host-auth {
  display: inline-block;
  justify-self: start;
  margin-top: 5px;
  color: var(--accent-color);
  font-size: 13px;
  text-decoration: underline;
}

.video-call-actions button,
.video-call-link button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent-color);
  color: #1a1814;
  font-weight: 600;
}

.video-call-actions button:hover,
.video-call-link button:hover,
.video-call-actions button:focus-visible,
.video-call-link button:focus-visible {
  filter: brightness(1.12);
}

.video-call-active-actions {
  display: none;
}

.video-call-join-form.in-call .video-call-primary-actions {
  display: none;
}

.video-call-join-form.in-call .video-call-active-actions {
  display: flex;
}

.video-call-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.video-call-link input {
  flex: 1 1 250px;
  min-width: 0;
}

.video-call-privacy {
  margin: 3px 0 0;
  color: #c9c0af;
  font-size: 12px;
}

.video-call-message {
  min-height: 38px;
  margin: 0;
  padding: 10px 12px 6px;
  text-align: center;
  color: #d8d0bf;
  font-size: 13px;
}

.video-call-role {
  margin: 0;
  padding: 8px 12px 0;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
