.conversations-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--color-bg, #f5f6f8);
  display: flex;
  flex-direction: column;
  animation: convFadeIn .25s ease;
}
@keyframes convFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.conversations-overlay.closing { animation: convFadeOut .25s ease forwards; }
@keyframes convFadeOut {
  to { opacity: 0; transform: translateY(8px); }
}

.conversations-overlay iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border: 0;
  display: block;
}

.conv-close-btn {
  position: fixed;
  top: max(env(safe-area-inset-top, 12px), 12px);
  right: 14px;
  z-index: 1600;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 24, 39, .75);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s, transform .1s;
}
.conv-close-btn:hover { background: rgba(0, 0, 0, .85); }
.conv-close-btn:active { transform: scale(.94); }
.conv-close-btn svg { width: 18px; height: 18px; }

@media (prefers-color-scheme: dark) {
  .conversations-overlay { background: #0b0d12; }
  .conv-close-btn { background: rgba(243, 244, 246, .14); color: #f3f4f6; }
  .conv-close-btn:hover { background: rgba(243, 244, 246, .25); }
}

/* Header icon buttons — clean line style, strong contrast on white header */
.btn-tasks.btn-conversations-header,
.btn-tasks.btn-tasks-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #1f2937;
}
.btn-tasks.btn-conversations-header:hover,
.btn-tasks.btn-tasks-icon:hover {
  background: rgba(31, 41, 55, .08);
  color: #0b1220;
}
.btn-tasks.btn-conversations-header svg,
.btn-tasks.btn-tasks-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}
.btn-tasks.btn-tasks-icon .btn-tasks-badge {
  top: -2px;
  right: -2px;
  min-width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  box-sizing: content-box;
}
