/* Conversation Page */
.conversation-container {
  padding: 12px;
}

.conv-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.conv-chat-box {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  min-height: 380px;
  max-height: 520px;
  overflow: hidden;
}

.conv-chat-list {
  height: 100%;
  max-height: 520px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conv-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.conv-msg.user {
  justify-content: flex-end;
}

.conv-msg.assistant {
  justify-content: flex-start;
}

.conv-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}

.conv-msg.user .conv-bubble {
  background: rgba(0,0,0,0.06);
}

.conv-msg.assistant .conv-bubble {
  background: rgba(0,0,0,0.03);
}

.conv-actions {
  display: flex;
  gap: 6px;
}

.conv-action-btn {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 6px 8px;
  background: #fff;
  cursor: pointer;
}

.conv-status {
  min-height: 18px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  padding: 0 2px;
}

.conv-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.conv-input {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  min-height: 44px;
  box-sizing: border-box;
}

.conv-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.conv-btn {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  min-width: 56px;
}

.conv-mic {
  min-width: 46px;
}

.conv-speak-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.conv-speak-label {
  font-size: 13px;
  color: rgba(0,0,0,0.75);
}

/* Mobile & Tablet: keep controls visible (avoid floating arrow overlap) */
@media (max-width: 1024px) {
  .conv-controls {
    justify-content: flex-start;
    padding-right: 72px; /* reserve space for the bottom-right arrow button */
  }

  .conv-input {
    width: 100%;
  }
}
