.hp {
  display: none;
}

.bot-post {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.contact .chat-frame {
  margin-top: 0.4rem;
  height: auto;
  min-height: 0;
}

.chat-frame {
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--bg);
}

.chat-log {
  overflow-y: auto;
  min-height: 180px;
  max-height: 280px;
  padding: 1.2rem 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: min(36rem, 92%);
  padding: 0.85rem 1rem;
  line-height: 1.55;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.chat-bubble.is-bot {
  align-self: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fog);
}

.chat-bubble.is-user {
  align-self: flex-end;
  background: var(--lane);
  color: var(--lane-ink);
}

.chat-bubble.is-note {
  align-self: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: none;
  padding: 0.2rem;
}

.chat-dock {
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.1rem 1.1rem;
  background: var(--bg-soft);
}

.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-choices .btn,
.chat-input-row .btn {
  width: auto;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.86rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  text-align: center;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.chat-input-row input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fog);
}

.chat-input-row .btn {
  width: auto;
  min-width: 5.5rem;
}

@media (max-width: 640px) {
  .chat-log {
    max-height: 40vh;
  }

  .chat-input-row {
    grid-template-columns: 1fr;
  }

  .chat-input-row .btn {
    width: 100%;
  }
}
