.agent-chat {
  max-width: 78vw;
  min-height: 5.4rem;
  margin-top: 1.25rem;
  text-align: left;
}

.agent-chat__log {
  opacity: 1;
  transition: opacity 0.38s ease;
}

.agent-chat__log.is-fading {
  opacity: 0;
}

.agent-chat__log.is-instant {
  transition: none;
}

.agent-chat__line {
  margin: 0;
  color: var(--ink-soft);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.agent-chat__line + .agent-chat__line {
  margin-top: 0.35rem;
}

.agent-chat__line + .agent-chat__line.is-gap {
  margin-top: 1rem;
}

.agent-chat__line.is-active {
  color: var(--ink);
}

.agent-chat__caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.1em;
  animation: agent-caret-blink 1.05s steps(1) infinite;
}

.agent-chat__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes agent-caret-blink {
  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-chat__log {
    transition: none;
  }

  .agent-chat__caret {
    animation: none;
  }
}
