*,:before,:after{box-sizing:border-box}:root{--accent:#863bff;--accent-light:#863bff1f;--accent-glow:#863bff40;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,sans-serif}body{color:#e8e8f0;background:#0f0f13;min-height:100svh;margin:0}#root{width:100%;min-height:100svh;display:flex}.layout{background:#0f0f13;width:100%;min-height:100svh;display:flex}.sidebar{background:#13131a;border-right:1px solid #ffffff0f;flex-direction:column;flex-shrink:0;gap:24px;width:220px;padding:20px 12px;display:flex}.sidebar-logo{color:#863bff;letter-spacing:-.3px;align-items:center;gap:10px;padding:4px 8px;font-size:16px;font-weight:600;display:flex}.sidebar-nav{flex-direction:column;gap:4px;display:flex}.nav-label{letter-spacing:.08em;text-transform:uppercase;color:#ffffff4d;margin-bottom:4px;padding:0 8px;font-size:10px;font-weight:600}.nav-item{color:#ffffff8c;border-radius:8px;align-items:center;gap:8px;padding:8px 10px;font-size:13.5px;text-decoration:none;transition:background .15s,color .15s;display:flex}.nav-item:hover{color:#fff;background:#ffffff0d}.nav-item.active{color:#c084fc;background:#863bff26}.sidebar-footer{flex-direction:column;gap:2px;margin-top:auto;display:flex}.footer-link{color:#fff6;border-radius:7px;align-items:center;gap:7px;padding:7px 10px;font-size:12.5px;text-decoration:none;transition:color .15s,background .15s;display:flex}.footer-link:hover{color:#ffffffbf;background:#ffffff0d}.chat-main{flex-direction:column;flex:1;min-width:0;height:100svh;display:flex;overflow:hidden}.chat-header{background:#0f0f13;border-bottom:1px solid #ffffff0f;flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 24px;display:flex}.header-title{color:#c084fc;align-items:center;gap:8px;font-size:14px;font-weight:600;display:flex}.header-sub{color:#ffffff4d;font-size:12px}.chat-body{scroll-behavior:smooth;flex-direction:column;flex:1;gap:20px;padding:28px 24px;display:flex;overflow-y:auto}.chat-body::-webkit-scrollbar{width:5px}.chat-body::-webkit-scrollbar-track{background:0 0}.chat-body::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:99px}.msg{align-items:flex-start;gap:12px;max-width:780px;animation:.2s fadeUp;display:flex}@keyframes fadeUp{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.msg.user{flex-direction:row-reverse;align-self:flex-end}.msg.error{align-self:stretch;max-width:100%}.avatar{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:11px;font-weight:600;display:flex}.bot-avatar{color:#863bff;background:#863bff33}.user-avatar{color:#ffffff80;background:#ffffff14;font-size:10px}.error-avatar{color:#f87171;background:#ef444426;font-size:14px;font-weight:700}.bubble{border-radius:14px;max-width:calc(100% - 44px);padding:12px 16px;font-size:14px;line-height:1.65}.msg.bot .bubble{color:#d4d4e8;background:#1a1a24;border:1px solid #ffffff12;border-top-left-radius:4px}.msg.user .bubble{color:#fff;background:#863bff;border-top-right-radius:4px}.msg.error .bubble{color:#fca5a5;background:#ef44441a;border:1px solid #ef444440;border-radius:10px;width:100%}.md-content p{margin:0 0 8px}.md-content p:last-child{margin-bottom:0}.md-content h1,.md-content h2,.md-content h3{color:#e8e8f0;margin:12px 0 6px;font-weight:600;line-height:1.3}.md-content h1{font-size:17px}.md-content h2{font-size:15px}.md-content h3{font-size:14px}.md-content strong{color:#e8e8f0;font-weight:600}.md-content em{color:#c084fc;font-style:italic}.md-content code{color:#c084fc;background:#863bff26;border-radius:4px;padding:2px 6px;font-family:ui-monospace,Consolas,monospace;font-size:12.5px}.md-content pre{background:#111118;border:1px solid #ffffff14;border-radius:8px;margin:10px 0;padding:14px 16px;overflow-x:auto}.md-content pre code{color:#a5b4fc;background:0 0;padding:0;font-size:13px}.md-content ul{margin:6px 0;padding-left:20px}.md-content li{margin-bottom:4px}.msg.typing .bubble{align-items:center;gap:5px;padding:14px 18px;display:flex}.dot{opacity:.4;background:#863bff;border-radius:50%;width:7px;height:7px;animation:1.2s infinite blink}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.2;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}.sources{border-top:1px solid #ffffff12;margin-top:12px;padding-top:10px}.sources-label{letter-spacing:.06em;text-transform:uppercase;color:#ffffff4d;margin-bottom:7px;font-size:10.5px;font-weight:600;display:block}.sources-list{flex-wrap:wrap;gap:6px;display:flex}.source-chip{color:#a78bfa;word-break:break-all;background:#863bff1a;border:1px solid #863bff40;border-radius:99px;align-items:center;gap:4px;padding:4px 10px;font-size:11.5px;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.source-chip:hover{background:#863bff33;border-color:#863bff80}.suggestions{margin-top:8px}.suggestions-label{color:#ffffff4d;margin:0 0 10px;font-size:12px}.suggestions-grid{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.suggestion-btn{color:#fff9;text-align:left;cursor:pointer;background:#1a1a24;border:1px solid #ffffff14;border-radius:10px;padding:11px 14px;font-family:inherit;font-size:13px;line-height:1.4;transition:background .15s,border-color .15s,color .15s}.suggestion-btn:hover{color:#c084fc;background:#863bff1a;border-color:#863bff59}.chat-input-area{background:#0f0f13;border-top:1px solid #ffffff0f;flex-shrink:0;padding:16px 24px 20px}.input-wrapper{background:#1a1a24;border:1px solid #ffffff1a;border-radius:12px;align-items:center;gap:0;padding:4px 4px 4px 16px;transition:border-color .2s;display:flex}.input-wrapper:focus-within{border-color:#863bff99;box-shadow:0 0 0 3px #863bff1a}.input-wrapper input{color:#e8e8f0;background:0 0;border:none;outline:none;flex:1;padding:8px 0;font-family:inherit;font-size:14px}.input-wrapper input::placeholder{color:#ffffff40}.input-wrapper input:disabled{opacity:.5}.input-wrapper button{color:#fff;cursor:pointer;background:#863bff;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;transition:background .15s,opacity .15s;display:flex}.input-wrapper button:hover:not(:disabled){background:#9d55ff}.input-wrapper button:disabled{opacity:.35;cursor:default}.input-hint{color:#fff3;text-align:center;margin:8px 0 0;font-size:11.5px}.input-hint a{color:#863bffb3;text-decoration:none}.input-hint a:hover{color:#c084fc}@media (width<=640px){.sidebar{display:none}.chat-header{padding:12px 16px}.chat-body{padding:16px}.chat-input-area{padding:12px 16px 16px}.suggestions-grid{grid-template-columns:1fr}.msg{max-width:100%}}
