/* MotoFix conversation rhythm, with Automatic's green for brand actions. */
.ai-chat{min-height:760px}
.ai-chat-sidebar{overflow-y:auto}
.ai-roster-role{display:block;margin-top:3px;font-size:11px;line-height:16px;color:#a7b5c8}
.ai-chat-roster>button:disabled,.ai-suggestions button:disabled{cursor:not-allowed;opacity:.5}
.ai-messages{position:relative;padding:24px;scrollbar-width:thin;scrollbar-color:#bdc9c1 #f8f9fc;overscroll-behavior:contain;scroll-padding:20px}
.ai-question{margin-bottom:16px}
.ai-question p{padding:12px 16px;background:#287b25;color:#fff;border-radius:18px 18px 4px 18px;box-shadow:0 2px 3px #0f172a0a}
.ai-reply{width:fit-content;max-width:92%;margin:0 0 24px;border:1px solid #e2e8f0;border-radius:18px 18px 18px 4px;background:#fff;padding:16px 20px;overflow-wrap:anywhere;box-shadow:0 1px 2px #0f172a05}
.ai-reply-prose{color:#334155;font-size:14px;line-height:28px;max-width:72ch}
.ai-reply-prose p{margin:0 0 14px;line-height:28px;white-space:normal}
.ai-reply-prose h3{margin:20px 0 8px;font-size:14px;line-height:24px;font-weight:800;color:#0f172a;letter-spacing:0}
.ai-reply-prose>:first-child{margin-top:0}.ai-reply-prose>:last-child{margin-bottom:0}
.ai-reply-prose ul,.ai-reply-prose ol{margin:8px 0 16px;padding-left:21px}
.ai-reply-prose li{padding-left:3px;margin:6px 0;line-height:26px}
.ai-reply-prose li::marker{color:#64748b}.ai-reply-prose strong{color:#1e293b;font-weight:750}
.ai-reply-prose blockquote{margin:16px 0;padding:12px 16px;background:#f8fafc;border-left:1px solid #cbd5e1;border-radius:0 8px 8px 0}
.ai-reply-prose code{font-family:ui-monospace,monospace;font-size:.92em;background:#f1f5f9;padding:2px 4px;border-radius:4px}
.ai-reply-prose pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;margin:12px 0;padding:12px;background:#f1f5f9;border-radius:8px}
.ai-reply-prose pre code{padding:0}
.ai-reply footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border-top:1px solid #f1f5f9;padding-top:4px;color:#64748b;font-size:10px;line-height:16px}
.ai-reply footer button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:44px;flex-shrink:0;border:0;background:none;color:#596b80;font-size:11px;cursor:pointer;padding:8px;border-radius:8px}
.ai-reply footer button:hover{background:#f1f5f9;color:#0f172a}.ai-reply footer .icon{width:14px;height:14px}
.ai-thinking{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;padding:13px 16px;margin:0 0 20px;border:1px solid #e2e8f0;border-radius:18px 18px 18px 4px;background:white;color:#64748b;font-size:13px;font-weight:700;line-height:20px}
.ai-chat-spinner{display:inline-block;flex-shrink:0;width:15px;height:15px;border:1.8px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ai-chat-spin .8s linear infinite}
.ai-thinking .ai-chat-spinner{color:#287b25}.ai-compose .ai-chat-spinner{width:22px;height:22px}
.ai-compose:focus-within{border-color:#6ca665;box-shadow:0 0 0 2px #287b2514}
.ai-page .ai-compose textarea:focus{outline:0;box-shadow:none}
.ai-chat-error{padding:16px;margin-bottom:20px;background:#fff7f6;border:1px solid #fecaca;border-radius:16px;color:#991b1b;font-size:13px}
.ai-chat-error p{margin:6px 0 12px;line-height:22px}.ai-page .ai-chat-error .btn{color:#991b1b;border-color:#fecaca}
.ai-generative{min-height:24px}.ai-generative:has(input:disabled){color:#64748b}
.ai-reply.is-new{animation:ai-chat-arrive .24s cubic-bezier(.16,1,.3,1) both}
@keyframes ai-chat-spin{to{transform:rotate(360deg)}}
@keyframes ai-chat-arrive{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1023px){.ai-chat{min-height:720px}.ai-chat-sidebar{overflow:hidden}.ai-messages{max-height:580px}.ai-chat-roster>button{min-width:185px}}
@media(max-width:639px){.ai-messages{padding:16px;min-height:300px;max-height:520px}.ai-reply{max-width:100%;padding:14px 16px}.ai-question p{max-width:92%;padding:12px 14px}.ai-reply footer{align-items:flex-start}.ai-reply footer>span{padding-top:10px}.ai-thinking{font-size:12px}.ai-chat-panel>header{padding:16px}}
/* Keep help available after the conversation, clear of its send target at any height. */
body:has(.ai-chat) .floating-help{position:static;justify-content:flex-end;padding:0 16px 24px;background:#f4f6fa}
@media(prefers-reduced-motion:reduce){.ai-chat-spinner{animation:none}.ai-reply.is-new{animation:ai-chat-arrive-reduced .1s ease-out both}@keyframes ai-chat-arrive-reduced{from{opacity:.7}to{opacity:1}}}
