*{margin:0;padding:0;box-sizing:border-box}:root{--sidebar-bg: #1e1b4b;--sidebar-hover: rgba(255, 255, 255, .08);--sidebar-active: rgba(255, 255, 255, .15);--header-gradient: linear-gradient(135deg, #6366f1, #7c3aed);--ai-avatar: linear-gradient(135deg, #667eea, #764ba2);--user-avatar: linear-gradient(135deg, #f093fb, #f5576c);--chat-bg: #ffffff;--chat-bg-subtle: #f9fafb;--accent: #6366f1;--accent-hover: #4f46e5;--left-width: 260px;--left-collapsed: 56px;--right-width: 280px;--right-collapsed: 56px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#f5f5f5;color:#333;line-height:1.5}a{color:var(--accent);text-decoration:none}button{cursor:pointer;font-family:inherit}input,textarea{font-family:inherit;font-size:inherit}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh}.login-card{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:2rem;width:100%;max-width:400px}.login-card h1{text-align:center;margin-bottom:1.5rem;color:#1a1a1a}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.25rem;font-weight:500;font-size:.9rem}.form-hint{margin:0 0 .5rem;font-size:.85rem;color:#888;line-height:1.4}.form-group input[type=text],.form-group input[type=password],.form-group select{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:4px;font-size:1rem}.form-group input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #6366f133}.checkbox-group{display:flex;align-items:center;gap:.5rem}.checkbox-group input[type=checkbox]{width:1rem;height:1rem}.login-btn{width:100%;padding:.6rem;background:var(--accent);color:#fff;border:none;border-radius:4px;font-size:1rem;font-weight:500;margin-top:.5rem}.login-btn:hover{background:var(--accent-hover)}.login-btn:disabled{background:#a5b4fc;cursor:not-allowed}.error-msg{color:#dc2626;font-size:.875rem;margin-top:.5rem;text-align:center}.loading-msg{display:flex;justify-content:center;align-items:center;height:100vh;color:#6b7280;font-size:1.1rem}.setup-container{display:flex;justify-content:center;align-items:flex-start;min-height:100vh;padding:2rem 1rem}.setup-card{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:2rem;width:100%;max-width:560px}.setup-subtitle{color:#6b7280;margin-top:.5rem}.setup-steps{margin-top:1rem;font-size:.9rem;color:#4b5563;font-weight:500}.setup-section{margin-top:1rem}.setup-logo-wrap{display:flex;justify-content:center;margin-bottom:1rem}.setup-logo{width:64px;height:64px;border-radius:12px}.provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.provider-option{display:flex;align-items:center;gap:.5rem;border:1px solid #e5e7eb;border-radius:6px;padding:.5rem .75rem}.provider-option input[type=radio]{margin-right:.25rem}.setup-inline-status{margin-top:.75rem;display:flex;align-items:center;gap:.5rem;color:#4b5563;font-size:.9rem}.setup-inline-spinner{width:14px;height:14px;border-radius:9999px;border:2px solid #c7d2fe;border-top-color:#6366f1;animation:setup-spin .9s linear infinite}.button-with-spinner{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.button-spinner{width:14px;height:14px;border-radius:9999px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:setup-spin .9s linear infinite}@keyframes setup-spin{to{transform:rotate(360deg)}}.setup-actions{margin-top:1.5rem;display:flex;justify-content:space-between;gap:.75rem}.setup-actions .secondary-btn,.setup-actions .login-btn{flex:1;margin-top:0}.secondary-btn{width:100%;padding:.6rem;background:#e5e7eb;color:#111827;border:none;border-radius:4px;font-size:1rem;font-weight:500}.secondary-btn:disabled{opacity:.6;cursor:not-allowed}.setup-placeholder{color:#6b7280}.app-layout{display:flex;height:100vh;overflow:hidden}.left-sidebar{width:var(--left-width);min-width:var(--left-collapsed);background:var(--sidebar-bg);color:#fff;display:flex;flex-direction:column;transition:width .2s ease;overflow:hidden}.left-sidebar.collapsed{width:var(--left-collapsed)}.sidebar-header{padding:16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.1);min-height:56px}.sidebar-header .logo{width:28px;height:28px;border-radius:6px;flex-shrink:0}.sidebar-header .brand-name{font-weight:600;font-size:1rem;white-space:nowrap;overflow:hidden}.left-sidebar.collapsed .brand-name{display:none}.sidebar-new-chat{margin:12px;padding:10px 16px;background:var(--accent);color:#fff;border:none;border-radius:8px;font-size:.9rem;font-weight:500;display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;transition:background .15s}.sidebar-new-chat:hover{background:var(--accent-hover)}.left-sidebar.collapsed .sidebar-new-chat{padding:10px;justify-content:center}.left-sidebar.collapsed .sidebar-new-chat .btn-label{display:none}.session-list{flex:1;overflow-y:auto;padding:4px 8px}.session-list::-webkit-scrollbar{width:4px}.session-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:2px}.left-sidebar.collapsed .session-list{display:none}.session-item{padding:10px 12px;border-radius:8px;cursor:pointer;font-size:.875rem;color:#ffffffbf;white-space:nowrap;transition:background .15s;margin-bottom:2px;display:flex;align-items:center;position:relative}.session-item-name{flex:1;overflow:hidden;text-overflow:ellipsis}.session-item:hover{background:var(--sidebar-hover);color:#fff}.session-item.active{background:var(--sidebar-active);color:#fff;font-weight:500}.session-menu-btn{background:none;border:none;color:#ffffff80;font-size:1rem;padding:0 4px;line-height:1;border-radius:4px;display:none;flex-shrink:0;margin-left:4px}.session-item:hover .session-menu-btn{display:block}.session-menu-btn:hover{color:#fff;background:#ffffff1a}.session-menu-dropdown{position:fixed;transform:translate(-100%);background:#2d2a5e;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:4px 0;z-index:1000;min-width:100px;box-shadow:0 4px 12px #0000004d}.session-menu-option{display:block;width:100%;padding:6px 12px;background:none;border:none;color:#fffc;font-size:.8rem;text-align:left;white-space:nowrap}.session-menu-option:hover{background:#ffffff1a;color:#fff}.session-menu-option.delete:hover{background:#ef444433;color:#fca5a5}.sidebar-footer{border-top:1px solid rgba(255,255,255,.1);padding:8px}.sidebar-footer-btn{width:100%;padding:10px 12px;background:none;color:#ffffffb3;border:none;border-radius:8px;font-size:.85rem;display:flex;align-items:center;gap:10px;white-space:nowrap;overflow:hidden;transition:background .15s}.sidebar-footer-btn:hover{background:var(--sidebar-hover);color:#fff}.left-sidebar.collapsed .sidebar-footer-btn .btn-label{display:none}.left-sidebar.collapsed .sidebar-footer-btn{justify-content:center}.sidebar-footer-btn svg{flex-shrink:0}.panel-toggle-btn{width:32px;height:32px;background:none;border:none;color:#fff9;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;transition:background .15s,color .15s;flex-shrink:0;margin-left:auto}.panel-toggle-btn:hover{background:#ffffff1a;color:#fff}.panel-toggle-btn.right{color:#9ca3af;margin-left:0}.panel-toggle-btn.right:hover{background:#f3f4f6;color:#374151}.left-sidebar.collapsed .panel-toggle-btn{margin:0 auto}.center-panel{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--chat-bg)}.center-header{display:flex;align-items:center;padding:12px 20px;background:#fff;border-bottom:1px solid #e5e7eb;min-height:56px}.center-header h2{font-size:1rem;font-weight:600;color:#111827}.center-header .header-subtitle{color:#6b7280;font-size:.8rem;margin-left:8px;font-weight:400}.chat-history{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,var(--chat-bg) 0%,var(--chat-bg-subtle) 100%)}.chat-history-loading-older{align-self:center;font-size:.8rem;color:#6b7280;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;padding:4px 10px}.chat-day-divider{display:flex;align-items:center;justify-content:center;margin:4px 0}.chat-day-divider span{font-size:.75rem;color:#6b7280;background:#fffc;border:1px solid #e5e7eb;border-radius:999px;padding:2px 10px}.chat-message-row{display:flex;gap:12px;max-width:85%}.chat-message-row.user{align-self:flex-end;flex-direction:row-reverse}.chat-message-row.assistant{align-self:flex-start}.chat-message-row.error{align-self:center;max-width:90%}.msg-avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:.8rem;flex-shrink:0}.msg-avatar.ai{background:var(--ai-avatar)}.msg-avatar.human{background:var(--user-avatar)}.msg-body{display:flex;flex-direction:column;gap:4px;min-width:0}.msg-sender{font-size:.75rem;font-weight:600;color:#6b7280}.msg-sender .msg-time{font-weight:400;color:#9ca3af;margin-left:8px}.msg-bubble{padding:12px 16px;border-radius:12px;word-wrap:break-word;white-space:normal;line-height:1.7;font-size:1rem;letter-spacing:.005em}.msg-bubble-fade-in{animation:msg-fade-in .45s ease-out}@keyframes msg-fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.msg-bubble>*:first-child{margin-top:0}.msg-bubble>*:last-child{margin-bottom:0}.msg-bubble p,.msg-bubble ul,.msg-bubble ol,.msg-bubble pre,.msg-bubble blockquote{margin:0 0 1.1em}.msg-bubble ul,.msg-bubble ol{padding-left:1.25em}.msg-bubble li+li{margin-top:.35em}.msg-bubble h1,.msg-bubble h2,.msg-bubble h3,.msg-bubble h4{margin:0 0 .7em;line-height:1.35}.msg-bubble blockquote{border-left:4px solid #d1d5db;padding-left:1em;color:#374151}.msg-bubble code{font-size:.9em;background:#f3f4f6;padding:2px 6px;border-radius:4px;font-family:SF Mono,Fira Code,Fira Mono,Menlo,Consolas,monospace}.msg-bubble pre{white-space:pre;overflow-x:auto;border-radius:8px}.msg-bubble pre code{background:none;padding:0;border-radius:0}.msg-bubble pre>div{border-radius:6px!important}.chat-message-row.assistant .msg-bubble{background:#fff;color:#2f2f2f;border-top-left-radius:4px}.chat-message-row.user .msg-bubble{background:var(--accent);color:#fff;border-top-right-radius:4px}.chat-message-row.error .msg-bubble{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b;font-size:.875rem}.msg-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.msg-file-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;background:#f0f0ff;border:1px solid #c7d2fe;border-radius:8px;font-size:.8rem;color:#3730a3;max-width:300px;position:relative}.msg-file-chip.deleted{background:#f9fafb;border-color:#e5e7eb;color:#9ca3af;padding-right:10px}.msg-file-chip.deleted .msg-file-name{text-decoration:line-through}.msg-file-icon{width:14px;height:14px;flex-shrink:0}.msg-file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg-file-link{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;text-decoration:underline;text-underline-offset:2px;font-weight:500}.msg-file-link:hover{opacity:.75}.msg-file-menu-wrap{position:relative;flex-shrink:0}.msg-file-menu-btn{background:none;border:none;cursor:pointer;color:inherit;font-size:.9rem;padding:2px 4px;line-height:1;opacity:.5;border-radius:4px;letter-spacing:2px}.msg-file-menu-btn:hover{opacity:1;background:#00000014}.msg-file-dropdown{position:absolute;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 14px #0000001f;z-index:200;min-width:130px;overflow:hidden}.msg-file-dropdown-item{display:block;width:100%;padding:8px 14px;background:none;border:none;text-align:left;cursor:pointer;font-size:.85rem;color:#374151}.msg-file-dropdown-item:hover{background:#fef2f2;color:#dc2626}.quick-prompts{display:flex;gap:8px;padding:12px 20px;flex-wrap:wrap;border-top:1px solid #f3f4f6;background:#fff}.quick-prompt-btn{padding:6px 16px;background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:20px;font-size:.8rem;white-space:nowrap;transition:all .15s}.quick-prompt-btn:hover{background:#ede9fe;border-color:var(--accent);color:var(--accent)}.status-bubble{background:#eef2ff!important;color:#4338ca;display:flex;align-items:center;gap:8px;font-size:.85rem;font-style:italic}.status-dots{display:inline-flex;gap:3px;align-items:center}.status-dots .dot{width:6px;height:6px;border-radius:50%;background:#6366f1;animation:dot-bounce 1.4s infinite ease-in-out both}.status-dots .dot:nth-child(1){animation-delay:0s}.status-dots .dot:nth-child(2){animation-delay:.2s}.status-dots .dot:nth-child(3){animation-delay:.4s}.new-messages-wrap{position:sticky;bottom:6px;display:flex;justify-content:center;pointer-events:none}.new-messages-btn{pointer-events:auto;border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:999px;padding:6px 12px;font-size:.8rem;font-weight:600}.new-messages-btn:hover{background:#e0e7ff}@keyframes dot-bounce{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.chat-input-area{display:flex;flex-direction:column;gap:6px;padding:12px 20px;background:#fff;border-top:1px solid #e5e7eb}.chat-input-row{display:flex;gap:10px;align-items:flex-end}.chat-input-area textarea{flex:1;padding:10px 14px;border:1px solid #d1d5db;border-radius:12px;resize:none;min-height:44px;max-height:8rem;line-height:1.5}.chat-input-area textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #6366f126}.attach-btn{width:44px;height:44px;border-radius:50%;background:transparent;color:#6b7280;border:1px solid #d1d5db;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,color .15s}.attach-btn:hover{background:#f3f4f6;color:var(--accent)}.attach-btn:disabled{opacity:.4;cursor:not-allowed}.attach-btn svg{width:18px;height:18px}.chat-input-files{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}.chat-input-file-chip{display:flex;align-items:center;gap:4px;padding:3px 8px;background:#f0f0ff;border:1px solid #c7d2fe;border-radius:16px;font-size:.78rem;color:#3730a3;max-width:200px}.chat-input-file-chip.uploading{opacity:.7}.chat-input-file-chip.error{background:#fff0f0;border-color:#fca5a5;color:#b91c1c}.chat-input-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.chat-input-file-status{font-size:.72rem;flex-shrink:0}.chat-input-file-status.error{color:#dc2626;font-weight:700}.chat-input-file-remove{background:none;border:none;cursor:pointer;color:#6b7280;font-size:1rem;line-height:1;padding:0 2px;flex-shrink:0}.chat-input-file-remove:hover{color:#dc2626}.chat-input-file-remove:disabled{opacity:.4;cursor:not-allowed}.send-btn{width:44px;height:44px;border-radius:50%;background:var(--ai-avatar);color:#fff;border:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .15s,transform .15s}.send-btn:hover{opacity:.9;transform:scale(1.05)}.send-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.send-btn svg{width:20px;height:20px}.right-sidebar{width:var(--right-width);min-width:var(--right-collapsed);background:#fff;border-left:1px solid #e5e7eb;display:flex;flex-direction:column;transition:width .2s ease;overflow:hidden;position:relative}.right-sidebar.collapsed{width:var(--right-collapsed)}.right-sidebar-header{display:flex;align-items:center;padding:12px;min-height:56px;border-bottom:1px solid #f3f4f6}.right-sidebar.collapsed .right-sidebar-header{justify-content:center;padding:12px 8px}.right-section{padding:16px;border-bottom:1px solid #f3f4f6}.right-sidebar.collapsed .right-section{padding:12px 8px}.right-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.right-section-header h3{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}.right-sidebar.collapsed .right-section-header h3,.right-sidebar.collapsed .right-section-content{display:none}.right-sidebar.collapsed .right-section-header{justify-content:center;margin-bottom:0}.right-section-content{display:flex;flex-direction:column;gap:8px}.notification-badge{background:#ef4444;color:#fff;font-size:.65rem;font-weight:600;padding:1px 5px;border-radius:10px;min-width:16px;text-align:center}.right-sidebar.collapsed .notification-badge{position:absolute;top:-4px;right:-4px}.collapsed-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center}.task-item{padding:8px 10px;background:#f9fafb;border-radius:8px;border-left:3px solid var(--accent)}.task-item-title{font-size:.825rem;font-weight:500;color:#1f2937;margin-bottom:2px}.task-item-meta{font-size:.7rem;color:#9ca3af}.task-status{display:inline-block;padding:1px 6px;border-radius:4px;font-size:.65rem;font-weight:500;text-transform:uppercase}.task-status.running{background:#dbeafe;color:#1d4ed8}.task-status.completed{background:#dcfce7;color:#15803d}.notification-item{padding:10px;background:#f9fafb;border-radius:8px;border-left:3px solid #f59e0b}.notification-item.agent{border-left-color:var(--accent)}.notification-item.not-monitored{border-left-color:#9ca3af;opacity:.55}.notification-item.processing{border-left-color:#f59e0b}.notification-item.no-action{border-left-color:#9ca3af;opacity:.7}.notification-item.processed{border-left-color:#22c55e}.notification-item.failed{border-left-color:#ef4444}.notification-spinner{display:inline-block;width:12px;height:12px;border:2px solid #f59e0b;border-top-color:transparent;border-radius:50%;animation:notification-spin .8s linear infinite;flex-shrink:0}@keyframes notification-spin{to{transform:rotate(360deg)}}.notification-agent-message{font-size:.75rem;color:#6b7280;margin-top:4px;padding-top:4px;border-top:1px solid #e5e7eb;line-height:1.3;font-style:italic}.notification-item-header{display:flex;align-items:center;gap:6px;margin-bottom:4px}.notification-item-type{font-size:.7rem;font-weight:600;text-transform:uppercase;color:#9ca3af}.notification-item-time{font-size:.65rem;color:#d1d5db;margin-left:auto}.notification-item-text{font-size:.8rem;color:#374151;line-height:1.4}.right-section.notifications{flex:1;overflow:hidden;display:flex;flex-direction:column}.right-section.notifications .right-section-content{overflow-y:auto;flex:1}.right-section.notifications .right-section-content::-webkit-scrollbar{width:4px}.right-section.notifications .right-section-content::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:2px}.tasks-placeholder{font-size:.8rem;color:#9ca3af;text-align:center;padding:12px 0}.right-section.assignments{flex:1;overflow:hidden;display:flex;flex-direction:column}.right-section.assignments .right-section-content{overflow-y:auto;flex:1}.right-section.assignments .right-section-content::-webkit-scrollbar{width:4px}.right-section.assignments .right-section-content::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:2px}.assignment-list{display:flex;flex-direction:column;gap:4px}.assignment-group-header{font-size:.7rem;font-weight:600;text-transform:uppercase;color:#9ca3af;padding:6px 0 2px}.assignment-group-header.collapsible{cursor:pointer;display:flex;justify-content:space-between;align-items:center}.assignment-group-header.collapsible:hover{color:#6b7280}.collapse-indicator{font-size:.6rem}.assignment-item{padding:8px 10px;background:#f9fafb;border-radius:8px;border-left:3px solid var(--accent);cursor:pointer}.assignment-item.archived{border-left-color:#9ca3af;opacity:.6}.assignment-item.inactive{border-left-color:#f59e0b;opacity:.7}.assignment-item-header{display:flex;flex-direction:column;gap:2px}.assignment-item-title-row{display:flex;align-items:center;gap:6px}.assignment-item-title{font-size:.8rem;font-weight:500;color:#374151;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.assignment-status-badge{font-size:.6rem;font-weight:600;text-transform:uppercase;padding:1px 5px;border-radius:4px;background:#e5e7eb;color:#6b7280;flex-shrink:0}.assignment-status-badge.active{background:#d1fae5;color:#065f46}.assignment-status-badge.archived{background:#e5e7eb;color:#6b7280}.assignment-status-badge.inactive{background:#fef3c7;color:#92400e}.assignment-item-meta{display:flex;gap:8px;font-size:.65rem;color:#9ca3af}.assignment-item-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assignment-item-details{margin-top:8px;padding-top:8px;border-top:1px solid #e5e7eb}.assignment-item-task{font-size:.75rem;color:#4b5563;line-height:1.4;margin-bottom:6px;white-space:pre-wrap;word-break:break-word}.assignment-item-info{display:flex;gap:8px;font-size:.65rem;color:#9ca3af;margin-bottom:6px}.assignment-repeated-badge{background:#dbeafe;color:#1e40af;padding:0 4px;border-radius:3px;font-size:.6rem}.assignment-item-actions{display:flex;gap:6px;margin-top:6px}.assignment-delete-btn{font-size:.7rem;color:#ef4444;background:none;border:1px solid #ef4444;border-radius:4px;padding:2px 8px;cursor:pointer}.assignment-delete-btn:hover{background:#fef2f2}.assignment-executions{margin-top:6px}.assignment-executions-title{font-size:.65rem;font-weight:600;color:#9ca3af;text-transform:uppercase;margin-bottom:4px}.assignment-execution{display:flex;gap:6px;align-items:center;font-size:.65rem;padding:2px 0;color:#6b7280}.assignment-execution.completed .execution-status{color:#22c55e}.assignment-execution.failed .execution-status{color:#ef4444}.assignment-execution.running .execution-status{color:#f59e0b}.assignment-execution.no_action .execution-status{color:#9ca3af}.execution-status{font-weight:600;text-transform:uppercase}.execution-log{font-size:.6rem;color:#9ca3af;margin-top:2px}.assignment-add-btn{font-size:.8rem;padding:4px 12px;border-radius:6px;cursor:pointer;border:1px solid #e5e7eb;background:#fff;color:#374151}.assignment-add-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.assignment-form{padding:16px 20px;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:column;gap:10px}.assignment-form-row{display:flex;flex-direction:column;gap:4px}.assignment-form-row label{font-size:.75rem;font-weight:600;color:#6b7280}.assignment-form-row input,.assignment-form-row select,.assignment-form-row textarea{padding:6px 10px;border:1px solid #e5e7eb;border-radius:6px;font-size:.85rem;font-family:inherit}.assignment-form-row textarea{min-height:60px;resize:vertical}.assignment-form-error{font-size:.75rem;color:#ef4444}.assignment-form-row.checkbox-row{flex-direction:row;align-items:flex-start;gap:0}.checkbox-label{display:flex;align-items:center;gap:6px;font-size:.85rem;color:#374151;cursor:pointer}.checkbox-label input[type=checkbox]{width:16px;height:16px;cursor:pointer}.assignment-form-hint{font-size:.7rem;color:#9ca3af;line-height:1.5;margin-top:4px}.assignment-form-hint code{background:#f3f4f6;padding:1px 4px;border-radius:3px;font-size:.68rem;color:#6b7280}.assignment-form-submit{padding:6px 16px;background:var(--accent);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;align-self:flex-start}.assignment-form-submit:hover{opacity:.9}.assignments-main-panel{flex:1;display:flex;flex-direction:column;background:#fff;overflow:hidden}.assignments-main-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #e5e7eb}.assignments-main-header h2{font-size:1.2rem;font-weight:600;color:#1f2937;margin:0}.assignments-main-content{flex:1;overflow-y:auto;padding:16px 24px}.assignments-main-content::-webkit-scrollbar{width:6px}.assignments-main-content::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:3px}.assignment-full-list{display:flex;flex-direction:column;gap:8px}.assignment-full-group{margin-bottom:16px}.assignment-full-group-header{font-size:.8rem;font-weight:600;text-transform:uppercase;color:#6b7280;padding:8px 0 4px;letter-spacing:.05em}.assignment-full-group-header.collapsible{cursor:pointer;display:flex;justify-content:space-between;align-items:center}.assignment-full-group-header.collapsible:hover{color:#374151}.assignment-full-item{padding:12px 16px;background:#f9fafb;border-radius:8px;border-left:3px solid var(--accent);cursor:pointer;transition:background .1s}.assignment-full-item:hover{background:#f3f4f6}.assignment-full-item.archived{border-left-color:#9ca3af;opacity:.7}.assignment-full-item.inactive{border-left-color:#f59e0b;opacity:.8}.assignment-full-item-header{display:flex;flex-direction:column;gap:4px}.assignment-full-item-header .assignment-item-title-row{gap:8px}.assignment-full-item-header .assignment-item-title{font-size:.9rem}.expand-chevron{font-size:.6rem;color:#9ca3af;margin-left:auto;flex-shrink:0}.assignment-full-item-details{margin-top:10px;padding-top:10px;border-top:1px solid #e5e7eb}.assignment-full-item-details .assignment-item-task{font-size:.85rem;margin-bottom:10px}.assignment-full-item-actions{display:flex;gap:8px;margin-top:10px}.assignment-archive-btn{font-size:.75rem;color:#6b7280;background:none;border:1px solid #d1d5db;border-radius:4px;padding:3px 10px;cursor:pointer}.assignment-archive-btn:hover{background:#f3f4f6}.assignment-executions-section{margin-top:8px}.assignment-executions-toggle{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;font-weight:600;color:#6b7280;text-transform:uppercase;cursor:pointer;padding:4px 0}.assignment-executions-toggle:hover{color:#374151}.assignment-executions-list{margin-top:4px;display:flex;flex-direction:column;gap:4px}.assignment-execution-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.75rem;padding:4px 8px;background:#fff;border-radius:4px;border-left:2px solid #e5e7eb;color:#6b7280}.assignment-execution-row.completed{border-left-color:#22c55e}.assignment-execution-row.failed{border-left-color:#ef4444}.assignment-execution-row.running{border-left-color:#f59e0b}.assignment-execution-row.no_action{border-left-color:#9ca3af}.assignment-execution-row .execution-status{font-weight:600;text-transform:uppercase;min-width:70px}.assignment-execution-row.completed .execution-status{color:#22c55e}.assignment-execution-row.failed .execution-status{color:#ef4444}.assignment-execution-row.running .execution-status{color:#f59e0b}.assignment-execution-row.no_action .execution-status{color:#9ca3af}.assignment-execution-row .execution-log{width:100%;font-size:.7rem;color:#9ca3af;white-space:pre-wrap;word-break:break-word}.assignment-exec-count{color:#6b7280;font-weight:500}.sidebar-footer-btn.active{background:#6366f11a;color:var(--accent)}.chat-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:12px;color:#9ca3af}.chat-empty-state .empty-icon{width:48px;height:48px;background:var(--ai-avatar);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.4rem;font-weight:600}.chat-empty-state p{font-size:.95rem}.tool-call-bubble{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#f3f4f6;border-radius:4px 12px 12px;cursor:pointer;transition:background .15s;font-size:.85rem;color:#1f2937}.tool-call-bubble:hover{background:#e5e7eb}.tool-call-icon{font-size:1rem;flex-shrink:0;color:#6b7280}.tool-call-label{flex:1}.tool-call-label strong{color:#111827}.tool-call-chevron{font-size:.7rem;color:#9ca3af;flex-shrink:0}.tool-call-details{margin-top:6px;padding:10px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px}.tool-call-section{margin-bottom:8px}.tool-call-section:last-child{margin-bottom:0}.tool-call-section-label{font-size:.75rem;font-weight:600;color:#6b7280;margin-bottom:4px}.tool-call-json{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:8px;font-size:.8rem;color:#1f2937;white-space:pre-wrap;word-wrap:break-word;max-height:200px;overflow-y:auto;margin:0}.tool-call-full-btn{display:inline-block;margin-top:6px;padding:4px 12px;background:var(--accent);color:#fff;border:none;border-radius:4px;font-size:.75rem;font-weight:500;cursor:pointer;transition:background .15s}.tool-call-full-btn:hover{background:var(--accent-hover)}.tool-call-full-btn:disabled{background:#a5b4fc;cursor:not-allowed}.tool-call-full{margin-top:8px;padding-top:8px;border-top:1px solid #e5e7eb}.standard-tools-manager{margin-top:.75rem}.std-tools-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.std-tool-card{border:1px solid #e5e7eb;border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;transition:border-color .15s}.std-tool-card:hover{border-color:#c7d2fe}.std-tool-card.installed{background:#f9fafb}.standard-tools-manager>.std-tools-grid .std-tool-card.installed{opacity:.8}.std-tool-card-header{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.std-tool-icon{width:32px;height:32px;border-radius:6px;flex-shrink:0}.std-tool-info{flex:1;min-width:0}.std-tool-name{font-weight:600;font-size:.9rem;color:#111827}.std-tool-desc{font-size:.8rem;color:#6b7280;line-height:1.3}.std-tool-card-actions{flex-shrink:0;display:flex;gap:.5rem;align-items:center}.std-tool-add-btn{padding:5px 14px;background:var(--accent);color:#fff;border:none;border-radius:6px;font-size:.85rem;font-weight:500;transition:background .15s}.std-tool-add-btn:hover{background:var(--accent-hover)}.std-tool-add-btn:disabled{background:#a5b4fc;cursor:not-allowed}.std-tool-edit-btn{background:none;border:1px solid #d1d5db;color:#374151;font-size:.8rem;padding:3px 10px;border-radius:4px;cursor:pointer;transition:background .15s,border-color .15s}.std-tool-edit-btn:hover{background:#f3f4f6;border-color:#9ca3af}.std-tool-installed-badge{font-size:.8rem;color:#15803d;font-weight:500}.std-tool-card:has(.std-tools-inline-form){flex-direction:column;align-items:stretch}.std-tool-card:has(.std-tools-inline-form) .std-tool-card-header{width:100%}.std-tools-inline-form{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #e5e7eb;width:100%}.std-tools-inline-form .form-group{margin-bottom:.5rem}.std-tools-config-overlay{margin-top:1rem;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px}.std-tools-config-form h3{font-size:.95rem;margin-bottom:.75rem;color:#111827}.std-tools-field-desc{font-size:.78rem;color:#9ca3af;margin-bottom:.25rem}.std-tools-config-actions{display:flex;gap:.5rem;margin-top:1rem}.std-tools-config-actions .secondary-btn,.std-tools-config-actions .login-btn{flex:none;width:auto;padding:.5rem 1rem;font-size:.85rem;margin-top:0}.std-tools-verify-result{margin-top:.5rem;padding:.5rem .75rem;border-radius:6px;font-size:.85rem}.std-tools-verify-result.success{background:#dcfce7;color:#15803d}.std-tools-verify-result.error{background:#fef2f2;color:#dc2626}.std-tools-installed{margin-top:1rem;border-top:1px solid #e5e7eb;padding-top:.75rem}.std-tools-installed h4{font-size:.85rem;color:#6b7280;margin-bottom:.5rem;font-weight:600}.std-tools-installed-item{display:flex;align-items:center;justify-content:space-between;padding:6px 0}.std-tools-installed-name{font-size:.85rem;color:#374151}.std-tools-remove-btn{background:none;border:none;color:#dc2626;font-size:.8rem;padding:2px 6px;border-radius:4px}.std-tools-remove-btn:hover{background:#fef2f2}.std-tools-hint{margin-top:.75rem;font-size:.8rem;color:#9ca3af;font-style:italic}.settings-layout{display:flex;height:100vh;overflow:hidden}.settings-nav{width:240px;min-width:240px;background:var(--sidebar-bg);color:#fff;display:flex;flex-direction:column;padding:16px 0}.settings-back-btn{display:flex;align-items:center;gap:8px;padding:10px 20px;background:none;border:none;color:#ffffffb3;font-size:.9rem;margin-bottom:16px;transition:color .15s}.settings-back-btn:hover{color:#fff}.settings-nav-list{display:flex;flex-direction:column;gap:2px;padding:0 8px}.settings-nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;background:none;border:none;color:#ffffffb3;font-size:.9rem;border-radius:8px;transition:background .15s,color .15s;text-align:left}.settings-nav-item:hover{background:var(--sidebar-hover);color:#fff}.settings-nav-item.active{background:var(--sidebar-active);color:#fff;font-weight:500}.settings-nav-icon{font-size:1rem;width:20px;text-align:center}.settings-content{flex:1;overflow-y:auto;padding:32px 40px;background:#f9fafb}.settings-section{max-width:640px}.settings-section-title{font-size:1.5rem;font-weight:600;color:#111827;margin-bottom:8px}.settings-section-desc{font-size:.9rem;color:#6b7280;margin-bottom:24px;line-height:1.5}.settings-subsection-title{font-size:1rem;font-weight:600;color:#374151;margin-top:24px;margin-bottom:12px;padding-top:16px;border-top:1px solid #e5e7eb}.settings-subsection-title:first-of-type{border-top:none;padding-top:0}.settings-form{display:flex;flex-direction:column;gap:12px}.settings-form .login-btn{width:auto;align-self:flex-start;padding:.5rem 1.5rem}.settings-textarea{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:4px;font-size:.95rem;line-height:1.5;resize:vertical;min-height:80px}.settings-textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #6366f133}.settings-status{padding:8px 12px;border-radius:6px;font-size:.85rem;margin-top:4px}.settings-status.success{background:#dcfce7;color:#15803d}.settings-status.error{background:#fef2f2;color:#dc2626}.settings-placeholder-text{color:#9ca3af;font-size:.9rem;font-style:italic;padding:12px 0}.settings-inline-status{color:#6b7280;font-size:.85rem;padding:8px 0}.settings-form-actions{display:flex;gap:8px;margin-top:8px}.settings-form-actions .login-btn,.settings-form-actions .secondary-btn{flex:none;width:auto;padding:.5rem 1.2rem;font-size:.9rem}.settings-providers-list{display:flex;flex-direction:column;gap:8px}.settings-provider-card{border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;background:#fff}.settings-provider-card.active{border-color:var(--accent);background:#faf5ff}.settings-provider-header{display:flex;align-items:center;gap:8px}.settings-provider-name{font-weight:600;font-size:.9rem;color:#111827}.settings-provider-badge{font-size:.7rem;font-weight:500;padding:2px 8px;border-radius:12px}.settings-provider-badge.configured{background:#dcfce7;color:#15803d}.settings-provider-badge.not-configured{background:#fef3c7;color:#92400e}.settings-provider-badge.active-badge{background:#ede9fe;color:#6d28d9}.settings-provider-edit-btn{margin-left:auto;padding:4px 12px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;font-size:.8rem;color:#374151}.settings-provider-edit-btn:hover{background:#e5e7eb}.settings-provider-form{margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb}.settings-model-selection{display:flex;flex-direction:column;gap:12px}.settings-model-load-row{display:flex;flex-wrap:wrap;gap:8px}.settings-load-models-btn{width:auto;padding:6px 14px;font-size:.85rem}.settings-model-groups{display:flex;flex-direction:column;gap:16px;max-height:400px;overflow-y:auto;border:1px solid #e5e7eb;border-radius:8px;padding:12px;background:#fff}.settings-model-provider-group h4{font-size:.9rem;font-weight:600;color:#374151;margin-bottom:8px}.settings-model-group{margin-left:12px;margin-bottom:8px}.settings-model-group-name{display:block;font-size:.75rem;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.settings-model-option{display:flex;align-items:center;gap:6px;padding:3px 0;font-size:.85rem;color:#374151;cursor:pointer}.settings-model-option input[type=radio]{margin:0}.settings-model-current{font-weight:600;color:var(--accent)}.settings-model-selection .login-btn{width:auto;align-self:flex-start;padding:.5rem 1.5rem}.settings-tools-list{display:flex;flex-direction:column;gap:6px}.settings-tool-item{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:8px}.settings-tool-name{font-size:.9rem;font-weight:500;color:#111827}.settings-tool-remove-btn{padding:4px 10px;background:none;border:1px solid #fca5a5;border-radius:6px;color:#dc2626;font-size:.8rem}.settings-tool-remove-btn:hover{background:#fef2f2}.settings-custom-tool-form{margin-top:8px;padding:16px;background:#fff;border:1px solid #e5e7eb;border-radius:8px}.mobile-menu-btn{display:none;background:none;border:none;color:#6b7280;padding:6px;border-radius:6px;cursor:pointer;position:relative}.mobile-menu-btn:hover{background:#f3f4f6;color:#374151}.mobile-header-logo,.settings-content-header,.sidebar-overlay{display:none}@media(max-width:768px){.app-layout{position:relative}.center-panel{flex:1;width:100%;min-width:100%}.left-sidebar,.left-sidebar.collapsed{position:fixed;top:0;left:0;height:100vh;width:75vw!important;max-width:320px;min-width:0!important;z-index:1000;transform:translate(-100%);transition:transform .25s ease,box-shadow .25s ease;box-shadow:none}.left-sidebar.mobile-open{transform:translate(0);box-shadow:4px 0 24px #00000026}.right-sidebar,.right-sidebar.collapsed{position:fixed;top:0;right:0;height:100vh;width:75vw!important;max-width:320px;min-width:0!important;z-index:1000;transform:translate(100%);transition:transform .25s ease,box-shadow .25s ease;box-shadow:none}.right-sidebar.mobile-open{transform:translate(0);box-shadow:-4px 0 24px #00000026}.left-sidebar .panel-toggle-btn,.right-sidebar .panel-toggle-btn{display:none}.mobile-menu-btn{display:flex;align-items:center;justify-content:center}.mobile-header-logo{display:block;width:32px;height:32px;border-radius:6px;margin-left:auto}.sidebar-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#0000004d;z-index:999}.sidebar-overlay.visible{display:block}.center-header{padding:8px 12px}.chat-history{padding:12px 16px;gap:12px}.chat-message-row{flex-wrap:wrap;gap:4px;max-width:95%}.chat-message-row .msg-body{flex-basis:100%;gap:2px}.chat-message-row .msg-sender{display:flex;align-items:center;gap:6px}.chat-message-row.user .msg-body{align-items:flex-end}.msg-bubble{max-width:100%}.quick-prompts{flex-wrap:nowrap;overflow-x:auto;padding:8px 12px;gap:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.quick-prompts::-webkit-scrollbar{display:none}.quick-prompt-btn{padding:4px 12px;font-size:.75rem;flex-shrink:0}.chat-input-area{padding:8px 12px}.assignments-main-header{padding:8px 12px;gap:8px}.settings-nav{position:fixed;top:0;left:0;height:100vh;width:75vw!important;max-width:320px;min-width:0!important;z-index:1000;transform:translate(-100%);transition:transform .25s ease,box-shadow .25s ease;box-shadow:none}.settings-nav.mobile-open{transform:translate(0);box-shadow:4px 0 24px #00000026}.settings-content{padding:16px}.settings-content-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}.settings-content-title{font-size:1.2rem;font-weight:600;color:#1f2937;margin:0}}
