/* ASK-CASE (Hamid 2026-10-20, 7637): the "Ask about this case" card (components/ask-case.js) under Documents on the
   lead panel (`lead-ask`) and the deal page (`deal-ask`), and its History item (timeline.js `tl-kind-ai_ask`). No new
   colours or fonts: tokens.css + the AI box's lavender edge (it is AI-written), like the Catch me up card. Prefix `ak-`. */

.lead-ask:empty, .deal-ask:empty { display: none; }
.lead-ask, .deal-ask { margin-bottom: var(--sp-5); max-width: 1152px; min-width: 0; }   /* the top of the column (1a) */
.ak-card.is-slim { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
.ak-spark { flex: none; font-size: var(--fs-md); }

.ak-card { background: var(--bg-surface); border: 1px solid #ddd5ff; border-radius: var(--r-md); box-shadow: var(--shadow-raised);
  padding: var(--sp-4) var(--sp-5); font-size: var(--fs-md); color: var(--text); min-width: 0; display: grid; gap: var(--sp-3); }
.ak-head { display: flex; align-items: center; gap: var(--sp-2); min-height: 20px; }
.ak-title { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ak-row { display: flex; gap: var(--sp-3); align-items: center; min-width: 0; }
.ak-input { flex: 1 1 auto; min-width: 0; }
.ak-submit { flex: none; }
.ak-status:empty { display: none; }
.ak-error { color: var(--red); font-size: var(--fs-sm); }
.ak-result { display: grid; gap: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--border); min-width: 0; }
.ak-result[hidden] { display: none; }
.ak-question { font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }
.ak-answer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: var(--lh-md); }
.ak-sources-title { font-size: var(--fs-sm); color: var(--text-2); }
.ak-source-list { margin: var(--sp-1) 0 0; padding-left: var(--sp-6); font-size: var(--fs-sm); color: var(--text);
  overflow-wrap: anywhere; }
.ak-proposal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); background: #f6f4ff; min-width: 0; }
.ak-proposal-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ak-proposal-actions { display: inline-flex; gap: var(--sp-2); flex: none; }
.ak-now { color: var(--text-2); font-size: var(--fs-sm); }
.ak-done { font-size: var(--fs-sm); color: var(--text-2); }
.ak-done.is-added { color: var(--green); }
.ak-saved { font-size: var(--fs-xs); color: var(--text-muted); }

/* History: 'Asked the AI: <question>' + the answer + sources (timeline.js askItem). */
.tl-ask { display: grid; gap: var(--sp-2); min-width: 0; }
.tl-ask-q { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.tl-ask-answer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; color: var(--text-2); }
.tl-item.is-expanded .tl-ask-answer { white-space: pre-wrap; overflow-wrap: anywhere; cursor: auto; color: var(--text); }
.tl-ask-rest { display: none; }
.tl-item.is-expanded .tl-ask-rest { display: grid; gap: var(--sp-2); }
.tl-ask .tl-mail-head .tl-act-more { margin-left: auto; }
.tl-ask-sources { margin: 0; padding-left: var(--sp-6); font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }
.tl-ask-field { font-size: var(--fs-sm); color: var(--text-2); }
.tl-ask-note { font-size: var(--fs-xs); color: var(--text-muted); }
