.assistant-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  display: grid;
  gap: 1px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy, #12345b), #1d6fb8);
  color: #fff;
  box-shadow: 0 18px 45px rgba(18, 52, 91, .32);
  min-height: 54px;
  padding: 8px 18px;
  font-weight: 950;
  cursor: pointer;
}

.assistant-launcher small {
  font-size: 11px;
  opacity: .82;
}

.assistant-chat {
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 118px));
  z-index: 12001;
  background: var(--surface, #fff);
  color: var(--text, #172033);
  border: 1px solid var(--line, #dbe5f0);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  display: none;
  overflow: hidden;
}

.assistant-chat.open {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.assistant-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line, #dbe5f0);
  background: var(--surface-soft, var(--soft, #edf4fb));
}

.assistant-head strong {
  display: block;
}

.assistant-head small,
.assistant-note {
  color: var(--muted, #66748a);
}

.assistant-close {
  border: 0;
  background: transparent;
  color: var(--muted, #66748a);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.assistant-messages {
  padding: 12px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}

.assistant-msg {
  border-radius: 14px;
  padding: 10px 12px;
  white-space: pre-wrap;
  font-size: 14px;
}

.assistant-msg.bot {
  background: var(--surface-soft, var(--soft, #edf4fb));
  color: var(--text, #172033);
}

.assistant-msg.user {
  background: var(--navy, #12345b);
  color: #fff;
  justify-self: end;
  max-width: 88%;
}

.assistant-suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 12px 10px;
}

.assistant-suggestions button {
  border: 1px solid var(--line, #dbe5f0);
  background: var(--surface, #fff);
  color: var(--text, #172033);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line, #dbe5f0);
}

.assistant-form textarea {
  min-height: 44px;
  max-height: 110px;
  resize: none;
  border: 1px solid var(--line, #dbe5f0);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #172033);
  padding: 10px;
  font: inherit;
}

.assistant-form button {
  border: 0;
  border-radius: 12px;
  background: var(--navy, #12345b);
  color: #fff;
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}

.assistant-note {
  padding: 0 12px 10px;
  font-size: 12px;
}

@media (max-width: 620px) {
  .assistant-launcher {
    right: 12px;
    bottom: 12px;
    min-height: 50px;
    padding: 7px 15px;
  }

  .assistant-chat {
    right: 8px;
    left: 8px;
    bottom: 76px;
    width: auto;
    max-height: calc(100vh - 94px);
    border-radius: 16px;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

  .assistant-form button {
    min-height: 42px;
  }

  .assistant-msg {
    font-size: 13px;
  }
}
