appearance-picker{display:inline-block;font-size:13px;color:var(--ink);max-width:100%}appearance-picker label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}appearance-picker select{font:inherit;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}
html[data-appearance=dark]{--paper:#101c18;--ink:#e1eee7;--muted:#a9b9ae;--line:#42574b;--mint:#263c2d;--gold:#edc77d;background:var(--paper);color:var(--ink)}
html[data-appearance=dark] body{background:var(--paper);color:var(--ink)}
html[data-appearance=dark] :is(.r2-card,.r2-detail,.r2-panel,.listing-tile.r2-card,.profile-form,.profile-summary,.dashboard-shortcuts a,.illustration-card,dialog,#create-form>.post-nav,.post-steps,.post-summary,.inventory-edit){background:#1b2b23;color:var(--ink);border-color:var(--line)}
html[data-appearance=dark] :is(input,select,textarea,.r2-filter input,.r2-filter select,.profile-form select,.profile-form input,.profile-form textarea){background:#122119;color:var(--ink);border-color:#526b5b}
html[data-appearance=dark] :is(.notice,.demo-banner,.account-status,.privacy-note,.messenger-help details,.r2-rule,.r2-odds,.r2-badges span,.post-help,.entry-feedback,.sip-alert,.hero-scene,.sample-spots span,.pill,.floating-note){background:#273d2e;color:#dceadd;border-color:#526b5b}
html[data-appearance=dark] :is(.r2-muted,.r2-row small,.muted,.seller,small){color:var(--muted)}
html[data-appearance=dark] :is(.r2-warning,.ticket-value){background:#44361c;color:#ffe0a1;border-color:#8d7240}
html[data-appearance=dark] :is(.entry-feedback.error,.dialog-error,.danger){background:#472b28;color:#ffc6b7;border-color:#a16d5e}
html[data-appearance=dark] :is(button,.r2-actions button,.r2-panel button,dialog .modal-top .icon-button):not(.brand-action):not(.primary):not(.silver-action):not(.ready):not(.tile-open){background:#293e31;color:var(--ink);border-color:#526b5b}
html[data-appearance=dark] :is(.tabs button.active,.post-steps .active){background:#c6dec9;color:#14281b}
html[data-appearance=dark] .r2-entry-grid button{background:#23372b;color:#e1eee7;border-color:#526b5b}
html[data-appearance=dark] .r2-entry-grid button:is(.mine,.confirmed){background:#31583c;color:#ecffec;border-color:#91bc8d}
html[data-appearance=dark] .r2-entry-grid button.pending{background:#53411d;color:#ffe0a1}
html[data-appearance=dark] .r2-entry-grid button.chosen{background:#edc77d;color:#382506;outline-color:#ffe7b3}
html[data-appearance=dark] :is(.brand-action,.primary,.silver-action,.draw-final):disabled{background:#354239;color:#b4bdb6;border-color:#59675e;box-shadow:none;animation:none}
html[data-appearance=dark] :is(a,.r2-panel a){color:inherit}
html[data-appearance=dark] :is(.brand>span:last-child,.brand-dot){color:#a8c98b}
html[data-appearance=dark] :is(.button,.primary,.brand-action):not(:disabled){color:#48310a}
html[data-appearance=dark] ::placeholder{color:#a2b0a7;opacity:1}
html[data-appearance=dark] :focus-visible{outline-color:#edc77d}

/* Explicit surface/text pairs for all account and game panels. Keep images and
   award artwork unchanged; theme their surrounding UI instead. */
html[data-appearance=dark] :is(header,.site-nav,.account-email,.dashboard-feature,.card,.panel,.stat,.member-card,.entry-row,.technical,.external-wait,.file-verify,.method-panel,.bulk-report,.odds-panel,.reveal-area,.gallery-track,.card-media){background:#1b2b23;color:#e1eee7;border-color:#42574b}
html[data-appearance=dark] :is(.illustration-art,.art,.art.camera,.art.game,.art.custom,.r2-art){background:#273d2e;color:#e1eee7}
html[data-appearance=dark] :is(.sample-pill,.category-badges span,.tabs span,.status-tag,.status-tag.muted,.mini-avatar,.avatar){background:#314b39;color:#e1eee7}
html[data-appearance=dark] :is(.early-panel,.toast){background:#203e2b;color:#e1eee7}
html[data-appearance=dark] :is(.early-panel p,.early-panel .eyebrow,.floating-note small,.sample-bottom b,.eyebrow,.terms-copy p,.odds-panel span,.odds-panel small,.odds-panel b,.bulk-report p,.detail-steps span,.timeline .log-hash,.card-bottom strong){color:#b8cdbd}
html[data-appearance=dark] :is(.notice.muted,.notice.amber,.notice.danger){border-color:#526b5b}
html[data-appearance=dark] .notice.muted{background:#273d2e;color:#dceadd}
html[data-appearance=dark] :is(.notice.amber,.status-tag.pending,.spot.pending,.spot.win){background:#44361c;color:#ffe0a1}
html[data-appearance=dark] :is(.notice.danger,.status-tag.issue,.spot.issue){background:#472b28;color:#ffc6b7}
html[data-appearance=dark] :is(.error,#form-error,.row-actions .danger-btn){color:#ffb5a4}
html[data-appearance=dark] :is(.spot,.spot.free,.slot,.wheel-center){background:#23372b;color:#e1eee7;border-color:#526b5b}
html[data-appearance=dark] :is(.spot.mine,.spot.confirmed){background:#31583c;color:#ecffec}
html[data-appearance=dark] :is(.spot.chosen,.filter-buttons button.active,.view-toggle button.active,.interest-options button[aria-pressed=true],.photo-edit [aria-pressed=true]){background:#c6dec9;color:#14281b;border-color:#91bc8d}
html[data-appearance=dark] .progress{background:#3c5143}
html[data-appearance=dark] .progress i{background:#9ebc8c}
html[data-appearance=dark] :is(.hero-copy h1 em,.steps-list article>span,.detail-steps .now,.stat.warning b,.sip-alert-icon){color:#c8dcae}
/* The posting wizard uses ID selectors; match those so its light defaults
   cannot override these dark-mode colors. */
html[data-appearance=dark] #create-form :is(.post-steps li,.post-help,.inventory-edit,.post-summary){background:#273d2e;color:#e1eee7;border-color:#526b5b}
html[data-appearance=dark] #create-form .post-steps [aria-current]{background:#c6dec9;color:#14281b}
html[data-appearance=dark] #create-form small{color:#b8cdbd}
html[data-appearance=dark] #create-form .post-add{background:#293e31;color:#e1eee7;border-color:#526b5b}
html[data-appearance=dark] #create-form :is(#form-error,.dialog-error){color:#ffb5a4}
html[data-appearance=dark] #create-form input:disabled{background:#354239;color:#b4bdb6;opacity:1}
/* Do not let nested muted labels lose contrast on colored status panels. */
html[data-appearance=dark] :is(.ticket-value,.r2-warning,.notice.amber) small{color:#ffe0a1}
html[data-appearance=dark] :is(.notice.danger,.entry-feedback.error,.dialog-error) small{color:#ffc6b7}
html[data-appearance=dark] :is(.celebration-modal,.celebration-card){background-color:#12172d;color:#fff}
html[data-appearance=dark] .celebration-note{color:#cbd3ec}
html[data-appearance=dark] :is(.interest-options a,.filter-buttons a,.small-btn,.view-toggle a){background:#293e31;color:#e1eee7;border-color:#526b5b}
html[data-appearance=dark] :is(.interest-options a[aria-pressed=true],.filter-buttons a.active,.view-toggle a.active){background:#c6dec9;color:#14281b}
.host-methods{margin:18px 0;padding:16px;border:1px solid #bd8e36;border-radius:12px;background:#fbf0d2;color:#48310a}.host-methods h3{margin:0 0 12px}.host-method-card{display:grid;gap:6px;margin:10px 0;padding:14px;border:1px solid #be8a27;border-radius:10px;background:linear-gradient(120deg,#f7dfa1,#eabd50);color:#48310a;box-shadow:0 0 15px #eabd5080;animation:brand-gold-glow 2s ease-in-out infinite alternate}.host-method-card .method-priority{font-size:11px;text-transform:uppercase;letter-spacing:1px}.host-method-card strong{font-size:18px}.method-identifier{font-weight:700;font-size:16px;overflow-wrap:anywhere;user-select:all}.host-method-card button{justify-self:start;min-height:44px;padding:9px 12px;border-radius:8px}.host-method-note{font-size:12px;line-height:1.6;margin-bottom:0}html[data-appearance=dark] .host-methods{background:#44361c;color:#ffe0a1}html[data-appearance=dark] .host-method-card{background:linear-gradient(120deg,#f7dfa1,#eabd50);color:#48310a}@media(prefers-reduced-motion:reduce){.host-method-card{animation:none}}
