body.chat-camera-open { overflow: hidden; }
.chat-camera {
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(640px, 100vw);
  max-width: 100vw;
  height: min(820px, 100dvh);
  max-height: 100dvh;
  overflow: hidden;
  margin: auto;
}
.chat-camera[open] { display: flex; flex-direction: column; }
.chat-camera::backdrop { background: rgba(0, 0, 0, .8); }
.chat-camera header, .chat-camera footer { display: flex; align-items: center; gap: 12px; padding: 16px; flex-shrink: 0; }
.chat-camera header { justify-content: space-between; padding-top: max(16px, env(safe-area-inset-top)); }
.chat-camera h2 { font-size: 18px; margin: 0; }
.chat-camera footer { justify-content: center; flex-wrap: wrap; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.chat-camera button { border: 0; border-radius: 24px; background: #333; color: #fff; padding: 12px 20px; min-height: 44px; font: inherit; cursor: pointer; }
.chat-camera button[data-camera="shoot"], .chat-camera button[data-camera="use"] { background: #07c160; color: #fff; }
.chat-camera button:disabled { opacity: .5; cursor: wait; }
.chat-camera button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.chat-camera-stage { flex: 1; min-height: 0; position: relative; background: #000; }
.chat-camera-stage video, .chat-camera-stage canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.chat-camera [hidden] { display: none !important; }
.chat-camera-status { min-height: 1.5em; margin: 12px 20px 0; text-align: center; font-size: 14px; flex-shrink: 0; }
@media (max-width: 640px) { .chat-camera { width: 100vw; height: 100dvh; border-radius: 0; } }
