
:root,:root[data-theme=light]{color-scheme:only light;--bg:#b3b3b3;--bg-deep:#a6a6a6;--surface:#ededed;--surface-2:#dedede;--line:#919191;--line-soft:#c2c2c2;--text:#171717;--muted:#414141;--muted-2:#505050;--accent:#202020;--accent-2:#333333;--accent-dark:#d4d4d4}
:root[data-theme=dark]{color-scheme:only dark;--bg:#181818;--bg-deep:#101010;--surface:#252525;--surface-2:#303030;--line:#555;--line-soft:#3b3b3b;--text:#eee;--muted:#c2c2c2;--muted-2:#aaa;--accent:#eee;--accent-2:#ddd;--accent-dark:#333}
html,body{background:var(--bg);color:var(--text)}.site-header,.site-footer,.footer332,.market-footer{background:var(--surface)!important}.classifieds-home{background:var(--bg)!important}.hero-glow,.hero-grid{display:none!important}.category-card,.classifieds-search,.panel,.ad-card,.auth-story,.filter-sidebar,.vip332-card,.social332-placeholder,.social332-links>a,.app332-card,.app332-hero{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}.btn.primary,.classifieds-search button{background:#202020!important;color:#f5f5f5!important;border-color:#202020!important}:root[data-theme=dark] .btn.primary,:root[data-theme=dark] .classifieds-search button{background:#e0e0e0!important;color:#171717!important}.brand-logo{object-fit:contain}:root:not([data-theme=dark]) .brand-logo{filter:invert(1)}.classifieds-intro h1 em{color:var(--text)!important}.category-card:hover{background:var(--surface-2)!important;border-color:var(--text)!important}.vip332-badge,.vip332-price,.alert.info,.alert.success,.alert.error{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--line)!important}

/* The finished monochrome image already works on both backgrounds. */
.brand-logo,:root:not([data-theme=dark]) .brand-logo{filter:none!important}.social332-links{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:640px){.social332-links{grid-template-columns:1fr}}

/* Explicit light-theme contrast for the empty listing state and footer. */
:root:not([data-theme=dark]) .home-random-empty{background:#ededed;color:#111;border-color:#8c8c8c}
:root:not([data-theme=dark]) .home-random-empty :is(h3,p,span){color:#111}
:root:not([data-theme=dark]) .home-random-empty .btn.outline{background:#171717;color:#fff;border:1px solid #171717;opacity:1}
:root:not([data-theme=dark]) .home-random-empty .btn.outline:hover{background:#333;color:#fff;border-color:#333}
:root:not([data-theme=dark]) .footer332,:root:not([data-theme=dark]) .footer332 :is(h2,p,small,a,span,strong){color:#000!important;opacity:1}
:root:not([data-theme=dark]) .footer332 a:hover{color:#000!important;text-decoration:underline}
:root:not([data-theme=dark]) .footer332 a:focus-visible{outline-color:#000}
