:root {
  color-scheme: light;
  font: 16px/1.42 "Segoe UI", Arial, sans-serif;
  color: #161a21;
  background: #eef2f8;
  --muted: #455468;
  --accent: #174b86;
  --line: #dce5ef;
  --shadow: 0 2px 5px #2f54871c, inset 0 1px 1px #fff;
}

@font-face {
  font-family: "Manrope Price";
  src: url("/assets/font-9b6030a01ecaed3dcabaf85601bb20b9f3a3372b0e3cde51fecee9e608b5d58c.woff2") format("woff2");
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  unicode-range: U+0020, U+0030-0039, U+00A0, U+20BD;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 10% 2%, #fff 0, #fff0 45%),
    radial-gradient(ellipse at 83% 0%, #fff 0, #fff0 37%), #edf2f8;
}
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
:focus-visible { outline: 2px solid #215d9f; outline-offset: 3px; }
::selection { background: #c5e7f8; color: #122641; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 5; padding: 10px; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell {
  width: min(1440px, calc(100% - 52px));
  margin: clamp(20px, 3.3vw, 48px) auto 24px;
  padding: 0 clamp(14px, 1.75vw, 26px);
  border: 1px solid #fff;
  border-radius: 34px;
  background: linear-gradient(152deg, #ffffffc9 2%, #f3f7fbaa 35%, #eef3f9a8 63%, #f9fbffdb);
  box-shadow: 0 14px 40px #31547b12, 0 2px 8px #31547b0d, inset 0 1px 3px #fff;
}
.glass {
  --glass-fill: linear-gradient(165deg, #fcfdff 8%, #e9eff8 100%);
  --glass-blur: none;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  border: 1px solid #f9fcff;
  box-shadow: var(--shadow);
  border-radius: 999px;
}
@supports (backdrop-filter: blur(2px)) {
  .glass {
    --glass-tint: rgb(8 202 237 / 2%);
    --glass-fill: linear-gradient(var(--glass-tint), var(--glass-tint)),
      linear-gradient(165deg, #ffffffdd, #f0f4f9bc);
    --glass-blur: blur(2px);
  }
}
:is(.glass.publish, .glass.category, .glass.filters-button, .glass.sorting, .glass.view-switch) {
  position: relative;
  isolation: isolate;
  background: none;
  backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}
:is(.glass.publish, .glass.category, .glass.filters-button, .glass.sorting, .glass.view-switch)::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid #ffffffd6;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 3px #31547b1a;
}
.plain { background: transparent; }
.header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) fit-content(20%) fit-content(28%) auto;
  align-items: center;
  gap: clamp(10px, 1.45vw, 23px);
  padding: 20px 0 16px;
  container: market-header / inline-size;
}
.logo { display: block; width: clamp(154px, 17vw, 244px); }
.logo img { width: 100%; height: auto; }
.search {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 14px;
  box-shadow: inset 0 2px 5px #2f548719, 0 1px 4px #2f548714;
}
.search svg { width: 21px; height: 21px; }
.search input { width: 100%; min-width: 0; border: 0; background: none; padding: 6px 0; outline: 0; }
.search input::placeholder { color: #47566c; opacity: 1; }
.search:focus-within { outline: 2px solid #215d9f; outline-offset: 2px; }
.region, .publish { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.region > span, .publish > span { min-width: 0; }
.region { padding: 0 4px; font-size: .92rem; }
.region svg, .publish svg { width: 19px; height: 19px; }
.region .region-caret svg { width: 14px; height: 14px; }
.publish { padding: 0 16px; font-size: .92rem; }
.publish [data-icon="plus"] { display: none; }
.header-nav { display: flex; gap: 4px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border-radius: 999px; }
.header-nav .icon-button[aria-current] { background: #dceaf8; color: var(--accent); }
.mobile-nav { display: none; }
.categories {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9cce0 transparent;
  padding: 5px 5px 13px;
  margin: 0 -5px;
}
.category {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 4px clamp(13px, 1.28vw, 22px);
  white-space: nowrap;
  font-weight: 600;
  font-size: .92rem;
}
.category[aria-pressed="true"] {
  --glass-fill: linear-gradient(155deg, #e0f0ff 10%, #bed8f6 90%);
  color: #153e6b;
}
.primary {
  color: #153e6b;
  background: linear-gradient(155deg, #e0f0ff 10%, #bed8f6 90%);
  box-shadow: inset 0 1px 1px #fff, 0 2px 5px #4c77ac26;
}
.catalog { padding: 20px 0 12px; border-top: 1px solid #fff; }
.catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(26px, 2.95vw, 42px); letter-spacing: -.039em; line-height: 1.1; font-weight: 720; }
.controls { display: flex; align-items: center; gap: 12px; }
.filters-button, .sorting { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: .92rem; font-weight: 600; }
.filters-button { padding: 0 14px; }
.filters-button svg { width: 20px; height: 20px; }
.filter-count { min-width: 19px; padding: 0 3px; border-radius: 20px; background: #d4e5f8; color: #153e6b; font-size: .75rem; }
.sorting select { appearance: none; min-height: 42px; border: 0; border-radius: inherit; background: transparent; padding: 0 31px 0 14px; }
.sorting [data-icon] { position: absolute; right: 11px; pointer-events: none; }
.sorting svg { width: 14px; height: 14px; }
.view-switch {
  --switch-inset: 2px;
  --switch-gap: 2px;
  --switch-button: 45px;
  --switch-rim: 3px;
  --switch-clearance: 4px;
  display: flex;
  align-items: center;
  padding: var(--switch-inset);
  gap: var(--switch-gap);
  touch-action: pan-y;
  user-select: none;
}
.glass.view-switch::before {
  inset-block: var(--switch-rim);
  box-shadow: 0 1px 2px #31547b13;
}
.view-indicator {
  position: absolute;
  inset-block: calc(var(--switch-rim) + var(--switch-clearance));
  inset-inline-start: calc(var(--switch-inset) + var(--switch-clearance));
  width: calc(var(--switch-button) - 2 * var(--switch-clearance));
  pointer-events: none;
  border-radius: 999px;
  border: 1px solid #ffffff9c;
  background: radial-gradient(ellipse at 34% 10%, #f5fbffde, transparent 67%),
    linear-gradient(145deg, #e7f3ff, #cbe2f7);
  box-shadow: 0 1px 2px #4c77ac21;
  translate: var(--switch-position, 0px) 0;
  scale: var(--switch-stretch, 1) 1;
  transition: translate 580ms cubic-bezier(.23, .84, .27, 1.1), scale 320ms cubic-bezier(.23, .84, .27, 1.1);
}
.view-switch:has([data-layout="list"][aria-pressed="true"]) .view-indicator {
  translate: var(--switch-position, calc(var(--switch-button) + var(--switch-gap))) 0;
}
.view-switch.is-dragging .view-indicator { transition: none; }
.view-switch .icon-button { position: relative; min-height: 38px; width: var(--switch-button); }
.view-switch [aria-pressed="true"] { color: #153e6b; }
.view-switch svg { width: 20px; height: 20px; stroke-width: 1.5; }
@supports not selector(:has(*)) {
  .view-indicator { display: none; }
  .view-switch [aria-pressed="true"] { background: #cee2f8; }
}
.listings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 21px); }
.listing {
  position: relative;
  min-width: 0;
  border: 1px solid #fff;
  border-radius: 21px;
  padding: 7px;
  background: #f7f9fdd9;
  box-shadow: 0 3px 10px #244d7912, inset 0 1px 2px #fff;
}
.listing-link { display: block; height: 100%; border-radius: 15px; }
.listing-picture, .listing-picture .listing-photo { display: block; }
.listing-photo { width: 100%; height: auto; aspect-ratio: 1.58; object-fit: cover; object-position: center 44%; border-radius: 14px; background: #e8e2d9; }
[data-listing="iphone-15-pro"] .listing-photo, [data-listing="iphone-14-pro"] .listing-photo,
[data-listing="ipad-air"] .listing-photo { object-position: center 20%; }
.listing-body { padding: 11px 9px 7px; }
.listing h2 { font-size: clamp(17px, 1.62vw, 25px); line-height: 1.13; letter-spacing: -.034em; overflow-wrap: anywhere; }
.specs { margin-top: 5px; color: var(--muted); font-size: .93rem; }
.listing-offer { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; margin: 8px 0 8px; }
.price { font-family: "Manrope Price", "Segoe UI", Arial, sans-serif; font-size: clamp(21px, 1.95vw, 30px); font-weight: 650; line-height: 1.08; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.listings .price { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.condition { display: inline-block; border-radius: 999px; padding: 3px 9px; background: #e6ebf2; color: #28364a; white-space: nowrap; font-size: .81rem; font-weight: 600; }
.city, .seller { display: flex; align-items: center; gap: 5px; color: #334259; font-size: .89rem; line-height: 1.3; min-height: 21px; }
.city svg, .seller svg { width: 17px; height: 17px; }
.seller { flex-wrap: wrap; margin-top: 4px; }
.seller-name { min-width: 0; overflow-wrap: anywhere; }
.listing-meta .city span { min-width: 0; overflow-wrap: anywhere; }
.rating { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; margin-left: 2px; }
.rating svg { color: #9b6400; fill: #edb431; width: 15px; height: 15px; }
.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  min-height: 42px;
  color: #16354d;
  background: #e7f0f7;
  border: 1px solid #ffffffae;
  isolation: isolate;
  box-shadow: inset 0 1px 1px #ffffffd4, inset 0 -1px 2px #61869b42, 0 2px 5px #162b4729;
}
.favorite svg {
  width: 22px;
  height: 22px;
  /* Center the heart path within the button in both outline and filled states. */
  translate: 0 -4.7%;
  filter: drop-shadow(0 0 .8px #fff) drop-shadow(0 0 .65px #ffffffd4);
}
.favorite[aria-pressed="true"] { color: #124e78; background: #d3eaf8; }
.favorite[aria-pressed="true"] svg { fill: currentColor; }
@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
  .favorite {
    background: radial-gradient(ellipse at 28% 10%, #ffffff75, #fff0 53%),
      linear-gradient(150deg, #f3fbff32, #c6e6fa45);
    -webkit-backdrop-filter: blur(2px) saturate(1.18);
    backdrop-filter: blur(2px) saturate(1.18);
  }
  .favorite[aria-pressed="true"] {
    background: radial-gradient(ellipse at 28% 10%, #effbff84, #effbff00 55%),
      linear-gradient(150deg, #c7edfb40, #84ceef57);
  }
}
.favorite:active { box-shadow: inset 0 1px 4px #2f577c3d, 0 1px 3px #162b4726; }
.compare-detail svg { width: 19px; height: 19px; }
.compare-detail[aria-pressed="true"] { color: #164b74; background: #d6eafb; }
.catalog-heading, .compare-heading { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; min-width: 0; }
.compare-link { color: var(--accent); gap: 6px; min-height: 44px; }
.compare-link [id] { min-width: 20px; padding: 2px 5px; border-radius: 999px; background: #e1edf8; text-align: center; font-size: .79rem; }
.compare-screen { max-width: 1020px; margin: 18px auto 0; }
.compare-heading { justify-content: space-between; margin-bottom: 12px; }
.compare-heading h1 { font-size: clamp(1.42rem, 3vw, 2.1rem); letter-spacing: -.025em; }
.compare-heading .action { padding-inline: 0; color: var(--accent); }
.compare-open-detail { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.compare-hint { margin: 0 0 10px; color: var(--muted); font-size: .88rem; }
.compare-scroll-hint { display: none; }
.compare-scroll { overflow-x: auto; border: 1px solid #d5e3ef; border-radius: 16px; background: #f9fbff; }
.compare-table { width: 100%; min-width: 276px; table-layout: fixed; border-spacing: 0; font-size: .93rem; font-variant-numeric: tabular-nums; }
.compare-table[data-offer-count="3"] { min-width: 445px; }
.compare-table[data-offer-count="4"] { min-width: 560px; }
.compare-table th, .compare-table td { padding: 10px; text-align: left; overflow-wrap: anywhere; vertical-align: top; }
.compare-table th:first-child { position: sticky; left: 0; width: clamp(88px, 19vw, 170px); background: #edf4fb; box-shadow: 1px 0 #d5e3ef; }
.compare-table thead th:first-child { vertical-align: bottom; }
.compare-table tbody tr > * { border-top: 1px solid #dce6f0; }
.compare-table tbody th { font-weight: 650; }
.compare-table tbody tr:first-child td { font-weight: 750; }
.compare-table .listing-photo { display: block; max-width: 220px; height: auto; aspect-ratio: 1.35; border-radius: 9px; }
.compare-offer { display: grid; gap: 6px; }
.compare-offer span { text-decoration: underline; text-underline-offset: 3px; }
.compare-table .compare-remove { padding-inline: 0; color: var(--accent); }
.compare-unknown { color: var(--muted); }
.compare-limit { position: fixed; z-index: 3; right: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 9px 13px; border: 1px solid #d5e3ef; border-radius: 14px; background: #f9fbff; box-shadow: 0 4px 16px #22466d24; font-size: .88rem; }
.compare-limit a { display: block; padding: 8px 0 4px; color: var(--accent); text-decoration: underline; }
@supports (grid-template-rows: subgrid) {
  /* Cards in a row share tracks for the photo, title, specs, price and grouped metadata. */
  .listings[data-layout="grid"] .listing,
  .listings[data-layout="grid"] .listing-link,
  .listings[data-layout="grid"] .listing-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .listings[data-layout="grid"] .listing,
  .listings[data-layout="grid"] .listing-link { grid-row: span 5; }
  .listings[data-layout="grid"] .listing-link { height: auto; }
  .listings[data-layout="grid"] .listing-body { grid-row: span 4; }
  .listings[data-layout="grid"] .listing-offer { align-self: start; align-items: baseline; }
}
.listings[data-layout="list"] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.listings[data-layout="list"] .listing-link { display: grid; grid-template-columns: minmax(128px, 260px) minmax(0, 1fr); align-items: center; }
.listings[data-layout="list"] .listing-body { padding: 10px 55px 10px 17px; }
.is-favorites .view-switch { display: none; }
.favorite-category-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.unavailable-favorite { display: grid; grid-template-columns: minmax(128px, 260px) minmax(0, 1fr); align-items: center; }
.unavailable-favorite .listing-photo { filter: saturate(.55); }
.unavailable-favorite-copy { min-width: 0; padding: 7px 45px 4px 14px; }
.unavailable-favorite-copy h2 { margin-block: 2px 7px; }
.unavailable-favorite .price { color: var(--muted); font-size: clamp(1rem, 2vw, 1.5rem); }
.favorite-availability { color: var(--muted); font-size: .82rem; font-weight: 650; }
.favorite-undo {
  position: fixed;
  z-index: 3;
  inset: auto max(12px, calc((100vw - 480px) / 2)) max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 12px;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 3px 14px #22466d34;
  font-size: .88rem;
}
.favorite-undo span { flex: 1; }
.favorite-undo button { flex: none; }
.favorite-undo .icon-button { width: 36px; }
.favorite-undo svg { width: 16px; height: 16px; }
@media (max-width: 780px) {
  .favorite-undo { bottom: calc(64px + max(8px, env(safe-area-inset-bottom))); }
}
.unavailable-favorite .action { padding-inline: 0; color: var(--accent); text-align: left; }
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 12px; }
.empty p { color: var(--muted); margin: 7px 0 18px; }
.catalogue-pagination { display: grid; justify-items: center; gap: 8px; margin: 22px 0 6px; }
.catalogue-pagination p { margin: 0; color: var(--muted); font-size: .86rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 999px; font-weight: 650; }
.footer {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(0, 3fr);
  gap: 22px 32px;
  margin-top: clamp(20px, 4vw, 44px);
  padding: clamp(20px, 3vw, 34px) 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.footer-logo { display: inline-block; width: min(142px, 100%); }
.footer-logo img { width: 100%; height: auto; }
.footer-brand p { max-width: 26ch; margin: 8px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 16px 20px; overflow-wrap: anywhere; }
.footer h2 { margin: 0 0 4px; color: #161a21; font-size: .9rem; line-height: 1.25; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li a { display: inline-flex; align-items: center; min-height: 32px; padding-block: 4px; }
.footer a:hover, .footer a:focus-visible { color: var(--accent); text-decoration: underline; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; }
[data-market-catalogue="account"] .footer-demo { display: none; }
.info-shell { max-width: 800px; }
.info-page { padding: clamp(20px, 5vw, 44px) 0; }
.info-page h1 { margin: 12px 0 22px; font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.15; }
.info-page section { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.info-page h2 { margin: 0 0 6px; font-size: 1.1rem; }
.info-page p, .info-page dl, .info-page ul { margin: 0 0 10px; }
.info-page ul { padding-inline-start: 18px; }
.info-page dt { font-weight: 650; }
.info-page dd { margin: 4px 0 12px; }
.info-page section a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 920px) { .footer { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 640px) {
  .footer { padding-inline: 6px; }
  .footer-links { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8.5rem, calc((100% - 16px) / 2))), 1fr)); gap: 14px 16px; }
  .footer li a { min-height: 40px; }
}
.detail-screen { border-top: 1px solid #fff; padding: 18px 0 12px; }
.back { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 650; }
.back svg { width: 19px; height: 19px; }
.model-back { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.detail-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 4vw, 60px); margin-top: 10px; }
.detail-photo { position: relative; max-width: 600px; }
.detail-photo img { border-radius: 21px; width: 100%; height: auto; background: #e8e2d9; }
.detail-copy { padding: 5px 0; }
.detail-copy h2 { margin: 14px 0 4px; font-size: 1.1rem; }
.detail-copy .listing-offer { margin-top: 13px; }
.detail-copy .city { margin-top: 7px; }
.detail-copy .action { margin-top: 16px; }
.detail-copy p { color: var(--muted); }
.price-guide { margin: 4px 0 0; color: #24536f; font-size: .76rem; font-weight: 650; }
.detail-category { margin-bottom: 6px; font-size: .88rem; }
.detail-copy hr { border: 0; border-top: 1px solid var(--line); margin: 17px 0; }
.verification { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .86rem; }
.verification svg { width: 16px; height: 16px; color: #236244; }
dialog { width: min(555px, calc(100% - 24px)); padding: 18px; max-height: calc(100% - 26px); border: 1px solid #fff; border-radius: 21px; background: #f7faff; color: inherit; box-shadow: 0 18px 72px #1c36434a; }
dialog::backdrop { background: #20304e56; }
.dialog-header, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-header h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.dialog-actions { justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#dialog-body { margin: 7px 0 2px; }
:is(#dialog-body, [data-seller-body]) label { display: grid; min-width: 0; gap: 4px; font-size: .88rem; font-weight: 600; }
.dialog-field { display: grid; min-width: 0; gap: 4px; }
:is(#dialog-body, [data-seller-body]) :is(input, select) { min-width: 0; width: 100%; min-height: 43px; padding: 5px 7px; border: 1px solid #c6d4e3; border-radius: 9px; background: #fff; }
:is(#dialog-body, [data-seller-body]) textarea { width: 100%; padding: 7px; border: 1px solid #c6d4e3; border-radius: 9px; background: #fff; color: inherit; font: inherit; resize: vertical; }
.seller-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
.workspace-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-sellers .action { padding-inline: 8px; color: var(--accent); }
.admin-history li { align-items: start; flex-direction: column; gap: 4px; }
.owned-listings { min-width: 0; }
.owned-listing-filters { display: flex; gap: 6px; overflow-x: auto; padding: 4px 3px 8px; }
.owned-listing-filters button { flex: none; padding-inline: 11px; font-size: .87rem; white-space: nowrap; }
.owned-listing-filters button[aria-pressed="true"] { color: #16456f; background-color: #dceafa; }
.owned-listing-filters span { margin-left: 5px; font-variant-numeric: tabular-nums; }
.owned-listing-list { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid #dce6f1; }
.owned-listing-list li { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 9px 1px; border-bottom: 1px solid #dce6f1; }
.owned-listing-image { flex: 0 0 72px; width: 72px; height: 60px; object-fit: cover; border-radius: 10px; background: #edf4fa; }
span.owned-listing-image { display: grid; place-items: center; margin: 0; font-size: .69rem; }
.owned-listing-text { flex: 1 1 120px; display: grid; min-width: 0; overflow-wrap: anywhere; }
.owned-listing-text a { text-decoration: underline; text-underline-offset: 3px; }
.owned-listing-text .specs { margin-top: 2px; }
.owned-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.owned-listing-list .action { padding-inline: 4px; color: var(--accent); font-size: .84rem; }
.owned-stock { flex: 0 0 100%; }
.owned-stock summary { cursor: pointer; color: var(--accent); font-size: .84rem; }
.owned-stock form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding-top: 6px; }
.owned-stock form label { flex: 1 1 100px; }
.listing-stock-fields { display: grid; gap: 5px; }
.owned-listing-empty { padding: 15px 0 18px; color: var(--muted); }
.owned-listing-footer { position: sticky; bottom: -18px; padding-block: 8px; background: #f7faff; }
.owned-listing-footer .action { width: 100%; }
.seller-follow { margin-top: 12px; }
.follow-section { display: grid; gap: 6px; }
.follow-section :is(h2, h3) { font-size: 1.05rem; }
.follow-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.follow-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dbe6f1; }
.follow-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; padding: 7px 1px; border-bottom: 1px solid #dbe6f1; overflow-wrap: anywhere; }
.follow-list li > div { display: grid; gap: 2px; min-width: 0; }
.follow-list li a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.follow-actions { display: flex; flex-wrap: wrap; }
.follow-list .action, .follow-heading .action { padding-inline: 8px; color: var(--accent); font-size: .88rem; }
.listing-wizard h3 { margin: 5px 0 12px; font-size: clamp(1.28rem, 4.5vw, 1.62rem); letter-spacing: -.025em; }
.listing-wizard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.listing-wizard-toolbar .action, .listing-wizard-facts .action { padding-inline: 0; color: var(--accent); }
.listing-category-options { display: grid; gap: 2px; }
.listing-category-options button { min-height: 44px; padding: 8px 13px; border-radius: 10px; background: #eef4fb; text-align: left; }
.listing-category-options button:is(:hover, .selected) { background: #ddebf8; color: #16456f; }
.listing-wizard-facts { display: grid; gap: 5px; margin-bottom: 12px; padding: 8px 12px; border-radius: 12px; background: #edf4fa; }
.listing-wizard-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 3px 10px; flex-wrap: wrap; }
.listing-wizard-facts dt { color: var(--muted); font-size: .83rem; }
.listing-wizard-facts dd { margin: 0; overflow-wrap: anywhere; }
.listing-wizard-facts dd .action { font-size: .82rem; margin-inline-start: 5px; }
.listing-wizard-specs { min-inline-size: 0; margin: 15px 0 0; padding: 10px; border: 1px solid #d0deea; border-radius: 12px; }
.listing-wizard-specs legend { padding-inline: 4px; font-weight: 650; }
.listing-wizard .dialog-actions { position: sticky; bottom: -18px; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; margin-top: 12px; padding: 8px 0; background: #f7faff; }
.listing-wizard .dialog-actions .action { padding-inline: 10px; }
.listing-wizard .dialog-actions .primary { font-size: .9rem; }
.workspace-fields { display: grid; gap: 9px; }
.workspace-account, .workspace-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 12px; }
.workspace-list { margin: 0; padding: 0; list-style: none; }
.workspace-list li { padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.workspace-status, .workspace-review { padding: 10px 12px; border-radius: 12px; background: #eaf2fa; overflow-wrap: anywhere; }
.workspace-review h4 { margin: 0 0 3px; }
.missing-photo { display: grid; place-items: center; min-height: 125px; background: #e7eff7; color: var(--muted); border-radius: 14px; font-size: .86rem; }
.listing-photo.missing-photo { min-height: 0; }
.media-field { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
:is(#dialog-body, [data-seller-body]) .media-picker {
  display: inline-flex;
  position: relative;
  width: fit-content;
  margin-bottom: 3px;
  gap: 7px;
  color: #153e6b;
  isolation: isolate;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.media-picker::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  z-index: -1;
  border: 1px solid #f8fcff;
  border-radius: inherit;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 4px #31547b24;
}
.media-picker:active::before { box-shadow: inset 0 1px 4px #31547b2b; }
.media-picker svg { width: 17px; height: 17px; }
:is(#dialog-body, [data-seller-body]) .media-picker input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.media-picker:focus-within { outline: 2px solid #215d9f; outline-offset: 3px; }
.media-picker:has(input:disabled) { opacity: .65; }
[data-media-feedback] { overflow-wrap: anywhere; }
.workspace-media { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin-top: 6px; }
.workspace-media-item { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.workspace-media-item .media-cover[aria-pressed="true"] { color: var(--accent); background: #deecf9; }
.workspace-media img { display: block; object-fit: cover; border-radius: 8px; }
.workspace-media video { display: block; width: min(230px, 100%); border-radius: 8px; background: #172430; }
.detail-photo video,
.detail-photo .uploaded-detail .detail-video-start img {
  display: block;
  width: 100%;
  max-height: 440px;
  max-height: min(440px, 65svh);
  border-radius: 21px;
  background: #172430;
  aspect-ratio: auto;
  object-fit: contain;
}
.detail-photo video[hidden] { display: none; }
.detail-video-start { position: relative; display: block; border-radius: 21px; }
.detail-video-start[hidden] { display: none; }
.detail-video-start span {
  position: absolute;
  inset: auto auto 12px 12px;
  padding: 8px 12px;
  border-radius: 16px;
  background: #172430eb;
  color: #fff;
  font-weight: 650;
}
.detail-photo .uploaded-detail img { aspect-ratio: 1; object-fit: contain; }
.detail-gallery { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.detail-gallery[data-gallery-pending] { min-height: 56px; align-items: center; }
.detail-gallery [data-gallery-index] { position: relative; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.detail-gallery button[aria-pressed="true"] { border-color: #3777a7; background: #d9eafa; }
.detail-gallery img { width: 60px; height: 52px; border-radius: 6px; object-fit: cover; }
.detail-gallery span { position: absolute; bottom: 3px; left: 3px; color: #fff; background: #223b51; border-radius: 4px; padding: 1px 4px; font-size: .7rem; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: baseline; }
.seller-profile-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.seller-profile header { margin-bottom: 22px; }
.seller-profile header .action { padding-inline: 0; color: var(--accent); }
.seller-profile h1 { margin: 2px 0 6px; font-size: clamp(1.7rem, 4vw, 2.65rem); overflow-wrap: anywhere; }
.seller-profile h2 { margin-bottom: 12px; font-size: 1.22rem; }
.seller-profile-rating { display: flex; }
.seller-profile-rating .rating { margin-left: 0; }
.detail-facts { display: grid; gap: 0; }
.detail-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-block: 7px; border-bottom: 1px solid #dce6f0; overflow-wrap: anywhere; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; }
.order-review { min-inline-size: 0; margin: 0; padding: 9px 11px 11px; border: 1px solid #d5e1ed; border-radius: 12px; }
.order-review legend { padding-inline: 4px; font-weight: 650; }
.review-options { display: flex; gap: 3px; flex-wrap: wrap; }
:is(#dialog-body, #purchase-review) .review-options label { position: relative; display: block; margin: 0; }
:is(#dialog-body, #purchase-review) .review-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.review-options span { display: grid; width: 44px; min-height: 44px; place-items: center; border-radius: 10px; border: 1px solid #d5e1ed; background: #fff; }
.review-options input:checked + span { color: #153e6b; background: #dceafa; border-color: #7ca3c9; }
.review-options input:focus-visible + span { outline: 2px solid #215d9f; outline-offset: -2px; }
.order-review-confirmed { color: var(--accent); }
.detail-actions button:disabled { color: var(--muted); background: #e6edf5; cursor: default; }
.order-summary, .order-report { display: grid; gap: 6px; background: #eaf2fa; border-radius: 13px; padding: 10px 12px; overflow-wrap: anywhere; }
.order-summary h3, .order-report h3 { margin: 0; }
.inspection-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 9px; min-width: 0; margin: 4px 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 12px; }
.inspection-checklist legend { padding-inline: 4px; font-size: .91rem; font-weight: 650; }
.inspection-checklist > div { display: grid; gap: 4px; min-width: 0; }
.order-facts { margin: 0; }
.order-facts div, .order-timeline li { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
.order-facts dd { margin: 0; font-weight: 620; }
.order-timeline ol { margin: 6px 0; padding: 0; list-style: none; }
.order-timeline time { font-size: .79rem; color: var(--muted); }
.order-delivery { min-width: 0; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
:is(#dialog-body, [data-seller-body]) :is(.order-delivery label, .order-checkbox) { display: flex; align-items: center; gap: 7px; min-height: 42px; }
:is(#dialog-body, [data-seller-body]) input:is([type="radio"], [type="checkbox"]) { width: auto; min-height: auto; accent-color: var(--accent); }
.order-navigation { display: flex; flex-wrap: wrap; gap: 5px; }
.order-navigation [aria-pressed="true"] { background: #dceafa; color: #153e6b; }
#dialog-body [data-workspace-form^="order/"] > .dialog-actions { margin-top: 7px; }
.order-secondary { color: #794342; }

@media (hover: hover) {
  .action:hover { box-shadow: 0 2px 7px #23599237, inset 0 1px 1px #fff; }
  :is(.category, .filters-button, .publish):hover::before { box-shadow: 0 2px 5px #23599229; }
  .plain:hover { background: #e0eaf7; }
  .view-switch .plain:hover { background: transparent; color: #174b86; }
  .listing:hover { box-shadow: 0 5px 16px #244d7924; }
  .listing-link:hover h2 { color: #174b86; }
}
@media (max-width: 1050px) {
  .header { gap: 10px; }
  .logo { width: clamp(140px, 17vw, 193px); }
  .header-nav { gap: 0; }
  .catalog { padding-top: 16px; }
  .listings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  html { scroll-padding-block-end: calc(64px + max(8px, env(safe-area-inset-bottom))); }
  .shell { width: calc(100% - 24px); margin-top: 13px; border-radius: 25px; }
  .header { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 10px; row-gap: 10px; padding: 13px 0 8px; }
  .logo { grid-area: 1 / 1; width: clamp(140px, 27vw, 210px); }
  .region { grid-area: 1 / 2; }
  .region-caret { display: none; }
  .publish { grid-area: 1 / 3; }
  .search { grid-area: 2 / 1 / 3 / -1; }
  .header-nav { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 2;
    inset: auto max(12px, calc((100vw - 550px) / 2)) max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.25rem), 1fr));
    padding: 4px;
    border-radius: 21px;
    box-shadow: 0 3px 14px #22466d27, inset 0 1px 2px #fff;
  }
  .mobile-nav a, .mobile-nav button { display: flex; gap: 2px; align-items: center; justify-content: center; flex-direction: column; min-width: 0; min-height: 47px; padding: 3px 2px; font-size: .74rem; font-weight: 600; border-radius: 16px; background: transparent; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
  .mobile-nav svg { width: 21px; height: 21px; }
  .mobile-nav [aria-current="page"] { color: var(--accent); background: #dceaf9; }
  .footer { padding-bottom: max(70px, 4rem); }
  .compare-limit { bottom: calc(64px + max(8px, env(safe-area-inset-bottom))); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 16px); padding: 0 9px; margin-top: 8px; }
  .header { grid-template-columns: minmax(54px, 1fr) fit-content(31%) fit-content(43%); column-gap: 7px; }
  .logo { width: min(100%, 158px); }
  .region { font-size: .81rem; gap: 3px; }
  .region svg { width: 16px; height: 16px; }
  .publish { padding: 0 10px; font-size: .77rem; }
  .category { min-height: 44px; padding: 3px 11px; font-size: .84rem; }
  .categories { gap: 6px; }
  .catalog-bar { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 13px; }
  .controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: clamp(5px, 2vw, 12px); }
  .filters-button, .sorting { font-size: .81rem; min-height: 44px; }
  .filters-button { flex: none; padding: 0 8px; gap: 4px; }
  .sorting { min-width: min(100%, 8.5em); }
  .sorting select { width: 100%; min-width: 0; padding: 0 21px 0 8px; text-overflow: ellipsis; }
  .sorting [data-icon] { right: 5px; }
  .view-switch { --switch-inset: 0px; --switch-gap: 1px; --switch-button: 39px; flex: none; margin-left: auto; }
  .view-switch .icon-button { min-height: 44px; }
  .view-switch svg { width: 17px; height: 17px; }
  .listings {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(8.5rem, calc((100% - 9px) / 2))), 1fr));
    gap: 9px;
  }
  .listing { padding: 4px; border-radius: 16px; }
  .listing-photo { border-radius: 12px; aspect-ratio: 1.46; }
  .listing-body { padding: 7px 4px 5px; }
  .listing h2 { font-size: clamp(15px, 4vw, 20px); }
  .specs { font-size: .73rem; margin-top: 3px; }
  .listings[data-layout="grid"] .listing h2,
  .listings[data-layout="grid"] .listing-body > .specs {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .listings[data-layout="grid"] .listing h2 { -webkit-line-clamp: 3; }
  .listings[data-layout="grid"] .listing-body > .specs { -webkit-line-clamp: 2; }
  .listing-offer { gap: 4px; margin: 5px 0 6px; }
  .price { font-size: clamp(1.0625rem, 4.7vw, 1.5rem); }
  .condition { font-size: .69rem; padding: 2px 5px; }
  .city, .seller { font-size: .73rem; gap: 3px; min-height: 17px; }
  .city svg, .seller svg { width: 14px; height: 14px; }
  .rating svg { width: 12px; height: 12px; }
  .favorite { top: 7px; right: 7px; width: 38px; min-height: 38px; }
  .favorite::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; }
  .favorite svg { width: 19px; height: 19px; }
  .compare-link { padding-inline: 4px; }
  .compare-table { font-size: .81rem; }
  .compare-table th, .compare-table td { padding: 8px; }
  .compare-scroll-hint { display: block; }
  .listings[data-layout="list"] .listing-link { grid-template-columns: minmax(100px, 32%) minmax(0, 1fr); }
  .listings[data-layout="list"] .listing-body { padding: 5px 36px 5px 8px; }
  .unavailable-favorite { grid-template-columns: minmax(86px, 32%) minmax(0, 1fr); }
  .unavailable-favorite-copy { padding-inline: 8px 39px; }
  .detail-card { grid-template-columns: minmax(0, 1fr); }
  .detail-photo img { width: 100%; max-height: 380px; object-fit: cover; }

  @supports not (grid-template-rows: subgrid) {
    .listings[data-layout="grid"] .listing h2 { min-height: 3lh; }
    .listings[data-layout="grid"] .listing-body > .specs { min-height: 2lh; }
  }
}
@container market-header (max-width: 16rem) {
  .header > .region { grid-area: 1 / 2 / 2 / -1; justify-content: flex-end; }
  .header > .publish { grid-area: 2 / 1 / 3 / -1; }
  .header > .search { grid-area: 3 / 1 / 4 / -1; }
}
@media (min-width: 781px) {
  @container market-header (max-width: 28rem) {
    .header > .region { grid-area: 1 / 3; }
    .header > .publish { grid-area: 1 / 4; }
    .header > .header-nav { grid-area: 1 / 5; }
    .header > .search { grid-area: 2 / 1 / 3 / -1; }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { --glass-blur: none; --glass-fill: #edf3fa; }
  .category[aria-pressed="true"] { --glass-fill: #cee2f8; }
  .view-indicator, .primary { background: #cee2f8; }
  .favorite { background: #e7f0f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .favorite[aria-pressed="true"] { background: #d3eaf8; }
}
@media (forced-colors: active) {
  .view-indicator, .glass.category[aria-pressed="true"]::before { display: none; }
  .glass.category[aria-pressed="true"], .view-switch .icon-button[aria-pressed="true"],
  .header-nav .icon-button[aria-current="page"], .mobile-nav [aria-current="page"] {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
    outline-color: CanvasText;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .view-indicator { transition: none; }
}
