:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-strong: #fffaf0;
  --ink: #1d2428;
  --muted: #69747a;
  --line: #ddd8cd;
  --auto: #0d766f;
  --auto-soft: #dff3ef;
  --home: #a24721;
  --home-soft: #f6e2d4;
  --focus: #1f6feb;
  --shadow: 0 18px 50px rgba(34, 37, 39, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(29, 36, 40, 0.08);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(18px);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.brand-text {
  font-size: 18px;
}

.category-switch {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.lang-toggle {
  display: none;
}

.lang-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.settings-control {
  position: relative;
  display: inline-flex;
}

.account-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.account-button.is-active,
.account-button:hover {
  background: var(--ink);
  color: #ffffff;
}

.settings-icon {
  width: 22px;
  height: 22px;
}

.settings-icon path,
.settings-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(34, 37, 39, 0.16);
}

.account-menu.is-open {
  display: grid;
  gap: 4px;
}

.account-menu button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.account-menu button:hover:not(:disabled) {
  background: var(--surface-strong);
}

.account-menu button:disabled {
  color: var(--muted);
  cursor: default;
}

.account-subnav {
  display: none;
  border-bottom: 1px solid rgba(29, 36, 40, 0.08);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(18px);
}

.account-subnav.is-visible {
  display: block;
}

.account-subnav-inner {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 auto;
  padding: 10px 0;
}

.account-subnav-group {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.account-subnav-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.account-subnav-button.is-primary {
  background: var(--surface);
  color: var(--ink);
}

.account-subnav-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.category-switch.is-visible {
  display: flex;
}

.switch-link,
.lang-button {
  min-width: 112px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-align: center;
}

.lang-button {
  min-width: 46px;
  padding-inline: 10px;
}

.switch-link.is-active,
.lang-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 56px;
}

.home-shell {
  min-height: calc(100svh - 76px);
  display: grid;
  gap: 28px;
  align-items: center;
}

.choice-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(440px, 1.28fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.choice-copy,
.category-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--auto);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.choice-copy p:not(.eyebrow),
.category-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 36, 40, 0.28);
  box-shadow: 0 22px 64px rgba(34, 37, 39, 0.16);
}

.category-card:focus-visible,
.switch-link:focus-visible,
.lang-button:focus-visible,
.lang-toggle:focus-visible,
.account-button:focus-visible,
.account-menu button:focus-visible,
.account-subnav-button:focus-visible,
.wishlist-button:focus-visible,
.quick-bid-row button:focus-visible,
.modal-close:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.brand:focus-visible,
.quick-switch a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.category-card.auto {
  background: linear-gradient(180deg, #ffffff 0%, var(--auto-soft) 100%);
}

.category-card.home {
  background: linear-gradient(180deg, #ffffff 0%, var(--home-soft) 100%);
}

.icon-wrap {
  display: grid;
  width: min(100%, 250px);
  aspect-ratio: 1;
  place-items: center;
  align-self: center;
}

.icon-wrap img {
  width: 100%;
}

.card-body {
  display: grid;
  gap: 10px;
}

.card-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.card-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.card-action {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.category-shell {
  display: grid;
  gap: 28px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 360px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-shell.auto .eyebrow {
  color: var(--auto);
}

.category-shell.home .eyebrow {
  color: var(--home);
}

.category-hero h1 {
  font-size: clamp(40px, 6vw, 74px);
}

.quick-switch {
  margin-top: 24px;
}

.quick-switch a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  font-weight: 850;
}

.category-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 8px;
  background: var(--auto-soft);
}

.category-shell.home .category-visual {
  background: var(--home-soft);
}

.category-visual img {
  width: min(82%, 300px);
}

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

.stats-row article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  margin-bottom: 4px;
  font-size: 28px;
}

.stats-row span {
  color: var(--muted);
  font-size: 14px;
}

.rules-panel {
  display: grid;
  gap: 16px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rule-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.rule-block h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.2;
}

.rule-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.rule-block li::marker {
  color: var(--ink);
}

.listing-section {
  display: grid;
  gap: 16px;
}

.market-panel {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(29, 36, 40, 0.08);
  border-radius: 8px;
  background: #fff8ea;
}

.market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.market-heading-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.market-heading-copy {
  min-width: 0;
}

.market-heading h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
}

