html[data-theme=light]{color-scheme:light}
.theme-toggle{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:90;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);box-shadow:0 3px 15px #00000016;padding:10px}
.theme-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
html[data-theme=dark]{color-scheme:dark;--cream:#171612;--paper:#211f1a;--ink:#f1e9dc;--muted:#c0b4a1;--gold:#c5a86e;--gold-light:#d8bf8f;--line:#484033}
html[data-theme=dark] body{background:var(--cream);color:var(--ink)}
html[data-theme=dark] :is(.site-header,.site-header.scrolled,.seo-header,.footer,.seo-footer,.market-strip,.product-card,.category-card,.panel-dialog,.detail-dialog,.detail-photo,.order-panel,.member-order,.commerce-card,.list-row,.catalog-sort select){background:var(--paper);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.brand-logo,.seo-header>a>img,.seo-footer>a>img){filter:invert(1) sepia(.15)}
html[data-theme=dark] :is(.product-heading,.product-heading h3,.category-card,.category-card>span,.about-section .about-lead,.market-heading h2,.product-price strong,.seo-page .product-price strong,.market-copy .rate-value,.rates-amount strong,.detail-spec strong,.detail-spec [data-price-for],.seo-price #seo-live-price,.dialog-heading h2,.list-title,.order-summary dd,.market-credit .market-all){color:var(--ink)}
html[data-theme=dark] :is(.product-subtitle,.product-stock,.product-price>span,.sample-note,.catalog-count,.catalog-sort,.market-copy>span,.rate-value small,.market-heading p,.market-credit,.market-credit>a,.market-connection,.market-all,.rates-row,.rates-note,.rates-attribution,.detail-description,.detail-note,.detail-spec>span,.about-section>p,.footer-main>p,.copyright,.seo-description,.seo-muted,.seo-specs dt,.seo-price p,.seo-crumbs,.order-note,.order-row p,.member-order p){color:var(--muted)}
html[data-theme=dark] :is(.service-strip,.seo-price,.gallery-track,.empty-state){background:#29251d;border-color:var(--line)}
html[data-theme=dark] :is(input,textarea,select){background:#191814;color:var(--ink);border-color:#62543e}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#b0a18a}
html[data-theme=dark] :is(.button-outline,.gallery-controls button,.order-quantity button,.seo-category-links a){background:transparent;color:var(--ink);border-color:#786747}
html[data-theme=dark] :is(.button-gold,.button-dark){background:#c5a86e;color:#191710;border-color:#c5a86e}
html[data-theme=dark] :is(.dialog-close,.detail-dialog .dialog-close,.icon-button,.filter){color:var(--ink)}
html[data-theme=dark] :is(.product-favorite,.gallery-enlarge::after){background:#211f1add;color:var(--ink)}
html[data-theme=dark] .filter.active{background:#4b402c;color:#f9e6bc}
html[data-theme=dark] :is(.rate-change[data-direction=up],.rates-connection[data-state=ready]){color:#8dcea5}
html[data-theme=dark] :is(.rate-change[data-direction=down],.order-error){color:#eea397}
html[data-theme=dark] .market-credit .market-all svg{color:var(--ink)}
html[data-theme=dark] :is(.gallery-thumbs button[aria-pressed=true],.gallery-track:focus-visible){border-color:var(--gold)}
html[data-theme=dark] :is(.footer,.seo-footer,.rates-row,.detail-spec,.catalog-toolbar,.market-credit,.market-item,.market-heading,.order-row){border-color:var(--line)}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}

html[data-theme=dark] :is(.text-link,.seo-footer nav a,.member-switch){color:var(--gold-light)}

html[data-theme=dark] .request-dialog textarea{background:#191814;color:#f1e9dc;border-color:#62543e;caret-color:#f1e9dc}
html[data-theme=dark] .request-dialog textarea.request-preview{background:#29251d!important;color:#f1e9dc}
html[data-theme=dark] .request-dialog textarea::placeholder{color:#c0b4a1;opacity:1}
html[data-theme=dark] :is(.guide-body,.guide-body strong,.field-label){color:var(--ink)}
html[data-theme=dark] :is(.field-label>span,.request-caption,.dialog-intro){color:var(--muted)}
html[data-theme=dark] .request-caption.success{color:#8dcea5}

/* Gold header for authenticated special members, in both themes. */
html[data-special-member=true] :is(.site-header,.site-header.scrolled,.seo-header){background:linear-gradient(110deg,#c7a254 0%,#ecd393 48%,#c5a052 100%);color:#292015;border-color:#a8833f;box-shadow:0 3px 18px #73521c24}
html[data-special-member=true] .site-header :is(.main-nav a,.icon-button,.member-nav-name){color:#292015}
html[data-special-member=true] .site-header .main-nav a.active{color:#292015;border-color:#79571f}
html[data-special-member=true] .site-header .icon-button:hover{background:#fff4d83d}
html[data-special-member=true] .site-header .brand-logo{filter:none}
html[data-special-member=true] .site-header .small-counter{background:#332714;color:#fff5d7}
html[data-special-member=true] .site-header :is(a,button):focus-visible{outline-color:#493312}
@media(max-width:850px){html[data-special-member=true] .site-header .main-nav{background:#e3c47f;border-color:#a8833f}}

html[data-special-member=true] .seo-header a{color:#292015}
html[data-special-member=true] .seo-header>a>img{filter:none}
