:root {
  color-scheme: light;
  --market-ink: #122019;
  --market-muted: #637068;
  --market-line: #dfe6e1;
  --market-soft: #f2f6f3;
  --market-surface: #ffffff;
  --market-accent: #176b45;
  --market-accent-dark: #0e4f32;
  --market-gold: #c78419;
  --market-danger: #9e2f2f;
  --market-radius: 20px;
  --market-shadow: 0 18px 55px rgba(21, 48, 33, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.market-body {
  margin: 0;
  min-height: 100vh;
  color: var(--market-ink);
  background: #f8faf8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.market-body img { display: block; max-width: 100%; }
.market-body a { color: inherit; }
.market-body button, .market-body input, .market-body select, .market-body textarea { font: inherit; }
.market-body button, .market-body select { cursor: pointer; }

.market-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.market-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(223, 230, 225, .85);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.market-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--market-ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.market-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--market-accent);
  box-shadow: 0 7px 18px rgba(23, 107, 69, .25);
}

.market-primary-nav { display: flex; align-items: center; gap: 18px; margin-right: auto; }
.market-primary-nav a { color: var(--market-muted); text-decoration: none; font-size: 13px; font-weight: 720; }
.market-primary-nav a:hover, .market-primary-nav a:focus-visible, .market-primary-nav a[aria-current="page"] { color: var(--market-accent); }
.market-languages { display: flex; gap: 4px; }
.market-languages a {
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--market-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.market-languages a[aria-current="page"] { color: var(--market-accent); background: #e9f4ed; }
.market-header__actions { display: flex; align-items: center; gap: 10px; }
.market-header__link { color: var(--market-muted); text-decoration: none; font-size: 13px; font-weight: 720; }
.market-header__link:hover { color: var(--market-accent); }
.market-signin { padding: 8px 13px; border-radius: 10px; color: #fff !important; background: var(--market-accent); text-decoration: none; font-size: 13px; font-weight: 760; }
.market-mobile-nav { display: none; }

.market-hero {
  padding: 74px 0 92px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(116, 207, 157, .3), transparent 30%),
    linear-gradient(135deg, #0c3a27, #176b45 64%, #245f45);
}

.market-hero h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.market-hero > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(16px, 2vw, 20px);
}

.market-eyebrow {
  margin: 0;
  color: #6fd399;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.market-content { margin-top: -42px; padding-bottom: 78px; }

.market-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius);
  background: var(--market-surface);
  box-shadow: var(--market-shadow);
}

.market-field { min-width: 0; }
.market-field--wide { grid-column: span 2; }
.market-field label {
  display: block;
  margin: 0 0 7px;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 720;
}

.market-field input, .market-field select, .market-dialog input, .market-dialog select, .market-dialog textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d7dfda;
  border-radius: 12px;
  outline: none;
  color: var(--market-ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}

.market-field input:focus, .market-field select:focus, .market-dialog input:focus, .market-dialog select:focus, .market-dialog textarea:focus,
.listing-contact textarea:focus {
  border-color: var(--market-accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 69, .12);
}

.market-filters__actions {
  grid-column: span 4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.market-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 760;
  transition: transform .16s, background-color .16s, border-color .16s;
}
.market-button:hover { transform: translateY(-1px); }
.market-button:disabled { cursor: wait; opacity: .65; transform: none; }
.market-button--primary { color: #fff; background: var(--market-accent); }
.market-button--primary:hover { background: var(--market-accent-dark); }
.market-button--ghost { border-color: var(--market-line); color: var(--market-muted); background: #fff; }
.market-button--small { min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: 12px; }
.market-button--danger { border-color: #efd4d4; color: var(--market-danger); background: #fff8f8; }
.market-button--danger:hover { border-color: #ddb7b7; background: #fff1f1; }
.market-button--full { width: 100%; }

.market-hero__seller-link {
  display: inline-flex;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 11px;
  color: #fff !important;
  background: rgba(255, 255, 255, .09);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.market-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 2px 17px;
}
.market-results-head p { margin: 0; color: var(--market-muted); }
.market-results-head strong { color: var(--market-ink); }

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.market-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius);
  background: var(--market-surface);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.market-card:hover { transform: translateY(-4px); border-color: #c8d7ce; box-shadow: var(--market-shadow); }
.market-card__link { display: block; height: 100%; text-decoration: none; }
.market-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e7ede9; }
.market-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.market-card:hover .market-card__media img { transform: scale(1.025); }

.market-card__placeholder, .listing-gallery__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #83aa92;
  background: linear-gradient(135deg, #e8f1eb, #d6e5dc);
}
.market-card__placeholder span, .listing-gallery__empty span { font-size: 58px; font-weight: 850; opacity: .55; }
.market-card__badges { position: absolute; inset: 13px 13px auto; display: flex; gap: 7px; }
.market-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--market-accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.market-badge--sponsored { color: #3d2a09; background: #f3c976; }
.market-badge--muted { background: #4b5550; }

.market-card__body { padding: 18px; }
.market-card__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.market-card__title-row h2 { margin: 0; overflow: hidden; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.market-card__title-row > span { color: var(--market-muted); font-size: 14px; }
.market-card__price { margin: 7px 0 13px; font-size: 24px; font-weight: 820; letter-spacing: -.025em; }
.market-card__facts { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 0; }
.market-card__facts div { min-width: 0; }
.market-card__facts dt { color: var(--market-muted); font-size: 11px; }
.market-card__facts dd { margin: 1px 0 0; overflow: hidden; max-width: 140px; font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.market-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--market-accent); font-size: 12px; font-weight: 740; }
.market-card .market-verified { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid var(--market-line); }
.market-verified > span { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--market-accent); font-size: 11px; }

.market-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed #cbd8d0; border-radius: var(--market-radius); color: var(--market-muted); background: #fff; text-align: center; }
.market-empty > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--market-accent); font-size: 28px; font-weight: 850; }
.market-empty p { margin: 0; }

.market-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 34px 0 0; }
.market-pagination a { color: var(--market-accent); text-decoration: none; font-weight: 740; }
.market-pagination a:last-child { text-align: right; }
.market-pagination strong { color: var(--market-muted); font-size: 13px; }

.market-footer { padding: 28px 0; border-top: 1px solid var(--market-line); color: var(--market-muted); background: #fff; font-size: 13px; }

/* Detail page */
.listing-main { padding-top: 26px; padding-bottom: 80px; }
.listing-back { display: inline-block; margin-bottom: 20px; color: var(--market-accent); text-decoration: none; font-weight: 730; }
.listing-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.listing-title-row h1 { margin: 7px 0 3px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.listing-title-row h1 span { color: #78847d; font-weight: 480; }
.listing-title-row > div > p { margin: 0; color: var(--market-muted); }
.listing-badges { display: flex; gap: 7px; }
.listing-price { flex: 0 0 auto; margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 850; letter-spacing: -.045em; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 26px; }
.listing-primary { min-width: 0; }
.listing-gallery, .listing-section, .listing-panel { overflow: hidden; border: 1px solid var(--market-line); border-radius: var(--market-radius); background: #fff; }
.listing-gallery__main { aspect-ratio: 3 / 2; background: #e8eeea; }
.listing-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.listing-gallery__empty { aspect-ratio: 3 / 2; }
.listing-gallery__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: thin; }
.listing-thumb { overflow: hidden; padding: 0; aspect-ratio: 3 / 2; border: 2px solid transparent; border-radius: 10px; background: #e7ece9; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-thumb.is-active { border-color: var(--market-accent); }
.listing-section { margin-top: 24px; padding: clamp(22px, 4vw, 34px); }
.listing-section h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.025em; }
.listing-description { margin: 0; color: #344239; white-space: pre-line; }
.listing-section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.listing-section__head h2 { margin-top: 4px; }
.listing-section__head .market-eyebrow { color: var(--market-accent); }
.listing-history-count { display: inline-flex; min-width: 44px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; color: var(--market-accent); background: #e9f5ed; font-weight: 800; }
.listing-muted { margin: 0; color: var(--market-muted); }

.service-timeline { margin: 5px 0 0; padding: 0; list-style: none; }
.service-timeline li { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 26px; padding: 22px 0; border-top: 1px solid var(--market-line); }
.service-timeline li:last-child { padding-bottom: 0; }
.service-timeline time { color: var(--market-muted); font-size: 13px; font-weight: 700; }
.service-timeline h3 { margin: -4px 0 6px; font-size: 17px; }
.service-timeline p { margin: 3px 0; color: var(--market-muted); font-size: 14px; }
.service-timeline .market-verified { margin-top: 9px; }

.listing-sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.listing-panel { padding: 22px; box-shadow: 0 12px 35px rgba(21, 48, 33, .06); }
.listing-facts dl { margin: 0; }
.listing-facts dl > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--market-line); }
.listing-facts dl > div:first-child { padding-top: 0; }
.listing-facts dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.listing-facts dt { color: var(--market-muted); font-size: 13px; }
.listing-facts dd { margin: 0; text-align: right; font-weight: 740; }
.listing-contact h2 { margin: 0 0 15px; font-size: 21px; letter-spacing: -.025em; }
.listing-contact textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #d7dfda;
  border-radius: 12px;
  outline: none;
}
.listing-form-status { min-height: 20px; margin: 8px 0 0; color: var(--market-accent); font-size: 12px; }
.listing-form-status.is-error { color: var(--market-danger); }
.listing-phone { display: grid; gap: 2px; margin-top: 14px; padding: 13px 15px; border-radius: 12px; color: var(--market-accent); background: #edf7f0; text-decoration: none; }
.listing-phone span { color: var(--market-muted); font-size: 11px; }
.listing-phone strong { font-size: 17px; }
.listing-report-link { border: 0; color: var(--market-muted); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }

.market-dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--market-ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .25); }
.market-dialog::backdrop { background: rgba(10, 22, 15, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.market-dialog form { display: grid; gap: 10px; padding: 23px; }
.market-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 6px; }
.market-dialog__head h2 { margin: 0; font-size: 21px; }
.market-dialog__head button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--market-muted); background: var(--market-soft); font-size: 23px; }
.market-dialog label { color: var(--market-muted); font-size: 12px; font-weight: 720; }
.market-dialog textarea { min-height: 110px; resize: vertical; }

/* Owner listing wizard */
.market-create-dialog { width: min(780px, calc(100% - 32px)); max-height: calc(100vh - 32px); }
.market-create-dialog > form { max-height: calc(100vh - 32px); overflow-y: auto; gap: 18px; padding: 28px; }
.market-create-dialog .market-dialog__head { align-items: flex-start; margin: 0; }
.market-create-dialog .market-eyebrow { color: var(--market-accent); }
.market-create-dialog .market-dialog__head h2 { margin-top: 3px; font-size: 26px; }
.market-create-intro { margin: -8px 0 0; color: var(--market-muted); font-size: 14px; }
.market-create-vehicle { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 14px; border: 1px solid var(--market-line); border-radius: 15px; background: var(--market-soft); }
.market-create-vehicle div { min-width: 0; display: grid; }
.market-create-vehicle strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.market-create-vehicle small { color: var(--market-muted); }
.market-create-section { padding: 16px; border: 1px solid var(--market-line); border-radius: 15px; }
.market-create-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.market-create-section__head h3 { margin: 0; font-size: 16px; }
.market-create-section__head p { margin: 2px 0 0; color: var(--market-muted); font-size: 12px; }
.market-create-section__head > span { color: var(--market-danger); font-weight: 800; }
.market-create-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.market-create-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 11px; background: #e6ece8; cursor: pointer; }
.market-create-photo img { width: 100%; height: 100%; object-fit: cover; }
.market-create-photo input { position: absolute; z-index: 2; top: 6px; right: 6px; width: 22px; min-height: 22px; height: 22px; margin: 0; accent-color: var(--market-accent); }
.market-create-photo:has(input:checked) { border-color: var(--market-accent); box-shadow: 0 0 0 2px rgba(23, 107, 69, .12); }
.market-create-photo--new span { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--market-accent); font-weight: 800; }
.market-create-file { display: inline-flex; align-items: center; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--market-line); border-radius: 10px; color: var(--market-accent) !important; background: #fff; cursor: pointer; }
.market-create-file input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.market-create-hint { margin: 7px 0 0; color: var(--market-muted); font-size: 11px; }
.market-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.market-create-dialog label { display: grid; gap: 6px; }
.market-create-history { display: grid; gap: 8px; }
.market-create-history > p { margin: 0; color: var(--market-muted); font-size: 12px; }
.market-create-history label { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px 10px; border-radius: 11px; background: var(--market-soft); cursor: pointer; }
.market-create-history input, .market-create-checks input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--market-accent); }
.market-create-history label > span { min-width: 0; display: grid; }
.market-create-history small { overflow: hidden; color: var(--market-muted); text-overflow: ellipsis; white-space: nowrap; }
.market-create-checks { display: grid; gap: 8px; }
.market-create-checks label { grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--market-ink); cursor: pointer; }
.market-create-status { min-height: 20px; margin: -4px 0; color: var(--market-accent); font-size: 13px; }
.market-create-status.is-error { color: var(--market-danger); }
.market-create-actions { position: sticky; bottom: -28px; display: flex; justify-content: flex-end; gap: 10px; margin: 0 -28px -28px; padding: 16px 28px 20px; border-top: 1px solid var(--market-line); background: rgba(255, 255, 255, .96); }

