/* ─── CarSearch AI Partners — AI interactions on a customer's profile (.aix-*) ─
   Styles for public/js/ai-interactions.js: the list of assistant-led visits
   and the expanded brief (searches, cars, every event). Tokens only, no
   literal colours. Mobile target: 390px wide, no overflow.                   */

.aix-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.aix-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.aix-head { width: 100%; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; cursor: pointer; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; border-radius: var(--radius); }
.aix-head:hover { background: var(--surface-hover); }
.aix-head:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.aix-head[aria-expanded="true"] { border-bottom: 1px solid var(--border); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.aix-who { font-weight: 700; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.aix-when { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.aix-sum { grid-column: 1 / -1; color: var(--text-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.aix-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); margin-right: 4px; vertical-align: baseline; }
.aix-badge--chatgpt, .aix-badge--claude, .aix-badge--perplexity, .aix-badge--copilot, .aix-badge--gemini { background: var(--accent-soft); border-color: var(--accent); }
.aix-detail { padding: 10px 12px 12px; font-size: 13.5px; line-height: 1.55; color: var(--text); min-width: 0; }
.aix-brief p { margin: 0 0 6px; overflow-wrap: anywhere; }
.aix-k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 10px 0 4px; }
.aix-muted { color: var(--text-muted); }
.aix-searches, .aix-cars { margin: 0 0 6px; padding-left: 18px; }
.aix-searches > li { margin: 0 0 6px; }
.aix-cars { list-style: disc; margin-top: 2px; }
.aix-events { margin: 0; padding-left: 18px; }
.aix-events li { margin: 0 0 4px; overflow-wrap: anywhere; }
.aix-events time { color: var(--text-muted); font-size: 12px; margin-right: 6px; white-space: nowrap; }
.aix-kind { font-weight: 700; margin-right: 4px; }
.aix-id { font-size: 12px; margin-top: 10px; }
.aix-empty { color: var(--text-muted); font-size: 13.5px; margin: 0; line-height: 1.55; }
@media (max-width: 480px) { .aix-head { grid-template-columns: 1fr; } .aix-when { white-space: normal; } }
