/* «Está escribiendo…» debajo de los mensajes del chat. Usa las variables del
   tema, así que funciona igual en claro, oscuro y glass. */

.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 4px 19px;
  background: var(--surface-2, transparent);
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.chat-typing[hidden] {
  display: none;
}

.chat-typing-dots {
  display: inline-flex;
  gap: 3px;
}

.chat-typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: chat-typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing-dots i:nth-child(2) {
  animation-delay: .15s;
}

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

@keyframes chat-typing-bounce {
  0%, 60%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-typing-dots i {
    animation: none;
    opacity: .7;
  }
}
