/* Free Market dashboard app UI */

/* Global search */
.mkt-search {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(15,23,42,0.55);
}
.mkt-search i { color: #94a3b8; font-size: 0.9rem; flex-shrink: 0; }
.mkt-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none;
  background: transparent; color: #f8fafc; font-size: 0.92rem;
}
.mkt-search input::placeholder { color: #94a3b8; }
.mkt-search-go {
  flex-shrink: 0; border: 0; cursor: pointer;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800;
  background: #f59e0b; color: #0f172a;
}
.mkt-search-go:hover { background: #fbbf24; }
.mkt-search--sidebar {
  background: rgba(2,6,23,0.45); border-color: rgba(148,163,184,0.22);
}
.mkt-search--sidebar .mkt-search-go { display: none; }
.mkt-search--mobile {
  background: rgba(2,6,23,0.65); border-color: rgba(148,163,184,0.25);
}
.mkt-search--mobile .mkt-search-go { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
.mkt-search--bar {
  background: #fff; border-color: #e2e8f0;
  box-shadow: 0 8px 24px -16px rgba(15,23,42,0.25);
}
html.dark .mkt-search--bar,
html[data-oj-theme="dark"] .mkt-search--bar {
  background: #0f172a; border-color: #1e293b;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
}
.mkt-search--bar input { color: #0f172a; }
html.dark .mkt-search--bar input { color: #f8fafc; }
.mkt-search--hero {
  margin-top: 1rem; max-width: 32rem;
  background: rgba(255,255,255,0.1); border-color: rgba(253,230,138,0.35);
}
.mkt-search-sticky { position: sticky; top: 0.75rem; z-index: 20; }

.mkt-kicker {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #b45309; margin: 0 0 0.35rem;
}
html.dark .mkt-kicker, html[data-oj-theme="dark"] .mkt-kicker { color: #fbbf24; }

.mkt-h1 {
  font-size: clamp(1.55rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.03em;
  color: #0f172a; margin: 0;
}
html.dark .mkt-h1, html[data-oj-theme="dark"] .mkt-h1 { color: #f8fafc; }

.mkt-lede {
  margin: 0.4rem 0 0; font-size: 0.95rem; color: #64748b; max-width: 40rem; line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word;
}
html.dark .mkt-lede, html[data-oj-theme="dark"] .mkt-lede { color: #94a3b8; }
.mkt-lede strong { color: #b45309; }
html.dark .mkt-lede strong { color: #fde68a; }
.mkt-lede--hero { max-width: 36rem; }
/* Desktop: full lede; mobile: short lede (see media query) */
.mkt-lede--short { display: none; }
.mkt-btn-label-short { display: none; }
.mkt-btn-label-full { display: inline; }

.mkt-hero {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.35rem 1.4rem; border-radius: 1.35rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #78350f 140%);
  color: #f8fafc; box-shadow: 0 18px 40px -24px rgba(0,0,0,0.55);
  min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden;
}
.mkt-hero-copy { min-width: 0; width: 100%; max-width: 100%; }
.mkt-hero .mkt-kicker { color: #fde68a; }
.mkt-hero .mkt-h1 { color: #fff; overflow-wrap: anywhere; word-break: break-word; }
.mkt-hero .mkt-lede { color: #cbd5e1; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.mkt-hero .mkt-lede strong { color: #fde68a; }

/* Trade / service redirect from Free Market hero (full-width strip under title) */
.mkt-service-cta {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 0.95rem;
  text-decoration: none !important;
  color: #0f172a !important;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 55%, #fcd34d 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.mkt-service-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  color: #0f172a;
}
.mkt-service-cta:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}
.mkt-service-cta-icon {
  flex-shrink: 0;
  width: 2.15rem; height: 2.15rem; border-radius: 0.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a; font-size: 0.95rem;
}
.mkt-service-cta-copy {
  display: flex; flex-direction: column; gap: 0.08rem;
  min-width: 0; flex: 1 1 auto;
}
.mkt-service-cta-label {
  font-size: 0.92rem; font-weight: 800; line-height: 1.25;
  overflow-wrap: anywhere;
}
.mkt-service-cta-action {
  font-size: 0.78rem; font-weight: 700; opacity: 0.85;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.mkt-service-cta-action i { font-size: 0.7rem; }

/* Search + Go + Sell + Browse - one toolbar (no duplicate search bars) */
.mkt-hero-toolbar {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.55rem;
  width: 100%; min-width: 0;
}
.mkt-hero-toolbar .mkt-search--hero {
  flex: 1 1 14rem;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  width: auto;
  box-sizing: border-box;
}
.mkt-hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center;
  min-width: 0; max-width: 100%;
  flex: 0 1 auto;
}
.mkt-hero-actions .mkt-btn { min-width: 0; max-width: 100%; }

.mkt-page-head { margin-bottom: 1.15rem; }
.mkt-page-head--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem;
}

.mkt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 0.9rem; font-size: 0.875rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mkt-btn:hover { transform: translateY(-1px); }
.mkt-btn-primary { background: #f59e0b; color: #0f172a; }
.mkt-btn-primary:hover { background: #fbbf24; }
/* Secondary CTA (e.g. Create free account) — solid, never white/grey washout */
.mkt-btn-secondary {
  background: #059669 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #047857 !important;
}
.mkt-btn-secondary:hover {
  background: #047857 !important;
  color: #ffffff !important;
}
.mkt-btn-ghost {
  background: rgba(255,255,255,0.08); color: inherit;
  border-color: rgba(148,163,184,0.35);
}
html:not(.dark) .mkt-btn-ghost {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
/* Hero is always a dark blue panel — never black type from light page themes */
.mkt-hero .mkt-btn-ghost,
.mkt-hero a.mkt-btn-ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
}
.mkt-hero .mkt-btn-ghost:hover,
.mkt-hero a.mkt-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.mkt-hero .mkt-search input,
.mkt-hero .mkt-search input::placeholder {
  color: #f8fafc;
}
.mkt-hero .mkt-search input { color: #f8fafc !important; }
.mkt-hero .mkt-search input::placeholder { color: #94a3b8 !important; }
.mkt-hero .mkt-safety-blurb {
  background: rgba(251, 191, 36, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #fef3c7 !important;
}
.mkt-hero .mkt-safety-blurb,
.mkt-hero .mkt-safety-blurb * {
  color: #fef3c7 !important;
}
.mkt-hero .mkt-safety-blurb strong,
.mkt-hero .mkt-safety-blurb .text-amber-950,
.mkt-hero .mkt-safety-blurb .text-amber-700 {
  color: #fde68a !important;
}
/* Create-account CTAs that still use ghost: force readable solid green */
.mkt-btn-ghost[href*="register.php"],
a.mkt-btn-ghost[href*="register"] {
  background: #059669 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #047857 !important;
}
.mkt-btn-ghost[href*="register.php"]:hover,
a.mkt-btn-ghost[href*="register"]:hover {
  background: #047857 !important;
  color: #ffffff !important;
}
.mkt-btn-block { width: 100%; }
.mkt-link {
  background: none; border: 0; color: #b45309; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
html.dark .mkt-link { color: #fbbf24; }

.mkt-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.65rem; margin-bottom: 1rem;
}
@media (min-width: 720px) { .mkt-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.mkt-stat {
  text-align: center; padding: 0.85rem; border-radius: 1rem;
  background: #fff; border: 1px solid #e2e8f0;
}
html.dark .mkt-stat, html[data-oj-theme="dark"] .mkt-stat {
  background: #0f172a; border-color: #1e293b;
}
.mkt-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: #d97706; line-height: 1.1; }
html.dark .mkt-stat strong { color: #fbbf24; }
.mkt-stat span {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8;
}

.mkt-pay-banner {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: 1rem; margin-bottom: 1.25rem;
  border: 1px solid #fcd34d; background: #fffbeb; color: #78350f;
}
html.dark .mkt-pay-banner {
  background: rgba(245,158,11,0.1); border-color: rgba(251,191,36,0.3); color: #fde68a;
}
.mkt-pay-banner i { margin-top: 0.15rem; color: #d97706; }
html.dark .mkt-pay-banner i { color: #fbbf24; }
.mkt-pay-banner strong { display: block; margin-bottom: 0.15rem; color: #92400e; }
html.dark .mkt-pay-banner strong { color: #fef3c7; }
.mkt-pay-banner p { margin: 0; font-size: 0.86rem; line-height: 1.45; opacity: 0.95; }
.mkt-pay-banner--sm { padding: 0.65rem 0.8rem; font-size: 0.82rem; margin-bottom: 0.75rem; }
.mkt-pay-banner--sm strong { display: inline; margin: 0; }

.mkt-block { margin-bottom: 1.75rem; }
.mkt-block-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem;
}
.mkt-block-head h2 {
  margin: 0; font-size: 1.1rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 0.45rem;
}
html.dark .mkt-block-head h2 { color: #f1f5f9; }

.mkt-rail { margin: 0 -0.15rem; }
.mkt-rail-track {
  display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.25rem 0.15rem 0.75rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mkt-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1.1rem; overflow: hidden;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
  min-width: 0; max-width: 100%; box-sizing: border-box;
  text-decoration: none; color: inherit;
}
a.mkt-card:hover { text-decoration: none; color: inherit; }
.mkt-modal-title-link {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  display: inline;
}
.mkt-modal-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mkt-modal-fullpage {
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mkt-modal-fullpage-hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
}
.mkt-modal-desc--preview {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.dark .mkt-card, html[data-oj-theme="dark"] .mkt-card {
  background: #0f172a; border-color: #1e293b;
}
.mkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(0,0,0,0.35);
}
.mkt-card--rail { flex: 0 0 min(70vw, 15.5rem); max-width: 15.5rem; scroll-snap-align: start; }
.mkt-card-media { position: relative; aspect-ratio: 4/3; background: #e2e8f0; overflow: hidden; }
html.dark .mkt-card-media { background: #1e293b; }
.mkt-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-card-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 1.6rem; min-height: 8rem;
}
.mkt-ribbon {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1;
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em;
  padding: 0.22rem 0.45rem; border-radius: 999px; background: #fbbf24; color: #0f172a;
}
.mkt-ribbon.free { background: #34d399; color: #fff; }
.mkt-ribbon.withdrawn { background: #dc2626; color: #fff; }
.mkt-ribbon.gone { background: #059669; color: #fff; }
.mkt-ribbon.pending { background: #d97706; color: #fff; }
.mkt-ribbon.removed { background: #7f1d1d; color: #fecaca; }
.mkt-ribbon.reserved {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, 0.55);
}
.mkt-ribbon.auto {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(2, 132, 199, 0.55);
}
/* Distinct vehicle cards (not blended with general goods) */
.mkt-card--vehicle {
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 14px 32px -22px rgba(2, 132, 199, 0.45);
}
.mkt-card--vehicle .mkt-card-media {
  background: linear-gradient(160deg, #0c4a6e 0%, #0f172a 100%);
}
.mkt-vehicle-kicker {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0284c7; margin: 0 0 0.2rem;
  display: flex; align-items: center; gap: 0.3rem;
}
html.dark .mkt-vehicle-kicker { color: #38bdf8; }
.mkt-vehicle-chips {
  display: flex; flex-wrap: wrap; gap: 0.28rem; margin: 0.35rem 0 0.4rem;
}
.mkt-vehicle-chip {
  font-size: 0.65rem; font-weight: 800;
  padding: 0.18rem 0.45rem; border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #0369a1;
}
html.dark .mkt-vehicle-chip {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}
.mkt-auto-mode-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #0369a1;
}
html.dark .mkt-auto-mode-badge { color: #7dd3fc; }
.mkt-goods-only-hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem; font-weight: 600; color: #64748b;
  line-height: 1.4;
}
html.dark .mkt-goods-only-hint { color: #94a3b8; }
.mkt-sell-switch { margin: 0.35rem 0 0.5rem; font-size: 0.8rem; }
#sec-sell.is-vehicle-sell .mkt-ebay-panel,
#sec-sell.is-vehicle-sell #mkt-ebay-off {
  display: none !important;
}
#sec-sell.is-vehicle-sell .mkt-sell-goods-note {
  display: none !important;
}
/* Vehicle sell: never show goods category picker */
#sec-sell.is-vehicle-sell #mkt-cat-wrap {
  display: none !important;
}
.mkt-auto-fields {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.03));
}
html.dark .mkt-auto-fields {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.4));
}
.mkt-auto-fields-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}
.mkt-auto-fields-head > i {
  width: 2rem; height: 2rem;
  border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 165, 233, 0.18);
  color: #0284c7;
  flex-shrink: 0;
}
html.dark .mkt-auto-fields-head > i { color: #7dd3fc; }
.mkt-auto-fields-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
html.dark .mkt-auto-fields-head strong { color: #f1f5f9; }
.mkt-auto-fields-head p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}
html.dark .mkt-auto-fields-head p { color: #94a3b8; }

/* Sell type chooser — goods vs Autos & motorbikes */
.mkt-sell-chooser {
  margin: 0 auto 1.25rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(ellipse 70% 90% at 12% 40%, rgba(251, 191, 36, 0.22), transparent 55%),
    linear-gradient(145deg, #0f172a 0%, #1e293b 48%, #0c4a6e 120%);
  color: #f8fafc;
  box-shadow: 0 22px 48px -28px rgba(15, 23, 42, 0.65);
}
.mkt-sell-chooser .mkt-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
}
.mkt-sell-chooser .mkt-h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #fff;
}
.mkt-sell-chooser .mkt-lede {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.mkt-sell-chooser .mkt-lede strong { color: #fde68a; }
.mkt-sell-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .mkt-sell-choose-grid { grid-template-columns: 1fr 1fr; }
}
.mkt-sell-choose-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.mkt-sell-choose-card:hover,
.mkt-sell-choose-card:focus-visible {
  border-color: rgba(251, 191, 36, 0.75);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-1px);
  outline: none;
}
.mkt-sell-choose-card--auto:hover,
.mkt-sell-choose-card--auto:focus-visible {
  border-color: rgba(56, 189, 248, 0.85);
}
.mkt-sell-choose-icon {
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.mkt-sell-choose-card--auto .mkt-sell-choose-icon {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}
.mkt-sell-choose-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.mkt-sell-choose-body {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #94a3b8;
}
.mkt-sell-choose-cta {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fbbf24;
}
.mkt-sell-choose-card--auto .mkt-sell-choose-cta { color: #7dd3fc; }
.mkt-sell-choose-foot {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.mkt-sell-choose-foot a {
  color: #fde68a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mkt-sell-body[hidden],
.mkt-sell-chooser[hidden] {
  display: none !important;
}
.mkt-card.is-reserved .mkt-card-media img { filter: saturate(0.92); }
.mkt-card.is-reserved .mkt-cta { color: #a5b4fc; font-weight: 700; }
.mkt-card.is-withdrawn .mkt-card-media img { filter: grayscale(0.35); }
.mkt-card-status-banner {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-align: center; padding: 0.4rem 0.5rem;
  text-transform: uppercase;
}
.mkt-card-status-banner.is-withdrawn { background: #dc2626; color: #fff; }
.mkt-card-status-banner.is-gone { background: #059669; color: #fff; }
.mkt-card-status-banner.is-reserved { background: #6366f1; color: #fff; }
.mkt-card-status-banner.is-pending { background: #f59e0b; color: #0f172a; }
.mkt-card-status-banner.is-removed { background: #7f1d1d; color: #fecaca; }

.mkt-cond-badge {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.mkt-cond-badge--new {
  background: rgba(16, 185, 129, 0.14); color: #047857;
  border-color: rgba(16, 185, 129, 0.35);
}
.mkt-cond-badge--used {
  background: rgba(100, 116, 139, 0.14); color: #334155;
  border-color: rgba(100, 116, 139, 0.3);
}
html.dark .mkt-cond-badge--new {
  background: rgba(16, 185, 129, 0.18); color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}
html.dark .mkt-cond-badge--used {
  background: rgba(148, 163, 184, 0.12); color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}
.mkt-status-banner {
  display: flex; gap: 0.55rem; align-items: flex-start;
  padding: 0.7rem 0.85rem; border-radius: 0.85rem; margin: 0 0 0.65rem;
  font-size: 0.84rem; line-height: 1.4;
}
.mkt-status-banner strong { display: block; margin-bottom: 0.1rem; }
.mkt-status-banner--withdrawn {
  background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
}
html.dark .mkt-status-banner--withdrawn,
html[data-oj-theme="dark"] .mkt-status-banner--withdrawn {
  background: rgba(220, 38, 38, 0.15); border-color: rgba(248, 113, 113, 0.45); color: #fecaca;
}
.mkt-status-banner--withdrawn i { color: #dc2626; margin-top: 0.15rem; }
html.dark .mkt-status-banner--withdrawn i { color: #f87171; }
.mkt-status-banner--gone {
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
}
html.dark .mkt-status-banner--gone {
  background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0;
}
.mkt-modal-badges .mkt-badge-withdrawn {
  background: #fef2f2 !important; border-color: #fca5a5 !important; color: #b91c1c !important;
}
.mkt-modal-badges .mkt-badge-gone {
  background: #ecfdf5 !important; border-color: #6ee7b7 !important; color: #047857 !important;
}
.mkt-modal-badges .mkt-badge-pending {
  background: #fffbeb !important; border-color: #fcd34d !important; color: #b45309 !important;
}
.mkt-modal-badges .mkt-badge-removed {
  background: #fef2f2 !important; border-color: #f87171 !important; color: #7f1d1d !important;
}
.mkt-photos {
  position: absolute; bottom: 0.45rem; right: 0.45rem; z-index: 1;
  font-size: 0.65rem; font-weight: 800; padding: 0.18rem 0.4rem; border-radius: 999px;
  background: rgba(15,23,42,0.75); color: #fff;
}
.mkt-card-body {
  padding: 0.7rem 0.8rem 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1;
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.mkt-price { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
html.dark .mkt-price { color: #f8fafc; }
.mkt-price.is-reduced,
.mkt-item-price.is-reduced,
.mkt-modal-price.is-reduced {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.45rem;
}
.mkt-price-was {
  font-size: 0.82em; font-weight: 700;
  text-decoration: line-through;
  color: #94a3b8;
}
.mkt-price-now { font-weight: 900; color: #b45309; }
html.dark .mkt-price-now { color: #fbbf24; }
.mkt-reduced-pill {
  display: inline-flex; align-items: center;
  padding: 0.12rem 0.45rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fcd34d;
  line-height: 1.2;
}
.mkt-reduced-pill--badge { font-size: 0.68rem; padding: 0.15rem 0.5rem; }
html.dark .mkt-reduced-pill {
  background: rgba(245, 158, 11, 0.18); color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
}
.mkt-price.free { color: #059669; }
html.dark .mkt-price.free { color: #6ee7b7; }
.mkt-card-tags,
.mkt-item-tags,
.mkt-modal-tags,
.mkt-modal-tags-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0 0.15rem;
}
.mkt-tag-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-tag-chip:hover {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #78350f;
}
html.dark .mkt-tag-chip,
html[data-oj-theme="dark"] .mkt-tag-chip {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}
.mkt-card-tags .mkt-tag-chip {
  font-size: 0.6rem;
  padding: 0.12rem 0.4rem;
}
.mkt-title {
  margin: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.3; color: #1e293b;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%;
}
html.dark .mkt-title { color: #e2e8f0; }
.mkt-meta {
  font-size: 0.75rem; color: #94a3b8; margin: 0;
  min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mkt-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.35rem; gap: 0.35rem; min-width: 0;
}
.mkt-cta { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #d97706; }

.mkt-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .mkt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px) { .mkt-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { .mkt-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.mkt-cats {
  display: grid; gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (min-width: 640px) { .mkt-cats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .mkt-cats { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.mkt-cats--lg { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 720px) { .mkt-cats--lg { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.mkt-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
  text-align: left; padding: 0.9rem; border-radius: 1rem; cursor: pointer;
  border: 1px solid #e2e8f0; background: #fff; color: inherit; font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
html.dark .mkt-cat { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }
.mkt-cat:hover { border-color: #fbbf24; transform: translateY(-2px); }
.mkt-cat i { color: #d97706; font-size: 1.15rem; }
html.dark .mkt-cat i { color: #fbbf24; }
.mkt-cat strong { font-size: 0.92rem; font-weight: 800; }
.mkt-cat span { font-size: 0.72rem; color: #94a3b8; }

.mkt-filters {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end;
  padding: 0.9rem; border-radius: 1.1rem; margin-bottom: 1rem;
  background: #fff; border: 1px solid #e2e8f0;
}
html.dark .mkt-filters { background: #0f172a; border-color: #1e293b; }
.mkt-filters--browse {
  box-shadow: 0 12px 32px -26px rgba(15, 23, 42, 0.45);
}
.mkt-field--sort select {
  min-width: 11rem;
  font-weight: 700;
}
.mkt-arrange {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: #94a3b8;
  min-width: 9.5rem;
}
.mkt-arrange select {
  min-width: 10.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
}
html.dark .mkt-arrange select {
  background: #020617; border-color: #334155; color: #e2e8f0;
}
.mkt-page-head-actions {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.55rem;
}
.mkt-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 7rem; }
.mkt-field.grow { flex: 1 1 12rem; }
.mkt-field span {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #94a3b8;
}
.mkt-field input, .mkt-field select, .mkt-field textarea {
  border-radius: 0.75rem; border: 1px solid #e2e8f0; background: #f8fafc;
  color: #0f172a; padding: 0.5rem 0.7rem; font-size: 0.9rem;
}
html.dark .mkt-field input, html.dark .mkt-field select, html.dark .mkt-field textarea {
  background: #020617; border-color: #334155; color: #e2e8f0;
}
.mkt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .mkt-row { grid-template-columns: 1fr; } }

.mkt-form {
  max-width: 36rem; display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.25rem; border-radius: 1.25rem;
  background: #fff; border: 1px solid #e2e8f0;
}
html.dark .mkt-form { background: #0f172a; border-color: #1e293b; }
.mkt-drop {
  border: 2px dashed #cbd5e1; border-radius: 1rem; padding: 0.85rem; background: #f8fafc;
}
html.dark .mkt-drop { border-color: #334155; background: #020617; }
.mkt-drop.is-drag { border-color: #f59e0b; background: rgba(245,158,11,0.08); }
.mkt-drop-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  text-align: center; color: #64748b; padding: 0.5rem;
}
.mkt-drop-inner i { font-size: 1.5rem; color: #d97706; }
.mkt-drop-inner strong { color: #0f172a; }
html.dark .mkt-drop-inner strong { color: #e2e8f0; }
.mkt-thumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.mkt-thumbs:empty { display: none; }
.mkt-thumb-wrap { position: relative; }
.mkt-thumb-wrap img {
  width: 4rem; height: 4rem; object-fit: cover; border-radius: 0.55rem; border: 1px solid #e2e8f0; display: block;
}
.mkt-thumb-cover {
  position: absolute; bottom: 0.15rem; left: 0.15rem; right: 0.15rem;
  font-size: 0.5rem; font-weight: 900; text-align: center; text-transform: uppercase;
  background: #fbbf24; color: #0f172a; border-radius: 0.25rem;
}
.mkt-status { font-size: 0.88rem; color: #059669; margin: 0; }
.mkt-status.err { color: #dc2626; }

.mkt-loading, .mkt-empty {
  grid-column: 1 / -1; text-align: center; padding: 2rem 1rem; color: #94a3b8;
}
.mkt-empty i { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; opacity: 0.6; }
.mkt-empty p { margin: 0 0 0.75rem; }
.mkt-rail .mkt-empty { width: 100%; border: 1px dashed #cbd5e1; border-radius: 1rem; }
html.dark .mkt-rail .mkt-empty { border-color: #334155; }

.mkt-rules-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .mkt-rules-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.mkt-rule-card {
  position: relative; padding: 1.15rem; border-radius: 1.15rem;
  background: #fff; border: 1px solid #e2e8f0;
}
html.dark .mkt-rule-card { background: #0f172a; border-color: #1e293b; }
.mkt-rule-card span {
  position: absolute; top: 0.85rem; right: 1rem;
  font-size: 0.75rem; font-weight: 900; color: #cbd5e1;
}
.mkt-rule-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 800; }
.mkt-rule-card p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.45; }
html.dark .mkt-rule-card p { color: #94a3b8; }

/* Modal */
.mkt-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mkt-modal[hidden] { display: none !important; }
.mkt-modal-backdrop {
  position: absolute; inset: 0; background: rgba(2,6,23,0.72); backdrop-filter: blur(4px);
}
.mkt-modal-panel {
  position: relative; z-index: 1; width: min(900px, 100%); max-height: min(92vh, 880px);
  overflow: auto; border-radius: 1.25rem; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  display: grid; grid-template-columns: 1fr;
}
html.dark .mkt-modal-panel { background: #0b1220; color: #e2e8f0; }
@media (min-width: 800px) {
  .mkt-modal-panel { grid-template-columns: 1.05fr 0.95fr; }
}
.mkt-modal-x {
  position: absolute; top: 0.55rem; right: 0.65rem; z-index: 3;
  width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 0;
  background: rgba(15,23,42,0.7); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.mkt-modal-gallery { background: #0f172a; padding: 0.65rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mkt-modal-photo-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}
.mkt-modal-ribbon {
  position: absolute; top: 0.55rem; left: 0.55rem; z-index: 3;
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  background: #fbbf24; color: #0f172a;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,0.55);
  pointer-events: none;
}
.mkt-modal-ribbon.free { background: #10b981; color: #fff; }
.mkt-modal-ribbon.reserved {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.55);
}
.mkt-modal-main {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.75rem; background: #1e293b;
  display: block;
}
.mkt-modal-badges .mkt-badge-reserved {
  background: #e0e7ff; border-color: #818cf8; color: #3730a3;
}
html.dark .mkt-modal-badges .mkt-badge-reserved {
  background: rgba(99, 102, 241, 0.22); border-color: rgba(129, 140, 248, 0.55); color: #c7d2fe;
}
.mkt-item-reserved-note--sm {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
}
.mkt-modal-main--zoom {
  cursor: zoom-in;
}
.mkt-modal-main--zoom:hover {
  outline: 2px solid rgba(251, 191, 36, 0.55);
  outline-offset: 2px;
}
.mkt-modal-thumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mkt-modal-thumbs img {
  width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 0.45rem; cursor: pointer;
  border: 2px solid transparent; opacity: 0.75;
}
.mkt-modal-thumbs img.is-on { border-color: #fbbf24; opacity: 1; }
.mkt-modal-body { padding: 1.15rem 1.25rem 1.35rem; }
.mkt-modal-title { margin: 0.35rem 0 0.2rem; font-size: 1.35rem; font-weight: 800; }
.mkt-modal-price { font-size: 1.45rem; font-weight: 800; color: #d97706; margin: 0.15rem 0 0.45rem; }
.mkt-modal-price.free { color: #059669; }
html.dark .mkt-modal-price { color: #fbbf24; }
html.dark .mkt-modal-price.free { color: #6ee7b7; }
.mkt-modal-meta { font-size: 0.85rem; color: #94a3b8; margin: 0 0 0.75rem; }
.mkt-modal-desc { font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; margin: 0 0 1rem; color: #334155; }
html.dark .mkt-modal-desc { color: #cbd5e1; }
.mkt-modal-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mkt-modal-badges span {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.45rem; border-radius: 999px; border: 1px solid #e2e8f0; color: #64748b;
}
.mkt-modal-badges span.sale { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.mkt-modal-badges span.free { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.mkt-actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mkt-interest { display: flex; flex-direction: column; gap: 0.55rem; }
.mkt-ok { display: flex; gap: 0.65rem; color: #059669; }
.mkt-ok i { font-size: 1.25rem; margin-top: 0.1rem; }
.mkt-ok strong { display: block; color: #0f172a; }
html.dark .mkt-ok strong { color: #ecfdf5; }
.mkt-ok p { margin: 0.2rem 0 0.55rem; color: #64748b; font-size: 0.88rem; }

.oj-status-chip {
  display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
/* Free Market notifications / comms prefs */
.mkt-comms-card {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 36px -28px rgba(15, 23, 42, 0.45);
}
html.dark .mkt-comms-card,
html[data-oj-theme="dark"] .mkt-comms-card {
  background: #0f172a;
  border-color: #1e293b;
}
.mkt-comms-how {
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
}
html.dark .mkt-comms-how {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
}
.mkt-comms-how h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mkt-comms-how ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.5;
}
.mkt-comms-how li { margin: 0.3rem 0; }
.mkt-comms-list { display: flex; flex-direction: column; gap: 0.65rem; }
.mkt-comms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
html.dark .mkt-comms-row {
  background: rgba(15, 23, 42, 0.6);
  border-color: #334155;
}
.mkt-comms-row-copy { flex: 1 1 12rem; min-width: 0; }
.mkt-comms-row-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}
html.dark .mkt-comms-row-copy strong { color: #f1f5f9; }
.mkt-comms-row-copy p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}
html.dark .mkt-comms-row-copy p { color: #94a3b8; }
.mkt-comms-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.mkt-comms-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}
html.dark .mkt-comms-toggle { color: #cbd5e1; }
.mkt-comms-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #0ea5e9;
}
.mkt-comms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* Free Market site footer (dashboard + item pages) */
.mkt-site-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.55) 40%);
}
.mkt-site-footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 0.25rem;
  text-align: center;
}
.mkt-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  margin-bottom: 0.85rem;
}
.mkt-site-footer-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
}
.mkt-site-footer-links a:hover {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mkt-site-footer-legal {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.mkt-site-footer-legal a {
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
}
.mkt-site-footer-legal a:hover { color: #fbbf24; text-decoration: underline; }
.mkt-site-footer-note {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #64748b;
}
/* Light theme dashboards */
html:not(.dark) .mkt-site-footer {
  background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.9));
  border-top-color: #e2e8f0;
}
html:not(.dark) .mkt-site-footer-links a { color: #64748b; }
html:not(.dark) .mkt-site-footer-links a:hover { color: #b45309; }
html:not(.dark) .mkt-site-footer-legal { color: #334155; }
html:not(.dark) .mkt-site-footer-legal a { color: #0f172a; }
html:not(.dark) .mkt-site-footer-note { color: #94a3b8; }
/* Item page sits on dark body */
.mkt-item-page .mkt-site-footer {
  margin-top: 2rem;
  background: transparent;
  border-top-color: rgba(148, 163, 184, 0.15);
}
/* Hide footer when Messages fills the viewport */
body.mkt-section-messages .mkt-site-footer {
  display: none !important;
}
@media (max-width: 560px) {
  .mkt-site-footer { margin-top: 1.5rem; padding-top: 1.15rem; }
  .mkt-site-footer-links { gap: 0.35rem 0.75rem; }
  .mkt-site-footer-links a { font-size: 0.75rem; }
}

/* Compact nav count pills (must NOT inherit .nav-link > span { flex:1 }) */
.mkt-nav-badge,
.nav-link > .mkt-nav-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 1.35rem;
  max-width: 2.75rem;
  height: 1.25rem;
  padding: 0 0.4rem !important;
  margin: 0;
  border-radius: 999px;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #f59e0b;
  color: #0f172a;
  box-sizing: border-box;
}
.mkt-nav-badge.hidden,
.nav-link > .mkt-nav-badge.hidden { display: none !important; }
.mkt-nav-badge--rose { background: #f43f5e; color: #fff; }
.mkt-nav-badge--red { background: #ef4444; color: #fff; }
.mkt-nav-badge--mobile-abs {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem !important;
  font-size: 0.55rem !important;
  box-shadow: 0 0 0 2px #0f172a;
}

.oj-brand-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem; width: 100%; min-width: 0; }
/* Mobile drawer close control - never show on desktop sidebar */
.sidebar .oj-brand-row > .mkt-sidebar-close {
  display: none !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}
@media (max-width: 767px) {
  .sidebar .oj-brand-row > .mkt-sidebar-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    flex-shrink: 0;
  }
}
.mkt-sidebar-chip { display: inline-flex; max-width: 100%; }
.sidebar-footer-tools { display: flex; gap: 0.35rem; }
.oj-footer-icon-btn {
  width: 2rem; height: 2rem; border-radius: 0.65rem; border: 1px solid rgba(148,163,184,0.25);
  background: rgba(30,41,59,0.6); color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.oj-footer-icon-btn.logout:hover { background: rgba(239,68,68,0.25); color: #fecaca; }
.oj-sidebar-backdrop { background: rgba(2,6,23,0.55); }

/* Date listed on cards */
.mkt-listed-badge {
  position: absolute; bottom: 0.45rem; left: 0.45rem; z-index: 1;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.18rem 0.4rem; border-radius: 999px;
  background: rgba(15,23,42,0.72); color: #f8fafc;
  backdrop-filter: blur(4px);
}

/* Owner edit panel */
.mkt-owner-panel {
  margin-bottom: 0.85rem; padding: 0.85rem; border-radius: 1rem;
  border: 1px solid #fde68a; background: #fffbeb;
}
html.dark .mkt-owner-panel {
  border-color: rgba(251,191,36,0.35); background: rgba(120,53,15,0.22);
}
.mkt-owner-edit, .mkt-admin-edit {
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed rgba(180,83,9,0.35);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.mkt-edit-photos { display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-edit-photos-label {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #94a3b8;
}
.mkt-edit-thumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mkt-edit-thumbs:empty { display: none; }
.mkt-edit-thumb {
  position: relative; width: 4.5rem; height: 4.5rem; border-radius: 0.55rem; overflow: hidden;
  border: 1px solid #e2e8f0; background: #f1f5f9;
}
html.dark .mkt-edit-thumb { border-color: #334155; background: #0f172a; }
.mkt-edit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-edit-thumb-x {
  position: absolute; top: 0.15rem; right: 0.15rem; z-index: 2;
  width: 1.35rem; height: 1.35rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(220,38,38,0.92); color: #fff; font-size: 0.95rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.mkt-edit-thumb-cover {
  position: absolute; bottom: 0.15rem; left: 0.15rem; right: 0.15rem;
  font-size: 0.5rem; font-weight: 900; text-align: center; text-transform: uppercase;
  background: #fbbf24; color: #0f172a; border-radius: 0.25rem; padding: 0.05rem;
}
.mkt-edit-thumb--new { outline: 2px solid #34d399; }
.mkt-edit-add-photos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; cursor: pointer;
}
.mkt-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

/* Admin tools */
.mkt-admin-panel {
  margin-bottom: 1rem; padding: 0.9rem; border-radius: 1rem;
  border: 1px solid #fecaca; background: #fef2f2;
}
html.dark .mkt-admin-panel {
  border-color: rgba(248,113,113,0.35); background: rgba(127,29,29,0.25);
}
.mkt-admin-head {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #b91c1c; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.4rem;
}
html.dark .mkt-admin-head { color: #fca5a5; }
.mkt-admin-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.75rem; margin-bottom: 0.75rem;
}
.mkt-admin-meta span {
  display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #94a3b8;
}
.mkt-admin-meta strong { font-size: 0.82rem; word-break: break-all; }
.mkt-admin-actions { margin-bottom: 0.35rem; }
.mkt-btn-warn { background: #f59e0b; color: #0f172a; }
.mkt-btn-warn:hover { background: #fbbf24; }
.mkt-btn-danger { background: #dc2626; color: #fff; }
.mkt-btn-danger:hover { background: #ef4444; }

.mkt-mod-list { display: flex; flex-direction: column; gap: 0.75rem; }
.mkt-mod-row {
  display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem; border-radius: 1.1rem; background: #fff; border: 1px solid #e2e8f0;
}
html.dark .mkt-mod-row { background: #0f172a; border-color: #1e293b; }
.mkt-mod-thumb {
  width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 0.75rem; flex-shrink: 0;
  background: #e2e8f0;
}
.mkt-mod-thumb--empty {
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.mkt-mod-body { flex: 1 1 14rem; min-width: 0; }
.mkt-mod-body h3 { margin: 0.2rem 0; font-size: 1rem; font-weight: 800; }
.mkt-mod-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mkt-mod-tags span {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.15rem 0.4rem; border-radius: 999px; border: 1px solid #e2e8f0; color: #64748b;
}
.mkt-mod-tags .sale { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.mkt-mod-tags .free { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.mkt-mod-tags .st { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.mkt-mod-snippet { font-size: 0.82rem; color: #64748b; margin: 0.35rem 0 0; line-height: 1.4; }
.mkt-mod-actions {
  display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0;
}

/* Guest locks */
.mkt-nav-locked,
.mkt-locked-btn {
  cursor: not-allowed !important;
  position: relative;
}
.mkt-nav-locked:hover,
.mkt-locked-btn:hover {
  filter: brightness(1.05);
}
.mkt-lock-toast {
  position: fixed; z-index: 200; left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  /* Hug content - no fixed wide box with empty right gap */
  width: max-content;
  max-width: min(22rem, calc(100vw - 1.5rem));
  animation: mktToastIn 0.22s ease-out;
}
@keyframes mktToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mkt-lock-toast-inner {
  display: flex; gap: 0.55rem; align-items: flex-start;
  padding: 0.7rem 0.75rem 0.7rem 0.8rem; border-radius: 0.9rem;
  background: #0f172a; color: #f8fafc;
  border: 1px solid rgba(251,191,36,0.45);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.65);
}
.mkt-lock-toast-inner > i { color: #fbbf24; margin-top: 0.15rem; font-size: 1rem; flex-shrink: 0; }
.mkt-lock-toast-inner > div { min-width: 0; flex: 1 1 auto; }
.mkt-lock-toast-inner strong { display: block; color: #fde68a; font-size: 0.88rem; line-height: 1.3; }
.mkt-lock-toast-inner p { margin: 0.2rem 0 0.5rem; font-size: 0.78rem; color: #cbd5e1; line-height: 1.35; }
.mkt-lock-toast-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mkt-lock-toast-actions .mkt-btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.mkt-lock-toast-x {
  border: 0; background: transparent; color: #94a3b8; font-size: 1.15rem; cursor: pointer;
  line-height: 1; padding: 0; margin: -0.1rem 0 0 0; flex-shrink: 0;
}
.mkt-interest-locked { opacity: 0.98; }

/* eBay import panel */
/* -- Sell page (centred in main content) -- */
.section--sell {
  width: 100%;
  max-width: min(44rem, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.mkt-sell-hero {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.25rem;
  margin: 0 auto 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: 1.4rem;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(ellipse 70% 90% at 12% 40%, rgba(251, 191, 36, 0.28), transparent 55%),
    linear-gradient(145deg, #0f172a 0%, #1e293b 48%, #292524 120%);
  color: #f8fafc;
  box-shadow: 0 22px 48px -28px rgba(15, 23, 42, 0.65);
}
.mkt-sell-hero-copy {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mkt-sell-kicker {
  color: #fde68a !important;
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.45rem;
  justify-content: flex-start;
}
.mkt-sell-hero .mkt-h1 {
  color: #fff;
  text-align: left;
  width: 100%;
}
.mkt-sell-lede {
  color: #cbd5e1 !important;
  max-width: 32rem;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.mkt-sell-lede strong { color: #fde68a !important; }
.mkt-sell-pills {
  list-style: none; margin: 0.95rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: flex-start;
}
.mkt-sell-pills li {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.28);
  color: #fef3c7;
}
.mkt-sell-pills li i { font-size: 0.7rem; opacity: 0.9; }
.mkt-sell-hero-aside {
  position: relative;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  min-width: 5.5rem;
  margin: 0;
  order: 0;
}
.mkt-sell-hero-orb {
  position: absolute;
  width: 6.25rem; height: 6.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #d97706 55%, transparent 70%);
  opacity: 0.45; filter: blur(2px);
}
.mkt-sell-hero-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.5);
}
.mkt-sell-hero-card i { font-size: 1.15rem; color: #fbbf24; margin-bottom: 0.2rem; }
.mkt-sell-hero-card span {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #94a3b8;
}
.mkt-sell-hero-card strong { font-size: 0.95rem; color: #fff; }
@media (max-width: 420px) {
  .mkt-sell-hero {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .mkt-sell-hero-aside {
    width: 100%;
    justify-content: flex-start;
  }
}
.mkt-sell-goods-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin: 0 auto 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.3);
  text-align: left;
}
html.dark .mkt-sell-goods-note,
html[data-oj-theme="dark"] .mkt-sell-goods-note {
  background: #0f172a; border-color: #1e293b;
}
.mkt-sell-goods-note > i {
  flex-shrink: 0; width: 2.15rem; height: 2.15rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.7rem;
  background: #fffbeb; color: #d97706; font-size: 0.95rem;
}
html.dark .mkt-sell-goods-note > i {
  background: rgba(245, 158, 11, 0.15); color: #fbbf24;
}
.mkt-sell-goods-note strong {
  display: block; font-size: 0.88rem; color: #0f172a; margin-bottom: 0.15rem;
}
html.dark .mkt-sell-goods-note strong { color: #f1f5f9; }
.mkt-sell-goods-note p {
  margin: 0; font-size: 0.82rem; line-height: 1.45; color: #64748b;
}
html.dark .mkt-sell-goods-note p { color: #94a3b8; }
.mkt-sell-goods-note a {
  color: #b45309; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
html.dark .mkt-sell-goods-note a { color: #fbbf24; }

.mkt-form--sell {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#mkt-ebay-panel,
#mkt-ebay-off {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
html.dark .mkt-form--sell { background: transparent; border: 0; }
.mkt-form-step {
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 36px -28px rgba(15, 23, 42, 0.45);
  display: flex; flex-direction: column; gap: 0.85rem;
}
html.dark .mkt-form-step,
html[data-oj-theme="dark"] .mkt-form-step {
  background: #0f172a; border-color: #1e293b;
}
.mkt-form-step-head {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-bottom: 0.15rem;
}
.mkt-form-step-num {
  flex-shrink: 0;
  width: 1.85rem; height: 1.85rem;
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 900;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #0f172a;
  box-shadow: 0 6px 14px -6px rgba(245, 158, 11, 0.7);
}
.mkt-form-step-title {
  margin: 0; font-size: 1.02rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em;
}
html.dark .mkt-form-step-title { color: #f8fafc; }
.mkt-form-step-hint {
  margin: 0.15rem 0 0; font-size: 0.78rem; color: #94a3b8; line-height: 1.35;
}
.mkt-form--sell .mkt-drop {
  border-style: dashed;
  border-width: 2px;
  border-color: #fcd34d;
  background:
    linear-gradient(180deg, #fffbeb 0%, #fff 70%);
  padding: 1.1rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
html.dark .mkt-form--sell .mkt-drop {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), #020617 65%);
}
.mkt-form--sell .mkt-drop.is-drag {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.12);
}
.mkt-drop-icon {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff7ed; color: #d97706; font-size: 1.25rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 8px 18px -12px rgba(217, 119, 6, 0.55);
}
html.dark .mkt-drop-icon {
  background: rgba(245, 158, 11, 0.15); color: #fbbf24;
}
.mkt-form--sell .mkt-drop-inner { gap: 0.4rem; padding: 0.65rem 0.5rem 0.85rem; }
.mkt-form--sell .mkt-drop-inner strong { font-size: 1rem; }
.mkt-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.55rem;
}
.mkt-photo-actions .mkt-btn {
  min-height: 2.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 700;
}
.mkt-photo-count {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
html.dark .mkt-photo-count { color: #94a3b8; }
.mkt-drop-hint-mobile { display: none; }
.mkt-drop-hint-desktop { display: inline; }
.mkt-thumb-wrap { position: relative; }
.mkt-thumb-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 2;
}
.mkt-thumb-remove:hover { background: #dc2626; }
.mkt-edit-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.25rem;
}
@media (max-width: 720px) {
  .mkt-drop-hint-desktop { display: none; }
  .mkt-drop-hint-mobile { display: inline; }
  .mkt-photo-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mkt-photo-actions .mkt-btn {
    width: 100%;
    justify-content: center;
  }
}
.mkt-form--sell .mkt-field input,
.mkt-form--sell .mkt-field select,
.mkt-form--sell .mkt-field textarea {
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mkt-form--sell .mkt-field input:focus,
.mkt-form--sell .mkt-field select:focus,
.mkt-form--sell .mkt-field textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.mkt-form-step--submit { gap: 0.75rem; }
/* Publish busy: freeze button + bouncing dots (same idea as messages “someone is chatting”) */
.mkt-btn-publish {
  position: relative;
  min-height: 3rem;
  font-size: 0.95rem;
  border-radius: 1rem;
  box-shadow: 0 12px 28px -14px rgba(245, 158, 11, 0.85);
  transition: opacity 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.mkt-btn-publish.is-busy,
.mkt-btn-publish:disabled {
  cursor: not-allowed;
  pointer-events: none;
}
.mkt-btn-publish:disabled:not(.is-busy) {
  opacity: 0.7;
  filter: saturate(0.75);
}
.mkt-btn-publish.is-busy {
  opacity: 1;
  background: #d97706 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 24px -14px rgba(180, 83, 9, 0.75);
}
.mkt-publish-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
}
.mkt-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.mkt-typing-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.45;
  animation: mktTypingBounce 1.1s ease-in-out infinite;
}
.mkt-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.mkt-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes mktTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.mkt-form-fineprint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

.mkt-ebay-panel {
  margin: 0 0 1rem;
  padding: 0;
  border-radius: 1.2rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 32px -26px rgba(29, 78, 216, 0.45);
  overflow: hidden;
}
html.dark .mkt-ebay-panel,
html[data-oj-theme="dark"] .mkt-ebay-panel {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), #0f172a 55%);
  border-color: rgba(96, 165, 250, 0.25);
}
.mkt-ebay-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease;
}
.mkt-ebay-toggle:hover { background: rgba(37, 99, 235, 0.06); }
html.dark .mkt-ebay-toggle:hover { background: rgba(96, 165, 250, 0.08); }
.mkt-ebay-toggle-icon {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: #1d4ed8; color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 16px -10px rgba(29, 78, 216, 0.8);
}
.mkt-ebay-toggle-copy {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.mkt-ebay-toggle-copy strong {
  font-size: 0.95rem; font-weight: 800; color: #0f172a;
}
html.dark .mkt-ebay-toggle-copy strong { color: #f1f5f9; }
.mkt-ebay-toggle-sub {
  font-size: 0.75rem; color: #64748b; line-height: 1.35;
}
html.dark .mkt-ebay-toggle-sub { color: #94a3b8; }
.mkt-ebay-toggle-chev {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
  background: rgba(148, 163, 184, 0.15);
  transition: transform 0.2s ease;
}
.mkt-ebay-panel:not(.is-collapsed) .mkt-ebay-toggle-chev {
  transform: rotate(180deg);
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.mkt-ebay-body {
  padding: 0 1rem 1.05rem;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}
.mkt-ebay-body[hidden] { display: none !important; }
.mkt-ebay-head {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem;
  align-items: flex-start; justify-content: space-between;
}
.mkt-ebay-title {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: 0.45rem;
}
.mkt-ebay-title i { color: #1d4ed8; }
.mkt-ebay-sub {
  margin: 0.75rem 0 0.65rem; font-size: 0.8rem; color: #475569; line-height: 1.45; max-width: 40rem;
}
html.dark .mkt-ebay-sub { color: #94a3b8; }
.mkt-ebay-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mkt-ebay-status {
  margin: 0.75rem 0 0; font-size: 0.82rem; color: #1e293b;
  padding: 0.5rem 0.65rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(148,163,184,0.35);
}
.mkt-ebay-status.is-err { color: #b91c1c; border-color: rgba(248,113,113,0.5); background: #fef2f2; }
.mkt-ebay-status.is-ok { color: #166534; border-color: rgba(74,222,128,0.45); background: #f0fdf4; }
.mkt-ebay-list {
  margin-top: 0.85rem;
  display: grid; gap: 0.55rem;
  max-height: 22rem; overflow: auto;
}
.mkt-ebay-row {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.55rem 0.65rem; border-radius: 0.85rem;
  background: #fff; border: 1px solid #e2e8f0;
}
.mkt-ebay-row.is-disabled { opacity: 0.62; }
.mkt-ebay-row.is-imported {
  border-color: rgba(16, 185, 129, 0.35);
  background: #f0fdf4;
}
.mkt-ebay-row.is-imported .meta { color: #047857; font-weight: 600; }
.mkt-ebay-row img {
  width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: 0.55rem;
  background: #f1f5f9; flex-shrink: 0;
}
.mkt-ebay-row .mkt-ebay-ph {
  width: 3.25rem; height: 3.25rem; border-radius: 0.55rem;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; flex-shrink: 0;
}
.mkt-ebay-row strong { display: block; font-size: 0.86rem; color: #0f172a; line-height: 1.3; }
.mkt-ebay-row .meta { font-size: 0.75rem; color: #64748b; margin-top: 0.15rem; }
.mkt-ebay-row label { display: flex; gap: 0.55rem; align-items: flex-start; cursor: pointer; min-width: 0; flex: 1; }
.mkt-ebay-row input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.mkt-ebay-import-bar {
  margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.65rem;
  align-items: center; justify-content: space-between;
}
.mkt-ebay-categorise {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}
.mkt-ebay-categorise-head h3 {
  margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: 0.4rem;
}
.mkt-ebay-categorise-head h3 i { color: #d97706; }
.mkt-ebay-categorise-head p {
  margin: 0.35rem 0 0; font-size: 0.8rem; color: #64748b; line-height: 1.4;
}
.mkt-ebay-categorise-apply {
  margin-top: 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end;
}
.mkt-ebay-categorise-apply label {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: 0.8rem; font-weight: 700; color: #334155;
}
.mkt-ebay-loc-all-label {
  flex: 1 1 12rem;
  min-width: 10rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.25rem !important;
}
.mkt-ebay-loc-all {
  width: 100%;
  min-width: 10rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
}
html.dark .mkt-ebay-loc-all,
html[data-oj-theme="dark"] .mkt-ebay-loc-all {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
.mkt-ebay-categorise-apply select,
.mkt-ebay-cat-select {
  min-width: 10rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
}
.mkt-ebay-categorise-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
  max-height: 18rem;
  overflow: auto;
}
.mkt-ebay-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.mkt-ebay-cat-row img,
.mkt-ebay-cat-row .mkt-ebay-ph {
  width: 2.75rem; height: 2.75rem; border-radius: 0.5rem;
  object-fit: cover; background: #f1f5f9; flex-shrink: 0;
}
.mkt-ebay-cat-row .mkt-ebay-ph {
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.mkt-ebay-cat-row .info { flex: 1 1 10rem; min-width: 0; }
.mkt-ebay-cat-row .info strong {
  display: block; font-size: 0.84rem; color: #0f172a; line-height: 1.3;
}
.mkt-ebay-cat-row .info .meta { font-size: 0.72rem; color: #64748b; margin-top: 0.1rem; }
.mkt-ebay-cat-row label.cat-pick {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: #94a3b8;
}
.mkt-ebay-cat-row label.cond-pick { min-width: 6.5rem; }
.mkt-ebay-cond-select {
  min-width: 6.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
}
html.dark .mkt-ebay-cond-select,
html[data-oj-theme="dark"] .mkt-ebay-cond-select {
  background: #0f172a; border-color: #334155; color: #f8fafc;
}
.mkt-ebay-categorise-actions {
  margin-top: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: flex-end;
}
html.dark .mkt-ebay-categorise,
html[data-oj-theme="dark"] .mkt-ebay-categorise {
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.25) 0%, #0f172a 55%);
  border-color: rgba(251, 191, 36, 0.35);
}
html.dark .mkt-ebay-categorise-head h3 { color: #f8fafc; }
html.dark .mkt-ebay-cat-row {
  background: #0b1220; border-color: #1e293b;
}
html.dark .mkt-ebay-cat-row .info strong { color: #f1f5f9; }
html.dark .mkt-ebay-categorise-apply select,
html.dark .mkt-ebay-cat-select {
  background: #0f172a; border-color: #334155; color: #f8fafc;
}
.mkt-ebay-import-bar .mkt-ebay-import-cancel,
.mkt-ebay-import-bar #mkt-ebay-import.mkt-btn-danger {
  min-width: 9.5rem;
}
.mkt-ebay-check-all { font-size: 0.8rem; font-weight: 600; color: #334155; display: flex; gap: 0.4rem; align-items: center; }
.mkt-ebay-progress {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.35);
}
.mkt-ebay-progress-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.35rem 0.75rem;
  font-size: 0.84rem; font-weight: 700; color: #0f172a;
  margin-bottom: 0.5rem;
}
.mkt-ebay-progress-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem; font-weight: 800; color: #1d4ed8;
}
.mkt-ebay-progress-track {
  height: 0.7rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}
.mkt-ebay-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #f59e0b 100%);
  transition: width 0.28s ease;
  min-width: 0;
}
.mkt-ebay-progress.is-done .mkt-ebay-progress-fill {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}
.mkt-ebay-progress.is-err .mkt-ebay-progress-fill {
  background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
}
.mkt-ebay-progress-detail {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  min-height: 1.1em;
}
.mkt-ebay-progress.is-busy .mkt-ebay-progress-fill {
  background-size: 200% 100%;
  animation: mktEbayProgressShimmer 1.4s linear infinite;
}
@keyframes mktEbayProgressShimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
  100% { filter: brightness(1); }
}
.mkt-ebay-off {
  margin: 0 0 1rem; font-size: 0.78rem; color: #64748b;
  padding: 0.55rem 0.75rem; border-radius: 0.75rem; border: 1px dashed #cbd5e1; background: #f8fafc;
}

/* eBay import terms dialog */
.mkt-ebay-terms {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.mkt-ebay-terms[hidden] { display: none !important; }
.mkt-ebay-terms-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}
.mkt-ebay-terms-panel {
  position: relative; z-index: 1;
  width: min(32rem, 100%);
  max-height: min(92vh, 40rem);
  overflow: auto;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  padding: 1.35rem 1.4rem 1.25rem;
}
html.dark .mkt-ebay-terms-panel,
html[data-oj-theme="dark"] .mkt-ebay-terms-panel {
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.mkt-ebay-terms-x {
  position: absolute; top: 0.55rem; right: 0.65rem;
  width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 0;
  background: rgba(15, 23, 42, 0.08); color: #334155;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
html.dark .mkt-ebay-terms-x,
html[data-oj-theme="dark"] .mkt-ebay-terms-x {
  background: rgba(148, 163, 184, 0.15); color: #e2e8f0;
}
.mkt-ebay-terms-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: #fffbeb; color: #b45309; font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
html.dark .mkt-ebay-terms-icon,
html[data-oj-theme="dark"] .mkt-ebay-terms-icon {
  background: rgba(245, 158, 11, 0.15); color: #fbbf24;
}
.mkt-ebay-terms-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem; font-weight: 800; color: #0f172a;
  padding-right: 2rem;
}
html.dark .mkt-ebay-terms-title,
html[data-oj-theme="dark"] .mkt-ebay-terms-title { color: #f8fafc; }
.mkt-ebay-terms-lede {
  margin: 0 0 0.85rem;
  font-size: 0.88rem; line-height: 1.5; color: #64748b;
}
html.dark .mkt-ebay-terms-lede,
html[data-oj-theme="dark"] .mkt-ebay-terms-lede { color: #94a3b8; }
.mkt-ebay-terms-list {
  margin: 0 0 0.9rem; padding: 0 0 0 1.15rem;
  font-size: 0.86rem; line-height: 1.5; color: #334155;
}
.mkt-ebay-terms-list li { margin: 0.35rem 0; }
html.dark .mkt-ebay-terms-list,
html[data-oj-theme="dark"] .mkt-ebay-terms-list { color: #cbd5e1; }
.mkt-ebay-terms-links {
  margin: 0 0 1rem;
  font-size: 0.82rem; line-height: 1.45; color: #64748b;
}
.mkt-ebay-terms-links a {
  color: #1d4ed8; font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px;
}
html.dark .mkt-ebay-terms-links a,
html[data-oj-theme="dark"] .mkt-ebay-terms-links a { color: #93c5fd; }
.mkt-ebay-terms-check {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.86rem; line-height: 1.45; color: #0f172a;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  margin: 0 0 0.55rem;
}
.mkt-ebay-terms-check input {
  margin-top: 0.2rem; flex-shrink: 0;
  width: 1.05rem; height: 1.05rem;
  accent-color: #d97706;
}
html.dark .mkt-ebay-terms-check,
html[data-oj-theme="dark"] .mkt-ebay-terms-check {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}
.mkt-ebay-terms-err {
  margin: 0 0 0.65rem;
  font-size: 0.8rem; font-weight: 600; color: #b91c1c;
}
.mkt-ebay-terms-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}
.mkt-ebay-terms-actions .mkt-btn:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none;
}
@media (max-width: 520px) {
  .mkt-ebay-terms { padding: 0.5rem; align-items: flex-end; }
  .mkt-ebay-terms-panel {
    width: 100%;
    max-height: min(94vh, 100%);
    border-radius: 1rem 1rem 0.5rem 0.5rem;
    padding: 1.15rem 1rem 1rem;
  }
  .mkt-ebay-terms-actions { flex-direction: column-reverse; }
  .mkt-ebay-terms-actions .mkt-btn { width: 100%; justify-content: center; }
}

/* Embedded messages - fill remaining viewport (no overflow past screen) */
.mkt-messages-section.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  margin: 0;
}
.mkt-messages-head {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  gap: 0.5rem;
}
.mkt-messages-head .mkt-h1 { font-size: clamp(1.15rem, 3.5vw, 1.65rem); }
.mkt-messages-shell {
  flex: 1 1 auto;
  min-height: 0; /* critical for flex child iframe */
  height: auto;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.25);
  position: relative;
  /* fallback if flex parent height unknown */
  min-height: min(58dvh, 520px);
}
html.dark .mkt-messages-shell,
html[data-oj-theme="dark"] .mkt-messages-shell {
  border-color: #1e293b;
  background: #020617;
}
/* Leave Marketplace (logo) dialog */
.mkt-leave-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.mkt-leave-modal[hidden] { display: none !important; }
.mkt-leave-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(15, 23, 42, 0.6); cursor: pointer;
}
.mkt-leave-panel {
  position: relative; z-index: 1;
  width: min(22.5rem, 100%);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
  text-align: center;
}
html.dark .mkt-leave-panel {
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.mkt-leave-x {
  position: absolute; top: 0.55rem; right: 0.65rem;
  width: 2rem; height: 2rem; border: 0; border-radius: 999px;
  background: transparent; color: #94a3b8; font-size: 1.25rem; cursor: pointer;
}
.mkt-leave-x:hover { color: #0f172a; background: #f1f5f9; }
html.dark .mkt-leave-x:hover { color: #f8fafc; background: #1e293b; }
.mkt-leave-icon {
  width: 3rem; height: 3rem; margin: 0 auto 0.75rem;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, 0.15); color: #d97706; font-size: 1.25rem;
}
html.dark .mkt-leave-icon { color: #fbbf24; background: rgba(245, 158, 11, 0.18); }
.mkt-leave-title {
  margin: 0 0 0.45rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
}
.mkt-leave-lede {
  margin: 0 0 1.1rem; font-size: 0.9rem; line-height: 1.45; color: #64748b;
}
html.dark .mkt-leave-lede { color: #94a3b8; }
.mkt-leave-actions {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.mkt-leave-actions .mkt-btn-block { width: 100%; justify-content: center; }
a.mkt-leave-link {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.mkt-leave-fine {
  margin: 0.9rem 0 0; font-size: 0.72rem; font-weight: 600; color: #94a3b8;
}

.mkt-messages-shell {
  position: relative;
  background: #f8fafc;
}
html.dark .mkt-messages-shell { background: #0f172a; }
.mkt-messages-iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8fafc;
  max-height: 100%;
}
.mkt-messages-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
}
html.dark .mkt-messages-loading {
  color: #cbd5e1;
  background: #0f172a;
}
.mkt-messages-shell.is-loading .mkt-messages-iframe {
  opacity: 0.15;
  pointer-events: none;
}

/* When Messages is open: lock page scroll, main becomes a full-height column */
body.mkt-section-messages {
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
}
body.mkt-section-messages #main-content {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  /* desktop: leave room under sticky search if shown */
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}
body.mkt-section-messages #main-content > .mkt-search-sticky {
  display: none !important;
}
body.mkt-section-messages #sec-messages.mkt-messages-section.active {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}
body.mkt-section-messages .mkt-messages-shell {
  min-height: 0;
  flex: 1 1 auto;
}

@media (max-width: 767px) {
  body.mkt-section-messages #main-content {
    /* fixed mobile header (single row - no search bar) */
    height: 100dvh;
    max-height: 100dvh;
    padding-top: max(4.75rem, calc(env(safe-area-inset-top, 0px) + 4.25rem)) !important;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px)) !important;
  }
  .mkt-messages-head {
    margin-bottom: 0.35rem;
  }
  .mkt-messages-head .mkt-lede {
    display: none; /* reclaim height for the iframe */
  }
  .mkt-messages-head .mkt-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }
  .mkt-messages-shell {
    border-radius: 0.75rem;
    box-shadow: none;
  }
}

/* ── Mobile-friendly Free Market shell ── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.mkt-app {
  overflow-x: hidden;
  max-width: 100vw;
}
#main-content {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .mkt-main,
  #main-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
    /* space for fixed mobile header (menu + search) */
    padding-top: max(7.5rem, calc(env(safe-area-inset-top, 0px) + 6.9rem)) !important;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Short hero copy + button labels on phones */
  .mkt-lede--full { display: none !important; }
  .mkt-lede--short { display: block !important; }
  .mkt-btn-label-full { display: none !important; }
  .mkt-btn-label-short { display: inline !important; }

  /* Hero card - no spill */
  .mkt-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0.85rem 0.95rem;
    border-radius: 1rem;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .mkt-hero-copy {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .mkt-hero .mkt-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
  }
  .mkt-hero .mkt-h1 {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 100%;
  }
  .mkt-lede,
  .mkt-lede--hero {
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 100%;
    margin-top: 0.3rem;
  }
  .mkt-service-cta {
    margin-top: 0.55rem;
    padding: 0.6rem 0.7rem;
    gap: 0.55rem;
  }
  .mkt-service-cta-icon {
    width: 1.9rem; height: 1.9rem; border-radius: 0.6rem; font-size: 0.85rem;
  }
  .mkt-service-cta-label { font-size: 0.84rem; }
  .mkt-service-cta-action { font-size: 0.72rem; }
  .mkt-hero-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .mkt-hero-toolbar .mkt-search--hero {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.35rem 0.4rem 0.35rem 0.65rem;
    gap: 0.35rem;
  }
  .mkt-search--hero input {
    font-size: 16px; /* no iOS zoom */
    min-width: 0;
    width: 100%;
  }
  .mkt-search--hero .mkt-search-go {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
  .mkt-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    min-width: 0;
  }
  .mkt-hero-actions .mkt-btn {
    width: 100%;
    min-width: 0;
    min-height: 2.6rem;
    padding: 0.5rem 0.45rem;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .mkt-hero-actions .mkt-btn i { flex-shrink: 0; }
  .mkt-hero-actions .mkt-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mkt-page-head { margin-bottom: 0.85rem; min-width: 0; }
  .mkt-page-head--row { align-items: flex-start; min-width: 0; }
  .mkt-h1 {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
    overflow-wrap: anywhere;
  }

  .mkt-block { margin-bottom: 1.35rem; min-width: 0; }
  .mkt-block-head {
    min-width: 0;
    gap: 0.5rem;
  }
  .mkt-block-head h2 {
    font-size: 0.98rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mkt-rail { min-width: 0; max-width: 100%; }
  .mkt-rail-track {
    gap: 0.6rem;
    padding-bottom: 0.55rem;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    scroll-padding-inline: 0.75rem;
  }
  .mkt-card--rail {
    flex: 0 0 min(70vw, 13.5rem);
    max-width: min(70vw, 13.5rem);
    min-width: 0;
  }
  .mkt-card {
    max-width: 100%;
    min-width: 0;
  }
  .mkt-card:hover { transform: none; }
  .mkt-card:active { transform: scale(0.985); }
  .mkt-card-body {
    padding: 0.55rem 0.65rem 0.7rem;
    min-width: 0;
  }
  .mkt-title {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
  }
  .mkt-price { font-size: 1rem; }
  .mkt-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .mkt-foot { min-width: 0; }
  .mkt-foot .mkt-meta { flex: 1 1 auto; min-width: 0; }

  .mkt-grid { gap: 0.65rem; min-width: 0; }

  .mkt-filters,
  .mkt-form {
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
  }
  .mkt-field { min-width: 0; max-width: 100%; }
  .mkt-field input,
  .mkt-field select,
  .mkt-field textarea {
    font-size: 16px !important;
    min-height: 2.75rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .mkt-field textarea { min-height: 6.5rem; }
  .mkt-btn { min-height: 2.65rem; padding: 0.6rem 0.95rem; }
  .mkt-btn-block { min-height: 2.9rem; }

  .mkt-pay-banner {
    padding: 0.7rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .mkt-pay-banner > div { min-width: 0; flex: 1 1 auto; }
  .mkt-pay-banner p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .mkt-pay-banner strong {
    display: block;
    overflow-wrap: anywhere;
  }
  .mkt-drop { padding: 0.85rem; max-width: 100%; box-sizing: border-box; }
  .mkt-drop-inner span { font-size: 0.78rem; }

  .mkt-search { max-width: 100%; box-sizing: border-box; }
  .mkt-search--mobile {
    width: 100%;
    max-width: 100%;
  }
  .mkt-search--mobile input { font-size: 16px; }

  .mkt-search-sticky { top: 0.35rem; }

  /* Listing modal → almost full screen on phones */
  .mkt-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mkt-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    grid-template-columns: 1fr;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mkt-modal-gallery { padding: 0.5rem; }
  .mkt-modal-main {
    aspect-ratio: 1 / 1;
    max-height: 48dvh;
    border-radius: 0.65rem;
  }
  .mkt-modal-body {
    padding: 0.9rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    min-width: 0;
  }
  .mkt-modal-title {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }
  .mkt-modal-price { font-size: 1.25rem; }
  .mkt-modal-desc { overflow-wrap: anywhere; word-break: break-word; }
  .mkt-modal-x {
    top: max(0.45rem, env(safe-area-inset-top, 0px));
    right: 0.55rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .mkt-ebay-panel { padding: 0.85rem; max-width: 100%; box-sizing: border-box; }
  .mkt-ebay-list { max-height: 16rem; }
  .mkt-ebay-title { overflow-wrap: anywhere; }
  .mkt-stats { gap: 0.5rem; min-width: 0; }
  .mkt-stat { padding: 0.65rem 0.4rem; min-width: 0; }
  .mkt-stat strong { font-size: 1.15rem; }
  .mkt-stat span { font-size: 0.62rem; }

  .mkt-rules-grid { gap: 0.65rem; }
  .mkt-rule-card { padding: 0.9rem; min-width: 0; }
  .mkt-rule-card p { overflow-wrap: anywhere; }

  .mkt-cats { min-width: 0; }
  .mkt-cat { min-width: 0; max-width: 100%; }
  .mkt-cat strong {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Narrow phones: single-column hero actions if needed */
@media (max-width: 360px) {
  .mkt-hero-actions { grid-template-columns: 1fr; }
  .mkt-hero .mkt-h1 { font-size: 1.15rem; }
  #mkt-mobile-top { padding-left: 0.55rem; padding-right: 0.55rem; }
}

/* Short phones: even tighter messages chrome */
@media (max-width: 767px) and (max-height: 700px) {
  body.mkt-section-messages #main-content {
    padding-top: max(6.5rem, calc(env(safe-area-inset-top, 0px) + 6.25rem)) !important;
  }
  .mkt-messages-head .mkt-btn span { display: none; }
}

/* Desktop messages: use remaining viewport under top padding */
@media (min-width: 768px) {
  body.mkt-section-messages #main-content {
    height: 100dvh;
    padding-top: 1.5rem !important;
  }
  body.mkt-section-messages .mkt-messages-shell {
    min-height: 0;
  }
}

/* ========== Full listing (embedded in Free Market shell) ========== */
.mkt-item-embedded {
  max-width: 68rem;
  margin: 0 auto;
  min-width: 0;
}
/* Sticky back control on full listing ("View more") */
.mkt-item-backbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.15rem 0.65rem;
  background: linear-gradient(180deg, var(--mkt-bg, #f8fafc) 70%, transparent);
}
html.dark .mkt-item-backbar,
html[data-oj-theme="dark"] .mkt-item-backbar {
  background: linear-gradient(180deg, #0b1220 70%, transparent);
}
.mkt-item-back-btn {
  flex-shrink: 0;
  font-weight: 800;
  gap: 0.4rem;
}
.mkt-item-backbar-title {
  min-width: 0;
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark .mkt-item-backbar-title { color: #94a3b8; }
.mkt-item-back-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem;
}
/* Standalone legacy shell (if ever used) */
.mkt-item-page {
  margin: 0;
  min-height: 100dvh;
  background: #0b1220;
  color: #e2e8f0;
  font-family: Inter, system-ui, sans-serif;
}
.mkt-item-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 1rem;
  padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(10px);
}
.mkt-item-brand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; color: #fbbf24; text-decoration: none; font-size: 0.95rem;
}
.mkt-item-back-link {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}
.mkt-item-back-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (max-width: 640px) {
  .mkt-item-brand--center { display: none; }
}
.mkt-item-top-nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem;
  font-size: 0.82rem; font-weight: 600;
}
.mkt-item-top-nav a { color: #cbd5e1; text-decoration: none; }
.mkt-item-top-nav a:hover { color: #fde68a; }
.mkt-item-main {
  max-width: 68rem; margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
  box-sizing: border-box;
}
.mkt-item-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem;
  font-size: 0.78rem; color: #64748b; margin: 0 0 0.85rem;
}
html.dark .mkt-item-crumbs { color: #94a3b8; }
.mkt-item-crumbs a { color: #2563eb; text-decoration: none; font-weight: 600; }
html.dark .mkt-item-crumbs a { color: #93c5fd; }
.mkt-item-crumbs a:hover { text-decoration: underline; }
.mkt-item-crumb-current {
  color: #0f172a; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html.dark .mkt-item-crumb-current { color: #e2e8f0; }
.mkt-item-banner {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.85rem; border-radius: 0.85rem; margin-bottom: 0.85rem;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a; font-size: 0.85rem; font-weight: 600;
}
.mkt-item-banner--gone {
  background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7;
}
.mkt-item-banner--withdrawn {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  align-items: flex-start;
}
.mkt-item-banner--withdrawn i { color: #f87171; margin-top: 0.15rem; flex-shrink: 0; }
.mkt-item-banner--withdrawn strong { display: block; color: #fff; margin-bottom: 0.15rem; }
.mkt-item-banner--withdrawn div { line-height: 1.4; }
.mkt-item-banner--reserved {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #c7d2fe;
  align-items: flex-start;
}
.mkt-item-banner--reserved i { color: #a5b4fc; margin-top: 0.15rem; flex-shrink: 0; }
.mkt-item-banner--reserved strong { display: block; color: #e0e7ff; margin-bottom: 0.15rem; }
.mkt-item-banner--reserved div { line-height: 1.4; }
.mkt-item-reserved-note {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 0.88rem;
  line-height: 1.45;
}
.mkt-item-reserved-note i { color: #a5b4fc; margin-top: 0.15rem; flex-shrink: 0; }
html:not(.dark) .mkt-item-banner--reserved {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: #3730a3;
}
html:not(.dark) .mkt-item-banner--reserved i { color: #4f46e5; }
html:not(.dark) .mkt-item-banner--reserved strong { color: #312e81; }
html:not(.dark) .mkt-item-reserved-note {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
  color: #3730a3;
}
html:not(.dark) .mkt-item-reserved-note i { color: #4f46e5; }
.mkt-item-layout {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .mkt-item-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.mkt-item-gallery {
  background: #fff; border-radius: 1.25rem; overflow: hidden;
  border: 1px solid #e2e8f0;
  padding: 0.65rem;
  box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.35);
}
html.dark .mkt-item-gallery {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}
.mkt-item-main-photo {
  position: relative;
  border-radius: 1rem; overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
  max-height: min(70vh, 36rem);
}
html.dark .mkt-item-main-photo { background: #0f172a; }
.mkt-item-main-photo img {
  width: 100%; height: 100%; object-fit: contain; display: block; background: transparent;
}
.mkt-item-main-photo.is-zoomable {
  cursor: zoom-in;
}
.mkt-item-main-photo.is-zoomable:hover img {
  transform: scale(1.015);
  transition: transform 0.2s ease;
}
.mkt-item-zoom-hint {
  position: absolute; bottom: 0.55rem; right: 0.55rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.5rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.72); color: #fff;
  pointer-events: none;
}
.mkt-item-zoom-hint i { font-size: 0.65rem; opacity: 0.9; }

/* Full listing photo lightbox */
.mkt-lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}
.mkt-lightbox[hidden] { display: none !important; }
.mkt-lightbox-backdrop {
  position: absolute; inset: 0;
  border: 0; padding: 0; margin: 0;
  background: rgba(2, 6, 23, 0.92);
  cursor: zoom-out;
}
.mkt-lightbox-figure {
  position: relative; z-index: 1;
  margin: 0; max-width: min(96vw, 72rem); max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.mkt-lightbox-figure img {
  display: block;
  max-width: min(96vw, 72rem);
  max-height: min(82vh, 56rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.75);
  background: #0f172a;
  user-select: none;
  -webkit-user-drag: none;
}
.mkt-lightbox-cap {
  color: #cbd5e1; font-size: 0.8rem; font-weight: 600;
  text-align: center; max-width: 90vw;
}
.mkt-lightbox-x {
  position: absolute; z-index: 2;
  top: max(0.65rem, env(safe-area-inset-top));
  right: max(0.65rem, env(safe-area-inset-right));
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.75); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mkt-lightbox-x:hover { background: rgba(30, 41, 59, 0.95); }
.mkt-lightbox-nav {
  position: absolute; z-index: 2;
  top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.mkt-lightbox-nav:hover { background: rgba(30, 41, 59, 0.95); }
.mkt-lightbox-nav[hidden] { display: none !important; }
.mkt-lightbox-prev { left: max(0.5rem, env(safe-area-inset-left)); }
.mkt-lightbox-next { right: max(0.5rem, env(safe-area-inset-right)); }
@media (max-width: 640px) {
  .mkt-lightbox-nav { width: 2.35rem; height: 2.35rem; font-size: 0.9rem; }
  .mkt-lightbox-figure img { max-height: 75vh; }
}
.mkt-item-no-photo {
  width: 100%; height: 100%; min-height: 16rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: #64748b;
}
.mkt-item-no-photo i { font-size: 2rem; opacity: 0.6; }
.mkt-item-ribbon {
  position: absolute; top: 0.65rem; left: 0.65rem;
  font-size: 0.65rem; font-weight: 900; letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem; border-radius: 999px;
  background: #f59e0b; color: #0f172a;
  z-index: 2;
}
.mkt-item-ribbon.free { background: #10b981; color: #fff; }
.mkt-item-ribbon.reserved {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.55);
}
.mkt-item-thumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem;
}
.mkt-item-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 0.55rem;
  overflow: hidden; cursor: pointer; background: #0f172a; width: 3.6rem; height: 3.6rem;
}
.mkt-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-item-thumb.is-on { border-color: #fbbf24; }
.mkt-item-buybox {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}
html.dark .mkt-item-buybox {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.65);
}
.mkt-item-badges {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.55rem;
}
.mkt-item-badges span {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22rem 0.5rem; border-radius: 999px;
  border: 1px solid #e2e8f0; color: #64748b; background: #f8fafc;
}
html.dark .mkt-item-badges span {
  border-color: #334155; color: #94a3b8; background: transparent;
}
.mkt-item-badges span.sale { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.mkt-item-badges span.free { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.mkt-item-badges span.mkt-badge-reserved,
.mkt-item-badges .mkt-badge-reserved {
  background: #e0e7ff; border-color: #818cf8; color: #3730a3;
}
html.dark .mkt-item-badges span.mkt-badge-reserved,
html.dark .mkt-item-badges .mkt-badge-reserved {
  background: rgba(99, 102, 241, 0.22); border-color: rgba(129, 140, 248, 0.55); color: #c7d2fe;
}
.mkt-seller-presence {
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem; font-weight: 600; color: #64748b;
}
.mkt-seller-presence i { font-size: 0.45rem; color: #94a3b8; }
.mkt-seller-presence.is-online { color: #047857; }
.mkt-seller-presence.is-online i { color: #10b981; }
html.dark .mkt-seller-presence { color: #94a3b8; }
html.dark .mkt-seller-presence.is-online { color: #6ee7b7; }
.mkt-item-collection {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin: 0 0 0.75rem; padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.88rem; color: #0c4a6e;
}
.mkt-item-collection i { margin-top: 0.15rem; color: #0284c7; }
.mkt-item-collection strong { display: block; margin-bottom: 0.15rem; }
.mkt-item-collection p { margin: 0.15rem 0 0; line-height: 1.4; opacity: 0.92; }
html.dark .mkt-item-collection {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}
html.dark .mkt-item-collection i { color: #38bdf8; }
.mkt-mine-interest-line {
  margin: 0 0 0.45rem; font-size: 0.82rem; font-weight: 600; color: #475569;
}
.mkt-linkish {
  background: none; border: 0; padding: 0; color: #2563eb;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline;
}
html.dark .mkt-mine-interest-line { color: #94a3b8; }
html.dark .mkt-linkish { color: #93c5fd; }
.mkt-saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.mkt-saved-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem;
  padding: 0.85rem 1rem; border-radius: 1rem;
  border: 1px solid #e2e8f0; background: #fff;
}
html.dark .mkt-saved-item { border-color: #334155; background: #0f172a; }
.mkt-saved-item-copy strong { display: block; font-size: 0.95rem; }
.mkt-saved-item-copy p { margin: 0.2rem 0 0; font-size: 0.82rem; color: #64748b; }
html.dark .mkt-saved-item-copy p { color: #94a3b8; }
.mkt-saved-item-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mkt-mini-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mkt-mini-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.mkt-mini-modal-panel {
  position: relative; z-index: 1; width: min(36rem, 100%);
  max-height: min(85vh, 40rem); overflow: auto;
  background: #fff; border-radius: 1.15rem; padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
html.dark .mkt-mini-modal-panel { background: #0b1220; color: #e2e8f0; }
.mkt-interest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.mkt-interest-row {
  display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: space-between;
  padding: 0.75rem 0.85rem; border-radius: 0.85rem;
  border: 1px solid #e2e8f0; background: #f8fafc;
}
html.dark .mkt-interest-row { border-color: #334155; background: #0f172a; }
.mkt-interest-row.is-reserved-for { border-color: #818cf8; box-shadow: inset 0 0 0 1px rgba(99,102,241,0.25); }
.mkt-interest-row-copy p { margin: 0.25rem 0; font-size: 0.88rem; color: #475569; }
html.dark .mkt-interest-row-copy p { color: #cbd5e1; }
.mkt-interest-row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: flex-start; }
.mkt-auto-fields {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.06);
}
html.dark .mkt-auto-fields {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.08);
}
.mkt-photo-nudge {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b45309;
}
html.dark .mkt-photo-nudge { color: #fbbf24; }
.mkt-item-auto-specs {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin: 0 0 0.75rem; padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.88rem; color: #0c4a6e;
}
.mkt-item-auto-specs i { margin-top: 0.15rem; color: #0284c7; }
.mkt-item-auto-specs strong { display: block; margin-bottom: 0.25rem; }
.mkt-auto-summary { margin: 0.15rem 0 0.35rem; font-weight: 700; }
.mkt-auto-dl { margin: 0; display: grid; gap: 0.2rem; }
.mkt-auto-dl div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.35rem; font-size: 0.82rem; }
.mkt-auto-dl dt { margin: 0; color: #64748b; font-weight: 600; }
.mkt-auto-dl dd { margin: 0; font-weight: 700; }
html.dark .mkt-item-auto-specs { color: #bae6fd; background: rgba(14, 165, 233, 0.1); }
html.dark .mkt-item-auto-specs i { color: #38bdf8; }
html.dark .mkt-auto-dl dt { color: #94a3b8; }
.mkt-related { margin-top: 1.5rem; }
.mkt-related-title {
  margin: 0 0 0.65rem; font-size: 1.05rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.4rem;
}
.mkt-related-track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem;
}
.mkt-msg-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.45rem; }
.mkt-msg-chip {
  border: 1px solid #cbd5e1; background: #f8fafc; color: #334155;
  border-radius: 999px; padding: 0.22rem 0.6rem; font-size: 0.72rem; font-weight: 700;
  cursor: pointer;
}
.mkt-msg-chip:hover { border-color: #94a3b8; background: #fff; }
html.dark .mkt-msg-chip { border-color: #475569; background: #0f172a; color: #e2e8f0; }
.mkt-msg-listing-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.55rem;
  margin: 0 0 0.65rem; padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.82rem; font-weight: 600;
}
.mkt-msg-listing-bar-copy { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.mkt-msg-listing-bar-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
html.dark .mkt-msg-listing-bar {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
}
.mkt-item-title {
  margin: 0 0 0.35rem; font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800; letter-spacing: -0.03em; color: #0f172a; line-height: 1.2;
}
html.dark .mkt-item-title { color: #f8fafc; }
.mkt-item-price {
  margin: 0 0 0.65rem; font-size: 1.75rem; font-weight: 800; color: #d97706;
}
html.dark .mkt-item-price { color: #fbbf24; }
.mkt-item-price.free { color: #059669; }
html.dark .mkt-item-price.free { color: #6ee7b7; }
.mkt-item-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem;
  margin: 0 0 1rem; font-size: 0.82rem; color: #64748b;
}
html.dark .mkt-item-meta { color: #94a3b8; }
.mkt-item-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.mkt-item-meta i { opacity: 0.75; }
.mkt-item-pay-note {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.75rem 0.85rem; border-radius: 0.9rem; margin-bottom: 1rem;
  background: #fffbeb; border: 1px solid #fcd34d;
  color: #78350f; font-size: 0.82rem;
}
html.dark .mkt-item-pay-note {
  background: rgba(245, 158, 11, 0.1); border-color: rgba(251, 191, 36, 0.28); color: #fde68a;
}
.mkt-item-pay-note i { margin-top: 0.15rem; color: #d97706; }
html.dark .mkt-item-pay-note i { color: #fbbf24; }
.mkt-item-pay-note strong { display: block; margin-bottom: 0.15rem; color: #92400e; }
html.dark .mkt-item-pay-note strong { color: #fef3c7; }
.mkt-item-pay-note p { margin: 0; line-height: 1.4; opacity: 0.95; color: inherit; }
.mkt-item-interest { display: flex; flex-direction: column; gap: 0.55rem; }
.mkt-item-interest .mkt-field textarea {
  width: 100%; box-sizing: border-box;
  border-radius: 0.85rem; border: 1px solid #e2e8f0; background: #fff;
  color: #0f172a; padding: 0.65rem 0.75rem; font-size: 0.9rem; resize: vertical;
}
html.dark .mkt-item-interest .mkt-field textarea {
  border-color: #334155; background: #020617; color: #e2e8f0;
}
.mkt-item-fine { margin: 0; font-size: 0.78rem; color: #64748b; }
html.dark .mkt-item-fine { color: #94a3b8; }
.mkt-item-fine a { color: #2563eb; font-weight: 600; }
html.dark .mkt-item-fine a { color: #93c5fd; }
.mkt-item-owner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mkt-item-share {
  margin-top: 1rem; padding-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
  display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.78rem; color: #64748b;
}
html.dark .mkt-item-share {
  border-top-color: rgba(148, 163, 184, 0.15); color: #94a3b8;
}
.mkt-item-share-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.mkt-item-share-label {
  font-size: 0.82rem; font-weight: 800; color: #0f172a;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
html.dark .mkt-item-share-label { color: #f1f5f9; }
.mkt-item-share-label i { color: #d97706; }
html.dark .mkt-item-share-label i { color: #fbbf24; }
.mkt-item-share-actions {
  display: grid; grid-template-columns: 1fr auto; gap: 0.45rem;
  align-items: stretch;
}
@media (max-width: 420px) {
  .mkt-item-share-actions { grid-template-columns: 1fr; }
}
.mkt-item-share-url-wrap { display: block; margin: 0; }
.mkt-item-share input {
  width: 100%; box-sizing: border-box;
  border-radius: 0.65rem; border: 1px solid #e2e8f0; background: #f8fafc;
  color: #334155; padding: 0.5rem 0.65rem; font-size: 0.72rem; font-family: ui-monospace, monospace;
}
html.dark .mkt-item-share input {
  border-color: #334155; background: #020617; color: #cbd5e1;
}
.mkt-item-share-hint {
  margin: 0; font-size: 0.72rem; color: #94a3b8; line-height: 1.35;
}
/* Share toast */
.mkt-share-toast {
  position: fixed; z-index: 140;
  left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(92vw, 22rem);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem; font-weight: 700;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
  animation: mktShareIn 0.2s ease;
}
.mkt-share-toast.is-ok {
  background: #0f172a; color: #f8fafc; border: 1px solid rgba(251, 191, 36, 0.35);
}
.mkt-share-toast.is-err {
  background: #7f1d1d; color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.45);
}
@keyframes mktShareIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Report listing */
.mkt-item-report-row {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
}
html.dark .mkt-item-report-row { border-top-color: rgba(148, 163, 184, 0.2); }
.mkt-report-btn { color: #b91c1c !important; border-color: #fecaca !important; }
.mkt-report-btn:hover { background: #fef2f2 !important; }
html.dark .mkt-report-btn { color: #fca5a5 !important; border-color: rgba(248, 113, 113, 0.4) !important; }
html.dark .mkt-report-btn:hover { background: rgba(127, 29, 29, 0.25) !important; }
.mkt-item-report-hint { font-size: 0.72rem; color: #94a3b8; line-height: 1.35; }
.mkt-report-modal {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.mkt-report-modal[hidden] { display: none !important; }
.mkt-report-backdrop {
  position: absolute; inset: 0; border: 0; margin: 0; padding: 0;
  background: rgba(15, 23, 42, 0.55); cursor: pointer;
}
.mkt-report-panel {
  position: relative; z-index: 1;
  width: min(100%, 26rem);
  max-height: min(90vh, 36rem);
  overflow: auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
  border: 1px solid #e2e8f0;
}
html.dark .mkt-report-panel {
  background: #0f172a; border-color: #1e293b; color: #e2e8f0;
}
.mkt-report-x {
  position: absolute; top: 0.65rem; right: 0.75rem;
  width: 2rem; height: 2rem; border: 0; border-radius: 999px;
  background: transparent; color: #64748b; font-size: 1.4rem; cursor: pointer;
}
.mkt-report-heading { margin: 0 2rem 0.35rem 0; font-size: 1.15rem; font-weight: 800; color: #0f172a; }
html.dark .mkt-report-heading { color: #f8fafc; }
.mkt-report-lede { margin: 0 0 1rem; font-size: 0.86rem; color: #64748b; line-height: 1.45; }
html.dark .mkt-report-lede { color: #94a3b8; }
.mkt-report-panel .mkt-field { display: block; margin-bottom: 0.75rem; }
.mkt-report-panel .mkt-field > span {
  display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.3rem;
}
.mkt-report-panel select,
.mkt-report-panel textarea {
  width: 100%; box-sizing: border-box;
  border-radius: 0.85rem; border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem; font-size: 0.9rem;
  background: #fff; color: #0f172a;
}
html.dark .mkt-report-panel select,
html.dark .mkt-report-panel textarea {
  border-color: #334155; background: #020617; color: #e2e8f0;
}
.mkt-report-err {
  margin: 0 0 0.65rem; font-size: 0.84rem; font-weight: 600; color: #b91c1c;
}
.mkt-report-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem;
}
.mkt-btn-sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.mkt-item-sent {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.85rem; border-radius: 0.9rem;
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
}
.mkt-item-sent i { color: #34d399; font-size: 1.2rem; margin-top: 0.1rem; }
.mkt-item-sent strong { display: block; color: #ecfdf5; margin-bottom: 0.2rem; }
.mkt-item-sent p { margin: 0 0 0.65rem; font-size: 0.85rem; }
.mkt-item-desc-block {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.4);
}
html.dark .mkt-item-desc-block {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}
.mkt-item-desc-block h2 {
  margin: 0 0 0.65rem; font-size: 1.05rem; font-weight: 800; color: #0f172a;
}
html.dark .mkt-item-desc-block h2 { color: #f8fafc; }
.mkt-item-desc {
  font-size: 0.95rem; line-height: 1.6; color: #334155;
  white-space: pre-wrap; word-break: break-word;
}
html.dark .mkt-item-desc { color: #cbd5e1; }
.mkt-item-related { margin-top: 2rem; }
.mkt-item-related-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.mkt-item-related-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #f8fafc; }
.mkt-item-related-head a { font-size: 0.85rem; font-weight: 700; color: #fbbf24; text-decoration: none; }
.mkt-item-related-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.mkt-item-related-card {
  display: flex; flex-direction: column;
  border-radius: 1rem; overflow: hidden;
  background: #0f172a; border: 1px solid rgba(148, 163, 184, 0.14);
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mkt-item-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.7);
}
.mkt-item-related-media {
  position: relative; aspect-ratio: 1; background: #020617;
}
.mkt-item-related-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-item-related-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #475569;
}
.mkt-item-related-body { padding: 0.55rem 0.65rem 0.7rem; display: flex; flex-direction: column; gap: 0.15rem; }
.mkt-item-related-price { font-size: 0.95rem; font-weight: 800; color: #fbbf24; }
.mkt-item-related-price.free { color: #6ee7b7; }
.mkt-item-related-title {
  font-size: 0.8rem; font-weight: 600; color: #e2e8f0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-item-related-loc { font-size: 0.7rem; color: #64748b; }
.mkt-item-missing {
  text-align: center; padding: 4rem 1rem; color: #94a3b8;
}
.mkt-item-missing i { font-size: 2.5rem; opacity: 0.5; margin-bottom: 0.75rem; display: block; }
.mkt-item-missing h1 { color: #f8fafc; font-size: 1.4rem; margin: 0 0 0.5rem; }
.mkt-item-missing p { margin: 0 0 1.25rem; }
.mkt-item-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem 0.65rem;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.8rem; color: #64748b;
}
.mkt-item-foot a { color: #94a3b8; text-decoration: none; }
.mkt-item-foot a:hover { color: #fbbf24; }
@media (max-width: 560px) {
  .mkt-item-main { padding: 0.75rem 0.75rem 2rem; }
  .mkt-item-buybox { padding: 1rem; }
  .mkt-item-share { flex-direction: column; align-items: stretch; }
  .mkt-item-share input { width: 100%; }
}

/* Watch list + My stats */
.mkt-watch-btn.is-watching,
.mkt-item-watch-btn.is-watching {
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #e11d48 !important;
  background: rgba(244, 63, 94, 0.08) !important;
}
/* Seller stall: clear-down nudge + per-card actions */
.mkt-stall-nudge {
  margin: 0 0 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 251, 235, 0.98));
  box-shadow: 0 10px 28px -22px rgba(180, 83, 9, 0.55);
}
html.dark .mkt-stall-nudge {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.45), rgba(30, 41, 59, 0.95));
}
.mkt-stall-nudge-inner {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem;
}
.mkt-stall-nudge-icon {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 0.7rem;
  background: rgba(245, 158, 11, 0.2); color: #b45309;
}
html.dark .mkt-stall-nudge-icon { color: #fcd34d; background: rgba(245, 158, 11, 0.18); }
.mkt-stall-nudge-body { flex: 1 1 auto; min-width: 0; }
.mkt-stall-nudge-body strong {
  display: block; font-size: 0.95rem; color: #92400e; margin-bottom: 0.15rem;
}
html.dark .mkt-stall-nudge-body strong { color: #fde68a; }
.mkt-stall-nudge-body p {
  margin: 0; font-size: 0.82rem; line-height: 1.4; color: #78350f;
}
html.dark .mkt-stall-nudge-body p { color: #fef3c7; }

/* Multi-select only appears after "Select multiple" */
#sec-mine:not(.is-multi-select) .mkt-mine-check {
  display: none !important;
}
#mine-multi-toggle.is-active {
  border-color: rgba(37, 99, 235, 0.45) !important;
  background: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
}
html.dark #mine-multi-toggle.is-active {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
}

.mkt-mine-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.98));
}
html.dark .mkt-mine-bulk {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.28), #0f172a);
  border-color: rgba(96, 165, 250, 0.3);
}
.mkt-mine-bulk-all {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: #334155; cursor: pointer;
}
html.dark .mkt-mine-bulk-all { color: #e2e8f0; }
.mkt-mine-bulk-count {
  font-size: 0.78rem; font-weight: 700; color: #64748b;
  min-width: 5.5rem;
}
html.dark .mkt-mine-bulk-count { color: #94a3b8; }
.mkt-mine-bulk-actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-left: auto;
}
.mkt-mine-bulk-actions .mkt-btn:disabled {
  opacity: 0.45; cursor: not-allowed;
}

.mkt-mine-item {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  border-radius: 1.15rem; overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
html.dark .mkt-mine-item { background: #0f172a; border-color: #1e293b; }
.mkt-mine-item .mkt-card {
  border: 0; border-radius: 0; box-shadow: none;
}
.mkt-mine-item.is-stale {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}
.mkt-mine-item.is-selected {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
/* Top-right so it never sits on the SALE / FREE ribbon (top-left) */
.mkt-mine-check {
  position: absolute; z-index: 3; top: 0.5rem; right: 0.5rem; left: auto;
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.5);
  cursor: pointer;
}
html.dark .mkt-mine-check {
  background: rgba(15, 23, 42, 0.92); border-color: #475569;
}
.mkt-mine-check input {
  width: 1.05rem; height: 1.05rem; margin: 0; cursor: pointer;
  accent-color: #2563eb;
}
.mkt-mine-stale-reason {
  margin: 0; padding: 0.45rem 0.75rem;
  font-size: 0.78rem; font-weight: 600; line-height: 1.35;
  background: #fffbeb; color: #92400e;
  border-top: 1px solid #fde68a;
}
html.dark .mkt-mine-stale-reason {
  background: rgba(245, 158, 11, 0.12); color: #fde68a; border-color: rgba(245, 158, 11, 0.28);
}
.mkt-mine-stale-reason i { margin-right: 0.3rem; opacity: 0.9; }
.mkt-mine-actions { border-top: 1px solid #e2e8f0; }
html.dark .mkt-mine-actions { border-color: #1e293b; }
.mkt-mine-actions-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.5rem 0.65rem 0.6rem;
}
.mkt-btn-sm {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.78rem !important;
  border-radius: 0.65rem !important;
  line-height: 1.25 !important;
}
.mkt-btn-sold {
  border: 1px solid rgba(5, 150, 105, 0.35) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  font-weight: 700 !important;
}
.mkt-btn-sold:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(5, 150, 105, 0.5) !important;
}
html.dark .mkt-btn-sold {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #6ee7b7 !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}
#grid-mine .mkt-mine-item { min-width: 0; }
#grid-mine .mkt-empty,
#grid-mine .mkt-loading { grid-column: 1 / -1; }

.mkt-watch-item {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 1.15rem; overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
html.dark .mkt-watch-item { background: #0f172a; border-color: #1e293b; }
.mkt-watch-item .mkt-card {
  border: 0; border-radius: 0; box-shadow: none;
}
.mkt-watch-item.is-inactive .mkt-card-media img { filter: grayscale(0.45); opacity: 0.9; }
.mkt-watch-reason {
  margin: 0; padding: 0.45rem 0.75rem;
  font-size: 0.78rem; font-weight: 600; line-height: 1.35;
  background: #fef2f2; color: #991b1b;
  border-top: 1px solid #fecaca;
}
html.dark .mkt-watch-reason {
  background: rgba(220, 38, 38, 0.15); color: #fecaca; border-color: rgba(248, 113, 113, 0.35);
}
.mkt-watch-item:not(.is-inactive) .mkt-watch-reason { display: none; }
.mkt-watch-actions {
  display: flex; justify-content: flex-end; gap: 0.4rem;
  padding: 0.45rem 0.65rem 0.55rem;
  border-top: 1px solid #e2e8f0;
}
html.dark .mkt-watch-actions { border-color: #1e293b; }
#grid-watch {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.85rem;
}
#grid-watch .mkt-empty,
#grid-watch .mkt-loading { grid-column: 1 / -1; }

.mkt-stats-body { display: flex; flex-direction: column; gap: 1rem; }
.mkt-stats-summary {
  display: grid; gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.mkt-stats-tile {
  padding: 0.9rem 1rem; border-radius: 1rem;
  background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.4);
}
html.dark .mkt-stats-tile { background: #0f172a; border-color: #1e293b; }
.mkt-stats-tile span {
  display: block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8;
}
.mkt-stats-tile strong {
  display: block; margin-top: 0.25rem;
  font-size: 1.45rem; font-weight: 800; color: #0f172a; line-height: 1.1;
}
html.dark .mkt-stats-tile strong { color: #f8fafc; }
.mkt-stats-tile em {
  display: block; margin-top: 0.15rem;
  font-size: 0.75rem; font-style: normal; color: #64748b;
}
.mkt-stats-top {
  display: flex; gap: 0.9rem; align-items: stretch;
  padding: 0.85rem; border-radius: 1.15rem;
  text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #fffbeb, #fff);
  border: 1px solid #fcd34d;
  box-shadow: 0 14px 36px -24px rgba(245, 158, 11, 0.55);
}
html.dark .mkt-stats-top {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), #0f172a);
  border-color: rgba(251, 191, 36, 0.35);
}
.mkt-stats-top-media {
  position: relative; flex: 0 0 6.5rem; width: 6.5rem; height: 6.5rem;
  border-radius: 0.85rem; overflow: hidden; background: #e2e8f0;
}
.mkt-stats-top-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-stats-top-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.mkt-stats-top-crown {
  position: absolute; left: 0.35rem; top: 0.35rem;
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.4rem; border-radius: 999px;
  background: #f59e0b; color: #0f172a;
}
.mkt-stats-top-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; }
.mkt-stats-top-body strong {
  font-size: 1.05rem; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html.dark .mkt-stats-top-body strong { color: #f8fafc; }
.mkt-stats-top-body p { margin: 0; font-size: 0.82rem; color: #64748b; }
.mkt-stats-top-nums {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.25rem !important;
  font-weight: 700; color: #b45309 !important;
}
html.dark .mkt-stats-top-nums { color: #fbbf24 !important; }
.mkt-stats-empty-top {
  padding: 1rem; border-radius: 1rem; text-align: center;
  border: 1px dashed #cbd5e1; color: #94a3b8; font-size: 0.9rem;
}
.mkt-stats-table-wrap {
  border-radius: 1.15rem; overflow: hidden;
  border: 1px solid #e2e8f0; background: #fff;
}
html.dark .mkt-stats-table-wrap { background: #0f172a; border-color: #1e293b; }
.mkt-stats-table-title {
  margin: 0; padding: 0.85rem 1rem 0.35rem;
  font-size: 0.95rem; font-weight: 800; color: #0f172a;
}
html.dark .mkt-stats-table-title { color: #f8fafc; }
.mkt-stats-table {
  width: 100%; border-collapse: collapse; font-size: 0.86rem;
}
.mkt-stats-table th {
  text-align: left; padding: 0.55rem 0.85rem;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #94a3b8;
  border-bottom: 1px solid #e2e8f0;
}
html.dark .mkt-stats-table th { border-color: #1e293b; }
.mkt-stats-table td {
  padding: 0.65rem 0.85rem; border-bottom: 1px solid #f1f5f9;
  vertical-align: top; color: #334155;
}
html.dark .mkt-stats-table td { border-color: #1e293b; color: #cbd5e1; }
.mkt-stats-table tr:last-child td { border-bottom: 0; }
.mkt-stats-table tr.is-top td { background: rgba(251, 191, 36, 0.08); }
.mkt-stats-table a {
  font-weight: 700; color: #0f172a; text-decoration: none;
}
html.dark .mkt-stats-table a { color: #f1f5f9; }
.mkt-stats-table a:hover { color: #d97706; text-decoration: underline; }
.mkt-stats-rank { width: 2rem; font-weight: 800; color: #94a3b8; }
.mkt-stats-num { font-weight: 800; color: #0f172a; white-space: nowrap; }
html.dark .mkt-stats-num { color: #fbbf24; }
.mkt-stats-price { font-weight: 700; white-space: nowrap; }
.mkt-stats-empty-row { text-align: center; color: #94a3b8 !important; padding: 1.25rem !important; }
@media (max-width: 560px) {
  .mkt-stats-top { flex-direction: column; }
  .mkt-stats-top-media { width: 100%; height: 10rem; flex: none; }
  .mkt-stats-table th:nth-child(5),
  .mkt-stats-table td:nth-child(5) { display: none; }
}

/* ========== Premium pack (T1T4) ========== */
.mkt-social-proof {
  margin: 0 0 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(238, 242, 255, 0.95));
  box-shadow: 0 10px 28px -22px rgba(91, 33, 182, 0.45);
}
html.dark .mkt-social-proof {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.35), rgba(30, 41, 59, 0.95));
}
.mkt-social-proof-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem;
  padding: 0.7rem 1rem; font-size: 0.86rem; color: #4c1d95; font-weight: 600;
}
html.dark .mkt-social-proof-inner { color: #ddd6fe; }
.mkt-social-proof-inner i { color: #7c3aed; }
html.dark .mkt-social-proof-inner i { color: #c4b5fd; }
.mkt-social-proof-inner strong { font-weight: 800; color: #5b21b6; }
html.dark .mkt-social-proof-inner strong { color: #f5f3ff; }
.mkt-social-dot { opacity: 0.45; font-weight: 400; }

.mkt-ribbon.wanted, .mkt-item-ribbon.wanted {
  background: linear-gradient(135deg, #c026d3, #a21caf) !important;
  color: #fff !important;
}
.mkt-price.wanted { color: #a21caf; }
html.dark .mkt-price.wanted { color: #f0abfc; }
.mkt-card.is-wanted { border-color: rgba(192, 38, 211, 0.22); }
.mkt-item-badges .wanted {
  background: rgba(192, 38, 211, 0.12); color: #a21caf; border: 1px solid rgba(192, 38, 211, 0.28);
  border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.75rem; font-weight: 800;
}
html.dark .mkt-item-badges .wanted { background: rgba(192, 38, 211, 0.2); color: #f0abfc; }
.mkt-ribbon.draft {
  background: #64748b !important; color: #fff !important;
}

.mkt-map-board { margin-bottom: 0.5rem; }
.mkt-map-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.mkt-map-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(236, 253, 245, 0.95);
  color: #065f46; font-weight: 700; font-size: 0.85rem;
  padding: 0.45rem 0.75rem; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.mkt-map-chip:hover { background: #d1fae5; border-color: #10b981; }
.mkt-map-chip.is-on {
  background: #059669; color: #ecfdf5; border-color: #047857;
}
html.dark .mkt-map-chip {
  background: rgba(6, 78, 59, 0.35); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.35);
}
html.dark .mkt-map-chip.is-on { background: #059669; color: #fff; }
.mkt-map-count {
  font-size: 0.72rem; font-weight: 800;
  background: rgba(15, 23, 42, 0.08); padding: 0.1rem 0.4rem; border-radius: 999px;
}
.mkt-map-chip.is-on .mkt-map-count { background: rgba(255,255,255,0.2); }

.mkt-stall-hero {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95));
}
html.dark .mkt-stall-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9));
  border-color: rgba(100, 116, 139, 0.4);
}
.mkt-stall-avatar {
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(245, 158, 11, 0.18); color: #b45309; font-size: 1.35rem;
}
html.dark .mkt-stall-avatar { color: #fcd34d; background: rgba(245, 158, 11, 0.15); }
.mkt-stall-stats {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem;
  margin-top: 0.45rem; font-size: 0.88rem;
}
.mkt-stall-rating { color: #b45309; font-weight: 700; }
html.dark .mkt-stall-rating { color: #fcd34d; }
.mkt-seller-stall-link { margin: 0.35rem 0 0; }
.mkt-seller-stall-link .mkt-linkish { font-weight: 700; color: #0369a1; }
html.dark .mkt-seller-stall-link .mkt-linkish { color: #7dd3fc; }

.mkt-i18n-fields {
  margin: 0.75rem 0; padding: 0.85rem 1rem; border-radius: 0.9rem;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  background: rgba(238, 242, 255, 0.55);
}
html.dark .mkt-i18n-fields {
  background: rgba(49, 46, 129, 0.25); border-color: rgba(165, 180, 252, 0.35);
}
.mkt-item-i18n {
  display: flex; gap: 0.65rem; margin: 0.75rem 0;
  padding: 0.75rem 0.9rem; border-radius: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(238, 242, 255, 0.5);
  font-size: 0.9rem;
}
html.dark .mkt-item-i18n { background: rgba(49, 46, 129, 0.3); }
.mkt-item-i18n-title { font-weight: 700; margin: 0.2rem 0; }

.mkt-scam-tips {
  margin: 0.75rem 0 0;
  border-radius: 0.9rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(255, 251, 235, 0.95);
}
html.dark .mkt-scam-tips {
  background: rgba(120, 53, 15, 0.25); border-color: rgba(251, 191, 36, 0.35);
}
.mkt-scam-tips-inner { padding: 0.75rem 0.9rem; font-size: 0.82rem; color: #78350f; }
html.dark .mkt-scam-tips-inner { color: #fde68a; }
.mkt-scam-tips-inner strong { display: block; margin-bottom: 0.35rem; color: #92400e; }
html.dark .mkt-scam-tips-inner strong { color: #fcd34d; }
.mkt-scam-tips-inner ul { margin: 0; padding-left: 1.1rem; }
.mkt-scam-tips-inner li { margin: 0.2rem 0; }

.mkt-ac-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  max-height: 14rem; overflow-y: auto;
  border-radius: 0.75rem; border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff; box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.45);
}
html.dark .mkt-ac-box { background: #1e293b; border-color: rgba(100, 116, 139, 0.5); }
.mkt-ac-item {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; cursor: pointer;
  padding: 0.55rem 0.85rem; font-size: 0.88rem; color: #0f172a;
}
html.dark .mkt-ac-item { color: #e2e8f0; }
.mkt-ac-item:hover, .mkt-ac-item:focus { background: rgba(245, 158, 11, 0.12); outline: none; }

/* Social share row */
.mkt-social-share {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 0.65rem;
}
.mkt-social-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.4rem 0.7rem; font-size: 0.78rem; font-weight: 800;
  cursor: pointer; color: #fff; transition: transform 0.1s, filter 0.15s;
}
.mkt-social-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mkt-social-btn:active { transform: translateY(0); }
.mkt-social-btn span { line-height: 1; }
.mkt-social-btn--fb { background: #1877f2; }
.mkt-social-btn--x { background: #0f172a; border-color: rgba(255,255,255,0.12); }
.mkt-social-btn--wa { background: #25d366; color: #052e16; }
.mkt-social-btn--tg { background: #229ed9; }
.mkt-social-btn--mail { background: #64748b; }
html.dark .mkt-social-btn--x { background: #020617; border-color: rgba(148,163,184,0.35); }
@media (max-width: 420px) {
  .mkt-social-btn span { display: none; }
  .mkt-social-btn { padding: 0.5rem 0.65rem; }
}

/* Seller stall front */
.mkt-stall-you { font-size: 0.85rem; font-weight: 700; color: #b45309; }
html.dark .mkt-stall-you { color: #fcd34d; }
.mkt-stall-self-actions {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-top: 0.75rem;
}
.mkt-stall-share {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.mkt-stall-share-actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.45rem;
}
.mkt-stall-path {
  font-size: 0.78rem; font-weight: 600;
  color: #0369a1; word-break: break-all;
}
html.dark .mkt-stall-path { color: #7dd3fc; }
.mkt-stall-share #mkt-stall-share-url {
  width: 100%; box-sizing: border-box;
  border-radius: 0.65rem; border: 1px solid #e2e8f0; background: #f8fafc;
  color: #334155; padding: 0.5rem 0.65rem; font-size: 0.72rem; font-family: ui-monospace, monospace;
}
html.dark .mkt-stall-share #mkt-stall-share-url {
  border-color: #334155; background: #020617; color: #cbd5e1;
}

/* Stall freemium tiers */
.mkt-stall-tier-badge {
  display: inline-block; vertical-align: middle;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  background: #e2e8f0; color: #475569;
}
.mkt-stall-tier-badge--plus { background: #ede9fe; color: #5b21b6; }
.mkt-stall-tier-badge--pro { background: #fef3c7; color: #b45309; }
.mkt-stall-tier-badge--shop { background: #0f172a; color: #fbbf24; }
.mkt-stall-tier-badge--free { background: #ecfdf5; color: #047857; }
.mkt-stall-upgrade {
  margin-top: 0.85rem; padding: 0.85rem 1rem;
  border-radius: 0.9rem; border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.9));
}
html.dark .mkt-stall-upgrade {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.4), rgba(30, 41, 59, 0.95));
  border-color: rgba(167, 139, 250, 0.35);
}
.mkt-stall-upgrade strong { display: block; color: #5b21b6; margin-bottom: 0.25rem; }
html.dark .mkt-stall-upgrade strong { color: #ddd6fe; }
.mkt-stall-upgrade p { margin: 0 0 0.65rem; font-size: 0.82rem; line-height: 1.4; color: #4c1d95; }
html.dark .mkt-stall-upgrade p { color: #e9d5ff; }
.mkt-stall-upgrade--soft {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  background: transparent; border-style: dashed;
}
.mkt-stall-plans-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.mkt-stall-plans-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55);
}
.mkt-stall-plans-panel {
  position: relative; z-index: 1;
  width: min(96vw, 52rem); max-height: min(90vh, 40rem);
  overflow: auto;
  background: #fff; border-radius: 1.15rem;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.45);
}
html.dark .mkt-stall-plans-panel { background: #0f172a; color: #e2e8f0; }
.mkt-stall-plans-x {
  position: absolute; top: 0.65rem; right: 0.75rem;
  border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: #64748b;
}
.mkt-stall-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem; margin-top: 0.85rem;
}
.mkt-stall-plan-card {
  border: 1px solid #e2e8f0; border-radius: 0.9rem; padding: 0.85rem;
  background: #f8fafc;
}
html.dark .mkt-stall-plan-card { background: #1e293b; border-color: #334155; }
.mkt-stall-plan-card.is-current {
  border-color: #8b5cf6; box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35);
}
.mkt-stall-plan-head {
  display: flex; justify-content: space-between; gap: 0.35rem;
  font-size: 0.9rem; margin-bottom: 0.35rem;
}
.mkt-stall-plan-list {
  margin: 0.4rem 0 0; padding-left: 1rem; font-size: 0.75rem; color: #475569;
}
html.dark .mkt-stall-plan-list { color: #94a3b8; }
.mkt-stall-plan-current {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.7rem; font-weight: 800; color: #7c3aed; text-transform: uppercase;
}

/* Home stall promo */
.mkt-stall-promo {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.55));
  box-shadow: 0 10px 28px -22px rgba(180, 83, 9, 0.45);
}
html.dark .mkt-stall-promo {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(30, 41, 59, 0.95));
}
.mkt-stall-promo-icon {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.22); color: #b45309; font-size: 1.1rem;
}
html.dark .mkt-stall-promo-icon { color: #fcd34d; background: rgba(245, 158, 11, 0.18); }
.mkt-stall-promo-body { flex: 1 1 12rem; min-width: 0; }
.mkt-stall-promo-body strong {
  display: block; font-size: 0.95rem; color: #92400e; margin-bottom: 0.15rem;
}
html.dark .mkt-stall-promo-body strong { color: #fde68a; }
.mkt-stall-promo-body p {
  margin: 0; font-size: 0.82rem; line-height: 1.4; color: #78350f;
}
html.dark .mkt-stall-promo-body p { color: #fef3c7; }
.mkt-stall-promo-actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  align-items: center;
}

.mkt-stall-plan-cta { margin-top: 0.65rem; }
.mkt-stall-upgrade-btn { width: 100%; justify-content: center; }
