/* Phone chat section: a generic phone chat, not any messaging app's branding. */
.chat-section { padding: 8px clamp(16px, 3vw, 40px) 48px; border-top: 1px solid var(--line); background: #E8EAE5; }
.chat-h { font-size: 17px; font-weight: 800; padding: 22px 0 14px; }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.phone { background: #F7F7F4; border: 10px solid var(--band); border-radius: 30px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 600px; max-width: 380px; width: 100%; }
.phone-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--band); color: var(--on-band); }
.phone-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--band-2); font-weight: 800; font-size: 13px; }
.phone-head strong { display: block; font-size: 14.5px; }
.phone-sub { font-size: 12px; color: var(--muted-band); }
.chat-log { overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 8px 10px 5px; border-radius: 12px; font-size: 14px; line-height: 1.4; display: grid; gap: 2px; }
.bubble p { margin: 0; }
.bubble.out { align-self: flex-end; background: #DCEFD0; border-bottom-right-radius: 4px; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.img { padding: 4px 4px 5px; }
.bubble.img img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 8px; }
.stamp { font-size: 10.5px; color: var(--muted); justify-self: end; }
.voice-row { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.voice-play { border: 0; background: var(--band); color: var(--on-band); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; }
.voice-bar { flex: 1; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #B9BEC4 0 3px, transparent 3px 6px); }
.voice-dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.voice-sent { font-weight: 600; }
.reply-buttons { display: flex; gap: 6px; }
.reply-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13.5px; }
.reply-btn.primary { background: var(--band); color: var(--on-band); border-color: var(--band); }
.reply-btn:disabled { opacity: .5; cursor: default; }
.typing .dots { color: var(--muted); font-style: italic; font-size: 13px; }
.chat-form { display: flex; gap: 6px; padding: 8px; background: #fff; border-top: 1px solid var(--line); align-items: center; }
.chat-mic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--band); color: var(--on-band); display: grid; place-items: center; flex: none; touch-action: none; }
.chat-mic.is-rec { background: var(--red); }
.chat-mic:disabled { background: #C9CDD2; color: #6B737B; cursor: not-allowed; }
.chat-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 9px 12px; font-size: 14.5px; }
.chat-send { border: 0; background: none; font-weight: 800; color: var(--text); padding: 6px 8px; }
.chat-side { display: grid; gap: 12px; max-width: 52ch; padding-top: 6px; font-size: 15.5px; }
.chat-side .muted { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .chat-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .phone { height: 540px; margin: 0 auto; }
  .chat-side { order: -1; }
}
