.human-response {
  width: min(92%, 620px) !important;
  min-width: 0;
  transition: border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.human-response[hidden] {
  display: none !important;
}

.human-response .message-header {
  align-items: center;
}

.progressive-caption,
.normal-response {
  min-height: 1.45em;
  overflow-wrap: anywhere;
  color: #dbeafe;
  line-height: 1.58;
}

.caption-word {
  color: #dbeafe;
  transition: color 180ms ease, text-shadow 180ms ease, background 180ms ease;
}

.caption-word.current {
  padding: 1px 3px;
  border-radius: 5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, .11);
  text-shadow: 0 0 12px rgba(56, 189, 248, .52);
}

.human-response.speaking {
  border-color: rgba(56, 189, 248, .32);
  box-shadow: 0 12px 34px rgba(14, 165, 233, .1);
}

.sound-wave {
  display: inline-flex;
  height: 18px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: .26;
  transition: opacity 240ms ease, transform 240ms ease;
}

.sound-wave i {
  width: 2px;
  height: 4px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, .34);
  transform-origin: center;
}

.caption-sound-wave {
  margin-right: auto;
  margin-left: 7px;
}

.human-response.speaking .caption-sound-wave,
.os-window[data-atlas-state="speaking"] .presence-sound-wave {
  opacity: 1;
}

.human-response.speaking .sound-wave i,
.os-window[data-atlas-state="speaking"] .presence-sound-wave i {
  animation: jacob-sound-wave 760ms ease-in-out infinite alternate;
}

.sound-wave i:nth-child(2),
.sound-wave i:nth-child(6) { animation-delay: -120ms !important; }
.sound-wave i:nth-child(3),
.sound-wave i:nth-child(5) { animation-delay: -240ms !important; }
.sound-wave i:nth-child(4) { animation-delay: -360ms !important; }

.human-presence > .presence-sound-wave {
  position: absolute;
  z-index: 2;
  right: auto;
  bottom: 25px;
  left: 50%;
  width: auto;
  height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(56, 189, 248, .12);
  border-radius: 999px;
  background: rgba(2, 6, 23, .42);
  text-overflow: clip;
  white-space: normal;
  transform: translateX(-50%) scale(.94);
}

.os-window[data-atlas-state="speaking"] .presence-sound-wave {
  transform: translateX(-50%) scale(1);
}

@keyframes jacob-sound-wave {
  from { height: 4px; opacity: .48; }
  to { height: 16px; opacity: 1; }
}

@media (max-width: 720px) {
  .human-response {
    width: 94% !important;
    max-width: 94% !important;
  }

  .progressive-caption,
  .normal-response {
    font-size: .86rem;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caption-word,
  .human-response,
  .sound-wave,
  .sound-wave i {
    animation: none !important;
    transition: none !important;
  }

  .human-response.speaking .sound-wave i,
  .os-window[data-atlas-state="speaking"] .presence-sound-wave i {
    height: 9px;
    opacity: .85;
  }
}
