:root{--user-message-color: #3B81F6;--user-message-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);--user-message-type: gradient;--ai-chatbot-color: #3B81F6;--ai-chatbot-gradient: linear-gradient(to right, #3B81F6, #8B5CF6);--ai-chatbot-type: solid;--chat-bubble-color: #000000;--chat-bubble-alignment: right;--mobile-header-height: 92px}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#fafafa;color:#333;min-height:100vh;overflow-x:hidden}.main-container{display:flex;min-height:100vh;margin-top:0;padding:1rem;background:#fff}.main-content{flex:1;display:flex;gap:1rem;padding:0;align-items:stretch}.chat-container{flex:1;display:flex;justify-content:center;align-items:stretch}.config-panel{width:400px;background:#fff;border-right:1px solid #e5e5e5;padding:2rem;overflow-y:auto;box-shadow:0 2px 8px #0000001a;border-radius:12px;margin:0rem 1rem 1rem}.panel-title{font-size:1.8rem;font-weight:700;margin-bottom:0rem;color:#333}.agent-status{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:2rem;font-size:.9rem;color:#2c2c2c}.agent-status-right{display:flex;align-items:center;gap:.5rem}.status-dot{width:8px;height:8px;background:#2c2c2c;border-radius:50%}.status-text{color:#2c2c2c;font-weight:500}.action-buttons{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}.btn-primary{background:#6c757d;color:#fff;border:none;padding:1rem 2rem;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s;width:100%;opacity:.7}.btn-primary:hover{background:#5a6268;opacity:.8}.btn-secondary{background:#f8f9fa;color:#333;border:1px solid #e5e5e5;padding:.75rem 1.5rem;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem}.btn-secondary:hover{background:#e9ecef;border-color:#dee2e6}.secondary-buttons{display:flex;gap:.75rem;justify-content:space-between}.configure-text{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#f8f9fa;border:1px solid #e5e5e5;border-radius:6px;color:#36454f;font-size:14.4px;font-weight:500;width:100%;position:relative}.lightbulb-icon{font-size:.8rem;opacity:.7}.right-arrow{position:absolute;right:.5rem;font-size:.9rem;color:#36454f;display:flex;align-items:center;justify-content:center}.right-arrow svg{width:20px;height:20px}.config-section{margin-bottom:2rem}.width-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.35rem;background:#f8f9fa;border:1px solid #e5e5e5;border-radius:10px}.width-toggle-btn{background:transparent;border:none;border-radius:8px;padding:.75rem 1rem;font-size:.95rem;font-weight:600;color:#4b5563;transition:all .2s ease;cursor:pointer}.width-toggle-btn:hover{background:#e5e7eb}.width-toggle-btn.active{background:#111827;color:#fff;box-shadow:0 4px 12px #11182726}.width-toggle-btn.active:hover{background:#0f172a}.section-label{font-weight:600;color:#2c2c2c;margin-bottom:.75rem;font-size:.9rem}.model-selector{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem;background:#fff;border:1px solid #e5e5e5;border-radius:6px;cursor:pointer;transition:border-color .2s;position:relative}.model-selector:hover,.model-selector.active{border-color:#007bff}.model-dropdown{position:fixed;background:#fff;border:1px solid #e5e5e5;border-radius:10px;box-shadow:0 8px 24px #0000001f;z-index:10000;display:none;width:640px;max-height:360px;overflow:hidden}.model-dropdown.show{display:flex}.model-list-panel{width:280px;border-right:1px solid #f0f0f0;display:flex;flex-direction:column;max-height:360px}.model-search{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid #f0f0f0;position:sticky;top:0;background:#fff;z-index:1}.model-search .search-icon{width:16px;height:16px;object-fit:contain}.model-search input{flex:1;border:none;background:transparent;outline:none;font-size:.9rem;color:#333}.model-search input::placeholder{color:#999}.model-list{overflow-y:auto}.model-option{display:flex;align-items:center;gap:.5rem;padding:.75rem;cursor:pointer;transition:background-color .2s;border-bottom:1px solid #f0f0f0}.model-option:last-child{border-bottom:none}.model-option:hover{background-color:#f8f9fa}.model-option.selected{background-color:#e3f2fd;color:#1976d2}.model-icon-small{width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;background:#f0f0f0;font-size:12px}.model-icon-small img{width:100%;height:100%;object-fit:contain;border-radius:4px}.model-icon-small.gemini{background:#f8f9fa;border:1px solid #e5e5e5}.model-icon-small.openai{background:#f0f0f0;border:1px solid #d0d0d0}.model-icon-small.anthropic{background:#fef3c7;border:1px solid #fcd34d}.model-details{flex:1;padding:.75rem;background:#fafafa}.details-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;font-weight:600;color:#333}.credits-cost{font-size:.9rem;color:#666;margin-bottom:.75rem;font-weight:500}.model-description{font-size:.85rem;line-height:1.4;color:#666}.no-tools-pill{display:inline-block;background:#fef3c7;color:#92400e;padding:.25rem .5rem;border-radius:.375rem;font-size:.75rem;font-weight:500;margin-left:.5rem;border:1px solid #fbbf24}.model-left{display:flex;align-items:center;gap:.5rem}.model-icon{width:16px;height:16px;background:#007bff;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.7rem}.model-icon img{width:100%;height:100%;object-fit:contain;border-radius:50%}.model-dropdown-icon{width:16px;height:16px;opacity:.5;color:#666;display:flex;align-items:center;justify-content:center;filter:grayscale(100%) brightness(.3);transition:transform .2s ease}.model-dropdown-icon img{width:100%;height:100%;object-fit:contain}.model-selector.active .model-dropdown-icon{transform:rotate(180deg)}.temperature-control{display:flex;flex-direction:column;gap:.5rem}.temperature-value{font-weight:600;color:#333;font-size:1.1rem}.temperature-slider{position:relative;height:4px;background:#e5e5e5;border-radius:2px;cursor:pointer;margin:1rem 0;user-select:none}.temperature-slider:before{content:"";position:absolute;left:0;top:0;height:100%;width:var(--slider-position, 0%);background:#007bff;border-radius:2px;transition:width .1s}.temperature-slider:after{content:"";position:absolute;left:var(--slider-position, 0%);top:50%;transform:translateY(-50%) translate(-50%);width:16px;height:16px;background:#007bff;border-radius:50%;border:2px solid white;box-shadow:0 2px 4px #0000001a;transition:left .1s;pointer-events:none}.temperature-labels{display:flex;justify-content:space-between;font-size:.8rem;color:#666}.ai-actions-box{padding:1rem;background:#fff;border:1px solid #e5e5e5;border-radius:6px;color:#666;font-size:.9rem;text-align:center}.save-btn{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:.9rem 1.5rem;font-size:1rem;font-weight:600;background:transparent;color:#333;cursor:not-allowed;transition:all .2s ease;margin-bottom:2rem;display:inline-flex;align-items:center;justify-content:center;opacity:.6;pointer-events:none}.save-btn.unsaved{background:#111827;border-color:#111827;color:#fff;cursor:pointer;opacity:1;pointer-events:auto}.save-btn.unsaved:hover{background:#1f2937;border-color:#1f2937}.save-btn:disabled{cursor:not-allowed}.tabs{display:flex;margin-bottom:2rem;border-bottom:1px solid #e5e5e5}.tab{padding:.75rem 1rem;cursor:pointer;border-bottom:2px solid transparent;color:#666;font-size:.9rem}.tab.active{color:#007bff;border-bottom-color:#007bff}.form-group{margin-bottom:1.5rem}.form-label{display:block;margin-bottom:.5rem;font-weight:600;color:#333;font-size:.9rem}.form-input{width:100%;padding:.75rem;border:1px solid #e5e5e5;border-radius:6px;font-size:.9rem;transition:border-color .2s;background:#f8f9fa}.form-input:focus{outline:none;border-color:#6c757d;background:#fff}.form-textarea{width:100%;padding:.75rem;border:1px solid #e5e5e5;border-radius:6px;font-size:.9rem;min-height:100px;resize:vertical;font-family:inherit;background:#f8f9fa}.form-textarea:focus{outline:none;border-color:#6c757d;background:#fff}.toggle-container{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.toggle-label{display:flex;align-items:center;font-size:.9rem;color:#333}.toggle{position:relative;width:50px!important;min-width:50px;max-width:50px;height:24px;background:#ddd;border-radius:12px;cursor:pointer;transition:background-color .2s;flex-shrink:0}.toggle.active{background:#007bff}.toggle:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .2s}.toggle.active:after{transform:translate(26px)}.info-text{font-size:.8rem;color:#666;margin-top:.5rem;display:flex;align-items:flex-start}.reset-btn{background:none;border:1px solid #ddd;color:#666;padding:.5rem 1rem;border-radius:6px;font-size:.8rem;cursor:pointer;transition:all .2s}.reset-btn:hover{background:#f8f9fa;border-color:#999}.add-message-container{display:flex;align-items:center;gap:0;margin:1rem 0;border:1px solid #e5e5e5;border-radius:8px;background:#f9f9f9;padding:0;overflow:hidden}.add-message-input{flex:1;padding:.75rem;border:none;border-radius:0;outline:none;font-size:.95rem;background:transparent;font-family:inherit}.add-message-input::placeholder{color:#999}.add-message-input:focus{background:transparent}.add-message-btn{width:44px;height:44px;border-radius:0;border:none;background:#007bff;color:#fff;font-size:1.2rem;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s}.add-message-btn:hover{background:#0056b3}.suggested-messages-list{margin:.5rem 0;display:flex;overflow-x:auto;gap:.5rem;padding-bottom:.5rem;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.suggested-messages-list::-webkit-scrollbar{height:6px}.suggested-messages-list::-webkit-scrollbar-track{background:transparent}.suggested-messages-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.suggested-messages-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.suggested-message-item{display:flex;align-items:center;gap:0;margin-bottom:0;border:1px solid #e5e5e5;border-radius:8px;background:#f9f9f9;padding:0;overflow:hidden;white-space:nowrap;flex-shrink:0}.remove-message-btn{width:44px;height:44px;border-radius:0;border:none;background:#dc3545;color:#fff;font-size:1.2rem;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s}.remove-message-btn:hover{background:#c82333}.drag-handle{width:4px;align-self:stretch;background:#e5e7eb;border-radius:2px;margin-right:.5rem;cursor:grab}.suggested-message-item:hover .drag-handle{background:#d1d5db}.suggested-message-text{flex:1;padding:.75rem;font-size:.95rem;color:#333;background:transparent;border:none;border-radius:0;line-height:1.4;display:flex;align-items:center}.duration-input{width:60px;padding:.5rem;border:1px solid #ddd;border-radius:6px;font-size:.9rem;text-align:center}.duration-unit{margin-left:.5rem;font-size:.9rem;color:#666}.system-prompt-header{display:flex;flex-direction:column;align-items:stretch;gap:.5rem;margin-bottom:.75rem;width:100%}.prompt-selector{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;background:#fff;border:1px solid #e5e5e5;border-radius:8px;cursor:pointer;font-size:.9rem;min-height:36px;width:100%;min-width:0}.prompt-caret{width:16px;height:16px;color:#666;opacity:.7;transition:transform .2s ease;display:flex;align-items:center;justify-content:center}.prompt-caret img{width:16px;height:16px;object-fit:contain;filter:grayscale(100%) brightness(.3);transition:filter .2s}.prompt-selector.active .prompt-caret{transform:rotate(180deg)}.prompt-dropdown{position:fixed;background:#fff;border:1px solid #e5e5e5;border-radius:10px;box-shadow:0 8px 24px #0000001f;z-index:10000;display:none;width:560px;max-height:360px;overflow:auto;padding:6px 0}.prompt-dropdown.show{display:block}.prompt-group-label{padding:6px 12px;font-size:.75rem;color:#999;text-transform:uppercase;letter-spacing:.02em}.prompt-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;cursor:pointer;font-size:.95rem;color:#333}.prompt-item:hover{background:#f5f5f5}.prompt-item .check{color:#0b5;opacity:0}.prompt-item.selected .check{opacity:1}.refresh-icon{width:14px;height:14px;opacity:.5}.instructions-textarea{width:100%;min-height:200px;padding:1rem;border:1px solid #e5e5e5;border-radius:6px;font-family:inherit;font-size:.9rem;line-height:1.5;resize:vertical;background:#fff}.instructions-textarea:focus{outline:none;border-color:#007bff}.chat-panel{width:507px;height:min(660px,calc(100vh - 5rem));display:flex;flex-direction:column;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;margin:0 1rem 1rem;overflow:hidden;transition:width .3s ease}body.desktop-width .chat-panel{width:800px}body.desktop-width .chat-messages{width:100%}.chat-header{padding:1.5rem 2rem;border-bottom:1px solid #e5e5e5;display:flex;justify-content:space-between;align-items:center}.chat-brand{display:flex;align-items:center;gap:.5rem}.chat-brand-logo{width:28px;height:28px}.chat-brand-title{font-weight:800;color:#1f2937;font-size:1.1rem}.chat-messages{flex:1;padding:2rem;overflow-y:auto}.message{display:flex;gap:1rem;margin-bottom:1.5rem;align-items:flex-start;width:100%}.message.user{flex-direction:row;justify-content:flex-start}.message-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:.1rem 1rem .75rem;background:#f8f9fa;border-radius:16px;font-size:.95rem;line-height:1.5;color:#333;width:100%;max-width:100%;word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;position:relative;overflow:hidden;text-overflow:ellipsis;align-self:stretch}.message.user .message-content{background:var(--user-message-color, #333);color:#fff;border-radius:16px;padding:.75rem 1rem;align-self:stretch;gap:.35rem;word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;max-width:100%;width:100%;position:relative;overflow:hidden;text-overflow:ellipsis;text-align:left}.message.user .message-content.gradient{background:var(--user-message-gradient)!important}.message.assistant .message-content{background:var(--ai-chatbot-color, #f8f9fa);color:#333;padding:.75rem 1rem;gap:.35rem;align-self:stretch}.message-body{display:flex;flex-direction:column;gap:.35rem;width:100%}.chat-link-button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.45rem .9rem;border-radius:999px;border:none;font-weight:600;font-size:.9rem;cursor:pointer;margin:.25rem .25rem .25rem 0;background:var(--chat-link-button-bg, #2563eb);color:var(--chat-link-button-text, #ffffff);box-shadow:0 2px 6px #0f172a1f;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}.chat-link-button:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0f172a29;filter:brightness(.97)}.chat-link-button:active{transform:translateY(0);box-shadow:0 2px 6px #0f172a38;filter:brightness(.92)}.chat-link-button:focus-visible{outline:2px solid rgba(59,129,246,.45);outline-offset:2px}.message.assistant .message-content.gradient{background:var(--ai-chatbot-gradient)!important}.message.loading .message-content{background:var(--ai-chatbot-color);color:#333;font-style:italic}.message.loading .message-content.gradient{background:var(--ai-chatbot-gradient)!important}.message-sender{font-weight:600;color:#333;margin-bottom:0;margin-top:0;display:block;line-height:1}.message:first-child .message-sender,.message.loading .message-sender{margin-top:.5rem}.message.user .message-sender{color:#fff}.typing-dots{display:inline-block;position:relative;width:40px;height:10px;margin-top:.5rem;margin-bottom:.5rem;color:inherit}.typing-dots div{position:absolute;top:0;width:6px;height:6px;border-radius:50%;background:currentColor;animation-timing-function:cubic-bezier(0,1,1,0)}.message.loading .typing-dots div{background:currentColor!important}.chat-actions{display:flex;align-items:center;justify-content:flex-start;gap:.35rem;margin-top:.1rem;padding:.15rem 0 0;opacity:0;transition:opacity .2s ease;--chat-action-color: #666666;--chat-action-img-filter: brightness(0) saturate(100%)}.chat-actions.visible{opacity:1}.chat-action-btn{background:none;border:none;cursor:pointer;padding:.15rem;border-radius:4px;color:var(--chat-action-color, #666666);font-size:.85rem;transition:all .2s ease;display:flex;align-items:center;justify-content:center;width:24px;height:24px}.chat-action-btn img{width:14px;height:14px;object-fit:contain;filter:var(--chat-action-img-filter, brightness(0) saturate(100%))}.chat-action-btn:hover{background:#f0f0f0;color:#333}.chat-action-btn:active{transform:scale(.95)}.chat-action-btn.copied{color:#4caf50}.chat-action-btn.liked{color:#2196f3}.chat-action-btn.disliked{color:#f44336}.chat-action-btn.retry{color:#ff9800}.typing-dots div:nth-child(1){left:4px;animation:typing-dots1 .6s infinite}.typing-dots div:nth-child(2){left:4px;animation:typing-dots2 .6s infinite}.typing-dots div:nth-child(3){left:16px;animation:typing-dots2 .6s infinite}.typing-dots div:nth-child(4){left:28px;animation:typing-dots3 .6s infinite}@keyframes typing-dots1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes typing-dots3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes typing-dots2{0%{transform:translate(0)}to{transform:translate(12px)}}.message-feedback{display:flex;gap:.5rem;margin-top:.5rem;justify-content:flex-start;padding-left:.5rem}.feedback-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#999;font-size:.8rem;transition:color .2s}.feedback-icon:hover{color:#666}.chat-footer{padding:1.5rem 2rem;border-top:1px solid #e5e5e5}.powered-by{display:none;align-items:center;justify-content:center;gap:.5rem;font-size:.8rem;color:#666;margin-bottom:0;min-height:0}.agent-footer{margin-top:0;padding:0;font-size:.65rem;color:#999;text-align:center;border:none;background:none;min-height:0}.agent-footer a{color:#3b81f6;text-decoration:none}.agent-footer a:hover{text-decoration:underline}.powered-by-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.powered-by-icon img{width:100%;height:100%;object-fit:contain}.suggested-messages-preview{display:flex;overflow-x:auto;gap:.5rem;margin-bottom:0;padding-bottom:0;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;min-height:0}.suggested-messages-preview::-webkit-scrollbar{height:6px}.suggested-messages-preview::-webkit-scrollbar-track{background:transparent}.suggested-messages-preview::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.suggested-messages-preview::-webkit-scrollbar-thumb:hover{background:#94a3b8}.suggested-message-btn{padding:.5rem .75rem;background:#f3f4f6;border:none;border-radius:12px;font-size:.85rem;color:#374151;cursor:pointer;transition:all .2s;outline:none;white-space:nowrap;flex-shrink:0}.suggested-message-btn:hover{background:#e5e7eb}.suggested-message-btn:focus{outline:none}.message-input-container{display:flex;align-items:center;gap:.75rem;background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:.75rem;position:relative}.expand-input-btn{position:absolute;top:-8px;right:1rem;width:20px;height:20px;background:#fff;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.7rem;color:#666;transition:all .2s}.expand-input-btn:hover{background:#f8f9fa;color:#333}.message-input{flex:1;border:none;background:transparent;font-size:.95rem;outline:none;color:#333}.message-input::placeholder{color:#999}.input-actions{display:flex;gap:.5rem}.action-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#666;transition:color .2s}.action-icon:hover{color:#333}.action-icon img{width:16px;height:16px;object-fit:contain;filter:grayscale(100%) brightness(.3);transition:filter .2s}.action-icon:hover img{filter:grayscale(0%) brightness(1)}.chat-error-log{margin-top:1rem;padding:.75rem .9rem;border-radius:10px;border:1px solid #fecaca;background:#fef2f2;color:#b91c1c;font-size:.85rem;line-height:1.45;max-height:170px;overflow-y:auto;display:none}.chat-error-item+.chat-error-item{margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(185,28,28,.2)}.chat-error-item-header{font-weight:600;display:flex;align-items:baseline;gap:.5rem}.chat-error-item-time{font-size:.75rem;color:#7f1d1d;letter-spacing:.01em}.chat-error-item-details{margin-top:.5rem;padding:.5rem;border-radius:8px;background:#b91c1c14;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.78rem;white-space:pre-wrap;word-break:break-word}.error-toggle-wrapper{display:flex;justify-content:flex-start;align-items:center;margin-top:.75rem;margin-bottom:.75rem}.error-toggle-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .85rem;border-radius:9999px;border:1px solid #d1d5db;background:#f9fafb;color:#1f2937;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease}.error-toggle-btn:hover{background:#f3f4f6;border-color:#9ca3af}.error-toggle-btn[aria-pressed=true]{background:#2563eb;border-color:#1d4ed8;color:#fff;box-shadow:0 2px 8px #2563eb33}@media (max-width: 1200px){.config-panel{width:350px}}@media (max-width: 768px){.main-container{flex-direction:column;padding:0;min-height:100dvh}.main-content{flex:1 1 auto;flex-direction:column;gap:0;min-height:0}.mobile-header{display:block;padding:1rem;border-bottom:1px solid #e5e5e5;background:#fff;position:sticky;top:0;z-index:10}.mobile-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem;color:#333}.mobile-tabs{display:flex;gap:.5rem;background:#f3f4f6;padding:.25rem;border-radius:12px;border:1px solid #e5e7eb}.mobile-tab{flex:1;padding:.5rem .75rem;border:1px solid transparent;background:transparent;color:#374151;border-radius:10px;cursor:pointer;font-weight:600;transition:all .2s ease}.mobile-tab.active{background:#fff;color:#111827;border-color:#e5e7eb;box-shadow:0 1px 2px #0000000f}.panel-title{display:none}.config-panel{width:100%;margin:0;border-radius:0;border-right:none;border-bottom:1px solid #e5e5e5;box-shadow:none;padding:1rem;flex:1 1 auto;min-height:0;overflow-y:auto}.chat-container{width:100%;flex:1 1 auto;min-height:calc(100dvh - var(--mobile-header-height));height:calc(100dvh - var(--mobile-header-height));max-height:calc(100dvh - var(--mobile-header-height));padding:0;display:flex;flex-direction:column}.chat-panel{width:100%;flex:1 1 auto;min-height:0;height:100%;max-height:none;margin:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column}.chat-messages{flex:1 1 auto;min-height:0;overflow-y:auto;padding-bottom:0}.chat-footer{margin-top:auto;position:sticky;bottom:10px;left:0;right:0;background:#fff;z-index:10;padding-bottom:calc(1.5rem + env(safe-area-inset-bottom,0))}body.mobile-show-settings .config-panel{display:block}body.mobile-show-settings .chat-container,body.mobile-show-preview .config-panel{display:none}body.mobile-show-preview .chat-container{display:flex;min-height:calc(100dvh - var(--mobile-header-height));height:calc(100dvh - var(--mobile-header-height));max-height:calc(100dvh - var(--mobile-header-height))}}@media (min-width: 769px){.mobile-header{display:none}}.tab-content{display:none}.tab-content.active{display:block}.theme-options{display:flex;gap:1rem;margin-top:.5rem}.theme-card{flex:1;border:2px solid #e5e5e5;border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s}.theme-card:hover{border-color:#007bff}.theme-card.selected{border-color:#007bff;background:#f8f9ff}.theme-preview{width:100%;height:80px;border-radius:6px;margin-bottom:.5rem;overflow:hidden;position:relative}.light-theme{background:#fff;border:1px solid #e5e5e5}.dark-theme{background:#1f2937;border:1px solid #374151}.preview-chat{width:100%;height:100%;padding:.5rem;display:flex;flex-direction:column}.preview-header{display:flex;align-items:center;margin-bottom:.25rem}.preview-sparkle{font-size:.8rem;color:#333}.dark-theme .preview-sparkle{color:#fff}.preview-messages{display:flex;flex-direction:column;gap:.25rem;flex:1}.preview-message{padding:.25rem .5rem;border-radius:4px;font-size:.7rem;max-width:80%}.preview-message.user-message{background:#3b81f6;color:#fff;align-self:flex-end}.preview-message.agent-message{background:#f3f4f6;color:#333;align-self:flex-start}.dark-theme .preview-message.agent-message{background:#374151;color:#fff}.theme-option{display:flex;align-items:center;gap:.5rem}.theme-option input[type=radio]{margin:0}.theme-option label{font-size:.9rem;font-weight:500;cursor:pointer;margin:0}.remove-btn span{font-size:1.2rem;color:#666;font-weight:700}.chat-icon-container{display:flex;align-items:center;justify-content:space-between;margin-top:.5rem;padding:1rem;border:1px solid #e5e5e5;border-radius:8px;background:#f9f9f9}.icon-info{font-size:.8rem;color:#666}.upload-btn-large{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border:1px solid #e5e5e5;border-radius:6px;background:#fff;cursor:pointer;transition:all .2s;font-size:.9rem}.upload-btn-large:hover{background:#f8f9fa;border-color:#999}.upload-btn-large img{width:16px;height:16px}.color-input-container{display:flex;align-items:center;gap:.75rem;margin-top:.5rem}.color-swatch{width:40px;height:40px;border-radius:6px;border:2px solid #e5e5e5;cursor:pointer;transition:border-color .2s}.color-swatch:hover{border-color:#999}.color-input{flex:1;padding:.75rem;border:1px solid #e5e5e5;border-radius:6px;font-size:.9rem;font-family:monospace;background:#f8f9fa}.color-input:focus{outline:none;border-color:#6c757d;background:#fff}.color-picker{width:40px;height:40px;border:2px solid #e5e5e5;border-radius:6px;cursor:pointer;background:none;padding:0;transition:border-color .2s}.color-picker:hover{border-color:#999}.color-picker::-webkit-color-swatch-wrapper{padding:0;border-radius:4px;overflow:hidden}.color-picker::-webkit-color-swatch{border:none;border-radius:4px}.rich-text-editor .color-picker-container{display:inline-flex;align-items:center;margin:0 .25rem}.rich-text-editor .color-picker{width:32px;height:32px;border:1px solid #d1d5db;border-radius:4px;cursor:pointer;background:none;padding:0;transition:border-color .2s}.rich-text-editor .color-picker:hover{border-color:#999}.color-type-toggle{display:flex;gap:.5rem;margin-bottom:1rem;background:#f8f9fa;padding:.25rem;border-radius:8px;width:fit-content}.color-type-btn{padding:.5rem 1rem;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s;color:#64748b}.color-type-btn.active{background:#fff;color:#0f172a;box-shadow:0 1px 3px #0000001a}.color-type-btn:hover:not(.active){color:#0f172a}.gradient-controls{display:flex;flex-direction:column;gap:1rem}.gradient-direction{display:flex;flex-direction:column;gap:.5rem}.gradient-direction label{font-size:.875rem;font-weight:500;color:#374151}.gradient-direction select{padding:.5rem;border:1px solid #e5e5e5;border-radius:6px;background:#fff;font-size:.875rem;cursor:pointer}.gradient-direction select:focus{outline:none;border-color:#6c757d}.gradient-colors{display:flex;flex-direction:column;gap:1rem}.gradient-color-input{display:flex;flex-direction:column;gap:.5rem}.gradient-color-input label{font-size:.875rem;font-weight:500;color:#374151}.reset-color-btn{width:40px;height:40px;border:1px solid #e5e5e5;border-radius:6px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.reset-color-btn:hover{background:#f8f9fa;border-color:#999}.reset-color-btn span{font-size:1rem;color:#666}.alignment-options{display:flex;gap:1rem;margin-top:.5rem}.alignment-option{display:flex;align-items:center;gap:.5rem}.alignment-option input[type=radio]{margin:0}.alignment-option label{font-size:.9rem;cursor:pointer;margin:0}.chat-panel[data-theme=dark]{background:#1f2937;color:#f9fafb}.chat-panel[data-theme=dark] .chat-header{background:#1f2937;border-bottom-color:#374151}.chat-panel[data-theme=dark] .chat-brand-title{color:#f9fafb}.chat-panel[data-theme=dark] .chat-messages{background:#1f2937}.chat-panel[data-theme=dark] .message-content{background:#374151;color:#f9fafb}.chat-panel[data-theme=dark] .message.user .message-content{background:var(--user-message-color, #333);color:#fff}.chat-panel[data-theme=dark] .message.assistant .message-content{background:var(--ai-chatbot-color, #374151);color:#f9fafb}.chat-panel[data-theme=dark] .message-sender{color:#f9fafb}.chat-panel[data-theme=dark] .message.user .message-sender{color:#fff}.chat-panel[data-theme=dark] .message-input-container{background:#374151;border-color:#4b5563}.chat-panel[data-theme=dark] .message-input{background:#374151;color:#f9fafb;border-color:#4b5563}.chat-panel[data-theme=dark] .message-input::placeholder{color:#9ca3af}.chat-panel[data-theme=dark] .chat-footer{background:#1f2937;border-top-color:#374151}@media (max-width: 768px){.chat-panel[data-theme=dark] .chat-footer{background:#1f2937}}.chat-panel[data-theme=dark] .powered-by{color:#9ca3af}.chat-panel[data-theme=dark] .agent-footer{color:#f9fafb!important;opacity:1!important}.chat-panel[data-theme=dark] .agent-footer a{color:#facc15!important}.chat-panel[data-theme=dark] .suggested-message-btn{background:#374151;color:#f9fafb}.chat-panel[data-theme=dark] .suggested-message-btn:hover,.chat-panel[data-theme=dark] .drag-handle{background:#4b5563}.chat-panel[data-theme=dark] .suggested-message-item:hover .drag-handle{background:#6b7280}.chat-panel[data-theme=dark] .action-icon{color:#f9fafb}.chat-panel[data-theme=dark] .action-icon img{filter:brightness(0) invert(1)}.chat-panel[data-theme=dark] .chat-error-log{background:#781e1e52;border-color:#f8717173;color:#fecaca}.chat-panel[data-theme=dark] .chat-error-item-time{color:#fca5a5}.chat-panel[data-theme=dark] .chat-error-item-details{background:#f871712e}.rich-text-editor{border:1px solid #ddd;border-radius:8px;background:#fff;overflow:hidden}.editor-toolbar{display:flex;align-items:center;padding:.5rem;background:#f8f9fa;border-bottom:1px solid #ddd;gap:.25rem;flex-wrap:wrap}.toolbar-btn{padding:.25rem .5rem;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;font-size:.8rem;transition:all .2s ease;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center}.toolbar-btn:hover{background:#e9ecef;border-color:#adb5bd}.toolbar-btn.active{background:#3b81f6;color:#fff;border-color:#3b81f6}.char-counter{margin-left:auto;font-size:.75rem;color:#666;padding:.25rem .5rem}.editor-content{min-height:80px;padding:.75rem;outline:none;font-size:.9rem;line-height:1.4;color:#333}.editor-content:empty:before{content:attr(data-placeholder);color:#999;font-style:italic}.editor-content:focus{background:#fafafa}
