.web-chat-bubble,
.web-chat-bubble *:not(button):not(img) {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

.web-chat-capture,
.web-chat-paste-preview {
  cursor: zoom-in;
  -webkit-touch-callout: none;
}

.web-chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  flex-direction: column;
  background: rgba(5, 10, 20, .96);
  color: #fff;
  overscroll-behavior: contain;
  touch-action: none;
}

.web-chat-lightbox.is-open { display: flex; }
.web-chat-lightbox-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.web-chat-lightbox-image {
  max-width: 96vw;
  max-height: calc(100vh - 72px);
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.web-chat-lightbox-toolbar {
  min-height: 58px;
  padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, .92);
}
.web-chat-lightbox-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 13px/1.3 system-ui, sans-serif;
}
.web-chat-lightbox-toolbar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: 700 20px/1 system-ui, sans-serif;
}
.web-chat-lightbox-scale {
  width: 54px;
  text-align: center;
  font: 12px/1 system-ui, sans-serif;
}

@media (max-width: 640px) {
  .web-chat-bubble { font-size: 14px; }
}
