.orb > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 34%;
}

.conversation {
  min-height: 300px;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 32px rgba(35, 91, 148, .08);
}

.conversation-scroll {
  height: 100%;
  min-height: 0;
  padding: 16px 13px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  touch-action: pan-y;
}

.conversation-placeholder {
  margin: 28px 0;
  color: #9aabba;
  font-size: 11px;
  text-align: center;
}

.message {
  width: fit-content;
  max-width: 82%;
  margin: 0 0 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message small {
  margin: 0 7px 4px;
  color: #8195a8;
  font-size: 9px;
}

.message span {
  padding: 9px 12px;
  border-radius: 5px 14px 14px;
  background: #eef5fb;
  color: #315674;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.message.human {
  margin-left: auto;
  align-items: flex-end;
}

.message.human span {
  border-radius: 14px 5px 14px 14px;
  background: linear-gradient(135deg, var(--blue), #075fc7);
  color: #fff;
}

.message.streaming span {
  box-shadow: 0 0 0 2px rgba(22, 119, 232, .12);
}

@media (max-width: 520px) {
  .chat-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .chat-header,
  .hero,
  .controls,
  .privacy {
    flex: 0 0 auto;
  }

  .conversation {
    min-height: 0;
    flex: 1 1 auto;
  }

  .message {
    max-width: 88%;
  }

  .controls {
    position: static;
    bottom: auto;
    background: transparent;
    padding-top: 12px;
  }
}
