
html[data-theme="dark"] {color-scheme:dark;background:#121820;color:#e7edf5;--green:#95d4b4;--muted:#b0bccb;--line:#3a4656;--orange:#f3a16f}
html[data-theme="dark"] body {background:#121820;color:#e7edf5}
html[data-theme="dark"] :is(.site-header,.settings-nav,.settings-card,.account-card,.platform-header,.platform-sidebar,.platform-main,.choice-panel,.preview-card,.editor-card,.game-card,.home-actions,.player-card,.auth-switch,.choice-button,.market-card,.profile-card) {background:#1d2733;color:#e7edf5;border-color:#3a4656}
html[data-theme="dark"] :is(input:not([type="color"]),select,textarea,.secondary-button) {background:#17212b;color:#e7edf5;border-color:#526177}
html[data-theme="dark"] :is(.muted,.panel-help,.profile-note,.home-greeting,.choice-description,dt,.settings-nav p,.card-kicker) {color:#b0bccb}
html[data-theme="dark"] .primary-button {background:#35785d;color:#fff}
html[data-theme="dark"] .choice-button[aria-pressed="true"] {background:#294c40;border-color:#95d4b4}
html[data-theme="dark"] :is(a, h1,h2,h3,label,legend) {color:inherit}

html[data-theme="dark"] :is(.home-actions a,.profile-avatar,.profile-outfit,.wearing-card,.player-search-results,.platform-header form,.platform-header form button) {background:#1d2733;color:#e7edf5;border-color:#3a4656}
html[data-theme="dark"] :is(.home-actions strong,.home-actions span,.game-card p,.sidebar-soon,.platform-sidebar>button,.profile-avatar p,.wearing-card span) {color:#b0bccb}
html[data-theme="dark"] .platform-sidebar nav a[aria-current="page"],html[data-theme="dark"] .platform-sidebar nav a:hover {background:#294c40;color:#e7edf5}

html[data-theme="dark"] :is(.wardrobe-panel,.preview-panel,.editor-player,.category-buttons,.saved-character,.coin-card,.profile-about){background:#1d2733;color:#e7edf5;border-color:#3a4656}

/* Shared surfaces that previously retained light backgrounds. */
html[data-theme="dark"] :is(.error-card,.asset-preview,.catalog-header,.catalog-shell,.catalog-search,.catalog-search button,.catalog-content .design-card,.catalog-content #market-more,.clothing-tools,.clothing-section,.club-card,.audit-list article,.place-card,.design-card,.search-categories a,.search-page-results>a,.classic-player,.map-choice,.world-view-message,.world-player,.camera-toolbar,.world-message,.world-context-error,#camera-help,.movement-pad button,.jump-button,.roster-head,.roster-row:nth-child(even),.world-chat #chat-messages p,.world-chat #chat-messages p:nth-child(even),.tryon-preview) {background:#1d2733;color:#e7edf5;border-color:#526177}
html[data-theme="dark"] :is(#profile-description,.settings-card input:not([type="range"]),.settings-card select,.catalog-toolbar select,.catalog-tabs button,.sort-trigger,#asset-favorite) {background:#17212b;color:#e7edf5;border-color:#526177}
html[data-theme="dark"] :is(.catalog-header,.catalog-shell,.clothing-tools,.clothing-section,.club-card,.audit-list,.place-card,.design-card,.wardrobe-panel,.preview-panel,.settings-nav,.settings-card) :is(h1,h2,h3,p,span,strong,small,label,a,button:not(.primary-button)) {color:#d5e1ee}
html[data-theme="dark"] :is(.category-buttons button[aria-pressed="true"],.auth-switch button[aria-pressed="true"],.catalog-sidebar a.sidebar-active,.catalog-sidebar a:hover,.settings-nav nav a,.search-categories a[aria-current]) {background:#294c40;color:#e7edf5}
html[data-theme="dark"] :is(.wearing-symbol,.design-card .wearing-symbol) {background:#253746;color:#d5e1ee}
html[data-theme="dark"] :is(.preview-error,.editor-feedback,.error-message) {background:#492d25;color:#ffd4b5;border-color:#9d725f}
html[data-theme="dark"] :is(button,input,select,textarea,a):focus-visible {outline:3px solid #f3ba84;outline-offset:3px}
