:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--paper:#141917;--white:#1c2420;--ink:#e8ece5;--muted:#adb8ae;--line:#3b4840;--accent:#eea38e;--tint:#242e28}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;white-space:nowrap;border:1px solid var(--line);border-radius:5px;background:var(--white);color:var(--ink);font:600 12px/1.4 var(--sans);flex-shrink:0}
.theme-toggle:hover{background:var(--tint)}
.site-header{gap:22px;flex-wrap:wrap}.site-header nav{gap:18px}.site-header .edition{margin-left:auto}
[data-theme=dark] .lead,[data-theme=dark] .receipt-card span,[data-theme=dark] .report-text figcaption{color:var(--muted)}
[data-theme=dark] .primary,[data-theme=dark] .viewer-toolbar,[data-theme=dark] .toast,[data-theme=dark] .skip{background:#35483b;color:#f4f6ef}
[data-theme=dark] .primary:hover{background:#49614f}
[data-theme=dark] .map-teaser{box-shadow:6px 6px 0 #28342c}
[data-theme=dark] .index-list>a:hover,[data-theme=dark] .sheet-sidebar nav a[aria-current=page],[data-theme=dark] .receipt-card[aria-current],[data-theme=dark] .research-text pre,[data-theme=dark] #receiptText,[data-theme=dark] .file-icon{background:var(--tint)}
[data-theme=dark] th{background:#303d34;border-color:var(--line)}
[data-theme=dark] td,[data-theme=dark] .receipt-card,[data-theme=dark] .research-text h2,[data-theme=dark] .research-text hr,[data-theme=dark] .research-text pre,[data-theme=dark] #receiptText,[data-theme=dark] #receiptGroup,[data-theme=dark] .file-icon{border-color:var(--line)}
[data-theme=dark] tr:nth-child(even) td{background:#212c25}
[data-theme=dark] input,[data-theme=dark] select{color:var(--ink)}
[data-theme=dark] input::placeholder{color:var(--muted)}
[data-theme=dark] #receiptGroup{background:var(--white)}
[data-theme=dark] .research-text a{color:var(--accent)}
[data-theme=dark] .research-text blockquote,[data-theme=dark] .receipt-card[aria-current]{border-left-color:var(--accent)}
[data-theme=dark] mark{background:#67502c;color:#fff3d3}
[data-theme=dark] .error-box{background:#442b25;border-color:#ad7765}
@media(max-width:700px){.site-header .brand{order:0}.theme-toggle{order:1;margin-left:auto}.site-header nav{order:2;flex-basis:100%}.site-header{gap:12px}.theme-toggle{font-size:11px;padding:8px 10px}}
