:root{--wooasist-sidebar-width:300px;--wooasist-bg:#fff;--wooasist-sidebar-bg:#f8f9fa;--wooasist-surface:#f0f0f0;--wooasist-hover:#e9ecef;--wooasist-border:#dee2e6;--wooasist-text:#212529;--wooasist-text-secondary:#6c757d;--wooasist-user-bubble:#7c3aed;--wooasist-user-text:#fff;--wooasist-agent-bubble:#f0f0f0;--wooasist-input-bg:#f8f9fa;--wooasist-resize-handle:#ccc;--wooasist-toggle-bg:#e9ecef;--wooasist-icon-color:#6c757d}.wooasist-theme-dark{--wooasist-bg:#212121;--wooasist-sidebar-bg:#171717;--wooasist-surface:#2f2f2f;--wooasist-hover:#3a3a3a;--wooasist-border:#3a3a3a;--wooasist-text:#ececec;--wooasist-text-secondary:#999;--wooasist-user-bubble:#7c3aed;--wooasist-user-text:#fff;--wooasist-agent-bubble:#2f2f2f;--wooasist-input-bg:#2f2f2f;--wooasist-resize-handle:#555;--wooasist-toggle-bg:#3a3a3a;--wooasist-icon-color:#ccc}.wooasist-theme-dark #wooasist-chat{box-shadow:0 0 40px rgba(0,0,0,.5)}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-avatar{background:#2f2f2f;color:#ececec}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble code{background:rgba(255,255,255,.1)}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble pre{background:rgba(255,255,255,.06)}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble a{color:#66b0ff}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble table{background:var(--wooasist-agent-bubble) !important;color:var(--wooasist-text)}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble thead,.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble th{background:#1e1e1e !important;color:var(--wooasist-text) !important;border-color:rgba(255,255,255,.2) !important}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble th,.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble td{border-color:rgba(255,255,255,.2) !important;color:var(--wooasist-text) !important}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble td{background:var(--wooasist-agent-bubble) !important}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble tbody tr:nth-child(even) td{background:rgba(255,255,255,.04) !important}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble hr{border-top-color:rgba(255,255,255,.15)}.wooasist-theme-dark .wooasist-msg-agent .wooasist-msg-bubble blockquote{border-left-color:#66b0ff}.wooasist-theme-dark .wooasist-msg-revert:hover{background:rgba(255,255,255,.1);color:var(--wooasist-text)}#wooasist-chat{position:fixed;bottom:0;right:0;width:520px;height:500px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;color:var(--wooasist-text);background:var(--wooasist-bg);border-radius:12px 0 0;overflow:hidden;box-shadow:0 0 40px rgba(0,0,0,.5);transition:width .3s ease,height .3s ease,bottom .3s ease,box-shadow .3s ease;display:flex;flex-direction:row;font-size:14px}#wooasist-chat.wooasist-chat-fullscreen{width:100vw !important;height:100vh !important;bottom:0 !important;right:0 !important;border-radius:0 !important}#wooasist-chat.wooasist-chat-minimized{width:380px !important;height:48px !important;border-radius:12px 12px 0 0 !important;bottom:0;right:20px;box-shadow:0 -2px 12px rgba(0,0,0,.2);background:var(--wooasist-sidebar-bg) !important}#wooasist-chat.wooasist-chat-minimized .wooasist-minimized-bar{background:var(--wooasist-sidebar-bg)}.wooasist-resize-handle{position:absolute;left:0;top:0;width:8px;height:100%;cursor:ew-resize;z-index:10;background:0 0;transition:background .2s}.wooasist-resize-handle:after{content:'';position:absolute;left:2px;top:50%;transform:translateY(-50%);width:3px;height:32px;background:var(--wooasist-resize-handle);border-radius:2px;opacity:0;transition:opacity .2s}.wooasist-resize-handle:hover:after,.wooasist-resize-handle:active:after{opacity:1}.wooasist-resize-handle-resizing:after{opacity:1 !important}.wooasist-resize-handle-vertical{position:absolute;left:0;top:0;width:100%;height:6px;cursor:ns-resize;z-index:10;background:0 0;transition:background .2s}.wooasist-resize-handle-vertical:after{content:'';position:absolute;top:1px;left:50%;transform:translateX(-50%);width:32px;height:3px;background:var(--wooasist-resize-handle);border-radius:2px;opacity:0;transition:opacity .2s}.wooasist-resize-handle-vertical:hover:after,.wooasist-resize-handle-vertical:active:after{opacity:1}.wooasist-chat-minimized .wooasist-resize-handle,.wooasist-chat-minimized .wooasist-resize-handle-vertical,.wooasist-chat-fullscreen .wooasist-resize-handle,.wooasist-chat-fullscreen .wooasist-resize-handle-vertical{display:none !important}#wooasist-chat.wooasist-chat-minimized .wooasist-sidebar,#wooasist-chat.wooasist-chat-minimized .wooasist-main{display:none}#wooasist-chat.wooasist-chat-minimized .wooasist-minimized-bar{display:flex !important}.wooasist-sidebar-collapsed .wooasist-sidebar{display:none !important}.wooasist-sidebar-collapsed .wooasist-main{flex:1}.wooasist-btn-sidebar{display:none !important}.wooasist-sidebar-collapsed .wooasist-btn-sidebar{display:flex !important}.wooasist-sidebar{width:var(--wooasist-sidebar-width);min-width:var(--wooasist-sidebar-width);background:var(--wooasist-sidebar-bg);display:flex;flex-direction:column;border-right:1px solid var(--wooasist-border);overflow:hidden}.wooasist-sidebar-header{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--wooasist-border);gap:8px}.wooasist-sidebar-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.wooasist-user-badge{width:24px;height:24px;border-radius:50%;background:var(--wooasist-user-bubble);color:var(--wooasist-user-text);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;flex-shrink:0;cursor:default;transition:opacity .2s}.wooasist-user-badge:hover{opacity:.8}.wooasist-sidebar-header h3{font-size:14px;font-weight:600;margin:0;color:var(--wooasist-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wooasist-sidebar-btn{background:0 0;border:none;color:var(--wooasist-text-secondary);cursor:pointer;padding:6px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}.wooasist-sidebar-btn:hover{background:var(--wooasist-hover);color:var(--wooasist-text)}.wooasist-session-list{flex:1;overflow-y:auto;padding:8px 16px}.wooasist-session-item{padding:10px 16px;margin:2px 0;border-radius:8px;cursor:pointer;transition:background .2s;font-size:13px;display:flex;align-items:center;gap:8px;position:relative}.wooasist-session-item:hover{background:var(--wooasist-hover)}.wooasist-session-item.active{background:var(--wooasist-surface)}.wooasist-session-item-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wooasist-text)}.wooasist-session-item-delete{display:none;background:0 0;border:none;color:var(--wooasist-text-secondary);cursor:pointer;padding:2px;border-radius:4px}.wooasist-session-item:hover .wooasist-session-item-delete{display:flex}.wooasist-session-item-delete:hover{color:#ef4444;background:0 0}.wooasist-main{flex:1;display:flex;flex-direction:column;background:var(--wooasist-bg);min-width:0}.wooasist-header{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--wooasist-border);gap:8px;background:var(--wooasist-bg)}.wooasist-header-title{font-size:14px;font-weight:600;color:var(--wooasist-text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wooasist-header-actions{display:flex;align-items:center;gap:2px}.wooasist-header-btn{background:0 0;border:none;color:var(--wooasist-icon-color);cursor:pointer;padding:6px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}.wooasist-header-btn:hover{background:var(--wooasist-hover);color:var(--wooasist-text)}.wooasist-header-btn.active-theme{color:var(--wooasist-user-bubble) !important}.wooasist-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}.wooasist-msg{display:flex;gap:10px;max-width:90%;animation:wooasist-msg-in .25s ease}@keyframes wooasist-msg-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.wooasist-msg-user{align-self:flex-end;flex-direction:row-reverse}.wooasist-msg-agent{align-self:flex-start}.wooasist-msg-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px}.wooasist-msg-user .wooasist-msg-avatar{background:var(--wooasist-user-bubble);color:var(--wooasist-user-text)}.wooasist-msg-agent .wooasist-msg-avatar{background:var(--wooasist-agent-bubble);color:var(--wooasist-text)}.wooasist-msg-content{display:flex;flex-direction:column;gap:4px;min-width:0}.wooasist-msg-bubble{padding:10px 14px;border-radius:16px;line-height:1.5;font-size:13px;word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;min-width:0;max-width:100%}.wooasist-msg-user .wooasist-msg-bubble{background:var(--wooasist-user-bubble);color:var(--wooasist-user-text);border-bottom-right-radius:4px}.wooasist-msg-agent .wooasist-msg-bubble{background:var(--wooasist-agent-bubble);color:var(--wooasist-text);border-bottom-left-radius:4px;white-space:normal}.wooasist-msg-agent .wooasist-msg-bubble code{background:rgba(0,0,0,.08);padding:2px 6px;border-radius:4px;font-size:12px;font-family:'Consolas','Monaco','Courier New',monospace;word-break:break-word}.wooasist-msg-agent .wooasist-msg-bubble pre{background:rgba(0,0,0,.06);padding:10px 12px;border-radius:8px;font-size:12px;font-family:'Consolas','Monaco','Courier New',monospace;overflow-x:auto;margin:8px 0;white-space:pre-wrap;word-break:break-word}.wooasist-msg-agent .wooasist-msg-bubble pre code{background:0 0;padding:0;border-radius:0;font-size:inherit}.wooasist-msg-agent .wooasist-msg-bubble table{font-family:inherit;border-color:var(--wooasist-border);margin:8px 0;border-collapse:collapse;width:100%;font-size:12px;background:var(--wooasist-agent-bubble)}.wooasist-msg-agent .wooasist-msg-bubble thead,.wooasist-msg-agent .wooasist-msg-bubble th{background:#7c3aed !important;color:#fff !important}.wooasist-msg-agent .wooasist-msg-bubble th,.wooasist-msg-agent .wooasist-msg-bubble td{padding:8px 12px;border:1px solid var(--wooasist-border);color:var(--wooasist-text) !important}.wooasist-msg-agent .wooasist-msg-bubble td{background:var(--wooasist-agent-bubble)}.wooasist-msg-agent .wooasist-msg-bubble tbody tr:nth-child(even) td{background:var(--wooasist-hover) !important}.wooasist-msg-agent .wooasist-msg-bubble a{color:#7c3aed;text-decoration:underline}.wooasist-msg-agent .wooasist-msg-bubble ul,.wooasist-msg-agent .wooasist-msg-bubble ol{margin:6px 0;padding-left:20px}.wooasist-msg-agent .wooasist-msg-bubble li{margin:3px 0}.wooasist-msg-agent .wooasist-msg-bubble blockquote{border-left:3px solid #7c3aed;margin:8px 0;padding:4px 12px;opacity:.85}.wooasist-msg-agent .wooasist-msg-bubble h1,.wooasist-msg-agent .wooasist-msg-bubble h2,.wooasist-msg-agent .wooasist-msg-bubble h3,.wooasist-msg-agent .wooasist-msg-bubble h4,.wooasist-msg-agent .wooasist-msg-bubble h5,.wooasist-msg-agent .wooasist-msg-bubble h6{margin:10px 0 4px;line-height:1.3}.wooasist-msg-agent .wooasist-msg-bubble h1{font-size:16px}.wooasist-msg-agent .wooasist-msg-bubble h2{font-size:15px}.wooasist-msg-agent .wooasist-msg-bubble h3{font-size:14px}.wooasist-msg-agent .wooasist-msg-bubble h4,.wooasist-msg-agent .wooasist-msg-bubble h5,.wooasist-msg-agent .wooasist-msg-bubble h6{font-size:13px}.wooasist-msg-agent .wooasist-msg-bubble hr{border:none;border-top:1px solid rgba(0,0,0,.12);margin:10px 0}.wooasist-msg-agent .wooasist-msg-bubble p{margin:6px 0}.wooasist-msg-agent .wooasist-msg-bubble p:first-child{margin-top:0}.wooasist-msg-agent .wooasist-msg-bubble p:last-child{margin-bottom:0}.wooasist-msg-agent .wooasist-msg-bubble br{content:'';display:block;margin:4px 0}.wooasist-msg-agent .wooasist-msg-bubble sub,.wooasist-msg-agent .wooasist-msg-bubble sup{font-size:11px}.wooasist-msg-time{font-size:11px;color:var(--wooasist-text-secondary);padding:0 4px}.wooasist-msg-user .wooasist-msg-time{text-align:right}.wooasist-msg-bubble-row{display:flex;flex-direction:row;align-items:flex-start;gap:2px}.wooasist-msg-agent .wooasist-msg-bubble-row{align-items:center}.wooasist-msg-revert{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex-shrink:0;background:0 0;border:none;cursor:pointer;padding:4px;border-radius:4px;color:var(--wooasist-text-secondary);opacity:0;transition:opacity .2s,background .2s,color .2s;font-size:11px}.wooasist-msg-user:hover .wooasist-msg-revert{opacity:1}.wooasist-msg-agent:hover .wooasist-msg-copy{opacity:1}.wooasist-msg-revert:hover,.wooasist-msg-copy:hover{background:rgba(0,0,0,.08);color:var(--wooasist-text)}.wooasist-msg-copy-copied{color:#22c55e !important}.wooasist-msg-copy{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex-shrink:0;background:0 0;border:none;cursor:pointer;padding:4px;border-radius:4px;color:var(--wooasist-text-secondary);opacity:0;transition:opacity .2s,background .2s,color .2s;font-size:11px}.wooasist-msg-user:hover .wooasist-msg-copy{opacity:1}.wooasist-session-expired{align-self:center !important;max-width:90%;margin:20px 0 !important}.wooasist-session-expired .wooasist-msg-content{max-width:100%}.wooasist-session-expired .wooasist-msg-bubble{background:#fff3cd;color:#664d03;border:1px solid #ffecb5;text-align:center;font-size:13px;padding:14px 18px;border-radius:10px;line-height:1.5}.wooasist-theme-dark .wooasist-session-expired .wooasist-msg-bubble{background:#332701;color:#ffd970;border-color:#664d03}.wooasist-msg-tool{opacity:.75;padding:0;justify-content:flex-start}.wooasist-msg-tool .wooasist-msg-content{max-width:100%}.wooasist-msg-tool .wooasist-msg-bubble{background:0 0;color:var(--wooasist-text-secondary);font-size:12px;font-style:italic;padding:2px 0;border-radius:0;box-shadow:none}.wooasist-theme-dark .wooasist-msg-tool .wooasist-msg-bubble{color:#999}.wooasist-msg-attachment{margin-top:4px;padding:6px 10px;background:var(--wooasist-surface);border-radius:8px;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--wooasist-text-secondary);text-decoration:none}.wooasist-msg-attachment:hover{color:var(--wooasist-text)}.wooasist-welcome{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--wooasist-text-secondary);text-align:center;padding:20px}.wooasist-welcome-icon{width:56px;height:56px;border-radius:50%;background:var(--wooasist-surface);display:flex;align-items:center;justify-content:center}.wooasist-welcome h4{color:var(--wooasist-text);margin:0;font-size:16px;font-weight:600}.wooasist-welcome p{font-size:13px;margin:0;max-width:280px}.wooasist-msg-streaming .wooasist-msg-bubble{background:var(--wooasist-agent-bubble);color:var(--wooasist-text);min-height:20px}.wooasist-msg-streaming:not(.wooasist-msg-streaming-done) .wooasist-msg-bubble:after{content:'';display:inline-block;width:6px;height:14px;margin-left:2px;background:var(--wooasist-text);animation:wooasist-blink 1s step-end infinite;vertical-align:text-bottom}@keyframes wooasist-blink{50%{opacity:0}}.wooasist-msg-error .wooasist-msg-bubble{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.wooasist-typing{padding:10px 14px;background:var(--wooasist-agent-bubble);border-radius:16px;border-bottom-left-radius:4px;display:flex;align-items:center;gap:4px;align-self:flex-start}.wooasist-typing-dot{width:6px;height:6px;border-radius:50%;background:var(--wooasist-text-secondary);animation:wooasist-typing-bounce 1.4s infinite ease-in-out}.wooasist-typing-dot:nth-child(1){animation-delay:0s}.wooasist-typing-dot:nth-child(2){animation-delay:.2s}.wooasist-typing-dot:nth-child(3){animation-delay:.4s}@keyframes wooasist-typing-bounce{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.wooasist-input-area{padding:12px 16px 16px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--wooasist-border)}.wooasist-input-row{display:flex;align-items:flex-end;gap:8px;background:var(--wooasist-input-bg);border-radius:16px;padding:8px;border:1px solid var(--wooasist-border);transition:border-color .2s}.wooasist-input-row:focus-within{border-color:var(--wooasist-text-secondary)}.wooasist-attach-btn{background:0 0;border:none;color:var(--wooasist-icon-color);cursor:pointer;padding:8px;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:color .2s;flex-shrink:0}.wooasist-attach-btn:hover{color:var(--wooasist-text)}.wooasist-attach-btn:disabled{opacity:.4;cursor:not-allowed}.wooasist-input-row textarea{flex:1;background:0 0;border:none;color:var(--wooasist-text);font-size:13px;padding:8px;resize:none;outline:none;font-family:inherit;line-height:1.5;max-height:120px;min-height:20px;overflow-y:auto;box-sizing:border-box}.wooasist-input-row textarea::placeholder{color:var(--wooasist-text-secondary)}.wooasist-input-row textarea:disabled{opacity:.5;cursor:not-allowed}.wooasist-send-btn{background:var(--wooasist-user-bubble);color:var(--wooasist-user-text);border:none;border-radius:10px;padding:8px 12px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s;flex-shrink:0;opacity:.5}.wooasist-send-btn.active{opacity:1;cursor:pointer}.wooasist-send-btn.active:hover{opacity:.85}.wooasist-send-btn:disabled{opacity:.4;cursor:not-allowed}.wooasist-cancel-btn{background:var(--wooasist-user-bubble);color:var(--wooasist-user-text);border:none;border-radius:10px;padding:8px 12px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .2s}.wooasist-cancel-btn:hover{opacity:.85}.wooasist-attachment-preview{display:none;align-items:center;gap:6px;padding:4px 10px;background:var(--wooasist-surface);border-radius:8px;font-size:12px;color:var(--wooasist-text)}.wooasist-attachment-preview.visible{display:flex}.wooasist-attachment-preview .wooasist-attach-remove{background:0 0;border:none;color:var(--wooasist-text-secondary);cursor:pointer;padding:2px;display:flex;align-items:center;border-radius:4px}.wooasist-attachment-preview .wooasist-attach-remove:hover{color:#ef4444}.wooasist-minimized-bar{display:none !important;height:48px;width:100%;background:var(--wooasist-sidebar-bg);align-items:center;padding:0 16px;gap:10px;border-bottom:1px solid var(--wooasist-border);cursor:pointer}.wooasist-minimized-bar-icon{color:var(--wooasist-text);display:flex;align-items:center}.wooasist-minimized-bar-text{flex:1;font-size:14px;font-weight:500;color:var(--wooasist-text)}.wooasist-minimized-bar-chevron{color:var(--wooasist-text-secondary);display:flex;align-items:center}.wooasist-login-required{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--wooasist-text-secondary);text-align:center;padding:20px}.wooasist-login-required-icon{width:72px;height:72px;border-radius:50%;background:var(--wooasist-surface);display:flex;align-items:center;justify-content:center;color:var(--wooasist-text-secondary)}.wooasist-login-required h4{color:var(--wooasist-text);margin:0;font-size:16px;font-weight:600}.wooasist-login-btn{display:inline-block;padding:10px 24px;background:var(--wooasist-user-bubble);color:var(--wooasist-user-text);text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;transition:opacity .2s}.wooasist-login-btn:hover{opacity:.85;color:var(--wooasist-user-text)}@media (max-width:600px){#wooasist-chat{width:100vw;height:100vh;bottom:0 !important;right:0 !important;border-radius:0 !important}#wooasist-chat.wooasist-chat-minimized{width:100vw !important;height:48px !important;border-radius:0 !important;bottom:0;right:0}.wooasist-sidebar{width:240px;min-width:240px}.wooasist-resize-handle,.wooasist-resize-handle-vertical{display:none !important}}@media (max-width:400px){.wooasist-sidebar{display:none !important}}