/* Semantic theme tokens. The neutral 0.14 styles retain exact fallbacks;
   only explicitly integrated themes supply overrides. */
@font-face{font-family:Playfair;src:url('/font-playfair.ttf') format('truetype');font-weight:400 900;font-display:swap}
html[data-theme="fantasy-nuit"],[data-theme-preview="fantasy-nuit"] {
 --ui-paper:#08162e;--ui-surface:#14243f;--ui-soft:#1c2c48;--ui-line:#a38a61;--ui-text:#fff0cd;--ui-muted:#d0c1dc;
 --ui-primary:#00b7bd;--ui-primary-start:#164c65;--ui-primary-end:#482263;--ui-on-primary:#fff4db;--ui-accent:#ebc67f;
 --ui-nav:#08152d;--ui-nav-text:#f7e2bb;--ui-danger:#f5b3b7;--ui-input:#0d1f39;--ui-heading:Cormorant,Georgia,serif;--ui-body:Nunito,Arial,sans-serif;--ui-scheme:dark;
}
html[data-theme="romance"],[data-theme-preview="romance"] {
 --ui-paper:#fdf8f2;--ui-surface:#fff9f3;--ui-soft:#f8e5e7;--ui-line:#e9cbbb;--ui-text:#581727;--ui-muted:#87535f;
 --ui-primary:#b30e4d;--ui-primary-start:#bf1956;--ui-primary-end:#920a38;--ui-on-primary:#fff9f4;--ui-accent:#b30e4d;
 --ui-nav:#fff5ed;--ui-nav-text:#581727;--ui-danger:#a62444;--ui-input:#fffaf5;--ui-heading:Playfair,Georgia,serif;--ui-body:Nunito,Arial,sans-serif;--ui-scheme:light;
 --heading-font:Playfair,Georgia,serif;--serif:Playfair,Georgia,serif;--art:url('/theme-romance-peony-v1.jpg');
}
html[data-theme="club-epique"],[data-theme-preview="club-epique"] {
 --ui-paper:#f3ebdd;--ui-surface:#faf0df;--ui-soft:#ede0c9;--ui-line:#c7ab7e;--ui-text:#292a23;--ui-muted:#72614d;
 --ui-primary:#405747;--ui-primary-start:#405747;--ui-primary-end:#203c2c;--ui-on-primary:#fff0cf;--ui-accent:#966b37;
 --ui-nav:#21382a;--ui-nav-text:#f5dfad;--ui-danger:#8a3442;--ui-input:#fff6e7;--ui-heading:Cormorant,Georgia,serif;--ui-body:Nunito,Arial,sans-serif;--ui-scheme:light;
 --paper:#f3ebdd;--ink:#292a23;--green:#405747;--brand:#405747;--muted:#72614d;--surface:#faf0df;--surface-strong:#fff6e7;--surface-soft:#ede0c9;--line:#c7ab7e;--heading-font:Cormorant,Georgia,serif;--serif:Cormorant,Georgia,serif;--body-font:Nunito,Arial,sans-serif;--art:url('/theme-literary-fantasy-v1.jpg');--art-opacity:.6;--scheme:light;
}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) body {color-scheme:var(--ui-scheme);background-color:var(--ui-paper)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) body :is(h1,h2,h3,h4) {font-family:var(--ui-heading)!important}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) :is(input,select,textarea) {color-scheme:var(--ui-scheme);accent-color:var(--ui-primary)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) :is(input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea) {background-color:var(--ui-input)!important;color:var(--ui-text)!important}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) :is(input,textarea)::placeholder {color:var(--ui-muted);opacity:1}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:3px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) .bottom-nav {background:var(--ui-nav);border-top-color:var(--ui-line)!important}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) .bottom-nav a {color:var(--ui-nav-text)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) .bottom-nav .ui-icon {color:var(--ui-nav-text);stroke:currentColor}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) .bottom-nav a[aria-current=page] {background:color-mix(in srgb,var(--ui-accent) 16%,transparent);border-radius:12px;color:var(--ui-nav-text)!important}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) .bottom-nav a[aria-current=page] .ui-icon {fill:var(--ui-nav-text);color:var(--ui-nav-text)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"],[data-theme="romance"],[data-theme="club-epique"],[data-theme="jardin-lecture"],[data-theme="thriller-noir"],[data-theme="sakura"],[data-theme="booksy"],[data-theme="dragons"],[data-theme="club-anglais"]) :is(#support-notifications,#update-banner,.toast) {background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-line)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body:not([data-view=home]) .mobile-brand {color:var(--ui-accent)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body:not([data-view=home]) #brand-icon img {filter:sepia(1) saturate(1.1) brightness(1.4)}
html[data-theme="romance"] #brand-icon img {filter:sepia(1) saturate(1.7) hue-rotate(295deg)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) progress::-webkit-progress-value {background:var(--fantasy-progress,linear-gradient(90deg,#38ded5,#00a9bb))!important}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) progress::-moz-progress-bar {background:var(--fantasy-progress,linear-gradient(90deg,#38ded5,#00a9bb))!important}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) #book-presentation {--ui-text:#302024;--ui-muted:#69504d;background:#edcf9e url('/fantasy-parchment.svg') center/cover;padding:15px;border:1px solid #e8c486;border-radius:9px;color:#302024}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) #book-presentation .catalogue-detail-heading {grid-template-columns:90px minmax(0,1fr)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) #book-presentation .catalogue-grid-cover {width:90px;height:135px}
html[data-theme="romance"] :is(.ld-add,.hd-add,.pf-edit,.primary,.hd-resume,.ld-acquire) {border-radius:24px!important}
html[data-theme="romance"] :is(.ld-search,.ld-statuses,.pf-menu,.st-metric,.sc-club-card,.sc-shared-card,.im-upload,.sp-ticket,.sp-ticket-detail,.rd-book-card) {border-radius:15px;box-shadow:0 3px 12px #b53a6010}
html[data-theme="romance"] .rating-buttons button {color:#b30e4d!important}
html[data-theme="romance"] :is(#home-design,#readings-design,#reading-design,#library-design,#account-design,#social-design,#statistics-design,#book-dialog,#catalogue-browser,#batch-dialog) {font-family:Nunito,Arial,sans-serif}
html[data-theme="club-epique"] :is(.ld-search,.pf-menu,.st-metric,.sc-club-card,.sc-shared-card,.im-upload,.sp-ticket,.sp-ticket-detail,.rd-book-card) {box-shadow:inset 0 0 0 3px #f3e9d54d,0 2px 6px #5b3f2112;border-color:#c7ab7e}
html[data-theme="club-epique"] .bottom-nav {border-radius:17px 17px 0 0;border:1px solid #b48d4b;border-bottom:0}
html[data-theme="club-epique"] .bottom-nav a[aria-current=page] {box-shadow:inset 0 -2px #c3a477}
html[data-theme="club-epique"] #book-presentation {background:#f6e7cc url('/literary-parchment.svg') center/cover;padding:15px;border:1px solid #c3a477;border-radius:9px}
/* The gallery uses these same illustrations and tokens, rather than claiming
   the legacy artwork is an accurate preview of the new themes. */
.theme-preview[data-theme-preview="romance"] {background:#fdf8f2 url('/theme-romance-peony-v1.jpg') center top/cover;color:#75162c}
.theme-preview[data-theme-preview="club-epique"] {background:#253a2c url('/theme-literary-fantasy-v1.jpg') center top/cover;color:#fff0cb}
.theme-preview[data-theme-preview="fantasy-nuit"] {background:#08162e url('/theme-fantasy-moon-v1.jpg') center top/cover;color:#ffe6b0}
