/* Loaded last so public, account and admin pages share the selected palette. */
:root { color-scheme: light; }
.theme-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--blue-soft); }
@media(max-width:900px) {
 .header-inner { display:grid;grid-template-columns:minmax(0,1fr) auto auto auto; }
 .header-inner .mobile-theme-toggle:not([hidden]) { display:inline-flex;grid-column:2;grid-row:1;width:40px;height:44px;padding:9px; }
 .header-inner .header-account,.header-inner .mobile-registration-link { grid-column:3; }
 .header-inner .mobile-nav-toggle:not([hidden]) { grid-column:4; }
 .main-nav .theme-toggle:not([hidden]) { display:none; }
}
@media(max-width:380px) {
 .header-inner .brand { gap:6px; }
 .header-inner .brand img { width:32px;height:36px; }
 .header-inner .brand-copy strong { font-size:20px;letter-spacing:-1px; }
 .header-inner .mobile-theme-toggle:not([hidden]) { width:36px;padding:7px; }
}
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] {
    color-scheme: dark;
    --navy: #99bcff; --navy-dark: #c1d5ff; --blue: #8bb8ff;
    --blue-soft: #17253b; --ink: #f1f3f7; --muted: #b5bdca;
    --line: #414955; --canvas: #000000; --surface: #121416;
    --green: #75d8b0; --red: #ff9ca6; --amber: #f2c471;
    --white: #121416; --shadow: 0 12px 32px #0008;
    --surface-raised: #1e2228; --control-line: #737e8f;
    background: #000000;
}
html[data-theme="dark"] body { color: var(--ink); background: var(--canvas); }
html[data-theme="dark"] :is(h1,h2,h3,h4,label,legend,dt,strong,summary) { color: inherit; }
html[data-theme="dark"] :is(.site-header,.site-footer,.account-menu-panel,.admin-dropdown-menu,.admin-navigation-shell,.admin-navigation-toggle,.admin-navigation-shell .admin-navigation,.notification-bell,.mobile-nav-toggle,.form-card,.auth-card,.coins-panel,.campaign-card,.classified-card,.listing-card,.related-listing-card,.detail-card,.search-panel,.classified-search,.classified-filter-panel,.visitor-ribbon,.search-context,.account-table-wrap,.account-audit-panel,.policy-page,.empty-state,.classified-empty,.category-tile,.listing-manager-panel,.listing-manager-stat,.floating-community-cta > nav,.floating-back-to-top,.eriani-greeting) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(input,select,textarea) { background-color: var(--canvas); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(input,textarea)::placeholder { color: #9eafc5; opacity: 1; }
html[data-theme="dark"] :is(.button,.main-nav > a.button) { background: #315fa7; border-color: #527cb9; color: #fff; }
html[data-theme="dark"] .button:hover { background: #3d70bc; }
html[data-theme="dark"] :is(.button-outline,.button-danger,.classified-detail-link,.classified-filter-toggle,.search-discovery .classified-filter-toggle,.listing-manager-more > summary,.theme-toggle) { background: var(--blue-soft); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .search-discovery.classified-search { background: #000000; }
html[data-theme="dark"] :is(.search-discovery .classified-search-box,.classified-search-box,.search-discovery-examples > a,.search-discovery-clear,.classified-card-featured,.adsense-preview) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.brand-copy small,.search-discovery-intro p,.search-discovery-examples > span,.classified-location,.classified-publisher-info small,.form-help,.api-management-facts dt,small,.muted) { color: var(--muted); }
html[data-theme="dark"] :is(th,thead,.result-count,.boost-quota-note,.visitor-ribbon-toggle,.api-management pre,.api-management-table th) { background: var(--blue-soft); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(td,th,hr,.api-management-facts > div,.api-management-details) { border-color: var(--line); }
html[data-theme="dark"] :is(tbody tr:hover,.profile-tabs a.active,.profile-tabs a:hover) { background: var(--blue-soft); }
html[data-theme="dark"] :is(.listing-boost-count,.superboost-badge,.superboost-action-button,.status-pending) { background: #44361d; color: #ffda8d; border-color: #806535; }
html[data-theme="dark"] :is(.listing-like-count,.listing-like-count:disabled,.status-approved,.flash-success) { background: #183e39; color: #9aecd1; border-color: #3e6e62; }
html[data-theme="dark"] :is(.status-rejected,.flash-error,.button-danger) { background: #492a35; color: #ffb7c0; border-color: #855260; }
html[data-theme="dark"] :is(.visitor-stat-group-visitors,.visitor-stat-group-listings,.visitor-stat-group-coins) { color: var(--ink); }
html[data-theme="dark"] :is(.pager-wrap a,.pager-wrap span,.home-pagination a) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.pager-wrap .active a,.home-pagination [aria-current="page"]) { background: #315fa7; color: #fff; }
html[data-theme="dark"] .brand img { background: #fff; border-radius: 8px; }
html[data-theme="dark"] ::selection { background: #426390; color: #fff; }
html[data-theme="dark"] :is(.admin-navigation,.stat-card,.review-card,.moderation-metric,.moderation-gift,.campaign-summary,.notification-card,.service-description,.auth-panel,.detail-main,.detail-sidebar-card,.sidebar-card,.coins-summary-card,.coins-balance-card,.coins-rules-card,.faq-item,.faq-topics a,.visit-donut-tooltip,.news-card,.news-article) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.service-description .detail-description,.detail-description,.detail-main .service-description-header h2,.data-table td,.data-table td small,.moderation-description p,.moderation-facts dd,.moderation-facts dd span,.moderation-card-intro p,.moderation-card-intro time,.moderation-metric > span,.moderation-decision p,.visit-donut-tooltip > strong) { color: var(--ink); }
html[data-theme="dark"] :is(.visit-log-quick-dates > a,.visit-log-history-pagination > a,.whatsapp-popular-pagination > a,.whatsapp-history-pagination > a,.data-table th,.moderation-decision,.moderation-facts) { background: var(--blue-soft); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .moderation-decision .review-note textarea { background: var(--canvas); color: var(--ink); }
html[data-theme="dark"] :is(.contact-card,.dashboard-item,.google-signin) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body :is(input,select,textarea) { background-color: var(--canvas) !important; color: var(--ink) !important; border-color: var(--line); }
html[data-theme="dark"] :is(.brand-copy strong,.brand-copy strong > span,.footer-brand > strong) { color: var(--ink); }
@media (max-width: 1100px) { .main-nav .theme-toggle { min-height: 44px; flex: 0 0 44px; width: 44px; align-self: flex-start; } }

/* Neutral OLED surfaces; accent colors indicate links and states, not body text. */
html[data-theme="dark"] :is(.site-header,.site-footer) { background: #000; }
html[data-theme="dark"] body :is(.main-nav > a:not(.button),.boost-login-link,.news-breadcrumb a,.eriani-bubble a,.listing-manager-title) { color: var(--navy); }
html[data-theme="dark"] .classified-publisher-info a { color: var(--green); }
html[data-theme="dark"] body :is(.provider-avatar,.classified-publisher .provider-avatar,.service-description-icon,.result-count,.profile-tabs,.form-note,.maps-format-example,.listing-social-fields,.search-suggestion-note,.adsense-preview-art,.moderation-count,.moderation-photo,.moderation-service-target,.moderation-service-target > span,.listing-manager-input,.listing-manager-menu,.listing-manager-owner,.listing-manager-thumb,.visit-single-day,.visit-distribution-heading > span,.news-avatar,.news-empty-icon,.news-comment-total) { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body :is(.coins-request-item,.payout-destination-card,.admin-payout-card,.feedback-captcha,.notification-unread,.moderation-page .moderation-decision,.moderation-full-description[open] p,.listing-manager-stat:hover,.listing-manager-stat.is-current,.admin-navigation .admin-dropdown-menu) { background: var(--surface-raised); color: var(--ink); }
html[data-theme="dark"] body :is(.listing-manager-stat > strong,.listing-manager-title,.listing-manager-table .listing-manager-owner strong,.listing-manager-list-head h2,.moderation-description h3,.visit-donut-tooltip > strong) { color: var(--ink); }
html[data-theme="dark"] body :is(.classified-contact-disabled,.moderation-service-target p,.moderation-id,.moderation-facts dt,.listing-manager-stat > span,.listing-manager-filters > label,.listing-manager-reset,.listing-manager-list-head p,.listing-manager-list-head > span,.listing-manager-id,.listing-manager-contact,.listing-manager-footer p,.listing-manager-mobile-label,.account-detail-list dt,.visit-single-hint p,.visit-log-filter-heading > span) { color: var(--muted); }
html[data-theme="dark"] body :is(.listing-manager-menu a,.listing-manager-menu button) { color: var(--navy); }
html[data-theme="dark"] body :is(.listing-manager-menu a:hover,.listing-manager-menu button:hover,.account-menu-panel button:hover,.search-discovery-examples > a:hover,.classified-detail-link:hover,.profile-tabs a:hover) { background: var(--blue-soft); color: var(--ink); }
html[data-theme="dark"] body :is(.listing-manager-badge,.status-inactive,.status-removed) { background: #292d35; color: #d0d7e2; }
html[data-theme="dark"] body :is(.listing-manager-badge-approved,.listing-like-count-used:disabled,.flash-success) { background: #15352b; color: #9aecd1; }
html[data-theme="dark"] body :is(.listing-manager-badge-pending,.moderation-metric-pending,.news-rewards,.news-reading .news-rewards,.news-reading .news-rewards span,.demo-label,.similarity-notice) { background: #352a15; color: #ffda8d; }
html[data-theme="dark"] body :is(.campaign-reward,.moderation-metric-pending > strong,.listing-manager-boost > span,.classified-card .demo-label) { color: #ffda8d; }
html[data-theme="dark"] body :is(.listing-manager-badge-rejected,.listing-manager-badge-removed,.moderation-decision .review-buttons .button-danger,.news-featured-tag) { background: #40232b; color: #ffb7c0; }
html[data-theme="dark"] body :is(.feedback-field-error,.listing-manager-menu .listing-manager-delete,.listing-manager-menu .listing-manager-delete-help) { color: #ffb7c0; }
html[data-theme="dark"] body :is(.data-table tbody tr:nth-child(even),.visit-log-history-table tbody tr:nth-child(even),.visit-breakdown-table tbody tr:nth-child(even),.whatsapp-history-table tbody tr:nth-child(even)) { background: #191c21; }
html[data-theme="dark"] body :is(.data-table tbody tr:hover,.account-table tbody tr:hover) { background: #252b35; }
html[data-theme="dark"] body :is(.home-pagination-list a,.home-pagination-list > li > span) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body :is(.home-pagination-list .is-current,.visit-log-history-pagination > .is-current,.whatsapp-history-pagination > .is-current,.pager-wrap .active span,.skip-link) { background: #315fa7; color: #fff; }
html[data-theme="dark"] body .home-pagination-list .is-disabled { background: #191c21; color: #a5afbe; }
html[data-theme="dark"] body :is(input,select,textarea,.classified-search-box,.search-discovery .classified-search-box,.classified-filter-toggle,.button-outline,.google-signin) { border-color: var(--control-line); }
html[data-theme="dark"] :where(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid #afceff; outline-offset: 3px; }
html[data-theme="dark"] .social-profile-icon-tiktok { color: var(--ink); }
html[data-theme="dark"] .visit-daily-trend .visit-chart-track { background: repeating-linear-gradient(to top,transparent 0,transparent 35px,#414955 35px,#414955 36px); }

/* News discovery, article, editor and comments. */
html[data-theme="dark"] body :is(.news-discovery .news-filters,.news-discovery .news-list .news-card,.news-reading .news-detail,.news-empty,.news-editor,.news-editor-toolbar button,.news-upload-label) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body :is(.news-editor-toolbar,.news-reading .news-comments > .stack-form,.news-topics a,.news-list .news-card-image,.news-discovery .news-list .news-card-image,.news-list .news-card-image > span,.news-card-tags > .eyebrow,.news-reading .news-detail > header > .eyebrow,.news-reading [data-news-status]:not(:empty)) { background: var(--surface-raised); color: var(--navy); border-color: var(--line); }
html[data-theme="dark"] body :is(.news-discovery-heading h2,.news-discovery .news-list .news-card h2,.news-reading .news-detail h1,.news-reading .news-summary,.news-reading .news-body,.news-summary,.news-card-copy p,.news-body blockquote,.news-empty h2) { color: var(--ink); }
html[data-theme="dark"] body :is(.news-breadcrumb,.news-reading .news-breadcrumb,.news-byline,.news-detail figcaption,.news-source,.news-section-kicker,.news-discovery-heading > p,.news-discovery .news-filters label,.news-reset,.news-results-heading > span,.news-discovery .news-list .news-card-summary,.news-discovery .news-list .news-card-copy > small,.news-empty p,.news-reading .form-help,.news-comment-head small,.news-list-interactions) { color: var(--muted); }
html[data-theme="dark"] body :is(.news-discovery-heading h2 > span,.news-discovery .news-list-interactions > span,.news-reading .news-actions form .button,.news-reading .news-actions > .button:first-child) { background: #40232b; color: #ffb7c0; }
html[data-theme="dark"] body :is(.news-discovery .news-list-interactions > a,.news-reading .news-actions [data-news-share=copy],.news-social-fb,.news-list-interactions button,.news-reading .news-comment > form .button) { background: var(--blue-soft); color: var(--navy); }
html[data-theme="dark"] body .news-social-wa { background: #15352b; color: #9aecd1; }

/* Floating helpers and chat styles also loaded after opening the widget. */
html[data-theme="dark"] body :is(.floating-community-cta > nav > a,.floating-community-cta > nav strong,.eriani,.eriani-greeting > [data-start]) { color: var(--ink); }
html[data-theme="dark"] body :is(.floating-community-cta > nav > a:hover,.floating-community-cta > nav > .floating-community-install,.floating-community-install-help,.eriani-transcript,.eriani-admin-transcript,.eriani-admin-preview,.eriani-admin-select-hint) { background: var(--surface-raised); color: var(--ink); }
html[data-theme="dark"] body :is(.eriani-panel,.eriani-bubble,.eriani-admin-history,.eriani-admin-conversation,.eriani-admin-message,.eriani-admin-delete,.page-preloader-card) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body :is(.eriani-bubble.is-user,.eriani-admin-message.is-user) { background: #20395b; color: #f1f3f7; }
html[data-theme="dark"] body :is(.eriani-quick button,.eriani-contact-actions a,.eriani-bubble button,.eriani-ai-mode button,.eriani-bubble .eriani-ai-status,.eriani-admin-total,.eriani-admin-count > span,.eriani-admin-source,.eriani-admin-ai-status,.eriani-admin-table tbody tr.is-selected) { background: var(--blue-soft); color: var(--navy); border-color: var(--line); }
html[data-theme="dark"] body :is(.eriani-admin-identity strong,.eriani-admin-date > span,.eriani-admin-speaker,.page-preloader h2,.page-preloader-meter-heading strong,.page-preloader-retry) { color: var(--ink); }
html[data-theme="dark"] body :is(.eriani-status,.eriani-load-status,.eriani-greeting > [data-dismiss],.eriani-admin-section-head p,.eriani-admin-empty-row td,.eriani-admin-pagination > span,.eriani-admin-turn-meta,.eriani-admin-empty,.eriani-admin-delete > p,.page-preloader-estimate,.page-preloader-meter-heading small,.page-preloader-help,.page-preloader-dismiss) { color: var(--muted); }
html[data-theme="dark"] body .eriani-admin-delete > summary { color: #ffb7c0; }
html[data-theme="dark"] body :is(.faq-item[open] summary,.floating-community-install-icon,.floating-community-feedback-icon) { background: var(--blue-soft); color: var(--ink); }
html[data-theme="dark"] .visitor-stat-today { --visitor-ink: #b6d1ff; --visitor-wash: #18263d; --visitor-border: #415879; }
html[data-theme="dark"] .visitor-stat-week { --visitor-ink: #a0e7c9; --visitor-wash: #163127; --visitor-border: #3c6655; }
html[data-theme="dark"] .visitor-stat-month { --visitor-ink: #ffda8d; --visitor-wash: #352a15; --visitor-border: #77643d; }
html[data-theme="dark"] body :is(.faq-contact,.recovery-codes,.two-factor-setup,.news-reading .news-rewards,.maintenance-info) { background: var(--surface-raised); color: var(--ink); }
html[data-theme="dark"] body .maintenance-card { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body :is(.maintenance-card h1,.maintenance-info h2,.maintenance-info .maintenance-estimate strong) { color: var(--ink); }
html[data-theme="dark"] body .maintenance-card p { color: var(--muted); }
html[data-theme="dark"] body .maintenance-card .eyebrow { color: var(--green); }
html[data-theme="dark"] .maintenance-logo { background: #fff; border-radius: 12px; }
html[data-theme="dark"] .notification-count { background: #b92e4b; color: #fff; }
