/* === [PA-CHAT-CARD] === */
.pa-chat-card {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
}

/* Header with orb */
.pa-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pa-header-text {
  font-size: 0.9rem;
  color: #444;
}

/* Orb */
.pa-orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #8ec5fc);
  border: 1px solid rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Idle: subtle pulse */
.pa-orb--idle {
  animation: pa-orb-pulse 2.4s infinite;
}

/* Processing: cloud puff */
.pa-orb--processing::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(120, 120, 120, 0.3);
  animation: pa-orb-cloud 0.7s infinite;
}

/* Responding: pencil above orb */
.pa-orb--responding::after {
  content: "✏️";
  position: absolute;
  top: -12px;
  right: -2px;
  font-size: 0.8rem;
}

/* Orb animations */
@keyframes pa-orb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(142, 197, 252, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(142, 197, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 197, 252, 0); }
}

@keyframes pa-orb-cloud {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Messages area */
.pa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Message rows */
.pa-message-row {
  display: flex;
  align-items: flex-end;
}

.pa-message-row--user {
  justify-content: flex-end;
}

.pa-message-row--assistant {
  justify-content: flex-start;
}

/* Bubbles */
.pa-message-bubble {
  max-width: 75%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.pa-message-bubble--user {
  background: #d9ecff;
  border-bottom-right-radius: 2px;
}

.pa-message-bubble--assistant {
  background: #ffffff;
  border-bottom-left-radius: 2px;
}

/* Ticks */
.pa-message-ticks {
  font-size: 0.8rem;
  color: #666;
  margin-left: 4px;
}

/* Input row */
.pa-input-row {
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 6px;
}

.pa-input {
  flex: 1;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 6px 8px;
  font-size: 0.9rem;
}

.pa-send-button {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  background: #1f7ae0;
  color: #fff;
}
.pa-send-button:disabled {
  opacity: 0.6;
  cursor: default;
}
