:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1e293b;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{border:0;border-radius:10px;background:#3157d5;color:#fff;padding:.7rem 1rem;cursor:pointer;font-weight:650}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:#0f766e}button.ghost{background:transparent;color:#3157d5;border:1px solid #cbd5e1}input,textarea,select{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:.7rem .8rem;background:#fff;color:#1e293b}label{display:grid;gap:.35rem;font-size:.88rem;font-weight:650}h1,h2,p{margin-top:0}h1{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.04em;margin-bottom:.35rem}h2{font-size:1.2rem;margin-bottom:1rem}.login-shell{min-height:100vh;display:grid;place-items:center;padding:1.5rem;background:radial-gradient(circle at 10% 10%,#e1eaff,transparent 35%),#f5f7fb}.login-card{width:min(420px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:2rem;box-shadow:0 20px 60px #1e293b14}.stack{display:grid;gap:.9rem}.eyebrow{color:#3157d5;font-size:.72rem;letter-spacing:.14em;font-weight:800;margin-bottom:.4rem}.muted{color:#64748b;line-height:1.55}.small{font-size:.82rem}.error,.notice{padding:.75rem .9rem;border-radius:10px;background:#fff1f2;color:#be123c}.notice{margin-bottom:1rem;background:#eff6ff;color:#1d4ed8}.app-shell{min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem clamp(1rem,4vw,3rem);background:#fff;border-bottom:1px solid #e2e8f0}.topbar h1{margin:0;font-size:1.45rem}.layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:calc(100vh - 100px)}.sidebar{background:#101a35;color:#e2e8f0;padding:1.4rem}.sidebar h2{color:#fff}.sidebar select,.sidebar input{background:#182545;border-color:#34456f;color:#fff}.inline-form{display:flex;gap:.4rem;margin-top:.8rem}.inline-form button{padding-inline:.85rem}.side-note{margin-top:3rem;font-size:.88rem;color:#a8b5d2;line-height:1.5}.content{padding:clamp(1rem,4vw,3rem);max-width:1500px;width:100%;margin:0 auto}.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:1.25rem;box-shadow:0 8px 24px #1e293b08;margin-bottom:1rem}.panel-heading,.job-top,.actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.actions{flex-wrap:wrap;justify-content:flex-end}.upload{display:grid;gap:.7rem}.version-list{display:grid;gap:.55rem;margin-top:1.15rem;padding-top:1rem;border-top:1px solid #e2e8f0}.version-list h3{margin:0;font-size:.95rem}.version-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.55rem .65rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.version-check{display:flex;align-items:flex-start;gap:.55rem;min-width:0;font-weight:400}.version-check input{width:auto;margin-top:.18rem}.version-check span{display:grid;gap:.15rem;min-width:0}.version-check strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.version-check small{color:#64748b;font-size:.76rem}button.compact{padding:.35rem .55rem;font-size:.75rem;white-space:nowrap}.job{margin-top:1rem;padding:.7rem;border-radius:10px;background:#f8fafc;display:grid;gap:.45rem}.job.failed{background:#fff1f2;color:#be123c}.job.succeeded{background:#ecfdf5;color:#047857}progress{width:100%;height:8px}.answer{margin-top:1rem;border-top:1px solid #e2e8f0;padding-top:1rem;line-height:1.65;white-space:pre-wrap}.citations{display:flex;flex-wrap:wrap;gap:.4rem}.citation{display:inline-block;border-radius:999px;background:#eff6ff;color:#1d4ed8;padding:.25rem .55rem;font-size:.78rem}.wiki-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.25rem}.page-list{display:grid;align-content:start;gap:.5rem}.page-list button{text-align:left;background:#f8fafc;border:1px solid #e2e8f0;color:#1e293b;display:grid;gap:.25rem}.page-list button.active{border-color:#3157d5;background:#eff6ff}.page-list span{color:#64748b;font-size:.78rem;font-weight:400;line-height:1.3}.wiki-article{max-width:820px;line-height:1.7}.wiki-article h1{margin-bottom:.7rem}.wiki-article h2,.wiki-article h3{margin-top:1.5rem}.wiki-article pre{overflow:auto;background:#0f172a;color:#e2e8f0;padding:1rem;border-radius:10px}.source-drawer pre{max-height:34rem;overflow:auto;background:#0f172a;color:#e2e8f0;padding:1rem;border-radius:10px;white-space:pre-wrap}.wiki-article code{background:#f1f5f9;padding:.1rem .25rem;border-radius:4px}.wiki-article pre code{background:transparent;padding:0}.wiki-article a{color:#3157d5}.source-list{display:grid;gap:.65rem;margin-top:.75rem}.source-card{display:grid;gap:.25rem;padding:.7rem;border-left:3px solid #3157d5;background:#f8fafc;color:#1e293b;text-align:left;font-size:.82rem}.source-card span,.source-card small{color:#64748b}.source-drawer{margin-top:1rem;border-top:1px solid #e2e8f0;padding-top:1rem}.lead{font-size:1.1rem;color:#475569}.empty-state{display:grid;place-items:center;min-height:260px;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:12px}@media (max-width: 900px){.layout,.grid.two{grid-template-columns:1fr}.sidebar{padding:1rem}.side-note{display:none}.wiki-layout{grid-template-columns:1fr}.page-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.panel-heading{align-items:flex-start;flex-direction:column}.actions{justify-content:flex-start}}
