/* Simulated assistant conversation against Epicor data. */
.ai-console { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #0b0d10; font-size: .86rem; }
.ai-console__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ai-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ai-console__bar span { margin-left: 8px; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; }
.ai-console__body { display: grid; align-content: start; gap: 10px; height: 380px; padding: 16px; overflow: hidden; }
.ai-msg { max-width: 92%; padding: 10px 14px; border-radius: 12px; line-height: 1.5; animation: feed-in .4s var(--ease); }
.ai-msg--user { justify-self: end; background: var(--accent); color: #140a03; font-weight: 600; border-bottom-right-radius: 4px; }
.ai-msg--bot { justify-self: start; background: var(--panel-2); color: var(--text-2); border-bottom-left-radius: 4px; }
@keyframes blink { 50% { opacity: 0; } }
.ai-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-family: var(--font-mono); font-size: .74rem; }
.ai-table th { color: var(--muted); font-weight: 600; text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line-2); }
.ai-table td { padding: 4px 6px; border-bottom: 1px solid var(--line); color: var(--text); }
.ai-table .is-risk { color: var(--accent); font-weight: 700; }
@keyframes feed-in { from { opacity: 0; transform: translateY(8px); } }
.ai-msg p { margin: 0; }
.ai-msg--bot p.is-typing::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.ai-table .is-change { color: var(--steel); font-weight: 700; }

/* Epicor operations the assistant performed */
.ai-ops { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; animation: feed-in .4s var(--ease); }
.ai-op { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-mono); font-size: .68rem; }
.ai-op b { padding: 2px 6px; border-radius: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.ai-op--read b { background: #7cc4ff22; color: var(--steel); }
.ai-op--analyze b { background: #c79bff22; color: #c79bff; }
.ai-op--write b { background: #ff6a1a26; color: var(--accent); }
.ai-op--write { border-color: #ff6a1a55; }

.ai-approve { margin-top: 10px; }
.ai-approve__btn { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #140a03; font-weight: 750; font-size: .8rem; transition: transform .15s, filter .15s; }
.ai-approve__btn.is-pressed { transform: scale(.95); filter: brightness(1.2); }
.ai-approve__done { display: inline-flex; color: var(--green); font-weight: 700; font-size: .8rem; animation: feed-in .4s var(--ease); }
