.ui-preferences{display:flex;align-items:center;gap:7px;flex:none}.preference-toggle{border:1px solid var(--line);background:var(--surface);color:var(--navy);border-radius:999px;padding:8px 11px;font:600 11px var(--sans);white-space:nowrap;cursor:pointer;transition:background .2s,color .2s,border-color .2s}.preference-toggle:hover{border-color:var(--navy);background:var(--navy);color:#fff}
html[data-theme="dark"]{color-scheme:dark;--oat:#101827;--navy:#e5edf8;--sand:#8fa9ca;--charcoal:#f2f5fa;--surface:#182438;--muted:#a9b5c6;--white:#111d2e;--line:rgba(220,232,248,.16);--shadow:0 14px 38px rgba(0,0,0,.28);background:#101827;color:#e5edf8}
html[data-theme="dark"] body{background:#101827;color:#e5edf8}
html[data-theme="dark"] .site-header,html[data-theme="dark"] .main-nav,html[data-theme="dark"] .mobile-bottom-nav,html[data-theme="dark"] .user-menu{background:#101827;color:#e5edf8}
html[data-theme="dark"] .main-nav a,html[data-theme="dark"] .text-link,html[data-theme="dark"] .search-link,html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .text-button{color:#e5edf8}
html[data-theme="dark"] .hero-art,html[data-theme="dark"] .category-card,html[data-theme="dark"] .featured-section,html[data-theme="dark"] .cover-wrap,html[data-theme="dark"] #drop-zone,html[data-theme="dark"] .data-table th{background:#182438;color:#e5edf8}
html[data-theme="dark"] .site-footer{background:#0b1320;color:#e5edf8}
html[data-theme="dark"] .trust-strip,html[data-theme="dark"] .membership-band,html[data-theme="dark"] .member-banner{background:#203b60;color:#fff}
html[data-theme="dark"] .hero-lede,html[data-theme="dark"] .section-intro,html[data-theme="dark"] .book-meta small,html[data-theme="dark"] .book-author,html[data-theme="dark"] .muted{color:#a9b5c6}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .hero-search,html[data-theme="dark"] .newsletter-input input{background:#182438;color:#edf3fb;border-color:rgba(220,232,248,.2)}
html[data-theme="dark"] .button-light{background:#e5edf8;color:#142b4a;border-color:#e5edf8}
html[data-theme="dark"] .preference-toggle{background:#182438;color:#e5edf8;border-color:rgba(220,232,248,.22)}
html[data-theme="dark"] .pill{background:#263b57;color:#e5edf8}
html[data-theme="dark"] .bookmark-btn{background:#182438;color:#e5edf8}
html[data-theme="dark"] .card-front{background:#182438;color:#e5edf8}
@media(max-width:760px){.ui-preferences{gap:5px}.preference-toggle{padding:7px 9px;font-size:10px}.header-actions{gap:8px;flex-wrap:wrap}.ui-preferences{order:0}.user-menu{flex-wrap:wrap}}
html[data-theme="dark"] .detail-cover{background:linear-gradient(145deg,#263b57,#182438)}
html[data-theme="dark"] .buy-box,html[data-theme="dark"] .team-card,html[data-theme="dark"] .pending-item,html[data-theme="dark"] .plan-card,html[data-theme="dark"] .confirm-box{background:#182438;color:#e5edf8;border-color:rgba(220,232,248,.16)}
html[data-theme="dark"] .detail-desc,html[data-theme="dark"] .prose{color:#b9c5d5}
html[data-theme="dark"] .data-table{background:#182438;color:#e5edf8}
html[data-theme="dark"] .data-table td{border-color:rgba(220,232,248,.12)}
html[data-theme="dark"] .confirm-box{background:#20324b}
html[data-theme="dark"] .category-card:hover{background:#243650;border-color:#456181}
