/* Components the assistant renders inside a conversation.
   Both reuse a card that was written for a side rail or a centred welcome
   panel; these are the only rules needed to seat them in a message. */

/* Follow-up suggestions in a Dashboard Studio reply; left-aligned there,
   unlike the centred set on the welcome panel. */
.builder-msg--ai .builder-chips { justify-content: flex-start; }

/* ══ What the Ask (design 024, ask.css) still draws from the analyst page it
   replaced: the insight list's rail styling (now in its drawer), the chart's
   and the steps' notes, and the proposed action's labels. ═════════════════ */
.side-section { padding: 18px 16px; }
.side-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.side-label::after { background: var(--border); }
.rail-empty { font-size: var(--type-secondary, 13.5px); color: var(--muted); line-height: 1.55; }
.empty-state { max-width: 460px; gap: 14px; }
.empty-state h2 { font-size: 26px; letter-spacing: -0.02em; }
.empty-state p { font-size: var(--type-reading, 15.5px); line-height: 1.6; }
/* 022: what the drawing does not show, in code's words — the tile's own notes
   ("Top 10", a map's coverage) and a measure left off the scale; and the
   sentence an answer whose every value is 0 is shown as, not a flat chart
   (019h §4). */
.chart-notes {
  margin: 8px 0 0; font-family: var(--sans); color: var(--muted);
  font-size: max(12px, var(--type-floor, 0px)); line-height: 1.5;
}
.chart-zero {
  margin: 0; padding: 28px 8px; text-align: center;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
/* 022: how a step's rows were made — "Built as a query spec", the conditions a
   name gave, "Written as SQL: …" — code's lines, above its result line. */
.step-notes {
  margin: 0 0 6px; padding: 0 0 0 16px; color: var(--muted);
  font-family: var(--sans); font-size: max(12px, var(--type-floor, 0px)); line-height: 1.5;
}

.insight-card {
  background: var(--ai-bg, var(--surface));
  border: 1px solid var(--ai-border, var(--border));
  border-radius: var(--petal-sm, 18px 4px 18px 4px);
  padding: 14px 16px; margin-bottom: 10px;
}
[dir="rtl"] .insight-card { border-radius: 4px 18px 4px 18px; }
.insight-card::before { display: none; }
.insight-text { font-size: 14px; line-height: 1.55; }
.action-type {
  font-size: var(--type-meta, 12.5px); color: var(--ai-ink, var(--accent)); background: transparent;
  border: 0; padding: 0; margin-bottom: 6px; font-weight: 600;
}
.action-type::first-letter { text-transform: uppercase; }
.action-when { font-family: var(--sans); font-size: 12px; }
.btn-approve { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.btn-approve:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn-reject { background: var(--surface); border-color: var(--bhi); color: var(--text); }
.action-status { font-family: var(--sans); font-size: var(--type-meta, 12.5px); font-weight: 600; }
.kept-card { border-radius: var(--r-lg); }
.kept-title { font-size: 14px; }
.kept-meta { font-family: var(--sans); font-size: var(--type-meta, 12.5px); }
.kept-card { border-left: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; }
