.ai-chat-fab{z-index:9999;color:#fff;cursor:pointer;background:linear-gradient(135deg,#0774e8,#0562cc);border:none;border-radius:2rem;align-items:center;gap:.5rem;padding:.75rem 1.25rem;font-family:inherit;font-size:.875rem;font-weight:700;transition:all .25s cubic-bezier(.16,1,.3,1);animation:.4s cubic-bezier(.16,1,.3,1) fabSlideIn;display:flex;position:fixed;bottom:2rem;right:2rem;box-shadow:0 8px 24px #0774e861}.ai-chat-fab:hover{transform:translateY(-2px)scale(1.03);box-shadow:0 12px 32px #0774e87a}.ai-chat-fab svg{flex-shrink:0}@keyframes fabSlideIn{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.ai-chat-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:9998;background:#00000052;animation:.2s fadeIn;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.ai-chat-panel{z-index:9999;-webkit-backdrop-filter:blur(24px)saturate(1.5);background:#0a1222f2;border:1px solid #0774e838;border-bottom:none;border-radius:1.25rem 1.25rem 0 0;flex-direction:column;width:420px;max-width:100vw;height:600px;max-height:90vh;animation:.35s cubic-bezier(.16,1,.3,1) panelSlideUp;display:flex;position:fixed;bottom:0;right:0;overflow:hidden;box-shadow:0 -8px 40px #0774e824,inset 0 0 0 1px #ffffff0a}@keyframes panelSlideUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}[data-theme=light] .ai-chat-panel{background:#f8fafcf7;border-color:#0774e82e;box-shadow:0 -8px 40px #0774e81a,inset 0 0 0 1px #0774e80f}.ai-chat-header{background:linear-gradient(135deg,#0774e82e,#0562cc1a);border-bottom:1px solid #0774e826;flex-shrink:0;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.ai-chat-header-left{align-items:center;gap:.65rem;display:flex}.ai-chat-avatar{background:linear-gradient(135deg,#0774e8,#0562cc);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;animation:3s ease-in-out infinite iconFloat;display:flex;box-shadow:0 4px 12px #0774e866}@keyframes iconFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-2px)}}.ai-chat-avatar svg{color:#fff}.ai-chat-title{color:#dbeafe;margin:0;font-size:.9rem;font-weight:700;line-height:1.2}[data-theme=light] .ai-chat-title{color:#0f1f3d}.ai-chat-subtitle{color:#93c5fd;margin:0;font-size:.65rem;line-height:1}[data-theme=light] .ai-chat-subtitle{color:#0562cc}.ai-chat-header-actions{align-items:center;gap:.4rem;display:flex}.ai-chat-action-btn{cursor:pointer;color:#93c5fd;background:#ffffff12;border:none;border-radius:.375rem;justify-content:center;align-items:center;padding:.35rem;transition:all .15s;display:flex}.ai-chat-action-btn:hover{color:#fff;background:#0774e840}[data-theme=light] .ai-chat-action-btn{color:#0562cc;background:#0774e812}[data-theme=light] .ai-chat-action-btn:hover{color:#0f1f3d;background:#0774e826}.ai-chat-quota{color:#93c5fd;background:#0000001f;flex-shrink:0;align-items:center;gap:.5rem;padding:.45rem 1.25rem;font-size:.65rem;display:flex}[data-theme=light] .ai-chat-quota{color:#0562cc;background:#0774e80a}.ai-chat-quota-bar{background:#0774e82e;border-radius:2px;flex:1;height:3px;overflow:hidden}.ai-chat-quota-fill{background:linear-gradient(90deg,#0774e8,#10b981);border-radius:2px;height:100%;transition:width .4s}.ai-chat-quota-fill.ai-chat-quota-low{background:linear-gradient(90deg,#ef4444,#f97316)}.ai-chat-messages{scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;flex-direction:column;flex:1;gap:1rem;padding:1rem 1.25rem;display:flex;overflow-y:auto}.ai-chat-messages::-webkit-scrollbar{display:none}.ai-chat-welcome{text-align:center;padding:1rem .5rem 0}.ai-chat-welcome-emoji{margin-bottom:.5rem;font-size:2.5rem}.ai-chat-welcome-title{color:#dbeafe;margin:0 0 .35rem;font-size:1rem;font-weight:700}[data-theme=light] .ai-chat-welcome-title{color:#0f1f3d}.ai-chat-welcome-text{color:#9ca3af;margin:0;font-size:.78rem;line-height:1.6}.ai-chat-suggestions{flex-direction:column;gap:.4rem;margin-top:1rem;display:flex}.ai-chat-suggestion-btn{color:#93c5fd;cursor:pointer;text-align:left;background:#0774e814;border:1px solid #0774e82e;border-radius:.625rem;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;font-family:inherit;font-size:.75rem;transition:all .15s;display:flex}.ai-chat-suggestion-btn:hover{color:#dbeafe;background:#0774e829;border-color:#0774e859;transform:translate(2px)}[data-theme=light] .ai-chat-suggestion-btn{color:#0562cc;background:#0774e80d;border-color:#0774e826}[data-theme=light] .ai-chat-suggestion-btn:hover{color:#0f1f3d;background:#0774e81a}.ai-chat-msg{align-items:flex-start;gap:.5rem;animation:.25s msgSlideIn;display:flex}@keyframes msgSlideIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.ai-chat-msg--user{flex-direction:row-reverse}.ai-chat-msg-avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:1.75rem;height:1.75rem;font-size:.7rem;font-weight:700;display:flex}.ai-chat-msg--ai .ai-chat-msg-avatar{color:#fff;background:linear-gradient(135deg,#0774e8,#0562cc)}.ai-chat-msg--user .ai-chat-msg-avatar{color:#93c5fd;background:#0774e826}[data-theme=light] .ai-chat-msg--user .ai-chat-msg-avatar{color:#0562cc;background:#0774e81a}.ai-chat-bubble{border-radius:1rem;max-width:78%;padding:.65rem .9rem;font-size:.82rem;line-height:1.6;position:relative}.ai-chat-msg--ai .ai-chat-bubble{color:#e2e8f0;background:#ffffff0d;border:1px solid #0774e824;border-radius:.25rem 1rem 1rem}[data-theme=light] .ai-chat-msg--ai .ai-chat-bubble{color:#1e293b;background:#fff;border-color:#0774e826;box-shadow:0 1px 4px #0774e80f}.ai-chat-msg--user .ai-chat-bubble{color:#dbeafe;background:linear-gradient(135deg,#0774e84d,#0562cc40);border:1px solid #0774e847;border-radius:1rem .25rem 1rem 1rem}[data-theme=light] .ai-chat-msg--user .ai-chat-bubble{color:#fff;background:linear-gradient(135deg,#0774e8,#0562cc);border-color:#0000}.ai-chat-bubble-actions{opacity:0;justify-content:flex-end;gap:.25rem;margin-top:.35rem;transition:opacity .15s;display:flex}.ai-chat-msg--ai .ai-chat-bubble:hover .ai-chat-bubble-actions{opacity:1}.ai-chat-copy-btn{color:#93c5fd;cursor:pointer;background:#0774e814;border:1px solid #0774e82e;border-radius:.25rem;align-items:center;gap:.25rem;padding:.15rem .4rem;font-family:inherit;font-size:.65rem;transition:all .15s;display:flex}.ai-chat-copy-btn:hover{color:#dbeafe;background:#0774e82e}.ai-chat-copy-btn.copied{color:#10b981;border-color:#10b9814d}.ai-typing{color:#9ca3af;background:#ffffff0d;border:1px solid #0774e824;border-radius:.25rem 1rem 1rem;align-items:center;gap:.35rem;width:fit-content;padding:.5rem .75rem;font-size:.75rem;display:flex}.ai-typing-dots{align-items:center;gap:.25rem;display:flex}.ai-typing-dot{background:#0774e8;border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite typingBounce}.ai-typing-dot:nth-child(2){animation-delay:.2s}.ai-typing-dot:nth-child(3){animation-delay:.4s}@keyframes typingBounce{0%,80%,to{opacity:.4;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}.ai-chat-footer{background:#00000014;border-top:1px solid #0774e81f;flex-shrink:0;padding:.875rem 1.25rem}[data-theme=light] .ai-chat-footer{background:#0774e805;border-top-color:#0774e81a}.ai-chat-input-row{align-items:flex-end;gap:.5rem;display:flex}.ai-chat-input{color:#e2e8f0;resize:none;background:#ffffff0f;border:1px solid #0774e838;border-radius:.875rem;flex:1;min-height:2.5rem;max-height:7rem;padding:.625rem .9rem;font-family:inherit;font-size:.82rem;line-height:1.5;transition:border-color .2s,box-shadow .2s}.ai-chat-input:focus{border-color:#0774e88c;outline:none;box-shadow:0 0 0 3px #0774e81a}.ai-chat-input::placeholder{color:#9ca3af8c}[data-theme=light] .ai-chat-input{color:#1e293b;background:#fff;border-color:#0774e833}[data-theme=light] .ai-chat-input::placeholder{color:#9ca3af}.ai-chat-send-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0774e8,#0562cc);border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;transition:all .2s;display:flex;box-shadow:0 4px 12px #0774e859}.ai-chat-send-btn:hover:not(:disabled){transform:scale(1.08);box-shadow:0 6px 16px #0774e873}.ai-chat-send-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.ai-chat-footer-note{color:#9ca3af8c;text-align:center;margin-top:.4rem;font-size:.62rem}.ai-chat-limit-banner{color:#fca5a5;text-align:center;background:#ef444414;border:1px solid #ef44442e;border-radius:.625rem;justify-content:center;align-items:center;gap:.4rem;margin:.5rem 1.25rem;padding:.6rem .875rem;font-size:.75rem;display:flex}@media (max-width:480px){.ai-chat-panel{border-radius:1.25rem 1.25rem 0 0;width:100vw;height:75vh}.ai-chat-fab{bottom:1rem;right:1rem}}.ai-rendered-content{color:inherit;word-break:break-word;font-size:.875rem;line-height:1.55}.ai-rendered-content p{margin:0 0 .6rem}.ai-rendered-content p:last-child{margin-bottom:0}.ai-rendered-content h1,.ai-rendered-content h2,.ai-rendered-content h3,.ai-rendered-content h4{color:#93c5fd;margin:.8rem 0 .4rem;font-weight:700;line-height:1.3}[data-theme=light] .ai-rendered-content h1,[data-theme=light] .ai-rendered-content h2,[data-theme=light] .ai-rendered-content h3,[data-theme=light] .ai-rendered-content h4{color:#0774e8}.ai-rendered-content h1{font-size:1.1rem}.ai-rendered-content h2{font-size:1rem}.ai-rendered-content h3{font-size:.925rem}.ai-rendered-content ul,.ai-rendered-content ol{margin:0 0 .6rem;padding-left:1.25rem}.ai-rendered-content li{margin-bottom:.25rem}.ai-rendered-content pre{background:#0006;border:1px solid #ffffff14;border-radius:.5rem;margin:.5rem 0;padding:.65rem .85rem;overflow-x:auto}[data-theme=light] .ai-rendered-content pre{background:#f1f5f9;border-color:#e2e8f0}.ai-rendered-content code{background:#ffffff1a;border-radius:.25rem;padding:.15em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.825em}[data-theme=light] .ai-rendered-content code{color:#0774e8;background:#0774e814}.ai-rendered-content a{color:#60a5fa;text-underline-offset:2px;text-decoration:underline}[data-theme=light] .ai-rendered-content a{color:#0774e8}.ai-rendered-content blockquote{color:#cbd5e1;border-left:3px solid #0774e8;margin:.5rem 0;padding-left:.75rem;font-style:italic}[data-theme=light] .ai-rendered-content blockquote{color:#475569}.ai-math-block{text-align:center;margin:.6rem 0;padding:.35rem 0;overflow-x:auto}.ai-math-inline{vertical-align:middle;display:inline-block}.ai-suggestions-list{border-top:1px dashed #ffffff1a;flex-wrap:wrap;gap:.4rem;margin-top:.65rem;padding-top:.5rem;display:flex}[data-theme=light] .ai-suggestions-list{border-top-color:#0774e826}.ai-suggestion-chip{color:#93c5fd;cursor:pointer;background:#0774e826;border:1px solid #0774e84d;border-radius:1rem;align-items:center;gap:.3rem;padding:.25rem .65rem;font-size:.75rem;font-weight:500;text-decoration:none;transition:all .15s;display:inline-flex}.ai-suggestion-chip:hover{color:#fff;background:#0774e84d;transform:translateY(-1px)}[data-theme=light] .ai-suggestion-chip{color:#0562cc;background:#0774e814;border-color:#0774e833}[data-theme=light] .ai-suggestion-chip:hover{color:#0f1f3d;background:#0774e82e}.ai-chat-error-card{text-align:center;color:#fca5a5;background:#ef44441a;border:1px solid #ef444440;border-radius:.75rem;flex-direction:column;align-items:center;gap:.5rem;margin:.75rem 1.25rem;padding:.75rem 1rem;font-size:.8rem;display:flex}[data-theme=light] .ai-chat-error-card{color:#dc2626;background:#fef2f2;border-color:#fecaca}.ai-chat-retry-btn{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:.375rem;align-items:center;gap:.35rem;padding:.35rem .75rem;font-size:.75rem;font-weight:600;transition:opacity .15s;display:inline-flex}.ai-chat-retry-btn:hover{opacity:.9}.ai-chat-auth-prompt{text-align:center;color:#94a3b8;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;padding:2.5rem 1.5rem;display:flex}.ai-chat-auth-title{color:#fff;font-size:1.1rem;font-weight:700}[data-theme=light] .ai-chat-auth-title{color:#0f1f3d}.ai-chat-auth-desc{max-width:280px;font-size:.85rem;line-height:1.5}.ai-chat-auth-btn{color:#fff;background:linear-gradient(135deg,#0774e8,#0562cc);border-radius:2rem;align-items:center;gap:.4rem;margin-top:.5rem;padding:.65rem 1.4rem;font-size:.875rem;font-weight:600;text-decoration:none;transition:transform .15s;display:inline-flex;box-shadow:0 4px 14px #0774e866}.ai-chat-auth-btn:hover{transform:translateY(-1px)}@media (max-width:768px){.ai-chat-panel{width:380px;max-height:85vh;bottom:0;right:.5rem}}@media (max-width:480px){.ai-chat-panel{border-radius:1.25rem 1.25rem 0 0;width:100vw;height:85vh;max-height:90vh;bottom:0;right:0}.ai-chat-fab{padding:.65rem 1rem;font-size:.8rem;bottom:1rem;right:1rem}}
