/* V27: Quality desk and accessible reading refinements */
.v27-intro{display:flex;gap:20px;align-items:end;justify-content:space-between;margin:4px 0 22px}.v27-intro h2{font:500 clamp(27px,3.4vw,39px)/1.12 Georgia,serif;letter-spacing:-.035em;margin:9px 0}.v27-intro p{color:#6d7c70;font-size:13px;line-height:1.7;max-width:620px;margin:0}.v27-monitor{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:0 0 18px}.v27-monitor>div{border:1px solid #e3e9e1;border-radius:15px;background:#f6f8f4;padding:18px;display:flex;flex-direction:column;gap:5px;min-width:0}.v27-monitor strong{font-size:13px;color:#233b2d}.v27-monitor span{color:#637565;font-size:12px;overflow-wrap:anywhere}.v27-results{margin-bottom:18px}.v27-filters{display:grid;grid-template-columns:minmax(160px,1.7fr) minmax(130px,1fr) minmax(135px,1fr) auto;gap:12px;align-items:end;border-bottom:1px solid #e9eee7;padding:8px 0 22px}.v27-filters label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#647565;min-width:0}.v27-filters input,.v27-filters select{width:100%;border:1px solid #dce5d9;border-radius:9px;background:#fff;padding:10px;min-height:42px;color:#233b2d;font:inherit}.v27-filters button{min-height:42px}.v27-queue{display:grid;gap:0}.v27-novel{padding:20px 0;border-bottom:1px solid #ebeee9}.v27-novel:last-child{border:0}.v27-novel-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.v27-novel-top h3{font:500 21px/1.25 Georgia,serif;color:#1d3628;margin:7px 0 4px;overflow-wrap:anywhere}.v27-novel-top small{color:#819180;font-size:10px}.v27-novel-top p{font-size:12px;color:#6b7d6e;margin:0}.v27-status{display:inline-block;padding:6px 9px;border-radius:99px;font-size:10px;font-weight:800;white-space:nowrap}.v27-critical{background:#fff0e8;color:#9d4235}.v27-review{background:#fff3df;color:#805b25}.v27-healthy{background:#e9f3e9;color:#275d3f}.v27-novel ul{list-style:none;padding:0;margin:13px 0;display:flex;flex-wrap:wrap;gap:7px}.v27-flag{font-size:11px;padding:6px 9px;border-radius:7px;background:#f8f3e8;color:#78582c}.v27-flag-critical{background:#fff0e7;color:#a5443b}.v27-clean{color:#438056;font-size:12px;margin:12px 0}.v27-links{display:flex;gap:20px;flex-wrap:wrap}.v27-links a{font-size:11px;color:#33694c;font-weight:700}.v27-links a:hover{text-decoration:underline}.v27-method{margin-top:17px}.v27-method p{font-size:12px;color:#6c7a6f;line-height:1.75}.v27-method code{background:#f0f3ee;padding:1px 4px}.v27-limit{font-size:12px;color:#7b8779}.reader-page .reading-progress{overflow:visible;position:sticky}.reader-page .v27-progress-text{position:absolute;right:10px;top:6px;padding:2px 6px;border-radius:6px;background:rgba(35,58,45,.89);color:#fff;font:700 10px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;pointer-events:none}.v27-reader-hint{margin:42px auto 20px;text-align:center;color:#849081;font-size:12px}.v27-reader-hint kbd{display:inline-block;background:#eef0e9;border:1px solid #dce3d8;border-radius:5px;min-width:21px;padding:1px 4px;font:700 11px sans-serif;color:#395448}
@media(max-width:980px){.v27-filters{grid-template-columns:1fr 1fr}.v27-filters label:first-child{grid-column:1/-1}}
@media(max-width:600px){.v27-intro{display:block}.v27-intro>a{margin-top:14px}.v27-monitor{grid-template-columns:1fr}.v27-filters{grid-template-columns:1fr}.v27-filters label:first-child{grid-column:auto}.v27-novel-top h3{font-size:18px}.v27-metrics{grid-template-columns:1fr 1fr}.v27-links{gap:13px}.v27-status{font-size:9px}}

/* V27: keyboard-accessible password eyes and month/year controls */
.v27-password-field{display:flex;position:relative;align-items:center;min-width:0}
.v27-password-field>input{width:100%;padding-right:68px!important}
.v27-password-field>button{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:0;border-radius:6px;background:#e7eee6;color:#244432;padding:8px 10px;min-height:34px;font-weight:700;font-size:12px}
.v27-birth-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.v27-birth-row select{width:100%;min-height:44px;background:#fff;border:1px solid #cbd8cd;padding:8px;border-radius:5px}
.v27-verification-note{font-size:12px;line-height:1.65;color:#526c5b;padding:12px 14px;background:#edf5ea;border:1px solid #c9e0c7;border-radius:8px}
.v27-site-theme-label{min-width:79px}
.v27-site-theme-label select{border-radius:99px;border:1px solid #c9d6ca;background:#f6faf6;color:#294a38;font-size:12px;font-weight:700;padding:8px 9px;min-height:36px;width:100%;cursor:pointer}
.v27-genre-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:22px 0}
.v27-genre-form label{display:grid;gap:7px;flex:1;min-width:190px;font-size:12px;font-weight:700}
.v27-genre-form input{padding:11px;border:1px solid #cfdbce;border-radius:8px;background:#fff}
.v27-genre-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.v27-genre-list>div{display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid #e0e9de;padding:13px 14px;border-radius:8px;background:#fafcf9}
.v27-genre-list span{font-size:11px;color:#617c69}
/* Dark palette: explicit mode or system dark when Auto is selected. */
html[data-site-theme="dark"]{--bg:#111b18;--cream:#16251f;--paper:#1c2b25;--ink:#e4ede6;--mid:#b5c5b8;--muted:#a5b4a8;--line:#32483d;--dark:#263e33;--accent:#dda788}
html[data-site-theme="dark"] body{background:#111b18;color:#e1e9e2}
html[data-site-theme="dark"] .site-header,html[data-site-theme="dark"] .site-footer,html[data-site-theme="dark"] .mobile-dock,html[data-site-theme="dark"] .reader-bottom{background:#14231d!important;color:#e6eee6!important;border-color:#31483b!important}
html[data-site-theme="dark"] .site-header a,html[data-site-theme="dark"] .nav-links a,html[data-site-theme="dark"] .nav-library,html[data-site-theme="dark"] .mobile-dock a,html[data-site-theme="dark"] .footer-links a{color:#d4e4d6!important}
html[data-site-theme="dark"] .v7-spotlight,html[data-site-theme="dark"] .v7-genre-block,html[data-site-theme="dark"] .v7-home-block,html[data-site-theme="dark"] .hero,html[data-site-theme="dark"] .v7-lead-rail,html[data-site-theme="dark"] .feature-strip,html[data-site-theme="dark"] .content-section,html[data-site-theme="dark"] .browse-page,html[data-site-theme="dark"] .story-page,html[data-site-theme="dark"] .dashboard-page,html[data-site-theme="dark"] .reader-main,html[data-site-theme="dark"] .auth-form-side{background:#111b18!important;color:#e3eae4!important}
html[data-site-theme="dark"] .v7-spotlight h1,html[data-site-theme="dark"] .v7-home-block h2,html[data-site-theme="dark"] .v7-block-header h2,html[data-site-theme="dark"] .browse-page h1,html[data-site-theme="dark"] .story-page h1,html[data-site-theme="dark"] .dashboard-page h1,html[data-site-theme="dark"] .auth-card h1,html[data-site-theme="dark"] .reader-heading h1,html[data-site-theme="dark"] .v7-spotlight__text,html[data-site-theme="dark"] .story-card__details strong,html[data-site-theme="dark"] .ranked-story__info strong{color:#edf3eb!important}
html[data-site-theme="dark"] .v7-spotlight p,html[data-site-theme="dark"] .v7-spotlight__copy p,html[data-site-theme="dark"] .reader-heading__meta,html[data-site-theme="dark"] .auth-card p,html[data-site-theme="dark"] .v7-spotlight__meta,html[data-site-theme="dark"] .v7-lead-rail small,html[data-site-theme="dark"] .browse-meta,html[data-site-theme="dark"] .story-card__genre{color:#b9cbbc!important}
html[data-site-theme="dark"] .story-card,html[data-site-theme="dark"] .ranked-story,html[data-site-theme="dark"] .v7-rail-item,html[data-site-theme="dark"] .v5-continue-card,html[data-site-theme="dark"] .editor-card,html[data-site-theme="dark"] .auth-card,html[data-site-theme="dark"] .account-card,html[data-site-theme="dark"] .chapter-form,html[data-site-theme="dark"] .v4-simple,html[data-site-theme="dark"] .review-panel,html[data-site-theme="dark"] .empty-panel,html[data-site-theme="dark"] .reader-settings,html[data-site-theme="dark"] .reading-memory,html[data-site-theme="dark"] .reader-toc__panel{background:#1a2a23!important;border-color:#355044!important;color:#e1ede3!important}
html[data-site-theme="dark"] .story-card a,html[data-site-theme="dark"] .ranked-story a,html[data-site-theme="dark"] .v7-rail-item strong,html[data-site-theme="dark"] .editor-card h2,html[data-site-theme="dark"] .auth-card label,html[data-site-theme="dark"] .reader-settings strong{color:#e9f1e7!important}
html[data-site-theme="dark"] .nav-search-form input,html[data-site-theme="dark"] .v27-birth-row select,html[data-site-theme="dark"] .auth-card input,html[data-site-theme="dark"] .auth-card select,html[data-site-theme="dark"] .auth-card textarea,html[data-site-theme="dark"] .editor-card input,html[data-site-theme="dark"] .editor-card select,html[data-site-theme="dark"] .editor-card textarea,html[data-site-theme="dark"] .v27-genre-form input{background:#172921!important;color:#e7f0e7!important;border-color:#3d5747!important}
html[data-site-theme="dark"] .button--outline,html[data-site-theme="dark"] .reader-settings-toggle,html[data-site-theme="dark"] .reader-toc summary,html[data-site-theme="dark"] .v27-password-field button{background:#294434!important;color:#ecf1e9!important;border-color:#42604f!important}
html[data-site-theme="dark"] .v27-verification-note{background:#203f30;border-color:#385b46;color:#d4ead6}
html[data-site-theme="dark"] .reader-top{background:#1a2a23!important;color:#e8efe8!important;border-color:#345143!important}
html[data-site-theme="dark"] .reader-bottom{color:#d5e3d6!important}
html[data-site-theme="dark"] .reader-page .reader-heading h1,html[data-site-theme="dark"] .reader-page .prose{color:#e3e9df!important}
html[data-site-theme="dark"] .reader-page .prose{max-width:730px}
html[data-site-theme="dark"] .v27-site-theme-label select{background:#243a2e;color:#f0f4ef;border-color:#3b5845}
@media(prefers-color-scheme:dark){
html:not([data-site-theme="dark"]):not([data-site-theme="light"]){--bg:#111b18;--cream:#16251f;--paper:#1c2b25;--ink:#e4ede6;--mid:#b5c5b8;--muted:#a5b4a8;--line:#32483d;--dark:#263e33;--accent:#dda788}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) body{background:#111b18;color:#e1e9e2}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .site-header,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .site-footer,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .mobile-dock,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-bottom{background:#14231d!important;color:#e6eee6!important;border-color:#31483b!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .site-header a,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .nav-links a,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .nav-library,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .mobile-dock a,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .footer-links a{color:#d4e4d6!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-spotlight,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-genre-block,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-home-block,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .hero,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-lead-rail,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .feature-strip,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .content-section,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .browse-page,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .story-page,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .dashboard-page,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-main,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-form-side{background:#111b18!important;color:#e3eae4!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-spotlight h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-home-block h2,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-block-header h2,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .browse-page h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .story-page h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .dashboard-page h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-heading h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-spotlight__text,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .story-card__details strong,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .ranked-story__info strong{color:#edf3eb!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-spotlight p,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-spotlight__copy p,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-heading__meta,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card p,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-spotlight__meta,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-lead-rail small,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .browse-meta,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .story-card__genre{color:#b9cbbc!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .story-card,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .ranked-story,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-rail-item,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v5-continue-card,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .editor-card,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .account-card,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .chapter-form,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v4-simple,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .review-panel,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .empty-panel,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-settings,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reading-memory,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-toc__panel{background:#1a2a23!important;border-color:#355044!important;color:#e1ede3!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .story-card a,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .ranked-story a,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v7-rail-item strong,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .editor-card h2,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card label,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-settings strong{color:#e9f1e7!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .nav-search-form input,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v27-birth-row select,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card input,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card select,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .auth-card textarea,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .editor-card input,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .editor-card select,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .editor-card textarea,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v27-genre-form input{background:#172921!important;color:#e7f0e7!important;border-color:#3d5747!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .button--outline,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-settings-toggle,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-toc summary,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v27-password-field button{background:#294434!important;color:#ecf1e9!important;border-color:#42604f!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v27-verification-note{background:#203f30;border-color:#385b46;color:#d4ead6}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-top{background:#1a2a23!important;color:#e8efe8!important;border-color:#345143!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-bottom{color:#d5e3d6!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-page .reader-heading h1,html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-page .prose{color:#e3e9df!important}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .reader-page .prose{max-width:730px}
html:not([data-site-theme="dark"]):not([data-site-theme="light"]) .v27-site-theme-label select{background:#243a2e;color:#f0f4ef;border-color:#3b5845}
}
/* Explicit paper/sepia overrides the global site theme when chosen by the reader. */
.reader-page[data-reader-theme="paper"]{background:#fcfcff!important;color:#273b32!important}
.reader-page[data-reader-theme="paper"] .reader-main,.reader-page[data-reader-theme="paper"] .reader-heading h1,.reader-page[data-reader-theme="paper"] .prose{background:#fcfcff!important;color:#273b32!important}
.reader-page[data-reader-theme="sepia"],.reader-page[data-reader-theme="sepia"] .reader-main{background:#f6f0e7!important;color:#433829!important}
.reader-page[data-reader-theme="sepia"] .reader-heading h1,.reader-page[data-reader-theme="sepia"] .prose{color:#433829!important}
.reader-page[data-reader-theme="night"],.reader-page[data-reader-theme="night"] .reader-main{background:#121f1c!important;color:#dce5de!important}
.reader-page[data-reader-theme="night"] .reader-heading h1,.reader-page[data-reader-theme="night"] .prose{color:#dce6dc!important}
@media(max-width:560px){.v27-birth-row{grid-template-columns:1fr 1fr}.v27-site-theme-label{min-width:73px}.v27-site-theme-label select{font-size:11px;padding:7px 6px}}
