/* ── Chat header ── */
.chat-header {
  padding: 16px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-header-title {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--t1);
}

/* ── Chat area ── */
.chat-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-area::-webkit-scrollbar { display: none; }

.date-stamp { text-align: center; font-size: 11px; color: var(--t4); padding: 4px 0; }

/* ── Rocky message ── */
.rocky-msg { display: flex; align-items: flex-start; gap: 8px; }
.rmsg-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rmsg-av svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rocky-bubble {
  background: var(--surface);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--t1);
  line-height: 1.5;
  border: 1px solid var(--border);
  max-width: 85%;
}

/* ── User message ── */
.user-msg { display: flex; justify-content: flex-end; }
.user-bubble {
  background: var(--sand);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--t1);
  line-height: 1.5;
  max-width: 85%;
}
.bubble-time { font-size: 10px; color: var(--t4); text-align: right; margin-top: 4px; }

/* ── Typing indicator ── */
.typing { display: flex; align-items: flex-start; gap: 8px; }
.typing-bubble {
  background: var(--surface);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t4);
  animation: blink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ── Quick chips ── */
.quick-shelf {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.quick-shelf::-webkit-scrollbar { display: none; }
.quick-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--t2);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  touch-action: manipulation;
}

/* ── Chat input bar ── */
.chat-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px max(20px, env(safe-area-inset-bottom));
  flex-shrink: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--t1);
  outline: none;
}
.chat-input:focus { border-color: var(--terra); }
.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terra);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
}
.send-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
