/* The third theme is a medium lavender canvas with distinct readable surfaces. */
.catalog-site.light.pastel{--bg:#e3d9f1;--paper:#f0e9fa;--ink:#30243f;--muted:#625274;--purple:#68349f;--accent:#7140bb;--soft:#d9c8ee;--pink:#e8d5ec;--line:#bfadd3;--shadow:0 8px 24px #4d2e7010;color-scheme:light}
.catalog-site.light.pastel .site-header{background:#e9dff4df;border-color:#bba7ce80}
.catalog-site.light.pastel :is(#search-form,.site-header .icon-button){background:#dcd0eb;color:var(--ink);border-color:#b5a1cb}
.catalog-site.light.pastel #search-form :is(input,button,.icon){color:var(--ink)}
.catalog-site.light.pastel .bottomnav{background:#e9dff4f5;border-color:#b6a0cc;box-shadow:0 6px 24px #4e316529}
.catalog-site.light.pastel .bottomnav a{color:#58416d}
.catalog-site.light.pastel .bottomnav a.active{color:#fff;background:var(--accent)}
.catalog-site.light.pastel :is(input,textarea,select){border-color:var(--line)}
.catalog-site.light.pastel .secondary,.catalog-site.light.pastel .notice{background:var(--soft);border-color:var(--line);color:#48305f}
.catalog-site.light.pastel .notification-entry.unread{background:#e1d2f1}
.catalog-site.light.pastel .notification-event-icon,.catalog-site.light.pastel .card-stats{color:var(--muted)}
.catalog-site.light.pastel .theme-state{color:#51267b;background:#d9c8ee}
.catalog-site.light.pastel .writer-shell{--bg:#e3d9f1;--paper:#f1eafa;--ink:#30243f;--muted:#625274;--line:#bfadd3;--soft:#d9c8ee;--purple:#68349f;--accent:#7140bb;--writer-hover:#dcd0ed;--writer-success:#176344;--writer-success-bg:#d5eade;--writer-warning:#79500a;--writer-warning-bg:#f6e6c2;--writer-danger:#95264c;--writer-danger-bg:#f6dce5;background:var(--bg);color:var(--ink)}
.catalog-site.light.pastel .writer-shell :is(input,select,textarea){background:var(--bg);color:var(--ink)}
.catalog-site.light.pastel .writer-shell :is(.primary,.primary:hover){color:#fff;background:var(--accent)}
.catalog-site.light.pastel .writer-shell .writer-flow-dialog,.catalog-site.light.pastel .writer-shell .panel{background:var(--paper)}
.catalog-site.light.pastel .writer-shell .notice{color:var(--ink)}
.catalog-site.light.pastel .writer-shell .writer-sidebar nav a.selected{color:#572987;background:var(--soft)}
.catalog-site.light.pastel .hero-copy .secondary{background:#171121cc;color:#fff;border-color:#b58bdd}
.catalog-site.light.pastel :is(.hero-copy,.spotlight) .novel-meta{color:#d1dad5}
.theme-settings-panel{max-width:760px}
.theme-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.theme-choice{padding:12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);font-size:16px}
.theme-choice[aria-pressed=true]{outline:2px solid var(--purple);outline-offset:2px}
.theme-choice>strong{display:flex;justify-content:space-between;gap:8px;margin-top:10px;font-size:16px;align-items:center}
.theme-choice[aria-pressed=true]>strong::after{content:'✓';color:var(--purple)}
.theme-sample{display:block;height:80px;padding:12px;border-radius:8px;border:1px solid #86779366;background:var(--sample-bg);color:var(--sample-ink)}
.theme-sample::before,.theme-sample::after{content:'';display:block;height:8px;margin-bottom:10px;border-radius:5px;background:currentColor;opacity:.65}
.theme-sample::after{width:65%;opacity:.35}
.theme-choice[data-site-theme=light]{--sample-bg:#f5f6f3;--sample-ink:#17221f}
.theme-choice[data-site-theme=pastel]{--sample-bg:#e3d9f1;--sample-ink:#68349f}
.theme-choice[data-site-theme=dark]{--sample-bg:#080f0e;--sample-ink:#e0d4ee}
.catalog-site.light .theme-state{color:#6030a0;background:#e5d8f5}
.catalog-site #reader-theme{white-space:normal}
.catalog-site .site-header .topnav{gap:18px}
.catalog-site .site-header #search-form{min-width:160px}
.catalog-site .writer-sidebar nav a{overflow-wrap:anywhere}
@media(max-width:600px){.theme-choice-grid{gap:8px}.theme-choice{padding:9px}.theme-choice>strong{font-size:14px;flex-wrap:wrap}.theme-sample{height:64px;padding:10px}.catalog-site .bottomnav a{padding-inline:7px}}
/* Keep the enlarged navigation from crowding the account actions. */
@media(min-width:761px) and (max-width:1560px){.catalog-site .site-header .topnav{display:none}.catalog-site .site-header .menu-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin-left:0}}

/* Keep fixed navigation cheap to composite while the page scrolls. */
.catalog-site .site-header,.catalog-site .bottomnav{-webkit-backdrop-filter:none;backdrop-filter:none;background:#101b19}
.catalog-site.light .site-header,.catalog-site.light .bottomnav{background:#fafbf8}
.catalog-site.pastel .site-header,.catalog-site.pastel .bottomnav{background:#e3d9f1}

/* Cover artwork should meet its edge without a decorative outline. */
/* Transparent native page track; preserve its width to avoid layout shifts. */
html{background:#080f0e;--page-scroll-thumb:transparent;scrollbar-color:var(--page-scroll-thumb) transparent;scrollbar-width:thin}
html:has(body.light){background:#f5f6f3}
html:has(body.pastel){background:#e3d9f1}
html.page-scrolling{--page-scroll-thumb:#86939199}
html.page-scrolling:has(body.light){--page-scroll-thumb:#59625e99}
@supports selector(::-webkit-scrollbar){
 html{scrollbar-color:auto;scrollbar-width:auto}
 html::-webkit-scrollbar{width:8px;height:8px;background:transparent}
 html::-webkit-scrollbar-track,html::-webkit-scrollbar-corner{background:transparent;border:0;box-shadow:none}
 html::-webkit-scrollbar-thumb{background:var(--page-scroll-thumb);border-radius:99px;border:2px solid transparent;background-clip:padding-box}
 html::-webkit-scrollbar-thumb:hover,html::-webkit-scrollbar-thumb:active{background-color:#869391cc}
 html::-webkit-scrollbar-button{display:none;width:0;height:0}
}
@media(forced-colors:active){html{scrollbar-color:auto;scrollbar-width:auto}html::-webkit-scrollbar-thumb{background:ButtonText}}
.catalog-site .detail-poster .cover,.catalog-site .book .cover,.catalog-site .spot-book .cover{border:0!important;background-repeat:no-repeat}
.catalog-site .hero-cover{border:0!important}


/* Google sign-in: preserve Google's native button while framing it for the site. */
.google-auth{margin:26px 0 22px;text-align:center;min-width:0}.google-auth-heading{display:grid;gap:4px;margin-bottom:16px}.google-auth-heading strong{font-size:16px;font-weight:600;color:var(--ink)}.google-auth-heading span{font-size:13px;color:var(--muted)}.google-auth-surface{padding:18px 14px;border:1px solid var(--line);border-radius:16px;background:var(--soft);max-width:100%;min-width:0}.google-button{width:100%;max-width:400px;min-height:44px;margin:0 auto;display:flex;align-items:center;justify-content:center}.google-auth-status{font-size:12px;line-height:1.7;margin:10px 0 0;color:var(--muted);overflow-wrap:anywhere}.google-auth-divider{display:flex;align-items:center;gap:14px;margin-top:24px;color:var(--muted);font-size:12px}.google-auth-divider:before,.google-auth-divider:after{content:'';height:1px;background:var(--line);flex:1}.google-auth>button{margin-top:12px}.google-auth .google-auth-surface{box-shadow:0 4px 18px #00000008}@media(max-width:420px){.google-auth-surface{padding:14px 8px}.google-auth{margin-top:20px}.google-auth-heading span{font-size:12px}}

.google-button iframe{color-scheme:light}


/* Simplified sign-in, approved preview. */
.form-panel.simple-auth{max-width:440px;padding:36px;border-radius:22px;margin:32px auto}.simple-auth-brand{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:28px;font-size:23px;font-weight:600;letter-spacing:-.6px}.simple-auth-brand img{border-radius:9px}.simple-auth h1{text-align:center;font-size:26px;margin:0 0 6px}.simple-auth-intro{text-align:center;color:var(--muted);font-size:14px;margin:0 0 28px}.simple-auth .google-auth{margin:0 0 22px}.simple-auth .google-auth-divider{margin-top:24px}.simple-auth .google-button{min-height:44px}.simple-auth label:not(.simple-remember){font-size:14px;font-weight:500;margin:16px 0 7px}.simple-auth input:not([type=checkbox]){height:48px;border-radius:9px;padding:0 13px;margin:0;font-size:15px}.simple-password{position:relative}.simple-auth .simple-password input{padding-right:58px}.simple-password button{position:absolute;right:10px;top:9px;border:0;background:transparent;color:var(--muted);padding:5px;font-size:12px}.simple-auth .simple-remember{display:flex;align-items:flex-start;gap:10px;margin:18px 0 0;font-size:13px;font-weight:400;cursor:pointer}.simple-remember input{width:17px;height:17px;margin:3px 0 0;accent-color:#9b75d9;flex-shrink:0}.simple-remember small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.simple-auth button[type=submit]{height:48px;border:0;border-radius:9px;background:#9871d6;color:#fff;font-size:15px;font-weight:600;margin-top:10px}.simple-auth .simple-auth-switch{text-align:center;color:var(--muted);font-size:13px;margin:24px 0 0}.simple-auth-switch button{background:transparent;border:0;padding:0 0 0 5px;color:#bc9eea;font-weight:600}.light .simple-auth-switch button{color:#7850ae}.simple-auth .auth-verification{margin:18px 0 10px}.simple-auth .auth-verification>p{font-size:12px}.simple-auth .form-error:empty{display:none}@media(max-width:480px){.form-panel.simple-auth{padding:28px 24px;border-radius:18px;margin:20px auto}.simple-auth-brand{margin-bottom:22px}.simple-auth h1{font-size:24px}}

.topup-qr{text-align:center;padding:24px 16px;border:1px solid var(--line);border-radius:16px;margin:20px 0}.topup-qr img{display:block;margin:16px auto;max-width:100%;height:auto;background:white;border:12px solid white;border-radius:12px}.topup-qr p{font-size:14px;color:var(--muted)}

.auth-forgot{text-align:right;font-size:13px;margin:10px 0}.auth-forgot a{color:var(--muted)}

#site-theme-dropdown[hidden]{display:none!important}#site-theme-dropdown{position:fixed;z-index:10060;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:16px;background:var(--paper,#fff);color:var(--ink,#24352e);border:1px solid var(--line,#ccd3d0);border-radius:18px;box-shadow:0 12px 42px #0003;font:14px/1.5 inherit}#site-theme-dropdown header{display:flex;align-items:center;justify-content:space-between}#site-theme-dropdown header strong{font-size:17px}#site-theme-dropdown [data-theme-close]{border:0;background:transparent;color:inherit;min-width:36px;min-height:36px;padding:0;font-size:24px;line-height:1;border-radius:50%}#site-theme-dropdown h3{margin:12px 0 6px;font-size:11px;letter-spacing:.04em;color:var(--muted);font-weight:600}#site-theme-dropdown .theme-menu-options{display:grid;gap:4px}#site-theme-dropdown [data-site-theme]{display:flex;align-items:center;gap:12px;width:100%;padding:7px 9px;margin:0;border:1px solid transparent;border-radius:10px;min-height:44px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}#site-theme-dropdown [data-site-theme]:hover{background:var(--soft)}#site-theme-dropdown [data-site-theme][aria-pressed=true]{background:var(--soft);border-color:var(--line);font-weight:700}#site-theme-dropdown .theme-menu-sample{display:flex;align-items:center;justify-content:space-between;gap:7px;width:48px;height:28px;border-radius:6px;border:1px solid #80808040;padding:3px 5px;box-sizing:border-box;font:600 12px Georgia,serif;flex-shrink:0}#site-theme-dropdown .theme-menu-sample i{width:8px;height:16px;border-radius:3px}#site-theme-dropdown .theme-selected-mark{margin-left:auto;visibility:hidden}#site-theme-dropdown [aria-pressed=true] .theme-selected-mark{visibility:visible}#site-theme-dropdown button:focus-visible{outline:2px solid var(--ink);outline-offset:1px}

#site-theme-dropdown header{position:static;min-height:0;height:auto;margin:0 0 8px;padding:0;border:0;background:transparent;box-shadow:none}#site-theme-dropdown{font-family:inherit;font-size:14px;line-height:1.5}

/* Keep the complete header search field white across the six pastel palettes. */
body.catalog-site.light.pastel #search-form,body.catalog-site.light.pastel #search-form input,body.catalog-site.light.pastel #search-form button,body.catalog-site.light.pastel #search-form>[data-icon]{background:#fff!important;color:#263b36!important}body.catalog-site.light.pastel #search-form{border-color:#c5ceca!important}body.catalog-site.light.pastel #search-form input::placeholder{color:#68736e;opacity:1}body.catalog-site.light.pastel #search-form .icon{color:#263b36!important}
