.ai-chat-button{position:fixed;right:24px;bottom:24px;z-index:1040;display:flex;align-items:center;gap:10px;padding:13px 18px;border:1px solid var(--app-brand);border-radius:30px;background:var(--app-brand);color:#fff;font:inherit;font-size:14px;font-weight:600;box-shadow:0 6px 20px #312e8126;cursor:pointer}.ai-chat-button:hover,.ai-chat-send-btn:hover:not(:disabled){background:var(--app-brand-hover)}.ai-chat-spark{font-size:22px;line-height:1}.ai-chat-panel{position:fixed;right:24px;bottom:90px;z-index:1040;display:flex;flex-direction:column;width:440px;max-width:calc(100vw - 32px);height:680px;max-height:calc(100dvh - 114px);overflow:hidden;border:1px solid var(--app-border, var(--app-border));border-radius:20px;background:#fff;color:var(--app-text, var(--app-text));font-family:var(--app-font-family, sans-serif);box-shadow:0 24px 70px #11182724,0 4px 16px #1118270a}.ai-chat-panel[hidden]{display:none}.ai-chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px;border-bottom:1px solid var(--app-border, var(--app-border));flex-shrink:0}.ai-chat-header-info{display:flex;align-items:center;gap:12px;min-width:0}.ai-chat-mark,.ai-chat-welcome-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--app-brand-soft);border-radius:12px;background:var(--app-brand-soft);color:var(--app-brand);font-size:26px}.ai-chat-header h2{margin:0;font-size:15px;font-weight:650;letter-spacing:-.02em}.ai-chat-header p{margin:4px 0 0;font-size:12px;color:var(--app-text-muted)}.ai-chat-header-actions{display:flex;gap:4px}.ai-chat-btn-icon{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--app-text-muted);font-size:24px;cursor:pointer}.ai-chat-btn-icon:hover:not(:disabled){background:var(--app-surface-secondary);color:var(--app-text)}.ai-chat-btn-icon:disabled{opacity:.4;cursor:wait}.ai-chat-panel button:focus-visible,.ai-chat-button:focus-visible{outline:3px solid var(--app-brand);outline-offset:3px}.ai-chat-body{display:flex;flex-direction:column;flex:1;min-height:0;gap:20px;padding:24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:linear-gradient(180deg,var(--app-surface) 0,#fff 220px)}.ai-chat-welcome{padding:14px 0 0}.ai-chat-welcome-icon{margin-bottom:24px;width:52px;height:52px;border-radius:16px;font-size:32px}.ai-chat-eyebrow{margin:0 0 10px;color:var(--app-text-muted);font-size:10px;font-weight:700;letter-spacing:.12em}.ai-chat-welcome h3{margin:0 0 12px;max-width:280px;font-size:28px;line-height:1.15;font-weight:650;letter-spacing:-.04em}.ai-chat-welcome-text{margin:0;color:var(--app-text-muted);font-size:14px;line-height:1.65}.ai-chat-welcome-hint{margin:24px 0 0;color:var(--app-text-muted);font-size:12px}.ai-chat-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:8px}.ai-chat-chip{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--app-border);border-radius:12px;background:#fff;color:var(--app-text-soft);font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}.ai-chat-chip:hover{border-color:var(--app-brand);background:var(--app-brand-soft)}.ai-chat-chip-icon{color:var(--app-brand);font-size:22px;line-height:1}.ai-chat-message{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex-shrink:0;min-width:0}.ai-chat-message-user{align-items:flex-end}.ai-chat-message-label{font-size:11px;font-weight:600;color:var(--app-text-muted)}.ai-chat-bubble{max-width:100%;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.ai-chat-message-user .ai-chat-bubble{max-width:90%;padding:10px 15px;border-radius:14px 14px 4px;background:var(--app-brand-soft);color:var(--app-brand-pressed);white-space:pre-wrap}.ai-chat-message-assistant .ai-chat-bubble{width:100%;overflow-x:auto}.ai-chat-typing{display:flex;gap:5px;padding:10px 0}.ai-chat-typing span{width:6px;height:6px;border-radius:50%;background:var(--app-brand);animation:ai-chat-pulse 1.2s infinite alternate}.ai-chat-typing span:nth-child(2){animation-delay:.2s}.ai-chat-typing span:nth-child(3){animation-delay:.4s}@keyframes ai-chat-pulse{to{opacity:.3;transform:translateY(-3px)}}.ai-chat-status{flex-shrink:0;margin:0;padding:0 24px 10px;color:var(--app-text-muted);font-size:12px}.ai-chat-status:empty{display:none}.ai-chat-footer{padding:12px 18px 16px;background:#fff;flex-shrink:0}.ai-chat-form{border:1px solid var(--app-border-hover);border-radius:14px;padding:12px;box-shadow:0 2px 4px #11182705}.ai-chat-form:focus-within{border-color:var(--app-brand);box-shadow:0 0 0 3px var(--app-brand-soft)}.ai-chat-input{display:block;width:100%;min-height:48px;max-height:150px;padding:0;border:0;outline:none;resize:none;background:transparent;color:var(--app-text);font:inherit;font-size:14px;line-height:1.5}.ai-chat-input::placeholder{color:var(--app-text-muted)}.ai-chat-input:disabled{opacity:.6}.ai-chat-composer-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.ai-chat-composer-actions span{color:var(--app-text-muted);font-size:10px}.ai-chat-send-btn{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:var(--app-brand);color:#fff;font-size:22px;cursor:pointer}.ai-chat-send-btn:disabled{background:var(--app-surface-secondary);color:var(--app-text-faint);cursor:default}.ai-chat-disclaimer{margin:10px 0 0;color:var(--app-text-muted);text-align:center;font-size:10px;line-height:1.5}@media(max-width:600px){.ai-chat-button{bottom:calc(76px + env(safe-area-inset-bottom));right:16px;padding:13px}.ai-chat-launcher-label{display:none}.ai-chat-panel{right:8px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 92px - env(safe-area-inset-bottom));max-height:none;border-radius:16px}.ai-chat-header{padding:14px 16px}.ai-chat-body{padding:20px}.ai-chat-input{font-size:16px}.ai-chat-composer-actions span{font-size:9px}}@media(max-height:650px){.ai-chat-welcome-icon{display:none}.ai-chat-welcome{padding-top:0}.ai-chat-welcome h3{font-size:24px}}@media(prefers-reduced-motion:reduce){.ai-chat-typing span{animation:none}.ai-chat-chip{transition:none}}.ai-chat-bubble h1,.ai-chat-bubble h2,.ai-chat-bubble h3,.ai-chat-bubble h4,.ai-chat-bubble h5,.ai-chat-bubble h6{margin:.6em 0 .4em;font-weight:600;line-height:1.3}.ai-chat-bubble h1:first-child,.ai-chat-bubble h2:first-child,.ai-chat-bubble h3:first-child{margin-top:0}.ai-chat-bubble h1{font-size:1.1em}.ai-chat-bubble h2{font-size:1.05em}.ai-chat-bubble h3{font-size:1em}.ai-chat-bubble p{margin:.4em 0}.ai-chat-bubble p:first-child{margin-top:0}.ai-chat-bubble p:last-child{margin-bottom:0}.ai-chat-bubble ul,.ai-chat-bubble ol{margin:.4em 0;padding-left:1.2em}.ai-chat-bubble li{margin:.2em 0;line-height:1.5}.ai-chat-bubble li>ul,.ai-chat-bubble li>ol{margin:.2em 0}.ai-chat-bubble code{background:var(--app-surface-secondary);padding:2px 5px;border-radius:3px;font-size:.82em;font-family:Consolas,Courier New,monospace;color:#e83e8c}.ai-chat-bubble pre{background:var(--app-surface-secondary);padding:8px 10px;border-radius:6px;overflow-x:auto;margin:.5em 0;font-size:.8em;line-height:1.4}.ai-chat-bubble pre code{background:transparent;padding:0;color:inherit;font-size:inherit}.ai-chat-bubble blockquote{margin:.5em 0;padding:4px 10px;border-left:3px solid var(--app-brand);color:var(--app-text-soft);background:var(--app-surface);border-radius:0 4px 4px 0}.ai-chat-bubble blockquote p{margin:.2em 0}.ai-chat-bubble strong{font-weight:600}.ai-chat-bubble em{font-style:italic}.ai-chat-bubble hr{border:none;border-top:1px solid var(--app-border);margin:.8em 0}.ai-chat-bubble a{color:var(--app-brand);text-decoration:underline}.ai-chat-bubble a:hover{color:var(--app-brand-hover)}.ai-chat-bubble table{border-collapse:collapse;margin:.5em 0;width:100%;font-size:.82em}.ai-chat-bubble table th,.ai-chat-bubble table td{border:1px solid var(--app-border);padding:4px 8px;text-align:left}.ai-chat-bubble table th{background:var(--app-surface);font-weight:600}
