:root { --ink: #14120e; --muted: #6f675c; --line: #e3d9cc; --paper: #fffdf8; --wash: #f3efe6; --accent: #d83a28; --accent-dark: #a8281a; }
.retraction-badge { display: inline-block; background: #fff0ef; color: #84251e; border: 1px solid #bb5c53; border-radius: .3rem; padding: .2rem .5rem; }
.retraction-unknown { color: #5b6e6b; font-size: .88rem; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font-family: "IBM Plex Sans", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; }
a { color: var(--ink); text-underline-offset: .18em; }
a:hover { color: #083f38; }
:focus-visible { outline: 3px solid #c7892c; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: white; padding: .6rem 1rem; }
.skip-link:focus { top: .5rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; min-height: 76px; margin: auto; padding: .8rem 28px; display: flex; align-items: center; gap: 1.35rem; }
.brand { color: var(--ink); font-size: 1.2rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--accent); font-size: 1.65rem; vertical-align: -.1em; margin-right: .4rem; }
.tagline { color: #73837e; font-size: .78rem; border-left: 1px solid var(--line); padding-left: 1.35rem; }
.quota { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; font-size: .84rem; }
.quota a { color: var(--ink); font-weight: 600; text-decoration: none; }
.quota .nav-register { border: 1px solid #adc6bd; border-radius: 7px; padding: .5rem .85rem; }
.account-status { color: var(--muted); overflow-wrap: anywhere; }
.logout { display: inline; }
.logout button { background: none; color: var(--accent); padding: 0; text-decoration: underline; min-height: 0; }
.logout button:hover:not(:disabled) { background: none; color: var(--accent-dark); }
main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 28px 4rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .82rem; }
.footer-inner { max-width: 1200px; margin: auto; padding: 1.7rem 28px; display: flex; gap: 3rem; }
.footer-inner strong { color: var(--ink); white-space: nowrap; }
.footer-inner p { margin: 0; max-width: 760px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: 2rem; } h2 { font-size: 1.25rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.6rem; margin-bottom: 1rem; }
.card h1, .card h2 { margin-top: 0; }
.flashes { background: #fff8e7; border: 1px solid #ead4a0; border-radius: 8px; padding: .4rem 1rem; margin-bottom: 1rem; }
textarea, input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"] { width: 100%; padding: .7rem .8rem; border: 1px solid #b9cbc3; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; margin: .3rem 0 .7rem; }
textarea { resize: vertical; }
textarea::placeholder, input::placeholder { color: #83938d; opacity: 1; }
button { background: var(--accent); color: #fffdf8; border: 0; border-radius: 999px; padding: .7rem 1.15rem; min-height: 44px; font: inherit; font-weight: 600; letter-spacing: -.01em; cursor: pointer; }
button:disabled { background: #9aaea7; cursor: not-allowed; }
button:hover:not(:disabled) { background: var(--accent-dark); }
label { display: block; font-weight: 600; margin-top: .4rem; }
form.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.inline input[type="text"] { flex: 1 1 220px; width: auto; margin: 0; }
.hint, .meta { color: var(--muted); font-size: .88rem; }
.question { font-size: 1.15rem; font-weight: 600; }
.query { display: flex; gap: .5rem; align-items: flex-start; margin: .3rem 0 .8rem; }
.query code { flex: 1; min-width: 0; background: #eff5f1; padding: .55rem .6rem; border-radius: 6px; overflow-wrap: anywhere; font-size: .85rem; }
.query button { padding: .35rem .7rem; font-size: .85rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.paper { border-top: 1px solid var(--line); padding: .8rem 0; }
.paper h3 { margin: .2rem 0; font-size: 1.02rem; }
.paper.include { border-left: 4px solid #1e8e4f; padding-left: .7rem; }
.paper.exclude { border-left: 4px solid #c0392b; padding-left: .7rem; opacity: .75; }
.abstract { font-size: .92rem; color: #334b44; }
.oa { color: #147045; font-weight: 600; }
.ai { font-size: .9rem; background: #edf5f1; padding: .4rem .6rem; border-radius: 6px; }
form.decision { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
form.decision button { padding: .35rem .7rem; font-size: .85rem; background: #496b60; }
.exports a { font-weight: 600; }
ul.runs { padding-left: 1.1rem; }
.prisma ul { line-height: 1.55; }
.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; }
.home { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: clamp(3rem, 7vw, 6.5rem); align-items: start; padding: 3rem 0 4.5rem; }
.eyebrow, .panel-kicker { color: var(--accent); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4a9b7c; margin-right: .5rem; vertical-align: .1em; }
.search-intro h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1.04; letter-spacing: -.045em; max-width: 650px; margin: 1.35rem 0 1.2rem; }
.intro-copy { color: var(--muted); font-size: 1.08rem; max-width: 590px; margin: 0 0 2rem; }
.research-form { background: #fff; border: 1px solid #cdded5; border-radius: 10px; padding: 1.2rem; box-shadow: 0 12px 30px rgba(30, 70, 55, .07); }
.research-form label { margin: 0; font-size: .85rem; }
.research-form textarea { border: 0; padding: .65rem 0; min-height: 100px; margin: 0; line-height: 1.5; }
.research-form-bottom { border-top: 1px solid #e6eeea; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; }
.research-form-bottom button span { margin-left: .65rem; }
.search-note { color: var(--muted); font-size: .8rem; margin: .8rem 0 0; }
.evidence-panel { margin-top: 2.1rem; border-top: 2px solid var(--accent); padding-top: 1rem; }
.panel-kicker { margin: 0 0 .75rem; }
.evidence-panel h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin: 0 0 1.4rem; }
.workflow { list-style: none; padding: 0; margin: 0; }
.workflow li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem; border-top: 1px solid var(--line); padding: 1rem 0; }
.workflow li > span { font-size: .75rem; color: #778c82; font-weight: 700; padding-top: .12rem; }
.workflow strong { font-size: .93rem; }
.workflow p { color: var(--muted); font-size: .87rem; margin: .2rem 0 0; }
.source-note { margin: .3rem 0 0; background: #e8f1eb; padding: .9rem 1rem; border-radius: 6px; color: #46645a; font-size: .8rem; }
.home-support { border-top: 1px solid var(--line); padding-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.home-support .card { margin: 0; }
.home-support h2 { margin-bottom: .5rem; }
.home-support p { margin-top: .4rem; }
.home-support form { margin-top: 1.25rem; }
.recent-runs { margin-top: 1.25rem; }
@media (max-width: 850px) { .tagline { display: none; } .home { gap: 2rem; } }
@media (max-width: 720px) { .header-inner { padding: .8rem 18px; flex-wrap: wrap; gap: .5rem 1rem; } .quota { gap: .7rem; } main { padding: 1.5rem 18px 3rem; } .home, .home-support, .grid { grid-template-columns: 1fr; } .home { padding: 1.5rem 0 2.5rem; gap: 2rem; } .evidence-panel { margin-top: 0; } .search-intro h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); } .footer-inner { padding: 1.5rem 18px; display: block; } .footer-inner p { margin-top: .5rem; } }
@media (max-width: 440px) { .quota { width: 100%; margin: 0; } .account-status { width: 100%; } .card { padding: 1.2rem; } .research-form-bottom { align-items: flex-start; flex-direction: column; } .research-form-bottom button { width: 100%; } }


/* Desk remix: one paper surface, the question is the page. */
:root { --ink:#14120e; --muted:#6f675c; --line:#e3d9cc; --wash:#f3efe6; --paper:#fffdf8; --accent:#d83a28; --accent-dark:#a8281a; }
.site-header { position:relative; background:#f3efe6; border-bottom:0; }
.header-inner { min-height:68px; }
.brand { letter-spacing:-.035em; }
main { padding-top:2rem; }
.home { grid-template-columns:minmax(0, 1fr) minmax(220px, .48fr); gap:clamp(2rem, 6vw, 5rem); padding:3rem 0 3.5rem; }
.search-intro h1 { max-width:720px; font-size:clamp(2.6rem, 4vw, 3.8rem); }
.research-form { border-radius:12px; padding:1.2rem 1.35rem; box-shadow:0 8px 28px rgba(30,70,55,.06); }
.research-form textarea { min-height:88px; font-size:1.05rem; }
.search-options { margin:.5rem 0 .9rem; color:var(--muted); font-size:.85rem; }
.search-options summary, .answer-method summary, .filter-details summary, .research-tools > summary { cursor:pointer; color:var(--accent-dark); font-weight:700; }
.search-options label { line-height:1.5; margin:.7rem 0; }
.evidence-panel { padding-top:1.3rem; margin-top:3.5rem; }
.evidence-panel > p:not(.panel-kicker) { color:var(--muted); font-size:.92rem; }
.evidence-panel .source-note { margin-top:1.5rem; }
.run-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; padding:.5rem 0 1.3rem; }
.run-heading h1 { font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.17; max-width:900px; margin:.45rem 0; }
.run-heading .eyebrow { margin:0; }
.run-heading .meta { margin:.55rem 0 0; }
.new-search { flex:none; font-weight:700; text-decoration:none; padding:.55rem .8rem; border:1px solid #cadbd2; border-radius:7px; background:#fff; }
.run-nav { display:flex; gap:1.5rem; border-bottom:1px solid var(--line); margin-bottom:1.5rem; overflow-x:auto; }
.run-nav a { color:var(--muted); text-decoration:none; font-weight:700; white-space:nowrap; padding:.6rem 0 .8rem; }
.run-nav a:first-child { color:var(--accent); border-bottom:2px solid var(--accent); }
.run-content { max-width:1000px; margin:auto; }
#evidence-answer { border-color:#cddfd6; padding:1.7rem 2rem; box-shadow:0 5px 20px rgba(27,72,55,.04); }
#evidence-answer h2, #records h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:1.65rem; margin:0 0 .8rem; }
#evidence-answer > p:not(.panel-kicker):not(.hint):not(.answer-caution) { font-size:1.02rem; line-height:1.75; }
.answer-caution { color:var(--muted); font-size:.85rem; margin:.5rem 0 1.2rem; }
.answer-method { border-top:1px solid var(--line); margin-top:1.3rem; padding-top:1rem; font-size:.9rem; }
.answer-method > p { color:var(--muted); }
.answer-method form { margin:.8rem 0; }
#evidence-answer blockquote { margin:.7rem 0; padding:.5rem 1rem; background:#f4f8f5; color:#455c55; }
#evidence-answer li { margin:.45rem 0; }
#records { margin-top:1.3rem; padding:1.7rem 2rem; }
.result-count { display:inline-block; vertical-align:middle; font:600 .8rem "Segoe UI",sans-serif; color:var(--muted); background:#eef4f0; padding:.35rem .65rem; border-radius:20px; }
.filter-details { background:#f5f8f6; border:1px solid var(--line); border-radius:8px; padding:.75rem 1rem; margin:1rem 0; }
.filter-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.3rem 1rem; align-items:end; margin-top:.7rem; }
.filter-form label { font-size:.84rem; }
select { width:100%; min-height:44px; margin:.3rem 0 .7rem; padding:.55rem; border:1px solid #b9cbc3; border-radius:6px; background:white; color:var(--ink); font:inherit; }
.filter-form button { justify-self:start; }
.filter-form > a { align-self:center; }
#records > p, #records > nav { color:var(--muted); font-size:.87rem; }
#records > nav { margin:1rem 0; }
.bulk-decision { display:flex; flex-wrap:wrap; gap:.5rem .7rem; align-items:center; background:#f5f8f6; border:1px solid var(--line); border-radius:8px; padding:.8rem 1rem; margin:1rem 0; }
.bulk-decision p { flex-basis:100%; margin:0; color:var(--muted); font-size:.82rem; }
.bulk-decision label { margin:0; font-size:.85rem; }
.bulk-decision button, form.decision button { color:var(--accent-dark); background:white; border:1px solid #c6d8ce; font-size:.82rem; }
.bulk-decision button:hover:not(:disabled), form.decision button:hover:not(:disabled) { background:#e4f0e9; }
.bulk-decision [data-selection-count] { font-size:.85rem; color:var(--muted); }
.paper { padding:1.35rem 0; }
.paper h3 { font-size:1.15rem; line-height:1.35; margin:.5rem 0; }
.paper > label { color:var(--muted); font-size:.8rem; font-weight:500; }
.paper .meta { margin:.4rem 0; }
.paper .retraction-unknown, .paper .retraction-badge { margin:.3rem 0; font-size:.78rem; }
.paper .abstract { max-width:76ch; line-height:1.65; }
.paper .links { display:flex; flex-wrap:wrap; gap:1rem; font-size:.87rem; font-weight:600; }
.paper.include, .paper.exclude { border-left:0; padding-left:0; opacity:1; }
.paper.include h3::after { content:" Included"; color:#237049; font:600 .75rem "Segoe UI",sans-serif; }
.paper.exclude h3::after { content:" Excluded"; color:#9d3d34; font:600 .75rem "Segoe UI",sans-serif; }
form.decision { border-top:1px solid #edf2ee; padding-top:.8rem; font-size:.85rem; }
.research-tools { margin:1.5rem 0; border:1px solid var(--line); border-radius:10px; background:#fff; }
.research-tools > summary { padding:1.2rem 1.5rem; font-size:1.05rem; }
.research-tools > summary span { color:var(--muted); font-weight:400; font-size:.85rem; margin-left:.5rem; }
.research-tools > .card { border:0; border-top:1px solid var(--line); border-radius:0; margin:0; }
@media (max-width:720px) {
 .home { grid-template-columns:1fr; padding:1.5rem 0 2.5rem; }
 .evidence-panel { margin-top:0; }
 .run-heading { flex-direction:column; gap:.7rem; }
 .run-nav { gap:1rem; }
 #evidence-answer, #records { padding:1.25rem; }
 .filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .research-tools > summary span { display:block; margin:.3rem 0 0; }
}
@media (max-width:440px) { .filter-form { grid-template-columns:1fr; } .bulk-decision button { flex:1 1 auto; } }

.answer-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin:1rem 0; }
.answer-actions form { margin:0; }
.answer-actions form:first-child button { color:var(--accent-dark); background:#fff; border:1px solid #c6d8ce; }
.answer-actions form:first-child button:hover { background:#e4f0e9; }

/* CoreMedLit research workspace: editorial reading, operational controls. */
:root { --ink:#203633; --muted:#536a64; --line:#d5e1da; --wash:#f3f6f2; --accent:#155e52; --accent-dark:#10483f; }
body { font-family:"Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height:1.6; }
.site-header { border-bottom-color:#d2dfd7; }
.header-inner, main, .footer-inner { max-width:1280px; }
.brand { font-family:Georgia, "Times New Roman", serif; font-size:1.32rem; letter-spacing:-.04em; }
.brand-mark { display:inline-flex; align-items:center; justify-content:center; background:#155e52; color:#fff; width:1.8rem; height:1.8rem; border-radius:50%; font:1.15rem Georgia,serif; vertical-align:middle; margin-right:.55rem; }
.tagline { letter-spacing:.02em; }
main { padding-top:2.1rem; }
.card { border-color:var(--line); border-radius:8px; box-shadow:0 2px 8px rgba(28,58,45,.025); }
button { border-radius:5px; }
input, textarea, select { accent-color:var(--accent); }
input[type="checkbox"] { width:1.05rem; height:1.05rem; vertical-align:-.15rem; }
.home { grid-template-columns:minmax(0, 1.6fr) minmax(240px,.65fr); gap:clamp(2rem,7vw,6.5rem); padding:2.2rem 0 3.25rem; }
.search-intro h1 { font-size:clamp(2.5rem,4.2vw,4rem); max-width:14ch; line-height:1.07; }
.intro-copy { max-width:54ch; }
.research-form { border:1px solid #a7c2b5; border-radius:8px; box-shadow:0 12px 32px rgba(25,66,48,.07); }
.research-form textarea { min-height:100px; }
.evidence-panel { border-top:1px solid #9cb9ab; padding-top:1.4rem; }
.evidence-panel h2 { font-size:1.8rem; }
.source-note { background:transparent; border-top:1px solid var(--line); border-radius:0; padding:1rem 0 0; }
.home-support { gap:1rem; }
.home-support .card { padding:1.5rem; }
.home-support h2, .recent-runs h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:1.5rem; }
.run-heading h1 { max-width:35ch; }
.run-nav { gap:2rem; }
.run-content { max-width:none; display:grid; grid-template-columns:minmax(0,1fr); }
#evidence-answer, #records { padding:clamp(1.25rem,2.5vw,2rem); }
#evidence-answer { border-top:3px solid #155e52; box-shadow:none; }
#records { margin-top:.4rem; }
#records > nav a { display:inline-block; padding:.45rem .8rem; background:#fff; border:1px solid var(--line); border-radius:5px; font-weight:600; text-decoration:none; }
.filter-details, .bulk-decision { background:#f5f8f5; }
.paper { padding:1.65rem 0; }
.paper h3 { max-width:75ch; font-size:1.16rem; }
.paper > p { max-width:100ch; }
.paper .abstract { max-width:90ch; }
.paper .decision { max-width:100%; }
.paper.include h3::after, .paper.exclude h3::after { margin-left:.4rem; }
.feature-workspace { max-width:900px; margin:0 auto; background:#fff; border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:8px; padding:clamp(1.3rem,4vw,3rem); box-shadow:0 8px 26px rgba(28,58,45,.035); overflow-wrap:anywhere; }
.feature-workspace h1, .account-workspace h1, .auth-card h1 { font:400 clamp(2rem,3.5vw,2.8rem)/1.15 Georgia,"Times New Roman",serif; letter-spacing:-.035em; }
.feature-workspace h2 { font:400 1.45rem/1.3 Georgia,"Times New Roman",serif; margin-top:2rem; }
.feature-workspace > p, .feature-workspace .container > p { max-width:78ch; }
.feature-workspace form { margin:1.5rem 0; padding:1.25rem; border:1px solid var(--line); border-radius:6px; background:#f7faf7; }
.feature-workspace blockquote { margin:1rem 0; padding:1rem 1.2rem; background:#f3f7f3; border-radius:4px; }
.feature-workspace li { margin:.65rem 0; }
.feature-workspace [role="alert"] { padding:.8rem 1rem; background:#fff1ed; color:#822c22; border:1px solid #e3bdb3; border-radius:5px; }
.account-workspace { max-width:760px; margin:auto; }
.auth-card { max-width:520px; margin:2rem auto 3rem; padding:clamp(1.4rem,4vw,2.6rem); }
.auth-card form button { margin-top:.75rem; }
@media (max-width:720px) {
 .home { grid-template-columns:1fr; padding:1rem 0 2.25rem; }
 .search-intro h1 { max-width:16ch; }
 .evidence-panel { margin-top:0; }
 .feature-workspace { padding:1.25rem; }
 .feature-workspace form { padding:1rem; }
 .auth-card { margin:.5rem auto 2rem; }
 .run-nav { gap:1.25rem; }
}
@media (max-width:440px) {
 .research-form-bottom { align-items:stretch; }
 .home-support { grid-template-columns:1fr; }
 .feature-workspace form button { width:100%; }
 .paper h3 { overflow-wrap:anywhere; }
}

/* Search-first composition: one purposeful workspace, no marketing sidebar. */
.search-workspace { max-width:860px; margin:0 auto; padding:.4rem 0 2rem; }
.workspace-heading { text-align:center; }
.workspace-heading .eyebrow { margin:0 0 .6rem; letter-spacing:.15em; }
.workspace-heading h1 { margin:0; font:400 clamp(2.35rem,4vw,3.35rem)/1.12 Georgia,"Times New Roman",serif; letter-spacing:-.045em; }
.workspace-heading > p:last-child { color:var(--muted); margin:.55rem 0 1.25rem; }
.search-workspace .research-form { padding:1.1rem 1.25rem .75rem; }
.search-workspace .research-form textarea { min-height:74px; font-size:1rem; }
.search-workspace .research-form-bottom { padding-top:.7rem; }
.search-workspace .search-options { margin:.65rem 0 .1rem; }
.search-workspace .search-note { margin:.65rem 0 0; line-height:1.5; }
.source-line { color:var(--muted); font-size:.82rem; line-height:1.5; margin:.65rem 0 0; }
.home-support { max-width:1050px; margin:auto; }
.recent-runs { max-width:1050px; margin:1.25rem auto 0; }
/* Keep screening prominent; answer and documentation remain one click away. */
.run-heading { padding-bottom:.8rem; }
.run-heading + p { margin:.2rem 0 .7rem; }
.run-nav { margin-bottom:1rem; }
#records { margin-top:0; }
#evidence-answer { margin-top:.5rem; }
@media (max-width:720px) {
 .search-workspace { padding:0 0 1.5rem; }
 .workspace-heading h1 { font-size:clamp(2.15rem,9vw,3rem); }
 .workspace-heading > p:last-child { margin:.5rem auto 1rem; max-width:32ch; }
 .search-workspace .research-form { padding:1rem; }
 .search-workspace .research-form textarea { min-height:80px; }
}

/* Quiet research workspace: answer and conversation before screening. */
.run-content { max-width:960px; margin:0 auto; }
.run-heading { max-width:960px; margin:auto; }
.run-nav { max-width:960px; margin:0 auto 1.2rem; }
.run-nav a:first-child { border:0; color:var(--muted); }
#evidence-answer, #run-chat, #records { margin:0 0 1rem; padding:clamp(1.2rem,2.5vw,2rem); }
#evidence-answer { border-top:1px solid var(--line); background:#fff; }
#run-chat { background:#edf3ef; border-color:#cbdcd2; }
#run-chat h2 { margin:0 0 .5rem; font:400 1.55rem/1.25 Georgia,serif; }
.chat-brief, .chat-method, .answer-method, .answer-controls { font-size:.87rem; color:var(--muted); }
.chat-method summary, .answer-controls summary, .screen-controls summary, .paper-tools summary, .paper-abstract summary, .home-extra > summary { cursor:pointer; color:var(--accent-dark); font-weight:650; padding:.45rem 0; }
#chat-history article { background:#fff; border:1px solid var(--line); border-radius:6px; padding:1rem 1.2rem; margin:1rem 0; overflow-wrap:anywhere; }
#chat-history h3 { font-size:.9rem; margin:0; }
#chat-history blockquote { margin:.6rem 0; padding:.5rem .8rem; background:#f5f8f5; }
#chat-form { margin-top:1rem; }
#chat-form textarea { display:block; min-height:80px; }
#chat-form label:has(input[type=checkbox]) { font-weight:400; font-size:.85rem; margin-bottom:.8rem; }
.answer-actions button { background:#fff; color:var(--accent-dark); border:1px solid #a9c3b5; }
#records { background:transparent; border:0; box-shadow:none; padding-left:0; padding-right:0; }
#records > p, #records > nav { margin-left:.2rem; }
.paper { background:#fff; border:1px solid var(--line); border-radius:7px; padding:1rem 1.2rem; margin:.7rem 0; overflow-wrap:anywhere; }
.paper.include, .paper.exclude { padding:1rem 1.2rem; border:1px solid var(--line); }
.paper h3 { margin:.35rem 0; }
.paper > p { margin:.4rem 0; font-size:.88rem; }
.paper-tools, .paper-abstract { font-size:.86rem; }
.paper-tools p { display:inline-block; margin:.2rem 1rem .5rem 0; }
.paper .decision { margin-top:.65rem; }
.screen-controls { border:1px solid var(--line); background:#fff; border-radius:7px; padding:.3rem 1rem; }
.screen-controls .bulk-decision { margin:.3rem 0 .8rem; }
.home-extra { max-width:1050px; margin:auto; border-top:1px solid var(--line); }
.home-extra > summary { padding:1rem 0; }
.home-extra .home-support { border:0; padding:0; }
@media (max-width:720px) { .run-nav { gap:1.2rem; } #records { padding-left:0; padding-right:0; } .paper, .paper.include, .paper.exclude { padding:1rem; } }

/* Progressive search previews: one block per source as it returns. */
.progress-source { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: .2rem; }
.progress-source h2 { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .9rem 0 .2rem; }

/* Keep each screening field above the decision controls. */
form.decision > label { flex: 0 0 100%; min-width: 0; }
