.layout-container{height:100vh;background:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;overflow:hidden}.layout-container>*{height:100%}.cookie-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9998;animation:fadeIn .3s ease-out}.cookie-modal{position:absolute;bottom:20px;left:50%;transform:translate(-50%);background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-width:1200px;width:98%;height:auto;min-height:300px;max-height:45vh;overflow:hidden;z-index:9999;animation:slideInUp .4s ease-out}.cookie-header{padding:16px 24px 0;border-bottom:1px solid #e5e7eb;margin-bottom:12px}.cookie-logo{display:flex;align-items:center;gap:8px}.cookie-logo-icon{background:#8b5cf6;border-radius:8px;padding:8px;display:flex;align-items:center;justify-content:center}.cookie-logo-text{font-size:14px;font-weight:600;color:#1f2937}.cookie-title{font-size:16px;font-weight:700;color:#1f2937;margin:0 0 10px;padding:0 24px}.cookie-content{padding:0 24px 12px;color:#374151;line-height:1.4}.cookie-content p{margin:0 0 6px;font-size:12px}.cookie-content p:last-child{margin-bottom:0}.cookie-warning{background:#fef3c7;border:1px solid #f59e0b;border-radius:6px;padding:6px 10px;margin:8px 0;font-size:11px}.cookie-link{color:#8b5cf6;text-decoration:underline;transition:color .2s;font-size:11px}.cookie-link:hover{color:#7c3aed}.cookie-buttons{display:flex;gap:10px;padding:12px 24px 16px;border-top:1px solid #e5e7eb}.cookie-button{flex:1;padding:10px 16px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s;border:2px solid}.cookie-button-secondary{background:#fff;color:#8b5cf6;border-color:#8b5cf6}.cookie-button-secondary:hover{background:#f8fafc;transform:translateY(-1px)}.cookie-button-primary{background:#8b5cf6;color:#fff;border-color:#8b5cf6}.cookie-button-primary:hover{background:#7c3aed;border-color:#7c3aed;transform:translateY(-1px)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideInUp{0%{opacity:0;transform:translate(-50%) translateY(20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media (max-width: 640px){.cookie-modal{bottom:10px;width:99%;max-height:55vh}.cookie-header,.cookie-title,.cookie-content,.cookie-buttons{padding-left:16px;padding-right:16px}.cookie-buttons{flex-direction:column;gap:8px}.cookie-button{width:100%;padding:8px 12px;font-size:11px}.cookie-title{font-size:14px;margin-bottom:8px}.cookie-content p{font-size:11px;margin-bottom:4px}.cookie-warning{font-size:10px;padding:4px 8px;margin:6px 0}.cookie-link{font-size:10px}}.cookie-button:focus{outline:2px solid #8b5cf6;outline-offset:2px}@media (prefers-reduced-motion: reduce){.cookie-overlay,.cookie-modal{animation:none}.cookie-button:hover{transform:none}}.chat-container{height:calc(100vh - 80px)!important;display:flex;align-items:center;justify-content:flex-start;background:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;padding:20px}.chat-modal{width:90%;max-width:1000px;height:90vh;background:#fff;border-radius:16px;display:flex;overflow:hidden;box-shadow:0 20px 40px #0000004d;position:relative}.chat-sidebar{width:100px;background:#f7fafc;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:center;padding:20px 0;gap:20px}.sidebar-btn{width:70px;height:32px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;color:#4a5568;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;gap:6px;font-size:10px;font-weight:500}.sidebar-btn:hover{background:#f7fafc;border-color:#cbd5e0;transform:translateY(-1px)}.sidebar-btn.active{background:#667eea;color:#fff;border-color:#667eea}.sidebar-btn:disabled{opacity:.5;cursor:not-allowed;background:#f8fafc;color:#94a3b8}.sidebar-btn:disabled:hover{background:#f8fafc;color:#94a3b8;transform:none}.sidebar-btn-text{font-size:11px;line-height:1}.chat-main{flex:1;display:flex;flex-direction:column;background:#fff;position:relative;width:60%}.chat-models-panel{width:40%;background:#f8fafc;border-left:1px solid #e2e8f0;display:flex;flex-direction:column;overflow:hidden}.models-panel-header{padding:16px 20px;border-bottom:1px solid #e2e8f0;background:#fff;display:flex;align-items:center;justify-content:space-between}.models-panel-title{display:flex;align-items:center;gap:8px;font-weight:600;color:#1f2937;font-size:14px}.models-panel-nav{display:flex;gap:4px}.models-nav-btn{width:28px;height:28px;border-radius:4px;border:1px solid #e2e8f0;background:#fff;color:#6b7280;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.models-nav-btn:hover:not(:disabled){background:#f3f4f6;border-color:#d1d5db}.models-nav-btn:disabled{opacity:.4;cursor:not-allowed}.models-counter{padding:12px 20px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;text-align:center}.counter-text{font-size:12px;font-weight:500;color:#475569}.active-filters{padding:12px 16px;background:#fef3c7;border-bottom:1px solid #f59e0b}.filters-title{font-size:12px;font-weight:600;color:#92400e;margin-bottom:8px}.filters-list{display:flex;flex-wrap:wrap;gap:6px}.filter-tag{display:flex;align-items:center;background:#fff;border:1px solid #f59e0b;border-radius:12px;padding:4px 8px;font-size:11px;color:#92400e;gap:4px}.filter-remove{background:none;border:none;color:#f59e0b;font-size:14px;font-weight:700;cursor:pointer;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}.filter-remove:hover{background:#f59e0b;color:#fff}.models-panel-content{flex:1;overflow-y:auto;padding:16px}.models-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:12px;color:#6b7280}.models-loading-spinner{width:24px;height:24px;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.models-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0}.model-card{background:#fff;border-radius:8px;border:1px solid #e2e8f0;overflow:hidden;transition:all .2s ease;cursor:pointer;box-shadow:0 1px 3px #0000001a}.model-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.model-image{width:100%;height:120px;overflow:hidden;background:linear-gradient(135deg,#f1f5f9,#e2e8f0);display:flex;align-items:center;justify-content:center;position:relative}.model-image img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .2s ease}.model-image img:hover{transform:scale(1.05)}.model-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;color:#9ca3af;gap:4px}.placeholder-icon{font-size:24px}.placeholder-text{font-size:10px;text-align:center}.model-info{padding:8px;background:#fafafa}.model-name{font-size:12px;font-weight:600;color:#1f2937;margin:0 0 4px;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-details{display:flex;flex-direction:column;gap:2px}.model-stats{display:flex;gap:4px;justify-content:center;margin-bottom:2px}.stat-item{font-size:9px;color:#6b7280;white-space:nowrap}.model-location{font-size:9px;color:#6b7280;text-align:center}.model-hair{font-size:9px;color:#6b7280;font-weight:500;text-align:center}.model-badges{display:flex;gap:2px;flex-wrap:wrap;justify-content:center;margin-top:4px}.model-verified{font-size:8px;color:#059669;background:#d1fae5;padding:1px 4px;border-radius:2px;font-weight:500}.model-blonde{font-size:8px;color:#92400e;background:#fef3c7;padding:1px 4px;border-radius:2px;font-weight:500}.models-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:12px;color:#9ca3af}.models-empty-icon{width:32px;height:32px;opacity:.5}.chat-header{padding:20px 24px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:12px}.header-logo{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.header-logo img{width:100%;height:100%;object-fit:contain}.header-title{font-size:18px;font-weight:600;color:#2d3748}.messages-area{flex:1;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:20px}.message-container{display:flex;flex-direction:column;gap:8px}.message-container.user{align-items:flex-end}.message-container.assistant{align-items:flex-start}.message-bubble{max-width:60%;padding:16px 20px;border-radius:18px;font-size:14px;line-height:1.5;word-wrap:break-word;word-break:break-word;text-align:left;position:relative;width:fit-content;min-width:200px}.message-bubble.user{background:#e2e8f0;color:#2d3748;border-bottom-right-radius:6px}.message-bubble.assistant{background:#667eea;color:#fff;border-bottom-left-radius:6px;width:100%;max-width:60%}.message-bubble.system{background:#fed7d7;color:#c53030;border-bottom-left-radius:6px}.message-debug{font-size:11px;color:#718096;margin-top:4px;padding:4px 8px;background:#f7fafc;border-radius:6px;border:1px solid #e2e8f0}.message-timestamp{font-size:11px;color:#a0aec0;margin-top:4px}.loading-container{display:flex;justify-content:flex-start;padding:0 24px 8px}.loading-dots{display:flex;gap:4px}.loading-dot{width:6px;height:6px;background:#9ca3af;border-radius:50%;animation:loading-bounce 1.4s infinite}.loading-dot:nth-child(2){animation-delay:.1s}.loading-dot:nth-child(3){animation-delay:.2s}@keyframes loading-bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.message-bubble .loading-dots{display:flex;gap:4px;align-items:center;margin-top:8px}.message-bubble .loading-dot{width:6px;height:6px;background:#a0aec0;border-radius:50%;animation:loading-bounce 1.4s infinite ease-in-out both}.message-bubble .loading-dot:nth-child(1){animation-delay:-.32s}.message-bubble .loading-dot:nth-child(2){animation-delay:-.16s}.message-bubble strong{font-weight:700;color:inherit}.message-bubble em{font-style:italic;color:inherit}.message-bubble code{background:#fff3;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9em;color:inherit}.token-counter{padding:8px 24px;background:#f7fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;font-size:12px;font-weight:500;color:#667eea;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px}.token-counter-icon{width:16px;height:16px;color:#667eea}.input-area{padding:20px 24px;border-top:1px solid #e2e8f0;background:#fff;width:100%}.input-container{display:flex;align-items:center;gap:12px}.input-field textarea{width:100%;padding:16px 26px 16px 20px;background:#f7fafc;border:1px solid #e2e8f0;border-radius:24px;font-size:14px;outline:none;transition:all .2s;font-family:inherit;line-height:1.4}.input-field textarea:focus{border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.input-field textarea:disabled{background:#edf2f7;color:#a0aec0}.input-field textarea::placeholder{color:#a0aec0}.input-field textarea::-webkit-scrollbar{width:6px}.input-field textarea::-webkit-scrollbar-track{background:transparent;border-radius:3px}.input-field textarea::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px;border:1px solid #e2e8f0}.input-field textarea::-webkit-scrollbar-thumb:hover{background:#a0aec0}.input-field textarea{scrollbar-width:thin;scrollbar-color:#cbd5e0 transparent}.send-btn{width:48px;height:48px;background:#4a5568;color:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.send-btn:hover:not(:disabled){background:#2d3748;transform:scale(1.05)}.send-btn:disabled{background:#cbd5e0;cursor:not-allowed;transform:none}.send-btn.stop-btn{background:#e53e3e;animation:pulse 2s infinite}.send-btn.stop-btn:hover{background:#c53030}.voice-btn{width:48px;height:48px;background:#4a5568;color:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.voice-btn:hover{background:#2d3748;transform:scale(1.05)}.voice-btn.recording{background:#e53e3e;animation:pulse 2s infinite;position:relative}.recording-indicator{position:absolute;top:-2px;right:-2px;width:12px;height:12px;background:red;border-radius:50%;animation:blink 1s infinite;font-size:8px;color:#fff;display:flex;align-items:center;justify-content:center}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:.3}}.close-btn{position:absolute;top:16px;right:16px;width:40px;height:40px;background:#4a5568;color:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;z-index:1000}.close-btn:hover{background:#2d3748;transform:scale(1.1)}.messages-area::-webkit-scrollbar{width:6px}.messages-area::-webkit-scrollbar-track{background:transparent}.messages-area::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px}.messages-area::-webkit-scrollbar-thumb:hover{background:#a0aec0}.mobile-menu-btn{display:none;position:absolute;right:-50%;transform:translateY(300%);align-items:center;gap:8px;padding:8px 12px;background:#667eea;color:#fff;border:none;cursor:pointer;transition:all .2s;position:relative;font-size:17px;font-weight:700;height:70px;width:90px;border-radius:40px 0 0 40px;z-index:100}.mobile-layout-forced .main-content{flex-direction:column!important}.mobile-layout-forced .iframe-panel{display:none!important}.mobile-layout-forced .chat-panel{width:100%!important}.mobile-layout-forced .header-actions .resize-btn{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}.mobile-layout-forced .header-actions .mobile-menu-btn{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.mobile-layout-forced .iframe-panel{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}.mobile-layout-forced .chat-panel{width:100%!important;max-width:100%!important;min-width:100%!important}.mobile-layout-forced .mobile-menu-overlay .active-filters-bar,.mobile-layout-forced .mobile-menu-overlay [class*=filter],.mobile-layout-forced .mobile-menu-overlay [class*=Filter]{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.mobile-menu-btn.debug-visible,.mobile-menu-btn.mobile-visible{display:flex!important}.chat-container.mobile-full-height{height:calc(100vh - 80px)!important;min-height:450px!important;max-height:calc(100vh - 80px)!important;background:#fff!important}@media (max-width: 768px){.chat-container{height:calc(100vh - 80px)!important;min-height:450px!important;max-height:none!important}.messages-container{flex:1!important;min-height:400px!important;max-height:calc(100vh - 150px)!important;background:#fff!important}}.debug-mobile-btn{width:40px;height:40px;background:#4a5568;color:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;font-size:14px;margin-left:8px}.resize-btn.mobile-hidden{display:none!important}.debug-mobile-btn:hover{background:#2d3748;transform:scale(1.1)}.mobile-menu-btn:hover{background:#5a67d8;transform:translateY(301%)}.mobile-menu-btn.active{background:#4c51bf}.mobile-menu-text{font-size:14px}.mobile-notification-dot{position:absolute;top:-4px;left:-4px;width:20px;height:20px;background:green;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;animation:notification-pulse 2s infinite;border:2px solid white}@keyframes notification-pulse{0%{transform:scale(1);box-shadow:0 0 #e53e3eb3}50%{transform:scale(1.1);box-shadow:0 0 0 10px #e53e3e00}to{transform:scale(1);box-shadow:0 0 #e53e3e00}}.mobile-menu-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:1000;display:flex;align-items:center;justify-content:flex-end}.mobile-menu-overlay .active-filters-bar{background:#667eea!important;color:#fff!important;padding:12px 16px!important;margin:0!important;border-radius:0!important;font-weight:600!important;font-size:14px!important}.mobile-menu-overlay .active-filters-bar .filter-tag{background:#fff3!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)!important}.mobile-menu-content{width:100%;height:100%;background:#fff;display:flex;flex-direction:column;animation:slideInRight .3s ease-out}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}.mobile-menu-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:#f7fafc;position:sticky;top:0;z-index:10}.mobile-menu-header h3{margin:0;font-size:18px;font-weight:600;color:#2d3748}.mobile-menu-close{width:40px;height:40px;background:#4a5568;color:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.mobile-menu-close:hover{background:#2d3748;transform:scale(1.1)}.mobile-menu-body{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#fff}.mobile-menu-body .active-filters-bar,.mobile-menu-body .iframe-container{margin:0!important;border-radius:0!important}.mobile-menu-overlay .iframe-container{flex:1;position:relative;height:100%;background:#fff!important}.mobile-menu-overlay .models-iframe{width:100%;height:100%;border:none;background:#fff!important}.mobile-menu-overlay .iframe-panel{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;height:100%!important;position:relative!important;left:0!important;top:0!important}@media (max-width: 768px){.main-content{flex-direction:column!important;display:flex!important;height:calc(100vh - 80px)!important}.iframe-panel{display:none!important;width:0!important;height:0!important;visibility:hidden!important;position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}.resize-btn.mobile-hidden{display:none!important}.header-actions .resize-btn{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}.header-actions .mobile-menu-btn{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.chat-panel{width:100%!important;max-width:100%!important;min-width:100%!important;flex:1!important;left:0!important;right:0!important;position:relative!important;background:#fff!important}.mobile-menu-btn{display:flex!important;visibility:visible!important;opacity:1!important}.mobile-menu-text{display:block!important}.active-filters-bar,[class*=filter],[class*=Filter]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}.mobile-menu-overlay .active-filters-bar,.mobile-menu-overlay [class*=filter],.mobile-menu-overlay [class*=Filter]{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.chat-container{height:calc(100vh - 80px)!important;width:100%!important;max-height:none!important;background:#fff!important}.chat-sidebar{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}.message-bubble{max-width:85%}.chat-header,.messages-area,.input-area{padding:16px 20px}.token-counter{padding:6px 20px}.loading-container{padding:0 20px 6px 16px}@media (max-width: 480px){.mobile-menu-text{font-size:12px}.mobile-menu-btn{padding:8px;min-width:40px}.chat-title{font-size:18px;width:100%;display:flex;justify-content:flex-end}.header-stats{display:none!important}.message-bubble{max-width:90%;padding:12px 16px}.input-container{gap:8px}.send-btn,.voice-btn{width:44px;height:44px}.token-counter{padding:6px 16px;font-size:11px}.loading-container{padding:0 16px 4px}}}.configuration-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem 0 4rem;overflow-y:auto}.configuration-container{max-width:1400px;margin:0 auto;padding:0 1rem;min-height:calc(100vh - 4rem)}.configuration-header{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;padding:2rem;margin-bottom:2rem;box-shadow:0 20px 40px #0000001a;border:1px solid rgba(255,255,255,.2)}.configuration-title{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.configuration-title h1{font-size:2.5rem;font-weight:800;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin:0}.configuration-subtitle{color:#6b7280;font-size:1.1rem;margin:0}.configuration-actions{display:flex;gap:1rem;margin-top:1.5rem}.configuration-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}.configuration-card{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;padding:2rem;box-shadow:0 20px 40px #0000001a;border:1px solid rgba(255,255,255,.2);transition:all .3s ease}.configuration-card:hover{transform:translateY(-5px);box-shadow:0 25px 50px #00000026}.card-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #f3f4f6}.card-header h2{font-size:1.5rem;font-weight:700;margin:0;color:#1f2937}.card-icon{width:2rem;height:2rem;color:#3b82f6}.category-section{margin-bottom:1.5rem}.category-title{font-size:1.1rem;font-weight:600;color:#374151;margin-bottom:1rem;padding:.5rem 1rem;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:10px;text-transform:capitalize}.agent-item{background:#f9fafb;border:2px solid #e5e7eb;border-radius:12px;padding:1rem;margin-bottom:.75rem;cursor:pointer;transition:all .2s ease}.agent-item:hover{border-color:#3b82f6;background:#eff6ff}.agent-item.selected{border-color:#3b82f6;background:linear-gradient(135deg,#eff6ff,#dbeafe);box-shadow:0 4px 12px #3b82f626}.agent-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem}.agent-name{font-weight:600;color:#1f2937;font-size:1rem}.agent-tool-count{background:#3b82f6;color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600}.agent-description{color:#6b7280;font-size:.875rem;line-height:1.4}.tool-item{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:.75rem;margin-bottom:.5rem;transition:all .2s ease}.tool-item:hover{background:#f3f4f6;border-color:#d1d5db}.tool-checkbox{display:flex;align-items:flex-start;gap:.75rem}.tool-checkbox input[type=checkbox]{margin-top:.25rem;width:1.25rem;height:1.25rem;accent-color:#3b82f6}.tool-info{flex:1}.tool-name{font-weight:600;color:#1f2937;font-size:.9rem;margin-bottom:.25rem}.tool-description{color:#6b7280;font-size:.8rem;line-height:1.4;margin-bottom:.5rem}.tool-parameters{background:#f3f4f6;padding:.5rem;border-radius:6px;font-size:.75rem;color:#4b5563}.selected-agent-info{background:linear-gradient(135deg,#eff6ff,#dbeafe);border:2px solid #3b82f6;border-radius:12px;padding:1rem;margin-bottom:1.5rem}.selected-agent-title{font-weight:600;color:#1e40af;margin-bottom:.5rem}.selected-agent-subtitle{color:#3b82f6;font-size:.875rem}.empty-state{text-align:center;padding:3rem 1rem;color:#9ca3af}.empty-state-icon{width:4rem;height:4rem;margin:0 auto 1rem;color:#d1d5db}.test-section{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;padding:2rem;box-shadow:0 20px 40px #0000001a;border:1px solid rgba(255,255,255,.2)}.test-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}.test-field{display:flex;flex-direction:column}.test-label{font-weight:600;color:#374151;margin-bottom:.5rem;font-size:.9rem}.test-input{padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:.9rem;transition:border-color .2s ease}.test-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.test-button{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.test-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #8b5cf64d}.test-button:disabled{opacity:.5;cursor:not-allowed}.sync-button{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem}.sync-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #10b9814d}.sync-button:disabled{opacity:.5;cursor:not-allowed}.loading-spinner{animation:spin 1s linear infinite}@media (max-width: 1024px){.configuration-grid,.test-grid{grid-template-columns:1fr}}@media (max-width: 768px){.configuration-page{padding:1rem 0}.configuration-container{padding:0 .5rem}.configuration-header{padding:1.5rem}.configuration-title h1{font-size:2rem}.configuration-card{padding:1.5rem}.configuration-actions{flex-direction:column}}.configuration-page::-webkit-scrollbar{width:12px}.configuration-page::-webkit-scrollbar-track{background:#ffffff1a;border-radius:6px}.configuration-page::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:6px;border:2px solid transparent;background-clip:content-box}.configuration-page::-webkit-scrollbar-thumb:hover{background:#ffffff80;background-clip:content-box}.fade-in{animation:fadeIn .5s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.slide-in{animation:slideIn .3s ease-out}.scroll-indicator{position:fixed;bottom:20px;right:20px;background:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:50px;padding:.5rem 1rem;font-size:.8rem;color:#374151;box-shadow:0 4px 12px #0000001a;z-index:1000;opacity:.8;transition:opacity .3s ease}.scroll-indicator:hover{opacity:1}.analytics-dashboard{min-height:100vh;background:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;padding:1rem;overflow-y:auto}.analytics-container{max-width:1400px;margin:0 auto;padding:0}.analytics-header{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;margin-bottom:1.5rem;position:relative;overflow:hidden}.analytics-header:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.analytics-header-content{display:flex;align-items:center;gap:1rem}.analytics-logo{background:#667eea;border-radius:8px;padding:.5rem;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px -1px #667eea33}.analytics-title-section{flex:1}.refresh-button{background:#8b5cf6;color:#fff;border:none;border-radius:8px;padding:.5rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;margin-left:1rem;box-shadow:0 2px 4px -1px #8b5cf633;min-width:40px;min-height:40px;z-index:10;position:relative}.refresh-button:hover{background:#7c3aed;transform:scale(1.05);box-shadow:0 4px 8px -1px #8b5cf64d}.refresh-button:active{transform:scale(.95)}.refresh-button svg{transition:transform .2s ease}.refresh-button:hover svg{transform:rotate(180deg)}.clear-database-button{background:#dc2626;color:#fff;border:none;border-radius:8px;padding:.5rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;margin-left:.5rem;box-shadow:0 2px 4px -1px #dc262633;min-width:40px;min-height:40px;z-index:10;position:relative}.clear-database-button:hover{background:#b91c1c;transform:scale(1.05);box-shadow:0 4px 8px -1px #dc26264d}.clear-database-button:active{transform:scale(.95)}.clear-database-button svg{transition:transform .2s ease}.clear-database-button:hover svg{transform:scale(1.1)}.status-database-button{background:#059669;color:#fff;border:none;border-radius:8px;padding:.5rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;margin-left:.5rem;box-shadow:0 2px 4px -1px #05966933;min-width:40px;min-height:40px;z-index:10;position:relative}.status-database-button:hover{background:#047857;transform:scale(1.05);box-shadow:0 4px 8px -1px #0596694d}.status-database-button:active{transform:scale(.95)}.status-database-button svg{transition:transform .2s ease}.status-database-button:hover svg{transform:scale(1.1)}.performance-header{margin-bottom:2rem}.performance-title{font-size:1.5rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.performance-subtitle{color:#6b7280;font-size:1rem}.performance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.performance-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a;border:1px solid #e2e8f0;transition:all .3s ease}.performance-card:hover{transform:translateY(-2px);box-shadow:0 8px 15px -1px #00000026}.performance-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.performance-card-title{font-size:1.125rem;font-weight:600;color:#2d3748}.performance-card-icon{font-size:1.5rem}.performance-card-value{font-size:2rem;font-weight:700;color:#667eea;margin-bottom:.5rem}.performance-card-subtitle{color:#6b7280;font-size:.875rem}.performance-details{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a;border:1px solid #e2e8f0}.performance-section-title{font-size:1.25rem;font-weight:600;color:#2d3748;margin-bottom:1rem}.performance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.performance-metric{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.metric-label{font-weight:500;color:#4a5568}.metric-value{font-weight:600;color:#667eea}.analytics-title{color:#2d3748;font-size:1.75rem;font-weight:700;margin-bottom:.25rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.analytics-subtitle{color:#6b7280;font-size:1rem}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:2rem;margin-bottom:2rem}.dashboard-main,.dashboard-sidebar{display:flex;flex-direction:column;gap:2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;position:relative;overflow:hidden;transition:all .3s ease}.stat-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.stat-card:hover{transform:translateY(-4px);box-shadow:0 25px 50px #0006}.stat-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.stat-icon{background:#667eea;border-radius:8px;padding:.5rem;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px -1px #667eea33}.stat-value{font-size:1.5rem;font-weight:700;color:#667eea;margin-bottom:.25rem}.stat-label{font-size:.875rem;color:#6b7280;font-weight:500;margin-bottom:.5rem}.stat-change{display:flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600}.stat-change svg{width:.75rem;height:.75rem;flex-shrink:0}.stat-change span{font-size:.625rem;line-height:1}.stat-change.positive{color:#10b981}.stat-change.negative{color:#ef4444}.main-chart-section{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;position:relative;overflow:hidden}.main-chart-section:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.chart-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem}.chart-title{font-size:1.5rem;font-weight:700;color:#2d3748}.chart-controls{display:flex;align-items:center;gap:1rem}.chart-selector{padding:.5rem 1rem;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#374151;font-size:.875rem;cursor:pointer}.kpis-section{background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;margin-bottom:1.5rem;position:relative;overflow:hidden}.kpis-header{margin-bottom:1.5rem;text-align:center}.kpis-title{font-size:1.25rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.kpis-subtitle{font-size:.875rem;color:#6b7280}.kpis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.kpi-card{background:#f8fafc;border-radius:12px;padding:1.5rem;display:flex;align-items:center;gap:1rem;border:1px solid #e2e8f0;transition:all .3s ease}.kpi-card:hover{transform:translateY(-2px);box-shadow:0 8px 12px -1px #00000026}.kpi-icon{background:#667eea;border-radius:10px;padding:.75rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.kpi-content{flex:1}.kpi-value{font-size:1.5rem;font-weight:700;color:#2d3748;margin-bottom:.25rem}.kpi-label{font-size:.75rem;color:#6b7280;font-weight:500}.geographic-section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.geographic-title{font-size:1rem;font-weight:600;color:#2d3748;margin-bottom:1rem;text-align:center}.locations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.location-item{background:#f8fafc;border-radius:8px;padding:1rem;display:flex;align-items:center;gap:.75rem;border:1px solid #e2e8f0;transition:all .2s ease}.location-item:hover{background:#e0e7ff;border-color:#667eea}.location-flag{font-size:1.5rem;flex-shrink:0}.location-info{flex:1}.location-name{font-size:.75rem;font-weight:.75rem;color:#2d3748;margin-bottom:.25rem}.location-count{font-size:.625rem;color:#667eea;font-weight:500}.kpis-section:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.kpi-card{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;border-bottom:1px solid #f3f4f6}.kpi-card:last-child{border-bottom:none}.kpi-info{flex:1;padding:10px}.kpi-label{font-size:.875rem;color:#6b7280;margin-bottom:.25rem}.kpi-value{font-size:1.5rem;font-weight:700;color:#2d3748}.kpi-date{font-size:.75rem;color:#9ca3af}.kpi-icon{background:#667eea;border-radius:6px;padding:.375rem;display:flex;align-items:center;justify-content:center;margin-left:.75rem}.bottom-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2rem;margin-bottom:2rem}.bottom-card{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;position:relative;overflow:hidden;max-height:300px}.bottom-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.bottom-card-title{font-size:1.125rem;font-weight:600;color:#2d3748;margin-bottom:1rem}.activity-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-bottom:1px solid #f3f4f6;overflow:hidden}.activity-item:last-child{border-bottom:none}.activity-icon{width:1.5rem;height:1.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.625rem;font-weight:600;color:#fff}.activity-icon.blue{background:#667eea}.activity-icon.green{background:#10b981}.activity-icon.red{background:#ef4444}.activity-content{flex:1}.activity-title{font-size:.875rem;font-weight:500;color:#2d3748;margin-bottom:.25rem}.activity-description{font-size:.75rem;color:#6b7280}.analytics-tabs{background:#fff;border-radius:16px;box-shadow:0 20px 40px #0000004d;border:1px solid #e2e8f0;margin-bottom:2rem;position:relative;overflow:hidden;padding:10px}.analytics-tabs:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.tabs-container{padding:.5rem}.tabs-nav{display:flex;gap:.5rem;flex-wrap:wrap}.tab-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;font-size:.875rem;transition:all .3s ease;cursor:pointer;border:none;background:transparent;color:#6b7280;position:relative;overflow:hidden}.tab-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.tab-button:hover:before{left:100%}.tab-button.active{background:#667eea;color:#fff;transform:none;box-shadow:0 4px 6px -1px #667eea4d}.tab-button:hover{background:#5a67d8;color:#fff;transform:translateY(-2px)}.chart-container{height:300px;position:relative}.chart-container-small{height:200px;position:relative}.progress-section{display:flex;flex-direction:column;gap:1rem}.progress-item{margin-bottom:1rem}.progress-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.progress-label{font-size:.875rem;font-weight:500;color:#2d3748}.progress-value{font-size:.875rem;font-weight:600;color:#667eea}.progress-bar{width:100%;height:8px;background:#f3f4f6;border-radius:4px;overflow:hidden;position:relative}.progress-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);border-radius:4px;transition:width .3s ease}.progress-indicator{position:absolute;top:50%;transform:translateY(-50%);width:12px;height:12px;background:#667eea;border-radius:50%;border:2px solid white;box-shadow:0 2px 4px #0000001a}@media (max-width: 1024px){.dashboard-grid,.bottom-grid{grid-template-columns:1fr;gap:1rem}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.main-chart-section{padding:1rem}.chart-container{height:250px}.chart-container-small{height:180px}}@media (max-width: 768px){.analytics-dashboard{padding:.5rem}.analytics-header{padding:1rem}.analytics-title{font-size:1.5rem}.analytics-subtitle{font-size:.875rem}.stats-grid{grid-template-columns:1fr;gap:.75rem}.stat-card{padding:.75rem}.stat-value{font-size:1.25rem}.main-chart-section{padding:1rem}.chart-container{height:200px}.chart-container-small{height:150px}.chart-header{flex-direction:column;align-items:flex-start;gap:.75rem}.bottom-card{padding:.75rem}.activity-item{padding:.5rem 0}.insights-content{grid-template-columns:1fr;gap:.75rem}.insight-section{padding:.75rem}.faq-item{flex-direction:column;align-items:flex-start;gap:.5rem}.chatlog-modal{width:95%;margin:1rem}.sessions-stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.session-stat-card{padding:1rem}.sessions-details-grid{grid-template-columns:1fr;gap:1rem}.session-detail-card{padding:1rem}.filter-usage-item,.faq-usage-item{flex-direction:column;align-items:flex-start;gap:.5rem}}.stat-card,.main-chart-section,.kpis-section,.bottom-card{animation:fadeInUp .6s ease-out}.stat-card:nth-child(1){animation-delay:.1s}.stat-card:nth-child(2){animation-delay:.2s}.stat-card:nth-child(3){animation-delay:.3s}.stat-card:nth-child(4){animation-delay:.4s}.weekly-summary-section{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;margin-bottom:2rem;position:relative;overflow:hidden}.weekly-summary-section:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.summary-header{margin-bottom:1.5rem}.summary-title{font-size:1.25rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.summary-subtitle{color:#6b7280;font-size:.875rem}.insights-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.insight-section{background:#f8fafc;border-radius:8px;padding:1rem;border-left:4px solid #667eea}.insight-title{font-size:.875rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.insight-text{font-size:.75rem;color:#4a5568;line-height:1.4}.loading-insights{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;color:#6b7280}.loading-spinner{width:2rem;height:2rem;border:2px solid #e2e8f0;border-top:2px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.faq-section{display:flex;flex-direction:column;gap:.75rem}.faq-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background:#f8fafc;border-radius:6px;border-left:3px solid #667eea}.faq-question{display:flex;align-items:center;gap:.5rem;flex:1}.faq-number{background:#667eea;color:#fff;width:1.25rem;height:1.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.625rem;font-weight:600}.faq-text{font-size:.75rem;color:#2d3748;font-weight:500}.faq-count{font-size:.625rem;color:#667eea;font-weight:600;background:#e0e7ff;padding:.25rem .5rem;border-radius:4px}.bottom-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.filters-list{display:flex;flex-direction:column;gap:.75rem}.filter-list-item{display:flex;align-items:center;gap:1rem;padding:.75rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0;transition:all .2s ease}.filter-list-item:hover{background:#e0e7ff;border-color:#667eea;transform:translate(4px)}.filter-rank{background:#667eea;color:#fff;width:1.5rem;height:1.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;flex-shrink:0}.filter-details{flex:1;display:flex;justify-content:space-between;align-items:center}.filter-name{font-size:.875rem;font-weight:500;color:#2d3748}.filter-usage{font-size:.75rem;color:#667eea;font-weight:600;background:#e0e7ff;padding:.25rem .5rem;border-radius:4px}.view-more-btn{background:#667eea;color:#fff;padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:500;border:none;cursor:pointer;transition:all .2s ease}.view-more-btn:hover{background:#5a67d8;transform:translateY(-1px)}.sessions-table-section{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem}.table-section-title{font-size:1.125rem;font-weight:600;color:#2d3748}.sessions-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.session-stat-card{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem;display:flex;align-items:center;gap:1rem;transition:all .3s ease}.session-stat-card:hover{transform:translateY(-2px);box-shadow:0 8px 12px -1px #00000026,0 4px 6px -1px #0000001a}.stat-card-icon{background:#667eea;border-radius:10px;padding:.75rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-card-content{flex:1}.stat-card-value{font-size:1.5rem;font-weight:700;color:#2d3748;margin-bottom:.25rem}.stat-card-label{font-size:.75rem;color:#6b7280;font-weight:500}.sessions-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.session-detail-card{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem}.detail-card-header{margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid #f3f4f6}.detail-card-title{font-size:1rem;font-weight:600;color:#2d3748}.detail-card-content{display:flex;flex-direction:column;gap:.5rem}.filter-usage-item,.faq-usage-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background:#f8fafc;border-radius:6px;border-left:3px solid #667eea}.filter-name,.faq-question-text{font-size:.75rem;color:#2d3748;font-weight:500;flex:1;margin-right:.5rem}.filter-count,.faq-count{font-size:.625rem;color:#667eea;font-weight:600;background:#e0e7ff;padding:.25rem .5rem;border-radius:4px;flex-shrink:0}.chatlog-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.chatlog-modal{background:#fff;border-radius:12px;width:90%;max-width:800px;max-height:80vh;overflow:hidden;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.chatlog-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e2e8f0;background:#f8fafc;position:relative}.chatlog-title{font-size:1.125rem;font-weight:600;color:#2d3748;padding-right:3rem;margin:0}.chatlog-close{background:none;border:none;color:#6b7280;cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s ease;min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center;position:absolute;top:1rem;right:1rem;z-index:20}.chatlog-close:hover{background:#f3f4f6;color:#374151;transform:scale(1.1)}.chatlog-close svg{width:20px;height:20px;stroke-width:2}.chatlog-content{padding:1rem;max-height:60vh;overflow-y:auto}.chat-message{margin-bottom:1rem}.message-user{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.5rem}.message-agent{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.5rem;flex-direction:row-reverse}.user-avatar,.agent-avatar{width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;flex-shrink:0}.user-avatar{background:#667eea;color:#fff}.agent-avatar{background:#10b981;color:#fff}.message-bubble{padding:.75rem;border-radius:12px;max-width:70%;word-wrap:break-word}.message-bubble.user{background:#667eea;color:#fff}.message-bubble.agent{background:#f3f4f6;color:#2d3748}.message-timestamp{font-size:.625rem;color:#9ca3af;text-align:center;margin:.5rem 0}.analytics-dashboard::-webkit-scrollbar{width:8px}.analytics-dashboard::-webkit-scrollbar-track{background:#f1f5f9}.analytics-dashboard::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:4px}.analytics-dashboard::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#5a67d8,#667eea)}@media (max-width: 768px){.filter-list-item{padding:.5rem}.filter-details{flex-direction:column;align-items:flex-start;gap:.25rem}.filter-usage{align-self:flex-end}.sessions-stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.session-stat-card{padding:1rem}.sessions-details-grid{grid-template-columns:1fr;gap:1rem}.session-detail-card{padding:1rem}.filter-usage-item,.faq-usage-item{flex-direction:column;align-items:flex-start;gap:.5rem}.errors-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.error-item{flex-direction:column;align-items:flex-start;gap:.5rem}.error-severity{align-self:flex-end}}.errors-section{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e2e8f0;padding:1.5rem}.errors-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #f3f4f6}.errors-title{font-size:1.25rem;font-weight:600;color:#2d3748}.errors-subtitle{font-size:.875rem;color:#6b7280}.errors-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.error-stat-card{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:1rem;text-align:center}.error-stat-value{font-size:1.5rem;font-weight:700;color:#dc2626;margin-bottom:.5rem}.error-stat-label{font-size:.75rem;color:#991b1b;font-weight:500}.errors-table{background:#fff;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0}.errors-table-header{background:#f8fafc;padding:1rem;border-bottom:1px solid #e2e8f0}.errors-table-title{font-size:1rem;font-weight:600;color:#2d3748}.error-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #f3f4f6;transition:background-color .2s ease}.error-item:hover{background:#f8fafc}.error-item:last-child{border-bottom:none}.error-info{flex:1}.error-type{font-size:.875rem;font-weight:600;color:#dc2626;margin-bottom:.25rem}.error-message{font-size:.75rem;color:#6b7280;margin-bottom:.25rem}.error-timestamp{font-size:.625rem;color:#9ca3af}.error-severity{padding:.25rem .5rem;border-radius:4px;font-size:.625rem;font-weight:600;text-transform:uppercase}.error-severity.high{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.error-severity.medium{background:#fffbeb;color:#d97706;border:1px solid #fed7aa}.error-severity.low{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}.errors-table-content{max-height:400px;overflow-y:auto}.no-errors{padding:2rem;text-align:center;color:#6b7280;font-style:italic}.overflow-x-auto{overflow-x:auto}.min-w-full{min-width:100%}.divide-y{border-top-width:0}.divide-y>*+*{border-top-width:1px}.divide-gray-200{border-color:#e5e7eb}.bg-gray-50{background-color:#f9fafb}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-left{text-align:left}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.bg-white{background-color:#fff}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.whitespace-nowrap{white-space:nowrap}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-gray-900{color:#111827}.text-gray-500{color:#6b7280}.bg-blue-600{background-color:#2563eb}.bg-red-600{background-color:#dc2626}.text-white{color:#fff}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.rounded-lg{border-radius:.5rem}.hover\:bg-blue-700:hover{background-color:#1d4ed8}.hover\:bg-red-700:hover{background-color:#b91c1c}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inline-flex{display:inline-flex}.leading-5{line-height:1.25rem}.font-semibold{font-weight:600}.rounded-full{border-radius:9999px}.bg-green-100{background-color:#dcfce7}.text-green-800{color:#166534}.flex{display:flex}.space-x-2>*+*{margin-left:.5rem}.justify-between{justify-content:space-between}.items-center{align-items:center}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.bg-blue-500{background-color:#3b82f6}.bg-green-500{background-color:#10b981}.hover\:bg-blue-600:hover{background-color:#2563eb}.hover\:bg-green-600:hover{background-color:#059669}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.rounded{border-radius:.25rem}.text-xs{font-size:.75rem;line-height:1rem}tbody tr:hover{background-color:#f9fafb}@media (max-width: 768px){.overflow-x-auto{overflow-x:scroll}.px-6{padding-left:1rem;padding-right:1rem}.py-4{padding-top:.75rem;padding-bottom:.75rem}.text-sm{font-size:.75rem}}.session-details-summary{display:flex;flex-direction:column;gap:.25rem}.detail-item{display:flex;align-items:center;gap:.5rem}.detail-label{font-size:.625rem;color:#6b7280;font-weight:500;min-width:45px}.detail-value{font-size:.625rem;color:#2d3748;font-weight:600;background:#f3f4f6;padding:.125rem .375rem;border-radius:4px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 768px){.session-details-summary{gap:.125rem}.detail-item{gap:.25rem}.detail-label{min-width:35px;font-size:.5rem}.detail-value{font-size:.5rem;max-width:80px;padding:.125rem .25rem}}.session-details-modal{max-width:1000px;width:95%}.session-details-content{padding:1.5rem;max-height:70vh;overflow-y:auto}.session-overview-section{margin-bottom:2rem}.section-title{font-size:1.125rem;font-weight:600;color:#2d3748;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.overview-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;display:flex;align-items:center;gap:.75rem}.overview-icon{font-size:1.5rem;flex-shrink:0}.overview-content{flex:1}.overview-label{font-size:.75rem;color:#6b7280;margin-bottom:.25rem}.overview-value{font-size:1rem;font-weight:600;color:#2d3748}.session-section{margin-bottom:2rem;padding:1.5rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.geographic-info,.token-analysis{display:flex;flex-direction:column;gap:.75rem}.info-item,.token-stat{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.info-label,.token-label{font-size:.875rem;color:#6b7280;font-weight:500}.info-value,.token-value{font-size:.875rem;color:#2d3748;font-weight:600}.filters-analysis{display:flex;flex-direction:column;gap:1rem}.filter-analysis-item{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:1rem}.filter-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.filter-name{font-size:.875rem;font-weight:600;color:#2d3748}.filter-count{font-size:.75rem;color:#667eea;background:#e0e7ff;padding:.25rem .5rem;border-radius:4px;font-weight:600}.filter-values{display:flex;flex-wrap:wrap;gap:.5rem}.filter-value-badge{font-size:.75rem;color:#2d3748;background:#f3f4f6;padding:.25rem .5rem;border-radius:4px;border:1px solid #e2e8f0}.searches-timeline{display:flex;flex-direction:column;gap:1rem}.timeline-item{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:1rem}.timeline-time{font-size:.75rem;color:#6b7280;margin-bottom:.5rem}.timeline-query{font-size:.875rem;color:#2d3748;font-weight:500;margin-bottom:.5rem}.timeline-filters{display:flex;flex-wrap:wrap;gap:.25rem}.timeline-filter{font-size:.625rem;color:#667eea;background:#e0e7ff;padding:.125rem .375rem;border-radius:4px}@media (max-width: 768px){.session-details-modal{width:98%;margin:.5rem}.overview-grid{grid-template-columns:1fr;gap:.75rem}.session-section{padding:1rem}.info-item,.token-stat{flex-direction:column;align-items:flex-start;gap:.25rem}}button{border:none!important;outline:none!important;box-shadow:none!important}button:focus{outline:none!important;box-shadow:none!important}button:hover,.action-button,.export-button,.detail-button,.chatlog-button,.bg-blue-600,.bg-blue-500,.bg-purple-500,.bg-red-600,.hover\:bg-blue-700,.hover\:bg-purple-600,.hover\:bg-red-700{border:none!important;outline:none!important;box-shadow:none!important}.export-button,.detail-button,.chatlog-button{border:none!important;outline:none!important;box-shadow:none!important;border-width:0!important;border-style:none!important;border-color:transparent!important}button[class*=bg-],button[class*="hover:"],button[class*=transition]{border:none!important;outline:none!important;box-shadow:none!important}.cookie-policy-page{min-height:100vh!important;background:#fff!important;padding:1rem!important;position:relative!important;height:100vh!important;max-height:none!important;width:100%!important;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif!important;overflow-y:scroll!important}.cookie-policy-container{max-width:800px!important;margin:0 auto!important;padding:0!important;min-height:100%!important;height:auto!important;overflow:visible!important;padding-bottom:2rem!important;display:block!important}.cookie-policy-prose{max-width:none!important;width:100%!important;overflow:visible!important;height:auto!important;min-height:auto!important;padding-bottom:3rem!important}.cookie-types-container{display:flex!important;flex-direction:column!important;gap:1rem!important;margin-bottom:2rem!important}.cookie-types-container{display:flex!important;flex-direction:column!important;gap:1.5rem!important}.cookie-policy-header{background:#fff!important;border-radius:12px!important;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f!important;border:1px solid #e2e8f0!important;padding:1.5rem!important;margin-bottom:1.5rem!important;position:relative!important;overflow:hidden!important}.cookie-policy-header:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.cookie-policy-logo{background:#667eea!important;border-radius:8px!important;padding:.5rem!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 4px -1px #667eea33!important;width:40px!important;height:40px!important}.cookie-policy-title{color:#2d3748!important;font-size:1.875rem!important;font-weight:700!important;margin-bottom:.5rem!important;background:linear-gradient(135deg,#667eea,#764ba2)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important}.cookie-policy-subtitle{color:#6b7280;font-size:1rem}.cookie-policy-back-link{display:inline-flex!important;align-items:center!important;gap:.375rem!important;color:#667eea!important;font-weight:500!important;text-decoration:none!important;transition:all .2s ease!important;padding:.5rem 1rem!important;border-radius:6px!important;background:#667eea!important;color:#fff!important;border:1px solid #667eea!important;font-size:13px!important;white-space:nowrap!important}.cookie-policy-back-link:hover{background:#5a67d8!important;border-color:#5a67d8!important;transform:translateY(-1px)!important;box-shadow:0 4px 6px -1px #667eea4d!important}.cookie-policy-content{background:#fff!important;border-radius:12px!important;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f!important;border:1px solid #e2e8f0!important;padding:1.5rem!important;position:relative!important;overflow:visible!important;margin-bottom:1.5rem!important;width:100%!important;min-height:auto!important}.cookie-policy-content:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.cookie-policy-section-title{color:#1f2937!important;font-size:1.25rem!important;font-weight:600!important;margin-bottom:1rem!important;position:relative!important;padding-left:1rem!important}.cookie-policy-section-title:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:2px}.cookie-policy-text{color:#374151;line-height:1.7;margin-bottom:1.5rem}.cookie-type-card{border-left:4px solid!important;padding-left:1rem!important;margin-bottom:1rem!important;background:#f8fafc80!important;border-radius:0 8px 8px 0!important;padding:1rem!important;transition:all .3s ease!important;position:relative!important;overflow:hidden!important}.cookie-type-card:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#8b5cf60d,#7c3aed0d);opacity:0;transition:opacity .3s ease}.cookie-type-card:hover:before{opacity:1}.cookie-type-card:hover{transform:translate(4px);box-shadow:0 4px 12px -1px #0000001a}.cookie-type-card.technical{border-left-color:#10b981}.cookie-type-card.analytics{border-left-color:#667eea}.cookie-type-card.marketing{border-left-color:#f59e0b}.cookie-type-card.preferences{border-left-color:#ef4444}.cookie-type-title{color:#1f2937;font-size:1.125rem;font-weight:600;margin-bottom:.75rem;display:flex;align-items:center;gap:.5rem}.cookie-type-description{color:#374151;margin-bottom:.75rem;font-weight:500}.cookie-type-list{list-style:none;padding:0;margin:.75rem 0}.cookie-type-list li{color:#6b7280;position:relative;padding:.25rem 0 .25rem 1.5rem}.cookie-type-list li:before{content:"•";color:#667eea;font-weight:700;position:absolute;left:0}.cookie-type-legal{font-size:.875rem;color:#9ca3af;margin-top:.75rem;padding:.5rem;background:#667eea1a;border-radius:6px;border-left:3px solid #667eea}.cookie-settings-box{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-radius:12px;padding:1.5rem;margin-bottom:2rem;border:1px solid #e5e7eb;position:relative;overflow:hidden}.cookie-settings-box:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.cookie-settings-title{color:#1f2937;font-weight:600;margin-bottom:1rem;font-size:1.125rem}.cookie-browser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-top:1rem}.cookie-browser-item{background:#fff;padding:1rem;border-radius:8px;border:1px solid #e5e7eb;transition:all .2s ease}.cookie-browser-item:hover{border-color:#667eea;box-shadow:0 2px 4px -1px #667eea1a}.cookie-browser-item strong{color:#667eea;font-weight:600}.cookie-rights-list{list-style:none;padding:0;margin:1rem 0}.cookie-rights-list li{color:#374151;border-bottom:1px solid #f3f4f6;position:relative;padding:.75rem 0 .75rem 2rem}.cookie-rights-list li:last-child{border-bottom:none}.cookie-rights-list li:before{content:"✓";color:#667eea;font-weight:700;position:absolute;left:0;background:#667eea1a;width:1.5rem;height:1.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem}.cookie-contact-box{background:linear-gradient(135deg,#667eea1a,#764ba21a);border-radius:12px;padding:1.5rem;border:1px solid rgba(102,126,234,.2);position:relative;overflow:hidden}.cookie-contact-box:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2,#5a67d8)}.cookie-contact-info{margin-top:1rem}.cookie-contact-info p{color:#374151;margin-bottom:.5rem;display:flex;align-items:center;gap:.5rem}.cookie-contact-info strong{color:#667eea;min-width:80px}.cookie-footer{margin-top:2rem!important;padding-top:1.5rem!important;padding-bottom:1.5rem!important;border-top:1px solid #e5e7eb!important;text-align:center!important}.cookie-footer-text{font-size:.875rem;color:#9ca3af;line-height:1.6}@media (max-width: 768px){.cookie-policy-container{padding:0 .5rem!important;max-width:100%!important}.cookie-policy-header,.cookie-policy-content{padding:1rem!important}.cookie-policy-title{font-size:1.5rem!important}.cookie-policy-logo{width:32px!important;height:32px!important;padding:.375rem!important}.cookie-browser-grid{grid-template-columns:1fr!important}.cookie-type-card{padding:.75rem!important}.cookie-policy-page{padding:.5rem!important;overflow-y:scroll!important;-webkit-overflow-scrolling:touch!important}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.cookie-policy-header,.cookie-policy-content{animation:fadeInUp .6s ease-out}.cookie-type-card{animation:fadeInUp .6s ease-out;animation-delay:calc(var(--animation-order) * .1s)}.cookie-policy-page::-webkit-scrollbar{width:8px}.cookie-policy-page::-webkit-scrollbar-track{background:#f1f5f9}.cookie-policy-page::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:4px}.cookie-policy-page::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#5a67d8,#667eea)}html,body{height:100%!important;overflow-x:hidden!important}.cookie-policy-page{overflow-y:scroll!important;-webkit-overflow-scrolling:touch!important}.app-container{height:100vh;width:100vw;overflow:hidden}.toast-container{z-index:9999}*{box-sizing:border-box}body{margin:0;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{height:100vh;width:100vw}@tailwind base;@tailwind components;@tailwind utilities;html{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;background-color:#fff;color:#111827;line-height:1.6}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.animate-fade-in{animation:fadeIn .3s ease-out}.animate-slide-in{animation:slideIn .3s ease-out}.animate-pulse-slow{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-bounce-slow{animation:bounce 1.5s infinite}.btn-primary{@apply bg-purple-600 hover:bg-purple-700 text-white font-medium px-4 py-2 rounded-lg transition-colors duration-200;}.btn-secondary{@apply bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium px-4 py-2 rounded-lg transition-colors duration-200;}.btn-ghost{@apply text-gray-600 hover:text-gray-800 hover:bg-gray-50 font-medium px-4 py-2 rounded-lg transition-colors duration-200;}.input-primary{@apply w-full px-4 py-3 border-2 border-purple-200 rounded-xl focus:ring-2 focus:ring-purple-500 focus:border-transparent outline-none text-gray-700 placeholder-gray-500 transition-all duration-200;}.input-secondary{@apply w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent text-sm transition-all duration-200;}.card{@apply bg-white border border-gray-200 rounded-xl shadow-sm hover:shadow-md transition-all duration-200;}.card-hover{@apply hover:border-purple-300 hover:shadow-lg;}.message-bubble{@apply max-w-3xl rounded-2xl px-6 py-4;}.message-user{@apply bg-purple-600 text-white;}.message-assistant{@apply bg-gray-100 text-gray-800;}.message-system{@apply bg-red-100 text-red-800;}.gradient-purple{background:linear-gradient(135deg,#8b5cf6,#ec4899)}.gradient-blue{background:linear-gradient(135deg,#3b82f6,#06b6d4)}.gradient-green{background:linear-gradient(135deg,#10b981,#059669)}.gradient-yellow{background:linear-gradient(135deg,#f59e0b,#d97706)}.loading-dots{display:flex;gap:4px;align-items:center;margin-top:8px}.loading-dots>div{width:8px;height:8px;background-color:currentColor;border-radius:50%;animation:bounce 1.4s ease-in-out infinite both}.loading-dots>div:nth-child(1){animation-delay:-.32s}.loading-dots>div:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(.8);opacity:.7}40%{transform:scale(1.2);opacity:1}}.typing-indicator{@apply inline-block w-2 h-4 bg-current animate-pulse ml-1;}.message-bubble .loading-dots{display:flex!important;gap:4px!important;align-items:center!important;margin-top:8px!important;margin-left:8px!important}.message-bubble .loading-dots>div{width:8px!important;height:8px!important;background-color:#fff!important;border-radius:50%!important;animation:bounce 1.4s ease-in-out infinite both!important;opacity:1!important;visibility:visible!important}.sidebar-item{@apply w-full flex items-center justify-between px-3 py-2 rounded-lg text-sm font-medium transition-colors duration-200;}.sidebar-item-active{@apply bg-purple-50 text-purple-700 border border-purple-200;}.sidebar-item-inactive{@apply text-gray-600 hover:bg-gray-50 hover:text-gray-900;}.project-card{@apply bg-white rounded-lg p-4 border border-gray-200 hover:bg-gray-50 transition-colors duration-200;}.project-card-active{@apply bg-gray-50 border-purple-200;}@media (max-width: 768px){.sidebar{@apply w-64 transform -translate-x-full transition-transform duration-300;}.sidebar-open{@apply translate-x-0;}.main-content{@apply w-full;}}@media (max-width: 640px){.action-cards{@apply grid-cols-1;}.input-options{@apply flex-col space-y-2;}}.focus-ring{@apply focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2;}.transition-smooth{@apply transition-all duration-200 ease-in-out;}.models-iframe-container{width:100%;height:100%;min-height:600px;overflow:hidden;border-radius:8px}.models-iframe{width:100%;height:100%;min-height:600px;border:none;border-radius:8px}.fullscreen-layout{display:flex;flex-direction:column;height:100vh;background:#fff}.main-header{display:flex;justify-content:center;align-items:center;padding:8px 16px;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 2px #0000000d}.header-center{display:flex;align-items:center;gap:16px}.brand-logo{display:flex;flex-direction:column;align-items:center;text-align:center}.header-logo{width:160px;height:auto;margin-bottom:4px}.logo-subtext{font-size:.8rem;color:#718096;font-weight:400;margin-top:2px}.header-stats{display:flex;gap:12px}.stat-item{display:flex;align-items:center;gap:8px;font-size:1.1rem;color:#4a5568;font-weight:500}.social-icon{width:24px;height:24px;object-fit:contain}.main-content{display:flex;flex:1;overflow:hidden}.chat-panel{display:flex;flex-direction:column;background:#fff;border-right:1px solid #e2e8f0;transition:width .3s ease}.chat-header{padding:16px 20px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;display:flex;justify-content:space-between;align-items:center;margin:16px;box-shadow:0 2px 4px #0000000d;position:relative}.chat-title{font-size:1.1rem;font-weight:700;color:#1e293b;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;text-align:center;flex:1}.header-actions{display:flex;gap:12px;align-items:center}.toggle-debug-btn-overlay{position:absolute;bottom:-14px;left:20px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;cursor:pointer;padding:8px;border-radius:50%;font-size:.8rem;transition:all .2s;display:flex;align-items:center;justify-content:center;width:28px;height:28px;font-weight:600;z-index:10;box-shadow:0 2px 4px #0000001a}.toggle-debug-btn-overlay:hover{background:#e2e8f0;color:#475569;border-color:#cbd5e1;transform:scale(1.05)}.resize-btn{background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;cursor:pointer;padding:8px;border-radius:6px;font-size:.9rem;transition:all .2s;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-weight:600}.resize-btn:hover{background:#e2e8f0;color:#475569;border-color:#cbd5e1;transform:scale(1.05)}.debug-bar{padding:16px 20px;border:1px solid #e2e8f0;border-radius:8px;display:flex;gap:12px;background:#fff;margin:0 16px 16px;box-shadow:0 2px 4px #0000000d}.chat-container{flex:1;display:flex;flex-direction:column;overflow:hidden}.messages-container{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:16px}.message-wrapper{display:flex;flex-direction:column;gap:4px}.message-wrapper.user{align-items:flex-end}.message-wrapper.assistant{align-items:flex-start}.message-wrapper.system{align-items:center}.message-bubble{max-width:80%;padding:12px 16px;border-radius:18px;font-size:.95rem;line-height:1.5;word-wrap:break-word;position:relative}.message-bubble.user{background:#f7fafc;color:#2d3748;border:1px solid #e2e8f0;border-bottom-right-radius:6px}.message-bubble.assistant{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-left-radius:6px;margin-bottom:8px}.message-bubble.assistant:last-child{margin-bottom:0}.message-bubble.system{background:#ffc1071a;color:#856404;border:1px solid rgba(255,193,7,.3);border-radius:12px;font-size:.9rem;text-align:center;max-width:90%}.message-debug{font-size:.8rem;color:#718096;margin-top:4px;font-family:Courier New,monospace}.message-timestamp{font-size:.75rem;color:#a0aec0;margin-top:4px}.token-counter{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#f7fafc;border-top:1px solid #e2e8f0;font-size:.85rem;color:#4a5568}.token-counter-icon{width:14px;height:14px;color:#718096}.input-area{padding:16px 20px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin:16px;box-shadow:0 2px 4px #0000000d}.input-container{display:flex;gap:12px;align-items:flex-end}.input-field{flex:1;position:relative}.input-field textarea{width:100%;padding:12px 16px;border:1px solid #e2e8f0;border-radius:12px;font-size:.95rem;line-height:1.4;background:#f8fafc;transition:all .2s;font-family:inherit}.input-field textarea:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.input-field textarea:disabled{background:#f1f5f9;color:#a0aec0;cursor:not-allowed}.send-btn,.voice-btn{width:44px;height:44px;border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0;box-shadow:0 2px 4px #0000001a}.send-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.send-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 8px #667eea4d}.send-btn:disabled{background:#cbd5e0;color:#a0aec0;cursor:not-allowed;transform:none;box-shadow:none}.send-btn.stop-btn{background:linear-gradient(135deg,#e53e3e,#c53030)}.send-btn.stop-btn:hover{box-shadow:0 4px 8px #e53e3e4d}.voice-btn{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.voice-btn:hover{background:#e2e8f0;border-color:#cbd5e1;color:#475569;transform:translateY(-1px)}.voice-btn.recording{background:linear-gradient(135deg,#e53e3e,#c53030);color:#fff;border-color:#e53e3e;animation:pulse 1.5s infinite}@keyframes pulse{0%{box-shadow:0 0 #e53e3eb3}70%{box-shadow:0 0 0 10px #e53e3e00}to{box-shadow:0 0 #e53e3e00}}.action-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:.9rem;color:#64748b;cursor:pointer;transition:all .2s;font-weight:500}.action-btn:hover{background:#e2e8f0;border-color:#cbd5e1;color:#475569;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.action-btn.active{background:#667eea1a;border-color:#667eea;color:#667eea}.action-icon{width:16px;height:16px}.iframe-panel{background:#f8fafc;display:flex;flex-direction:column}.iframe-container{width:100%;height:calc(100% - 60px);overflow:hidden;flex:1;transition:height .3s ease}.models-iframe{width:100%;height:100%;border:none}@media (min-width: 1200px){.main-content{flex-direction:row}.chat-panel{width:33.333%;height:100%}.iframe-panel{width:66.667%;height:100%}.header-logo{width:180px}.chat-title{font-size:1.2rem}.message-bubble{max-width:70%}.input-area{padding:20px 24px}.input-field textarea{padding:16px 20px;font-size:1rem}}@media (min-width: 1024px) and (max-width: 1199px){.main-content{flex-direction:row}.chat-panel{width:40%;height:100%}.iframe-panel{width:60%;height:100%}.header-logo{width:160px}.message-bubble{max-width:75%}}@media (min-width: 768px) and (max-width: 1023px){.main-content{flex-direction:column}.chat-panel{width:100%;height:45%}.iframe-panel{width:100%;height:55%}.header-logo{width:140px}.header-stats{display:flex;gap:8px}.stat-item{font-size:1rem}.chat-title{font-size:1.1rem}.message-bubble{max-width:80%}.input-area{padding:16px 20px}.input-field textarea{padding:14px 18px;font-size:.95rem}.send-btn,.voice-btn{width:48px;height:48px}}@media (min-width: 600px) and (max-width: 767px){.main-content{flex-direction:column}.chat-panel,.iframe-panel{width:100%;height:50%}.main-header{padding:6px 12px}.header-center{gap:12px}.header-logo{width:120px}.header-stats{display:none}.chat-title{font-size:1rem}.message-bubble{max-width:85%;padding:10px 14px;font-size:.9rem}.messages-container{padding:16px;gap:12px}.input-area{padding:12px 16px;margin:12px}.input-field textarea{padding:12px 16px;font-size:.9rem}.send-btn,.voice-btn{width:44px;height:44px}.debug-bar{padding:12px 16px;margin:12px;flex-wrap:wrap;gap:8px}.chat-header{padding:12px 16px;margin:12px}}@media (min-width: 480px) and (max-width: 599px){.main-content{flex-direction:column}.chat-panel{width:100%;height:60%}.iframe-panel{width:100%;height:40%}.main-header{padding:4px 8px}.header-center{gap:8px}.header-logo{width:100px}.logo-subtext{font-size:.7rem}.chat-title{font-size:.9rem}.message-bubble{max-width:90%;padding:8px 12px;font-size:.85rem}.messages-container{padding:12px;gap:10px}.input-area{padding:10px 12px;margin:10px}.input-container{gap:8px}.input-field textarea{padding:10px 14px;font-size:.85rem}.send-btn,.voice-btn{width:40px;height:40px}.debug-bar{padding:10px 12px;margin:10px;font-size:.8rem}.chat-header{padding:10px 12px;margin:10px}.toggle-debug-btn-overlay{width:24px;height:24px;font-size:.7rem;bottom:-12px;left:16px}.resize-btn{width:28px;height:28px;font-size:.8rem}}@media (max-width: 479px){.main-content{flex-direction:column}.chat-panel{width:100%;height:65%}.iframe-panel{width:100%;height:35%}.main-header{padding:3px 6px}.header-center{gap:6px}.header-logo{width:80px}.logo-subtext{font-size:.6rem}.chat-title{font-size:.8rem}.message-bubble{max-width:95%;padding:6px 10px;font-size:.8rem}.messages-container{padding:8px;gap:8px}.input-area{padding:8px 10px;margin:8px}.input-container{gap:6px}.input-field textarea{padding:8px 12px;font-size:.8rem}.send-btn,.voice-btn{width:36px;height:36px}.debug-bar{padding:8px 10px;margin:8px;font-size:.75rem;flex-direction:column;align-items:flex-start}.chat-header{padding:8px 10px;margin:8px}.toggle-debug-btn-overlay{width:20px;height:20px;font-size:.6rem;bottom:-10px;left:12px}.resize-btn{width:24px;height:24px;font-size:.7rem}.action-btn{padding:8px 12px;font-size:.8rem}.action-icon{width:14px;height:14px}}@media (max-height: 600px) and (orientation: landscape){.main-header{padding:2px 8px}.header-logo{width:100px}.chat-panel,.iframe-panel{height:50%}.messages-container{padding:8px}.input-area{padding:8px 12px;margin:8px}.debug-bar{padding:6px 12px;margin:6px}}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.header-logo{image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.glass{@apply bg-white/80 backdrop-blur-sm border border-white/20;}.shimmer{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.shadow-soft{box-shadow:0 2px 8px #0000000f}.shadow-medium{box-shadow:0 4px 16px #0000001a}.shadow-strong{box-shadow:0 8px 32px #0000001f}.active-filters-bar{background:linear-gradient(135deg,#667eea,#764ba2);border-bottom:1px solid rgba(255,255,255,.1);padding:12px 20px;color:#fff;font-size:14px;box-shadow:0 2px 8px #667eea33;min-height:60px;flex-shrink:0;transition:all .3s ease;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.active-filters-container{display:flex;align-items:center;gap:16px;max-width:100%;overflow-x:auto}.active-filters-label{font-weight:600;white-space:nowrap;color:#ffffffe6;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.active-filters-list{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.active-filter-tag{display:flex;align-items:center;gap:6px;background:#ffffff26;border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:6px 12px;font-size:12px;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .2s ease;cursor:default}.active-filter-tag:hover{background:#ffffff40;border-color:#ffffff4d;transform:translateY(-1px)}.filter-label{color:#fff;font-weight:500}.remove-filter-btn{display:flex;align-items:center;justify-content:center;width:16px;height:16px;border:none;background:#fff3;border-radius:50%;cursor:pointer;transition:all .2s ease;padding:0;margin-left:4px}.remove-filter-btn:hover{background:#ffffff4d;transform:scale(1.1)}.remove-icon{width:10px;height:10px;color:#fff;stroke-width:2.5}@media (min-width: 1200px){.active-filters-bar{min-height:60px;padding:12px 24px}.active-filters-container{gap:20px}.active-filters-label{font-size:14px}.active-filter-tag{font-size:13px;padding:8px 16px}}@media (min-width: 768px) and (max-width: 1023px){.iframe-container{height:calc(100% - 70px)}.active-filters-bar{min-height:70px;padding:10px 18px}.active-filters-container{gap:14px}.active-filters-label{font-size:13px}.active-filter-tag{font-size:12px;padding:6px 12px}}@media (min-width: 600px) and (max-width: 767px){.iframe-container{height:calc(100% - 80px)}.active-filters-bar{min-height:80px;padding:8px 15px}.active-filters-container{flex-direction:column;align-items:flex-start;gap:8px}.active-filters-list{width:100%;justify-content:flex-start}.active-filter-tag{font-size:11px;padding:4px 8px}}@media (min-width: 480px) and (max-width: 599px){.iframe-container{height:calc(100% - 90px)}.active-filters-bar{min-height:90px;padding:6px 12px}.active-filters-container{flex-direction:column;align-items:flex-start;gap:6px}.active-filters-label{font-size:12px}.active-filters-list{width:100%;justify-content:flex-start;gap:6px}.active-filter-tag{font-size:10px;padding:3px 6px}.remove-filter-btn{width:14px;height:14px}.remove-icon{width:8px;height:8px}}@media (max-width: 479px){.iframe-container{height:calc(100% - 100px)}.active-filters-bar{min-height:100px;padding:4px 8px}.active-filters-container{flex-direction:column;align-items:flex-start;gap:4px}.active-filters-label{font-size:11px}.active-filters-list{width:100%;justify-content:flex-start;gap:4px}.active-filter-tag{font-size:9px;padding:2px 4px}.remove-filter-btn{width:12px;height:12px}.remove-icon{width:6px;height:6px}}
