/* The marketplace uses the same two self-hosted faces and artwork as the Signal home. */
html[data-tovo-surface] {
  --mk-canvas:#f3f3ed; --mk-paper:#fff; --mk-ink:#1c2429; --mk-muted:#505c61;
  --mk-rule:#c6cdc8; --mk-soft:#e9ece5; --mk-tint:#e7edce; --mk-link:#394e29;
  --mk-dark:#151a21; --mk-lime:#e2f876;
  --mk-font:"Tovo Signal Sans", Arial, sans-serif;
  --mk-display:"Tovo Signal Condensed", "Arial Narrow", Impact, sans-serif;
}
html[data-tovo-surface][data-theme="dark"] {
  --mk-canvas:#151a21; --mk-paper:#20262e; --mk-ink:#f6f8f6; --mk-muted:#bdc5ce;
  --mk-rule:#434b55; --mk-soft:#2a313a; --mk-tint:#303b2d; --mk-link:#e2f876;
}
html[data-tovo-surface] body {
  --theme-page:var(--mk-canvas); --theme-surface:var(--mk-paper); --theme-raised:var(--mk-soft);
  --theme-text:var(--mk-ink); --theme-border:var(--mk-rule); --ink:var(--mk-ink);
  --muted:var(--mk-muted); --line:var(--mk-rule); --cream:var(--mk-canvas); --soft:var(--mk-soft);
  --storefront-page:var(--mk-canvas); --storefront-accent-ink:var(--mk-link); --storefront-accent-soft:var(--mk-tint);
  --blue:var(--mk-link); --pale:var(--mk-tint);
  font-family:var(--mk-font); color:var(--mk-ink);
}
html[data-tovo-surface]:not(.tovo-signal-active) body,
html[data-tovo-surface]:not(.tovo-signal-active) body > main:not(#peopleRoot) { background:var(--mk-canvas) !important; }
html[data-tovo-surface] body > header.market-header,
html[data-tovo-surface] body > header.market-header .topline {
  background:var(--mk-dark) !important; color:white !important; border-color:#3a414b !important; box-shadow:none !important;
}
html[data-tovo-surface] body > header.market-header :is(.profile-button,.favorites-link,.text-button,.toplinks a,.theme-toggle) {
  color:#f2f5f1 !important; background:transparent !important; border-color:#454c55 !important; box-shadow:none !important;
}
html[data-tovo-surface] body > header.market-header .brand-lockup,
html[data-tovo-surface] body > footer .brand-lockup { content:url('/ollo/brand/tovo-magpie-dark.svg') !important; }
html[data-tovo-surface] body > header.market-header #openPost,
html[data-tovo-surface] :is(#inlineFilters #ccForm .cc-find,#modalContent .primary-button,#emptyState .primary-button,body.account-workspace-mode .primary-button,#peopleRoot .p-primary,.people-dialog .p-primary) {
  border:1px solid #dff078 !important; background:#dff078 !important; color:#171c20 !important; min-height:44px; border-radius:8px !important; font-family:var(--mk-font); font-weight:750; box-shadow:none !important;
}
html[data-tovo-surface] button:disabled { cursor:not-allowed; }
html[data-tovo-surface] body > header.market-header #searchForm {
  background:white !important; color:#141b24 !important; color-scheme:light; border:0 !important; border-radius:1px !important;
  height:53px !important; min-height:53px !important; gap:6px; padding:4px 5px 4px 13px !important; box-shadow:none !important;
}
html[data-tovo-surface] body > header.market-header #searchInput {
  font:400 16px/1.4 var(--mk-font); color:#141b24 !important; background:transparent !important;
  caret-color:#141b24; border:0; border-radius:0; box-shadow:none; min-width:0;
}
html[data-tovo-surface] body > header.market-header #searchInput::placeholder { color:#4c5764 !important; opacity:1; }
html[data-tovo-surface] body > header.market-header #searchForm .search-icon { display:grid !important; place-items:center; width:20px; flex:0 0 20px; color:#4c5764 !important; }
html[data-tovo-surface] body > header.market-header #searchForm button[type=submit] {
  display:grid; place-items:center; flex:0 0 44px; width:44px !important; min-width:44px !important; max-width:44px !important;
  height:44px !important; min-height:44px !important; margin:0; padding:0; border:0 !important; border-radius:0 !important;
  font-size:0 !important; background:#283326 !important; color:#e8fb8a !important;
}
html[data-tovo-surface] body > header.market-header #searchForm button[type=submit]::before { display:none !important; content:none !important; }
html[data-tovo-surface] body > header.market-header #searchForm button[type=submit]::after {
  content:''; display:block; width:18px; height:18px; place-self:center; background:currentColor;
  mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E");
}
html[data-tovo-surface] body > header.market-header #marketCatalogue { background:#293129 !important; border-color:#59634d !important; color:#e9f5ad !important; border-radius:8px; }
html[data-tovo-surface] body > header.market-header ::selection { background:#dff078; color:#151a21; }

/* Carry the chosen home card’s photo and colour into its native category directory. */
#tovoDirectory:is([data-signal-category="transport"],:not([data-signal-category]):has([data-tovo-subcategory^="transport/"])) { --mk-cover:url('/tovo-signal/images/01.webp'); --mk-category-tone:#cdd994; }
#tovoDirectory:is([data-signal-category="real-estate"],:not([data-signal-category]):has([data-tovo-subcategory^="real-estate/"])) { --mk-cover:url('/tovo-signal/images/02.webp'); --mk-category-tone:#91b9d0; }
#tovoDirectory:is([data-signal-category="electronics"],:not([data-signal-category]):has([data-tovo-subcategory^="electronics/"])) { --mk-cover:url('/tovo-signal/images/03.webp'); --mk-category-tone:#ee9d6a; }
#tovoDirectory:is([data-signal-category="home-stuff"],:not([data-signal-category]):has([data-tovo-subcategory^="home-stuff/"])) { --mk-cover:url('/tovo-signal/images/04.webp'); --mk-category-tone:#b7afd1; }
#tovoDirectory:is([data-signal-category="work"],:not([data-signal-category]):has([data-tovo-subcategory^="work/"])) { --mk-cover:url('/tovo-signal/images/05.webp'); --mk-category-tone:#d3bc95; }
#tovoDirectory:is([data-signal-category="clothes-footwear"],:not([data-signal-category]):has([data-tovo-subcategory^="clothes-footwear/"])) { --mk-cover:url('/tovo-signal/images/06.webp'); --mk-category-tone:#c4aaac; }
#tovoDirectory:is([data-signal-category="for-children"],:not([data-signal-category]):has([data-tovo-subcategory^="for-children/"])) { --mk-cover:url('/tovo-signal/images/07.webp'); --mk-category-tone:#a9c9bd; }
#tovoDirectory:is([data-signal-category="animals"],:not([data-signal-category]):has([data-tovo-subcategory^="animals/"])) { --mk-cover:url('/tovo-signal/images/08.webp'); --mk-category-tone:#d8bc99; }
#tovoDirectory:is([data-signal-category="construction"],:not([data-signal-category]):has([data-tovo-subcategory^="construction/"])) { --mk-cover:url('/tovo-signal/images/09.webp'); --mk-category-tone:#c5c6bb; }
#tovoDirectory:is([data-signal-category="entertainment"],:not([data-signal-category]):has([data-tovo-subcategory^="entertainment/"])) { --mk-cover:url('/tovo-signal/images/10.webp'); --mk-category-tone:#c6b3ce; }
#tovoDirectory:is([data-signal-category="agriculture"],:not([data-signal-category]):has([data-tovo-subcategory^="agriculture/"])) { --mk-cover:url('/tovo-signal/images/11.webp'); --mk-category-tone:#98ba9f; }
#tovoDirectory:is([data-signal-category="production-work"],:not([data-signal-category]):has([data-tovo-subcategory^="production-work/"])) { --mk-cover:url('/tovo-signal/images/12.webp'); --mk-category-tone:#c3ac94; }

html[data-tovo-surface="directory"]:not(.tovo-signal-active) #tovoDirectory {
  width:100%; max-width:1256px; padding:clamp(12px,2.4vw,30px) clamp(14px,3vw,40px) clamp(30px,5vw,68px); color:var(--mk-ink);
}
#tovoDirectory:has(.tovo-subcategory-list) .tovo-directory-heading {
  --mk-masthead-ink:#15201e;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; position:relative; isolation:isolate;
  margin:0 0 clamp(10px,1.5vw,20px); padding:clamp(14px,3vw,38px); min-height:clamp(118px,15vw,185px);
  background:var(--mk-category-tone,#cdd994); color:var(--mk-masthead-ink); overflow:hidden;
}
#tovoDirectory:has(.tovo-subcategory-list) .tovo-directory-heading::before {
  content:''; position:absolute; inset:0 0 0 44%; z-index:-1; pointer-events:none;
  background:var(--mk-cover,none) center 60%/cover no-repeat;
  filter:grayscale(1) contrast(1.15); mix-blend-mode:multiply;
  mask-image:linear-gradient(90deg,transparent 0%,#000 42%);
}
#tovoDirectory:has(.tovo-subcategory-list) #tovoDirectoryBack { color:var(--mk-masthead-ink); font:650 13px/1.25 var(--mk-font); margin:-5px 0 2px; }
#tovoDirectory:has(.tovo-subcategory-list) #tovoDirectoryBack:focus-visible { outline:3px solid currentColor; outline-offset:1px; }
#tovoDirectory:has(.tovo-subcategory-list) #tovoDirectoryTitle {
  color:var(--mk-masthead-ink); margin:0; font:700 clamp(32px,5.8vw,72px)/.96 var(--mk-display);
  text-transform:uppercase; letter-spacing:-.018em; max-width:68%; text-wrap:balance;
}
#tovoDirectory #tovoDirectoryCards.tovo-subcategory-list {
  box-sizing:border-box; grid-auto-rows:auto; gap:6px; background:transparent; border:0; margin:0; padding:0; align-items:stretch;
}
#tovoDirectory #tovoDirectoryCards.tovo-subcategory-list .tovo-category-card {
  min-height:clamp(70px,7.2vw,88px); height:100%; padding:7px clamp(12px,1.75vw,22px) 7px 8px; gap:clamp(10px,1.7vw,19px);
  grid-template-columns:clamp(48px,5.4vw,64px) minmax(0,1fr) 24px;
  background:var(--mk-paper); border:1px solid var(--mk-rule); border-radius:0; box-shadow:none; color:var(--mk-ink); transform:none;
}
#tovoDirectory .tovo-subcategory-list .tovo-category-art {
  width:100%; aspect-ratio:1; background:color-mix(in srgb,var(--mk-category-tone,#cdd994) 21%,var(--mk-paper));
}
#tovoDirectory .tovo-subcategory-list .tovo-category-art img { width:95%; height:95%; object-fit:contain; }
#tovoDirectory .tovo-subcategory-list .tovo-category-label { font:700 clamp(19px,2.2vw,26px)/1.12 var(--mk-display); letter-spacing:.005em; }
#tovoDirectory .tovo-subcategory-list .tovo-arrow { font-size:0; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--mk-rule); color:var(--mk-link); }
/* Source text stays aria-hidden. The arrow is geometric, including where display fonts omit symbols. */
#tovoDirectory .tovo-subcategory-list .tovo-arrow { font-size:0 !important; position:relative; }
#tovoDirectory .tovo-subcategory-list .tovo-arrow::before,
#tovoDirectory .tovo-subcategory-list .tovo-arrow::after { content:''; display:block; position:absolute; box-sizing:border-box; }
#tovoDirectory .tovo-subcategory-list .tovo-arrow::before { left:6px; top:11px; width:10px; border-top:1.5px solid currentColor; transform:rotate(-45deg); }
#tovoDirectory .tovo-subcategory-list .tovo-arrow::after { left:9px; top:7px; width:7px; height:7px; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; }

#tovoDirectory #tovoDirectoryCards .tovo-category-card:is(:hover,:focus-visible) { background:var(--mk-tint); border-color:var(--mk-link); }
#tovoDirectory #tovoDirectoryCards .tovo-category-card:focus-visible { z-index:1; outline:3px solid var(--mk-link); outline-offset:-3px; }
@media (min-width:761px) {
  #tovoDirectory #tovoDirectoryCards.tovo-subcategory-list { gap:8px; }
}
@media (forced-colors:active) {
  #tovoDirectory .tovo-directory-heading::before { display:none; }
}

html[data-tovo-surface] :is(#listings,#modalContent,#peopleRoot) :is(button,input,textarea,select) { font-family:var(--mk-font); }
html[data-tovo-surface] #listings :is(.market-feed,.market-controls,.market-toolbar,.market-discovery,#marketResults,.browse-path,#browseNavigation) { color:var(--mk-ink); border-color:var(--mk-rule); }
html[data-tovo-surface] #listings :is(.market-feed,#browseNavigation,.market-controls,#marketResults,.market-discovery) { background:transparent !important; box-shadow:none !important; }
html[data-tovo-surface] :is(#listings #listingTitle,#listings #marketDiscoveryTitle,#browseNavigation .browse-current,#modalContent #modalTitle,#accountWorkspaceTitle,#peopleRoot h1) { font:700 clamp(30px,3.7vw,48px)/1.03 var(--mk-display) !important; letter-spacing:-.018em; color:var(--mk-ink); }
html[data-tovo-surface] :is(#listings #listingTitle,#browseNavigation .browse-current) { text-transform:uppercase; }
html[data-tovo-surface] #tovoResultsBack { color:var(--mk-link); font:650 14px/1.3 var(--mk-font); }
html[data-tovo-surface] #listings :is(.market-categories,.browse-children) > button,
html[data-tovo-surface] #listings :is(#marketViews,#marketSort,#marketMore,.filter-chip,.browse-expand),
html[data-tovo-surface] #dsCategoryRail,.market-home #dsSearchTools {
  border-color:var(--mk-rule) !important; background:var(--mk-paper) !important; color:var(--mk-ink) !important; border-radius:6px; box-shadow:none !important;
}
html[data-tovo-surface] #browseNavigation :is(button,a),html[data-tovo-surface] #listings .market-mobile-catalogue { color:var(--mk-link); }
html[data-tovo-surface] #listings :is(.market-categories,.browse-children) > button:is(:hover,:focus-visible,.selected,.active,[aria-current="page"]),
html[data-tovo-surface] #marketViews button[aria-pressed="true"] { color:var(--mk-link) !important; background:var(--mk-tint) !important; border-color:var(--mk-link) !important; }
html[data-tovo-surface] body #listings #inlineFilters.cc-classic,
html[data-tovo-surface] #emptyState.empty-state { color:var(--mk-ink); background:var(--mk-paper) !important; border:1px solid var(--mk-rule) !important; box-shadow:none !important; border-radius:8px !important; }
html[data-tovo-surface] #inlineFilters.cc-classic #ccForm { color:var(--mk-ink); padding:clamp(7px,1.3vw,18px); }
html[data-tovo-surface] #inlineFilters.cc-classic #ccForm :is(select,input:not([type="checkbox"],[type="radio"],[type="range"],[type="hidden"]),.ot-range-select,.op-place-trigger),
html[data-tovo-surface] #modalContent :is(.form-field,.auth-form) :is(input,select,textarea):not([type="checkbox"],[type="radio"],[type="hidden"]) {
  color:var(--mk-ink) !important; background-color:var(--mk-paper) !important; border:1px solid var(--mk-rule) !important; border-radius:5px !important; box-shadow:none !important;
}
html[data-tovo-surface] #inlineFilters #ccForm :is(.cc-label,.cc-section h3,.cc-section h4,legend) { color:var(--mk-ink); }
html[data-tovo-surface] #inlineFilters #ccForm :is(.cc-tile-face,.ot-range-panel,.op-place-panel,.cc-section,.cc-mobile-basics,.cc-priority-filters) { border-color:var(--mk-rule); }
html[data-tovo-surface] #inlineFilters #ccForm .cc-tile-face { color:var(--mk-ink) !important; background:var(--mk-paper) !important; }
html[data-tovo-surface] #inlineFilters #ccForm :is(input:checked + .cc-tile-face,.cc-tile:has(input:checked) .cc-tile-face),
html[data-tovo-surface] #inlineFilters #ccForm :is(.ot-selected,[role="tab"][aria-selected="true"]) { color:var(--mk-link) !important; border-color:var(--mk-link) !important; background:var(--mk-tint) !important; }
html[data-tovo-surface] #inlineFilters #ccForm :is(.cc-more,.cc-reset,.cc-locate,.op-place-quick) { color:var(--mk-link); }
html[data-tovo-surface] :is(#ccForm,#modalContent) :is([type=checkbox],[type=radio]) { accent-color:var(--mk-link); }
html[data-tovo-surface] #emptyState .market-empty-icon { background:var(--mk-tint) !important; color:var(--mk-link) !important; border-radius:8px; }
html[data-tovo-surface] #emptyState :is(h3,p) { color:var(--mk-ink); }
html[data-tovo-surface] #emptyState p { color:var(--mk-muted); }
html[data-tovo-surface] #listings #listingGrid.universal-listings {
  --ul-surface:var(--mk-paper); --ul-raised:var(--mk-soft); --ul-ink:var(--mk-ink); --ul-muted:var(--mk-muted);
  --ul-line:var(--mk-rule); --ul-blue:var(--mk-link); --ul-pale:var(--mk-tint); --ul-overlay:var(--mk-paper);
}
html[data-tovo-surface] #modalContent :is(.catalog-details dt,.catalog-description,.member-seller,.form-hint) { color:var(--mk-muted); }
html[data-tovo-surface] #modalContent .catalog-details dd { color:var(--mk-ink); }
html[data-tovo-surface] #listings .listing-card { border:1px solid var(--mk-rule) !important; border-radius:8px !important; background:var(--mk-paper) !important; box-shadow:none !important; color:var(--mk-ink); }
html[data-tovo-surface] #listings .listing-card:focus-within { border-color:var(--mk-link) !important; }
html[data-tovo-surface] #listings .listing-card .listing-info { background:var(--mk-paper); }
html[data-tovo-surface] :is(#listings .listing-title,#modalContent .detail-heading h2) { font-family:var(--mk-display); font-weight:700; color:var(--mk-ink); }
html[data-tovo-surface] :is(#listings .listing-price,#modalContent .detail-price) { font-family:var(--mk-font); font-weight:780; color:var(--mk-ink); }
html[data-tovo-surface] :is(#listings .listing-meta,#modalContent .detail-location) { color:var(--mk-muted); }
html[data-tovo-surface] #modalContent :is(.market-gallery,.catalog-gallery) { background:var(--mk-soft); border-radius:6px; }
html[data-tovo-surface] #modalContent .detail-specs > * { border-color:var(--mk-rule); background:var(--mk-soft); color:var(--mk-ink); }

/* The native dialog is also the container for the full signed-in workspace. */
html[data-tovo-surface] body:not(.account-workspace-mode) #modalBackdrop:not(.hidden) { background:rgba(16,22,28,.64); }
html[data-tovo-surface] body:not(.account-workspace-mode) #modalBackdrop > .modal {
  border:1px solid var(--mk-rule); border-radius:12px !important; background:var(--mk-paper) !important; box-shadow:0 20px 80px rgba(12,17,21,.25); color:var(--mk-ink); font-family:var(--mk-font);
}
html[data-tovo-surface] #modalContent .site-modal-navigation { border-color:var(--mk-rule); }
html[data-tovo-surface] #modalBackdrop :is(#closeModal,.site-modal-navigation button,.outline-button,.auth-tabs,.auth-tabs button,.site-menu-grid a,.site-menu-grid button,.browse-sheet-list button) {
  color:var(--mk-ink); border-color:var(--mk-rule); background-color:var(--mk-paper); border-radius:6px; font-family:var(--mk-font);
}
html[data-tovo-surface] #modalContent .auth-tabs { background:var(--mk-soft) !important; }
html[data-tovo-surface] #modalContent .auth-tabs button { color:var(--mk-muted) !important; background:transparent; }
html[data-tovo-surface] #modalContent .auth-tabs button:is(.active,[aria-selected=true]),
html[data-tovo-surface] #modalContent .site-menu-grid :is(a,button):hover { color:var(--mk-link) !important; background:var(--mk-tint) !important; }
html[data-tovo-surface] #modalContent .site-menu-grid .ui-icon { color:var(--mk-link); }
html[data-tovo-surface] #modalContent .auth-form :is(input[type=email],input[type=password]) { min-height:45px; font-size:16px; }
html[data-tovo-surface] body.account-workspace-mode {
  --ws-bg:var(--mk-canvas); --ws-surface:var(--mk-paper); --ws-text:var(--mk-ink); --ws-muted:var(--mk-muted);
  --ws-border:var(--mk-rule); --ws-accent:var(--mk-link); --ws-soft:var(--mk-tint); --ws-hover:var(--mk-soft); font-family:var(--mk-font);
}
html[data-tovo-surface] body.account-workspace-mode :is(.portal-card,.portal-panel,.portal-sidebar-profile,.portal-topbar) { border-color:var(--mk-rule); }
html[data-tovo-surface] :is(#peopleRoot,.people-dialog) { --p-bg:var(--mk-paper); --p-ink:var(--mk-ink); --p-muted:var(--mk-muted); --p-line:var(--mk-rule); --p-soft:var(--mk-soft); --p-accent:var(--mk-link); --p-tint:var(--mk-tint); font-family:var(--mk-font); }
html[data-tovo-surface] #peopleRoot .p-header { background:var(--mk-dark); color:white; border-color:#3a414b; }
html[data-tovo-surface] #peopleRoot .p-brand { color:white !important; }
html[data-tovo-surface] #peopleRoot .p-brand img { content:url('/ollo/brand/tovo-magpie-dark.svg'); }
html[data-tovo-surface] #peopleRoot :is(.p-hero,.p-panel,.p-filters) { border-radius:8px; }
html[data-tovo-surface] #peopleRoot :is(.p-btn,.p-choice) { border-radius:8px; }
html[data-tovo-surface] body > footer { background:var(--mk-dark) !important; border-color:#3a414b; color:#c0c8d1 !important; font-family:var(--mk-font); }
html[data-tovo-surface] body > footer a { color:#eff3e8 !important; }
html[data-tovo-surface] #marketTabBar.mobile-nav { background:#1b222b !important; border-top:1px solid #414953 !important; box-shadow:none !important; }
html[data-tovo-surface] #marketTabBar.mobile-nav :is(a,button) { color:#c2cbd4 !important; background:transparent !important; }
html[data-tovo-surface] #marketTabBar.mobile-nav :is(.nav-active,[aria-current="page"]) { color:#e2f876 !important; }
html[data-tovo-surface] :is(#modalContent,#listings,#peopleRoot,.market-header,#marketTabBar) :is(button,a,input,select,textarea):focus-visible { outline:3px solid var(--mk-link); outline-offset:2px; }
html[data-tovo-surface] body > header.market-header :is(a,button):focus-visible,
html[data-tovo-surface] #marketTabBar :is(a,button):focus-visible { outline-color:#e2f876; }

@media(max-width:760px) {
  /* Keep original controls, listeners and IDs; the menu offers language, theme and notifications. */
  html[data-tovo-surface]:not(.tovo-signal-active) body:not(.people-active,.account-workspace-mode) > header.market-header {
    display:grid !important; position:relative; grid-template-columns:minmax(0,1fr) 40px 40px auto; grid-template-rows:44px auto;
    width:100%; max-width:none; height:auto !important; min-height:0 !important; gap:10px 5px; padding:8px clamp(12px,4.5vw,20px) 13px !important;
  }
  html[data-tovo-surface] body > header.market-header :is(.market-search-row,.topline,.toplinks,.market-utility-actions,.header-account-tools) { display:contents !important; }
  html[data-tovo-surface] body > header.market-header .topline > span,
  html[data-tovo-surface] body > header.market-header :is(#marketCatalogue,#openNotifications,#showFavorites,#languageToggle,[data-theme-toggle],.toplinks > a,#mobileSearch) { display:none !important; }
  html[data-tovo-surface] body > header.market-header .brand { grid-area:1/1; position:static !important; width:clamp(76px,24vw,103px) !important; justify-self:start; align-self:center; margin:0; }
  html[data-tovo-surface] body > header.market-header .brand .brand-lockup { width:100% !important; max-width:100%; height:auto !important; }
  html[data-tovo-surface] body > header.market-header #siteMenuToggle,
  html[data-tovo-surface] body > header.market-header #openAccount { display:grid !important; place-items:center; align-self:center; padding:0; margin:0; width:40px !important; min-width:0; height:44px; border:0; grid-area:1/2; }
  html[data-tovo-surface] body > header.market-header #openAccount { grid-column:3; }
  html[data-tovo-surface] body > header.market-header #openPost {
    display:flex !important; align-items:center; justify-content:center; grid-area:1/4; align-self:center; gap:5px;
    width:auto !important; height:44px; min-width:0; padding:0 clamp(8px,2.4vw,17px); margin:0; font:750 13px/1.1 var(--mk-font); white-space:nowrap;
  }
  html[data-tovo-surface] body > header.market-header #openPost > span:first-child { font:500 18px/1 var(--mk-font); }
  html[data-tovo-surface] body > header.market-header #openPost > [data-i18n] { position:static !important; clip-path:none; width:auto; height:auto; overflow:visible; }
  html[data-tovo-surface] body > header.market-header #searchForm { display:flex !important; align-items:center; grid-area:2/1/3/-1 !important; position:relative; width:100% !important; margin:0 !important; }
  html[data-tovo-surface] body > header.market-header #marketHeaderRegion { grid-area:3/1/4/-1; }
}
@media(max-width:480px) {
  #tovoDirectory:has(.tovo-subcategory-list) .tovo-directory-heading::before { left:35%; }
  #tovoDirectory #tovoDirectoryTitle { max-width:62%; }
  html[data-tovo-surface] #inlineFilters.cc-classic #ccForm { padding:6px; }
}
@media(prefers-reduced-motion:reduce) {
  #tovoDirectory #tovoDirectoryCards .tovo-category-card { transition:none; }
}

#tovoDirectory #tovoDirectoryJump[hidden] { display:none !important; }
#tovoDirectory #tovoDirectoryJump:not([hidden]) {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:0 0 12px; color:var(--mk-ink);
  font:650 14px/1.35 var(--mk-font);
}
#tovoDirectory #tovoDirectoryJump select {
  min-height:44px; min-width:76px; max-width:100%; margin:0; padding:6px 9px;
  border:1px solid var(--mk-rule); border-radius:6px; background:var(--mk-paper); color:var(--mk-ink); font:600 16px/1.3 var(--mk-font);
}
#tovoDirectory:has(.tovo-subcategory-list) #tovoBrowseAll:not([hidden]) {
  margin:0 0 12px; min-height:48px; border:1px solid var(--mk-rule); border-radius:8px;
  background:var(--mk-tint); color:var(--mk-link); font:700 clamp(15px,1.6vw,18px)/1.3 var(--mk-font);
}

#tovoMarketplaceHeading[hidden] {display:none !important;}
html[data-tovo-surface] #listings #tovoMarketplaceHeading:not([hidden]) {
  display:block; margin:clamp(8px,1.5vw,20px) 0 clamp(15px,2vw,26px); padding:0;
  font:700 clamp(36px,5.2vw,68px)/.99 var(--mk-display); letter-spacing:-.018em; text-wrap:balance;
  overflow-wrap:anywhere; color:var(--mk-ink); text-transform:uppercase;
}
/* Keep the existing count, actions and multi-level links. Only duplicate page names disappear. */
#listings:has(#tovoMarketplaceHeading:not([hidden])) :is(#listingTitle,.browse-current) {display:none !important;}
html[data-tovo-surface="results"] #listings:has(#tovoMarketplaceHeading[data-kind="all"]) #dsSearchTools:has(.ds-path > button:only-child) {display:none !important;}
/* Older tablet layouts append promotional home panels below the dedicated results page. */
html:is([data-tovo-surface="results"],[data-tovo-surface="filtered"]) body > main > :is([data-market-block="hero"],[data-market-block="seller"],[data-market-block="trust"]) {display:none !important;}
