html[data-theme="light"]{color-scheme:light;--ink:#191919;--paper:#fff;--muted:#666;--rule:#ddd;--header:rgba(255,255,255,.97);--hover:#1559a6;--focus:#1559a6;--progress-track:#eee;--button-ink:#fff;--button-hover:#333;--accent:#c63e32;--tip-bg:#f6f1e7}
html[data-theme="dark"]{color-scheme:dark;--ink:#e9e6e0;--paper:#1b1c1e;--muted:#b8b6b2;--rule:#45464a;--header:rgba(27,28,30,.97);--hover:#9bc6ff;--focus:#9bc6ff;--progress-track:#393a3e;--button-ink:#1b1c1e;--button-hover:#d8d5d0;--accent:#ee7970;--tip-bg:#282624}
html[data-theme="dark"] .contents-panel{box-shadow:0 8px 24px #0005}
html[data-theme="light"] .contents-panel{box-shadow:0 8px 24px #0001}
html[data-theme="dark"] :is(.book-title,.book-link) del{text-decoration-color:#ee7970}
html[data-theme="light"] :is(.book-title,.book-link) del{text-decoration-color:#ab322b}
html[data-theme="dark"] .reading img:not([src*="author_portrait"]){filter:url("#night-paper") brightness(.86)}
html[data-theme="light"] .reading img{filter:none}
.theme-toggle{font-size:1.15rem;line-height:1;padding:.4rem .55rem;border:0;background:transparent}
.theme-auto{font-size:.8rem;line-height:1;padding:.4rem .5rem;border:0;background:transparent;color:var(--muted)}
.theme-auto[hidden]{display:none}
@media(prefers-color-scheme:dark){html:not([data-theme]){color-scheme:dark;--ink:#e9e6e0;--paper:#1b1c1e;--muted:#b8b6b2;--rule:#45464a;--header:rgba(27,28,30,.97);--hover:#9bc6ff;--focus:#9bc6ff;--progress-track:#393a3e;--button-ink:#1b1c1e;--button-hover:#d8d5d0;--accent:#ee7970;--tip-bg:#282624}html:not([data-theme]) .reading img:not([src*="author_portrait"]){filter:url("#night-paper") brightness(.86)}}
@media(prefers-color-scheme:light){html:not([data-theme]){color-scheme:light}html:not([data-theme]) .reading img{filter:none}}
@media print{html[data-theme],html:not([data-theme]){color-scheme:light;--ink:#191919;--paper:#fff;--muted:#666;--rule:#ddd;--accent:#c63e32;--tip-bg:#f6f1e7}html .reading img{filter:none!important}}
.theme-toggle{display:none}.js .theme-toggle{display:inline-block}
