/* Floating Zoom meeting dock — PiP + expanded + meeting chat */

.zoom-meeting-dock {
  position: fixed;
  z-index: 2450;
  display: flex;
  flex-direction: column;
  background: #0a0e14;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: width 0.2s ease, height 0.2s ease, bottom 0.2s ease, right 0.2s ease;
}

.zoom-meeting-dock[hidden] {
  display: none !important;
}

.zoom-meeting-dock.mode-pip {
  /* Sit to the RIGHT of Bloomberg (always furthest left). Chat with Pete owns bottom-right. */
  bottom: 18px;
  left: var(--waypoint-zoom-pip-left, 18px);
  right: auto;
  width: min(360px, calc(100vw - 36px));
  max-height: min(420px, calc(100vh - 36px));
}

.zoom-meeting-dock.mode-expanded {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-height: none;
  box-shadow: none;
  border-radius: 10px;
}

.zoom-meeting-dock.mode-expanded .zoom-dock-video-hit {
  cursor: default;
}

.zoom-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(201, 162, 39, 0.1);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  flex-shrink: 0;
}

.zoom-dock-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-soft, #c5a059);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoom-dock-head-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.zoom-dock-head-actions .btn {
  padding: 2px 8px;
  font-size: 0.62rem;
}

.zoom-dock-close-btn {
  color: #e8b4b4 !important;
  border-color: rgba(224, 112, 112, 0.35) !important;
}

.zoom-dock-close-btn:hover {
  background: rgba(180, 60, 60, 0.25) !important;
}

.zoom-dock-audio-badge {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ec5ff;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(120, 180, 255, 0.35);
  background: rgba(40, 80, 140, 0.25);
  white-space: nowrap;
}

.zoom-dock-audio-badge[hidden] {
  display: none !important;
}

/* Audio-only: keep iframe alive (off-layout) so Zoom audio continues */
.zoom-meeting-dock.mode-audio-only {
  width: min(280px, calc(100vw - 36px));
  max-height: none;
}

.zoom-meeting-dock.mode-audio-only .zoom-dock-body {
  position: absolute;
  width: 2px;
  height: 2px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.zoom-meeting-dock.mode-audio-only .zoom-dock-head {
  border-bottom: none;
}

.zoom-meeting-dock.mode-audio-only #zoomDockChatToggle {
  display: none;
}

.zoom-dock-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.zoom-dock-video-hit {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.zoom-meeting-dock.mode-pip .zoom-dock-video-hit::after {
  content: "Click to open Meetings";
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 8px;
  font-size: 0.58rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.zoom-meeting-dock.mode-pip .zoom-dock-video-hit:hover::after {
  opacity: 1;
}

.zoom-call-embed-wrap {
  margin: 0;
  border: none;
  border-radius: 0;
  background: #000;
}

.zoom-meeting-dock.mode-pip .zoom-call-embed-wrap {
  height: 200px;
}

.zoom-meeting-dock.mode-pip .zoom-call-embed-frame {
  min-height: 200px;
  height: 200px;
}

.zoom-meeting-dock.mode-expanded .zoom-call-embed-frame {
  min-height: 420px;
  height: min(52vh, 520px);
}

.zoom-call-embed-anchor {
  min-height: 0;
}

.zoom-call-embed-anchor .zoom-meeting-dock.mode-expanded {
  margin: 12px 0;
}

.zoom-dock-chat {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
  flex: 0 0 auto;
}

.zoom-meeting-dock.mode-pip .zoom-dock-chat {
  max-height: 180px;
}

.zoom-meeting-dock.mode-expanded .zoom-dock-chat {
  max-height: 220px;
}

.zoom-dock-chat.collapsed {
  display: none;
}

.zoom-dock-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8a7a62);
  background: rgba(255, 255, 255, 0.02);
}

.zoom-dock-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  max-height: 140px;
}

.zoom-meeting-dock.mode-expanded .zoom-dock-chat-messages {
  max-height: 160px;
}

.zoom-dock-chat-msg {
  font-size: 0.74rem;
  line-height: 1.35;
}

.zoom-dock-chat-msg strong {
  color: var(--gold-soft, #c5a059);
  font-size: 0.68rem;
  display: block;
  margin-bottom: 2px;
}

.zoom-dock-chat-msg img {
  display: block;
  max-width: 100%;
  max-height: 120px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.zoom-dock-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.zoom-dock-chat-compose textarea {
  width: 100%;
  min-height: 44px;
  max-height: 80px;
  resize: vertical;
  font-size: 0.74rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.zoom-dock-chat-compose-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.zoom-dock-chat-preview {
  max-height: 64px;
  overflow: hidden;
  border-radius: 6px;
}

.zoom-dock-chat-preview img {
  max-height: 64px;
  border-radius: 6px;
}

.zoom-dock-chat-hint {
  margin: 0;
  font-size: 0.62rem;
}
