*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#0b0b0c;color:#f5f5f5;font-family:Arial,sans-serif}.app-shell{height:100vh;padding:.75rem;display:flex;flex-direction:column}.workspace{flex:1 1;min-height:0;display:grid;grid-template-columns:240px minmax(0,1fr);grid-gap:.75rem;gap:.75rem}.thread{min-width:0;height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:#0d0d0e;overflow:hidden}.library,.thread{border:1px solid #252526;border-radius:.9rem}.library{padding:.75rem;background:#151516;overflow-y:auto}.brand{display:flex;align-items:center;gap:.55rem;margin:.15rem .2rem 1.1rem;font-size:.95rem}.brand-mark{font-size:1.5rem}.new-chat{width:100%;padding:.55rem .7rem;text-align:left;border:0;border-radius:.45rem;background:#302f30;color:white;cursor:pointer;font-size:.9rem}.library h3{margin:1.35rem 0 .55rem;font-size:.72rem;color:#999;text-transform:uppercase;letter-spacing:.04em}.library form{display:flex;gap:.25rem;flex-wrap:wrap}.library input{min-width:0;width:100%;border:1px solid #414143;border-radius:.3rem;padding:.4rem;background:#222223;color:white}.library input[type=file]{font-size:.7rem}.library select{min-width:0;flex:1 1;border:1px solid #414143;border-radius:.3rem;padding:.4rem;background:#222223;color:white}.library form button{padding:.4rem .55rem}.library button{border:0;background:#3b82f6;color:white;border-radius:.3rem;cursor:pointer}.library-item{display:flex;flex-direction:column;gap:.15rem;padding:.55rem .25rem;border-bottom:1px solid #29292a;font-size:.82rem;overflow:hidden}.library section>small,.library-item small{color:#999;font-size:.7rem;overflow-wrap:anywhere}.chat-link{width:100%;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit}.chat-row{display:flex;align-items:center;border-bottom:1px solid #29292a}.chat-row .chat-link{border-bottom:0}.collection-picker{display:block;position:relative}.collection-picker select{width:100%;padding:.6rem 2rem .6rem .65rem;border:1px solid #414143;border-radius:.4rem;background:#222223;color:white;cursor:pointer;font:inherit;font-size:.82rem}.collection-picker select:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.settings-link{display:block;margin-top:2rem;padding:.65rem .25rem;color:#aaa;text-decoration:none;border-top:1px solid #29292a}.settings-link:hover{color:white}.menu-row,.menu-wrap{position:relative}.menu-trigger{border:0!important;background:transparent!important;color:#aaa!important;font-size:1.2rem;padding:.2rem .45rem;cursor:pointer}.action-menu{position:absolute;z-index:3;right:0;top:2rem;min-width:100px;padding:.25rem;border:1px solid #444;border-radius:.4rem;background:#292929;box-shadow:0 8px 20px #0008}.action-menu button{width:100%;padding:.45rem;border:0;background:transparent;color:#f87171;text-align:left;cursor:pointer}.modal-backdrop{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:1rem;background:#000b}.confirm-modal{width:min(400px,100%);padding:1.25rem;border:1px solid #444;border-radius:.75rem;background:#1b1b1c;box-shadow:0 18px 60px #000}.confirm-modal h2{margin-top:0}.confirm-modal p{color:#aaa;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.25rem}.modal-actions button{padding:.55rem .85rem;border:1px solid #555;border-radius:.4rem;background:#29292a;color:white;cursor:pointer}.modal-actions .danger-button{border-color:#b91c1c;background:#dc2626}.crawl-page{display:block;padding:.55rem 0;color:#ddd;overflow-wrap:anywhere}.crawl-page input{margin-right:.5rem}.crawl-review button,.settings-section>button{margin-top:.75rem;padding:.6rem .8rem;border:0;border-radius:.4rem;background:#3b82f6;color:white;cursor:pointer}.settings-page{min-height:100vh;padding:2rem;background:#0b0b0c}.settings-card{width:min(850px,100%);margin:0 auto}.settings-heading a{color:#60a5fa;text-decoration:none;font-size:.85rem}.settings-heading h1{margin-bottom:.25rem}.settings-heading p,.settings-help{color:#999}.settings-section{margin-top:2rem;padding:1.25rem;border:1px solid #303033;border-radius:.75rem;background:#151516}.settings-section h2{margin-top:0;font-size:1rem}.settings-form{display:flex;gap:.5rem;flex-wrap:wrap}.settings-form input,.settings-form select{min-width:180px;flex:1 1;padding:.65rem;border:1px solid #414143;border-radius:.4rem;background:#222223;color:white}.settings-form button{padding:.65rem .8rem;border:0;border-radius:.4rem;background:#3b82f6;color:white;cursor:pointer}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;border-bottom:1px solid #29292a}.settings-row span{display:flex;flex-direction:column;gap:.2rem}.settings-row small{color:#999;font-size:.75rem}.settings-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:.5rem}.settings-section-heading h2{margin-bottom:.55rem}.settings-section-heading label{display:flex;flex-direction:column;gap:.3rem;color:#999;font-size:.72rem}.settings-section-heading select{min-width:190px;padding:.55rem .65rem;border:1px solid #414143;border-radius:.4rem;background:#222223;color:white}.collection-row,.source-row{display:flex;align-items:center;gap:.25rem}.collection-row .collection-filter,.source-row .library-item{flex:1 1;min-width:0}.delete-button{flex:0 0 auto;border:0!important;background:transparent!important;color:#999!important;font-size:1.1rem;cursor:pointer}.delete-button:hover{color:#f87171!important}.viewport{flex:1 1;min-height:0;display:flex;flex-direction:column;gap:1rem;overflow-y:auto;padding:2rem}.welcome{margin:auto;text-align:center;color:#999}.welcome h2{color:#f5f5f5;font-size:1.5rem}.suggestions{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-top:1.5rem}.suggestions span{border:1px solid #303033;border-radius:999px;padding:.55rem .8rem;font-size:.78rem}.message{max-width:80%;padding:1rem;border-radius:.8rem;white-space:pre-wrap;line-height:1.55}.message[data-role=user]{align-self:flex-end;background:#f5f5f5;color:#111}.message[data-role=assistant]{background:#222223}.composer{display:flex;gap:.75rem;padding:.65rem;border:1px solid #373739;border-radius:1rem;background:#1a1a1b}.composer textarea{flex:1 1;min-height:2.5rem;resize:vertical;border:0;outline:0;font:inherit;padding:.6rem;background:transparent;color:white}.send-button{border:0;border-radius:50%;background:#aaa;color:#111;min-width:2rem;height:2rem;cursor:pointer}.send-button:disabled{opacity:.5}.footer{flex:0 0 auto;padding:0 7rem 1.5rem;background:#0d0d0e}.upload-status{display:block;position:relative;margin-top:.5rem;padding-bottom:.45rem;color:#60a5fa;font-size:.75rem}.upload-status:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:2px;background:linear-gradient(90deg,transparent,#60a5fa,transparent);background-size:35% 100%;background-repeat:no-repeat;animation:progress-sweep 1.2s linear infinite}@keyframes progress-sweep{0%{background-position:-35% 0}to{background-position:135% 0}}@media (max-width:700px){.app-shell{height:auto;min-height:100vh;padding:.5rem}.workspace{display:flex;flex-direction:column;min-height:calc(100vh - 1rem)}.library{max-height:300px}.thread{min-height:70vh}.viewport{padding:1rem}.footer{padding:0 .75rem .75rem}.message{max-width:95%}}.login-screen{min-height:100vh;display:grid;place-items:center;background:#0b0b0c}.login-card{width:min(360px,calc(100vw - 2rem));padding:2rem;border:1px solid #303033;border-radius:1rem;background:#151516}.login-card h1{margin-top:0}.login-card p{color:#999}.login-card input{width:100%;margin:.75rem 0;padding:.75rem;border:1px solid #414143;border-radius:.4rem;background:#222223;color:white}.login-card button{width:100%;padding:.7rem;border:0;border-radius:.4rem;background:#3b82f6;color:white;cursor:pointer}.login-card small{display:block;margin-top:.75rem;color:#f87171}