/* Shared light/dark appearance. Photos and category illustrations retain their colours. */
:root { color-scheme:light; --theme-page:#fff; --theme-surface:#fff; --theme-raised:#f3f6f9; --theme-text:#26394b; --theme-border:#dce5ed; }
html[data-theme="dark"] {
  color-scheme:dark;
  --theme-page:#111923; --theme-surface:#18232f; --theme-raised:#213040;
  --theme-text:#e6edf5; --theme-border:#344557;
  --ink:#e6edf5; --muted:#a8b7c7; --line:#2d3d4d; --soft:#203043; --cream:#1c2937;
  --storefront-page:#111923; --storefront-accent-soft:#1b3549; --storefront-accent-ink:#85cfff;
  --blue:#85cfff; --pale:#1b3549;
  --club-ink:#e6edf5; --club-muted:#a8b7c7; --club-accent:#77cfb1;
}
.theme-toggle {
  position:relative; display:inline-grid; place-items:center; flex:0 0 auto;
  width:40px; height:40px; min-height:40px; padding:0; border:1px solid #dce5ed;
  border-radius:50%; background:#f4f7fa; color:#38536b; cursor:pointer;
  vertical-align:middle; overflow:hidden; -webkit-tap-highlight-color:transparent;
}
.theme-toggle:hover { background:#e8f1f8; border-color:#aac9df; }
.theme-toggle:focus-visible { outline:3px solid #168bc8; outline-offset:3px; }
.theme-toggle svg {
  position:absolute; left:50%; top:50%; width:20px; height:20px;
  margin:0; transform:translate(-50%,-50%); pointer-events:none;
}
.theme-toggle .theme-sun { display:none; }
.theme-toggle .theme-moon { display:block; }
html[data-theme="dark"] .theme-toggle { background:#243548; border-color:#3b5268; color:#f2cc84; }
html[data-theme="dark"] .theme-toggle:hover { background:#2d445b; border-color:#6a8ba7; }
html[data-theme="dark"] .theme-toggle .theme-sun { display:block; }
html[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
.toplinks .theme-toggle { margin-inline:6px; }
.info-header .theme-toggle { order:0; }
.social-document > .theme-toggle { float:right; margin-left:12px; }
/* The desktop utility bar is dark in both themes; match its profile control. */
@media(min-width:651px) {
  .market-header .toplinks .theme-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:32px; min-height:32px; margin:0; padding:0;
    border:1px solid #ffffff26; border-radius:10px;
    background:#ffffff08; color:#e1e9f0; box-shadow:none;
  }
  .market-header .toplinks .theme-toggle svg { width:18px; height:18px; }
  .market-header .toplinks .theme-toggle:hover {
    background:#ffffff14; border-color:#ffffff47; color:#fff;
  }
  .market-header .toplinks .theme-toggle:active { background:#ffffff1f; }
  .market-header .toplinks .theme-toggle:focus-visible {
    outline:2px solid #85cfff; outline-offset:2px;
  }
  html[data-theme="dark"] .market-header .toplinks .theme-toggle {
    background:#ffffff08; border-color:#ffffff26; color:#e1e9f0;
  }
  html[data-theme="dark"] .market-header .toplinks .theme-toggle:hover {
    background:#ffffff14; border-color:#ffffff47; color:#fff;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .theme-toggle { transition:background-color .16s,border-color .16s; }
}
@media(max-width:650px) {
  /* A compact desktop-style face inside the existing mobile touch target. */
  .market-header .toplinks .theme-toggle {
    width:40px; height:44px; min-height:44px; margin:0; padding:0;
    border:0; border-radius:10px; background:transparent; color:#38536b; box-shadow:none;
  }
  .market-header .toplinks .theme-toggle::before {
    content:""; position:absolute; inset:6px 3px; pointer-events:none;
    border:1px solid #dce5ed; border-radius:10px; background:#f3f6f9;
  }
  .market-header .toplinks .theme-toggle svg { width:18px; height:18px; z-index:1; }
  .market-header .toplinks .theme-toggle:hover,
  .market-header .toplinks .theme-toggle:active { background:transparent; box-shadow:none; }
  .market-header .toplinks .theme-toggle:hover::before { background:#e8f1f8; border-color:#aac9df; }
  .market-header .toplinks .theme-toggle:focus-visible { outline:2px solid #168bc8; outline-offset:0; }
  html[data-theme="dark"] .market-header .toplinks .theme-toggle,
  html[data-theme="dark"] .market-header .toplinks .theme-toggle:hover,
  html[data-theme="dark"] .market-header .toplinks .theme-toggle:active {
    background:transparent; color:#e1e9f0; box-shadow:none;
  }
  html[data-theme="dark"] .market-header .toplinks .theme-toggle::before {
    background:#ffffff08; border-color:#ffffff26;
  }
  html[data-theme="dark"] .market-header .toplinks .theme-toggle:hover::before {
    background:#ffffff14; border-color:#ffffff47;
  }
  html[data-theme="dark"] .market-header .toplinks .theme-toggle:focus-visible { outline-color:#85cfff; }
  .info-header .languages { margin-left:0; }
}
@media(max-width:370px) {
  .market-header .toplinks .theme-toggle { width:36px; }
  .market-header .toplinks .theme-toggle::before { inset-inline:2px; }
  .info-header { gap:8px; }
  .info-header img { width:98px; }
  .info-header .languages { gap:0; }
  .info-header .languages a { padding-inline:8px; }
  .info-header .theme-toggle { width:36px; height:40px; }
}
/* Shell and shared controls. Specificity keeps existing responsive geometry intact. */
html[data-theme="dark"], html[data-theme="dark"] body { background:var(--theme-page); color:var(--ink); }
html[data-theme="dark"] :is(.header,.market-header .topline,.modal,.storage-banner,.storage-panel,.info-card,.social-document,.card) {
  background:var(--theme-surface); color:var(--ink); border-color:var(--line);
}
html[data-theme="dark"] .market-header .topline > span { color:var(--muted); }
html[data-theme="dark"] .market-header .toplinks :is(a,button):not(.theme-toggle),
html[data-theme="dark"] :is(.text-button,.all-link,.location-control,.favorites-link,.catalog-links>button) { color:var(--muted); }
html[data-theme="dark"] .market-header :is(.profile-button,.favorites-link,.header-post) { color:var(--ink); }
html[data-theme="dark"] .market-header .profile-button { background:var(--theme-raised); border-color:var(--line); }
html[data-theme="dark"] img[src="ollo/brand/ollo-logo.svg"] { content:url("ollo/brand/ollo-logo-dark.svg"); }
html[data-theme="dark"] :is(.brand-name,.footer-brand .brand-name) { color:var(--ink); }
html[data-theme="dark"] :is(.search,.market-header .search,#marketCatalogue.market-catalogue-button,.cx-search) {
  background:#121d29; border-color:var(--theme-border); color:var(--ink);
}
html[data-theme="dark"] .market-header .search input::placeholder { color:var(--muted); }
html[data-theme="dark"] :is(.search-icon,.market-header .search-icon) { color:#a5b9ce; }
html[data-theme="dark"] :is(input,select,textarea) { color:var(--ink); accent-color:#79c7f3; }
html[data-theme="dark"] :is(.form-field input,.form-field select,.form-field textarea,.auth-form input,.message-form textarea,.cms-link select,.cms-import-export>select,.cms-search select,.social-document input,.info-main input,.info-main select,.info-main textarea) {
  background:#111e2b; border-color:#42576b; color:var(--ink);
}
html[data-theme="dark"] :is(input,textarea)::placeholder { color:#98aabd; opacity:1; }
html[data-theme="dark"] :is(input,select,textarea):focus { border-color:#78c7f3; }
html[data-theme="dark"] option { background:#18232f; color:#e6edf5; }
html[data-theme="dark"] :is(.sort-button,.filter-control,.filter-chip,.outline-button,.load-more,.icon-button,.account-actions>button,.inbox-row,.category-result,.social-provider,.storage-buttons button,.storage-actions button) {
  background:var(--theme-raised); color:var(--ink); border-color:var(--theme-border);
}
html[data-theme="dark"] :is(.outline-button,.social-provider,.category-result,.inbox-row):hover { background:#2a3c4f; border-color:#6085a4; }
html[data-theme="dark"] :is(.modal-close,.auth-tabs,.catalog-wizard-steps,.wizard-optional,.wizard-ai,.wizard-review,.wizard-photo-upload,.cms-site,#cmsRecords,.cms-connection) {
  background:var(--theme-raised); color:var(--muted); border-color:var(--line);
}
html[data-theme="dark"] :is(.auth-tabs button.active,.cms-link,.cms-publish-bar,.admin-field-details,.admin-switch) { background:var(--theme-surface); color:var(--ink); border-color:var(--theme-border); }
html[data-theme="dark"] :is(.form-field label,.modal p,.modal .form-hint,.form-hint,.form-field small,.catalog-wizard-note,.catalog-description,.social-note,.social-divider,.social-check,.storage-panel p,.storage-banner p,.storage-footer span) { color:var(--muted); }
html[data-theme="dark"] :is(.modal h2,.modal h3,.detail-price,.listing-title,.catalog-head,.catalog-details dd,.cms-record b,.wizard-photo-upload b,.cms-site>summary,.wizard-optional>summary,.wizard-ai>summary) { color:var(--ink); }
html[data-theme="dark"] .wizard-lead { color:var(--ink)!important; }
html[data-theme="dark"] :is(.modal-backdrop,.storage-shade) { background:#050a11b8; }
html[data-theme="dark"] :is(.modal,.storage-panel,.storage-banner) { box-shadow:0 20px 70px #0006; }
html[data-theme="dark"] .social-divider::before,
html[data-theme="dark"] .social-divider::after { background:var(--line); }
html[data-theme="dark"] :is(.social-note a,.social-check a,.storage-banner a,.storage-footer button,.meta button) { color:#85cfff; }
/* Browse surfaces and listing details. Image treatments are deliberately untouched. */
html[data-theme="dark"] :is(.market-controls,.market-side:not([hidden]),.catalog-details,.catalog-gallery,.catalog-stats>div,.catalog-table th,.thread-message,.market-home .empty-state:not(.hidden)) { background:var(--theme-surface); border-color:var(--line); }
html[data-theme="dark"] :is(.listing-card,.market-home .listing-card,.listing-grid.list-view,.catalog-section,.catalog-my-ad,.market-side-list button) { background:var(--theme-surface); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.listing-image,.market-home .listing-image,.detail-image,.listing-placeholder,.market-home .listing-placeholder,.empty-state>span) { background:#223246; color:#acbed0; }
html[data-theme="dark"] .market-home .listing-title { color:var(--ink); }
html[data-theme="dark"] :is(.listing-meta,.market-home .listing-meta,.catalog-compare-check,.market-home .catalog-compare-check,.catalog-details dt,.detail-location) { color:var(--muted); }
html[data-theme="dark"] :is(.listing-meta,.catalog-details>div,.catalog-table td,.catalog-table th,.catalog-wizard-actions,.auth-tabs,.social-method) { border-color:var(--line); }
html[data-theme="dark"] .legal-accept a { color:#85cfff; }
html[data-theme="dark"] .form-error { color:#ffb6ba; }
html[data-theme="dark"] :is(.market-facts span,.ui-filter-token,.ui-filter-count,.market-category-art) { background:var(--soft); color:#b8cde2; }
html[data-theme="dark"] .market-home .favorite-button { background:#182738ed; color:#d5e3f1; border-color:#485e74; }
html[data-theme="dark"] .market-home .favorite-button.saved { color:#ffa6c8; }
html[data-theme="dark"] .listing-badge { background:#172738ec; color:#b7e9d2; }
html[data-theme="dark"] .market-home .compare-toggle { background:var(--theme-surface); color:var(--muted); border-color:var(--line); }
html[data-theme="dark"] :is(.market-home .filter-row button,.market-home .sort-button,button[id="marketMore"],.market-quick-filters button),
html[data-theme="dark"] #marketViews { background:var(--theme-raised); color:#c1d0df; border-color:var(--line); }
html[data-theme="dark"] #marketViews button { color:var(--muted); }
html[data-theme="dark"] #marketViews [aria-pressed="true"] { background:#354b63; color:#e4f3ff; }
html[data-theme="dark"] #marketResults #marketViews button { background:transparent; color:#a8b7c7; }
html[data-theme="dark"] #marketResults #marketViews button[aria-pressed="true"] { background:#29445c; color:#c8eaff; }
html[data-theme="dark"] .market-home .listing-grid .listing-price { color:var(--ink)!important; }
html[data-theme="dark"] .cx-enabled .market-home .market-facts span { color:var(--muted); }
html[data-theme="dark"] .cx-enabled .market-home .market-facts .market-steering { color:var(--cx-accent); }
html[data-theme="dark"] .catalog-preview-banner { color:#b7c5d2; }
html[data-theme="dark"] :is(.market-toolbar #ocListingTools,#ocListingTools :is(button,a),.catalog-child-grid>button,.catalog-thumbs button,.catalog-photo button) { background:var(--theme-surface); color:var(--ink); border-color:var(--theme-border); }
html[data-theme="dark"] :is(.browse-sheet-list button:hover,.browse-children>button:hover,.catalog-child-grid>button:hover,.market-side-list button:hover) { background:var(--theme-raised); }
html[data-theme="dark"] .browse-path button,
html[data-theme="dark"] .browse-expand>span:first-child { color:var(--muted); }
html[data-theme="dark"] .thread-message.mine { background:#1c3a39; border-color:#315a52; }
html[data-theme="dark"] :is(.seller-banner,.info-hero) { background:linear-gradient(120deg,#1b3047,#223248); border-color:#354b63; color:#edf5ff; }
html[data-theme="dark"] .hero-link { background:#d5eaff; color:#17334e; }
html[data-theme="dark"] :is(.seller-banner p,.seller-banner .kicker,.trust-row small) { color:var(--muted); }
html[data-theme="dark"] :is(.seller-graphic,.trust-icon) { background:#26394c; color:#9dceee; }
/* Category colours stay recognisable on quiet, tinted surfaces. */
html[data-theme="dark"] .cx-enabled { --cx-accent:#7dcaf7; --cx-soft:#1c364a; --cx-ink:#b8e3ff; background:var(--theme-page); }
html[data-theme="dark"] .cx-enabled[data-cx="property"] { --cx-accent:#83d4b8; --cx-soft:#1b3934; --cx-ink:#b0e5d3; }
html[data-theme="dark"] .cx-enabled[data-cx="electronics"] { --cx-accent:#c4aff5; --cx-soft:#302a47; --cx-ink:#e1d4ff; }
html[data-theme="dark"] .cx-enabled #marketCategories .cx-home-category { background:#1b2b3c; border-color:#2b4054; color:#e0eaf4; }
html[data-theme="dark"] .cx-enabled #marketCategories [data-cx-color="real-estate"] { background:#1b302e; border-color:#2a4942; }
html[data-theme="dark"] .cx-enabled #marketCategories [data-cx-color="electronics"] { background:#2a263b; border-color:#403750; }
html[data-theme="dark"] .cx-enabled #marketCategories [data-cx-color="transport"] { background:#192f43; border-color:#29455e; }
html[data-theme="dark"] .cx-enabled #marketCategories .cx-home-category:hover { background:#2a4054; border-color:#6d9dc3; }
html[data-theme="dark"] .cx-enabled #marketCategories .cx-home-all { background:#223448; }
html[data-theme="dark"] .cx-home-all .cx-home-art svg { color:#afd7f2; }
html[data-theme="dark"] :is(.cx-primary,.cx-branches button,.cx-extras button,.cx-choice-grid button,.cx-presets button,.cx-directory-row,.cx-actions,.cx-picker-heading>button) { background:var(--theme-surface); border-color:var(--theme-border); color:#d2dfec; }
html[data-theme="dark"] :is(.cx-field,.cx-filter-section,.cx-actions) { border-color:var(--line); }
html[data-theme="dark"] :is(.cx-field strong,.cx-directory-row>button,.cx-filter-section>summary,.cx-catalog .category-result) { color:var(--ink); }
html[data-theme="dark"] :is(.cx-field small,.cx-field,.cx-path button,.cx-path button:first-child,.cx-form-context,.cx-directory-row small,.cx-catalog .category-result small,.cx-rhd-note,.cx-prompt,.cx-enabled #browseStatus,.cx-actions>button:not(.primary-button),.cx-modal .form-field label) { color:var(--muted); }
html[data-theme="dark"] :is(.cx-field:hover,.cx-directory-row>button:hover,.cx-choice-grid button:hover,.cx-presets button:hover) { background:var(--theme-raised); }
html[data-theme="dark"] .cx-directory-row>button:last-child:not(:first-child) { border-color:var(--line); color:var(--muted); }
html[data-theme="dark"] .cx-modal .form-field :is(input,select) { background:#111e2b; color:var(--ink); border-color:#42576b; }
html[data-theme="dark"] .cx-enabled.browse-category .market-controls { background:var(--theme-page); border-color:var(--line); }
html[data-theme="dark"] .cx-enabled.browse-category .market-controls #moreFilters { background:var(--theme-raised); border-color:var(--theme-border); color:var(--ink); }
html[data-theme="dark"] :is(.cx-token,.cx-picker-any,.cx-branches button[aria-pressed="true"],.cx-extras .is-set,.cx-presets button.is-set,.cx-choice-grid button[aria-pressed="true"]) { background:var(--cx-soft); border-color:var(--cx-accent); color:var(--cx-ink); }
html[data-theme="dark"] .cx-clear { background:transparent; border-color:transparent; color:var(--muted); }
html[data-theme="dark"] .cx-deals { background:#172e2a; border-color:#35564d; }
html[data-theme="dark"] .cx-deals button { color:#b7d7cb; }
html[data-theme="dark"] .cx-deals button[aria-pressed="true"] { background:#2e5147; color:#d4faeb; }
html[data-theme="dark"] .cx-enabled .market-home .listing-grid.list-view .listing-card { background:transparent; }
html[data-theme="dark"] .cx-enabled .market-home .listing-grid.list-view .listing-price { color:var(--ink); }
/* Account tools, comparisons, requests and optional seller features. */
html[data-theme="dark"] :is(.notification-row,.favorite-price-card,.favorite-price-item,.want-row,.want-seller-match,.club-answers button,.matches-card button) { background:var(--theme-surface); color:var(--ink); border-color:var(--theme-border); }
html[data-theme="dark"] :is(.notification-icon,.notification-count,.want-icon,.want-tabs,.want-intro,.want-empty,.want-detail,.want-reply,.want-seller-stock,.want-metrics div,.club-tabs,.club-stats>div,.club-quiz-intro,.club-reward-card,.club-empty,.club-answers button span,.club-score,.club-deck-image,.part-scan,.matches-empty,.matches-placeholder,.quick-steps li,.admin-section) { background:var(--theme-raised); color:var(--muted); border-color:var(--line); }
html[data-theme="dark"] :is(.want-panel,.want-tabs button,.want-metrics dd,.compare-table :is(th,td),.club-question-top) { color:var(--ink); }
html[data-theme="dark"] :is(.want-intro p,.want-empty p,.want-help,.want-row-main small,.want-seller-stock small,.want-metrics dt,.matches-card-copy small,.admin-switch small) { color:var(--muted); }
html[data-theme="dark"] :is(.want-kicker,.want-row-tail,.want-tags span,.want-tags code,.want-badge,#wantStart,.matches-card-copy b,.compare-toolbar .text-button,.compare-table tbody tr:first-child td) { color:#a7d6f7; }
html[data-theme="dark"] :is(.want-tags span,.want-tags code,.want-badge,#wantStart,.club-invite,.club-heading-icon,.club-invite-icon,.club-tags span,.club-listing-badge,.club-secondary) { background:#1c373e; border-color:#3c5a62; }
html[data-theme="dark"] :is(.club-kicker,.club-listing-badge,.club-heading-icon,.club-invite-icon) { color:#a8e2cd; }
html[data-theme="dark"] .club-primary { background:#226850; color:#fff; }
html[data-theme="dark"] :is(.club-tabs [aria-current=page],.club-answers button[aria-pressed=true],.club-review-mark.correct,.stock-create,.stock-restore) { background:#204538; color:#b0e6c7; border-color:#578471; }
html[data-theme="dark"] :is(.want-tabs button[aria-current="page"],.stock-update,.admin-nav [aria-current="page"]) { background:#233e56; color:#c2e5ff; border-color:#5e87ab; }
html[data-theme="dark"] :is(.stock-archive,.compare-notice,.club-review-mark,.catalog-status.pending,.draft-notice,.draft-chip,.notice) { background:#3c3020; color:#f1d6a5; border-color:#78613b; }
html[data-theme="dark"] :is(.stock-issues,.catalog-error,#listingError,.catalog-status.rejected) { background:#3d272d; color:#ffc2c6; border-color:#79505b; }
html[data-theme="dark"] :is(.favorite-price-values b,.error,#wizardAiError) { color:#ffb6ba; }
html[data-theme="dark"] :is(.catalog-status,.social-method span,.stock-complete,.admin-save [role="status"]) { color:#a2e2bf; }
html[data-theme="dark"] :is(.catalog-status,.notification-count.has-new,.quick-steps li[aria-current],.matches-count) { background:#234138; color:#c0e8d6; }
html[data-theme="dark"] :is(.compare-table thead th,.compare-remove) { background:var(--theme-surface); color:var(--ink); }
html[data-theme="dark"] :is(.compare-table .compare-spacer,.compare-table tbody th,.compare-photo) { background:var(--theme-raised); color:#c4d4e4; }
html[data-theme="dark"] .stock-steps [aria-current=step] span { background:#315c7a; color:#fff; border-color:#679ac2; }
/* Information centre and support forms share the same appearance as the market. */
html[data-theme="dark"] :is(.info-header,.info-footer,.info-card,article section,.toc,.social-document) { border-color:var(--line); }
html[data-theme="dark"] :is(.languages,.toc,.operator) { background:var(--theme-surface); }
html[data-theme="dark"] .languages a[aria-current] { background:#2a4259; color:#c5e7ff; }
html[data-theme="dark"] .info-card:hover { border-color:#608daf; box-shadow:0 5px 20px #0002; }
html[data-theme="dark"] .info-card .card-top,
html[data-theme="dark"] .social-document a { color:#85cfff; }
html[data-theme="dark"] .info-hero .eyebrow { color:#8bd5ff; }
html[data-theme="dark"] .info-main .primary { background:#166ca1; color:white; }
html[data-theme="dark"] body[data-theme-page] :is(.brand,.back,h1,h2) { color:var(--ink); }
html[data-theme="dark"] body[data-theme-page] :is(.intro,.card p,.overview span,.explanation p,small,footer) { color:var(--muted); }
html[data-theme="dark"] body[data-theme-page] :is(.overview,.private-label,.badge,.icon) { background:var(--theme-raised); color:var(--muted); border-color:var(--line); }
html[data-theme="dark"] body[data-theme-page] input { background:#111e2b; color:var(--ink); border-color:#42576b; }
@media(max-width:650px) {
  html[data-theme="dark"] .market-header .topline { background:transparent; }
  html[data-theme="dark"] .market-header .favorites-link,
  html[data-theme="dark"] .market-header .profile-button,
  html[data-theme="dark"] .market-header .header-post { background:transparent; }
  html[data-theme="dark"] .market-facts span { background:none; color:var(--muted); }
}
/* Browsing layout uses open surfaces: keep dark fills inside actual cards.
   Container fills otherwise reveal square corners behind rounded thumbnails. */
html[data-theme="dark"] .cx-enabled .market-home .market-controls,
html[data-theme="dark"] .cx-enabled .market-home .listing-grid,
html[data-theme="dark"] .cx-enabled .market-home .listing-card {
  background:transparent;
}
html[data-theme="dark"] .cx-enabled .market-home .market-controls {
  border-radius:0; box-shadow:none;
}
html[data-theme="dark"] .cx-enabled .market-home .listing-grid.list-view .listing-card {
  border:0; border-bottom:1px solid var(--line); border-radius:0;
}
html[data-theme="dark"] .cx-enabled .market-home .listing-image {
  background:#203043; isolation:isolate;
}
html[data-theme="dark"] .cx-enabled .market-home .listing-placeholder {
  background:transparent; color:#b8c9da;
}
html[data-theme="dark"] .market-home :is(.filter-row button,.sort-button,#marketMore),
html[data-theme="dark"] #marketResults #marketViews button {
  box-shadow:none;
}
html[data-theme="dark"] #marketMore {
  background:var(--theme-raised); border-color:var(--line); color:#c1d0df; box-shadow:none;
}
html[data-theme="dark"] #marketMore:hover { background:#2a3c4f; color:var(--ink); }
html[data-theme="dark"] .market-home .filter-row button[aria-pressed="true"] {
  background:#1b3b50; border-color:#65b6e4; color:#caedff;
}
html[data-theme="dark"] :is(.form-field input,.form-field select,.form-field textarea):focus {
  box-shadow:0 0 0 3px #78c7f326;
}
html[data-theme="dark"] .cx-modal {
  border:1px solid var(--theme-border); background:var(--theme-surface);
  scrollbar-color:#47596c var(--theme-surface);
}
html[data-theme="dark"] .cx-modal #modalContent { scrollbar-color:#47596c var(--theme-surface); }
html[data-theme="dark"] .cx-modal .cx-actions {
  background:var(--theme-surface); border-color:var(--line);
}
html[data-theme="dark"] .cx-modal .cx-actions>.primary-button {
  background:#087db5; color:#fff;
}
html[data-theme="dark"] .cx-modal .cx-actions>.primary-button:hover { background:#098bc8; }
@media(max-width:650px) {
  html[data-theme="dark"] .cx-enabled.browse-category .market-home .market-controls {
    background:var(--theme-page); border-bottom-color:var(--line);
  }
  html[data-theme="dark"] .cx-enabled[data-cx="property"] .market-home .listing-grid.list-view .listing-card {
    background:var(--theme-surface); border:1px solid var(--line); border-radius:12px;
  }
  html[data-theme="dark"] .modal.cx-modal { border-bottom:0; }
}

@media print {
  .theme-toggle { display:none!important; }
  html[data-theme="dark"],html[data-theme="dark"] body { color-scheme:light; background:#fff!important; color:#000!important; --ink:#000; --muted:#444; --line:#bbb; --blue:#000; --pale:#fff; --theme-page:#fff; --theme-surface:#fff; }
  html[data-theme="dark"] .operator { background:#fff; color:#000; }
}
