/* The chat helper (ai-widget.js). Self-contained: it also works on the guides, which use another style sheet. */
.aiw-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; cursor: pointer; background: linear-gradient(135deg, #ff8a3d, #ff6b1a); box-shadow: 0 10px 26px rgba(255, 107, 26, 0.45); display: grid; place-items: center; transition: transform 0.15s; }
.aiw-fab:hover { transform: translateY(-2px); }
.aiw-fab:focus-visible, .aiw-panel button:focus-visible, .aiw-panel input:focus-visible { outline: 3px solid #34d399; outline-offset: 2px; }
.aiw-panel { position: fixed; right: 18px; bottom: 88px; z-index: 60; width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100vh - 110px)); background: #fff; color: #0e1d17; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; overflow: hidden; font: 400 15px/1.5 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; }
.aiw-panel[hidden] { display: none; }
.aiw-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(150deg, #165a44, #0b3d2e); color: #fff; }
.aiw-panel > header small { display: block; opacity: 0.8; font-size: 12px; }
.aiw-close { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 8px; }
.aiw-close:hover { background: rgba(255, 255, 255, 0.15); }
.aiw-lines { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f3f6f4; }
.aiw-hello { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.aiw-hello p { margin: 0; background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.aiw-chip { border: 1.5px solid #e2e9e5; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.aiw-chip:hover { border-color: #1f7a5d; color: #0b3d2e; }
.aiw-line { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.aiw-line.me { align-self: flex-end; background: #11553f; color: #fff; border-bottom-right-radius: 4px; }
.aiw-line.ai { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.aiw-line.typing { color: #9aa8a1; letter-spacing: 3px; }
.aiw-line.err { align-self: flex-start; background: #fef2f2; color: #b91c1c; font-weight: 600; }
.aiw-panel form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e2e9e5; background: #fff; }
.aiw-panel input { flex: 1; min-width: 0; border: 1.5px solid #e2e9e5; border-radius: 999px; padding: 10px 14px; font: inherit; color: inherit; background: #fff; }
.aiw-panel form button { border: 0; border-radius: 999px; padding: 0 18px; font: inherit; font-weight: 700; color: #fff; background: #ff6b1a; cursor: pointer; }
.aiw-panel form button:disabled { opacity: 0.45; cursor: default; }
@media (max-width: 480px) { .aiw-panel { right: 8px; left: 8px; width: auto; bottom: 84px; } }
