#camera-dialog {
  width: min(31rem, calc(100vw - 1.7rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(16px, 4vw, 26px);
  box-sizing: border-box;
  border: 1px solid #c9dbd4;
  border-radius: 20px;
  background: #fff;
  color: #183e3d;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#camera-dialog::backdrop {background: rgba(48, 66, 58, .24);}
.camera-heading, .camera-actions {display: flex; align-items: center; gap: 9px;}
.camera-heading {justify-content: space-between;}
.camera-heading h2 {font-size: 1.45rem; margin: 0;}
.camera-heading button {min-height: 44px; padding-inline: 8px;}
#camera-privacy, #camera-status {font-size: .93rem; line-height: 1.55; margin: 8px 0 14px;}
#camera-privacy {color: #486864;}
.camera-stage {
  height: clamp(150px, 35vh, 340px);
  height: clamp(150px, 35dvh, 340px);
  display: grid; place-items: center; overflow: hidden;
  background: #edf2ef; border: 1px solid #d4dfd8; border-radius: 12px;
}
.camera-stage svg {width: 45px; height: 45px; fill: none; stroke: #678579; stroke-width: 2.4;}
.camera-stage img, .camera-stage video {width: 100%; height: 100%; min-height: 0; object-fit: contain;}
.camera-actions {flex-wrap: wrap;}
.camera-actions .button {min-width: 0; min-height: 44px; padding: 9px 15px; font-size: .94rem;}
#camera-dialog [hidden] {display: none;}
#camera-dialog :focus-visible {outline: 2px solid #185d55; outline-offset: 2px;}
@media (max-width: 500px) {
  #chat-panel .chat-topline {flex-wrap: wrap; gap: 3px 8px;}
  #chat-panel .chat-tools {margin-left: auto; flex-wrap: wrap; justify-content: flex-end;}
  #chat-panel .chat-tools button {padding-inline: 6px;}
}
