/* Persistent commerce theme: loaded before first paint on every commerce entry.
   Route classes control layout only; the theme is never removed on navigation. */
:root{color-scheme:dark;background:#0d151f;--commerce-bg:#0d151f;--commerce-surface:#172533;--commerce-raised:#213548;--commerce-ink:#f3f2ee;--commerce-muted:#b2c1cf;--commerce-line:#3b5063;--commerce-gold:#d8ba80}
body.sorvian-commerce-dark{--ink:var(--commerce-ink);--paper:var(--commerce-bg);--muted:var(--commerce-muted);--line:var(--commerce-line);--blue:var(--commerce-gold);--green:var(--commerce-gold);background:var(--commerce-bg);color:var(--commerce-ink);color-scheme:dark;min-height:100vh}
body.sorvian-commerce-dark :is(.shop-header,header:not(.dash-top),footer){background:#101e2c;color:var(--commerce-ink);border-color:var(--commerce-line)}
body.sorvian-commerce-dark :is(.wordmark,.brand){color:var(--commerce-ink)}
body.sorvian-commerce-dark :is(.wordmark span,.brand span,.muted,.meta,.help,.note,.fine-print,.revision,.subline,.eyebrow,footer p){color:var(--commerce-muted)}
body.sorvian-commerce-dark :is(.surface,.panel,.item,.empty,.auth,.auth-card,.record,.login,.login-card,.card,.row,.engagement-card,.map-paper,.map-list a,.ad-target-picker,.ad-slot-row,dialog){background:var(--commerce-surface);color:var(--commerce-ink);border-color:var(--commerce-line);box-shadow:none}
body.sorvian-commerce-dark :is(button,.button,.chip,.light-button){background:var(--commerce-raised);color:#eed8ad;border-color:#536478}
body.sorvian-commerce-dark :is(.primary,button.primary,.button.primary,.chip.active,button[aria-pressed=true]){background:var(--commerce-gold);border-color:var(--commerce-gold);color:#101d2b}
body.sorvian-commerce-dark :is(input,select,textarea){background:#101c29;color:var(--commerce-ink);border-color:#62788b;color-scheme:dark;accent-color:var(--commerce-gold)}
body.sorvian-commerce-dark :is(input,textarea)::placeholder{color:#a8bac9}
body.sorvian-commerce-dark :is(.badge,.tag,th,.dialog-head,.store-mark,.image-upload,.image-preview,.metric,.metrics>div){background:#213548;color:#e5d1ad;border-color:var(--commerce-line)}
body.sorvian-commerce-dark :is(.notice,.status-note,.engagement-message){background:#213548;color:#d0deea;border-color:#526a7d}
body.sorvian-commerce-dark :is(.engagement-card small,.engagement-meta small,.metric small,.metrics span,td,label,legend){color:var(--commerce-muted)}
body.sorvian-commerce-dark :is(.intro p,.surface p,.item p,.field small,.store-preview small){color:var(--commerce-muted)}
body.sorvian-commerce-dark :is(.price,.metrics strong){color:#ebcd97}
body.sorvian-commerce-dark :is(.card .cover,.detail .cover,.thumb,.item img,.image-field img){background:#090e14}
body.sorvian-commerce-dark .cover .placeholder{color:#a9becf}
body.sorvian-commerce-dark :is(.mcd-menu .card,.mcd-menu .notice){background:var(--commerce-surface);color:var(--commerce-ink);border-color:var(--commerce-line)}
body.sorvian-commerce-dark .map-paper svg>rect{fill:#101c29}
body.sorvian-commerce-dark .map-paper svg>path{stroke:#2e455b}
body.sorvian-commerce-dark .map-paper a rect{fill:#28475e;stroke:#6e91aa}
body.sorvian-commerce-dark .map-paper a:hover rect{fill:#46687f}
body.sorvian-commerce-dark .map-paper a:focus rect{stroke:var(--commerce-gold)}
body.sorvian-commerce-dark .map-paper text{fill:#f1f3f5}
body.sorvian-commerce-dark :is(.error,[role=alert]){color:#ffb0a9!important}
body.sorvian-commerce-dark :is(.success,.ok){color:#b3dec7}
body.sorvian-commerce-dark :is(.skip,#notice,#shop-notice:not(:empty)){background:#213548;color:#f3e0ba;border-color:#61778a}
body.sorvian-commerce-dark dialog::backdrop{background:#030c17c7}
body.sorvian-commerce-dark :focus-visible{outline:2px solid #edc783;outline-offset:3px}
body.sorvian-commerce-dark :is(.dash-shell,.dash-body){--dash-ink:var(--commerce-ink);--dash-muted:var(--commerce-muted);--dash-border:var(--commerce-line);color:var(--commerce-ink)}
body.sorvian-commerce-dark :is(.dash-stat,.dash-panel,.dash-product){background:var(--commerce-surface);color:var(--commerce-ink);border-color:var(--commerce-line);box-shadow:none}
body.sorvian-commerce-dark .dash-shell :is(button,.button){background:var(--commerce-raised);color:#eed8ad;border-color:#536478}
body.sorvian-commerce-dark .dash-shell :is(button.primary,.button.primary){background:var(--commerce-gold);color:#101d2b;border-color:var(--commerce-gold)}
body.sorvian-commerce-dark .dash-shell :is(input,select,textarea){background:#101c29;color:var(--commerce-ink);border-color:#62788b}
body.sorvian-commerce-dark :is(.dash-avatar,.dash-item-icon,.dash-product-image,.dash-chip,.dash-chip.closed,.dash-task b){background:#213548;color:#e5d1ad;border-color:var(--commerce-line)}
body.sorvian-commerce-dark :is(.dash-nav .active,.dash-nav a:hover){background:#253d51;color:#efd5a3}
body.sorvian-commerce-dark .dash-banner{background:linear-gradient(115deg,#263d50,#172533);border-color:#526476}
body.sorvian-commerce-dark .dash-alert{background:#332c21;color:#efd5a0;border-color:#79613d}
body.sorvian-commerce-dark .dash-lease{border-color:var(--commerce-line)}
body.sorvian-commerce-dark .dash-lease dd{color:var(--commerce-ink)}
body.sorvian-commerce-dark .store-preview small{background:#172533}
body.sorvian-commerce-dark .shop-header{border-top:3px solid #b79b68;padding:18px clamp(20px,4vw,64px);gap:18px}
body.sorvian-commerce-dark .wordmark{font-size:25px;letter-spacing:.15em}
body.sorvian-commerce-dark .wordmark span{font-size:8px;letter-spacing:.17em}
body.sorvian-commerce-dark #shop-nav{gap:2px;justify-content:flex-end}
body.sorvian-commerce-dark #shop-nav a{font-size:13px;padding:10px 11px;border-radius:5px;color:#c4ced8}
body.sorvian-commerce-dark #shop-nav a:hover{background:#223448;color:#fff}
@media(max-width:700px){body.sorvian-commerce-dark .shop-header{padding:14px 20px}body.sorvian-commerce-dark .wordmark{font-size:21px}body.sorvian-commerce-dark #shop-nav{order:3;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;flex-basis:100%;scrollbar-width:thin}body.sorvian-commerce-dark #shop-nav a{white-space:nowrap;min-height:36px;padding:8px 10px;font-size:12px}}
/* Quick Explore shares commerce dialogs, without changing its canvas or HUD. */
body.sorvian-quick-dark{color-scheme:dark;background:#0d151f}
.sorvian-quick-dark dialog{background:#172533;color:#f3f2ee;border-color:#3b5063}
.sorvian-quick-dark dialog :is(p,small,.eyebrow){color:#b2c1cf}
.sorvian-quick-dark dialog :is(button,a.button){background:#213548;color:#eed8ad;border-color:#536478}
.sorvian-quick-dark dialog .product{background:#213548;border-color:#3b5063;color:#f3f2ee}
.sorvian-quick-dark dialog .product img{background:#090e14}
.sorvian-quick-dark dialog .product strong{color:#ebcd97}
.sorvian-quick-dark dialog .store-row{border-color:#3b5063}
