.lbn-chat-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
}

.lbn-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px 12px 12px;
  cursor: pointer;
  background: rgba(3, 5, 8, 0.96);
  color: #f5f7fa;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.lbn-chat-launcher:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 16, 0.98);
}

.lbn-chat-launcher__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #05070a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.lbn-chat-launcher__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lbn-chat-launcher__text {
  display: grid;
  gap: 2px;
  text-align: left;
}

.lbn-chat-launcher__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.lbn-chat-launcher__label {
  font-size: 0.98rem;
  font-weight: 800;
}

.lbn-chat-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(420px, calc(100vw - 32px));
  background: rgba(7, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.lbn-chat-panel[hidden] {
  display: none !important;
}

.lbn-chat-card {
  padding: 20px;
  color: #eff3f8;
}

.lbn-chat-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lbn-chat-card__badge {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4b400;
}

.lbn-chat-card__title {
  margin: 0;
  font-size: 1.3rem;
}

.lbn-chat-card__subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  font-size: 0.95rem;
}

.lbn-chat-card__close {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f4f8;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.lbn-chat-card__scope {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lbn-chat-card__scope strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.lbn-chat-card__scope ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.lbn-chat-gate {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(244, 180, 0, 0.08);
  border: 1px solid rgba(244, 180, 0, 0.18);
}

.lbn-chat-gate__status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.lbn-chat-gate__status--ok {
  color: #8ef0b3;
  font-weight: 700;
}

.lbn-chat-form {
  display: grid;
  gap: 12px;
}

.lbn-chat-form[hidden] {
  display: none !important;
}

.lbn-chat-form input,
.lbn-chat-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #eff3f8;
  padding: 13px 14px;
  font: inherit;
}

.lbn-chat-form textarea {
  min-height: 112px;
  resize: vertical;
}

.lbn-chat-form button {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #1b1300;
  background: linear-gradient(135deg, #f4b400, #ffe089);
}

.lbn-chat-form button:disabled {
  cursor: wait;
  opacity: 0.8;
}

.lbn-chat-thread {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.lbn-chat-thread:empty {
  display: none;
}

.lbn-chat-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.58;
  font-size: 0.94rem;
  white-space: pre-wrap;
}

.lbn-chat-bubble--user {
  background: rgba(244, 180, 0, 0.14);
  color: #fef0bf;
  justify-self: end;
}

.lbn-chat-bubble--assistant {
  background: rgba(255, 255, 255, 0.05);
  color: #eff3f8;
}

.lbn-chat-feedback {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lbn-chat-feedback[hidden] {
  display: none !important;
}

.lbn-chat-feedback--error {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.18);
  color: #ffc6c6;
}

.lbn-chat-feedback--note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .lbn-chat-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .lbn-chat-launcher {
    width: 100%;
    justify-content: flex-start;
  }

  .lbn-chat-panel {
    left: 0;
    right: 0;
    width: 100%;
    bottom: 82px;
  }
}