.market-info {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.filter-toggle-button,
.filter-clear-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.filter-toggle-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.filter-toggle-button {
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.filter-toggle-button span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #2fa86d;
  color: #ffffff;
  font-size: 12px;
}

.market-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(29, 36, 40, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.market-filter-panel[hidden] {
  display: none;
}

.filter-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.filter-section > span,
.filter-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-clear-button {
  min-height: 28px;
  padding: 0 10px;
  background: rgba(29, 36, 40, 0.06);
  color: var(--ink);
}

.status-filter-grid,
.filter-chip-row,
.filter-range-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-range-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.status-filter-chip,
.filter-chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(29, 36, 40, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.status-filter-chip input,
.filter-chip input {
  width: 16px;
  min-height: 16px;
}

.status-mini-line {
  width: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.status-mini-line .status-segment {
  height: 5px;
}

.filter-input {
  min-width: 0;
}

.filter-input input,
.filter-input select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

.market-results-meta {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.market-pagination {
  display: flex;
  justify-content: center;
}

.search-bar {
  position: relative;
  display: block;
}

.search-bar span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-bar input {
  min-height: 52px;
  padding-inline: 18px;
  border-color: rgba(29, 36, 40, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

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

.market-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.market-card-loading {
  min-height: 220px;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 850;
}

.market-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #ece7dc;
}

.market-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-photo-link,
.market-card-link {
  color: inherit;
  text-decoration: none;
}

.market-photo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.market-card-link {
  border-radius: 8px;
}

.market-card-link:focus-visible {
  outline: 3px solid rgba(19, 111, 219, 0.5);
  outline-offset: 4px;
}

.wishlist-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 36, 40, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(29, 36, 40, 0.62);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(29, 36, 40, 0.14);
}

.wishlist-button svg {
  width: 24px;
  height: 24px;
}

.wishlist-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.wishlist-button.is-active {
  border-color: #2563c5;
  background: #2563c5;
  color: #ffffff;
}

.wishlist-button.is-active path {
  fill: currentColor;
}

.market-card-body {
  display: grid;
  grid-template-rows:
    minmax(44px, auto)
    minmax(44px, auto)
    minmax(56px, auto)
    minmax(36px, auto)
    minmax(38px, auto)
    auto;
  align-content: start;
  gap: 10px;
}

.market-price-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.market-price-row > div {
  min-width: 0;
}

.market-price-row strong,
.market-price-row span,
.market-price-row small {
  display: block;
}

.market-price-row strong {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.08;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.market-price-row span,
.market-price-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.market-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  min-height: 36px;
}

.market-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #e7e5df;
  font-size: 14px;
  font-weight: 850;
}

.market-badges .hot-badge {
  background: #f151df;
  color: #ffffff;
}

.listing-status-track {
  display: grid;
  gap: 5px;
  min-height: 38px;
  align-content: start;
}

.listing-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-status-segments {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.status-segment {
  height: 7px;
  border-radius: 999px;
  background: rgba(29, 36, 40, 0.08);
}

.status-segment.is-green {
  background: #2fa86d;
}

.status-segment.is-yellow {
  background: #eab308;
}

.status-segment.is-red {
  background: #e4483d;
}

.status-segment.is-empty {
  background: transparent;
}

.listing-status-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.listing-status-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.listing-status-track.is-sold {
  min-height: 38px;
  align-items: center;
}

.listing-status-track.is-sold strong {
  color: #e4483d;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
}

.market-card h3 {
  margin: 0;
  min-height: 44px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.28;
}

.market-card p {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.market-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-top: 6px;
}

.market-card-meta {
  min-height: 44px;
  align-content: start;
}

.market-meta dd {
  font-size: 14px;
}

.wishlist-meta-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.card-wishlist-button {
  flex: 0 0 auto;
  min-width: 154px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #2563c5;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(37, 99, 197, 0.2);
}

.card-wishlist-button.is-active {
  background: #1d2428;
  box-shadow: 0 12px 26px rgba(29, 36, 40, 0.16);
}

.bid-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(29, 36, 40, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.bid-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.bid-panel.is-closed p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.quick-bid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-bid-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.listing-detail-page {
  display: grid;
  gap: 18px;
}

.back-link {
  width: fit-content;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.listing-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.listing-media-column {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.listing-gallery {
  display: grid;
  gap: 10px;
}

.listing-gallery-heading {
  display: grid;
  gap: 6px;
}

.listing-gallery-heading h1,
.listing-gallery-heading p {
  margin: 0;
}

.listing-gallery-heading h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.listing-gallery-heading p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 850;
  line-height: 1.35;
}

.listing-gallery-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #ece7dc;
}

.listing-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-wishlist-button {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(29, 36, 40, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563c5;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(29, 36, 40, 0.2);
}

.detail-wishlist-button svg {
  width: 24px;
  height: 24px;
}

.detail-wishlist-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.detail-wishlist-button.is-active path {
  fill: currentColor;
}

.gallery-nav-button {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-nav-button.is-prev {
  left: 14px;
}

.gallery-nav-button.is-next {
  right: 14px;
}

.gallery-count {
  position: absolute;
  right: 18px;
  bottom: 16px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.listing-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.listing-thumb {
  min-width: 0;
  height: 72px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.listing-thumb.is-active {
  border-color: #2563c5;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #ece7dc;
}

.listing-auction-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-price-row {
  display: grid;
  gap: 4px;
}

.detail-price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-price-row strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detail-price-row small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.detail-meta {
  grid-template-columns: 1fr;
}

.buyer-fee-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.buyer-fee-note span {
  display: block;
  color: rgba(29, 36, 40, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-description {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.listing-description h1,
.listing-description h2,
.listing-description p {
  margin: 0;
}

.listing-description h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.listing-description h2 {
  margin-top: 8px;
  font-size: 22px;
}

.listing-description p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.custom-bid-row {
  gap: 6px;
}

.custom-confirm-row {
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.section-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

.listing-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  min-height: 198px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.listing-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
}

.listing-icon img {
  width: 58px;
}

.listing-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.listing-content h3 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.listing-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-shell {
  display: grid;
  gap: 24px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-hero.compact {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.account-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.account-hero p:not(.eyebrow),
.verified-line,
.form-message,
.form-error {
  color: var(--muted);
  line-height: 1.5;
}

.verified-line {
  margin: 16px 0 0;
  font-weight: 750;
}

.form-error {
  color: #b42318;
  font-weight: 750;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 36, 40, 0.38);
}

.auth-modal {
  width: min(100%, 480px);
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-modal h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.08;
}

.auth-modal p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.info-modal {
  max-width: 620px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-panel,
.vin-panel,
.listing-form,
.locked-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.code-panel {
  grid-column: 2;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input[readonly] {
  background: #f4f0e8;
  color: var(--muted);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.service-options {
  display: grid;
  gap: 10px;
  background: rgba(255, 250, 240, 0.58);
}

.file-upload-panel {
  display: grid;
  gap: 12px;
  background: rgba(255, 250, 240, 0.58);
}

.file-upload-button {
  padding: 12px;
  border: 1px dashed rgba(29, 36, 40, 0.28);
  border-radius: 8px;
  background: #ffffff;
}

.file-upload-button > span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.photo-guidance {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(47, 168, 109, 0.1);
}

.photo-guidance p {
  margin: 0;
  color: rgba(29, 36, 40, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.exclusive-sale-row {
  padding: 12px;
  border: 1px solid rgba(47, 168, 109, 0.22);
  border-radius: 8px;
  background: rgba(47, 168, 109, 0.08);
  color: var(--ink);
  font-weight: 900;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 850;
}

.primary-action {
  border: 0;
  background: var(--ink);
  color: #ffffff;
}

.inline-action {
  padding: 0 16px;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.dev-code {
  margin: 0;
  color: var(--auto);
  font-weight: 800;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-actions .primary-action,
.account-actions .secondary-action {
  padding: 0 16px;
}

.seller-board {
  display: grid;
  gap: 16px;
}

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

.seller-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.seller-card[href]:hover {
  border-color: rgba(29, 36, 40, 0.24);
  box-shadow: 0 16px 38px rgba(34, 37, 39, 0.12);
  transform: translateY(-2px);
}

.seller-card[href]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.seller-card-photo {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: var(--surface-strong);
}

.seller-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-card-head {
  display: grid;
  gap: 12px;
}

.seller-card-head h3 {
  margin: 10px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.seller-card-head strong {
  font-size: 20px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--auto-soft);
  color: var(--auto);
  font-size: 12px;
  font-weight: 900;
}

.status-draft .status-pill {
  background: #fff1c6;
  color: #805b00;
}

.status-sold .status-pill {
  background: #eceff1;
  color: #4a545a;
}

.seller-meta,
.field-list {
  display: grid;
  gap: 10px;
}

.offer-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.offer-list h4 {
  margin: 0;
  font-size: 15px;
}

.offer-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-strong);
}

.offer-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.offer-card span,
.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.vin-result {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.listing-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-form h2,
.locked-panel h2 {
  margin: 0;
}

.full-span,
.listing-form .primary-action {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 980px) {
  .choice-panel,
  .category-hero {
    grid-template-columns: 1fr;
  }

  .choice-panel {
    align-items: start;
  }

  .category-grid,
  .listing-grid,
  .listing-detail,
  .market-grid,
  .seller-listings,
  .rules-grid,
  .vin-result,
  .account-hero.compact {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 320px;
  }

  .icon-wrap {
    width: min(58vw, 220px);
  }

  .listing-auction-panel {
    position: static;
  }

  .market-price-row strong {
    font-size: 28px;
  }

  .market-card h3,
  .market-card p {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .brand {
    justify-content: space-between;
  }

  .header-actions {
    width: 100%;
    padding-right: 0;
  }

  .category-switch.is-visible {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .switch-link {
    min-width: 0;
    padding-inline: 10px;
  }

  .language-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 12;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .settings-control {
    position: absolute;
    top: 14px;
    right: 76px;
    z-index: 12;
  }

  .account-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .settings-icon {
    width: 19px;
    height: 19px;
  }

  .account-menu {
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
  }

  .lang-toggle {
    min-width: 48px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 8px 24px rgba(34, 37, 39, 0.1);
  }

  .lang-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: none;
    min-width: 70px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(34, 37, 39, 0.16);
  }

  .language-switch.is-open .lang-menu {
    display: grid;
    gap: 4px;
  }

  .lang-button {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
  }

  .account-subnav-inner {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px 12px;
    scrollbar-width: none;
  }

  .account-subnav-group {
    margin-left: 0;
  }

  .account-subnav-inner::-webkit-scrollbar {
    display: none;
  }

  .account-subnav-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1;
  }

  .category-card {
    min-height: 280px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .market-panel {
    padding: 14px;
  }

  .market-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .market-heading-actions {
    width: auto;
    align-self: center;
    justify-content: flex-end;
  }

  .filter-toggle-button {
    width: auto;
    min-width: 104px;
    min-height: 40px;
    padding-inline: 10px;
  }

  .market-filter-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .status-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .status-filter-chip {
    justify-content: flex-start;
  }

  .market-meta {
    grid-template-columns: 1fr;
  }

  .market-card-body {
    grid-template-rows: none;
  }

  .listing-status-track,
  .listing-status-track.is-sold,
  .market-card h3,
  .market-card p,
  .market-card-meta {
    min-height: 0;
  }

  .market-price-row strong {
    font-size: 10.5px;
  }

  .wishlist-meta-row {
    align-items: center;
  }

  .card-wishlist-button {
    min-width: 118px;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .listing-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-thumb {
    height: 58px;
  }

  .listing-gallery-heading h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .listing-gallery-heading p {
    font-size: 14px;
  }

  .detail-wishlist-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }

  .detail-wishlist-button svg {
    width: 19px;
    height: 19px;
  }

  .gallery-nav-button {
    width: 36px;
    height: 36px;
    font-size: 32px;
  }

  .gallery-count {
    min-height: 30px;
    font-size: 13px;
  }

  .listing-status-line {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .listing-status-time {
    align-self: end;
  }

  .listing-card {
    grid-template-columns: 1fr;
  }

  .account-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .listing-form {
    grid-template-columns: 1fr;
  }
}
