.qa-bot-toggle{color:#fff;cursor:pointer;z-index:9999;text-align:center;background:#000;border:2px solid #333;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:60px;height:60px;font-size:.7rem;line-height:1.2;transition:all .3s;display:flex;position:fixed;bottom:30px;left:30px;overflow:hidden;box-shadow:0 4px 12px #0006}.fullscreen-button{color:#8b4513;cursor:pointer;background:linear-gradient(135deg,gold,orange);border:1px solid #daa520;border-radius:50%;padding:5px;transition:all .2s;box-shadow:0 2px 4px #daa5204d}.fullscreen-button:hover{background:linear-gradient(135deg,orange,gold);transform:scale(1.1);box-shadow:0 4px 8px #daa52066}.toggle-image{object-fit:cover;width:36px;height:36px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;border-radius:50%;margin-bottom:2px}.qa-bot-toggle:hover{background:#111;transform:scale(1.1);box-shadow:0 6px 20px #0009}.qa-bot-toggle .toggle-text{margin-top:2px;font-weight:500}.qa-bot-container{z-index:10000;background:linear-gradient(135deg,#fff8dc,wheat);border:2px solid #daa520;border-radius:12px;flex-direction:column;width:400px;height:500px;transition:all .3s;display:none;position:fixed;bottom:100px;left:30px;overflow:hidden;box-shadow:0 8px 32px #daa5204d}:root.theme-dark .qa-bot-container{box-shadow:0 8px 32px #00000080}.qa-bot-container.show{display:flex}.qa-bot-container.fullscreen{z-index:10001;border-radius:0;width:50vw;height:100vh;position:fixed;top:0;bottom:auto;left:0}.qa-bot-container.fullscreen .chat-messages{height:calc(100vh - 140px)}.chat-header{color:#8b4513;text-align:center;background:linear-gradient(135deg,#daa520,#b8860b);border-bottom:2px solid peru;padding:12px 20px;transition:all .3s;position:relative}:root.theme-dark .chat-header{border-bottom-color:#555}.header-content{justify-content:flex-start;align-items:center;gap:12px;display:flex}.header-avatar{object-fit:cover;width:36px;height:36px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;cursor:pointer;border:2px solid #0000;border-radius:50%;transition:all .3s}.header-avatar:hover{border-color:#daa520;transform:scale(1.1);box-shadow:0 4px 12px #daa52066}.header-avatar.v2-disabled,.language-button.v2-disabled,.page-analysis-button.v2-disabled{filter:grayscale(50%);transition:all .3s;cursor:not-allowed!important;opacity:.6!important}.header-avatar.v2-disabled:hover,.language-button.v2-disabled:hover,.page-analysis-button.v2-disabled:hover{box-shadow:none;border-color:#0000;transform:none}.language-button.v2-disabled,.page-analysis-button.v2-disabled{color:#ffffff80!important;background:#ffffff1a!important;border-color:#ffffff1a!important}.swal-v2-restriction-popup{border-radius:12px;box-shadow:0 8px 32px #0000004d}.header-text{text-align:left}.header-controls{flex-wrap:nowrap;align-items:center;gap:4px;max-width:calc(100% - 30px);display:flex;position:absolute;top:10px;right:15px}.language-button{backdrop-filter:blur(10px);color:#8b4513;cursor:pointer;text-align:center;background:#ffffff26;border:1px solid #fff3;border-radius:20px;min-width:45px;padding:6px 10px;font-size:.75rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 2px 8px #0000001a}.language-button:before{content:"";background:linear-gradient(90deg,#0000,#fff3,#0000);width:100%;height:100%;transition:left .5s;position:absolute;top:0;left:-100%}.language-button:hover:before{left:100%}.language-button:hover{background:#ffffff40;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.language-text{letter-spacing:.5px;font-size:.7rem;font-weight:700}.history-button,.fullscreen-button{backdrop-filter:blur(10px);color:#8b4513;cursor:pointer;background:#ffffff26;border:1px solid #fff3;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:8px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden;box-shadow:0 2px 8px #0000001a}.history-button:before,.fullscreen-button:before{content:"";background:#fff3;border-radius:50%;width:0;height:0;transition:all .3s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.history-button:hover:before,.fullscreen-button:hover:before{width:100%;height:100%}.history-button:hover,.fullscreen-button:hover{background:#ffffff40;border-color:#ffffff4d;transform:translateY(-2px)scale(1.05);box-shadow:0 4px 12px #00000026}.history-button svg,.fullscreen-button svg{z-index:1;transition:transform .2s;position:relative}.history-button:hover svg,.fullscreen-button:hover svg{transform:scale(1.1)}.close-button{backdrop-filter:blur(10px);color:#8b4513;cursor:pointer;background:linear-gradient(135deg,#8b451333,#a0522d1a);border:1px solid #8b451366;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:8px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden;box-shadow:0 2px 8px #00000026}.close-button:before{content:"";background:linear-gradient(135deg,#8b45134d,#a0522d33);border-radius:50%;width:0;height:0;transition:all .3s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.close-button:hover:before{width:100%;height:100%}.close-button:hover{color:#654321;background:linear-gradient(135deg,#8b451340,#a0522d26);border-color:#8b451399;transform:translateY(-2px)scale(1.05);box-shadow:0 4px 12px #8b45134d}.close-button svg{z-index:1;stroke-width:3px;transition:all .3s;position:relative}.close-button:hover svg{stroke:#654321;transform:scale(1.1)rotate(90deg)}.chat-header h3{margin:0 0 4px;font-size:1.3rem;font-weight:600}.chat-header p{opacity:.9;margin:0;font-size:.85rem}:root.theme-dark .chat-header h3{text-shadow:0 1px 2px #00000080}:root.theme-dark .chat-header p{opacity:.8}.chat-messages{background:linear-gradient(135deg,#fff8dc,wheat);flex:1;min-height:0;padding:15px;transition:all .3s;overflow-y:auto}.message{align-items:flex-start;gap:12px;width:100%;margin-bottom:16px;display:flex}.user-message{flex-direction:row-reverse;justify-content:flex-end}.bot-message{justify-content:flex-start}.message-avatar{flex-shrink:0;width:36px;height:36px}.bot-avatar{object-fit:cover;width:36px;height:36px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;border-radius:50%}.message-content-wrapper{flex-direction:column;align-items:flex-start;max-width:70%;display:flex}.message-header{opacity:.8;align-items:center;gap:12px;margin-bottom:4px;font-size:.8rem;display:flex}.ai-name{color:#b8860b;text-shadow:0 1px 3px #b8860b80;font-size:.85rem;font-weight:700}.user-id{color:#8b4513;text-shadow:0 1px 2px #fffc;font-size:.75rem;font-weight:600}:root.theme-dark .ai-name{text-shadow:0 1px 2px #00000080}:root.theme-dark .user-id{text-shadow:none}.message-content{word-wrap:break-word;border-radius:12px;width:100%;padding:12px 16px;box-shadow:0 2px 8px #0000001a}.user-message .message-content{color:#8b4513;background:linear-gradient(135deg,gold,orange);border:2px solid #daa520;margin-left:auto;transition:all .3s;box-shadow:0 4px 12px #daa5204d}.bot-message .message-content{color:#8b4513;background:linear-gradient(135deg,#fff8dc,wheat);border:2px solid #daa520;margin-right:auto;transition:all .3s;box-shadow:0 4px 12px #daa52033}:root.theme-dark .user-message .message-content{box-shadow:0 4px 12px #0006}:root.theme-dark .bot-message .message-content{box-shadow:0 4px 12px #0000004d}.message-content p{text-align:justify;color:#2f1b14;text-shadow:0 1px 2px #fffc;margin:0 0 8px;font-weight:500;line-height:1.6}.bot-message .message-content p{color:#1a0f0a;font-weight:600}.user-message .message-content p{color:#8b4513;text-shadow:0 1px 2px #ffffffe6;font-weight:600}:root.theme-dark .message-content p,:root.theme-dark .bot-message .message-content p,:root.theme-dark .user-message .message-content p{color:#e0e0e0;text-shadow:none}.message-content p:last-child{margin-bottom:0}.message-content strong{color:#b8860b;text-shadow:0 0 4px #b8860b66;font-weight:700}.message-content br{margin-bottom:4px}.image-container{text-align:center;cursor:pointer;width:100%;max-width:300px;margin:8px auto;display:block}.answer-image{object-fit:contain;border-radius:8px;width:100%;height:auto;max-height:none;transition:transform .2s,box-shadow .2s;box-shadow:0 2px 8px #0003}.answer-image:hover{transform:scale(1.02);box-shadow:0 4px 16px #0000004d}:root.theme-dark .answer-image{box-shadow:0 2px 8px #0006}:root.theme-dark .answer-image:hover{box-shadow:0 4px 16px #0009}.image-modal{z-index:10002;cursor:pointer;background:#000000e6;justify-content:center;align-items:center;width:100%;height:100%;display:none;position:fixed;top:0;left:0}.image-modal.show{display:flex}.image-modal-content{cursor:default;max-width:90%;max-height:90%;position:relative}.image-modal img{object-fit:contain;border-radius:8px;width:100%;height:100%;box-shadow:0 8px 32px #00000080}.image-modal-close{color:#fff;cursor:pointer;background:#fff3;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:18px;transition:background-color .2s;display:flex;position:absolute;top:-40px;right:0}.image-modal-close:hover{background:#ffffff4d}:root.theme-dark .image-modal-close{background:#ffffff1a}:root.theme-dark .image-modal-close:hover{background:#fff3}.image-container-wrapper{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.topic-suggestions{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;margin-top:16px;padding:12px}:root.theme-dark .topic-suggestions{background:#ffffff0d;border:1px solid #ffffff1a}.topic-suggestions h4{color:#daa520;text-shadow:0 1px 2px #daa5204d;margin:0 0 12px;font-size:.9rem;font-weight:600}:root.theme-dark .topic-suggestions h4{text-shadow:0 1px 2px #00000080}.suggestion-buttons{grid-template-columns:1fr 1fr;gap:8px;display:grid}.suggestion-buttons .suggestion-btn:last-child{grid-column:1/-1}.suggestion-btn{color:#8b4513;cursor:pointer;text-align:center;background:linear-gradient(135deg,gold,orange);border:1px solid #daa520;border-radius:6px;padding:8px 12px;font-size:.8rem;font-weight:500;line-height:1.2;transition:all .2s;box-shadow:0 2px 4px #daa5204d}.suggestion-btn:hover{background:linear-gradient(135deg,orange,gold);border-color:#b8860b;transform:translateY(-2px);box-shadow:0 4px 8px #daa52066}.suggestion-btn:active{transform:translateY(0);box-shadow:0 2px 4px #daa5204d}:root.theme-dark .suggestion-btn{box-shadow:0 2px 4px #0000004d}:root.theme-dark .suggestion-btn:hover{box-shadow:0 4px 8px #0006}:root.theme-dark .suggestion-btn:active{box-shadow:0 2px 4px #0000004d}.sources-list{border-top:2px solid #daa520;margin-top:12px;padding-top:12px;transition:all .3s}:root.theme-dark .sources-list{border-top-color:#555}.sources-list h4{color:#daa520;text-shadow:0 1px 2px #daa5204d;margin:0 0 8px;font-size:.9rem;font-weight:600;transition:color .3s}:root.theme-dark .sources-list h4{text-shadow:0 1px 2px #00000080}.source-item{align-items:center;padding:6px 0;font-size:.85rem;display:flex}.source-link{color:#daa520;font-weight:500;text-decoration:none;transition:color .3s}.source-link:hover{color:#b8860b;text-shadow:0 1px 2px #daa5204d;text-decoration:underline}:root.theme-dark .source-link:hover{text-shadow:none}.source-item .similarity{color:#8b4513;margin-left:auto;font-size:.8rem;font-weight:500;transition:color .3s}.loading{color:#8b4513;align-items:center;gap:8px;font-style:italic;transition:color .3s;display:flex}.loading .spinner{border:2px solid #daa520;border-top-color:gold;border-radius:50%;width:16px;height:16px;transition:border-color .3s;animation:1s linear infinite spin}:root.theme-dark .loading{color:#e0e0e0}:root.theme-dark .loading .spinner{border:2px solid #555;border-top-color:#888}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.load-more-container{text-align:center;background:linear-gradient(135deg,#fff8dc,wheat);border-top:2px solid #daa520;padding:16px;transition:all .3s}:root.theme-dark .load-more-container{border-top-color:#555}.load-more-button{color:inherit;cursor:pointer;box-shadow:none;backdrop-filter:blur(4px);background:#ffffff14;border:1px solid #ffffff26;border-radius:4px;padding:4px 10px;font-size:.7rem;font-weight:500;transition:background .2s,transform .2s,box-shadow .2s}.load-more-button:hover{background:#ffffff26;transform:translateY(-1px)}:root.theme-dark .load-more-button{color:#e0c48c;background:#ffffff0d;border:1px solid #ffffff1a}:root.theme-dark .load-more-button:hover{background:#ffffff14}.chat-input-container{background:linear-gradient(135deg,#fff8dc,wheat);border-top:2px solid #daa520;padding:16px 20px 0;transition:all .3s}:root.theme-dark .chat-input-container{border-top-color:#555}.input-wrapper{align-items:center;gap:8px;display:flex}.chat-input{color:#8b4513;background:linear-gradient(135deg,#fff8dc,wheat);border:2px solid #daa520;border-radius:24px;outline:none;flex:1;padding:12px 16px;font-size:1rem;transition:all .3s;box-shadow:0 2px 4px #daa52033}.chat-input:focus{background:linear-gradient(135deg,#fff,#fff8dc);border-color:#b8860b;box-shadow:0 4px 8px #daa5204d}:root.theme-dark .chat-input{box-shadow:0 2px 4px #0000004d}:root.theme-dark .chat-input:focus{box-shadow:0 4px 8px #0006}.chat-input::placeholder{color:peru;transition:color .3s}.send-button{border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;padding:0;display:flex}.send-button:hover:not(:disabled){transform:scale(1.05)}.send-button:disabled{transform:none}.input-status{color:#8b4513;min-height:12px;margin-top:4px;font-size:.8rem;transition:color .3s}:root.theme-dark .input-status{color:#bbb}.error-message{color:#8b0000;font-weight:500}.success-message{color:#228b22;font-weight:500}:root.theme-dark .error-message{color:#ff6b6b}:root.theme-dark .success-message{color:#51cf66}:root.theme-dark .qa-bot-container{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);border-color:#444;box-shadow:0 8px 32px #00000080}:root.theme-dark .chat-messages{background:linear-gradient(135deg,#1a1a1a,#2a2a2a)}:root.theme-dark .user-message .message-content{color:#e0e0e0;background:linear-gradient(135deg,#333,#444);border:1px solid #555}:root.theme-dark .bot-message .message-content{color:#e0e0e0;background:linear-gradient(135deg,#2a2a2a,#333)}:root.theme-dark .chat-input{color:#e0e0e0;background:linear-gradient(135deg,#2a2a2a,#333);border-color:#555}:root.theme-dark .chat-input:focus{border-color:#666;box-shadow:0 0 0 2px #ffffff1a}:root.theme-dark .chat-input::placeholder{color:#888}:root.theme-dark .load-more-container,:root.theme-dark .chat-input-container{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);border-color:#444}:root.theme-dark .chat-header{color:#e0e0e0;background:linear-gradient(135deg,#333,#444);border-bottom-color:#555}:root.theme-dark .history-button,:root.theme-dark .close-button{color:#e0e0e0;background:#ffffff1a;border-color:#fff3}:root.theme-dark .history-button:hover,:root.theme-dark .close-button:hover{background:#fff3;border-color:#ffffff4d}:root.theme-dark .language-button{color:#e0e0e0;background:#ffffff1a;border-color:#fff3}:root.theme-dark .language-button:hover{background:#fff3;border-color:#ffffff4d}:root.theme-dark .fullscreen-button{color:#e0e0e0;background:linear-gradient(135deg,#444,#555);border-color:#666}:root.theme-dark .fullscreen-button:hover{background:linear-gradient(135deg,#555,#666);border-color:#777}:root.theme-dark .send-button{color:#e0e0e0;background:linear-gradient(135deg,#444,#555);border-color:#666}:root.theme-dark .send-button:hover:not(:disabled){background:linear-gradient(135deg,#555,#666);border-color:#777}:root.theme-dark .send-button:disabled{color:#666;background:#333;border-color:#444}:root.theme-dark .suggestion-btn{color:#e0e0e0;background:linear-gradient(135deg,#333,#444);border-color:#555}:root.theme-dark .suggestion-btn:hover{background:linear-gradient(135deg,#444,#555);border-color:#666}:root.theme-dark .load-more-button{color:#e0e0e0;background:linear-gradient(135deg,#333,#444);border-color:#555}:root.theme-dark .load-more-button:hover{background:linear-gradient(135deg,#444,#555);border-color:#666}:root.theme-dark .ai-name{color:#e0e0e0}:root.theme-dark .user-id{color:#bbb}:root.theme-dark .message-content strong{color:#fff}:root.theme-dark .topic-suggestions h4,:root.theme-dark .sources-list h4{color:#e0e0e0}:root.theme-dark .source-link{color:#4a9eff}:root.theme-dark .source-link:hover{color:#66b3ff}:root.theme-dark .similarity{color:#bbb}@media (width<=768px){.qa-bot-toggle{width:50px;height:50px;font-size:.6rem;bottom:20px;left:20px}.qa-bot-container.fullscreen{width:100vw;height:100vh}.toggle-image{width:32px;height:32px}.qa-bot-container{width:auto;height:60vh;bottom:80px;left:20px;right:20px}.toggle-text{display:none}}@media (width<=480px){.header-controls{justify-content:flex-end;gap:2px;position:absolute;top:6px;right:8px}.header-controls .close-button,.header-controls .history-button,.header-controls .fullscreen-button{width:26px;height:26px;padding:3px}.header-controls .language-button{width:auto;min-width:35px;height:26px;padding:3px 6px;font-size:.65rem}.header-controls .close-button svg,.header-controls .history-button svg,.header-controls .fullscreen-button svg{display:block}}.qa-bot-toggle{bottom:calc(30px + env(safe-area-inset-bottom,0px))}@media (width<=768px){.qa-bot-toggle{bottom:calc(20px + env(safe-area-inset-bottom,0px))}.qa-bot-container{bottom:calc(80px + env(safe-area-inset-bottom,0px))}}@media (width<=480px){.qa-bot-container{bottom:calc(70px + env(safe-area-inset-bottom,0px))}}:root{--qabot-btn-color:#4a360d;--qabot-btn-bg:linear-gradient(145deg, #fffbe6 0%, #ffebb2 100%);--qabot-btn-bg-hover:linear-gradient(145deg, #ffebb2 0%, #fffbe6 100%);--qabot-btn-border:#d1b15b;--qabot-btn-shadow:0 2px 4px #d1b15b40;--qabot-btn-shadow-hover:0 4px 8px #d1b15b59}:root.theme-dark{--qabot-btn-color:#e0e0e0;--qabot-btn-bg:linear-gradient(145deg, #333 0%, #444 100%);--qabot-btn-bg-hover:linear-gradient(145deg, #444 0%, #555 100%);--qabot-btn-border:#555;--qabot-btn-shadow:0 2px 4px #0000004d;--qabot-btn-shadow-hover:0 4px 8px #0006}.qa-bot-container button:not(.btn),.qa-bot-container .suggestion-btn,.qa-bot-container .load-more-button{background:var(--qabot-btn-bg);color:var(--qabot-btn-color);border:1px solid var(--qabot-btn-border);box-shadow:var(--qabot-btn-shadow);cursor:pointer;border-radius:8px;outline:none;font-family:Segoe UI,Helvetica Neue,PingFang TC,微軟正黑體,sans-serif;font-weight:600;transition:background .2s,transform .15s,box-shadow .2s;position:relative;overflow:hidden}.qa-bot-container button:not(.btn):hover:not(:disabled),.qa-bot-container .suggestion-btn:hover,.qa-bot-container .load-more-button:hover{background:var(--qabot-btn-bg-hover);box-shadow:var(--qabot-btn-shadow-hover);transform:translateY(-1px)}.qa-bot-container button:not(.btn):focus-visible{outline-offset:2px;outline:2px solid #ffc53d}.qa-bot-container button:not(.btn):active:not(:disabled),.qa-bot-container .suggestion-btn:active,.qa-bot-container .load-more-button:active{transform:translateY(0);box-shadow:inset 0 2px 4px #0000001a}.qa-bot-container .send-button:disabled{color:#8a8a8a;cursor:not-allowed;box-shadow:none;background:#e5e5e5;border-color:#c1c1c1;transform:none}.qa-bot-container .fullscreen-button,.qa-bot-container .history-button,.qa-bot-container .close-button,.qa-bot-container .send-button{border-radius:50%}.qa-bot-container .suggestion-btn{text-align:center;text-wrap:balance;white-space:normal;border-radius:12px;justify-content:center;align-items:center;min-height:44px;padding:8px 14px;font-size:.85rem;line-height:1.3;display:flex}.qa-bot-container .load-more-button{border-radius:999px;width:100%;padding:8px 0}.avatar-selector{z-index:10002;backdrop-filter:blur(10px);background:linear-gradient(135deg,#fff8dc,wheat);border:2px solid #daa520;border-radius:16px;min-width:300px;max-width:500px;padding:20px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 40px #0000004d}:root.theme-dark .avatar-selector{background:linear-gradient(135deg,#2a2a2a,#1a1a1a);border-color:#555;box-shadow:0 12px 40px #0009}.avatar-selector-title{text-align:center;color:#8b4513;margin:0 0 20px;font-size:1.2rem;font-weight:600}:root.theme-dark .avatar-selector-title{color:#daa520}.avatar-grid{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:15px;max-height:300px;display:grid;overflow-y:auto}.avatar-item{cursor:pointer;background:#ffffff1a;border:2px solid #0000;border-radius:12px;flex-direction:column;align-items:center;padding:10px;transition:all .3s;display:flex}.avatar-item:hover{background:#daa52033;border-color:#daa520;transform:translateY(-2px);box-shadow:0 4px 12px #daa5204d}.avatar-item.active{background:#daa5204d;border-color:#daa520;box-shadow:0 4px 12px #daa52066}:root.theme-dark .avatar-item{background:#ffffff0d}:root.theme-dark .avatar-item:hover{background:#daa52026}:root.theme-dark .avatar-item.active{background:#daa52040}.avatar-selector-img{object-fit:cover;width:48px;height:48px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;border:2px solid #daa520;border-radius:50%;margin-bottom:0;transition:all .3s}.avatar-item:hover .avatar-selector-img{border-color:#b8860b;transform:scale(1.1)}.avatar-item.active .avatar-selector-img{border-color:#b8860b;box-shadow:0 0 10px #daa52099}.avatar-name{color:#8b4513;text-align:center;font-size:.8rem;font-weight:500;line-height:1.2}:root.theme-dark .avatar-name{color:#daa520}.bot-switch-message{color:#8b4513;text-align:center;background:linear-gradient(135deg,#daa520,#b8860b);border-radius:8px;margin:0;padding:8px 12px;font-weight:600;animation:3s ease-in-out fadeInOut}:root.theme-dark .bot-switch-message{color:#daa520;background:linear-gradient(135deg,#555,#333)}@keyframes fadeInOut{0%{opacity:0;transform:translateY(-10px)}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.avatar-selector-loading{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:40px 20px;display:flex}.avatar-selector-loading .loading-spinner{border:3px solid #f3f3f3;border-top-color:#daa520;border-radius:50%;width:40px;height:40px;margin-bottom:15px;animation:1s linear infinite spin}.avatar-selector-loading p{color:#8b4513;margin:0;font-size:.9rem;font-weight:500}:root.theme-dark .avatar-selector-loading .loading-spinner{border-color:#daa520 #333 #333}:root.theme-dark .avatar-selector-loading p{color:#daa520}@media (width<=768px){.avatar-selector{min-width:280px;max-width:90vw;padding:15px}.avatar-grid{grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:10px}.avatar-selector-img{width:40px;height:40px}.avatar-name{font-size:.7rem}}@media (width<=480px){.avatar-selector{min-width:250px;padding:12px}.avatar-grid{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:8px}.avatar-selector-img{width:36px;height:36px}.avatar-name{font-size:.65rem}}.avatar-img-wrap{aspect-ratio:1;margin-bottom:8px;font-size:0;line-height:0;display:inline-block;position:relative}.avatar-item{position:relative}body.avatars-locked .avatar-img-wrap:after,body.avatars-locked .message-avatar:after{content:"";-webkit-backdrop-filter:blur(2px);pointer-events:none;z-index:20;background:#00000073;border-radius:50%;position:absolute;inset:0}.message-avatar{position:relative}body.avatars-locked .avatar-img-wrap img,body.avatars-locked .message-avatar img{user-select:none;-webkit-user-drag:none}.page-analysis-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50,#45a049);border:1px solid #4caf50;border-radius:50%;padding:5px;transition:all .2s;box-shadow:0 2px 4px #4caf504d}.page-analysis-button:hover{background:linear-gradient(135deg,#45a049,#4caf50);transform:scale(1.1);box-shadow:0 4px 8px #4caf5066}:root.theme-dark .page-analysis-button{background:linear-gradient(135deg,#2e7d32,#1b5e20);border-color:#2e7d32;box-shadow:0 2px 4px #2e7d324d}:root.theme-dark .page-analysis-button:hover{background:linear-gradient(135deg,#1b5e20,#2e7d32);box-shadow:0 4px 8px #2e7d3266}.analysis-panel{background:linear-gradient(135deg,#e8f5e8,#f0f8f0);border-top:1px solid #4caf50;margin:0;padding:15px}:root.theme-dark .analysis-panel{background:linear-gradient(135deg,#1b2e1b,#0f1a0f);border-top-color:#2e7d32}.pa-wrapper{flex-direction:column;gap:12px;display:flex}.pa-title{color:#2e7d32;margin:0 0 8px;font-size:14px;font-weight:600}:root.theme-dark .pa-title{color:#4caf50}.pa-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;display:grid}.pa-type-btn{cursor:pointer;text-align:left;background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:8px 12px;font-size:12px;line-height:1.3;transition:all .2s}.pa-type-btn:hover{background:#f1f8e9;border-color:#4caf50}.pa-type-btn.active{color:#2e7d32;background:#e8f5e8;border-color:#4caf50}:root.theme-dark .pa-type-btn{color:#e0e0e0;background:#2d2d2d;border-color:#555}:root.theme-dark .pa-type-btn:hover{background:#1b2e1b;border-color:#4caf50}:root.theme-dark .pa-type-btn.active{color:#4caf50;background:#1b2e1b;border-color:#4caf50}.pa-desc{opacity:.7;margin-top:2px;font-size:10px}.pa-start-btn{width:100%;font-size:14px}.pa-start-btn:hover:not(:disabled){transform:translateY(-1px)}.pa-start-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.analysis-metadata{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-left:4px solid #4caf50;border-radius:8px;margin-top:12px;padding:12px}:root.theme-dark .analysis-metadata{background:linear-gradient(135deg,#2d2d2d,#1a1a1a);border-left-color:#4caf50}.analysis-info{flex-wrap:wrap;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.analysis-type{color:#fff;background:#4caf50;border-radius:12px;padding:2px 8px;font-weight:500}.content-length{color:#666;background:#f0f0f0;border-radius:12px;padding:2px 8px}:root.theme-dark .content-length{color:#ccc;background:#444}.page-url{color:#2196f3;cursor:pointer;background:#e3f2fd;border-radius:12px;padding:2px 8px;text-decoration:underline}:root.theme-dark .page-url{color:#64b5f6;background:#1a237e}.analysis-actions{gap:8px;margin-top:8px;display:flex}.reanalyze-btn,.copy-btn{flex:1;font-size:12px}.reanalyze-btn:hover,.copy-btn:hover{transform:translateY(-1px)}@media (width<=768px){.pa-grid{grid-template-columns:1fr}.analysis-info{flex-direction:column;gap:4px}.analysis-actions{flex-direction:column}}@media (width<=480px){.analysis-panel{padding:10px}.pa-type-btn{padding:6px 8px;font-size:11px}.pa-start-btn{padding:8px 12px;font-size:13px}}
