body main{max-width:min(960px,100%);min-height:100vh;padding:1.1rem 1rem 5rem}body main>nav.top{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.8rem;margin-bottom:6vh;color:var(--muted)}body main>nav.top a{margin-right:0;color:var(--muted);text-decoration:none}body main>nav.top a:hover{color:var(--accent)}.portal-home{display:grid;justify-items:center;gap:1rem;width:100%;padding-top:6vh}.portal-brand{text-align:center}.portal-brand h1{margin:0;font-size:clamp(2.2rem,8vw,4.2rem);font-weight:780;line-height:1;letter-spacing:0}.portal-brand p{margin:.8rem 0 0;color:var(--muted);font-size:.98rem}.portal-search{display:grid;grid-template-columns:minmax(0,1fr) 2.1rem auto;align-items:center;gap:.45rem;width:min(720px,100%);margin-top:.6rem;padding:.45rem;border:1px solid var(--rule);border-radius:999px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.portal-search:focus-within{border-color:#b8c7dd;box-shadow:0 10px 30px #1f6feb1f}.portal-search input{min-width:0;border:0;outline:0;background:transparent;padding:.62rem .85rem;font:inherit;font-size:1.04rem}.portal-search button,.query-row button,.portal-options select{border:1px solid var(--rule);border-radius:999px;background:#f8fafc;color:var(--text);font:inherit}.portal-search button{min-width:4.2rem;padding:.52rem .82rem;cursor:pointer}.portal-search .search-clear{display:inline-grid;place-items:center;width:2.1rem;height:2.1rem;min-width:0;padding:0;border-color:transparent;background:#eef2f7;color:#64748b;font-size:1.12rem;line-height:1}.portal-search .search-clear:hover{background:#e2e8f0;color:#1f2937}.portal-search .search-clear[hidden]{display:inline-grid;visibility:hidden}.portal-search button:last-child{background:#1f2937;border-color:#1f2937;color:#fff}.mode-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.18rem;padding:.2rem;border:1px solid var(--rule);border-radius:999px;background:#f8fafc}.mode-toggle button{min-width:4.3rem;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:.88rem;padding:.38rem .72rem;cursor:pointer}.mode-toggle button.active{background:#1f2937;color:#fff;box-shadow:0 3px 10px #0f172a1f}.portal-options{display:flex;align-items:center;justify-content:center;gap:.55rem;color:var(--muted);font-size:.86rem}.portal-options select{padding:.34rem .65rem;color:var(--muted)}.portal-options label{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap}.query-row,.quick-links{display:flex;justify-content:center;flex-wrap:wrap;gap:.45rem;width:min(760px,100%)}.history-box{width:min(720px,100%);margin-top:-.15rem;border:1px solid var(--rule);border-radius:10px;background:#fff;padding:.55rem}.history-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;color:var(--muted);font-size:.78rem}.history-head button{border:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer;padding:.1rem .2rem}.history-head button:hover{color:var(--accent)}.history-toggle{display:inline-flex;align-items:center;gap:.35rem;color:var(--text)!important;font-weight:700!important}.history-chevron{display:inline-block;transition:transform .16s ease}.history-toggle[aria-expanded=true] .history-chevron{transform:rotate(180deg)}.history-list{display:grid;gap:.16rem;margin-top:.35rem}.history-list[hidden]{display:none}.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem;min-height:2.1rem;border-radius:7px}.history-run,.history-remove{border:0;background:transparent;font:inherit;cursor:pointer}.history-run{min-width:0;text-align:left;color:var(--text);padding:.34rem .45rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-run:hover{background:#f8fafc;border-radius:7px}.history-source{color:var(--muted);font-size:.76rem;margin-right:.35rem}.history-remove{width:1.8rem;height:1.8rem;border-radius:50%;color:var(--muted);line-height:1}.history-remove:hover{background:#f1f5f9;color:var(--text)}.query-row button{padding:.38rem .72rem;color:#4b5563;cursor:pointer}.quick-links{margin-top:.15rem;font-size:.88rem}.quick-links a{color:var(--muted);text-decoration:none;padding:.25rem .4rem}.quick-links a:hover{color:var(--accent)}.answer-panel,.results-panel{width:min(860px,100%);margin:1.4rem auto 0;border-top:1px solid var(--rule);padding-top:1rem}.result-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.6rem}.result-head h2{margin:0;border:0;padding:0;color:var(--muted);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}.result-head span{color:var(--muted);font-size:.82rem;text-align:right}.answer-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;background:#fff;border:1px solid var(--rule);border-radius:8px;padding:1rem}.result-list{display:grid;gap:.15rem}.result-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.25rem;padding:1.2rem 0 .2rem}.result-pagination[hidden]{display:none}.result-pagination button{min-width:2rem;height:2rem;padding:0 .45rem;border:0;border-radius:4px;background:transparent;color:#315b9a;font:inherit;font-size:.86rem;cursor:pointer}.result-pagination button:hover{background:#f1f5f9}.result-pagination button[aria-current=page]{color:var(--text);font-weight:800;cursor:default}.result-pagination button:disabled{color:#a3aab3;cursor:default}.result-row{display:block;color:inherit;text-decoration:none;padding:.78rem 0;border-bottom:1px solid var(--rule)}.result-row:hover .result-title{color:var(--accent);text-decoration:underline;text-underline-offset:.16em}.curate-hint{display:grid;gap:.55rem;padding:.9rem 0;border-bottom:1px solid var(--rule)}.curate-hint p{margin:0;color:#374151;line-height:1.55}.curate-hint .result-row{padding:.6rem 0 0;border-bottom:0}.result-title{color:var(--text);font-weight:760;line-height:1.35;overflow-wrap:anywhere}.result-sub,.result-excerpt,.badges{margin-top:.18rem}.result-sub{color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}.result-excerpt{color:#374151;font-size:.92rem;line-height:1.5;overflow-wrap:anywhere}.badges{display:flex;flex-wrap:wrap;gap:.28rem}.badge{border-radius:4px;background:#eef2ff;color:#3341a0;padding:.04rem .34rem;font-size:.72rem;font-weight:650}.badge.rss{background:#fff7ed;color:#9a4b00}.badge.wiki{background:#ecfdf3;color:#17613a}.badge.board{background:#eff6ff;color:#1d4f91}.badge.manuscript{background:#f5f3ff;color:#5b3ca3}.empty-row{padding:1rem 0;color:var(--muted)}@media(max-width:640px){body main{padding:.9rem .85rem 4rem}body main>nav.top{margin-bottom:5vh;justify-content:center}.portal-home{padding-top:4vh}.portal-search{grid-template-columns:minmax(0,1fr) 2.1rem;border-radius:18px}.portal-search input{grid-column:1;grid-row:1}.portal-search .search-clear{grid-column:2;grid-row:1}.portal-search button[type=submit]{grid-column:1 / -1;width:100%}.portal-search button:last-child{margin-top:.1rem}.portal-options{width:100%;justify-content:space-between}.query-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.history-box{padding:.5rem}.query-row button{border-radius:8px}.result-head{align-items:flex-start;flex-direction:column;gap:.25rem}.result-head span{text-align:left}}
