*{box-sizing:border-box}.login-page{min-height:100vh;background:#fff;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:1.5rem;position:relative;overflow-y:auto;overflow-x:hidden}.background-orbs{position:fixed;inset:0;overflow:hidden;z-index:0;opacity:.02;pointer-events:none}.orb{position:absolute;border-radius:50%;filter:blur(80px);animation:float 20s infinite ease-in-out}.orb-1{width:400px;height:400px;background:radial-gradient(circle,#ff6b35 0%,transparent 70%);top:-10%;left:-10%;animation-delay:0s}.orb-2{width:500px;height:500px;background:radial-gradient(circle,#f7931e 0%,transparent 70%);bottom:-15%;right:-15%;animation-delay:7s}.orb-3{width:350px;height:350px;background:radial-gradient(circle,#ff8c42 0%,transparent 70%);top:40%;left:50%;animation-delay:14s}@keyframes float{0%,to{transform:translate(0) scale(1)}33%{transform:translate(50px,-50px) scale(1.1)}66%{transform:translate(-30px,30px) scale(.9)}}.login-container{display:grid;grid-template-columns:1.2fr 1fr;gap:4rem;max-width:1400px;width:100%;position:relative;z-index:1;align-items:start;padding:1.5rem 0}.login-content{display:flex;flex-direction:column;gap:1.5rem;color:#1a1a2e}.brand-section{margin-bottom:.5rem}.brand-header{display:flex;align-items:center;gap:1rem}.logo-wrapper{width:60px;height:60px;background:#f8f9fa;border-radius:12px;padding:8px;border:1px solid #e9ecef;flex-shrink:0;transition:all .3s ease}.logo-wrapper:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014;border-color:#ff6b3533}.logo-image{width:100%;height:100%;object-fit:contain}.brand-title{font-size:2rem;font-weight:800;letter-spacing:.1em;margin:0;color:#1a1a2e;text-transform:uppercase;line-height:1.2}.brand-accent{background:linear-gradient(135deg,#ff6b35,#f7931e);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-section{display:flex;flex-direction:column;gap:.75rem}.hero-title{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:700;line-height:1.25;margin:0;color:#1a1a2e;letter-spacing:-.02em}.hero-subheadline{font-size:1rem;line-height:1.6;color:#475569;margin:0;font-weight:400}.supporting-section{display:flex;flex-direction:column;gap:.5rem}.supporting-text{font-size:.95rem;line-height:1.6;color:#475569;margin:0}.features-list{display:flex;flex-direction:column;gap:.5rem;margin-top:.25rem}.feature-item{display:flex;align-items:flex-start;gap:.5rem}.feature-bullet{color:#ff6b35;font-size:1.125rem;font-weight:700;line-height:1.4;flex-shrink:0;margin-top:.125rem}.feature-text{font-size:.95rem;line-height:1.6;color:#475569;margin:0}.info-section{width:100%;padding:2rem 1.5rem;position:relative;z-index:1}.info-section-container{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:1fr 1.5fr;gap:3rem;align-items:start}.how-it-works-container{display:flex;justify-content:center}.how-it-works-container .how-it-works-section{width:100%}.disclaimer-container{display:flex;justify-content:center}.disclaimer-container .disclaimer-section{width:100%}.how-it-works-section{margin:0}.section-title{font-size:1.375rem;font-weight:700;color:#1a1a2e;margin:0 0 1rem;letter-spacing:-.01em}.how-it-works-steps{display:flex;flex-direction:column;gap:1rem}.step-item{display:flex;flex-direction:column;gap:.375rem}.step-title{font-size:1rem;font-weight:600;color:#1a1a2e;margin:0}.step-description{font-size:.9rem;line-height:1.5;color:#64748b;margin:0}.trust-statement{background:#f8f9fa;border-left:3px solid #ff6b35;border-radius:8px;padding:1rem;margin-top:.5rem}.trust-text{font-size:.95rem;line-height:1.6;color:#1a1a2e;margin:0 0 .5rem;font-weight:500}.trust-text:last-child{margin-bottom:0}.disclaimer-section{background:transparent;border:none;border-radius:0;padding:0;margin:0;display:flex;flex-direction:column;height:100%}.disclaimer-title{font-size:1.125rem;font-weight:700;color:#1a1a2e;margin:0 0 .875rem;letter-spacing:-.01em}.disclaimer-text{font-size:.813rem;line-height:1.5;color:#64748b;margin:0 0 .75rem}.disclaimer-text:last-child{margin-bottom:0}.form-section{display:flex;align-items:flex-start;justify-content:center;position:sticky;top:2rem}.form-panel{width:100%;max-width:440px;background:#fff;border:1px solid #e9ecef;border-radius:20px;padding:1.75rem;box-shadow:0 4px 24px #00000014;box-sizing:border-box}.form-header{margin-bottom:1.25rem;text-align:center}.form-title{font-size:1.75rem;font-weight:700;color:#1a1a2e;margin:0 0 .5rem}.form-subtitle{font-size:.9rem;color:#64748b;margin:0}.mode-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;background:#f8f9fa;border-radius:10px;padding:.25rem;margin-bottom:1.5rem;border:1px solid #e9ecef}.toggle-btn{position:relative;z-index:2;border:none;background:transparent;color:#64748b;font-size:.875rem;font-weight:600;padding:.625rem 1rem;cursor:pointer;transition:color .3s ease;text-transform:uppercase;letter-spacing:.05em}.toggle-btn.active{color:#1a1a2e}.toggle-slider{position:absolute;top:.25rem;left:.25rem;width:calc(50% - .25rem);height:calc(100% - .5rem);background:linear-gradient(135deg,#ff6b35,#f7931e);border-radius:8px;transition:transform .3s cubic-bezier(.4,0,.2,1);z-index:1;box-shadow:0 2px 8px #ff6b354d}.auth-form{display:flex;flex-direction:column;gap:1rem;min-width:0}.auth-form *{min-width:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;min-width:0}.input-group{display:flex;flex-direction:column;gap:.5rem;min-width:0}.input-group label{font-size:.813rem;font-weight:600;color:#374151;letter-spacing:.02em}.input-group input{width:100%;background:#fff;border:1.5px solid #e9ecef;border-radius:8px;padding:.75rem 1rem;color:#1a1a2e;font-size:.9rem;transition:all .3s ease;font-weight:500;box-sizing:border-box}.input-group input::placeholder{color:#9ca3af}.input-group input:hover{border-color:#d1d5db;background:#fafafa}.input-group input:focus{outline:none;border-color:#ff6b35;background:#fff;box-shadow:0 0 0 3px #ff6b351a}.submit-btn{margin-top:.25rem;background:linear-gradient(135deg,#ff6b35,#f7931e);color:#fff;border:none;border-radius:8px;padding:.875rem;font-size:.9rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #ff6b354d;display:flex;align-items:center;justify-content:center;gap:.75rem}.submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #ff6b3566}.submit-btn:active:not(:disabled){transform:translateY(0)}.submit-btn:disabled{opacity:.6;cursor:not-allowed}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.form-footer{margin-top:.5rem;text-align:center;font-size:.7rem;color:#9ca3af;line-height:1.5}@media(max-width:1024px){.login-container{grid-template-columns:1fr;gap:3rem;max-width:800px}.form-section{order:-1;position:static}.login-content{gap:1.25rem}}@media(max-width:768px){.login-page{padding:1.5rem 1rem}.login-container{gap:2rem;padding:1rem 0}.brand-title,.hero-title{font-size:1.75rem}.form-panel{padding:1.75rem 1.5rem}.form-title{font-size:1.5rem}.form-row{grid-template-columns:1fr}.section-title{font-size:1.25rem}.info-section-container{grid-template-columns:1fr;gap:2rem}}@media(max-width:480px){.login-page{padding:1rem .75rem}.form-panel{padding:1.5rem;border-radius:16px}.brand-header{gap:.75rem}.brand-title{font-size:1.5rem}.logo-wrapper{width:50px;height:50px}.form-header{margin-bottom:1.25rem}.auth-form{gap:.875rem}.form-row{grid-template-columns:1fr}.hero-title{font-size:1.5rem}.hero-subheadline{font-size:1rem}.supporting-text,.feature-text{font-size:.95rem}.info-section{padding:1.5rem 1rem}.info-section-container{grid-template-columns:1fr;gap:1.5rem}}.dash-container{display:flex;width:100vw;height:90vh;overflow:hidden}.kb-sidebar{background:#fffffff2;border-right:1px solid rgba(148,163,184,.2);padding:1.5rem 1rem;overflow-y:auto}.sidebar-section{display:flex;flex-direction:column;gap:.75rem}.sidebar-section h2{font-size:.75rem;text-transform:uppercase;letter-spacing:.16em;margin:0;font-weight:700;color:#111827;padding:0 .5rem}.sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.sidebar-item{width:100%;text-align:left;border-radius:.65rem;padding:.65rem .75rem;border:none;background:transparent;cursor:pointer;transition:all .12s ease;display:flex;flex-direction:column;gap:.15rem}.sidebar-item:hover{background:#f8fafce6}.sidebar-item-title{display:block;font-size:.85rem;font-weight:600;color:#111827}.sidebar-item-sub{display:block;font-size:.72rem;color:#6b7280;line-height:1.3}.sidebar-item-active{background:#050505!important}.sidebar-item-active .sidebar-item-title{color:#f9fafb}.sidebar-item-active .sidebar-item-sub{color:#d1d5db}.muted{font-size:.8rem;color:#9ca3af;padding:0 .5rem}.error{font-size:.8rem;color:#ef4444;padding:0 .5rem}.chat-main{display:flex;flex-direction:row;position:relative;width:100%;height:100%}.chat-main:has(.chat-history-sidebar.collapsed){flex-direction:column}.chat-history-sidebar{background:#f8fafccc;border-right:1px solid rgba(148,163,184,.2);padding:1.25rem .85rem;overflow-y:auto;display:flex;flex-direction:column;gap:.75rem;transition:transform .3s ease,opacity .3s ease;transform:translate(0);opacity:1;width:280px;flex-shrink:0;min-width:280px;max-width:280px;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.4) transparent}.chat-history-sidebar::-webkit-scrollbar{width:8px}.chat-history-sidebar::-webkit-scrollbar-track{background:transparent;border-radius:4px}.chat-history-sidebar::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:4px;transition:background .2s ease}.chat-history-sidebar::-webkit-scrollbar-thumb:hover{background:#94a3b880}.chat-history-sidebar.collapsed{transform:translate(-100%);opacity:0;pointer-events:none;position:absolute;left:0;top:0;bottom:0;width:280px}.chat-history-header{display:flex;align-items:center;justify-content:space-between;padding:0 .35rem;gap:.5rem}.chat-history-header h3{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;margin:0;font-weight:700;color:#111827;flex:1}.chat-history-actions{display:flex;align-items:center;gap:.25rem}.new-chat-btn,.collapse-sidebar-btn{background:transparent;border:none;cursor:pointer;color:#6b7280;padding:.35rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;transition:all .12s ease}.new-chat-btn:hover,.collapse-sidebar-btn:hover{background:#94a3b826;color:#111827}.chat-sessions-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}.chat-session-list-item{position:relative;display:flex;align-items:center;gap:.25rem}.chat-session-item{flex:1;text-align:left;border-radius:.6rem;padding:.6rem .7rem;border:none;background:transparent;cursor:pointer;font-size:.82rem;font-weight:500;color:#4b5563;transition:all .12s ease;display:flex;align-items:center;min-width:0;overflow:hidden}.chat-session-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.chat-session-item:hover{background:#fffc;color:#111827}.chat-session-active{background:#ff7a1a1f!important;color:#ff7a1a!important;font-weight:600}.chat-session-delete-btn{background:transparent;border:none;cursor:pointer;color:#9ca3af;padding:.35rem;border-radius:.4rem;display:flex;align-items:center;justify-content:center;transition:all .12s ease;opacity:0;flex-shrink:0}.chat-session-list-item:hover .chat-session-delete-btn{opacity:1}.chat-session-delete-btn:hover{background:#ef44441a;color:#ef4444}.chat-session-delete-btn:active{transform:scale(.95)}.floating-reopen-btn{position:absolute;left:1rem;top:1rem;z-index:10;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#ff7a1a,#ffb347);border:none;color:#050505;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px #ff7a1a66;transition:all .2s ease;animation:float-in .3s ease-out}.floating-reopen-btn:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 12px 32px #ff7a1a80}.floating-reopen-btn:active{transform:translateY(0) scale(.98)}@keyframes float-in{0%{opacity:0;transform:translate(-20px) scale(.8)}to{opacity:1;transform:translate(0) scale(1)}}.chat-area{display:flex;flex-direction:column;overflow:hidden;background:#fff;flex:1;min-width:0;min-height:0}.chat-messages{flex:1;padding:2rem 2.5rem;overflow-y:auto;display:flex;flex-direction:column;gap:1.25rem}.msg{border-radius:1rem;padding:.85rem 1.1rem;max-width:75%;display:flex;flex-direction:column;gap:.3rem}.msg-user{align-self:flex-end;background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#111827}.msg-ai{align-self:flex-start;background:#f8fafcf2;border:1px solid rgba(148,163,184,.15);color:#111827}.msg-label{display:block;font-size:.65rem;text-transform:uppercase;letter-spacing:.14em;opacity:.65;margin-bottom:.15rem;font-weight:700}.msg p{margin:0;font-size:.9rem;line-height:1.5}.msg-content.markdown-content{font-size:.9rem;line-height:1.6}.msg-content.markdown-content>*:first-child{margin-top:0}.msg-content.markdown-content>*:last-child{margin-bottom:0}.msg-content.markdown-content p{margin:.5rem 0;line-height:1.6}.msg-content.markdown-content h1,.msg-content.markdown-content h2,.msg-content.markdown-content h3,.msg-content.markdown-content h4,.msg-content.markdown-content h5,.msg-content.markdown-content h6{margin:1rem 0 .5rem;font-weight:700;line-height:1.3}.msg-content.markdown-content h1{font-size:1.5rem}.msg-content.markdown-content h2{font-size:1.3rem}.msg-content.markdown-content h3{font-size:1.1rem}.msg-content.markdown-content h4,.msg-content.markdown-content h5,.msg-content.markdown-content h6{font-size:1rem}.msg-content.markdown-content ul,.msg-content.markdown-content ol{margin:.5rem 0;padding-left:1.5rem}.msg-content.markdown-content li{margin:.25rem 0}.msg-content.markdown-content code{background:#00000014;padding:.15rem .35rem;border-radius:.3rem;font-size:.85em;font-family:Courier New,Courier,monospace}.msg-ai .msg-content.markdown-content code{background:#94a3b833}.msg-content.markdown-content pre{background:#0000000d;padding:.75rem 1rem;border-radius:.5rem;overflow-x:auto;margin:.75rem 0;font-size:.85rem;line-height:1.5}.msg-ai .msg-content.markdown-content pre{background:#94a3b81a}.msg-content.markdown-content pre code{background:transparent;padding:0;border-radius:0;font-size:inherit}.msg-content.markdown-content blockquote{border-left:3px solid rgba(148,163,184,.4);padding-left:1rem;margin:.75rem 0;color:#000000b3;font-style:italic}.msg-ai .msg-content.markdown-content blockquote{border-left-color:#94a3b880;color:#111827cc}.msg-content.markdown-content a{color:#2563eb;text-decoration:underline;text-decoration-color:#2563eb4d;transition:all .15s ease}.msg-content.markdown-content a:hover{color:#1d4ed8;text-decoration-color:#2563eb99}.msg-ai .msg-content.markdown-content a{color:#2563eb}.msg-user .msg-content.markdown-content a{color:#050505;text-decoration-color:#05050566}.msg-content.markdown-content table{border-collapse:collapse;margin:.75rem 0;width:100%;font-size:.85rem}.msg-content.markdown-content table th,.msg-content.markdown-content table td{border:1px solid rgba(148,163,184,.3);padding:.5rem .75rem;text-align:left}.msg-content.markdown-content table th{background:#94a3b826;font-weight:600}.msg-content.markdown-content hr{border:none;border-top:1px solid rgba(148,163,184,.3);margin:1rem 0}.msg-content.markdown-content strong{font-weight:700}.msg-content.markdown-content em{font-style:italic}.typing-indicator{opacity:.9}.typing-dots{display:flex;gap:.4rem;align-items:center;padding:.5rem 0}.typing-dots span{width:8px;height:8px;border-radius:50%;background:#6b7280;animation:typing-bounce 1.4s infinite ease-in-out}.typing-dots span:nth-child(1){animation-delay:-.32s}.typing-dots span:nth-child(2){animation-delay:-.16s}.typing-dots span:nth-child(3){animation-delay:0s}@keyframes typing-bounce{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}.citations-container{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(148,163,184,.1)}.citations-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:#6b7280;display:block;width:100%}.chat-input-container{padding:1.25rem 2.5rem 1.75rem;border-top:1px solid rgba(148,163,184,.15);display:flex;gap:.75rem;align-items:center;background:#fffffffa}.chat-input{flex:1;border-radius:.85rem;padding:.85rem 1.25rem;border:1.5px solid rgba(148,163,184,.25);font-size:.9rem;color:#111827;transition:all .15s ease;background:#fff}.chat-input:focus{outline:none;border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a14}.chat-send-btn{background:linear-gradient(135deg,#ff7a1a,#ffb347);border:none;border-radius:.85rem;padding:.85rem 1.25rem;cursor:pointer;color:#050505;transition:all .15s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px #ff7a1a4d}.chat-send-btn:hover{transform:translateY(-1px);box-shadow:0 12px 28px #ff7a1a66}.chat-disabled-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:3rem 2rem;color:#6b7280}.disabled-icon{color:#d1d5db}.chat-disabled-state h3{margin:0;font-size:1.5rem;font-weight:700;color:#111827;text-align:center}.chat-disabled-state p{margin:0;max-width:420px;font-size:.95rem;line-height:1.5;color:#6b7280;text-align:center}@media(max-width:1200px){.dash-container{grid-template-columns:200px 1fr}.chat-main{grid-template-columns:180px 1fr}.chat-main:has(.chat-history-sidebar.collapsed){grid-template-columns:1fr}.chat-history-sidebar.collapsed{width:180px}}@media(max-width:960px){.dash-container{grid-template-columns:1fr}.kb-sidebar{display:none}.chat-main{grid-template-columns:180px 1fr}.chat-messages{padding:1.5rem 1.25rem}.chat-input-container{padding:1rem 1.25rem}.msg{max-width:85%}}@media(max-width:640px){.chat-main{grid-template-columns:1fr}.chat-history-sidebar{position:fixed;left:0;top:60px;bottom:0;width:280px;z-index:100;box-shadow:4px 0 12px #0000001a}.chat-history-sidebar.collapsed{width:280px}.floating-reopen-btn{left:.75rem;top:.75rem}}.project-dropdown{position:relative}.project-dropdown-trigger{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.5rem 2.5rem .5rem 1rem;background:#ffffffd9;border:1px solid rgba(148,163,184,.25);border-radius:.75rem;cursor:pointer;transition:all .15s ease;position:relative;min-width:160px}.project-dropdown-trigger:hover{background:#fffffff2;border-color:#94a3b866;box-shadow:0 4px 12px #94a3b826}.project-dropdown-label{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:#6b7280}.project-dropdown-value{font-size:.85rem;font-weight:600;color:#111827}.project-dropdown-icon{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);transition:transform .2s ease;color:#4b5563}.project-dropdown-icon.open{transform:translateY(-50%) rotate(180deg)}.project-dropdown-menu{position:absolute;top:calc(100% + .5rem);left:0;min-width:240px;background:#fffffffa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(148,163,184,.2);border-radius:.85rem;box-shadow:0 20px 50px #0f172a26;padding:.4rem;z-index:100;animation:dropdown-appear .15s ease-out}.project-dropdown-items{max-height:280px;overflow-y:auto;display:flex;flex-direction:column;gap:.2rem}.project-dropdown-item-wrapper{display:flex;align-items:center;gap:.35rem;position:relative}.project-dropdown-item{display:flex;align-items:center;flex:1;padding:.65rem .85rem;background:transparent;border:none;border-radius:.6rem;cursor:pointer;text-align:left;transition:all .12s ease}.project-dropdown-item:hover{background:#f8fafccc}.project-dropdown-item.active{background:linear-gradient(135deg,#ff7a1a,#ffb347)}.project-dropdown-item.active .project-item-name{color:#050505;font-weight:700}.project-dropdown-item.active .project-item-desc{color:#050505b3}.project-item-content{display:flex;flex-direction:column;gap:.15rem;flex:1}.project-item-name{font-size:.85rem;font-weight:600;color:#111827}.project-item-desc{font-size:.72rem;color:#6b7280;line-height:1.3}.project-dropdown-divider{height:1px;background:#94a3b833;margin:.4rem 0}.project-dropdown-add{display:flex;align-items:center;gap:.5rem;width:100%;padding:.65rem .85rem;background:transparent;border:none;border-radius:.6rem;cursor:pointer;font-size:.85rem;font-weight:600;color:#ff7a1a;transition:all .12s ease}.project-dropdown-add:hover{background:#ff7a1a14}.project-dropdown-add svg{flex-shrink:0}.project-delete-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:none;border-radius:.5rem;cursor:pointer;color:#9ca3af;transition:all .12s ease;flex-shrink:0}.project-delete-btn:hover{background:#ef44441a;color:#ef4444}.project-dropdown-item-wrapper:has(.project-dropdown-item.active) .project-delete-btn{color:#05050580}.project-dropdown-item-wrapper:has(.project-dropdown-item.active) .project-delete-btn:hover{background:#0505051a;color:#050505}.modal-overlay{position:fixed;inset:0;background:#05050599;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:modal-fade-in .2s ease-out}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:1.25rem;box-shadow:0 25px 60px #0f172a4d;max-width:480px;width:100%;animation:modal-slide-up .25s ease-out}@keyframes modal-slide-up{0%{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.75rem 1rem;border-bottom:1px solid rgba(148,163,184,.15)}.modal-header h2{margin:0;font-size:1.35rem;font-weight:700;color:#050505}.modal-close{background:transparent;border:none;cursor:pointer;color:#6b7280;padding:.25rem;border-radius:.5rem;transition:all .12s ease;display:flex;align-items:center;justify-content:center}.modal-close:hover{color:#050505;background:#94a3b81a}.modal-close:disabled{opacity:.5;cursor:not-allowed}.modal-form{padding:1.5rem 1.75rem;display:flex;flex-direction:column;gap:1.25rem}.modal-field{display:flex;flex-direction:column;gap:.4rem}.modal-field label{font-size:.85rem;font-weight:600;color:#111827}.required{color:#f97316}.modal-field input,.modal-field textarea{padding:.75rem 1rem;border:1.5px solid rgba(148,163,184,.3);border-radius:.75rem;font-size:.9rem;color:#111827;transition:all .15s ease;background:#fff;font-family:inherit}.modal-field textarea{resize:none;height:3.4rem;overflow-y:auto;scrollbar-width:none}.modal-field textarea::-webkit-scrollbar{display:none}.modal-field input:focus{outline:none;border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a1a}.modal-field textarea:focus{outline:none;border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a1a}.modal-field input:disabled{opacity:.6;cursor:not-allowed;background:#f8fafc80}.field-hint{font-size:.75rem;color:#6b7280;line-height:1.3}.modal-error{padding:.75rem 1rem;background:#ef444414;border:1px solid rgba(239,68,68,.2);border-radius:.75rem;color:#dc2626;font-size:.85rem;line-height:1.4}.modal-actions{display:flex;gap:.75rem;margin-top:.5rem}.modal-cancel,.modal-submit{flex:1;padding:.6rem 1rem;border-radius:.65rem;font-weight:600;font-size:.8rem;cursor:pointer;transition:all .15s ease;text-transform:uppercase;letter-spacing:.08em}.modal-cancel{background:transparent;border:1.5px solid rgba(148,163,184,.3);color:#4b5563}.modal-cancel:hover:not(:disabled){background:#f8fafccc;border-color:#94a3b880}.modal-cancel:disabled{opacity:.5;cursor:not-allowed}.modal-submit{background:linear-gradient(135deg,#ff7a1a,#ffb347);border:none;color:#050505;box-shadow:0 8px 20px #ff7a1a4d}.modal-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 28px #ff7a1a66}.modal-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}@keyframes glow-pulse{0%{box-shadow:0 0 #ff731580}70%{box-shadow:0 0 0 18px #ff731500}to{box-shadow:0 0 #ff731500}}.app-shell{max-height:100vh;background:radial-gradient(circle at top left,#fff7ed 0,#fff 35%,#f5f5f5),linear-gradient(135deg,#0f172a0a,#0f172a00);color:#050505;display:flex;flex-direction:column}.app-header{padding:.9rem 3rem;display:flex;align-items:center;gap:3rem;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(to bottom,#fffffff2,#ffffffdb,#ffffffc7);border-bottom:1px solid rgba(148,163,184,.18)}.logo-group{display:flex;align-items:center;gap:.75rem}.logo-mark{width:32px;height:32px;border-radius:999px;background:linear-gradient(135deg,#ff7a1a,#ffb347);display:flex;align-items:center;justify-content:center;font-size:.85rem;color:#050505;animation:glow-pulse 2.8s infinite;font-weight:800}.logo-text{display:flex;flex-direction:column;line-height:1}.logo-ask{font-weight:800;letter-spacing:.12em;font-size:.72rem}.logo-hiphop{font-weight:800;font-size:1.1rem}.main-nav{display:flex;align-items:center;gap:2rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;flex:1}.nav-link{color:#050505;text-decoration:none;position:relative}.nav-link:after{content:"";position:absolute;left:0;bottom:-.3rem;width:0;height:2px;background:#ff7a1a;transition:width .16s ease-out}.nav-link:hover:after,.nav-link.active:after{width:100%}.header-right{display:flex;align-items:center;gap:1rem}.project-error{font-size:.7rem;color:#b91c1c}.cta-button{padding:.7rem 1.5rem;border-radius:999px;border:none;background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#050505;font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;cursor:pointer;text-decoration:none;box-shadow:0 14px 30px #ff7a1a59;transition:transform .12s ease-out,box-shadow .12s ease-out}.cta-button:hover{transform:translateY(-1px);box-shadow:0 18px 40px #ff7a1a73}.ghost-button{padding:.55rem 1.3rem;border-radius:999px;border:1px solid rgba(15,23,42,.15);background:#fffc;font-weight:600;font-size:.75rem;cursor:pointer}.user-pill{display:flex;align-items:center;gap:.6rem;padding:.35rem .75rem;border-radius:999px;background:#0f172a09}.user-initial{width:26px;height:26px;border-radius:999px;background:#050505;color:#f9fafb;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}.user-meta{display:flex;flex-direction:column}.user-email{font-size:.72rem;font-weight:600}.user-role{font-size:.62rem;text-transform:uppercase;letter-spacing:.14em;color:#9ca3af}.app-main{flex:1;padding:0;display:flex;overflow-y:auto;overflow-x:hidden;min-height:0}@media(max-width:960px){.app-header{padding:.75rem 1.25rem;flex-wrap:wrap;gap:1rem}.main-nav{order:3;width:100%;justify-content:center}}.citation-modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.citation-modal-content{background:#fff;border-radius:1rem;width:90%;max-width:700px;max-height:80vh;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out;display:flex;flex-direction:column;overflow:hidden}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.citation-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;border-bottom:1px solid rgba(148,163,184,.15);flex-shrink:0;background:#fff;border-radius:1rem 1rem 0 0}.citation-modal-header h2{margin:0;font-size:1.25rem;font-weight:700;color:#111827}.citation-modal-close{background:transparent;border:none;cursor:pointer;color:#6b7280;padding:.5rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.citation-modal-close:hover{background:#ef44441a;color:#ef4444}.citation-modal-body{padding:1.5rem;display:flex;flex-direction:column;gap:1rem;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.2) transparent}.citation-modal-body::-webkit-scrollbar{width:8px}.citation-modal-body::-webkit-scrollbar-track{background:transparent}.citation-modal-body::-webkit-scrollbar-thumb{background:#94a3b833;border-radius:4px;border:2px solid transparent;background-clip:padding-box}.citation-modal-body::-webkit-scrollbar-thumb:hover{background:#94a3b859;background-clip:padding-box}.citation-detail-item{display:flex;flex-direction:column;gap:.35rem}.citation-detail-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:#6b7280}.citation-detail-value{font-size:.95rem;color:#111827;line-height:1.5}.citation-chunk-id{font-family:monospace;font-size:.85rem;color:#6b7280;word-break:break-all}.citation-trust-badge{display:inline-block;padding:.25rem .75rem;border-radius:.5rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.citation-trust-badge.trust-a{background:#22c55e1a;color:#16a34a}.citation-trust-badge.trust-b{background:#fbbf241a;color:#ca8a04}.citation-trust-badge.trust-c{background:#ef44441a;color:#dc2626}.citation-url-container{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:.5rem;background:#2563eb0d;border:1px solid rgba(37,99,235,.1)}.citation-url-link{flex:1;color:#2563eb;text-decoration:none;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:all .15s ease;min-width:0}.citation-url-link:hover{text-decoration:underline}.citation-url-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.citation-url-icon-button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;background:transparent;color:#2563eb;border-radius:.375rem;cursor:pointer;transition:all .15s ease;text-decoration:none}.citation-url-icon-button:hover{background:#2563eb1a;color:#1d4ed8}.citation-url-icon-button:active{transform:scale(.95)}.citation-url-icon-button svg{flex-shrink:0}.citation-pdf-link{display:inline-flex;align-items:center;gap:.5rem;color:#ff7a1a;text-decoration:none;font-weight:500;padding:.5rem 1rem;border-radius:.5rem;background:#ff7a1a1a;border:1px solid rgba(255,122,26,.2);transition:all .15s ease}.citation-pdf-link:hover{background:#ff7a1a26;border-color:#ff7a1a4d;transform:translateY(-1px)}.citation-chunk-text{background:#fff7edf2;border:1px solid rgba(255,122,26,.2);border-left:3px solid #ff7a1a;border-radius:.75rem;padding:1rem 1rem 1rem 2.5rem;font-size:.9rem;line-height:1.6;color:#111827;max-height:300px;overflow-y:auto;white-space:pre-wrap;word-wrap:break-word;margin-top:.5rem;position:relative;scrollbar-width:thin;scrollbar-color:rgba(255,122,26,.15) transparent}.citation-chunk-text:before{content:'"';position:absolute;top:.5rem;left:.75rem;font-size:2rem;color:#ff7a1a4d;font-family:Georgia,serif;line-height:1}.citation-chunk-text::-webkit-scrollbar{width:6px}.citation-chunk-text::-webkit-scrollbar-track{background:transparent}.citation-chunk-text::-webkit-scrollbar-thumb{background:#ff7a1a26;border-radius:3px;border:1px solid transparent;background-clip:padding-box}.citation-chunk-text::-webkit-scrollbar-thumb:hover{background:#ff7a1a40;background-clip:padding-box}.citation-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .75rem;background:#ff7a1a1a;border:1px solid rgba(255,122,26,.2);border-radius:.5rem;color:#ff7a1a;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap}.citation-badge:hover{background:#ff7a1a26;border-color:#ff7a1a4d;transform:translateY(-1px);box-shadow:0 2px 8px #ff7a1a33}.citation-badge:active{transform:translateY(0)}.citation-badge-icon{flex-shrink:0;opacity:.8}.citation-badge-text{line-height:1}.citations-container{display:flex;flex-wrap:wrap;margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(148,163,184,.1)}.breadcrumbs-list-inline{display:flex;align-items:center;gap:.375rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}.breadcrumbs-item-inline{display:flex;align-items:center;gap:.375rem}.breadcrumbs-link-inline{color:#64748b;text-decoration:none;font-size:1rem;font-weight:500;transition:color .15s ease}.breadcrumbs-link-inline:hover{color:#ff7a1a;text-decoration:underline}.breadcrumbs-current-inline{color:#94a3b8;font-size:1rem;font-weight:500}.breadcrumbs-separator-inline{color:#cbd5e1;font-size:1rem;-webkit-user-select:none;user-select:none}.kbs-list-container{padding:2.5rem 3rem;width:100%;display:flex;flex-direction:column;align-items:center}.kbs-list-content{width:100%;max-width:100%;display:flex;flex-direction:column;gap:2rem}.kb-card-actions{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:1rem}.kb-card-actions-menu{display:inline-flex;align-items:center;gap:.4rem;margin-top:auto;padding-top:.5rem}.kbs-header{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:2rem}.kbs-title-section{display:flex;flex-direction:column;gap:.5rem}.kbs-title-section h1{margin:0;font-size:2.5rem;font-weight:800;color:#050505}.kbs-title-section p{margin:0;font-size:1rem;color:#6b7280;line-height:1.5}.kbs-actions{display:flex;flex-direction:column;gap:.75rem;align-items:flex-end}.kbs-actions-primary{display:flex;align-items:center;gap:.5rem}.kbs-search input{min-width:220px;padding:.55rem .9rem;border-radius:999px;border:1px solid rgba(148,163,184,.6);font-size:.9rem;outline:none;transition:all .15s ease}.kbs-search input:focus{border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a21}.create-kb-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.5rem;background:linear-gradient(135deg,#ff7a1a,#ffb347);border:none;border-radius:.85rem;color:#050505;font-weight:600;cursor:pointer;transition:all .15s ease;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem;box-shadow:0 8px 20px #ff7a1a4d;white-space:nowrap}.create-kb-btn:hover{transform:translateY(-1px);box-shadow:0 12px 28px #ff7a1a66}.kbs-view-toggle{display:inline-flex;padding:.12rem;border-radius:999px;border:1px solid rgba(148,163,184,.6);background:#f9fafb;gap:.12rem}.kbs-view-toggle-btn{width:28px;height:28px;border-radius:999px;border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:#6b7280;cursor:pointer;transition:background-color .12s ease,color .12s ease,box-shadow .12s ease,transform .08s ease}.kbs-view-toggle-btn svg{flex-shrink:0}.kbs-view-toggle-btn:hover{background:#e5e7ebe6;color:#111827}.kbs-view-toggle-btn.active{background:#111827;color:#f9fafb;box-shadow:0 6px 14px #0f172a66}.kbs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.5rem;margin-bottom:2rem}.kbs-table-wrapper{width:100%;overflow-x:auto}.kbs-table{width:100%;border-collapse:collapse;font-size:.86rem;background:#fffffffa;border-radius:1rem;border:1px solid rgba(148,163,184,.3);box-shadow:0 10px 26px #94a3b838;overflow:hidden;margin-bottom:2rem}.kbs-table thead{background:linear-gradient(135deg,#ff7a1a,#ffb347)}.kbs-table th,.kbs-table td{padding:.75rem 1rem;text-align:left}.kbs-table th{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#111827;border-bottom:1px solid rgba(248,250,252,.4);white-space:nowrap}.kbs-table tbody tr:nth-child(2n){background:#f9fafbb3}.kbs-table tbody tr:hover{background:#fffaf5e6}.kbs-table-name-link{color:#111827;font-weight:600;text-decoration:none}.kbs-table-name-link:hover{text-decoration:underline}.kbs-table-slug{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.8rem;color:#6b7280}.kbs-table-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#6b7280}.kbs-table-actions-col{width:1%;white-space:nowrap}.kbs-table-actions{display:inline-flex;gap:.35rem}.kb-card{position:relative;display:flex;align-items:flex-start;gap:1.25rem;padding:1.5rem;background:#fffffffa;border:1.5px solid rgba(148,163,184,.2);border-radius:1.1rem;color:inherit;transition:all .2s ease}.kb-card:hover{border-color:#ff7a1a66;box-shadow:0 12px 32px #94a3b840;transform:translateY(-2px)}.kb-card-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:.85rem;background:linear-gradient(135deg,#ff7a1a1a,#ffb3471a);border:1px solid rgba(255,122,26,.15);color:#ff7a1a;flex-shrink:0}.kb-card-main{display:flex;flex-direction:column;flex:1;gap:.6rem;min-height:100%}.kb-card-content{flex:1;display:flex;flex-direction:column;gap:.35rem}.kb-card-header-row{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.kb-card-title-link{text-decoration:none;color:inherit}.kb-card-title-link h3{margin:0;font-size:1.1rem;font-weight:700;color:#111827;line-height:1.3}.kb-card-slug{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.8rem;color:#6b7280}.kb-card-content p{margin:0;font-size:.85rem;color:#6b7280;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.kb-card-action-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;border:1px solid rgba(148,163,184,.6);background:#fff;color:#4b5563;font-size:.78rem;font-weight:500;cursor:pointer;transition:background-color .12s ease,color .12s ease,border-color .12s ease,box-shadow .12s ease,transform .08s ease}.kb-card-action-btn svg{flex-shrink:0}.kb-card-action-btn:hover{background:#f8fafcfa;color:#111827;border-color:#94a3b8e6;box-shadow:0 6px 14px #94a3b859;transform:translateY(-1px)}.kb-card-action-btn--ghost{background:#f9fafbe6}.kb-card-action-btn--danger{border-color:#f8717199;color:#b91c1c}.kb-card-action-btn--danger:hover{background:#fef2f2f2;border-color:#ef4444e6;color:#991b1b;box-shadow:0 6px 14px #fecaca99}.kbs-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5rem 2rem;text-align:center;gap:1rem}.kbs-empty-state h2{margin:0;font-size:1.75rem;font-weight:700;color:#111827}.kbs-empty-state p{margin:0;max-width:480px;font-size:1rem;line-height:1.5;color:#6b7280}.kbs-loading{display:flex;align-items:center;justify-content:center;padding:4rem 2rem;font-size:1rem;color:#6b7280}.kbs-error{display:flex;align-items:center;justify-content:center;padding:2rem}.kbs-error p{margin:0;padding:1rem 1.5rem;background:#ef444414;border:1px solid rgba(239,68,68,.2);border-radius:.85rem;color:#dc2626;font-size:.9rem}@media(max-width:1024px){.kbs-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}@media(max-width:768px){.kbs-list-container{padding:1.5rem 1.25rem}.kbs-header{flex-direction:column;align-items:stretch}.kbs-title-section h1{font-size:2rem}.create-kb-btn{align-self:flex-start}.kbs-grid{grid-template-columns:1fr}.kbs-actions-primary{width:100%;justify-content:space-between}}.kb-card-status{display:flex;align-items:center}.kb-enabled-toggle{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .75rem;border-radius:.5rem;border:1px solid rgba(148,163,184,.6);background:#fff;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap}.kb-status-text{font-size:.8rem;font-weight:500}.custom-dropdown{position:relative;width:100%}.custom-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.75rem 1rem;background:#fff;border:1.5px solid rgba(148,163,184,.3);border-radius:.75rem;cursor:pointer;transition:all .15s ease;font-size:.9rem;color:#111827;font-family:inherit;min-height:2.75rem;box-shadow:0 1px 2px #00000005}.custom-dropdown-trigger:hover:not(.disabled){border-color:#94a3b880;box-shadow:0 1px 3px #0000000d}.custom-dropdown-trigger.open{border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a1a,0 1px 3px #0000000d}.custom-dropdown-trigger.disabled{opacity:.6;cursor:not-allowed;background:#f8fafc80}.custom-dropdown-value{flex:1;text-align:left;font-weight:500;color:#111827}.custom-dropdown-value.placeholder{color:#9ca3af;font-weight:400}.custom-dropdown-icon{flex-shrink:0;margin-left:.5rem;color:#6b7280;transition:transform .2s ease}.custom-dropdown-icon.open{transform:rotate(180deg);color:#ff7a1a}.custom-dropdown-menu{position:absolute;top:calc(100% + .5rem);left:0;right:0;background:#fffffffa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(148,163,184,.2);border-radius:.85rem;box-shadow:0 20px 50px #0f172a26;padding:.4rem;z-index:1000;animation:dropdown-appear .15s ease-out}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.custom-dropdown-items{max-height:280px;overflow-y:auto;display:flex;flex-direction:column;gap:.2rem}.custom-dropdown-items::-webkit-scrollbar{width:6px}.custom-dropdown-items::-webkit-scrollbar-track{background:transparent}.custom-dropdown-items::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:3px}.custom-dropdown-items::-webkit-scrollbar-thumb:hover{background:#94a3b880}.custom-dropdown-item{display:flex;align-items:center;width:100%;padding:.65rem .85rem;background:transparent;border:none;border-radius:.6rem;cursor:pointer;text-align:left;transition:all .12s ease;font-size:.9rem;font-weight:500;color:#111827;font-family:inherit}.custom-dropdown-item:hover{background:#f8fafccc}.custom-dropdown-item.active{background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#050505;font-weight:600}.source-upload-modal{max-width:900px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.source-upload-modal .modal-form{overflow-y:auto;flex:1;padding-right:.5rem;min-height:0}.source-upload-modal .modal-actions{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid rgba(148,163,184,.15);position:sticky;bottom:0;background:#fff;z-index:10}.source-upload-modal .modal-form::-webkit-scrollbar{width:6px}.source-upload-modal .modal-form::-webkit-scrollbar-track{background:transparent}.source-upload-modal .modal-form::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:3px}.source-upload-modal .modal-form::-webkit-scrollbar-thumb:hover{background:#94a3b880}.source-upload-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border-color, #e5e7eb);margin-bottom:0;padding:0 1.75rem}.source-upload-tab{display:flex;align-items:center;gap:8px;padding:12px 16px;background:none;border:none;border-bottom:2px solid transparent;color:var(--text-secondary, #6b7280);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.source-upload-tab:hover:not(:disabled){color:var(--text-primary, #111827)}.source-upload-tab.active{color:var(--primary-color, #3b82f6);border-bottom-color:var(--primary-color, #3b82f6)}.source-upload-tab:disabled{opacity:.5;cursor:not-allowed}.file-upload-area{border:2px dashed var(--border-color, #e5e7eb);border-radius:8px;padding:32px 24px;text-align:center;background:var(--bg-secondary, #f9fafb);transition:all .2s;margin-bottom:1.25rem}.file-upload-area.dragging{border-color:var(--primary-color, #3b82f6);background:var(--primary-light, #eff6ff)}.file-upload-area.has-file{border-color:var(--success-color, #10b981);background:var(--success-light, #ecfdf5)}.file-upload-placeholder{display:flex;flex-direction:column;align-items:center;gap:8px}.file-upload-placeholder svg{width:40px;height:40px;color:var(--text-secondary, #6b7280)}.upload-text{font-size:14px;color:var(--text-primary, #111827);margin:0}.upload-link{background:none;border:none;color:var(--primary-color, #3b82f6);text-decoration:underline;cursor:pointer;font-size:inherit;padding:0}.upload-link:hover:not(:disabled){color:var(--primary-dark, #2563eb)}.upload-link:disabled{opacity:.5;cursor:not-allowed}.upload-hint{font-size:12px;color:var(--text-secondary, #6b7280);margin:0}.file-selected{display:flex;flex-direction:column;align-items:center;gap:8px}.file-selected svg{width:40px;height:40px;color:var(--success-color, #10b981)}.file-name{font-size:14px;font-weight:500;color:var(--text-primary, #111827);margin:0}.file-size{font-size:12px;color:var(--text-secondary, #6b7280);margin:0}.file-remove-btn{margin-top:8px;padding:6px 12px;background:var(--bg-primary, #ffffff);border:1px solid var(--border-color, #e5e7eb);border-radius:6px;color:var(--text-secondary, #6b7280);font-size:12px;cursor:pointer;transition:all .2s}.file-remove-btn:hover:not(:disabled){background:var(--bg-secondary, #f9fafb);border-color:var(--error-color, #ef4444);color:var(--error-color, #ef4444)}.file-remove-btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.source-upload-modal{max-width:95vw}.modal-fields-grid{grid-template-columns:1fr}.source-upload-tabs{padding:0 1rem}}.modal-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:.5rem}.modal-fields-grid .modal-field{margin:0}.modal-field-full{grid-column:1 / -1;margin-bottom:.5rem}.source-edit-modal{max-width:900px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.source-edit-modal .modal-form{overflow-y:auto;flex:1;padding-right:.5rem;min-height:0}.source-edit-modal .modal-actions{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid rgba(148,163,184,.15);position:sticky;bottom:0;background:#fff;z-index:10}.source-edit-modal .modal-form::-webkit-scrollbar{width:6px}.source-edit-modal .modal-form::-webkit-scrollbar-track{background:transparent}.source-edit-modal .modal-form::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:3px}.source-edit-modal .modal-form::-webkit-scrollbar-thumb:hover{background:#94a3b880}@media(max-width:768px){.source-edit-modal{max-width:95vw}.source-edit-modal .modal-fields-grid{grid-template-columns:1fr}}.kb-detail-container{padding:1.75rem 3.25rem;width:100vw;height:90vh;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.3) rgba(241,245,249,.5)}.kb-detail-container::-webkit-scrollbar{width:8px}.kb-detail-container::-webkit-scrollbar-track{background:#f1f5f980}.kb-detail-container::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:4px}.kb-detail-container::-webkit-scrollbar-thumb:hover{background:#94a3b880}.kb-detail-content{width:100%;min-height:100%;display:flex;flex-direction:column;align-items:center}.kb-detail-loading,.kb-detail-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1rem}.kb-detail-error h2{margin:0;font-size:1.5rem;color:#111827}.kb-detail-error p{margin:0;color:#6b7280}.back-btn{margin-top:1rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#ff7a1a,#ffb347);border:none;border-radius:.75rem;color:#050505;font-weight:600;cursor:pointer;transition:all .15s ease;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem}.back-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px #ff7a1a4d}.kb-detail-header{display:flex;flex-direction:column;gap:1.5rem;width:100%;margin-bottom:.5rem}.kb-detail-header-top{display:flex;align-items:center;justify-content:space-between;gap:1rem}.back-button{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:none;color:#6b7280;font-size:.9rem;font-weight:600;cursor:pointer;padding:.5rem .75rem .5rem .5rem;border-radius:.6rem;transition:all .12s ease;align-self:flex-start}.back-button:hover{background:#94a3b81a;color:#111827}.kb-detail-title-section{display:flex;flex-direction:column;gap:.5rem}.kb-header-actions{display:flex;gap:.5rem}.kb-header-actions-inline{margin-top:.75rem}.kb-primary-btn,.kb-secondary-btn{padding:.5rem 1rem;border-radius:.6rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;cursor:pointer;border:1px solid transparent;transition:all .15s ease}.kb-primary-btn{background:#050505;color:#f9fafb;border-color:#050505}.kb-primary-btn:hover{background:#111827}.kb-secondary-btn{background:transparent;color:#b91c1c;border-color:#f8717199}.kb-secondary-btn:hover{background:#fee2e299}.kb-detail-title-section h1{margin:0;font-size:2.25rem;font-weight:800;color:#050505}.kb-description{margin:0;font-size:.95rem;color:#4b5563;line-height:1.6;font-weight:400}.kb-edit-fields{display:flex;flex-direction:column;gap:.5rem;max-width:520px}.kb-edit-input,.kb-edit-textarea{padding:.55rem .8rem;border-radius:.7rem;border:1px solid rgba(148,163,184,.5);font-size:.9rem;font-family:inherit}.kb-edit-textarea{resize:none;height:5rem;overflow-y:auto;scrollbar-width:none}.kb-edit-textarea::-webkit-scrollbar{display:none}.kb-edit-input:focus,.kb-edit-textarea:focus{outline:none;border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a1f}.kb-save-btn{align-self:flex-start;padding:.45rem 1rem;border-radius:.6rem;border:none;background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#050505;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;cursor:pointer;margin-top:.2rem}.add-source-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#ff7a1a,#ffb347);border:none;border-radius:.75rem;color:#050505;font-weight:600;cursor:pointer;transition:all .15s ease;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem;align-self:flex-start;box-shadow:0 8px 20px #ff7a1a4d}.add-source-btn:hover{transform:translateY(-1px);box-shadow:0 12px 28px #ff7a1a66}.kb-sources-section{width:100%;display:flex;flex-direction:column}.sources-header{display:flex;align-items:center;justify-content:space-between}.sources-header h2{margin:0;font-size:1.25rem;font-weight:700;color:#111827}.sources-filters{display:flex;gap:.5rem}.filter-btn{padding:.5rem 1rem;background:transparent;border:1px solid rgba(148,163,184,.3);border-radius:.6rem;color:#6b7280;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .12s ease}.filter-btn:hover{background:#f8fafccc;border-color:#94a3b880}.filter-btn.active{background:#050505;border-color:#050505;color:#f9fafb}.sources-table-wrapper{width:100%;max-height:60vh;overflow-x:auto;overflow-y:auto;border-radius:1rem;background:#fffffffa;box-shadow:0 10px 26px #94a3b838;margin-bottom:1rem}.sources-table-wrapper::-webkit-scrollbar{display:none;width:0;height:0}.sources-table-wrapper{-ms-overflow-style:none;scrollbar-width:none}.sources-table{width:100%;border-collapse:collapse;font-size:.86rem}.sources-table thead{background:#ff801f}.sources-table th,.sources-table td{padding:.75rem 1rem;text-align:left}.sources-table th{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#fff;white-space:nowrap;background:#ff801f;position:sticky;top:0;z-index:10}.status-filter-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.status-filter-container{position:relative;display:inline-flex}.status-filter-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:.4rem;color:#fff;cursor:pointer;transition:all .15s ease;flex-shrink:0}.status-filter-btn:hover{background:#ffffff4d;border-color:#ffffff80}.status-filter-btn.active{background:#ffffff59;border-color:#fff9}.status-filter-dropdown{position:absolute;top:calc(100% + .5rem);right:0;background:#fff;border:1px solid rgba(148,163,184,.3);border-radius:.6rem;box-shadow:0 8px 24px #00000026;min-width:140px;z-index:100;overflow:hidden;animation:dropdown-fade-in .15s ease-out}@keyframes dropdown-fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.status-filter-option{display:block;width:100%;padding:.65rem 1rem;text-align:left;background:transparent;border:none;color:#111827;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .12s ease;border-bottom:1px solid rgba(148,163,184,.1)}.status-filter-option:last-child{border-bottom:none}.status-filter-option:hover{background:#f8fafcf2;color:#111827}.status-filter-option.selected{background:#ff801f1a;color:#ff801f;font-weight:600}.status-filter-option.selected:hover{background:#ff801f26}.sources-table tbody tr:nth-child(2n){background:#f9fafbb3}.sources-table tbody tr:hover{background:#fffaf5e6}.sources-table tbody tr:last-child td{padding-bottom:1.5rem}.sources-empty-row,.sources-empty-row:hover{background:transparent!important}.sources-empty-cell{text-align:center;padding:3rem 2rem!important;vertical-align:middle}.sources-empty-inline{display:flex;flex-direction:column;align-items:center;gap:1rem;color:#6b7280;font-size:.9rem}.sources-clear-filter-btn{padding:.5rem 1.25rem;background:#ff801f;border:none;border-radius:.6rem;color:#fff;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s ease;box-shadow:0 2px 6px #ff801f4d}.sources-clear-filter-btn:hover{background:#ff6f00;box-shadow:0 4px 12px #ff801f66;transform:translateY(-1px)}.sources-clear-filter-btn:active{transform:translateY(0)}.status-badge{padding:.35rem .75rem;border-radius:999px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.status-ready{background:#22c55e1f;color:#16a34a}.status-processing{background:#3b82f61f;color:#2563eb}.status-failed{background:#ef44441f;color:#dc2626}.sources-cell-name{max-width:380px}.source-name{display:inline-block;font-weight:600;color:#111827}.source-error{display:inline-block;margin-left:8px;font-size:.7rem;color:#dc2626;font-weight:500}.sources-loading{padding:3rem 2rem;text-align:center;color:#6b7280;font-size:.95rem}.sources-cell-actions{white-space:nowrap}.sources-icon-btn{width:28px;height:28px;border-radius:999px;border:1px solid rgba(148,163,184,.5);background:#fff;color:#4b5563;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-left:.25rem;transition:all .12s ease}.sources-icon-btn:first-child{margin-left:0}.sources-icon-btn:hover{background:#f8fafcf2;border-color:#94a3b8cc;color:#111827}.sources-icon-btn.danger{border-color:#f87171b3;color:#b91c1c}.sources-icon-btn.danger:hover{background:#fee2e2d9}.sources-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center;color:#6b7280;gap:1rem}.empty-icon{color:#d1d5db}.sources-empty h3{margin:0;font-size:1.35rem;font-weight:700;color:#111827}.sources-empty p{margin:0;max-width:400px;font-size:.95rem;line-height:1.5}.sources-pagination{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:.5rem;width:100%;visibility:visible;opacity:1;flex-shrink:0}.pagination-info{margin:auto 0;display:flex;align-items:center;justify-content:flex-start;gap:.5rem;font-size:.9rem;color:#111827;font-weight:600;height:100%}.pagination-filter-note{color:#9ca3af;font-weight:400}.pagination-controls{display:flex;align-items:center;gap:.5rem}.pagination-btn{padding:.6rem 1.25rem;background:#fff;border:1.5px solid rgba(148,163,184,.4);border-radius:.6rem;color:#111827;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s ease;min-width:80px;box-shadow:0 1px 3px #0000001a}.pagination-btn:hover:not(:disabled){background:#f8fafcf2;border-color:#94a3b899;box-shadow:0 2px 6px #00000026;transform:translateY(-1px)}.pagination-btn:disabled{opacity:.5;cursor:not-allowed}.pagination-pages{display:flex;align-items:center;gap:.25rem}.pagination-page-btn{min-width:40px;height:40px;padding:0 .75rem;background:#fff;border:1.5px solid rgba(148,163,184,.4);border-radius:.6rem;color:#111827;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0000001a}.pagination-page-btn:hover{background:#f8fafcf2;border-color:#94a3b899;box-shadow:0 2px 6px #00000026;transform:translateY(-1px)}.pagination-page-btn.active{background:#ff801f;border-color:#ff801f;color:#fff;box-shadow:0 2px 8px #ff801f4d}.pagination-ellipsis{padding:0 .5rem;color:#6b7280;font-size:.85rem;font-weight:600}@media(max-width:1024px){.kb-detail-container{padding:1.5rem 1.25rem}.kb-detail-title-section h1{font-size:1.75rem}.sources-header{flex-direction:column;align-items:flex-start;gap:1rem}.sources-grid{grid-template-columns:1fr}}@media(min-width:1024px){.kb-detail-header{flex-direction:row;align-items:flex-start;justify-content:space-between}.kb-detail-header-top{flex-direction:column;align-items:flex-start;gap:.75rem}.kb-detail-title-section{max-width:60%}.kb-sources-section{margin-top:.5rem}}.kb-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;width:100%}.kb-title-row>div:first-child{flex:1}.kb-status-section{display:flex;align-items:center;flex-shrink:0}.kb-enabled-toggle{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .9rem;border-radius:.6rem;border:1px solid rgba(148,163,184,.6);background:#fff;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap}.kb-enabled-toggle:hover{background:#f8fafcfa;border-color:#94a3b8e6;box-shadow:0 2px 8px #94a3b833}.kb-enabled-toggle:disabled{opacity:.6;cursor:not-allowed}.kb-enabled-toggle.enabled{border-color:#22c55e99;background:#f0fdf4cc;color:#15803d}.kb-enabled-toggle.enabled:hover{border-color:#22c55ee6;background:#f0fdf4f2}.kb-enabled-toggle.disabled{border-color:#ef444499;background:#fef2f2cc;color:#b91c1c}.kb-enabled-toggle.disabled:hover{border-color:#ef4444e6;background:#fef2f2f2}.kb-status-indicator{width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}.kb-enabled-toggle.enabled .kb-status-indicator{background:#22c55e}.kb-enabled-toggle.disabled .kb-status-indicator{background:#ef4444}.kb-status-text{font-size:.85rem;font-weight:500}.settings-container{padding:2.5rem 3rem;width:100vw;height:100vh;display:flex;flex-direction:column;align-items:center;overflow-y:auto}.settings-content{width:100%;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:1rem}.settings-header{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:1rem}.settings-title-section{display:flex;flex-direction:column;gap:.5rem}.settings-title-section h1{margin:0;font-size:2.5rem;font-weight:800;color:#050505}.settings-title-section p{margin:0;font-size:1rem;color:#6b7280;line-height:1}.settings-sections-wrapper{width:100%;display:flex;flex-direction:row;gap:.5rem;padding-bottom:2rem;max-width:1000px}.settings-loading{display:flex;align-items:center;justify-content:center;padding:4rem 2rem;font-size:1rem;color:#6b7280}.settings-section{position:relative;display:flex;flex-direction:column;gap:1.25rem;padding:1.5rem;background:#fffffffa;border:1.5px solid rgba(148,163,184,.2);border-radius:1.1rem;transition:all .2s ease}.settings-section:hover{border-color:#ff7a1a66;box-shadow:0 12px 32px #94a3b840;transform:translateY(-2px)}.settings-section h2{font-size:1.1rem;font-weight:700;color:#111827;margin:0;line-height:1.3}.settings-description{font-size:.85rem;color:#6b7280;margin:0;line-height:1.4}.settings-field{display:flex;flex-direction:row;gap:.75rem}.settings-field label{font-size:.9rem;font-weight:600;color:#111827}.settings-input-group{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.settings-input-group-2{display:flex;flex-direction:column;gap:.75rem;align-items:left;flex-wrap:wrap}.settings-input-group-3{display:flex;flex-direction:row;gap:.75rem;align-items:center;flex-wrap:wrap}.settings-input{padding:.65rem 1rem;border:1px solid rgba(148,163,184,.3);border-radius:.5rem;font-size:.9rem;color:#050505;background:#fff;min-width:150px;transition:border-color .15s ease}.settings-input:focus{outline:none;border-color:#ff7a1a;box-shadow:0 0 0 3px #ff7a1a1a}.settings-file-input-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.settings-file-input-label{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.5rem;border-radius:.85rem;border:1.5px solid rgba(148,163,184,.6);background:#fffffffa;color:#111827;font-weight:600;font-size:.85rem;cursor:pointer;transition:all .15s ease;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}.settings-file-input-label:hover{border-color:#ff7a1a99;background:#fffaf5fa;color:#ff7a1a;transform:translateY(-1px);box-shadow:0 4px 12px #ff7a1a33}.settings-file-input-label svg{flex-shrink:0;width:16px;height:16px}.settings-file-name{font-size:.85rem;color:#6b7280;font-style:italic;padding:0 .5rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-button{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.5rem;border-radius:.85rem;border:none;background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#050505;font-weight:600;font-size:.85rem;cursor:pointer;transition:all .15s ease;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;box-shadow:0 8px 20px #ff7a1a4d}.settings-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 28px #ff7a1a66}.settings-button:disabled{opacity:.5;cursor:not-allowed}.settings-button-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 8px 20px #ef44444d}.settings-button-danger:hover:not(:disabled){box-shadow:0 12px 28px #ef444466}.settings-hint{font-size:.8rem;color:#9ca3af;margin:0}.icon-preview-container{display:flex;align-items:center;gap:1rem;padding:1.5rem;background:#f8fafce6;border:1px solid rgba(148,163,184,.2);border-radius:.75rem;margin-bottom:1rem}.icon-preview{width:64px;height:64px;object-fit:contain;border-radius:.5rem;background:#fff;padding:.5rem;box-shadow:0 2px 8px #0000001a}.icon-preview-placeholder{display:flex;align-items:center;gap:1rem}.icon-preview-placeholder .logo-mark{width:48px;height:48px;border-radius:999px;background:linear-gradient(135deg,#ff7a1a,#ffb347);display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:#050505;font-weight:800;box-shadow:0 2px 8px #0000001a}.icon-preview-placeholder span{font-size:.85rem;color:#6b7280}@media(max-width:768px){.settings-container{padding:1.5rem 1.25rem}.settings-header{flex-direction:column;align-items:stretch}.settings-title-section h1{font-size:2rem}.settings-section{padding:1.25rem}.settings-input-group{flex-direction:column;align-items:stretch}.settings-button{width:100%}}:root{font-family:system-ui,system,-apple-system,BlinkMacSystemFont,SF Pro Text,Inter,sans-serif;line-height:1.4;font-weight:400;color:#050505;background-color:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}a{color:inherit;text-decoration:none}button{font-family:inherit}#root{min-height:100vh}.auth-page{min-height:100vh;max-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;overflow:hidden}.auth-hero{flex:1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:2.5rem;align-items:start;max-width:1400px;margin:0 auto;max-height:100vh;overflow:hidden}.auth-copy{max-height:calc(100vh - 3rem);overflow-y:auto;padding-right:.5rem;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.3) transparent}.auth-copy::-webkit-scrollbar{width:6px}.auth-copy::-webkit-scrollbar-track{background:transparent}.auth-copy::-webkit-scrollbar-thumb{background-color:#94a3b84d;border-radius:3px}.auth-logo{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;position:sticky;top:0;background:#fff;padding-bottom:.5rem;z-index:10}.logo-icon{width:48px;height:48px;object-fit:contain;border-radius:.5rem}.logo-mark{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#050505;font-weight:700;font-size:1.2rem;border-radius:.5rem}.auth-copy .eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.75rem;font-weight:700;margin-bottom:0}.headline{font-size:clamp(2rem,3vw,2.5rem);margin:0 0 .75rem;line-height:1.1}.headline .accent{color:#f97316}.subheadline{margin:0 0 1rem;max-width:32rem;color:#6b7280;font-size:1rem;line-height:1.5;font-weight:500}.subcopy{margin:0 0 .75rem;max-width:32rem;color:#4b5563;line-height:1.5;font-size:.95rem}.value-list{padding-left:1.1rem;margin:1rem 0;color:#4b5563;font-size:.85rem;line-height:1.6}.value-list li{margin-bottom:.4rem}.how-it-works{margin:1.5rem 0;padding-top:1.5rem;border-top:1px solid rgba(148,163,184,.2)}.section-title{font-size:1.25rem;font-weight:700;margin:0 0 1rem;color:#111827}.how-it-works-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-top:1rem}.how-it-works-item{padding:.5rem 0}.how-it-works-item h3{font-size:.95rem;font-weight:600;margin:0 0 .4rem;color:#111827}.how-it-works-item p{font-size:.85rem;color:#4b5563;margin:0;line-height:1.4}.trust-statement{margin:1.5rem 0;padding:1rem;background:#f973161a;border-left:4px solid #f97316;border-radius:.5rem}.trust-text{margin:0;color:#4b5563;line-height:1.5;font-size:.9rem}.trust-text strong{color:#111827;font-weight:600}.disclaimer{margin:1.5rem 0 0;padding:0;background:#f9fafb;border:1px solid rgba(148,163,184,.3);border-radius:.5rem;overflow:hidden}.disclaimer-summary{padding:.75rem 1rem;cursor:pointer;font-weight:600;font-size:.85rem;color:#374151;list-style:none;-webkit-user-select:none;user-select:none}.disclaimer-summary::-webkit-details-marker{display:none}.disclaimer-summary:before{content:"▶";display:inline-block;margin-right:.5rem;transition:transform .2s;font-size:.7rem}.disclaimer[open] .disclaimer-summary:before{transform:rotate(90deg)}.disclaimer-text{margin:0;padding:0 1rem 1rem;color:#6b7280;line-height:1.5;font-size:.8rem}.auth-panel{background:#050505;color:#f9fafb;border-radius:1.5rem;padding:1.6rem 1.7rem 1.4rem;box-shadow:0 24px 55px #0f172ab3;width:100%;max-width:440px;justify-self:end;position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.3) transparent}.auth-panel::-webkit-scrollbar{width:6px}.auth-panel::-webkit-scrollbar-track{background:transparent}.auth-panel::-webkit-scrollbar-thumb{background-color:#94a3b84d;border-radius:3px}.auth-panel--wide{max-width:520px}.auth-toggle{display:grid;grid-template-columns:1fr 1fr;background:#0f172ad9;border-radius:999px;padding:.2rem;margin-bottom:1rem}.auth-toggle .tab{border-radius:999px;border:none;background:transparent;color:#9ca3af;font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;padding:.55rem .9rem;cursor:pointer;transition:background-color .16s ease-out,color .16s ease-out,box-shadow .16s ease-out,transform .08s ease-out}.auth-toggle .tab.active{background:#f97316;color:#050505;box-shadow:0 0 0 1px #0f172ae6}.auth-toggle .tab:not(.active):hover{background:#94a3b838;color:#e5e7eb}.auth-toggle .tab.active:hover{transform:translateY(-1px);box-shadow:0 0 0 1px #0f172ae6,0 10px 18px #0f172abf}.auth-form{display:flex;flex-direction:column;gap:.8rem;margin-top:.25rem}.field{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem}.field-row{display:flex;gap:.8rem}.field-row .field{flex:1}.field input{border-radius:999px;border:1px solid rgba(148,163,184,.6);padding:.7rem 1rem;background:#0f172ae6;color:#f9fafb;font-size:.86rem}.primary-btn{margin-top:.3rem;border-radius:999px;border:none;padding:.75rem 1.2rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;background:linear-gradient(135deg,#ff7a1a,#ffb347);color:#050505;box-shadow:0 16px 40px #f87116b3}.error{font-size:.82rem;color:#fecaca}.fine-print{margin:.3rem 0 0;font-size:.7rem;color:#9ca3af}.not-authorized,.admin-page{width:100%}.na-card{max-width:480px;background:#050505;color:#f9fafb;border-radius:1.5rem;padding:1.5rem 1.6rem;box-shadow:0 22px 55px #0f172abf}.na-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:#f97316}.admin-header h1{margin:0 0 .35rem}.admin-header p{margin:0;color:#4b5563}.admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin-top:1.2rem}.admin-card{background:#050505;color:#f9fafb;border-radius:1.2rem;padding:1rem 1.1rem;box-shadow:0 18px 40px #0f172acc}.inline-link{display:inline-flex;margin-top:.6rem;font-size:.85rem;color:#f97316}.muted{color:#9ca3af}@media(max-width:960px){.auth-page{align-items:flex-start;padding:1rem;max-height:none;overflow-y:auto}.auth-hero{grid-template-columns:minmax(0,1fr);max-width:100%;margin:0;padding:0;gap:2rem;max-height:none}.auth-copy{max-height:none;overflow-y:visible;padding-right:0}.auth-logo{position:static}.auth-panel{max-width:100%;justify-self:stretch;position:static;max-height:none}.field-row{flex-direction:column}.how-it-works-grid{grid-template-columns:1fr}.headline{font-size:clamp(1.75rem,5vw,2.25rem)}.subheadline{font-size:.95rem}}.toast-viewport{position:fixed;top:16px;right:16px;display:flex;flex-direction:column;gap:8px;z-index:9999}.toast{min-width:320px;max-width:420px;padding:10px 16px;border-radius:8px;box-shadow:0 10px 30px #0f172a38;font-size:14px;display:flex;flex-direction:column;align-items:stretch;gap:6px;position:relative;color:#0f172a;background:#f9fafb;border:1px solid rgba(15,23,42,.08)}.toast-content{display:flex;align-items:flex-start;gap:12px}.toast-success{border-color:#10b98166;background:#ecfdf5}.toast-error{border-color:#ef444466;background:#fef2f2}.toast-info{border-color:#3b82f666;background:#eff6ff}.toast-message{flex:1;line-height:1.5}.toast-close{flex-shrink:0;background:none;border:none;color:#64748b;font-size:24px;line-height:1;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s,color .2s}.toast-close:hover{background-color:#0f172a1a;color:#0f172a}.toast-close:active{background-color:#0f172a26}.toast-progress{height:2px;width:100%;border-radius:999px;background:#0f172a14;transform-origin:left;animation:toast-progress 5s linear forwards}.toast-success .toast-progress{background:#10b981e6}.toast-error .toast-progress{background:#ef4444e6}.toast-info .toast-progress{background:#3b82f6e6}@keyframes toast-progress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}
