/* --------------------------------------------------------------------------
   Auction marketplace — layout & components
   -------------------------------------------------------------------------- */
:root {
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bg: #f6f4f1;
  --bg-elevated: #fffcf8;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --muted-light: #a8a29e;
  --border: #e7e5e4;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.08);
  --accent-ring: rgba(194, 65, 12, 0.35);
  --secondary: #44403c;
  --danger: #b91c1c;
  --success-muted: #166534;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 24px rgba(28, 25, 23, 0.08);
  --max: 720px;
  --max-wide: 960px;
  --ebay-blue: #0064d2;
  --ebay-blue-hover: #004a9c;
  --ebay-bg: #f5f5f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ebay-bg);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Utility top bar (login, help, sell, watchlist, my lab) ----- */
.ebay-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e3df;
  font-size: 0.8125rem;
  color: var(--ink);
}

.ebay-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ebay-topbar__left {
  flex: 0 0 auto;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
}

.ebay-topbar__right {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.ebay-topbar__link {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.ebay-topbar__link:hover {
  text-decoration: underline;
  color: var(--ebay-blue);
}

.ebay-topbar__link--login {
  color: var(--ebay-blue);
  font-weight: 600;
}

.ebay-topbar__hello {
  color: var(--ink);
}

.ebay-topbar__logout-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  margin-left: 10px;
  padding: 0;
}

.ebay-topbar__logout-btn:hover,
.ebay-topbar__logout-btn:focus-visible {
  color: var(--ebay-blue);
  text-decoration: underline;
  outline: none;
}

.ebay-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ebay-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.ebay-dropdown__trigger:hover,
.ebay-dropdown__trigger:focus-visible {
  color: var(--ebay-blue);
  outline: none;
}

.ebay-dropdown__trigger--plain {
  padding: 0;
  font-weight: 400;
}

.ebay-dropdown__chev {
  font-size: 0.65em;
  opacity: 0.75;
}

.ebay-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  max-width: min(320px, 92vw);
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e0ded9;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.ebay-dropdown__panel--notifications {
  width: min(380px, 92vw);
  max-height: 440px;
  overflow: auto;
}

.notifications-panel-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid #f3efea;
}

.notifications-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 6px;
  background: #fff;
}

.notifications-filters--types {
  padding-top: 0;
  padding-bottom: 8px;
}

.notifications-digest-hint {
  margin: 0;
  padding: 0 12px 8px;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--muted);
}

.notifications-filter {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--secondary);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
}

.notifications-filter:hover {
  background: #f8f7f5;
}

.notifications-filter:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 1px;
}

.notifications-filter.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.notifications-hidden-hint {
  margin: 0;
  padding: 6px 12px 4px;
  font-size: 0.74rem;
  color: var(--muted);
}

.notifications-clear-filter {
  margin: 0 12px 8px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.notifications-clear-filter:hover {
  background: #f8f7f5;
}

.notifications-group {
  padding-top: 2px;
}

.notifications-group__title {
  margin: 0;
  padding: 8px 12px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: #fff;
  border-top: 1px solid #f3efea;
  position: sticky;
  top: 40px;
  z-index: 2;
}

.notifications-group:first-child .notifications-group__title {
  border-top: 0;
}

.ebay-topbar__notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.notification-item {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0ece6;
  border-left: 3px solid transparent;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: #f6f4f1;
}

.notification-item.is-unread {
  background: rgba(0, 100, 210, 0.06);
  border-left-color: #3b82f6;
}

.notification-item.is-new {
  animation: notification-new-pulse 1.5s ease-out 1;
}

@keyframes notification-new-pulse {
  0% {
    background: #dbeafe;
  }
  100% {
    background: transparent;
  }
}

.notification-item.is-new.is-unread {
  animation-name: notification-new-pulse-unread;
}

@keyframes notification-new-pulse-unread {
  0% {
    background: #bfdbfe;
  }
  100% {
    background: rgba(0, 100, 210, 0.06);
  }
}

.notification-item strong {
  font-size: 0.86rem;
  line-height: 1.3;
}

.notification-item span,
.notification-item time {
  font-size: 0.78rem;
  color: var(--muted);
}

.notification-item__body {
  white-space: pre-wrap;
  line-height: 1.4;
}

.notification-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-item__meta time {
  color: var(--muted-light);
  flex-shrink: 0;
}

.notification-item__action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.notification-item--digest {
  border-left-style: dashed;
  border-left-color: #cbd5e1;
}

.notification-item--digest strong {
  color: var(--ink);
}

.notifications-footer {
  border-top: 1px solid var(--border);
  padding: 6px 0 0;
}

.launch-waitlist-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
}

.launch-waitlist {
  max-width: 540px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.launch-waitlist__card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px 24px 26px;
}

.launch-waitlist__logo-wrap {
  margin: 0 0 20px;
  text-align: center;
}

.launch-waitlist__logo {
  display: block;
  max-width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
}

.launch-waitlist__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}

.launch-waitlist__lead,
.launch-waitlist__hint {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
}

.launch-waitlist__hint {
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.launch-waitlist__form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.launch-waitlist__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
}

.launch-waitlist__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.95rem;
}

.launch-waitlist__input:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-color: #93c5fd;
}

.launch-waitlist__input.launch-waitlist__input--invalid {
  border-color: #b91c1c;
}

.launch-waitlist__input.launch-waitlist__input--invalid:focus {
  outline: 2px solid #fca5a5;
  outline-offset: 1px;
  border-color: #b91c1c;
}

.launch-waitlist__field-error {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #b91c1c;
}

.launch-waitlist__field-error[hidden] {
  display: none;
}

.launch-waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.launch-waitlist__submit {
  margin-top: 4px;
  justify-self: start;
}

.launch-waitlist__msg {
  min-height: 1.25em;
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}

.launch-waitlist__msg.launch-waitlist__msg--error {
  color: #b91c1c;
}

.ebay-dropdown__panel[hidden] {
  display: none !important;
}

.ebay-dropdown__item {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
}

.ebay-dropdown__item:hover {
  background: #f3f2ef;
}

.ebay-dropdown__item--button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.ebay-dropdown__empty {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.ebay-dropdown__row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 0;
}

.ebay-dropdown__item--grow {
  flex: 1;
  min-width: 0;
  padding: 6px 6px 6px 14px;
}

.ebay-dropdown__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ebay-dropdown__remove:hover {
  background: #eee;
  color: var(--danger);
}

.ebay-dropdown--account .ebay-dropdown__panel {
  left: 0;
  right: auto;
}

.listing-watch-row {
  margin: 12px 0 0;
}

.listing-watch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-watch-row__primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.listing-watch-row__primary .btn {
  margin-top: 0;
  width: auto;
  white-space: nowrap;
}

/* Keep key actions reachable on long listings */
body[data-page="listing"] .listing-watch-row {
  position: sticky;
  top: 92px;
  z-index: 6;
  background: var(--surface);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
  body[data-page="listing"] .listing-watch-row {
    top: 0;
    padding: 10px 0;
    border-top: 0;
  }
}

.listing-watch-row + .bids-heading {
  margin-top: 18px;
}

.listing-watch-row__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-left: auto;
}

.listing-watch-row__spacer {
  flex: 1 1 auto;
}

/* Match height/spacing: overrides global .btn--secondary margin-top + width:100% */
.listing-watch-row__actions .btn.btn--secondary {
  margin-top: 0;
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  align-self: center;
  box-sizing: border-box;
}

.listing-save-seller-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  line-height: 0;
  color: #78716c;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.listing-save-seller-btn:hover {
  background: #fafaf9;
  border-color: #d6d3d1;
  color: #57534e;
}

