/* Site-wide theme keeps artwork colours intact; only the surrounding interface changes. */
html { color-scheme:dark; }
.theme-toggle[hidden] { display:none; }
body > header .theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:44px; padding:8px 10px; margin:0; border:1px solid #456066; border-radius:8px; background:#73b9c014; color:#eef4f2; font-size:14px; font-weight:600; }
body > header .theme-toggle[hidden] { display:none; }
.theme-toggle svg { flex:none; }
.theme-announcement { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.book-subscription { border-top:1px solid var(--line); margin:1.2rem 0; padding-top:1rem; }
.book-subscription-form { margin:1rem 0; }
html[data-theme="light"] { color-scheme:light; --bg:#f5f9f8; --panel:#fff; --line:#bfd2cf; --muted:#4c6466; --a:#12685f; }
html[data-theme="light"] body { background:var(--bg); color:#193b3f; }
html[data-theme="light"] :is(input,textarea,select,button,.button) { background:#fff; color:#193b3f; border-color:#a5bfbb; }
html[data-theme="light"] :is(input,textarea)::placeholder { color:#5a7272; opacity:1; }
html[data-theme="light"] :is(button,.button):hover { border-color:#12685f; background:#e4f3ef; }
html[data-theme="light"] :is(button.primary,.button.primary) { background:#176c64; color:#fff; border-color:#176c64; }
html[data-theme="light"] :is(button.primary,.button.primary):hover { background:#10564f; }
html[data-theme="light"] :focus-visible { outline-color:#12685f; }
html[data-theme="light"] body > header :is(.account-nav > a,.account-menu > summary,.theme-toggle) { color:#193b3f; background:#e9f4f1; border-color:#9abdb5; }
html[data-theme="light"] body > header :is(.account-nav > a,.account-menu > summary,.theme-toggle):hover { background:#d7ece5; }
html[data-theme="light"] body > header .account-menu-panel { background:#fff; border-color:var(--line); box-shadow:0 8px 24px #193b3f20; }
html[data-theme="light"] body > header .account-menu-panel :is(a,button) { color:#193b3f; background:transparent; }
html[data-theme="light"] body > header .account-menu-panel :is(a,button):hover { background:#e4f3ef; }
/* Original logo remains on a small sea-blue tile so its lettering stays readable. */
html[data-theme="light"] body > header .brand-with-logo { background:#142b30; padding:3px 8px; border-radius:8px; }
html[data-theme="light"] :is(.literature-hero,.cove-hero) { background:radial-gradient(ellipse at right top,#c9e9e0,transparent 65%),#edf7f3; border-color:#a5c5bc; }
html[data-theme="light"] :is(.cove-intro h1,.cove-summary,.cove-secondary,.cove-features p,.shelf-book h3 a) { color:#193b3f; }
html[data-theme="light"] .cove-eyebrow { color:#206759; }
html[data-theme="light"] .cove-primary { color:#163e36; background:#c5ecdf; border-color:#6ea795; }
html[data-theme="light"] .cove-secondary { border-color:#6ea795; }
html[data-theme="light"] .cove-features article { background:#fff; border-color:var(--line); }
html[data-theme="light"] .books-hero-words { color:#206759; opacity:1; }
html[data-theme="light"] :is(.monthly-challenge-banner,.book-breadcrumb) { background:#e2f1eb; border-color:#79a899; color:#193b3f; }
html[data-theme="light"] .literature-warnings { color:#3e6061; border-color:#568d7e; }
html[data-theme="light"] .book-chapter-list li { background:#fff; }
html[data-theme="light"] .book-shelf-track { scrollbar-color:#80aaa0 #e8f3ee; }
html[data-theme="light"] :is(.image-actions > summary,.image-actions-panel > a,.image-actions-panel > button) { color:#193b3f; border-color:var(--line); }
html[data-theme="light"] .image-actions-panel { border-color:var(--line); box-shadow:0 8px 24px #193b3f20; }
html[data-theme="light"] :is(.book-cover,.shelf-cover,.book-overview-cover) { background:linear-gradient(145deg,#d8eee7,#b5d9ce); border-color:#7cae9e; }
html[data-theme="light"] :is(.book-cover span,.shelf-cover-text,.shelf-cover-mark,.book-overview-cover) { color:#204f45; }
html[data-theme="light"] .shelf-cover-mark { border-color:#6a9a8a; }
html[data-theme="light"] .message.error,html[data-theme="light"] .over-limit { color:#8f3026; }
html[data-theme="light"] .reading-controls { box-shadow:0 4px 16px #193b3f15; }
html[data-theme="light"] .story-mature-folder { background:#e5eeeb; color:#36584f; }
@media(max-width:480px) { body > header .theme-toggle { padding:8px; } }
