.baab-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: #fff;
  background: #0b2f57;
  box-shadow: 0 14px 34px rgba(11, 47, 87, 0.3);
  font: 700 15px/1.2 Lato, sans-serif;
  cursor: pointer;
}

.baab-launcher__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #67d391;
  box-shadow: 0 0 0 4px rgba(103, 211, 145, 0.18);
}

.baab-panel {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 9999;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 110px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(11, 47, 87, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(6, 31, 58, 0.25);
  font-family: Lato, sans-serif;
}

.baab-panel[data-open="true"] { display: grid; }

.baab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  color: #fff;
  background: #0b2f57;
}

.baab-header strong { display: block; font-size: 18px; }
.baab-header small { display: block; margin-top: 2px; opacity: 0.78; }
.baab-close { border: 0; color: #fff; background: transparent; font-size: 25px; cursor: pointer; }

.baab-messages {
  overflow-y: auto;
  padding: 16px;
  background: #f5f8fb;
}

.baab-message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.48;
}

.baab-message--assistant { border-bottom-left-radius: 4px; color: #18354f; background: #fff; }
.baab-message--user { margin-left: auto; border-bottom-right-radius: 4px; color: #fff; background: #0b2f57; }
.baab-message--error { color: #8b1d1d; background: #ffe9e9; }

.baab-quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.baab-quick-actions button {
  border: 1px solid #b8c9d9;
  border-radius: 999px;
  padding: 8px 11px;
  color: #0b2f57;
  background: #fff;
  font: 700 12px/1 Lato, sans-serif;
  cursor: pointer;
}
.baab-follow-ups { margin-top: -2px; }
.baab-follow-ups::before { content: "Следно прашање / Next question"; flex-basis: 100%; color: #5b7185; font-size: 11px; font-weight: 700; }
.baab-follow-ups button { text-align: left; line-height: 1.25; }

.baab-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #dfe7ee; background: #fff; }
.baab-input {
  min-width: 0;
  flex: 1;
  border: 1px solid #b8c9d9;
  border-radius: 12px;
  padding: 11px 12px;
  color: #142e45;
  font: 400 14px/1.35 Lato, sans-serif;
}
.baab-input:focus { outline: 2px solid rgba(11, 47, 87, 0.18); border-color: #0b2f57; }
.baab-send { border: 0; border-radius: 12px; padding: 0 15px; color: #fff; background: #d5522a; font-weight: 800; cursor: pointer; }
.baab-send:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 520px) {
  .baab-launcher { right: 14px; bottom: 14px; }
  .baab-panel { right: 14px; bottom: 72px; height: calc(100vh - 92px); }
}
