/* Chat */
.chat-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 12px;
  height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.chat-msg {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.sent {
  background: var(--brand-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-msg.recv {
  background: var(--bg-secondary);
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
}

.chat-msg .meta {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 3px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  font-size: 13px;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  outline: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.3s ease;
}

.chat-input-row input:focus {
  border-color: var(--brand-primary);
}
