:root{color-scheme:light;--paper:#fff;--ink:#24282b;--white:#fff;--line:#e2e4e7;--muted:#626970;--surface:#fff;--surface-soft:#f3f4f5;--control-border:#b8bec5;--button-bg:#173a35;--button-ink:#fff;--accent:#69875c}
.portal-header-actions{display:flex;align-items:center;gap:26px;min-width:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:flex-start;gap:0;flex:0 0 56px;width:56px;height:30px;padding:3px;border:1px solid var(--control-border);border-radius:30px;background:#eceef0;color:#34383e;cursor:pointer}
.theme-toggle[hidden]{display:none}.theme-toggle:hover{background:#e0e3e6;color:#34383e}
.theme-thumb{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #24282b29;transition:transform .18s}
.theme-thumb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-moon{display:none}
.advanced-filters{max-width:830px;margin:14px auto 0;text-align:left}
.advanced-filters>summary{display:flex;justify-content:space-between;align-items:center;padding:8px 2px;list-style:none;font-size:13px;color:var(--muted);font-weight:650}
.advanced-filters>summary::-webkit-details-marker{display:none}.advanced-filters>summary>span{display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap}
.advanced-filters>summary::after{content:'+';font-size:20px;font-weight:400;line-height:1}.advanced-filters[open]>summary::after{content:'−'}
.advanced-filters>summary svg{width:18px;height:18px;fill:var(--paper);stroke:currentColor;stroke-width:1.6;flex-shrink:0}
.filters-count{background:var(--surface-soft);border-radius:12px;padding:1px 7px;font-size:10px}
.filters-body{padding:20px;margin-top:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.filters-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 16px}.filters-error{font-size:14px;line-height:1.6;color:#96392e;padding:12px;background:#fce8e2;border-radius:7px;margin:0 0 16px}
.filters-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.filters-grid label{display:block;font-size:12px;line-height:1.5;font-weight:650;margin:0;min-width:0}
.filters-grid input,.filters-grid select{width:100%;min-width:0;height:42px;margin:7px 0 0;padding:8px 10px;border:1px solid var(--control-border);border-radius:7px;background:var(--paper);color:var(--ink);font-size:13px}
.filters-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:19px}.filters-actions a{font-size:12px;color:var(--muted)}.filters-actions button{padding:10px 17px;font-size:13px}
.archive-results-heading .advanced-filters{max-width:none}
.archive-hero>p,.search-suggestions,.archive-count,.section-index,.portal-footer p,.portal-footer-links a:last-child,.search-result-count,.archive-version{color:var(--muted)}
.archive-search{background:var(--surface);border-color:var(--control-border);box-shadow:0 6px 0 #eff0f2}.archive-search:focus-within{border-color:var(--accent);box-shadow:0 6px 0 #e4e7e9}.archive-search svg{stroke:var(--muted)}
.archive-search input[type=search]:focus{outline:none}
.search-suggestions a{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}.search-suggestions a:hover{background:#e9ebee;color:var(--ink)}
.filter-pill{color:var(--muted);border-color:var(--line)}.filter-pill span{background:var(--surface-soft);color:var(--muted)}.filter-pill:hover{background:var(--surface-soft)}
.filter-pill.is-active{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-ink)}.filter-pill.is-active:hover{background:#285749}
.archive-card,.archive-card-image{background:var(--surface-soft)}
.archive-about{background:var(--surface-soft);border-color:var(--line)}.archive-about p,.archive-empty p{color:var(--muted)}.archive-empty{background:var(--surface-soft);border-color:var(--control-border)}
.claim-caveat,.source-quote,.opinion-section,.result-awaiting{background:var(--surface-soft)}.source-link{background:var(--surface-soft);border-color:var(--control-border)}
.opinion-section>p,.opinion-tag,.preserved-label,.source-post-gallery figcaption{color:var(--muted)}.opinion-tag,.preserved-label{background:var(--surface-soft);border-color:var(--line)}
.source-post-gallery,.source-media-unavailable,.gallery-pages,.gallery-hint{background:var(--surface-soft)}
html[data-theme=dark]{color-scheme:dark;--paper:#202124;--ink:#edf0f3;--white:#292b2f;--line:#44474d;--muted:#b7bcc3;--surface:#292b2f;--surface-soft:#32353a;--control-border:#626770;--button-bg:#b9d99e;--button-ink:#162419;--accent:#a9c48f}
html[data-theme=dark] a:hover{color:var(--accent)}
html[data-theme=dark] button,html[data-theme=dark] .button{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-ink)}
html[data-theme=dark] button:hover,html[data-theme=dark] .button:hover{background:#cce8b6;color:var(--button-ink)}
html[data-theme=dark] .secondary{background:transparent;color:var(--ink);border-color:var(--control-border)}
html[data-theme=dark] .theme-toggle{background:#41454b;border-color:#6a7078;color:#25282d}html[data-theme=dark] .theme-toggle:hover{background:#4b5058}
html[data-theme=dark] .theme-thumb{transform:translateX(24px);background:#e5e7eb}html[data-theme=dark] .theme-sun{display:none}html[data-theme=dark] .theme-moon{display:block}
html[data-theme=dark] .portal-header nav a:hover{color:var(--accent)}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{border-color:var(--control-border);color:var(--ink)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a8adb5;opacity:1}
html[data-theme=dark] .archive-hero h1 span{color:var(--accent)}
html[data-theme=dark] .archive-hero>p,html[data-theme=dark] .search-suggestions,html[data-theme=dark] .archive-count,html[data-theme=dark] .section-index,html[data-theme=dark] .portal-footer p,html[data-theme=dark] .portal-footer-links a:last-child,html[data-theme=dark] .search-result-count,html[data-theme=dark] .archive-version{color:var(--muted)}
html[data-theme=dark] .archive-search{background:var(--surface);border-color:var(--control-border);box-shadow:0 6px 0 #32353a}
html[data-theme=dark] .archive-card,html[data-theme=dark] .archive-card-image{background:var(--surface)}
html[data-theme=dark] .archive-search:focus-within{border-color:var(--accent);box-shadow:0 6px 0 #3b3e44}html[data-theme=dark] .archive-search svg{stroke:var(--muted)}
html[data-theme=dark] .search-suggestions a{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}html[data-theme=dark] .search-suggestions a:hover{background:#3b3e44;color:var(--ink)}
html[data-theme=dark] .filter-pill{color:var(--muted);border-color:var(--control-border)}html[data-theme=dark] .filter-pill span{background:var(--surface-soft);color:var(--muted)}
html[data-theme=dark] .filter-pill:hover{background:var(--surface-soft)}html[data-theme=dark] .filter-pill.is-active{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-ink)}html[data-theme=dark] .filter-pill.is-active:hover{background:#cce8b6}html[data-theme=dark] .filter-pill.is-active span{background:#8eaf76;color:#142317}
html[data-theme=dark] .tone-confirmed{--verdict-ink:#b6e0b8;--verdict-bg:#1e3526;--verdict-line:#357344}
html[data-theme=dark] .tone-contradicted{--verdict-ink:#f0b0a4;--verdict-bg:#3b2522;--verdict-line:#994638}
html[data-theme=dark] .tone-misleading{--verdict-ink:#efbd94;--verdict-bg:#3b2b1e;--verdict-line:#a84c24}
html[data-theme=dark] .tone-context{--verdict-ink:#e2c287;--verdict-bg:#352f20;--verdict-line:#896222}
html[data-theme=dark] .tone-insufficient,html[data-theme=dark] .tone-pending{--verdict-ink:#b6cee4;--verdict-bg:#22303d;--verdict-line:#526c86}
html[data-theme=dark] .card-check-link:hover{color:var(--button-ink)}
html[data-theme=dark] .archive-about{background:var(--surface-soft);border-color:var(--line)}html[data-theme=dark] .archive-about-symbol{color:var(--accent);border-color:var(--accent)}html[data-theme=dark] .archive-about p{color:var(--muted)}
html[data-theme=dark] .archive-empty{background:var(--surface);border-color:var(--control-border)}html[data-theme=dark] .archive-empty p{color:var(--muted)}html[data-theme=dark] .empty-symbol{background:var(--surface-soft);color:var(--accent)}
html[data-theme=dark] .queue-row,html[data-theme=dark] .claim-card,html[data-theme=dark] .source-post{background:var(--surface);color:var(--ink)}html[data-theme=dark] .source-post{border-color:var(--line);box-shadow:none}
html[data-theme=dark] .claim-caveat,html[data-theme=dark] .source-quote,html[data-theme=dark] .opinion-section,html[data-theme=dark] .result-awaiting{background:var(--surface-soft)}
html[data-theme=dark] .source-link{background:var(--surface-soft);border-color:var(--control-border);color:var(--accent)}html[data-theme=dark] .source-link:hover{background:#3b3e44;color:var(--ink)}
html[data-theme=dark] .claim-sources,html[data-theme=dark] .claim-history,html[data-theme=dark] .opinion-item,html[data-theme=dark] .post-summary,html[data-theme=dark] .source-platform,html[data-theme=dark] .experiment-post{border-color:var(--line)}
html[data-theme=dark] .claim-sources summary,html[data-theme=dark] .source-origin{color:var(--accent)}
html[data-theme=dark] .opinion-section>p,html[data-theme=dark] .source-post-author time,html[data-theme=dark] .source-post-caption h3,html[data-theme=dark] .source-post-gallery figcaption{color:var(--muted)}
html[data-theme=dark] .opinion-tag,html[data-theme=dark] .preserved-label{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
html[data-theme=dark] .source-post-caption a{color:#a7cbee}
html[data-theme=dark] .source-post-gallery,html[data-theme=dark] .source-media-unavailable,html[data-theme=dark] .gallery-pages,html[data-theme=dark] .gallery-hint{background:var(--surface-soft);color:var(--muted)}
html[data-theme=dark] .gallery-pages a{background:var(--surface);border-color:var(--control-border);color:var(--ink)}html[data-theme=dark] .gallery-pages a:hover,html[data-theme=dark] .gallery-pages a:focus-visible{background:var(--button-bg);color:var(--button-ink)}
html[data-theme=dark] .notice{background:#352c1e;color:var(--ink)}html[data-theme=dark] .filters-error{background:#3b2522;color:#f0b0a4}
@media(max-width:850px){.portal-header-actions{gap:18px}}
@media(max-width:650px){.portal-header-actions{width:100%;justify-content:space-between;gap:14px}.portal-header-actions nav{min-width:0;flex:1;gap:10px 18px}.filters-body{padding:16px}.filters-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:520px){.filters-grid{grid-template-columns:1fr}.filters-actions{gap:12px}.filters-count{font-size:10px}}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}
