.af-theme-settings{margin:24px 0;border:0;padding:0;min-width:0}.af-theme-settings legend{font:650 14px/1.6 system-ui,sans-serif;margin-bottom:12px}.af-theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.af-theme-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:86px;padding:12px 4px;border:1px solid var(--line,#d6dfd1);border-radius:12px;background:var(--card,#fffefa);color:var(--ink,#17271f);font:550 12px/1.4 system-ui,sans-serif;cursor:pointer}.af-theme-choices svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}.af-theme-choices button[aria-pressed=true]{border-color:var(--accent,#174d3b);box-shadow:inset 0 0 0 1px var(--accent,#174d3b);background:var(--soft,#eaf0e9)}.af-theme-choices button:focus-visible{outline:3px solid var(--gold,#b59151);outline-offset:3px}
html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] body.dark{--paper:#151b18;--bg:#151b18;--card:#1e2822;--ink:#ecf0e9;--muted:#b1bfb4;--line:#3b4b40;--soft:#29382e;--green:#abd2b7;--green2:#c5dec3;--accent:#b4d7bc;--gold:#d1b576;--topic-paper:#151b18;--topic-green:#b4d7bc;--topic-ink:#ecf0e9;--topic-line:#3b4b40;--topic-muted:#b1bfb4;color-scheme:dark;background-color:var(--bg);color:var(--ink)}
html[data-theme=dark] .brand img{content:url('/logo-light.svg?v=2')}
html[data-theme=dark] :is(.af-drawer,.auth-card,.admin-confirm,.language-card,.topic-card,.topic-method,.topic-takeaways,.topic-toc,.hadith-collection-card,.hadith-jump,.hadith-coverage,.hadith-book-tools,.hadith-book-row,.hadith-entry,.hadith-text-card,.hadith-reference-panel,.hadith-source-details,.verse-panel,.tafsir-block,.word-card,.publisher-card,.selection,.player,.dhikr-card,.today,.quran-picker,.notice,.stat-card,.progress-panel,.saved-search,.week-table tr.today,.search-box,.search-result,.search-sidebar,.contact-card,.contact-message,.contact-email-card,.about-tool,.principle,.guide,.source-section details,.card,.service-card,.feature-card,.intro-facts span,.examples button,.admin-stat,.admin-table-wrap,.admin-confirm,.auth-tabs,.account-note){background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.af-secondary,.hadith-secondary,.filters button,.topic-filters button,.weekly-languages button,.reset-button,.result-actions button,.pagination button,.retry,.saved-item button,.saved-pages button,.undo button,.auth-tabs button){background:var(--bg);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.weekly-card,.home-topics,.home-hadith,.about-band,.topic-editorial-note,.panel-note,.availability-note,.progress-notice,.undo,.contact-status,.auth-status,.hadith-status){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .weekly-aside{background:var(--card);border-color:var(--line)}
html[data-theme=dark] :is(h1,h2,h3,h4,.weekly-arabic,.weekly-translation,.hadith-arabic,.hadith-translation,.hadith-entry-excerpt,.block-text,.quran-meaning,.word-meaning,.dhikr-arabic,.verse-display strong,.topic-article p,.topic-takeaways ul,.about-list,.topic-intro-seal>span,.hadith-hero-stat strong,.stat-card strong,.account-detail dd){color:var(--ink)}
html[data-theme=dark] :is(.af-drawer-intro,.af-drawer-note,.af-drawer small,.af-drawer-label,.af-drawer-foot span,.weekly-aside p,.weekly-aside time,.weekly-credit,.weekly-notes,.topic-hub-intro p,.topic-article-heading>p,.topic-section-heading p,.topic-card p,.topic-method p,.topic-result-count,.topic-category,.topic-article-meta,.topic-sources li small,.hadith-library-hero p,.hadith-section-heading p,.hadith-collection-card p,.hadith-hero-stat>span,.hadith-hero-stat small,.hadith-facts span,.hadith-book-row small,.hadith-entry-heading>span,.hadith-text-label,.hadith-edition-credit,.hadith-search-note,.hadith-reference-panel dt,.hadith-reference-panel dd,.hadith-reference-panel li,.hadith-source-details,.hadith-home-note,.lead,.language-card p,.language-card .translator,.section-heading p,.guide p,.guide li,.source-section details p,.panel-top p,.panel-note,.block-meta,.word-position,.hint,.player>p,.verse-display>span,.dhikr-heading p,.dhikr-card details,.list-heading span,.stat-card p,.goal-form label,.saved-head span,.saved-item small,.empty-saved,.progress-footer-note,.query-row label,.search-options,.search-hint,.results-head span,.search-state,.result-top,.result-translation,.result-credit,.study-notes p,.search-sidebar p,.pagination span,.about-facts span,.about-copy>p,.principle p,.about-tool p,.about-note,.faq-list p,.auth-story p,.auth-story li,.auth-card .subtitle,.auth-form small,.auth-footnote,.auth-footer,.account-heading p,.account-detail dt,.admin-stat span,td small,.admin-pagination,.admin-audit small,.admin-empty,.contact-heading p,.contact-email-card p,.contact-help p,.contact-form small,.contact-privacy,.contact-message-meta,.contact-inbox-empty){color:var(--muted)}
html[data-theme=dark] :is(a:not(.button):not(.primary):not(.af-primary):not(.hadith-primary):not(.topic-primary),h1 em,.topic-hub-intro em,.weekly-mark,.weekly-ref,.topic-arabic,.topic-number,.topic-card-action,.topic-eyebrow,.hadith-eyebrow,.hadith-card-arabic,.hadith-card-action,.hadith-book-number,.hadith-entry-heading strong,.hadith-reference-panel li strong,.contact-eyebrow,.contact-email-icon,.contact-heading h1 em,.auth-kicker,.auth-story h1 em,.auth-story li span,.auth-text-button,.password-toggle,.about-facts strong,.about-tool .tool-number,.about-tool .tool-action,.study-point span,.today strong){color:var(--accent)}
html[data-theme=dark] :is(.af-drawer-account,.af-drawer #site-navigation a){color:var(--ink);border-color:var(--line)}html[data-theme=dark] :is(.af-drawer #site-navigation a:hover,.af-drawer #site-navigation a[aria-current=page],.auth-tabs button[aria-selected=true],.weekly-languages button[aria-pressed=true],.topic-filters button[aria-pressed=true],.filters button[aria-pressed=true],#queue button[aria-current=true]){background:var(--soft);color:var(--accent)}
html[data-theme=dark] :is(.weekly-bottom,.weekly-notes,.af-drawer-head,.af-drawer-foot,.af-preference,.hadith-entry,.hadith-reference-panel,.contact-message-text,.contact-inbox-section,.about-section,.topic-toc a,.topic-sources,.dhikr-card details,.result-top,.result-actions,.study-notes,.auth-footer,.account-detail,.admin-table-wrap,td,th){border-color:var(--line)}
html[data-theme=dark] :is(.resume-panel,.about-cta){background:#243e2e;color:#eef4e9}html[data-theme=dark] :is(.resume-panel p,.resume-panel time,.resume-panel .eyebrow,.about-cta p){color:#c1d2bd}
html[data-theme=dark] :is(.site-footer,.site-footer a){color:#d9e5d9}html[data-theme=dark] .site-footer{background:#0e1a13}
html[data-theme=dark] :is(.auth-status.is-error,.contact-status.is-error,.hadith-status.is-error,.load-error,.storage-warning){background:#3d2c26;color:#f0c4b1;border-color:#85604b}
html[data-theme=dark] :is(.button,.card-link,.primary,.af-primary,.hadith-primary,.topic-primary,.contact-submit,.count-button,.search-submit){background:#285e40;color:#f2f7ed;border-color:#52745a}html[data-theme=dark] :is(.button,.card-link,.primary,.af-primary,.hadith-primary,.topic-primary,.contact-submit,.count-button,.search-submit):hover{background:#34724f;color:white}html[data-theme=dark] .about{background:var(--card)}html[data-theme=dark] .weekly-aside{background:transparent}html[data-theme=dark] .hero-note{color:var(--muted)}
