/* Two deliberately different reading worlds. All controls remain real UI. */
@font-face{font-family:Fraunces;src:url('/font-fraunces.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:Montserrat;src:url('/font-montserrat.ttf') format('truetype');font-weight:100 900;font-display:swap}
html[data-theme="jardin-lecture"],[data-theme-preview="jardin-lecture"] {
 --ui-paper:#f5f0e6;--ui-surface:#fcf8ef;--ui-soft:#e6e8d7;--ui-line:#d5cbb5;--ui-text:#263724;--ui-muted:#59634f;
 --ui-primary:#4f6a52;--ui-primary-start:#5d7553;--ui-primary-end:#425b43;--ui-on-primary:#ffffff;--ui-accent:#7e5137;
 --ui-nav:#faf5e9;--ui-nav-text:#33462e;--ui-danger:#a33b2d;--ui-input:#fffbf4;--ui-heading:Fraunces,Georgia,serif;--ui-body:Nunito,Arial,sans-serif;--ui-scheme:light;
 --paper:#f5f0e6;--ink:#263724;--brand:#4f6a52;--green:#4f6a52;--muted:#59634f;--surface:#fcf8ef;--surface-strong:#fffbf4;--surface-soft:#e6e8d7;--line:#d5cbb5;--heading-font:Fraunces,Georgia,serif;--serif:Fraunces,Georgia,serif;--body-font:Nunito,Arial,sans-serif;--scheme:light;--art:url('/theme-garden-reading-v1.jpg');
}
html[data-theme="thriller-noir"],[data-theme-preview="thriller-noir"] {
 --ui-paper:#0b0e0d;--ui-surface:#151a1b;--ui-soft:#252c2f;--ui-line:#465052;--ui-text:#f0ece7;--ui-muted:#b9c0c3;
 --ui-primary:#d7262f;--ui-primary-start:#d3262e;--ui-primary-end:#b7151d;--ui-on-primary:#ffffff;--ui-accent:#ff585f;
 --ui-nav:#101414;--ui-nav-text:#f0ece7;--ui-danger:#ff9296;--ui-input:#101617;--ui-heading:Bebas,Impact,sans-serif;--ui-body:Montserrat,Arial,sans-serif;--ui-scheme:dark;
 --paper:#0b0e0d;--ink:#f0ece7;--brand:#d7262f;--green:#d7262f;--muted:#b9c0c3;--surface:#151a1b;--surface-strong:#1b2123;--surface-soft:#252c2f;--line:#465052;--heading-font:Bebas,Impact,sans-serif;--serif:Bebas,Impact,sans-serif;--body-font:Montserrat,Arial,sans-serif;--scheme:dark;--art:url('/theme-thriller-fog-v1.jpg');
}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) body {font-family:var(--ui-body)}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) body :is(p,label,input,select,textarea,small,button,summary) {font-family:var(--ui-body)!important}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) body .mobile-brand>span:last-child {font-family:var(--ui-heading)}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) .ld-shortcuts span {font-family:var(--ui-heading)!important;font-weight:500;letter-spacing:0}
html[data-theme="thriller-noir"] .ld-shortcuts span {font-size:20px}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) .workspace {background:transparent}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) #brand-icon img {filter:sepia(.7) saturate(.6)}
html[data-theme="thriller-noir"] #brand-icon img {filter:grayscale(1) brightness(1.9)}
html[data-theme="jardin-lecture"] :is(#library-design,#profile-design,#statistics-design,#social-design,#import-design,#support-design,#reading-design) :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:20px;box-shadow:0 3px 9px #6c513510}
html[data-theme="jardin-lecture"] :is(.primary,.ld-add,.pf-edit,.ld-acquire,.hd-resume) {border-radius:24px!important}
html[data-theme="jardin-lecture"] #book-presentation {background:linear-gradient(135deg,#faf7ed,#e8ead9);border:1px solid #d0cfb9;border-radius:20px;padding:16px}
html[data-theme="thriller-noir"] :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,#book-presentation) {border-radius:7px;box-shadow:0 3px 12px #0004}
html[data-theme="thriller-noir"] :is(.primary,.ld-add,.pf-edit,.ld-acquire,.hd-resume) {border-radius:6px!important}
html[data-theme="thriller-noir"] body :is(h1,h2,h3,h4) {font-weight:400;letter-spacing:.6px}
html[data-theme="thriller-noir"] #statistics-design :is(.st-metric,.st-regularity) strong {font-family:Bebas,Impact,sans-serif;font-weight:400;letter-spacing:.5px}
html[data-theme="thriller-noir"] .bottom-nav {border:1px solid #465052;border-radius:20px 20px 0 0}
html[data-theme="thriller-noir"] .bottom-nav a[aria-current=page],html[data-theme="thriller-noir"] .bottom-nav a[aria-current=page] .ui-icon {color:#ff585f!important;fill:none;background:#d7262f15}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) progress::-webkit-progress-value {background:linear-gradient(90deg,var(--ui-primary-start),var(--ui-primary-end))!important}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) progress::-moz-progress-bar {background:var(--ui-primary)!important}
/* Decoration is limited to the header, leaving data-heavy windows calm. */
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) body[data-view=home] {
 background-image:linear-gradient(180deg,transparent min(40vw,208px),var(--ui-paper) min(66.66vw,346px)),var(--art);
 background-position:center top;background-size:100% 350px,min(100vw,520px) auto;background-repeat:no-repeat;
}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) body[data-view=home] .mobile-header {height:75px;background:none}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) body[data-view=home] .mobile-brand>span:last-child {font-family:var(--ui-heading);font-size:27px}
html:is([data-theme="jardin-lecture"],[data-theme="thriller-noir"]) #home-design .hd-welcome {min-height:115px;padding-top:12px;margin:8px 0 22px;position:relative}
html[data-theme="jardin-lecture"] #home-design .hd-welcome h1 {font-size:27px;line-height:1.25;font-weight:600;letter-spacing:-1px}
html[data-theme="jardin-lecture"] #home-design .hd-welcome p {color:#35462d;font:14px/1.5 Nunito,Arial,sans-serif;margin-top:8px;text-shadow:0 1px 3px #fff}
html[data-theme="jardin-lecture"] #home-design .hd-welcome::after {content:'❧';position:absolute;bottom:0;left:55px;font:30px Georgia;color:#6d805b;pointer-events:none}
html[data-theme="jardin-lecture"] #home-design h2 {font-size:20px;font-weight:550;letter-spacing:-.7px}
html[data-theme="jardin-lecture"] #home-design .hd-reading {background:linear-gradient(125deg,#f8f7e9,#e2e5d0);border:3px solid #fffaf0;border-radius:23px;padding:13px;box-shadow:0 4px 12px #6e654425;position:relative}
html[data-theme="jardin-lecture"] #home-design .hd-reading::after {content:'';position:absolute;right:0;top:0;width:80px;height:60px;background:url('/garden-leaf.svg') center/contain no-repeat;opacity:.4;pointer-events:none}
html[data-theme="jardin-lecture"] #home-design .hd-reading-info {z-index:1}
html[data-theme="jardin-lecture"] #home-design .hd-reading-info h3 {font:550 22px/1.15 Fraunces,Georgia,serif;letter-spacing:-.8px}
html[data-theme="jardin-lecture"] #home-design .hd-current-cover {border-radius:6px;box-shadow:0 3px 7px #38452c40}
html[data-theme="jardin-lecture"] #home-design .hd-resume {background:linear-gradient(#7a8b67,#4f6a52);border:1px solid #7a8b67;box-shadow:inset 0 1px #fff5,0 2px 4px #3b4b2a30}
html[data-theme="jardin-lecture"] #home-design .hd-collections {background:none;gap:8px;padding:0;margin:18px 0}
html[data-theme="jardin-lecture"] #home-design .hd-collections a {background:#e8eadb;border:2px solid #fffaf1;border-radius:20px;min-height:92px;padding:10px 2px;box-shadow:0 3px 7px #6e65441a}
html[data-theme="jardin-lecture"] #home-design .hd-collections a:last-child {background:#f4dfd3;color:#8d4c31}
html[data-theme="jardin-lecture"] #home-design .hd-collections strong {font:700 12px Nunito,Arial,sans-serif}
html[data-theme="jardin-lecture"] #home-design .hd-collections span {font:11px Nunito,Arial,sans-serif;color:#4d5944}
html[data-theme="jardin-lecture"] #home-design .hd-stat-strip {border:2px solid #fff9ef;border-radius:20px;background:linear-gradient(110deg,#e5e8d5,#f5e9d7);padding:15px 6px;min-height:80px;box-shadow:0 3px 8px #6e654415}
html[data-theme="jardin-lecture"] #home-design .hd-stat strong {font:600 23px Fraunces,Georgia,serif}
html[data-theme="jardin-lecture"] #home-design .hd-stat span {color:#4d5944}
html[data-theme="jardin-lecture"] .bottom-nav a[aria-current=page] {background:#dce1c6!important;border-radius:15px}
html[data-theme="thriller-noir"] #home-design .hd-welcome h1 {font-size:38px;line-height:1.05;max-width:230px;letter-spacing:1px;text-transform:uppercase;text-shadow:0 2px 8px #000}
html[data-theme="thriller-noir"] #home-design .hd-welcome p {font:13px/1.5 Montserrat,Arial,sans-serif;color:#f0ece7;margin-top:10px;text-shadow:0 2px 6px #000}
html[data-theme="thriller-noir"] #home-design .hd-welcome::after {content:'';position:absolute;left:54px;bottom:0;width:155px;height:4px;background:#d7262f;transform:rotate(-3deg);clip-path:polygon(0 45%,95% 0,100% 60%,5% 100%);pointer-events:none}
html[data-theme="thriller-noir"] #home-design h2 {font:400 25px/1.1 Bebas,Impact,sans-serif;letter-spacing:.8px;text-transform:uppercase}
html[data-theme="thriller-noir"] #home-design .hd-current>.hd-section-title {border-left:4px solid #d7262f;padding-left:9px}
html[data-theme="thriller-noir"] #home-design .hd-reading {background:linear-gradient(120deg,#1a2022,#101515);border:1px solid #394144;border-radius:8px;padding:13px;box-shadow:0 5px 18px #0006}
html[data-theme="thriller-noir"] #home-design .hd-current-cover {border:1px solid #4a5254;border-radius:3px}
html[data-theme="thriller-noir"] #home-design .hd-reading-info h3 {font:400 28px/1.1 Bebas,Impact,sans-serif;letter-spacing:.6px}
html[data-theme="thriller-noir"] #home-design .hd-reading-info>p {font:13px/1.4 Montserrat,Arial,sans-serif;color:#cbd0d2}
html[data-theme="thriller-noir"] #home-design .hd-progress-text {font:11px Montserrat,Arial,sans-serif;color:#f0ece7}
html[data-theme="thriller-noir"] #home-design .hd-resume {background:linear-gradient(#e43034,#b61820);border-color:#ed3b3e;font:600 13px Montserrat,Arial,sans-serif;box-shadow:inset 0 1px #ff858544,0 2px 8px #0008}
html[data-theme="thriller-noir"] #home-design .hd-collections {background:none;gap:8px;padding:0;margin:18px 0}
html[data-theme="thriller-noir"] #home-design .hd-collections a {border:1px solid #3c4548;background:linear-gradient(#1c2427,#111616);border-radius:7px;padding:12px 2px;min-height:90px}
html[data-theme="thriller-noir"] #home-design .hd-collections .ui-icon {color:#ff484f;stroke:#ff484f}
html[data-theme="thriller-noir"] #home-design .hd-collections strong {font:400 20px/1.15 Bebas,Impact,sans-serif;letter-spacing:.5px}
html[data-theme="thriller-noir"] #home-design .hd-collections span {font:11px Montserrat,Arial,sans-serif;color:#bfc7c8}
html[data-theme="thriller-noir"] #home-design .hd-stat-strip {border:0;gap:8px;padding:0;background:none;min-height:88px}
html[data-theme="thriller-noir"] #home-design .hd-stat {flex-direction:column;border:1px solid #3b4548;border-radius:7px;padding:10px 3px;background:linear-gradient(#1b2225,#101515);gap:5px;color:#ff484f}
html[data-theme="thriller-noir"] #home-design .hd-stat strong {font:400 28px/1 Bebas,Impact,sans-serif;color:#f0ece7}
html[data-theme="thriller-noir"] #home-design .hd-stat span {font:10px/1.2 Montserrat,Arial,sans-serif;color:#c4cbcc}
html[data-theme="thriller-noir"] #home-design .hd-stat>div {text-align:center}
html[data-theme="thriller-noir"] #home-design .hd-next {margin-top:22px}
html[data-theme="thriller-noir"] #home-design .hd-next-cover {border:1px solid #3e474a;border-radius:4px}
html[data-theme="thriller-noir"] #home-design .hd-book-name {font:400 21px/1.1 Bebas,Impact,sans-serif;letter-spacing:.5px}
html[data-theme="thriller-noir"] #home-design .hd-period button {font-size:10px;padding-inline:6px}
.theme-preview[data-theme-preview="jardin-lecture"] {background:#f5f0e6 url('/theme-garden-reading-v1.jpg') center top/cover;color:#263724}
.theme-preview[data-theme-preview="thriller-noir"] {background:#0b0e0d url('/theme-thriller-fog-v1.jpg') center top/cover;color:#f0ece7}
@media(max-width:360px){html[data-theme="jardin-lecture"] #home-design .hd-welcome h1{font-size:23px}html[data-theme="jardin-lecture"] #home-design .hd-statistics h2{font-size:16px}html[data-theme="thriller-noir"] #home-design .hd-statistics h2{font-size:22px}html[data-theme="thriller-noir"] #home-design .hd-collections strong{font-size:18px}}
