.card {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: var(--page-section-gap-lg, 26px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1)),
    rgba(28, 19, 30, 0.18);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(46, 22, 38, 0.18);
  backdrop-filter: blur(18px);
  animation: messageFloatIn 0.5s ease 0.08s both;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 22px 48px rgba(46, 22, 38, 0.24);
  transform: translateY(-1px);
}

.card:active {
  transform: translateY(1px) scale(0.995);
}

.card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.avatarWrap {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffb36d, #ff5d95);
  box-shadow: 0 10px 24px rgba(255, 95, 128, 0.24);
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(11px, 2.593vw, 13px);
  font-weight: 820;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.message {
  color: #ffffff;
  font-size: clamp(14px, 3.333vw, 17px);
  font-weight: 760;
  line-height: 1.35;
}

.messageLoading {
  display: block;
  width: min(220px, 76%);
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.16)
    );
  background-size: 180% 100%;
  animation: messageLoading 1.1s ease-in-out infinite;
}

@keyframes messageFloatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageLoading {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}