/* Seller dashboard */
.market-seller { position: relative; margin-top: -42px; padding-bottom: 78px; }
.market-seller__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 29px;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius);
  background: #fff;
  box-shadow: var(--market-shadow);
}
.market-seller__head .market-eyebrow { color: var(--market-accent); }
.market-seller__head h2 { margin: 4px 0 5px; font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.market-seller__head p:last-child { margin: 0; color: var(--market-muted); }
.market-seller__head .market-button { flex: 0 0 auto; }
.market-seller__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.market-seller__metrics > div { display: grid; gap: 1px; padding: 16px 18px; border: 1px solid var(--market-line); border-radius: 15px; background: rgba(255, 255, 255, .94); }
.market-seller__metrics span { font-size: 24px; font-weight: 840; line-height: 1.1; }
.market-seller__metrics small { color: var(--market-muted); font-size: 11px; font-weight: 720; }
.market-seller__status { min-height: 22px; margin: 16px 2px 5px; color: var(--market-accent); font-size: 13px; font-weight: 680; }
.market-seller__status.is-error { color: var(--market-danger); }
.market-seller__list { display: grid; gap: 16px; }
.market-seller__loading { margin: 0; padding: 40px; border: 1px solid var(--market-line); border-radius: var(--market-radius); color: var(--market-muted); background: #fff; text-align: center; }
.market-seller__loading.is-error { color: var(--market-danger); }
.market-seller-card { min-width: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--market-line); border-radius: var(--market-radius); background: #fff; box-shadow: 0 10px 30px rgba(21, 48, 33, .045); }
.market-seller-card__media { min-height: 190px; display: grid; place-items: center; overflow: hidden; color: #83aa92; background: linear-gradient(135deg, #e8f1eb, #d6e5dc); }
.market-seller-card__media img { width: 100%; height: 100%; object-fit: cover; }
.market-seller-card__media > span { font-size: 54px; font-weight: 850; opacity: .58; }
.market-seller-card__content { min-width: 0; display: grid; align-content: start; padding: 21px 23px; }
.market-seller-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.market-seller-card__title h3 { margin: 0; overflow: hidden; font-size: 21px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.market-seller-card__title span { color: var(--market-muted); font-size: 13px; }
.market-seller-card__price { margin: 4px 0 8px; font-size: 23px; font-weight: 830; letter-spacing: -.025em; }
.market-seller-card__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--market-muted); font-size: 12px; }
.market-seller-card__facts span + span { position: relative; }
.market-seller-card__facts span + span::before { position: absolute; left: -11px; content: "·"; }
.market-seller-card__state { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--market-line); }
.market-seller-card__state p { margin: 0; color: var(--market-muted); font-size: 12px; }
.market-seller-status { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; color: #3e4b43; background: #edf1ee; font-size: 10px; font-weight: 820; letter-spacing: .02em; text-transform: uppercase; }
.market-seller-status--active { color: #0f5a36; background: #dff2e6; }
.market-seller-status--reserved { color: #79500f; background: #f8ebcb; }
.market-seller-status--sold { color: #fff; background: #5a645e; }
.market-seller-status--pending { color: #23527a; background: #e0edf7; }
.market-seller-status--rejected { color: #922d2d; background: #f8dddd; }
.market-seller-status--expired { color: #684b24; background: #eee3d4; }
.market-seller-card__moderation { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--market-danger); border-radius: 3px 10px 10px 3px; color: #742828; background: #fff4f4; }
.market-seller-card__moderation strong { font-size: 11px; }
.market-seller-card__moderation p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 12px; white-space: pre-wrap; }
.market-seller-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.market-seller-card__actions .market-button--danger { margin-left: auto; }
.market-seller-empty { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 1px dashed #cbd8d0; border-radius: var(--market-radius); color: var(--market-muted); background: #fff; text-align: center; }
.market-seller-empty > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 18px; color: #fff; background: var(--market-accent); font-size: 27px; font-weight: 850; }
.market-seller-empty strong { color: var(--market-ink); font-size: 19px; }
.market-seller-empty p { max-width: 430px; margin: 0 0 10px; }
.market-seller-edit { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 32px); }
.market-seller-edit > form { max-height: calc(100vh - 32px); overflow-y: auto; gap: 17px; padding: 27px; }
.market-seller-edit .market-eyebrow { color: var(--market-accent); }
.market-seller-edit label { display: grid; gap: 6px; }
.market-seller-edit__vehicle { margin: -8px 0 0; font-size: 17px; font-weight: 780; }
.market-delete-dialog > form { gap: 18px; padding: 25px; }
.market-delete-dialog p { margin: 0; color: var(--market-muted); font-size: 14px; line-height: 1.5; }
.market-delete-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

/* Marketplace inbox */
.market-messages-body { display: flex; min-height: 100vh; flex-direction: column; }
.market-messages-main { width: 100%; flex: 1; padding-top: 36px; padding-bottom: 56px; }
.market-messages-title { margin-bottom: 22px; }
.market-messages-title .market-eyebrow { color: var(--market-accent); }
.market-messages-title h1 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.market-messages-layout {
  min-height: min(680px, calc(100vh - 205px));
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius);
  background: #fff;
  box-shadow: var(--market-shadow);
}
.market-conversations { min-width: 0; border-right: 1px solid var(--market-line); background: #fbfcfb; }
.market-conversations__head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--market-line);
}
.market-conversations__head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.market-conversations__head span { min-width: 28px; padding: 3px 8px; border-radius: 999px; color: var(--market-accent); background: #e9f5ed; text-align: center; font-size: 12px; font-weight: 800; }
.market-conversations__list { max-height: calc(100vh - 275px); overflow-y: auto; }
.market-messages-loading, .market-conversations__empty { margin: 0; padding: 28px 20px; color: var(--market-muted); text-align: center; font-size: 13px; }
.market-conversation-button {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #e7ece9;
  color: var(--market-ink);
  background: transparent;
  text-align: left;
  transition: background-color .16s;
}
.market-conversation-button:hover { background: #f0f5f2; }
.market-conversation-button.is-active { background: #e8f3ec; box-shadow: inset 3px 0 var(--market-accent); }
.market-conversation-button__avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--market-accent), #359363); font-size: 16px; font-weight: 820; }
.market-conversation-button__body { min-width: 0; }
.market-conversation-button__body strong, .market-conversation-button__body small, .market-conversation-button__body span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-conversation-button__body strong { font-size: 14px; }
.market-conversation-button__body small { margin-top: 1px; color: var(--market-muted); font-size: 11px; }
.market-conversation-button__body span { margin-top: 6px; color: #4d5a52; font-size: 12px; }
.market-conversation-button__meta { display: grid; justify-items: end; gap: 7px; color: var(--market-muted); font-size: 10px; }
.market-conversation-button__unread { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--market-accent); font-size: 10px; font-weight: 800; }

.market-thread { min-width: 0; min-height: 0; background: #fff; }
.market-thread__empty { height: 100%; min-height: 440px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; color: var(--market-muted); text-align: center; }
.market-thread__empty h2 { margin: 8px 0 0; color: var(--market-ink); font-size: 21px; }
.market-thread__empty p { max-width: 390px; margin: 0; }
.market-thread__content { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(280px, 1fr) auto auto; }
.market-thread__head { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--market-line); }
.market-thread__head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.market-thread__head a { display: inline-block; margin-top: 2px; color: var(--market-accent); text-decoration: none; font-size: 12px; font-weight: 680; }
.market-thread__back { display: none; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--market-line); border-radius: 11px; color: var(--market-accent); background: #fff; font-size: 19px; }
.market-thread__messages { min-height: 0; max-height: calc(100vh - 410px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: linear-gradient(180deg, #f9fbf9, #f3f7f4); }
.market-thread-message { max-width: min(78%, 620px); align-self: flex-start; padding: 10px 13px 7px; border: 1px solid #dfe7e2; border-radius: 5px 16px 16px 16px; background: #fff; box-shadow: 0 4px 13px rgba(21, 48, 33, .04); }
.market-thread-message.is-own { align-self: flex-end; border-color: #bcd9c7; border-radius: 16px 5px 16px 16px; background: #dff0e5; }
.market-thread-message p { margin: 0; overflow-wrap: anywhere; color: #26362c; white-space: pre-wrap; }
.market-thread-message time { display: block; margin-top: 4px; color: #758179; text-align: right; font-size: 9px; }
.market-thread__reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--market-line); }
.market-thread__reply textarea { width: 100%; min-height: 46px; max-height: 130px; resize: vertical; padding: 11px 13px; border: 1px solid #d6ded9; border-radius: 13px; outline: none; }
.market-thread__reply textarea:focus { border-color: var(--market-accent); box-shadow: 0 0 0 3px rgba(23, 107, 69, .12); }
.market-thread__status { min-height: 18px; margin: -7px 18px 7px; color: var(--market-danger); font-size: 11px; }

@media (max-width: 980px) {
  .market-body { padding-bottom: 84px; }
  .market-primary-nav { display: none; }
  .market-mobile-nav { position: fixed; z-index: 40; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 64px; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: #dbe8df; background: rgba(14,79,50,.97); box-shadow: 0 14px 40px rgba(21,48,33,.28); backdrop-filter: blur(16px); }
  .market-mobile-nav a { min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; overflow: hidden; color: inherit; text-decoration: none; }
  .market-mobile-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); border-radius: 12px; }
  .market-mobile-nav a > span { color: #9be0b8; font-size: 19px; }
  .market-mobile-nav small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
  .market-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-filters__actions { grid-column: span 2; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-report-link { grid-column: span 2; justify-self: center; }
  .market-messages-layout { grid-template-columns: 310px minmax(0, 1fr); }
  .market-seller-card { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .market-shell { width: min(100% - 24px, 1240px); }
  .market-header__inner { min-height: 62px; }
  .market-header__actions { gap: 4px; }
  .market-header__link { display: none; }
  .market-signin { padding: 7px 9px; font-size: 12px; }
  .market-hero { padding: 52px 0 72px; }
  .market-content { margin-top: -30px; }
  .market-seller { margin-top: -30px; padding-bottom: 52px; }
  .market-seller__head { display: grid; gap: 17px; padding: 20px 18px; border-radius: 16px; }
  .market-seller__head .market-button { width: 100%; }
  .market-seller__metrics { gap: 7px; }
  .market-seller__metrics > div { padding: 12px 9px; text-align: center; }
  .market-seller__metrics span { font-size: 20px; }
  .market-seller-card { grid-template-columns: 1fr; border-radius: 16px; }
  .market-seller-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .market-seller-card__content { padding: 17px 15px; }
  .market-seller-card__state { align-items: flex-start; flex-direction: column; gap: 7px; }
  .market-seller-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .market-seller-card__actions .market-button { width: 100%; }
  .market-seller-card__actions .market-button--danger { grid-column: span 2; margin-left: 0; }
  .market-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-radius: 16px; }
  .market-field--wide { grid-column: span 2; }
  .market-field:nth-of-type(2), .market-field:nth-of-type(3), .market-field:nth-of-type(4), .market-field:nth-of-type(8) { grid-column: span 2; }
  .market-filters__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: 1fr; gap: 15px; }
  .market-card { border-radius: 16px; }
  .market-card__body { padding: 16px; }
  .market-results-head { padding-top: 24px; }
  .listing-main { padding-top: 18px; }
  .listing-title-row { display: block; }
  .listing-title-row h1 { margin-top: 9px; }
  .listing-price { margin-top: 12px; }
  .listing-gallery, .listing-section, .listing-panel { border-radius: 16px; }
  .listing-section { padding: 20px 17px; }
  .listing-sidebar { grid-template-columns: 1fr; }
  .listing-report-link { grid-column: auto; }
  .service-timeline li { grid-template-columns: 1fr; gap: 8px; }
  .service-timeline h3 { margin-top: 0; }
  .market-messages-main { padding-top: 22px; padding-bottom: 28px; }
  .market-messages-title { margin-bottom: 14px; }
  .market-messages-layout { min-height: calc(100vh - 180px); display: block; border-radius: 16px; }
  .market-conversations { height: 100%; min-height: calc(100vh - 180px); border-right: 0; }
  .market-conversations__list { max-height: calc(100vh - 250px); }
  .market-thread { display: none; min-height: calc(100vh - 180px); }
  .market-messages-layout.has-open-thread .market-conversations { display: none; }
  .market-messages-layout.has-open-thread .market-thread { display: block; }
  .market-thread__back { display: block; }
  .market-thread__content { min-height: calc(100vh - 180px); }
  .market-thread__messages { max-height: none; }
  .market-thread-message { max-width: 88%; }
  .market-thread__reply { grid-template-columns: 1fr; }
  .market-thread__reply .market-button { justify-self: end; min-width: 120px; }
  .market-create-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .market-create-dialog > form { max-height: 94dvh; padding: 20px 16px; }
  .market-create-grid { grid-template-columns: 1fr; }
  .market-create-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-create-actions { bottom: -20px; margin: 0 -16px -20px; padding: 13px 16px calc(14px + env(safe-area-inset-bottom)); }
  .market-create-actions .market-button { flex: 1; padding-inline: 10px; }
  .market-seller-edit { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .market-seller-edit > form { max-height: 94dvh; padding: 20px 16px; }
  .market-delete-dialog { width: calc(100% - 24px); }
  .market-delete-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .market-delete-actions .market-button { width: 100%; }
}

@media (max-width: 360px) {
  .market-header__inner { gap: 8px; }
  .market-brand > span:last-child { display: none; }
  .market-languages a { padding-inline: 7px; }
  .market-signin { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
