/* Desktop marketplace: Trueseller tokens with the inspected Uber Eats layout. */
:root {
  --rail-width: 208px;
  --header-height: 80px;
}
body {
  background: var(--card);
}
body > header.web-header {
  padding: 16px 28px;
  min-height: var(--header-height);
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: none;
}
.web-header .brand {
  font-size: 24px;
  letter-spacing: -1px;
}
.web-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  width: 44px;
  padding: 10px;
  flex: none;
}
.icon-button svg,
.web-header svg {
  width: 22px;
  height: 22px;
}
.web-header .header-mode {
  display: flex;
  padding: 4px;
  background: var(--bg);
  border-radius: 30px;
  flex: none;
}
.header-mode a {
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 25px;
  font-size: 12px;
}
.header-mode a[aria-current] {
  background: var(--card);
  color: var(--green);
}
.header-location {
  border: 0;
  max-width: 180px;
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-search {
  position: relative;
  flex: 1;
  margin: 0;
  max-width: 700px;
  min-width: 140px;
}
.header-search input {
  padding: 12px 16px 12px 44px;
  border: 0;
  border-radius: 30px;
  background: var(--bg);
}
.header-search > .search-glyph {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.search-popover {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px #0001;
  max-height: 65vh;
  overflow: auto;
  z-index: 60;
}
.search-popover h3 {
  margin: 12px 0 8px;
}
.search-suggestion {
  width: 100%;
  border-radius: 0;
  justify-content: flex-start;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.search-popover .section-heading {
  margin: 0;
}
.search-popover .section-heading button {
  font-size: 12px;
  border: 0;
  padding: 4px;
  min-height: 32px;
}
.web-rail {
  width: var(--rail-width);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  padding: 20px 12px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  z-index: 30;
}
.web-rail nav {
  display: block;
}
.web-rail a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0;
  font-size: 12px;
  white-space: normal;
  border-left: 3px solid transparent;
}
.web-rail a[aria-current="page"] {
  background: var(--soft);
  border-left-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.web-rail svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.rail-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 8px;
}
.rail-category .category-icon {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: transparent !important;
}
.rail-category img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.rail-caption {
  padding: 8px 15px;
  color: var(--muted);
  font-size: 11px;
}
body main#app {
  margin-left: var(--rail-width);
  max-width: none;
  padding: 24px 32px 60px;
  min-height: 70vh;
}
body main#app[data-layout="focused"] {
  max-width: 1050px;
  padding-left: 48px;
  padding-right: 48px;
}
body > footer {
  margin-left: var(--rail-width);
  border-top: 1px solid var(--line);
  padding: 28px;
  text-align: left;
}
body > footer a {
  margin-right: 20px;
}
body > footer p {
  margin-top: 18px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 16px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.6px;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.section-actions > a {
  color: var(--ink);
  font-size: 12px;
  margin-right: 10px;
}
.shelf {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 8px;
}
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.product-rail::-webkit-scrollbar {
  display: none;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.market-card {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  min-width: 0;
  scroll-snap-align: start;
}
.market-card .market-image {
  height: auto;
  aspect-ratio: 1.65;
  display: block;
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.market-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.market-image .image-fallback {
  width: 100%;
  height: 100%;
  padding: 24px;
  object-fit: contain;
}
.market-card h3 {
  margin: 12px 40px 6px 0;
  font-size: 16px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-card .price {
  font-weight: 700;
  margin: 0 0 4px;
}
.market-card .card-meta {
  font-size: 12px;
  color: var(--muted);
}
.market-card .seller-card-link {
  border: 0;
  padding: 4px 0;
  margin: 0;
  font-size: 11px;
  display: block;
}
.save-card {
  position: absolute;
  right: 0;
  top: calc((100cqw / 1.65) + 8px);
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
}
.market-card {
  container-type: inline-size;
}
.save-card[aria-pressed="true"] {
  color: var(--green);
}
.save-card svg {
  width: 20px;
  height: 20px;
}
.market-card .boost-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e8f2ff;
  color: var(--blue);
  margin: 0;
}
.listing-grid > .empty-state {
  grid-column: 1/-1;
}
.category-shortcuts {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
}
.category-shortcuts a {
  flex: 0 0 84px;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.category-shortcuts .category-art {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.category-art img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.category-art .category-icon {
  width: 56px;
  height: 56px;
  background: transparent;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  margin: 16px 0 24px;
}
.filter-pills button,
.filter-pills select {
  background: var(--bg);
  border: 0;
  font-size: 12px;
  min-height: 40px;
  width: auto;
  border-radius: 30px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.filter-pills [aria-pressed="true"] {
  background: var(--soft);
  color: var(--green);
}
.active-filter-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  margin: -8px 0 18px;
  padding: 3px 2px 7px;
}
.active-filter-pills button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 30px;
  white-space: nowrap;
}
.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  color: var(--green);
  max-width: min(360px, 80vw);
}
.active-filter-pill span { overflow: hidden; text-overflow: ellipsis; }
.active-filter-pill svg { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.clear-all-filters { background: var(--bg); color: var(--green); }
.active-filter-pills button:focus-visible, .facet-tabs button:focus-visible, .facet-values:focus-visible, .facet-value:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.market-heading {
  margin: 26px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.market-heading h1 {
  font-size: 24px;
  margin: 0;
}
.empty-state {
  max-width: 600px;
  text-align: center;
  margin: 40px auto;
  border: 0;
}
.empty-state img {
  width: 180px;
  max-width: 70%;
}
.request-feed {
  max-width: 720px;
}
.request-composer {
  max-width: 720px;
}
.promos .promo {
  flex: 0 0 calc((100% - 20px) / 3);
  height: 156px;
}
.featured-banner {
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
  gap: 20px;
}
.featured-banner strong {
  font-size: 18px;
}
.featured-banner .primary {
  font-size: 14px;
}
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.subcategory-tile {
  padding: 18px;
  background: var(--bg);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subcategory-tile img {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
}
.subcategory-tile .category-icon {
  width: 80px;
  height: 80px;
}
.facet-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  padding: 12px 0;
}
.facet-tabs button { flex: 0 0 auto; white-space: nowrap; }
.facet-options-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; font-weight: 600; }
.facet-rail-controls { display: flex; flex: 0 0 auto; gap: 6px; }
.facet-values {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  margin: 8px 0 24px;
  padding: 3px 2px 10px;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
}
.facet-value {
  display: flex;
  flex: 0 0 112px;
  width: 112px;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
  padding: 10px;
  min-height: 100px;
  font-size: 12px;
  text-align: center;
}
.facet-value img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.facet-value[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--green);
  color: var(--green);
}
.colour-circle {
  width: 48px;
  height: 48px;
  border: 1px solid #aaa;
  border-radius: 50%;
  box-shadow: none;
}
.value-badge {
  display: grid;
  place-items: center;
  min-height: 48px;
  max-width: 100%;
  border-radius: 12px;
  padding: 8px;
  background: var(--bg);
  font-size: 12px;
}
.settings-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.settings-list > a,
.settings-row {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.settings-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-row input {
  flex: none;
}
.form-page {
  max-width: 720px;
}
.form-page form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.inline-status {
  font-size: 12px;
  color: var(--muted);
}
.location-results {
  max-height: 300px;
  overflow: auto;
}
.location-results button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.location-choice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-choice input {
  background: var(--bg);
}
.avatar-choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.avatar-choices img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.welcome-step {
  max-width: 600px;
  text-align: center;
  margin: 20px auto;
}
.welcome-step img {
  width: 220px;
  height: 200px;
  object-fit: contain;
}
.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.step-dots span {
  width: 8px;
  height: 8px;
  background: var(--line);
  border-radius: 50%;
}
.step-dots span.active {
  background: var(--green);
}
.chat-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-photo {
  max-width: 240px;
  border-radius: 12px;
}
.chat-voice {
  max-width: 100%;
}
.report-options {
  display: grid;
  gap: 8px;
}
.report-options label {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
}
.notification-pop {
  position: fixed;
  right: 24px;
  top: 96px;
  max-width: 340px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px #0002;
  z-index: 100;
}
.notification-pop p {
  font-size: 12px;
}
.notification-pop .actions {
  margin-bottom: 0;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.skeleton-card {
  background: var(--bg);
  border-radius: 14px;
  aspect-ratio: 1.4;
  animation: loading-pulse 1.5s infinite alternate;
}
@keyframes loading-pulse {
  to {
    opacity: 0.45;
  }
}
@media (min-width: 1600px) {
  .product-rail {
    grid-auto-columns: calc((100% - 64px) / 5);
  }
  .listing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  :root {
    --rail-width: 176px;
  }
  .web-header .header-mode {
    display: none;
  }
  .web-header .header-location {
    max-width: 130px;
  }
  .web-header .brand {
    font-size: 20px;
  }
  .product-rail {
    grid-auto-columns: calc((100% - 32px) / 3);
  }
  .listing-grid,
  .subcategory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-actions .sell-label {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --rail-width: 0px;
    --header-height: 124px;
  }
  body > header.web-header {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 8px;
    position: sticky;
    min-height: 124px;
  }
  .web-header .brand {
    font-size: 20px;
  }
  .web-header .header-search {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }
  .web-header .header-location {
    display: none;
  }
  .web-header .header-actions {
    gap: 4px;
  }
  .web-header .header-actions .primary {
    font-size: 12px;
    min-height: 40px;
    padding: 8px 12px;
  }
  .web-header .header-account {
    font-size: 12px;
    padding: 8px;
  }
  .web-rail {
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 4px 0 20px #0001;
  }
  .rail-open .web-rail {
    transform: translateX(0);
  }
  body main#app,
  body main#app[data-layout="focused"] {
    margin: 0;
    padding: 20px 16px 40px;
    max-width: none;
  }
  body > footer {
    margin: 0;
    padding: 20px 16px;
  }
  .product-rail {
    grid-auto-columns: 76%;
  }
  .listing-grid,
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .section-heading h2,
  .market-heading h1 {
    font-size: 20px;
  }
  .section-actions .icon-button {
    width: 32px;
    min-height: 32px;
    padding: 6px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-actions {
    gap: 4px;
  }
  .section-actions > a {
    margin: 0;
    font-size: 11px;
  }
  .category-shortcuts {
    gap: 12px;
  }
  .category-shortcuts a {
    flex-basis: 72px;
  }
  .promos .promo {
    flex-basis: 90%;
  }
  .featured-banner {
    padding: 16px;
    align-items: flex-start;
  }
  .featured-banner strong {
    font-size: 14px;
  }
  .featured-banner p {
    font-size: 12px;
  }
  .featured-banner .primary {
    font-size: 12px;
    padding: 8px 12px;
  }
  .market-card h3 {
    font-size: 13px;
  }
  .market-card .price {
    font-size: 13px;
  }
  .market-card .card-meta {
    font-size: 11px;
  }
  .market-card .boost-badge {
    font-size: 10px;
    padding: 4px 6px;
  }
  .header-mode {
    display: none !important;
  }
  .form-page form {
    padding: 16px;
  }
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .notification-pop {
    left: 16px;
    right: 16px;
    top: 132px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .skeleton-card {
    animation: none;
  }
  .web-rail {
    transition: none;
  }
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: white;
  padding: 12px;
  border: 2px solid var(--green);
}
.skip-link:focus {
  top: 12px;
}
.avatar-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.avatar-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.avatar-grid [aria-pressed="true"] {
  border-color: var(--green);
  background: var(--soft);
}
.managed-listing {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.body {
  white-space: pre-line;
}
.web-header input:focus-visible {
  outline-offset: 0;
}
#edit-listing,
#web-business,
#web-profile,
#compose {
  max-width: 720px;
}
.search-popover[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .managed-listing {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.range-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 600px;
  margin-bottom: 20px;
}
.range-filter label {
  flex: 1;
}
.range-filter button {
  margin-bottom: 12px;
}
.seller-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.seller-search-grid img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.seller-search-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.gallery video,
#listing-video-previews video {
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
}
.market-card .save-card[aria-pressed="true"] svg {
  fill: var(--soft);
  color: var(--green);
}
@media (max-width: 760px) {
  .range-filter {
    flex-wrap: wrap;
  }
  .seller-search-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) { .facet-value { flex-basis: 96px; width: 96px; } }
@media (pointer: coarse) { .active-filter-pills button, .facet-rail-controls button { min-height: 42px; } }

/* Compact web controls; coarse pointers retain comfortable touch targets. */
:root { --header-height: 68px; }
body > header.web-header { padding: 10px 24px; gap: 14px; }
.web-header .brand { display: inline-flex; align-items: center; gap: 0; font-size: 20px; letter-spacing: -.6px; flex: none; }
.web-header .brand img { width: 42px; height: 42px; object-fit: contain; }
.web-header .brand span { margin-left: -4px; }
button, .primary { min-height: 34px; padding: 7px 12px; font-size: 12px; font-weight: 600; gap: 5px; }
.icon-button { width: 34px; min-height: 34px; padding: 7px; }
.icon-button svg, .web-header svg { width: 18px; height: 18px; }
.header-mode a { padding: 6px 10px; font-size: 11px; }
.header-search input { min-height: 36px; padding: 8px 12px 8px 36px; font-size: 12px; }
.header-search > .search-glyph { left: 12px; top: 8px; width: 16px; height: 16px; }
.header-location, .header-account { font-size: 12px; padding: 6px; }
.search-popover { top: 44px; padding: 12px; border-radius: 12px; }
.search-suggestion { min-height: 34px; padding: 8px 4px; }
.web-rail { padding: 12px 10px; }
.web-rail a { padding: 9px 10px; gap: 9px; }
.web-rail svg { width: 18px; height: 18px; }
.rail-divider { margin: 10px 8px; }
body main#app { padding: 18px 24px 48px; }
body main#app[data-layout="focused"] { padding-left: 32px; padding-right: 32px; }
.section-heading { margin: 22px 0 12px; }
.section-heading h1, .section-heading h2, .market-heading h1 { font-size: 22px; }
.section-actions { gap: 6px; }
.section-actions > a { margin-right: 4px; }
.category-shortcuts { gap: 14px; margin-bottom: 14px; }
.category-shortcuts a { flex-basis: 76px; }
.category-shortcuts .category-art { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 12px; }
.category-art img, .category-art .category-icon { width: 48px; height: 48px; }
.filter-pills { gap: 6px; margin: 12px 0 18px; }
.filter-pills button, .filter-pills select { min-height: 32px; padding: 6px 10px; font-size: 11px; }
input, select { min-height: 36px; padding: 8px 10px; font-size: 13px; }
textarea { padding: 8px 10px; font-size: 13px; min-height: 88px; }
label { margin-top: 12px; }
.actions, .toolbar { gap: 6px; margin: 10px 0; }
.settings-row { padding: 12px 14px; }
.tabs { gap: 6px; margin: 10px 0; }
@media (max-width: 760px) {
  :root { --header-height: 108px; }
  body > header.web-header { min-height: 108px; padding: 8px 12px; gap: 6px; }
  .web-header .brand { font-size: 18px; }
  .web-header .brand img { width: 36px; height: 36px; }
  .web-header .header-actions .primary { min-height: 36px; padding: 7px 10px; }
  .web-header .header-account { padding: 6px; }
  body main#app, body main#app[data-layout="focused"] { padding: 16px 14px 36px; }
  .section-heading h1, .section-heading h2, .market-heading h1 { font-size: 20px; }
}
@media (pointer: coarse) {
  button, .primary, .icon-button, .filter-pills button, .filter-pills select { min-height: 42px; }
  .icon-button { width: 42px; }
  .header-search input { min-height: 42px; }
  .header-search > .search-glyph { top: 11px; }
  .search-popover { top: 48px; }
}

/* Neutral media placeholders reserve the final image size. */
.market-card .market-image{background:#ececec;position:relative;}
.grey-image-placeholder{display:block;width:100%;height:100%;min-height:100px;background:#ececec;}
.listing-placeholders .market-image img{opacity:0;transition:opacity .15s ease;}
.market-image img.image-ready{opacity:1;}
.market-image img[hidden]{display:none;}
@media(prefers-reduced-motion:reduce){.market-image img{transition:none;}}
.search-suggestion[aria-selected="true"]{background:#eaffeb;outline:2px solid #00880d;outline-offset:-2px}

.listing-detail-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:28px;margin:18px 0 24px;align-items:start}.listing-detail-media .gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.listing-detail-media .gallery img,.listing-detail-media .gallery video{width:100%;max-height:440px;object-fit:contain;border-radius:14px;background:#f1f2f2}.listing-detail-media .gallery img:first-child{grid-column:1/-1}.listing-detail-media .grey-image-placeholder{height:340px;grid-column:1/-1}.listing-detail-summary h1{margin:8px 0;font-size:26px;line-height:1.3}.listing-detail-price{font-size:24px;font-weight:700;margin:12px 0}.listing-detail-seller{display:flex;align-items:center;gap:12px;padding:16px 0;margin:12px 0;border-top:1px solid #e5e7e6;border-bottom:1px solid #e5e7e6}.listing-detail-seller img{border-radius:50%;object-fit:cover}.listing-detail-seller span:nth-last-child(2){flex:1}.listing-detail-seller small,.listing-detail-seller strong{display:block}.listing-detail-seller small{color:#68716b}.listing-detail-description{padding:20px 0;border-top:1px solid #e5e7e6}.listing-detail-description .body{max-width:850px;line-height:1.7}#listing-suggestions{margin-top:28px}#listing-suggestions[hidden]{display:none}@media(max-width:760px){.listing-detail-layout{grid-template-columns:minmax(0,1fr);gap:16px}.listing-detail-summary h1{font-size:22px}}

.facet-semantic-icon{display:grid;place-items:center;color:var(--muted,#4a4a4a);background:var(--bg,#f3f3f3)}.facet-semantic-icon>svg{width:32px;height:32px}.facet-image-unavailable>.facet-semantic-icon{width:100%;height:100%;background:transparent}.facet-brand-initials{font-size:18px;letter-spacing:.02em}
