.conversation-hub {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482700;
}

.conversation-hub__toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.3);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.conversation-hub__toggle:active { cursor: grabbing; }

.conversation-hub__toggle i {
  font-size: 1.45rem;
}

.conversation-hub::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 260px;
  height: 18px;
  pointer-events: none;
}

.conversation-hub:hover::before,
.conversation-hub.is-open::before {
  pointer-events: auto;
}

.conversation-hub__menu {
  position: absolute;
  right: 0;
  bottom: 60px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .conversation-hub:hover .conversation-hub__menu,
  .conversation-hub__menu:focus-within {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

.conversation-hub.is-open .conversation-hub__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.conversation-hub__option {
  position: relative;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.conversation-hub__option:hover,
.conversation-hub__option:focus-visible {
  border-color: #1d4ed8;
  outline: none;
}

.conversation-hub__option-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.conversation-hub__option-icon--assistant {
  background: #4338ca;
}

.conversation-hub__option-icon--chat {
  background: #0f766e;
}

.conversation-hub__option strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.conversation-hub__option small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
  margin-top: 2px;
}

.conversation-hub__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
}

.floating-chat,
.assistant-bot {
  bottom: 18px;
}

.floating-chat__toggle,
.assistant-bot__toggle {
  display: none;
}

.floating-chat__panel,
.assistant-bot__panel {
  bottom: 72px;
}

@media (max-width: 767.98px) {
  .conversation-hub {
    right: 12px;
    bottom: 12px;
  }

  .conversation-hub__menu {
    min-width: min(260px, calc(100vw - 24px));
  }

  .floating-chat,
  .assistant-bot {
    right: 12px;
    bottom: 12px;
  }
}
