.ai-chat-body {
  min-height: 100vh;
  background: var(--bs-body-bg);
}

.ai-chat__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bs-primary);
}

.ai-chat__log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 45vh;
}

.ai-chat__message {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: var(--bs-border-radius-lg);
  position: relative;
  animation: slideFadeIn 0.2s ease-out;
  line-height: 1.45;
  word-break: break-word;
}

.ai-chat__message--user {
  align-self: flex-end;
  border-bottom-right-radius: var(--bs-border-radius-sm);
}

.ai-chat__message--system {
  align-self: flex-start;
  border-bottom-left-radius: var(--bs-border-radius-sm);
}

.ai-chat__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color);
  margin-bottom: 8px;
}

.ai-chat__message p {
  margin: 0;
  white-space: pre-wrap;
}

.ai-chat__message--pending {
  border-style: dashed;
  opacity: 0.7;
}

.ai-chat__textarea {
  resize: vertical;
  min-height: 56px;
}

.ai-chat__send-spinner {
  display: none !important;
}

.ai-chat__send.is-loading .ai-chat__send-spinner {
  display: inline-block !important;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ai-chat__message {
    max-width: 100%;
  }
}
