:root {
  color-scheme: light;
}

* {
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.user-bubble {
  width: fit-content;
  min-height: 0;
  padding-block: 0.875rem;
}

.user-bubble [data-message-text] {
  margin: 0;
  line-height: 1.5rem;
}

.suggestion {
  min-height: 2.5rem;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.suggestion:hover {
  border-color: #5eead4;
  background: #f0fdfa;
  color: #0f766e;
}

.suggestion:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

.suggestion:active {
  transform: scale(0.98);
}

@keyframes message-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-enter {
  animation: message-enter 220ms ease-out both;
}

.typing-dots {
  display: inline-flex;
  gap: 0.22rem;
}

.typing-dots i {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 9999px;
  background: #14b8a6;
  animation: typing-dot 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes typing-dot {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
