:root{color:#0f172a;background:#f8fafc;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}#root{min-height:100vh}.app-shell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar{color:#f9fafb;background:#111827;flex-direction:column;gap:1.5rem;padding:1.5rem;display:flex}.sidebar-header h1{margin:0 0 .25rem;font-size:1.25rem}.sidebar-header p{color:#9ca3af;margin:0;font-size:.9rem}.sidebar-marketplace{border-top:1px solid #374151;padding-top:.75rem;color:#e5e7eb!important;margin-top:.75rem!important;font-size:.85rem!important}.sidebar-marketplace-path{color:#9ca3af;margin-top:.25rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;display:block}.sidebar-nav{flex-direction:column;flex:1;gap:.5rem;display:flex}.nav-item,.logout-button,.secondary-button{border:0;border-radius:.75rem;padding:.75rem 1rem}.nav-item{color:#e5e7eb;text-align:left;background:0 0}.nav-item.active{color:#fff;background:#1f2937}.logout-button{color:#fff;background:#374151}.app-main{padding:1.5rem}.login-page{place-items:center;min-height:100vh;padding:1.5rem;display:grid}.login-card{background:#fff;border-radius:1rem;gap:.75rem;width:min(100%,420px);padding:2rem;display:grid;box-shadow:0 20px 45px #0f172a14}.login-card h1,.chat-header h2{margin:0}.login-card p,.chat-header p,.empty-state,.thread-meta{color:#64748b;margin:0}.login-card label{font-size:.9rem;font-weight:600}.login-card input,.login-card select,.chat-composer textarea{background:#fff;border:1px solid #cbd5e1;border-radius:.75rem;width:100%;padding:.75rem .9rem}.login-card button,.chat-composer button{color:#fff;background:#2563eb;border:0;border-radius:.75rem;padding:.85rem 1rem;font-weight:600}.login-card button:disabled,.chat-composer button:disabled{opacity:.6;cursor:not-allowed}.error-banner{color:#991b1b;background:#fee2e2;border-radius:.75rem;margin:0;padding:.75rem .9rem}.chat-page{grid-template-rows:auto 1fr auto;gap:1rem;min-height:calc(100vh - 3rem);display:grid}.chat-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.secondary-button{color:#0f172a;background:#e2e8f0}.chat-log{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;gap:.75rem;padding:1rem;display:grid;overflow:auto}.chat-entry{border-radius:1rem;max-width:80%;padding:.9rem 1rem}.chat-entry.user{background:#dbeafe;justify-self:end}.chat-entry.assistant{background:#f1f5f9;justify-self:start}.chat-entry.system{background:#fef3c7;justify-self:center}.chat-entry p{white-space:pre-wrap;margin:.35rem 0 0}.message-status{color:#64748b;margin-top:.5rem;font-size:.75rem;display:inline-block}.chat-composer{gap:.75rem;display:grid}.agent-setup{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;gap:.75rem;padding:1rem;display:grid}.agent-setup-row{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.agent-setup-label{color:#475569;min-width:7rem;font-size:.85rem;font-weight:600}.mode-toggle{gap:.5rem;display:flex}.mode-option{background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;align-items:center;gap:.35rem;padding:.45rem .75rem;font-size:.9rem;display:inline-flex}.mode-option.active{color:#1e40af;background:#dbeafe;border-color:#2563eb}.mode-option input{margin:0}.catalog-item-input{border:1px solid #cbd5e1;border-radius:.75rem;width:min(100%,10rem);padding:.55rem .75rem}.knowledge-panel{gap:.65rem;display:grid}.knowledge-meta{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.knowledge-badge{border-radius:999px;padding:.2rem .55rem;font-size:.75rem;font-weight:600;display:inline-block}.knowledge-badge.status-done{color:#166534;background:#dcfce7}.knowledge-badge.status-waiting,.knowledge-badge.status-processing{color:#92400e;background:#fef3c7}.knowledge-badge.status-error{color:#991b1b;background:#fee2e2}.knowledge-detail{color:#64748b;font-size:.8rem}.knowledge-hint{color:#64748b;margin:0;font-size:.9rem}.suggested-questions{gap:.5rem;display:grid}.suggested-label{color:#475569;font-size:.8rem;font-weight:600}.suggested-chips{flex-wrap:wrap;gap:.5rem;display:flex}.suggested-chip{color:#0f172a;text-align:left;background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;padding:.4rem .75rem;font-size:.85rem}.suggested-chip:hover:not(:disabled){background:#e2e8f0}.suggested-chip:disabled{opacity:.6;cursor:not-allowed}@media (width<=768px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:auto}}
