.agent-chat {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.15));
  border-radius: 12px;
  background: var(--surface-1, #0f172a);
}

.agent-chat-head {
  margin: 0;
}

.agent-chat-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.agent-chat-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.agent-chat-suggestions-label {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #94a3b8);
}

.agent-chat-starters,
.agent-chat-followups {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.agent-chat-followups.hidden {
  display: none !important;
}

.agent-chat-starters.hidden {
  display: none !important;
}

.agent-chat-starters-chips,
.agent-chat-followups-chips,
.agent-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.agent-chat-followups {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-soft, rgba(148, 163, 184, 0.15));
}

.agent-chat-chip {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.2));
  background: rgba(0, 210, 255, 0.06);
  color: var(--text-primary, #e2e8f0);
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}

.agent-chat-chip:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
}

.agent-chat-messages {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.agent-chat-msg {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.agent-chat-msg--user {
  align-self: flex-end;
  max-width: 92%;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.agent-chat-msg--assistant {
  align-self: flex-start;
  max-width: 98%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.12));
}

html[data-theme="light"] .agent-chat-msg--assistant {
  background: rgba(2, 6, 23, 0.04);
}

.agent-chat-msg-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.2rem;
}

.agent-chat-msg-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.agent-chat-input {
  flex: 1;
  min-height: 2.5rem;
  resize: vertical;
}

.agent-chat-gate {
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-primary, #e2e8f0);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.agent-chat-gate.hidden {
  display: none;
}

.agent-chat-send {
  flex-shrink: 0;
}

.agent-chat-status {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

.agent-chat-status--error {
  color: var(--color-danger, #f87171);
}

.agent-chat-status--muted {
  opacity: 0.85;
}

.simple-ask-moto-sheet .agent-chat {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.ops-section .agent-chat-messages {
  max-height: 360px;
}

.admin-agent-section {
  margin-top: 1rem;
}