.listing-save-seller-btn:focus-visible {
  outline: 2px solid var(--ebay-blue, #0064d1);
  outline-offset: 2px;
}

.listing-save-seller-btn .listing-save-seller-heart {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.listing-save-seller-btn--saved {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.listing-save-seller-btn--saved:hover {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fef2f2;
}

.listing-save-seller-btn--saved .listing-save-seller-heart {
  fill: #dc2626;
  stroke: none;
}

.listing-watch-row__actions .listing-save-seller-btn {
  margin-top: 0;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  align-self: center;
}

.listing-watch-row__actions .listing-save-seller-icon {
  width: 20px;
  height: 20px;
}

.listing-save-seller-icon {
  display: block;
}

/* ----- eBay-style global header ----- */
.ebay-header {
  background: var(--surface);
  border-bottom: 1px solid #d4d2ce;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ebay-header__top {
  padding: 6px 16px 8px;
}

.ebay-header__top-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  row-gap: 12px;
}

.ebay-header__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
  text-decoration: none;
  transform: translateY(-5px);
}

.ebay-header__logo:hover .ebay-header__logo-img {
  opacity: 0.94;
}

/* Wordmark + gavel — grid row keeps logo + search optically aligned */
.ebay-header__logo-img {
  display: block;
  width: auto;
  height: clamp(86px, 14.5vmin, 138px);
  max-width: min(580px, 56vw);
  object-fit: contain;
  object-position: left center;
}

.ebay-header__search {
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: start;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.ebay-header__search-col {
  width: 100%;
  max-width: 820px;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ebay-header__search-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.ebay-header__search-main-row > .ebay-header__search-wrap,
.ebay-header__search-main-row > .ebay-header__search {
  flex: 1 1 auto;
  min-width: 0;
}

.ebay-header__search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.ebay-header__search-wrap .ebay-header__search {
  flex: 1 1 auto;
}

.category-menu {
  position: relative;
  flex: 0 0 auto;
}

.category-menu__trigger {
  border: 0;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 0.73rem;
  line-height: 1.05;
  text-align: left;
  cursor: pointer;
  padding: 2px 4px 2px 0;
  white-space: nowrap;
}

.category-menu__trigger:hover,
.category-menu__trigger:focus-visible {
  color: var(--ebay-blue);
  outline: none;
}

.category-menu__chev {
  font-size: 0.75em;
}

.category-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(980px, 95vw);
  background: #fff;
  border: 1px solid #d6d3ce;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 14px 14px 12px;
  z-index: 500;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.45fr;
  gap: 14px;
}

.category-menu__panel[hidden] {
  display: none !important;
}

.category-menu__col {
  min-width: 0;
}

.category-menu__col h4 {
  margin: 4px 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-menu__group {
  padding: 2px 6px 6px;
}

.category-menu__group-title {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.category-menu__group-title:hover {
  color: var(--ebay-blue);
}

.category-menu__item {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.84rem;
}

.category-menu__item:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.category-menu__promo {
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(13, 41, 76, 0.86), rgba(0, 99, 199, 0.58)),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(145deg, #0e2b4f, #2d6ea8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  height: 100%;
  align-self: stretch;
}

.category-menu__promo.has-image {
  background:
    linear-gradient(120deg, rgba(10, 32, 61, 0.68), rgba(12, 68, 128, 0.42)),
    var(--promo-image),
    linear-gradient(145deg, #0e2b4f, #2d6ea8);
  background-size: cover, var(--promo-fit, cover), cover;
  background-position: center, right top, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.category-menu__promo-eyebrow {
  margin: 0 0 4px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.category-menu__promo h4 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.category-menu__promo p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.category-menu__promo-btn {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--promo-cta-bg, #60a5fa);
  border: 1px solid rgba(255, 255, 255, 0.32);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.category-menu__promo-btn:hover {
  background: var(--promo-cta-hover, #93c5fd);
  color: #fff;
}

.ebay-header__search:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 100, 210, 0.25);
}

.ebay-header__search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.ebay-header__search-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--ebay-blue);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.ebay-header__search-btn:hover {
  background: var(--ebay-blue-hover);
}

.ebay-header__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  margin-left: auto;
}

.ebay-header__link {
  color: var(--ebay-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ebay-header__link:hover {
  text-decoration: underline;
  color: var(--ebay-blue-hover);
}

.ebay-header__link--primary {
  padding: 6px 18px;
  border: 1px solid var(--ebay-blue);
  border-radius: 999px;
}

.ebay-header__link--primary:hover {
  text-decoration: none;
  background: rgba(0, 100, 210, 0.06);
}

.ebay-header__link--muted {
  color: var(--muted);
  font-weight: 500;
}

.ebay-header__link--muted:hover {
  color: var(--ink);
}

.ebay-header__greet {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebay-header__categories {
  background: var(--surface);
  border-top: 1px solid #ecebea;
}

.ebay-header__categories-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
}

.ebay-header__cat-link {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}

.ebay-header__cat-link:hover {
  background: #f0f0f0;
  color: var(--ink);
}

.ebay-header__cat-flyout {
  position: fixed;
  top: 0;
  left: 0;
  width: min(760px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid #d6d3ce;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 12px 12px;
  z-index: 450;
}

.ebay-header__cat-flyout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ebay-header__cat-flyout-head strong {
  font-size: 0.92rem;
}

.ebay-header__cat-flyout-head a {
  font-size: 0.8rem;
  text-decoration: none;
}

.ebay-header__cat-flyout-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 8px;
}

.ebay-header__cat-flyout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
}

.ebay-header__cat-flyout-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ebay-header__cat-flyout-col h4 {
  margin: 2px 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ebay-header__cat-flyout-item {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 0.82rem;
  text-decoration: none;
}

.ebay-header__cat-flyout-item:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.ebay-header__cat-flyout-banner {
  border-radius: 10px;
  min-height: 188px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 31, 66, 0.85), rgba(16, 96, 175, 0.58)),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.26), transparent 45%),
    linear-gradient(145deg, #1d3e63, #467fb2);
}

.ebay-header__cat-flyout-banner.has-image {
  background:
    linear-gradient(120deg, rgba(8, 31, 66, 0.65), rgba(16, 96, 175, 0.38)),
    var(--promo-image),
    linear-gradient(145deg, #1d3e63, #467fb2);
  background-size: cover, var(--promo-fit, cover), cover;
  background-position: center, center center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.ebay-header__cat-flyout-banner-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.ebay-header__cat-flyout-banner strong {
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.ebay-header__cat-flyout-banner span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.ebay-header__cat-flyout-banner-btn {
  display: inline-block;
  margin-top: 10px;
  align-self: flex-start;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--promo-cta-bg, #60a5fa);
  color: #fff;
}

.ebay-header__cat-flyout-banner-btn:hover,
.ebay-header__cat-flyout-banner-btn:focus-visible {
  background: var(--promo-cta-hover, #93c5fd);
  outline: none;
}

.admin-banner-preview-wrap {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.admin-banner-actions {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-banner-upload-out {
  font-size: 0.8rem;
  color: var(--muted);
  align-self: center;
}

.admin-banner-library {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.admin-banner-library__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-banner-library__head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.admin-banner-library__hint {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-banner-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.admin-banner-library__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.admin-banner-library__delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #991b1b;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.admin-banner-library__delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-banner-library__thumb {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
}

.admin-banner-library__name {
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-config-tools {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-config-tools input,
.admin-config-tools select {
  min-height: 34px;
}

.admin-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-date-filter__label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-pager {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-pager__size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  top: -3px;
}

.admin-pager__size select {
  min-height: 34px;
}

.admin-pager__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  top: -2px;
}

.admin-pager .btn {
  margin-top: 0;
  position: relative;
  top: -2px;
}

.admin-pager__info {
  font-size: 0.88rem;
  color: var(--muted);
  min-width: 86px;
  text-align: center;
}

.admin-header__brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  background: #dbeafe;
}

.admin-role-badge--support {
  border-color: #a7f3d0;
  color: #065f46;
  background: #d1fae5;
}

.admin-sidebar__group--nested {
  margin: 0;
  padding: 0;
  border: none;
}

.admin-sidebar__children--nested {
  margin-left: 10px;
  border-left: 1px solid #d4d4d8;
  padding-left: 8px;
}

.admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-section__head h2,
.admin-section__head h3 {
  margin: 0;
}

.admin-section__head .btn--secondary {
  margin-top: 0;
  width: auto;
  flex: 0 0 auto;
}

.admin-section .section__subtitle {
  margin: 6px 0 12px;
  max-width: none;
}

.admin-data-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.admin-section > .admin-data-wrap + .admin-data-wrap {
  margin-top: 12px;
}

.admin-table-wrap {
  overflow: auto;
  margin-top: 6px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ececec;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-data-wrap .btn--secondary,
.admin-config-tools .btn--secondary {
  width: auto;
  margin-top: 0;
}

.admin-audit-wrap {
  margin-top: 12px;
}

.admin-audit-wrap h4 {
  margin: 0 0 8px;
}

.admin-recovery-codes {
  white-space: pre-wrap;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.8rem;
}

.admin-table textarea {
  width: 100%;
  max-width: 280px;
  min-height: 56px;
  resize: vertical;
}

.admin-table--listing-reports {
  min-width: 920px;
}

.admin-table__cell-clip {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
}

.admin-muted {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.admin-note-line {
  margin-top: 4px;
  color: var(--muted);
}

.admin-listing-report-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.admin-listing-report-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-links {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-disputes-bulk-hint {
  margin-top: 6px;
  margin-bottom: 0;
}

.admin-disputes-bulk-status {
  margin: 0 0 8px;
  min-height: 1.25em;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-audit-filter {
  width: 8.5rem;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
}

.admin-ops-notes {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-ops-notes .field {
  margin-top: 10px;
}

.admin-risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-risk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid transparent;
}

.admin-risk-badge--high {
  color: #8b1d1d;
  background: #ffe5e5;
  border-color: #f4b9b9;
}

.admin-risk-badge--med {
  color: #7a4b00;
  background: #fff2db;
  border-color: #f0d19c;
}

.admin-risk-badge--info {
  color: #1b4d80;
  background: #e8f2ff;
  border-color: #bfd9ff;
}

.admin-risk-badge--ok {
  color: #1f5b2a;
  background: #e8f7ec;
  border-color: #bfe5c9;
}

.admin-inbox-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
}

.admin-inbox-thread {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.admin-inbox-thread.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.admin-inbox-thread strong {
  display: block;
  font-size: 0.86rem;
}

.admin-inbox-thread span,
.admin-inbox-thread time {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-inbox-conv {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
  background: #fff;
}

.admin-inbox-msg {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.admin-inbox-msg--me {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.admin-inbox-preview-actions {
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-inbox-open-as__hint {
  margin: 0 0 8px;
  font-size: 0.86rem;
}

.admin-inbox-open-as {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed #93c5fd;
  background: #f8fafc;
}

.admin-inbox-open-as__banner {
  margin: 0 0 6px;
  font-weight: 600;
  color: #1e3a5f;
}

.admin-inbox-conv--readonly {
  max-height: 240px;
  background: #fafafa;
}

.admin-inbox-open-as__foot {
  margin: 8px 0 0;
}

.admin-activity-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9ca3af;
  display: inline-block;
}

.admin-activity-dot--online {
  background: #10b981;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.admin-pill--role-main {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #93c5fd;
}

.admin-pill--role-support {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.admin-pill--online {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.admin-pill--offline {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.admin-banner-preview__meta {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-banner-preview {
  border-radius: 10px;
  min-height: 188px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 31, 66, 0.85), rgba(16, 96, 175, 0.58)),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.26), transparent 45%),
    linear-gradient(145deg, #1d3e63, #467fb2);
}

.admin-banner-preview.has-image {
  background:
    linear-gradient(120deg, rgba(8, 31, 66, 0.65), rgba(16, 96, 175, 0.38)),
    var(--promo-image),
    linear-gradient(145deg, #1d3e63, #467fb2);
  background-size: cover, var(--promo-fit, cover), cover;
  background-position: center, center center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.admin-banner-preview__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.admin-banner-preview__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.1;
}

.admin-banner-preview__body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.admin-banner-preview__cta {
  margin-top: 10px;
  align-self: flex-start;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--promo-cta-bg, #60a5fa);
  color: #fff;
  text-decoration: none;
}

.home-hero {
  margin: 0 0 28px;
  padding: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.5;
}

/* Logged-out users see generic active listings only. */
body[data-page="home"][data-auth="out"] #homeDiscoverySection,
body[data-page="home"][data-auth="out"] #keepShoppingSection {
  display: none !important;
}

.home-discovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.home-discovery-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}

.home-discovery-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.home-discovery-card__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.home-discovery-card__see-all {
  border: 0;
  background: transparent;
  color: var(--ebay-blue);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.home-discovery-card__see-all:hover {
  text-decoration: underline;
}

.home-discovery-card__see-all:disabled,
.home-discovery-card__see-all[aria-disabled="true"] {
  color: var(--muted-light);
  cursor: default;
  text-decoration: none;
}

.home-discovery-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-discovery-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 96px;
}

.home-discovery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.home-discovery-tile span {
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.home-discovery-card__stack {
  display: grid;
  gap: 8px;
}

.home-resell-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.home-resell-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-resell-item__thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.home-resell-item strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-resell-item em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.home-resell-item__thumb--placeholder {
  background: #f3f4f6;
}

.home-resell-item__thumb-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* No thumbnail — avoid 56px column so CTA copy can wrap normally */
.home-resell-item--cta {
  grid-template-columns: 1fr;
}

.home-discovery-card--promo {
  background: linear-gradient(160deg, #4338ca 0%, #4f46e5 55%, #6366f1 100%);
  color: #fff;
}

.home-discovery-card--promo .btn {
  margin-top: 8px;
  background: #fff;
  color: #1f2937;
}

.home-discovery-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

/* Match listing grid column width; multiple cards scroll horizontally */
.home-strip .listing-card {
  flex: 0 0 280px;
  min-height: 0;
}

/* One card in the strip — use full row width (same visual weight as Active listings) */
.home-strip .listing-card:only-child {
  flex: 0 1 360px;
  max-width: 360px;
}

@media (max-width: 1050px) {
  .home-discovery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-discovery {
    grid-template-columns: 1fr;
  }
}

.home-filters {
  margin: -12px 0 18px;
}

.home-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--secondary);
}

.home-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.home-active-filters__label {
  font-size: 0.84rem;
  color: var(--muted);
}

.home-active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.82rem;
  color: var(--secondary);
}

.home-active-filters__chip-remove {
  color: var(--link);
  text-decoration: none;
}

.home-active-filters__chip-remove:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .home-active-filters {
    gap: 6px;
    margin-bottom: 10px;
  }

  .home-active-filters__label {
    width: 100%;
    font-size: 0.8rem;
  }

  .home-active-filters__chip {
    width: 100%;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
  }
}

.ebay-header__search-secondary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  width: 100%;
  margin-top: 8px;
  padding-right: calc(var(--save-search-offset, 0px) + 4px);
  box-sizing: border-box;
}

.ebay-header__search-nearme {
  align-self: center;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  user-select: none;
}

.ebay-header__near-radius {
  min-width: 92px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.78rem;
  padding: 2px 8px;
}

.ebay-header__near-radius:disabled {
  opacity: 0.65;
  cursor: default;
}

.ebay-header__auction-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ebay-header__auction-type-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}

.ebay-header__auction-type-select {
  min-width: 158px;
  max-width: min(220px, 42vw);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.82rem;
  padding: 5px 10px;
  cursor: pointer;
}

.ebay-header__auction-type-select:hover {
  border-color: #93c5fd;
}

.ebay-header__search-tools {
  margin-top: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: none;
  margin-left: 0;
}

.ebay-header__search-tools .btn {
  margin-top: 0;
  width: auto;
  white-space: nowrap;
}

.search-save-out {
  flex: 0 1 auto;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1em;
  max-width: 180px;
}

.save-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.save-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.save-search-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  padding: 16px;
}

.save-search-modal__card h3 {
  margin: 0 0 6px;
}

.save-search-modal__card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.save-search-modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.listing-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.listing-report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.listing-report-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 440px);
  max-height: min(88vh, 560px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  padding: 16px;
}

.listing-report-modal__card h3 {
  margin: 0 0 6px;
}

.listing-report-modal__lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.listing-report-modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.confirm-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  padding: 16px;
}

.confirm-modal__card h3 {
  margin: 0 0 6px;
}

.confirm-modal__card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.confirm-modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bulk-result-list {
  margin: 4px 0 0;
  padding-left: 18px;
  max-height: 160px;
  overflow: auto;
}

.bulk-result-list li {
  margin: 3px 0;
  font-size: 0.84rem;
  color: var(--secondary);
}

.bulk-result-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
}

.image-lightbox__card {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(8px);
}

.image-lightbox__img {
  max-width: min(1200px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  background: #0b1220;
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.image-lightbox__nav:hover {
  background: rgba(15, 23, 42, 0.72);
}

.image-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.image-lightbox__nav--prev {
  left: 14px;
}

.image-lightbox__nav--next {
  right: 14px;
}

.image-lightbox__counter {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 700px) {
  .ebay-header__cat-flyout {
    left: 8px;
    width: min(96vw, 560px);
  }

  .ebay-header__cat-flyout-items {
    grid-template-columns: 1fr;
  }

  .ebay-header__cat-flyout-layout {
    grid-template-columns: 1fr;
  }

  .ebay-header__cat-flyout-columns {
    grid-template-columns: 1fr;
  }

  .ebay-header__search-secondary-row {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
  }

  .ebay-header__auction-type {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ebay-header__auction-type-select {
    max-width: none;
    width: 100%;
  }

  .ebay-header__search-nearme {
    align-self: flex-start;
    margin: 0;
  }

  .ebay-header__search-tools {
    flex-wrap: nowrap;
    max-width: none;
    margin-left: 0;
  }

  .ebay-header__search-main-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .search-save-out {
    display: none;
  }
}

.guest-sell-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.guest-sell-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.guest-sell-overlay__card {
  position: fixed;
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  padding: 18px 18px 16px;
  pointer-events: auto;
}

.guest-sell-overlay__arrow {
  position: absolute;
  top: -8px;
  left: clamp(20px, var(--guest-overlay-arrow-left, 70px), calc(100% - 20px));
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.guest-sell-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
}

.guest-sell-overlay__eyebrow {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.7rem;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.guest-sell-overlay__card h3 {
  margin: 0 0 14px;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--secondary);
  font-family: var(--font-sans);
}

.guest-sell-overlay__list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--secondary);
  display: grid;
  gap: 7px;
}

.guest-sell-overlay__cta {
  width: 100%;
  justify-content: center;
  color: #fff;
}

.guest-sell-overlay__cta:hover,
.guest-sell-overlay__cta:focus-visible,
.guest-sell-overlay__cta:visited {
  color: #fff;
}

.ebay-topbar__sep {
  color: var(--muted-light);
  margin: 0 6px;
}

.ebay-topbar__link--menu {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.guest-sell-overlay__sub {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.page-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .ebay-header__top-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .ebay-header__logo {
    justify-content: center;
  }

  .ebay-header__logo-img {
    height: clamp(60px, 18vw, 96px);
    max-width: min(420px, 82vw);
    object-position: center;
  }

  .ebay-header__search {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  .ebay-header__search-wrap {
    flex-wrap: wrap;
  }

  .category-menu__panel {
    width: min(540px, 94vw);
    grid-template-columns: 1fr;
  }

  .category-menu__promo {
    min-height: 180px;
    height: 100%;
  }

  .ebay-header__actions {
    margin-left: 0;
  }
}

/* ----- Site header ----- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header--home {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border-bottom-color: transparent;
  padding-bottom: 8px;
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 20px 24px 16px;
}

.site-header__inner--narrow {
  max-width: var(--max);
  padding: 14px 24px;
}

.site-brand {
  max-width: 38rem;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.site-tagline {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* ----- Main layout ----- */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

.site-main--listing {
  max-width: min(820px, 100%);
}

.site-main--form {
  max-width: 560px;
}

.site-main--auth {
  max-width: 720px;
}

.site-main--wide {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.site-main--wide.site-main--form {
  max-width: 560px;
}

.site-main--wide.site-main--auth {
  max-width: 720px;
}

.site-main--wide.site-main--listing {
  max-width: min(1180px, 100%);
}

/* ----- Toolbar (home + listing) ----- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.toolbar__user,
.toolbar__guest {
  color: var(--muted);
  margin-right: auto;
}

.toolbar__user {
  color: var(--ink);
  font-weight: 500;
}

.toolbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.toolbar__link:hover {
  background: var(--surface);
  border-color: var(--muted-light);
  color: var(--ink);
}

.toolbar__link--accent {
  color: var(--accent);
  border-color: rgba(194, 65, 12, 0.35);
  background: var(--accent-soft);
}

.toolbar__link--accent:hover {
  background: rgba(194, 65, 12, 0.14);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ----- Home: section + grid ----- */
.section__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.section__title--sub {
  margin-top: 14px;
  font-size: 1.02rem;
}

.section--ended {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.my-ended-bulk {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  justify-content: start;
}

.my-ended-bulk__count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}

.my-ended-bulk .btn {
  width: auto;
  margin-top: 0;
  justify-self: start;
}

.my-ended-bulk__range {
  margin: 0;
  min-width: 170px;
}

.my-ended-bulk__range .field__label {
  font-size: 0.72rem;
}

.my-ended-bulk input[type="date"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.78rem;
  color: var(--secondary);
  background: var(--surface);
  min-width: 138px;
}

.my-ended-selectable {
  position: relative;
}

.my-ended-selectable.is-selected .listing-card {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.my-ended-select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  transform: scale(1.1);
}

.my-ended-selectable .listing-card {
  cursor: pointer;
}

.my-ended-relist {
  margin: 8px 0 0 30px;
}

.section__subtitle {
  margin: -8px 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 40rem;
}

.history-filters {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.88rem;
}

.history-filters select {
  width: auto;
  min-width: 130px;
  padding: 6px 9px;
}

.empty-state--muted {
  background: var(--bg);
  border-style: solid;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.listing-card {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.listing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 65, 12, 0.28);
  transform: translateY(-3px);
}

.listing-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.listing-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 25, 23, 0.78);
  border-radius: 6px;
  pointer-events: none;
}

.listing-card--ended {
  opacity: 0.96;
}

.listing-card--ended .listing-card__media img {
  filter: saturate(0.92);
}

.listing-card--ended:hover {
  opacity: 1;
}

.listing-card--ended:hover .listing-card__media img {
  filter: none;
}

.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e7e5e4 0%, #f5f5f4 50%, #e7e5e4 100%);
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  /* Show full photo — cover was clipping tops (logos, bezels) in 4:3 boxes */
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.listing-card:hover .listing-card__media img {
  /* Softer zoom + center origin so overflow:hidden doesn’t shave the top */
  transform: scale(1.02);
  transform-origin: center center;
}

.listing-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.listing-card__placeholder {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.listing-card__content {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card__content--lead {
  padding: 16px 18px 10px;
  flex: 0 0 auto;
}

.listing-card__footer {
  margin-top: auto;
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.listing-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: auto;
}

.listing-card__seller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.listing-card__seller-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d6d3d1;
  background-color: #f5f5f4;
  flex-shrink: 0;
}

.avatar-fallback-silhouette {
  position: relative;
  background: #f3f4f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='%239ca3af'/%3E%3Cpath d='M4 21c0-4.2 3.6-7 8-7s8 2.8 8 7' fill='%239ca3af'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 76% 76%;
}

.listing-card__seller-avatar--fallback {
}

.listing-card__seller-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

.listing-card__seller-link:hover {
  text-decoration: underline;
}

.listing-card__price {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.listing-card__submeta {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.listing-card__delivery {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.listing-card__delivery-note {
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #64748b;
  font-style: italic;
  cursor: default;
}

.listing-card__near-confidence {
  margin: 4px 0 0;
  font-size: 0.77rem;
  color: #334155;
}

.listing-card__feedback-mini {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.listing-card__feedback-mini-stars {
  color: #b45309;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.listing-card__feedback-mini-count {
  font-weight: 500;
}

.listing-card__bid-status {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.listing-card__bid-status--leading {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.listing-card__bid-status--outbid {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.listing-card__ends {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-light);
}

.listing-card__actions {
  padding: 0 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-order-pill-wrap {
  margin: 10px 0 0;
}

.listing-order-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.listing-order-pill--pending {
  background: #f4f7fb;
  color: #31557d;
  border-color: #d2e2f1;
}

.listing-order-pill--paid {
  background: #ecf9f1;
  color: #25613b;
  border-color: #b9e8cb;
}

.listing-order-pill--collected {
  background: #e9f7fb;
  color: #1f6072;
  border-color: #b9e5f0;
}

.listing-order-pill--completed {
  background: #e8f8ee;
  color: #1c6b3e;
  border-color: #aee0c0;
}

.listing-order-pill--closed {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.listing-order-pill--dispute {
  background: #fff0f0;
  color: #8e2727;
  border-color: #f3b7b7;
}

.action-needed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.action-needed-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 10px;
}

.action-needed-card--pending {
  background: #fffaf0;
  border-color: #f1dfb8;
}

.action-needed-card--dispute {
  background: #fff3f3;
  border-color: #efc5c5;
}

.action-needed-card--feedback {
  background: #f4f9fb;
  border-color: #c5dce8;
}

.action-needed-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.action-needed-card__role {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.action-needed-card__status {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff3d8;
  color: #8a5c12;
}

.action-needed-card__status--dispute {
  background: #fff0f0;
  color: #8e2727;
}

.action-needed-card__status--feedback {
  background: #e8f4f8;
  color: #1a5f7a;
}

.action-needed-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.action-needed-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.action-needed-card__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-needed-card__actions .btn {
  margin-top: 0;
  width: auto;
}

.action-needed-card__quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-needed-card__quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.action-needed-card__quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.saved-searches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.saved-sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.saved-seller-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.saved-seller-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.saved-seller-card__head h3 {
  margin: 0;
  font-size: 0.96rem;
}

.saved-seller-card__profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.saved-seller-card__profile:hover {
  text-decoration: underline;
}

.saved-seller-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d6d3d1;
  background-color: #f5f5f4;
  flex-shrink: 0;
}

.saved-seller-card__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.saved-seller-card__avatar-icon {
  width: 76%;
  height: 76%;
  display: block;
}

.saved-seller-card__meta {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.saved-seller-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-seller-card__actions .btn {
  margin-top: 0;
  width: auto;
  white-space: nowrap;
}

.profile-photo-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-photo-field__preview-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #d6d3d1;
  background: #f5f5f4;
  flex-shrink: 0;
}

.profile-photo-field__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-field__preview[hidden] {
  display: none !important;
}

.profile-photo-field__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f3f4f6;
  box-sizing: border-box;
}

.profile-photo-field__silhouette {
  width: 70%;
  height: 70%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  flex-shrink: 0;
}

.profile-photo-field__controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-photo-field__upload-btn.btn {
  margin-top: 0;
  width: auto;
}

.profile-photo-field__remove-btn.btn {
  margin-top: 0;
  width: auto;
}

.profile-photo-field__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.page-intro--tight {
  margin-top: -4px;
  margin-bottom: 12px;
}

.feedback-panel {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.feedback-panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feedback-panel__hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.feedback-form .field {
  margin-bottom: 10px;
}

.feedback-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.feedback-panel + .bids-heading {
  margin-top: 18px;
}

.saved-searches-toolbar {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.saved-searches-toolbar input {
  width: min(360px, 100%);
}

.saved-searches-toolbar select {
  min-width: 150px;
}

.saved-searches-toolbar input,
.saved-searches-toolbar select {
  min-height: 40px;
}

.saved-searches-email-status {
  font-size: 0.78rem;
  color: var(--muted);
}

.saved-searches-email-status.is-ok {
  color: #166534;
  font-weight: 600;
}

.saved-searches-email-status.is-off {
  color: #92400e;
  font-weight: 600;
}

.saved-search-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.saved-search-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.saved-search-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.saved-search-card__query {
  margin-bottom: 6px;
}

.saved-search-card__why {
  margin-top: 6px;
  margin-bottom: 6px;
  color: var(--secondary);
  line-height: 1.35;
}

.saved-search-card__alerts-meta {
  margin-top: 8px;
}

.saved-search-card__alerts {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
}

.saved-search-card__alerts .field {
  margin: 0;
}

.saved-search-card__alerts .field__label {
  font-size: 0.72rem;
}

.saved-search-card__alerts .btn {
  margin-top: 0;
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.saved-search-card__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.saved-search-card__actions .btn {
  margin-top: 0;
  width: auto;
}

@media (max-width: 560px) {
  .saved-search-card {
    padding: 10px;
  }

  .saved-search-card h3 {
    margin-bottom: 4px;
    font-size: 0.92rem;
  }

  .saved-search-card p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .saved-search-card__why {
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .saved-searches-toolbar {
    align-items: stretch;
  }

  .saved-searches-toolbar input {
    width: 100%;
    min-width: 0;
  }

  .saved-searches-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .saved-search-card__actions {
    flex-wrap: wrap;
  }

  .saved-search-card__alerts {
    grid-template-columns: 1fr;
  }

  .saved-search-card__actions .btn {
    flex: 1 1 120px;
  }

  .my-ended-bulk {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.admin-cats-builder {
  display: grid;
  gap: 10px;
}

.admin-cat-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px;
}

.admin-cat-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-sub-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.admin-sub-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-cats-actions {
  margin: 10px 0 0;
}

.admin-advanced {
  margin-top: 10px;
}

.admin-advanced > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

/* ----- Admin console ----- */
body[data-page="admin"] {
  background: #f3f4f6;
}

.admin-header {
  background: #111827;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-header__brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.admin-header__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header__link {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.88rem;
}

.admin-header__link:hover {
  color: #fff;
}

.admin-header__link--button {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.admin-sidebar {
  align-self: start;
  position: sticky;
  top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.admin-sidebar h2 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.admin-sidebar__item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.86rem;
}

.admin-sidebar__item:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.admin-sidebar__item.is-active {
  background: #eef3ff;
  color: #1d4ed8;
  font-weight: 600;
}

.admin-sidebar__item.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.admin-sidebar__children {
  margin: 2px 0 8px 10px;
  padding-left: 10px;
  border-left: 1px solid #d1d5db;
}

.admin-sidebar__group {
  margin: 0;
}

.admin-sidebar__group > summary {
  list-style: none;
}

.admin-sidebar__group > summary::-webkit-details-marker {
  display: none;
}

.admin-sidebar__group > summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.admin-sidebar__group:not([open]) > summary::after {
  content: "▸";
}

.admin-sidebar__item--child {
  font-size: 0.82rem;
  padding: 6px 8px;
}

.admin-sidebar__meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-content .section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-top: 12px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-overview-subhead {
  margin: 16px 0 10px;
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 700;
}

.admin-kpi-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.admin-kpi-card__label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-kpi-card__value {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
}

/* ----- My auctions polish ----- */
body[data-page="my-auctions"] .page-heading {
  margin-bottom: 6px;
}

body[data-page="my-auctions"] .page-intro {
  margin-bottom: 18px;
}

body[data-page="my-auctions"] .my-auctions-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

body[data-page="my-auctions"] .my-auctions-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

body[data-page="my-auctions"] .my-auctions-tabs__link:hover {
  border-color: #a7b7cf;
  color: var(--ebay-blue);
}

body[data-page="my-auctions"] .my-auctions-tabs__link.is-active {
  background: #e9f2ff;
  border-color: #8eb2e6;
  color: #0f4ea8;
}

body[data-page="buying-history"] .my-auctions-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

body[data-page="buying-history"] .my-auctions-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

body[data-page="buying-history"] .my-auctions-tabs__link:hover {
  border-color: #a7b7cf;
  color: var(--ebay-blue);
}

body[data-page="buying-history"] .my-auctions-tabs__link.is-active {
  background: #e9f2ff;
  border-color: #8eb2e6;
  color: #0f4ea8;
}

.saved-searches-notice {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.1em;
}

.saved-searches-notice.is-success {
  color: #14532d;
}

.saved-searches-notice.is-error {
  color: var(--danger);
}

body[data-page="my-auctions"] .section {
  margin-top: 22px;
}

body[data-page="my-auctions"] .section:first-of-type {
  margin-top: 12px;
}

body[data-page="my-auctions"] .section__title {
  margin-bottom: 12px;
}

body[data-page="my-auctions"] .form-panel--tight {
  padding: 20px 18px 18px;
  border-radius: 12px;
}

body[data-page="my-auctions"] .field-row {
  gap: 14px;
  margin-top: 0.85rem;
}

body[data-page="my-auctions"] .action-needed-card {
  padding: 14px 14px 12px;
}

body[data-page="my-auctions"] .action-needed-card h3 {
  margin-bottom: 7px;
  line-height: 1.3;
}

.listing-card__seller-badge {
  margin: 8px 0 0;
}

.listing-card__you-role {
  margin: 6px 0 0;
}

.listing-card__order-status {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.listing-card__order-status--info {
  color: #334155;
}

.listing-card__order-status--warn {
  color: #9a3412;
  font-weight: 600;
}

.listing-card__you-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.listing-card__you-pill--winner {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.listing-card__you-pill--seller {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.empty-state__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state a {
  font-weight: 600;
}

/* ----- Listing detail ----- */
.listing-shell {
  margin-bottom: 24px;
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.listing-layout__main {
  min-width: 0;
}

.listing-layout__side {
  min-width: 0;
  position: sticky;
  top: 92px;
  align-self: start;
}

.listing-owner-panel {
  margin: 0 0 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: static;
  top: auto;
}

.listing-owner-panel__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.listing-owner-panel__hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.listing-owner-panel__stats {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.listing-owner-panel__stat {
  margin: 0;
  padding: 10px 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.listing-owner-panel__stat dt {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.listing-owner-panel__stat dd {
  margin: 4px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.listing-owner-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.listing-owner-panel__actions .btn {
  margin-top: 0;
}

.listing-owner-panel__out {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.1em;
}

.listing-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow);
}

.listing-detail__header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.listing-detail__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.listing-detail__seller {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.listing-seller-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.listing-seller-inline__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d6d3d1;
  background-color: #f5f5f4;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.listing-seller-inline__avatar--fallback {}

.listing-seller-profile-link {
  color: inherit;
  text-decoration: none;
}

.listing-seller-profile-link:hover {
  text-decoration: underline;
}

.listing-detail__category-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--secondary);
}

.listing-detail__category-text {
  flex: 1 1 auto;
  min-width: min(12rem, 100%);
}

.listing-detail__category-tail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--secondary);
}

.listing-detail__category-tail .listing-item-meta__id {
  white-space: nowrap;
}

.seller-trust {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}

.seller-trust h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.seller-profile__trust-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.seller-trust p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--secondary);
}

.trust-metrics-help {
  margin-top: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-metrics-help__label {
  font-size: 0.8rem;
  color: #1e3a8a;
  font-weight: 600;
}

.trust-metrics-help ul {
  margin: 0;
  padding-left: 18px;
}

.trust-metrics-help li {
  margin: 4px 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.trust-metrics-help__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.trust-metrics-help__tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(560px, calc(100vw - 56px));
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
}

.trust-metrics-help:hover .trust-metrics-help__tooltip,
.trust-metrics-help:focus-within .trust-metrics-help__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.seller-profile__trust.seller-trust {
  margin-top: 0;
  margin-bottom: 1rem;
}

.seller-performance-card {
  margin: 10px 0 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.seller-performance-card__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.seller-performance-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.seller-performance-card__metric {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
}

.seller-performance-card__metric strong,
.seller-performance-card__metric span {
  display: block;
}

.seller-performance-card__metric strong {
  font-size: 1rem;
  color: var(--ink);
}

.seller-performance-card__metric span {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.seller-performance-card__metric--good {
  border-color: #86efac;
  background: #ecfdf3;
}

.seller-performance-card__metric--good strong {
  color: #14532d;
}

.seller-performance-card__metric--warn {
  border-color: #fcd34d;
  background: #fffbeb;
}

.seller-performance-card__metric--warn strong {
  color: #92400e;
}

.seller-performance-card__metric--risk {
  border-color: #fca5a5;
  background: #fef2f2;
}

.seller-performance-card__metric--risk strong {
  color: #7f1d1d;
}

.seller-analytics-mini__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.seller-analytics-mini__toolbar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  margin-right: 4px;
}

.seller-analytics-mini__toolbar .btn.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}

.seller-analytics-mini__card {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.seller-analytics-mini__metric {
  margin: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seller-analytics-mini__metric strong {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}

.seller-analytics-mini__metric span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
}

.seller-analytics-mini__metric small {
  font-size: 0.72rem;
  color: var(--muted);
}

.seller-analytics-mini__trend {
  font-weight: 700;
  cursor: help;
}

.seller-analytics-mini__trend.is-up {
  color: #166534;
}

.seller-analytics-mini__trend.is-down {
  color: #b91c1c;
}

.seller-analytics-mini__trend.is-neutral {
  color: #475569;
}

.seller-analytics-mini__period {
  margin: 8px 2px 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.seller-profile__header {
  margin-bottom: 8px;
}

.seller-profile {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.seller-profile__banner {
  background: #ececec;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 0;
}

.seller-profile__banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.seller-profile__banner-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.seller-profile__banner-actions {
  flex: 0 0 auto;
  align-self: center;
}

.seller-profile__banner-actions .listing-save-seller-btn {
  margin-top: 0;
}

.seller-profile__avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.seller-profile__avatar--image {
  object-fit: cover;
  background: #f5f5f4;
}

.seller-profile__banner-text {
  min-width: 0;
  flex: 1 1 auto;
}

.seller-profile__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.seller-profile__stats {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--secondary);
}

.seller-profile__badges {
  margin: 8px 0 0;
}

.seller-tier-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
}

.seller-tier-badge--top {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.seller-tier-badge--trusted {
  background: #ecfdf3;
  border-color: #86efac;
  color: #14532d;
}

.seller-tier-badge--new {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.seller-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.seller-profile__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 8px 10px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.seller-profile__tab:hover {
  color: var(--ink);
}

.seller-profile__tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.seller-profile__tabs-tools {
  margin-left: auto;
  padding: 6px 0 8px;
}

.seller-profile__search {
  width: min(240px, 52vw);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.seller-profile__search:focus-visible {
  outline: 2px solid var(--ebay-blue, #0064d1);
  outline-offset: 1px;
}

.seller-profile__panels {
  padding-top: 16px;
}

.seller-profile__panel[hidden] {
  display: none !important;
}

.section--seller-selling .section__title {
  margin-top: 0;
}

.seller-feedback-summary {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.seller-feedback-summary__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.seller-feedback-summary__period {
  margin: 4px 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.seller-feedback-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 420px;
}

.seller-feedback-summary__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-feedback-summary__label {
  font-size: 0.82rem;
  color: var(--muted);
}

.seller-feedback-summary__count {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-feedback-summary__hint {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.seller-feedback-list__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.seller-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.seller-feedback-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #e8e6e3;
}

.seller-feedback-row:last-child {
  border-bottom: none;
}

.seller-feedback-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

.seller-feedback-row--positive .seller-feedback-row__badge {
  background: #16a34a;
  color: #fff;
}

.seller-feedback-row--neutral .seller-feedback-row__badge {
  background: #ca8a04;
  color: #fff;
}

.seller-feedback-row--negative .seller-feedback-row__badge {
  background: #dc2626;
  color: #fff;
}

.seller-feedback-row__body {
  min-width: 0;
}

.seller-feedback-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.seller-feedback-row__meta time {
  font-size: 0.78rem;
  color: var(--muted);
}

.seller-feedback-row__comment {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.seller-feedback-row__listing {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.seller-feedback-row__listing a {
  color: var(--ebay-blue, #0064d1);
}

.seller-feedback-row__verified {
  font-size: 0.72rem;
  color: var(--muted-light);
  white-space: nowrap;
  margin-top: 2px;
}

.seller-feedback-empty {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.seller-profile__area--muted {
  color: var(--muted-light);
}

.seller-profile__area {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .seller-feedback-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .seller-feedback-row__verified {
    grid-column: 2;
    justify-self: end;
    align-self: start;
  }
}

.seller-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seller-review-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.seller-review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.seller-review__stars {
  letter-spacing: 0.06em;
  color: #b45309;
  font-size: 0.95rem;
}

.seller-review-card__head time {
  font-size: 0.78rem;
  color: var(--muted);
}

.seller-review-card__listing {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.seller-review-card__listing a {
  color: var(--secondary);
  font-weight: 600;
}

.seller-review-card__comment {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.listing-gallery {
  margin: 0 0 22px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0a09;
}

.listing-gallery__main {
  position: relative;
  width: 100%;
  /* Cap height so large photos don’t dominate the whole viewport */
  height: min(52vh, 480px);
  min-height: 200px;
  background: #1c1917;
}

.listing-gallery__hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.listing-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 14px;
  background: linear-gradient(180deg, #292524 0%, #1c1917 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.listing-gallery__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #44403c;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.listing-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-gallery__thumb:hover,
.listing-gallery__thumb:focus-visible {
  border-color: rgba(251, 146, 60, 0.6);
  outline: none;
}

.listing-gallery__thumb.is-active {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.listing-detail__body {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: var(--ink);
  white-space: pre-wrap;
}

.listing-item-meta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.listing-item-meta__id {
  font-weight: 400;
  color: var(--secondary);
  font-size: 0.8rem;
}

.listing-item-meta__guest-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.listing-item-meta__guest-hint a {
  font-weight: 600;
}

.listing-item-meta__kebab-wrap {
  position: relative;
  flex-shrink: 0;
}

.listing-kebab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.listing-kebab-btn:hover,
.listing-kebab-btn:focus-visible {
  border-color: rgba(251, 146, 60, 0.6);
  outline: none;
}

.listing-kebab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 11rem;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.listing-kebab-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.listing-kebab-menu__item:hover,
.listing-kebab-menu__item:focus-visible {
  background: #f5f5f4;
  outline: none;
}

.listing-item-meta__policy-notice {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.84rem;
}

.listing-detail__meta {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--secondary);
}

.listing-related {
  margin-top: 14px;
}

.listing-related__why {
  margin: -4px 0 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.listing-related .listings-grid {
  margin-top: 8px;
}

.seller-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f5f5f4;
  font-size: 0.75rem;
  color: var(--secondary);
}

.seller-badge--business {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.checkout-panel {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafaf9;
}

.checkout-panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.checkout-panel p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.buyer-protection-panel {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.buyer-protection-panel h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.buyer-protection-panel ul {
  margin: 0;
  padding-left: 18px;
}

.buyer-protection-panel li {
  margin: 4px 0;
  font-size: 0.82rem;
  color: var(--secondary);
}

.listing-qa {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

.listing-qa--collapsible {
  padding: 0;
  background: transparent;
  border: none;
}

.listing-qa__details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
}

.listing-qa__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
}

.listing-qa__summary::-webkit-details-marker {
  display: none;
}

.listing-qa__count {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.listing-qa__details-body {
  padding: 0 16px 16px;
}

.listing-qa__heading {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.listing-qa__intro {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--secondary);
}

.listing-qa__ask {
  margin: 0 0 14px;
}

.listing-qa__ask .field {
  margin-bottom: 10px;
}

.listing-qa__hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.listing-qa__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-qa__item {
  margin: 0;
  padding: 12px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.listing-qa__meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.listing-qa__body {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}

.listing-qa__answer-block {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.listing-qa__answer {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.listing-qa__when {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.listing-qa__pending {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.listing-qa__answer-form {
  margin: 0;
}

.listing-qa__answer-form .field {
  margin-bottom: 8px;
}

.listing-qa__answer-err {
  margin: 6px 0 0;
}

.listing-qa__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.fraud-nudge-panel {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  background: #fef2f2;
}

.fraud-nudge-panel h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #7f1d1d;
}

.fraud-risk-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.fraud-risk-badge--low {
  background: #ecfdf3;
  border-color: #86efac;
  color: #14532d;
}

.fraud-risk-badge--medium {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.fraud-risk-badge--high {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.fraud-nudge-panel p {
  margin: 0 0 6px;
  font-size: 0.83rem;
  color: #7f1d1d;
}

.fraud-nudge-panel ul {
  margin: 0;
  padding-left: 18px;
}

.fraud-nudge-panel li {
  margin: 4px 0;
  font-size: 0.82rem;
  color: #991b1b;
}

.checkout-panel__dispute {
  color: var(--danger);
}

.listing-detail__edited {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.seller-edit {
  margin-bottom: 24px;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seller-edit__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.seller-edit__intro {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.seller-edit__meta {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.seller-edit .form-fieldset--seller {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.field--radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 18px;
  margin-top: 8px;
}

.radio-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  margin: 0;
  padding: 2px 0;
}

.radio-label input,
.field--radios input[type="checkbox"],
.field--radios input[type="radio"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
}

@media (max-width: 760px) {
  .field--radios {
    grid-template-columns: 1fr;
  }
}

/* Keep checkbox/radio inputs from inheriting full-width form control styles */
.form-panel .field--radios input[type="checkbox"],
.form-panel .field--radios input[type="radio"],
.field .field--radios input[type="checkbox"],
.field .field--radios input[type="radio"] {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 2px 0 0;
  box-shadow: none;
}

.site-main--auth .field--radios {
  display: grid;
  gap: 8px;
}

.site-main--auth .radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

.site-main--auth .radio-label input {
  margin-top: 2px;
}

.site-main--auth .radio-label input[type="checkbox"],
.site-main--auth .radio-label input[type="radio"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  padding: 0;
}

.profile-mute-toasts-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  transition: opacity 0.15s ease, color 0.15s ease;
}

.profile-mute-toasts-label__icon {
  color: var(--muted);
  flex: 0 0 auto;
}

.profile-mute-toasts-label.is-muted {
  color: var(--muted);
  opacity: 0.78;
}

.profile-paypalme-help {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.profile-postcode-verified {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #14532d;
  font-weight: 600;
}

.profile-paypalme-help a {
  color: var(--secondary);
}

.profile-paypalme-preview {
  margin: 6px 0 0;
  font-size: 0.84rem;
}

.seller-edit .btn--secondary {
  margin-top: 0;
  margin-bottom: 16px;
}

.seller-edit .field--files {
  margin-top: 8px;
}

.seller-image-manage {
  margin: 10px 0 10px;
}

.seller-image-manage__title {
  margin: 0 0 6px;
  font-size: 0.7rem;
  color: var(--muted);
}

.seller-image-manage__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 74px);
  gap: 8px;
  justify-content: space-between;
}

.seller-image-manage__item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 6px;
  width: 74px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seller-image-manage__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
}

.seller-image-manage__remove {
  margin-top: 0;
  width: 100%;
  font-size: 0.62rem;
  padding: 5px 6px;
  min-height: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Override global .btn sizing for tiny thumbnail actions */
.seller-image-manage__remove.btn {
  font-size: 0.62rem !important;
  padding: 5px 6px !important;
  min-height: 26px;
}

.price-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.price-block__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.price-block__metric:last-child {
  align-items: flex-end;
}

.price-block__metric--muted {
  color: var(--muted);
}

.price-block__date {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

.price-block__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price-block__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.snipe-hint {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.snipe-countdown {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-hover);
}

.snipe-countdown--urgent {
  color: var(--danger);
}

.final-countdown-overlay {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #b91c1c;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.final-countdown-overlay[hidden] {
  display: none !important;
}

.final-countdown-overlay__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.final-countdown-overlay__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 4.3rem);
  line-height: 1;
  font-weight: 700;
}

.final-countdown-overlay--urgent {
  color: #991b1b;
}

.auction-end-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  pointer-events: none;
  z-index: 2;
  border: 3px solid currentColor;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.76);
  text-shadow: none;
}

.auction-end-stamp--sold {
  color: #166534;
}

.auction-end-stamp--unsold {
  color: #b91c1c;
}

.notice {
  margin: 12px 0 0;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.notice--info {
  background: var(--accent-soft);
  border: 1px solid rgba(194, 65, 12, 0.2);
  color: var(--secondary);
}

.notice--ended {
  background: #f5f5f4;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

.notice--win {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #14532d;
  font-weight: 500;
}

.notice--contact {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
}

.bids-heading {
  margin: 24px 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.bids-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.bids-list__item,
.bids-list__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.bids-list__item:last-child,
.bids-list__empty:last-child {
  border-bottom: none;
}

.bids-list__empty {
  color: var(--muted);
  font-style: italic;
}

.bids-list__amount {
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 5rem;
}

.bids-list__who {
  color: var(--muted);
  flex: 1;
  min-width: 6rem;
}

.bids-list__when {
  font-size: 0.85rem;
  color: var(--muted-light);
  margin-left: auto;
}

/* ----- Bid panel ----- */
.bid-panel {
  margin: 0;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: static;
  top: auto;
}

.bid-panel__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.bid-panel__hint {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----- Forms: fields ----- */
.field {
  display: block;
  margin-top: 1rem;
}

.field[hidden] {
  display: none !important;
}

.field:first-child,
.form-fieldset .field:first-of-type {
  margin-top: 0;
}

.field--half {
  flex: 1;
  min-width: 140px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
}

.field__help {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.field__help--above {
  margin-top: 0;
  margin-bottom: 8px;
}

.field--files input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.field--files input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.field--files input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1rem;
}

.field-row .field {
  margin-top: 0;
}

.field--half input {
  width: 100%;
}

.field--money .field__money {
  position: relative;
  display: block;
}

.field__prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.field__input--money {
  padding-left: 28px !important;
}

.field input,
.field select,
.field textarea,
.form-panel input:not([type="hidden"]),
.form-panel select,
.form-panel textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.form-panel input:hover,
.form-panel select:hover,
.form-panel textarea:hover {
  border-color: var(--muted-light);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

#adminPromoCtaBgColor {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 38px;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
}

#adminPromoCtaBgColor::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 6px;
}

#adminPromoCtaBgColor::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* ----- Form page (sell) ----- */
.form-page {
  width: 100%;
}

.form-page__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-page__intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
}

.sell-preview {
  margin-top: 16px;
}

.sell-preview__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.sell-preview__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.sell-preview__meta {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.sell-preview__heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.sell-preview__desc {
  margin: 0 0 10px;
  color: var(--secondary);
  white-space: pre-wrap;
}

.sell-preview__stats {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.sell-preview__image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.form-panel--tight {
  padding: 18px 16px 16px;
}

.form-fieldset {
  margin: 0 0 8px;
  padding: 0 0 20px;
  border: none;
  border-bottom: 1px solid var(--border);
}

.form-fieldset:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.form-fieldset__legend {
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.form-panel .form-fieldset .form-fieldset {
  margin-top: 4px;
  margin-bottom: 0;
  padding: 0 0 12px;
  border: none;
  border-bottom: 1px solid var(--border);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn--compact {
  padding: 7px 12px;
  font-size: 0.86rem;
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.12);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--secondary {
  margin-top: 16px;
  width: 100%;
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg);
  border-color: var(--muted-light);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--large {
  padding: 14px 22px;
  font-size: 1.05rem;
  margin-top: 8px;
}

#sellForm .btn--primary {
  margin-top: 8px;
  max-width: none;
}

/* Legacy button selector for any bare buttons */
button:not([class]) {
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
}

button:not([class]):hover {
  background: var(--accent-hover);
}

.form-error {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--danger);
}

.form-error--center {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
}

.form-page--split .form-error--center {
  margin-top: 16px;
}

/* ----- Login: split layout ----- */
.form-page--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .form-page--split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .form-page--split .form-error--center {
    grid-column: 1 / -1;
  }
}

.auth-card {
  margin: 0;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.auth-card__switch {
  margin-top: 24px;
}

.messages-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 18px;
  align-items: start;
}

.messages-threads,
.messages-conversation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.messages-threads {
  padding: 12px;
  max-height: 72vh;
  overflow: hidden;
}

.messages-threads__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 2px 10px;
}

.messages-threads__header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.messages-threads__list {
  max-height: calc(72vh - 52px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.messages-threads__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.messages-threads__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.messages-threads__filters {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.messages-filter {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
}

.messages-filter + .messages-filter {
  border-left: 1px solid var(--border);
}

.messages-filter:hover {
  color: var(--secondary);
  background: var(--bg);
}

.messages-filter.is-active {
  color: var(--surface);
  background: var(--ebay-blue);
}

.messages-mark-all-read {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.messages-mark-all-read:hover:not(:disabled) {
  background: var(--bg);
}

.messages-mark-all-read:disabled {
  color: var(--muted-light);
  cursor: default;
  background: var(--bg);
}

.app-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  min-width: 190px;
  max-width: min(86vw, 360px);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast--has-action {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-weight: 500;
}

.app-toast__text {
  flex: 1 1 12rem;
  min-width: 0;
}

.app-toast__action {
  flex-shrink: 0;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-toast--success .app-toast__action {
  color: #166534;
}

.app-toast--error .app-toast__action {
  color: #991b1b;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast--success {
  background: #ecfdf3;
  border-color: #86efac;
  color: #14532d;
}

.app-toast--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.message-thread {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.message-thread strong {
  display: block;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-thread:hover {
  border-color: var(--muted-light);
  background: var(--bg);
}

.message-thread.is-active {
  border-color: var(--ebay-blue);
  background: rgba(0, 100, 210, 0.06);
}

.message-thread span,
.message-thread time {
  font-size: 0.82rem;
  color: var(--muted);
}

.message-thread span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-thread span:last-of-type {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.message-thread time {
  margin-top: 2px;
}

.message-thread.is-unread::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ebay-blue);
  box-shadow: 0 0 0 2px var(--surface);
}

.message-thread.is-unread span:last-of-type {
  color: var(--secondary);
  font-weight: 600;
}

.messages-conversation {
  padding: 14px;
}

.messages-conversation .section__title {
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 10px;
}

.messages-conversation .section__title a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.messages-conversation .section__title a:hover {
  text-decoration: underline;
}

.messages-conversation__profile {
  font-weight: 600;
}

.messages-log {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #f8fafc;
  min-height: 300px;
  max-height: 52vh;
  overflow: auto;
}

.messages-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
  padding: 14px 10px;
}

.message-bubble {
  margin: 0 0 10px;
  max-width: min(85%, 560px);
  padding: 9px 11px;
  border-radius: 10px 10px 10px 3px;
  background: #fff;
  border: 1px solid var(--border);
}

.message-bubble--me {
  margin-left: auto;
  border-radius: 10px 10px 3px 10px;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.message-bubble header {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.messages-form {
  margin-top: 12px;
}

.messages-quick-actions {
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.messages-quick-action {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.messages-quick-action:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.checkout-panel--messages {
  margin-bottom: 12px;
}

.transaction-status p {
  margin: 0 0 4px;
}

.transaction-status__lead {
  margin: 0 0 10px !important;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.posting-tracking-summary {
  margin: 8px 0 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.posting-tracking-summary__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

#message-dispatch-panel {
  scroll-margin-top: 1.25rem;
}

.posting-tracking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.posting-tracking-row__value {
  min-width: 0;
}

.dispatch-carrier-track-out__label {
  font-weight: 600;
}

.admin-inbox-posting {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.admin-inbox-posting__title {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.admin-inbox-posting__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-inbox-posting__list li {
  margin-bottom: 4px;
}

@media print {
  body[data-page="order-timeline"] header.ebay-header,
  body[data-page="order-timeline"] .no-print {
    display: none !important;
  }
}

.invoice-panel {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.invoice-panel h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.invoice-panel p {
  margin: 0 0 6px;
}

.invoice-panel__hint {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.invoice-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.invoice-create {
  display: grid;
  gap: 8px;
}

.invoice-due-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.invoice-due-presets .btn {
  margin-top: 0;
}

.invoice-history {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.invoice-history__title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.invoice-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.invoice-history__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.invoice-history__item time {
  color: var(--muted);
  white-space: nowrap;
}

.invoice-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.invoice-status-badge::before {
  font-size: 0.76rem;
  line-height: 1;
}

.invoice-status-badge--pending {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.invoice-status-badge--pending::before {
  content: "⏳";
}

.invoice-status-badge--paid {
  background: #ecfdf3;
  border-color: #86efac;
  color: #14532d;
}

.invoice-status-badge--paid::before {
  content: "✓";
  font-weight: 800;
}

.invoice-status-badge--cancelled {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.invoice-status-badge--cancelled::before {
  content: "✕";
  font-weight: 800;
}

.invoice-status-badge--expired {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.invoice-status-badge--expired::before {
  content: "⌛";
  font-weight: 800;
}

.transaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.transaction-actions__group-label {
  width: 100%;
  margin: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
}

.transaction-actions__pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  flex-basis: 100%;
  align-items: stretch;
}

.transaction-actions__pair .btn.btn--secondary {
  margin-top: 0;
  flex: 1 1 calc(50% - 4px);
  min-width: min(100%, 160px);
}

.btn.btn--tx-step-done,
.btn.btn--tx-step-done:disabled {
  background: #dcfce7;
  color: var(--success-muted);
  border: 1px solid #86efac;
  opacity: 1;
  cursor: default;
}

.btn.btn--tx-step-done:hover:not(:disabled) {
  filter: brightness(0.98);
  border-color: #4ade80;
}

.transaction-actions__pair .btn:disabled:not(.btn--tx-step-done) {
  opacity: 0.55;
  cursor: not-allowed;
}

.messages-dispute-file-wrap {
  width: 100%;
  flex-basis: 100%;
}

.messages-dispute-file {
  width: 100%;
  flex-basis: 100%;
}

.messages-dispute-file--disabled {
  user-select: none;
}

.messages-dispute-file--disabled .messages-dispute-file__summary {
  cursor: not-allowed;
  background: #f0fdf4;
  color: var(--success-muted);
  border-color: #bbf7d0;
}

.messages-dispute-file--disabled .messages-dispute-file__summary:hover {
  background: #ecfdf5;
  border-color: #86efac;
}

.messages-dispute-file__summary {
  list-style: none;
}

.messages-dispute-file > summary::-webkit-details-marker,
.messages-dispute-file > summary::-moz-list-bullet {
  display: none;
}

.messages-dispute-file[open] .transaction-dispute-open {
  margin-top: 10px;
}

.transaction-dispute-open {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 8px;
  align-items: end;
  width: 100%;
}

.transaction-dispute-open .field {
  margin: 0;
}

.transaction-dispute-open #openDisputeBtn {
  justify-self: start;
  grid-column: 1 / -1;
}

.transaction-actions__hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.transaction-actions__hint--escalate {
  width: 100%;
  margin-top: 2px;
}

.transaction-actions__hint--dispute-open {
  margin: 0 0 8px;
  padding: 10px 12px;
  width: 100%;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.84rem;
}

.transaction-actions__hint--dispatch-wait {
  margin: 0 0 10px;
  padding: 10px 12px;
  width: 100%;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  font-size: 0.84rem;
}

.transaction-actions__hint--dispute-locked {
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  font-size: 0.82rem;
  color: var(--success-muted);
}

.transaction-actions__dispute-open {
  width: 100%;
  flex-basis: 100%;
}

.transaction-actions__dispute-open--with-complete {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.transaction-actions__pair--dispute .btn.btn--secondary {
  margin-top: 0;
}

.dispute-evidence-timeline {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.dispute-evidence-timeline h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.dispute-evidence-timeline__list {
  display: grid;
  gap: 8px;
}

.dispute-evidence-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.dispute-evidence-card header {
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.dispute-evidence-card p {
  margin: 0 0 6px;
  font-size: 0.84rem;
}

.order-timeline-wrap {
  max-width: 860px;
}

.order-timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.order-timeline-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.order-timeline-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-timeline-seller-link {
  color: var(--ink);
  text-decoration: none;
}

.order-timeline-seller-link:hover {
  text-decoration: underline;
}

.order-stage-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}

.order-stage-badge--active {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.order-stage-badge--done {
  border: 1px solid #86efac;
  background: #ecfdf3;
  color: #14532d;
}

.order-progress-checklist {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.checkout-panel--messages .order-progress-checklist {
  margin-top: 0;
}

.order-progress-checklist__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.order-progress-checklist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-progress-checklist__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}

.order-progress-checklist__mark {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--muted);
}

.order-progress-checklist__item.is-done .order-progress-checklist__mark {
  color: #15803d;
  font-weight: 700;
}

.order-progress-checklist__body strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}

.order-progress-checklist__detail {
  margin: 3px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.order-progress-checklist__item.is-done .order-progress-checklist__body strong {
  color: #14532d;
}

.order-progress-checklist__links {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-milestones {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.order-milestones__step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 9px;
  background: #f8fafc;
}

.order-milestones__step strong,
.order-milestones__step span {
  display: block;
}

.order-milestones__step strong {
  font-size: 0.83rem;
  color: var(--secondary);
}

.order-milestones__step span {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.order-milestones__step.is-done {
  border-color: #86efac;
  background: #ecfdf3;
}

.order-milestones__step.is-done strong {
  color: #14532d;
}

.order-timeline-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.order-timeline-step {
  color: var(--secondary);
}

.order-timeline-step strong {
  display: block;
  color: var(--ink);
}

.order-timeline-step span,
.order-timeline-step time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.order-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

@media (max-width: 860px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-threads,
  .messages-threads__list {
    max-height: 40vh;
  }

  .messages-threads__header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .order-milestones {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .seller-performance-card__grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .seller-analytics-mini__card {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 980px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .listing-layout__side {
    position: static;
    top: auto;
  }

  .price-block {
    grid-template-columns: 1fr;
  }

  .price-block__metric:last-child {
    align-items: flex-start;
  }
}

/* ----- Legacy class names (if any JS still references) ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
}

.card a {
  color: inherit;
}

.meta,
.seller,
.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.desc {
  white-space: pre-wrap;
}

#bidError {
  margin-top: 12px;
}
