/**
 * Sell Experience V2 — scoped premium shell (Map DRAW calm / satin).
 * All rules require html.sell-v2. No progress connecting lines.
 */
html.sell-v2 {
  --sv2-ivory: #F7F3EB;
  --sv2-ivory-deep: #EFE8DC;
  --sv2-platinum: #E4E7EC;
  --sv2-platinum-soft: rgba(228, 231, 236, 0.72);
  --sv2-obsidian: #14181E;
  --sv2-obsidian-soft: #1C222B;
  --sv2-obsidian-ink: #0B0D10;
  --sv2-champagne: #C6A46A;
  --sv2-champagne-deep: #A8894F;
  --sv2-champagne-glow: rgba(198, 164, 106, 0.18);
  --sv2-text: #2A2622;
  --sv2-muted: #6E655C;
  --sv2-line: rgba(42, 38, 34, 0.12);
  --sv2-radius: 20px;
  --sv2-radius-sm: 14px;
  --sv2-shadow: 0 12px 32px rgba(20, 24, 30, 0.08);
  --sv2-font: "Plus Jakarta Sans", "IBM Plex Sans", "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif;
  --cine-gold-1: var(--sv2-champagne);
  --sv2-input-h: 48px;
  --sv2-ease: 180ms ease;
}

html.sell-v2[data-dg-theme="dark"] {
  --sv2-ivory: #15191F;
  --sv2-ivory-deep: #1C222B;
  --sv2-platinum: #D7DBE0;
  --sv2-text: #F3F0EA;
  --sv2-muted: #A8AFB8;
  --sv2-line: rgba(215, 219, 224, 0.14);
  --sv2-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

html.sell-v2,
html.sell-v2 body.sell-v2-body {
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(198, 164, 106, 0.08), transparent 55%),
    linear-gradient(180deg, var(--sv2-ivory) 0%, var(--sv2-ivory-deep) 100%);
  color: var(--sv2-text);
  font-family: var(--sv2-font);
}

html.sell-v2 #siteMobileNav,
html.sell-v2 .dmnav-bar,
html.sell-v2 .home-bottomnav,
html.sell-v2 [data-dg-mobile-nav] {
  display: none !important;
}

html.sell-v2 body.sell-v2-body {
  padding-bottom: 0 !important;
  padding-top: 76px;
}

html.sell-v2 .sell-v2-badge { display: none !important; }

/* Shared column — progress + form share identical left/right edges */
html.sell-v2 .sell-layout {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  box-sizing: border-box;
}

html.sell-v2 .sell-intro {
  padding: 20px 0 0;
  max-width: 980px;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

html.sell-v2 .sell-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--sv2-obsidian);
  font-weight: 700;
}

html.sell-v2[data-dg-theme="dark"] .sell-intro h1 {
  color: var(--sv2-platinum);
}

html.sell-v2 .sell-intro p {
  margin: 0;
  max-width: 48ch;
  color: var(--sv2-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Progress — lightweight strip (no heavy full-width panel), NO connecting lines */
/* Spacing refinement: intro → progress ≈12px; progress → form ≈24px; number → label ≈10px */
html.sell-v2 .sell-progress {
  margin: 12px 0 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* Stay on the same shared column as .sell-layout / form card */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

html.sell-v2[data-dg-theme="dark"] .sell-progress {
  background: transparent;
}

html.sell-v2 .sell-progress-now {
  display: none;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--sv2-muted);
  font-size: 13px;
  line-height: 1.35;
}

html.sell-v2 .sell-progress-now #sellProgressName {
  color: var(--sv2-text);
  font-weight: 650;
}

html.sell-v2 .step-indicator {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  column-gap: 8px;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

html.sell-v2 .step-indicator .step-item {
  min-width: 0;
  position: relative;
  width: 100%;
}

/* Explicitly kill connecting lines (owner rejected) */
html.sell-v2 .step-indicator .step-item::before,
html.sell-v2 .step-indicator .step-item::after,
html.sell-v2 .step-indicator .step-item:not(:last-child)::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
}

html.sell-v2 .step-indicator button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px; /* number circle → label (8–14px band) */
  background: transparent;
  border: 0;
  color: var(--sv2-muted);
  cursor: default;
  padding: 0 2px;
  min-height: 0;
  box-sizing: border-box;
}

html.sell-v2 .step-indicator .step-item.clickable button {
  cursor: pointer;
}

html.sell-v2 .step-num {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid var(--sv2-line);
  background: transparent;
  color: var(--sv2-muted);
  transition: background var(--sv2-ease), border-color var(--sv2-ease), color var(--sv2-ease);
}

html.sell-v2 .step-check {
  font-size: 12px;
  line-height: 1;
}

html.sell-v2 .step-item.active .step-num {
  border-color: color-mix(in srgb, var(--sv2-platinum) 55%, var(--sv2-line));
  background: color-mix(in srgb, var(--sv2-platinum) 14%, transparent);
  color: var(--sv2-text);
}

html.sell-v2[data-dg-theme="dark"] .step-item.active .step-num {
  border-color: color-mix(in srgb, var(--sv2-platinum) 40%, var(--sv2-line));
  background: color-mix(in srgb, var(--sv2-platinum) 10%, transparent);
  color: var(--sv2-platinum);
}

html.sell-v2 .step-item.done .step-num {
  border-color: color-mix(in srgb, var(--sv2-champagne) 45%, var(--sv2-line));
  color: transparent;
  font-size: 0;
  position: relative;
}

/* Checkmark on the number chip (not .step-item::after — that pseudo is reserved/killed for connector lines). */
html.sell-v2 .step-item.done .step-num::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--sv2-champagne-deep);
}

html.sell-v2 .step-label {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 550;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
  /* Keep number visually centered over label */
  margin: 0;
  padding: 0;
}

html.sell-v2 .step-item.active .step-label {
  color: var(--sv2-text);
  font-weight: 600;
}

@media (max-width: 720px) {
  /* Compact number strip + clear active-step name readout */
  html.sell-v2 .sell-progress {
    margin: 12px 0 20px;
  }
  html.sell-v2 .sell-progress-now { display: flex !important; }
  html.sell-v2 .step-indicator .step-label { display: none; }
  html.sell-v2 .step-indicator {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 4px;
  }
  html.sell-v2 .step-num { width: 22px; height: 22px; font-size: 10px; }
  html.sell-v2 .step-indicator button {
    min-height: 0;
    gap: 0;
    padding: 0;
  }
}

/* Cards / panels — inherit shared sell-layout width */
html.sell-v2 .sell-shell,
html.sell-v2 .sell-workspace {
  max-width: none;
  width: 100%;
}

html.sell-v2 .sell-step-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

html.sell-v2 .sell-step-head p {
  margin: 0 0 18px;
  color: var(--sv2-muted);
  font-size: 0.95rem;
}

html.sell-v2 .sell-panel,
html.sell-v2 .sell-block,
html.sell-v2 .sell-fields,
html.sell-v2 .sell-price-body,
html.sell-v2 .sell-media,
html.sell-v2 .sell-final,
html.sell-v2 .sell-preview,
html.sell-v2 .sell-owner-col,
html.sell-v2 .sell-verify-col {
  border-radius: var(--sv2-radius);
  border: 1px solid var(--sv2-line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--sv2-shadow);
}

html.sell-v2[data-dg-theme="dark"] .sell-panel,
html.sell-v2[data-dg-theme="dark"] .sell-block,
html.sell-v2[data-dg-theme="dark"] .sell-fields,
html.sell-v2[data-dg-theme="dark"] .sell-price-body,
html.sell-v2[data-dg-theme="dark"] .sell-media,
html.sell-v2[data-dg-theme="dark"] .sell-final,
html.sell-v2[data-dg-theme="dark"] .sell-preview,
html.sell-v2[data-dg-theme="dark"] .sell-owner-col,
html.sell-v2[data-dg-theme="dark"] .sell-verify-col {
  background: rgba(28, 34, 43, 0.78);
}

html.sell-v2 .sell-panel,
html.sell-v2 .sell-block,
html.sell-v2 .sell-price-body,
html.sell-v2 .sell-fields,
html.sell-v2 .sell-media {
  padding: 20px;
  margin-bottom: 16px;
}

html.sell-v2 #stepType .sell-step-head {
  display: none;
}

html.sell-v2 #stepType .sell-panel {
  margin-bottom: 12px;
}

html.sell-v2 .wizard-step {
  transition: opacity var(--sv2-ease), transform var(--sv2-ease);
}

html.sell-v2 .wizard-step:not(.hidden) {
  animation: sv2-in var(--sv2-ease) both;
}

@keyframes sv2-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.sell-v2 .wizard-step:not(.hidden) { animation: none; }
  html.sell-v2 * { transition-duration: 0.01ms !important; }
}

/* Inputs */
html.sell-v2 input[type="text"],
html.sell-v2 input[type="number"],
html.sell-v2 input[type="tel"],
html.sell-v2 input[type="date"],
html.sell-v2 input[type="time"],
html.sell-v2 select,
html.sell-v2 textarea {
  min-height: var(--sv2-input-h);
  border-radius: var(--sv2-radius-sm) !important;
  border-color: var(--sv2-line) !important;
}

html.sell-v2 textarea { min-height: 140px; }

/* Compact property-type chips — small Lucide-weight icons */
html.sell-v2 .sell-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 720px) {
  html.sell-v2 .sell-type-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Step 2 — Other custom type reveal (matches existing field DNA) */
html.sell-v2 #stepType .sell-other-type-wrap {
  margin-top: 14px;
  padding-top: 2px;
  overflow: hidden;
  max-height: 120px;
  opacity: 1;
  transition: max-height 220ms ease, opacity 180ms ease, margin 180ms ease;
}
html.sell-v2 #stepType .sell-other-type-wrap.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  pointer-events: none;
}
html.sell-v2 #stepType .sell-other-type-wrap .sell-field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sv2-muted);
  line-height: 1.35;
}
html.sell-v2 #stepType .sell-other-type-wrap .sell-field-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-obsidian) 4%, var(--sv2-ivory));
  color: var(--sv2-text);
  font-size: 14.5px;
}
html.sell-v2[data-dg-theme="dark"] #stepType .sell-other-type-wrap .sell-field-input {
  background: color-mix(in srgb, var(--sv2-platinum) 14%, #222831);
  border-color: rgba(215, 219, 224, 0.22);
  color: var(--sv2-text);
}
html.sell-v2 #stepType .sell-other-type-wrap .sell-inline-error {
  margin-top: 6px;
}

html.sell-v2 .sell-type {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: transparent;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sv2-muted);
  cursor: pointer;
  transition: border-color var(--sv2-ease), background var(--sv2-ease), color var(--sv2-ease);
}

html.sell-v2 .sell-type .pb-ico,
html.sell-v2 .sell-type svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.sell-v2 .sell-type[aria-pressed="true"],
html.sell-v2 .sell-type.active {
  border-color: color-mix(in srgb, var(--sv2-champagne) 45%, var(--sv2-line));
  background: color-mix(in srgb, var(--sv2-champagne) 10%, transparent);
  color: var(--sv2-text);
}

html.sell-v2 .sell-segment {
  border-radius: 999px;
  border: 1px solid var(--sv2-line);
  padding: 4px;
}

html.sell-v2 .sell-btn {
  min-height: 48px;
  border-radius: var(--sv2-radius-sm);
  border: 1px solid var(--sv2-line);
}

html.sell-v2 .sell-btn-gold {
  background: color-mix(in srgb, var(--sv2-champagne) 88%, #fff);
  color: #1a1612;
  border-color: transparent;
}

html.sell-v2 .sell-btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html.sell-v2 .sell-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 12px;
  padding: 14px 0 20px;
  background: linear-gradient(180deg, transparent, var(--sv2-ivory-deep) 28%);
}

/* Legacy drop chrome retired — Step 4 uses .sell-media-block gallery */
html.sell-v2 .sell-drop {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: start;
}

html.sell-v2 .sell-hint {
  color: var(--sv2-muted);
  font-size: 12.5px;
}

/* Feature accordions (Account/Profile DNA) */
html.sell-v2 .sell-acc-grid {
  display: flex;
  flex-direction: column;
  margin: 16px 0 20px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-platinum) 12%, transparent);
  overflow: hidden;
}

html.sell-v2 .sell-acc {
  border-bottom: 1px solid var(--sv2-line);
}

html.sell-v2 .sell-acc:last-child { border-bottom: 0; }

html.sell-v2 details.sell-acc > summary {
  list-style: none;
}
html.sell-v2 details.sell-acc > summary::-webkit-details-marker {
  display: none;
}

html.sell-v2 .sell-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

html.sell-v2 .sell-acc-trigger:hover {
  background: color-mix(in srgb, var(--sv2-champagne) 8%, transparent);
}

html.sell-v2 .sell-acc-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sv2-champagne) 45%, transparent);
  outline-offset: -2px;
}

html.sell-v2 .sell-acc-icon {
  width: 22px;
  color: var(--sv2-muted);
  display: inline-flex;
}

html.sell-v2 .sell-acc-title {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}

html.sell-v2 .sell-acc-chevron {
  color: var(--sv2-muted);
  transition: transform var(--sv2-ease);
}

html.sell-v2 .sell-acc.is-open .sell-acc-chevron {
  transform: rotate(180deg);
}

html.sell-v2 .sell-acc-panel {
  padding: 4px 16px 16px;
}

html.sell-v2 details.sell-acc:not([open]) .sell-acc-panel {
  display: none;
}

html.sell-v2 .sell-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 560px) {
  html.sell-v2 .sell-feat-grid {
    grid-template-columns: 1fr;
  }
}

html.sell-v2 .sell-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: transparent;
  cursor: pointer;
  text-align: start;
  color: inherit;
  font: inherit;
}

html.sell-v2 .sell-feat input {
  width: 18px;
  height: 18px;
  accent-color: var(--sv2-champagne-deep);
  flex: none;
}

html.sell-v2 .sell-feat.is-on {
  border-color: color-mix(in srgb, var(--sv2-champagne) 50%, var(--sv2-line));
  background: color-mix(in srgb, var(--sv2-champagne) 12%, transparent);
}

/* Open House */
html.sell-v2 .sell-oh-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

html.sell-v2 .sell-oh-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

html.sell-v2 .sell-oh-slot {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

@media (max-width: 640px) {
  html.sell-v2 .sell-oh-slot {
    grid-template-columns: 1fr 1fr;
  }
}

html.sell-v2 .sell-oh-slot.hidden,
html.sell-v2 #openHouseFields.hidden {
  display: none !important;
}

/* Review privacy */
html.sell-v2 .sell-review-private {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--sv2-radius-sm);
  border: 1px dashed var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-obsidian) 4%, transparent);
}

html.sell-v2 .sell-review-private h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv2-muted);
}

html.sell-v2 .sell-review-edits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

html.sell-v2 .sell-review-edits button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--sv2-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12.5px;
}

html.sell-v2 .sell-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--sv2-muted);
}

html.sell-v2 .sell-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--sv2-champagne-deep);
}

html.sell-v2 .dh-pinmap {
  border-radius: var(--sv2-radius-sm);
  min-height: 280px;
}

/* Seller step — single balanced column (fixes tiny left / empty right) */
html.sell-v2 #step5 .sell-final,
html.sell-v2 #step5 .sell-split {
  display: block;
  max-width: 640px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  html.sell-v2 #step5 .grid.sm\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

html.sell-v2 #step5 .sell-owner-col,
html.sell-v2 #step5 .sell-verify-col {
  margin-bottom: 14px;
  padding: 18px 18px 16px;
}

html.sell-v2 #step5 .sell-fields {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

html.sell-v2 #step5 .sell-verify-col .p-6 {
  padding: 0 !important;
}

html.sell-v2 .sell-verify-frame {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--sv2-line);
  background: #0f1216;
}

html.sell-v2 .sell-verify-frame video,
html.sell-v2 .sell-verify-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.sell-v2 .sell-verify-oval {
  position: absolute;
  inset: 10%;
  border: 1.5px dashed color-mix(in srgb, var(--sv2-champagne) 40%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

html.sell-v2 .sell-verify-idle {
  text-align: center;
  padding: 8px 4px 4px;
}

html.sell-v2 .sell-verify-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sv2-line);
  font-size: 12px;
  color: var(--sv2-muted);
}

html.sell-v2 .sell-verify-status.is-pending {
  border-color: color-mix(in srgb, var(--sv2-champagne) 35%, var(--sv2-line));
  color: var(--sv2-champagne-deep);
}

/* Location toolbar — compact icon system (Map DRAW DNA) */
html.sell-v2 .dh-loc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

html.sell-v2 .dh-loc-tool {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-obsidian-soft) 55%, transparent);
  color: var(--sv2-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

html.sell-v2[data-dg-theme="light"] .dh-loc-tool {
  background: rgba(255, 255, 255, 0.72);
}

html.sell-v2 .dh-loc-tool svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

html.sell-v2 .dh-loc-tool .dh-loc-tool-label {
  font-size: 12.5px;
}

@media (max-width: 560px) {
  html.sell-v2 .dh-loc-tool .dh-loc-tool-label { display: none; }
  html.sell-v2 .dh-loc-tool { padding: 0; width: 44px; }
}

html.sell-v2 .dh-map-tools {
  gap: 6px !important;
}

html.sell-v2 .dh-map-tool,
html.sell-v2 .dh-lp-tool:not(.hidden),
html.sell-v2 .dh-lp-iconbtn {
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
}

html.sell-v2 .dh-expand-map-btn .dh-expand-label {
  display: none !important;
}

html.sell-v2 .dh-pinmap {
  min-height: 320px;
  height: 380px !important;
}

/* Pricing — single calm card, no nested noise */
html.sell-v2 #stepType .sell-panel {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 8px;
}

html.sell-v2 #step2 .sell-price-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
}

@media (min-width: 720px) {
  html.sell-v2 #step2 .sell-price-body {
    grid-template-columns: 1.4fr 1fr;
  }
}

html.sell-v2 .sell-price-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

html.sell-v2 .sell-price-row #priceInput { flex: 1; }
html.sell-v2 .sell-price-row #currencySelect {
  width: 96px;
  flex: none;
}

html.sell-v2 #priceEquivalentReadout {
  font-size: 12.5px;
  color: var(--sv2-muted);
}

html.sell-v2 #stepType .sell-step-head p,
html.sell-v2 #step2 .sell-step-head p,
html.sell-v2 .sell-publicBrandNote,
html.sell-v2 #stepType .sell-hint {
  display: none;
}

html.sell-v2 #stepType .sell-step-head {
  display: block;
  margin-bottom: 8px;
}

html.sell-v2 #stepType .sell-step-head h2 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 10px;
}

/* Unified media */
html.sell-v2 .sell-tabs { display: none !important; }

html.sell-v2 .sell-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

html.sell-v2 .sell-media-actions .sell-btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
}

html.sell-v2 .sell-error-inline {
  margin: 8px 0 0;
  font-size: 13px;
  color: #c45c5c;
}

html.sell-v2 #stepValidationMsg.sell-error {
  max-width: 920px;
  margin: 8px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #c45c5c 35%, transparent);
  background: color-mix(in srgb, #c45c5c 10%, transparent);
}

html.sell-v2 .sell-ai.is-unavailable .sell-ai-actions {
  display: none;
}

html.sell-v2 .sell-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

html.sell-v2 .sell-doc-meta {
  font-size: 12.5px;
  color: var(--sv2-muted);
}

/* Reduce nested card chrome */
html.sell-v2 #step3 .sell-fields,
html.sell-v2 #step4 .sell-media,
html.sell-v2 #step6 .sell-preview {
  padding: 18px;
}

html.sell-v2 #step6 .sell-final {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}

html.sell-v2 #step6 .sell-consent {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-platinum) 10%, transparent);
}

html.sell-v2 #step1 .sell-block > .p-6 {
  padding: 4px 4px 8px !important;
}

html.sell-v2 .sell-step-head p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

/* Step 1 — single outer card only (kill nested sell-block chrome) */
html.sell-v2 #step1 .sell-block {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 4px !important;
}

html.sell-v2 .sell-form {
  max-width: 100%;
  border-radius: 22px;
  padding: 18px 20px 20px;
  background: color-mix(in srgb, rgba(255, 255, 255, 0.55) 70%, transparent);
  border: 1px solid var(--sv2-line);
  box-shadow: 0 10px 28px rgba(20, 24, 30, 0.07);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

html.sell-v2[data-dg-theme="dark"] .sell-form {
  background: color-mix(in srgb, rgba(28, 34, 43, 0.82) 85%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

html.sell-v2 #step1 .sell-step-head {
  padding: 4px 4px 0 !important;
}

html.sell-v2 #step1 .sell-step-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
}

/* Step 1 actions — centered, equal weight, above the map */
html.sell-v2 #step1 .dh-loc-toolbar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}

html.sell-v2 #step1 .dh-loc-tool {
  flex: 0 1 auto;
  min-width: 156px;
  min-height: 48px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--sv2-line);
  border-radius: 12px;
  font-weight: 550;
  color: var(--sv2-text);
  box-shadow: none;
}

html.sell-v2 #step1 .dh-loc-tool:hover {
  background: color-mix(in srgb, var(--sv2-platinum) 10%, transparent);
}

html.sell-v2 #step1 .dh-loc-tool svg {
  width: 20px;
  height: 20px;
}

html.sell-v2 #step1 .dh-loc-tool .dh-loc-tool-label {
  display: inline;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  html.sell-v2 #step1 .dh-loc-tool {
    min-width: calc(50% - 8px);
    flex: 1 1 calc(50% - 8px);
    padding: 0 12px;
    width: auto;
  }
  html.sell-v2 #step1 .dh-loc-tool .dh-loc-tool-label {
    display: inline;
  }
}

html.sell-v2 #step1 .dh-pinmap {
  height: 420px !important;
  min-height: 360px;
  border-radius: 16px !important;
  border: 1px solid var(--sv2-line) !important;
}

html.sell-v2 #step1 .dh-pinmap-wrap {
  margin-bottom: 14px;
}

/* Soft ambient depth on SVG pin — no glow/pulse */
html.sell-v2 .leaflet-marker-icon.dh-sell-pin-icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22));
}

/* True fullscreen map host (native :fullscreen + fixed fallback) */
html.sell-v2 #pinMapWrap:fullscreen,
html.sell-v2 #pinMapWrap.sell-map-fs-fallback {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #0D0F12;
  border-radius: 0;
  z-index: 120;
}

html.sell-v2 #pinMapWrap.sell-map-fs-fallback {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 10050 !important;
}

html.sell-v2 #pinMapWrap:fullscreen .dh-pinmap,
html.sell-v2 #pinMapWrap.sell-map-fs-fallback .dh-pinmap {
  height: 100% !important;
  min-height: 100% !important;
  border-radius: 0 !important;
  border: 0 !important;
}

/* Owner annotation: hide entire top-right control stack in fullscreen
   (zoom +/−, expand, exit). Wheel / pinch / keyboard zoom remain. */
html.sell-v2 #pinMapWrap:fullscreen .dh-map-tools,
html.sell-v2 #pinMapWrap.sell-map-fs-fallback .dh-map-tools {
  display: none !important;
}

html.sell-v2 .sell-map-fs-exit {
  display: none !important;
}

/* Fullscreen compact search — icon only until expanded; never covers confirm bar */
html.sell-v2 .sell-map-fs-search {
  display: none;
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(420px, calc(100% - 28px));
  pointer-events: none;
}

html.sell-v2 #pinMapWrap:fullscreen .sell-map-fs-search,
html.sell-v2 #pinMapWrap.sell-map-fs-fallback .sell-map-fs-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

html.sell-v2 .sell-map-fs-search-toggle,
html.sell-v2 .sell-map-fs-search-clear,
html.sell-v2 .sell-map-fs-search-collapse {
  pointer-events: auto;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid rgba(215, 219, 224, 0.28);
  background: rgba(18, 21, 26, 0.78);
  color: rgba(241, 243, 245, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.sell-v2 .sell-map-fs-search-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.sell-v2 .sell-map-fs-search-toggle:focus-visible,
html.sell-v2 .sell-map-fs-search-clear:focus-visible,
html.sell-v2 .sell-map-fs-search-collapse:focus-visible,
html.sell-v2 .sell-map-fs-search-input:focus-visible {
  outline: 2px solid rgba(185, 154, 99, 0.65);
  outline-offset: 2px;
}

html.sell-v2 .sell-map-fs-search.is-open .sell-map-fs-search-toggle {
  display: none;
}

html.sell-v2 .sell-map-fs-search-panel {
  pointer-events: auto;
  width: 100%;
  position: relative;
}

html.sell-v2 .sell-map-fs-search-panel[hidden] {
  display: none !important;
}

html.sell-v2 .sell-map-fs-search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 4px 4px 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(215, 219, 224, 0.28);
  background: rgba(18, 21, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html.sell-v2 .sell-map-fs-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #F1F3F5;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

html.sell-v2 .sell-map-fs-search-input::placeholder {
  color: rgba(241, 243, 245, 0.52);
}

html.sell-v2 .sell-map-fs-search-clear,
html.sell-v2 .sell-map-fs-search-collapse {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  background: transparent;
  flex: none;
}

html.sell-v2 .sell-map-fs-search-clear[hidden] {
  display: none !important;
}

html.sell-v2 .sell-map-fs-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1210;
  /* Stay above tiles but never collide with bottom Confirm bar */
  max-height: min(280px, calc(100dvh - 220px), 42vh);
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(215, 219, 224, 0.24);
  background: rgba(18, 21, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  color: #F1F3F5;
}

html.sell-v2 .sell-map-fs-search-results .dh-loc-suggest {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: start;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(215, 219, 224, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

html.sell-v2 .sell-map-fs-search-results .dh-loc-suggest:last-child {
  border-bottom: 0;
}

html.sell-v2 .sell-map-fs-search-results:not(.hidden) {
  display: block;
}

html.sell-v2 .sell-map-fs-search-results [role="option"],
html.sell-v2 .sell-map-fs-search-results .px-4 {
  color: inherit;
}

html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-toggle,
html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-field,
html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-results {
  background: rgba(247, 243, 235, 0.94);
  border-color: rgba(42, 38, 34, 0.14);
  color: #2A2622;
}

html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-toggle,
html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-clear,
html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-collapse {
  color: #2A2622;
}

html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-input {
  color: #2A2622;
}

html.sell-v2[data-dg-theme="light"] .sell-map-fs-search-input::placeholder {
  color: rgba(42, 38, 34, 0.45);
}

/* Bottom-center confirmation bar (fullscreen only) */
html.sell-v2 .sell-map-fs-bar {
  display: none;
  position: absolute;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  transform: translateX(-50%);
  z-index: 1100;
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  min-width: min(320px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(210, 214, 220, 0.22);
  background:
    linear-gradient(165deg,
      rgba(28, 32, 38, 0.92) 0%,
      rgba(16, 19, 24, 0.94) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 28px -16px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  pointer-events: auto;
}

html.sell-v2 #pinMapWrap:fullscreen .sell-map-fs-bar,
html.sell-v2 #pinMapWrap.sell-map-fs-fallback .sell-map-fs-bar {
  display: flex;
}

html.sell-v2 .sell-map-fs-bar[hidden] {
  display: none !important;
}

html.sell-v2 .sell-map-fs-bar-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(210, 214, 220, 0.72);
  line-height: 1.3;
}

html.sell-v2 .sell-map-fs-bar-hint.is-empty {
  color: rgba(210, 214, 220, 0.5);
}

html.sell-v2 .sell-map-fs-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

html.sell-v2 .sell-map-fs-confirm {
  flex: 1 1 auto;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(215, 219, 224, 0.28);
  border-radius: 12px;
  background: rgba(241, 243, 245, 0.96);
  color: #12151A;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}

html.sell-v2 .sell-map-fs-confirm:hover:not(:disabled) {
  background: #fff;
}

html.sell-v2 .sell-map-fs-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html.sell-v2 .sell-map-fs-confirm:focus-visible {
  outline: 2px solid rgba(185, 154, 99, 0.65);
  outline-offset: 2px;
}

html.sell-v2 .sell-map-fs-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(215, 219, 224, 0.22);
  background: transparent;
  color: rgba(241, 243, 245, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

html.sell-v2 .sell-map-fs-close:focus-visible {
  outline: 2px solid rgba(185, 154, 99, 0.65);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  html.sell-v2 .sell-map-fs-bar {
    width: min(440px, calc(100% - 24px));
    min-width: 0;
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
}

/* Keep map attribution readable above the bar */
html.sell-v2 #pinMapWrap:fullscreen .leaflet-bottom,
html.sell-v2 #pinMapWrap.sell-map-fs-fallback .leaflet-bottom {
  bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 88px));
}

html.sell-map-fs-lock,
html.sell-map-fs-lock body {
  overflow: hidden !important;
}

html[data-dg-theme="light"].sell-v2 #pinMapWrap:fullscreen,
html[data-dg-theme="light"].sell-v2 #pinMapWrap.sell-map-fs-fallback {
  background: #F4F0E8;
}

html[data-dg-theme="light"].sell-v2 .sell-map-fs-bar {
  border-color: rgba(47, 42, 38, 0.14);
  background:
    linear-gradient(165deg,
      rgba(255, 252, 247, 0.94) 0%,
      rgba(244, 241, 234, 0.96) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px -16px rgba(47, 42, 38, 0.28);
}

html[data-dg-theme="light"].sell-v2 .sell-map-fs-bar-hint {
  color: rgba(47, 42, 38, 0.62);
}

html[data-dg-theme="light"].sell-v2 .sell-map-fs-confirm {
  background: #1C1814;
  color: #F4F1EA;
  border-color: transparent;
}

html[data-dg-theme="light"].sell-v2 .sell-map-fs-close {
  color: #2F2A26;
  border-color: rgba(47, 42, 38, 0.16);
}

/* ========== Step 4 — Property Photos / Videos premium gallery ========== */
html.sell-v2 .sell-media-v3 {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

html.sell-v2 .sell-media-block {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.sell-v2 .sell-media-block.drag-over {
  outline: 1.5px dashed color-mix(in srgb, var(--sv2-champagne) 45%, var(--sv2-line));
  outline-offset: 4px;
  border-radius: 14px;
}

html.sell-v2 .sell-media-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

html.sell-v2 .sell-media-block-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--sv2-text);
}

html.sell-v2 .sell-media-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sv2-muted);
  font-variant-numeric: tabular-nums;
}

html.sell-v2 .sell-media-hint {
  margin: 0 0 12px;
}

html.sell-v2 .sell-gallery-grid,
html.sell-v2 .sell-video-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 720px) {
  html.sell-v2 .sell-gallery-grid,
  html.sell-v2 .sell-video-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

html.sell-v2 .sell-gallery-tile,
html.sell-v2 .sell-video-tile,
html.sell-v2 .sell-gallery-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-obsidian) 6%, var(--sv2-ivory));
  min-width: 0;
}

html.sell-v2[data-dg-theme="dark"] .sell-gallery-tile,
html.sell-v2[data-dg-theme="dark"] .sell-video-tile,
html.sell-v2[data-dg-theme="dark"] .sell-gallery-add {
  background: #14181e;
  border-color: rgba(215, 219, 224, 0.14);
}

html.sell-v2 .sell-gallery-tile.dragging {
  opacity: 0.55;
}

html.sell-v2 .sell-gallery-img,
html.sell-v2 .sell-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

html.sell-v2 .sell-gallery-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(12, 14, 18, 0.62);
  color: #f3f0ea;
  border: 0;
  pointer-events: none;
}

html.sell-v2 .sell-gallery-badge-btn {
  pointer-events: auto;
  cursor: pointer;
  background: rgba(12, 14, 18, 0.48);
}

html.sell-v2 .sell-gallery-badge.is-cover {
  background: color-mix(in srgb, var(--sv2-champagne) 78%, #1a1d22);
  color: #1a1510;
}

html.sell-v2 .sell-gallery-move {
  position: absolute;
  bottom: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: rgba(12, 14, 18, 0.55);
  color: #f3f0ea;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 140ms ease;
}

html.sell-v2 .sell-gallery-tile:hover .sell-gallery-move,
html.sell-v2 .sell-gallery-tile:focus-within .sell-gallery-move {
  opacity: 1;
}

html.sell-v2 .sell-gallery-move { left: 6px; }
html.sell-v2 .sell-gallery-move.is-next { left: auto; right: 6px; }

html[dir="rtl"] .sell-gallery-move { left: auto; right: 6px; }
html[dir="rtl"] .sell-gallery-move.is-next { right: auto; left: 6px; }

/* Trash — upper-right ON the thumbnail (owner requirement) */
html.sell-v2 .sell-gallery-trash {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 9px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 18, 0.55);
  color: #f2f0ec;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 140ms ease, transform 140ms ease;
}

html[dir="rtl"] .sell-gallery-trash {
  right: auto;
  left: 6px;
}

html.sell-v2 .sell-gallery-trash:hover,
html.sell-v2 .sell-gallery-trash:focus-visible {
  background: rgba(12, 14, 18, 0.78);
  outline: 2px solid color-mix(in srgb, var(--sv2-champagne) 50%, transparent);
  outline-offset: 1px;
}

html.sell-v2 .sell-gallery-progress,
html.sell-v2 .sell-gallery-retry {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 30, 0.38);
  border: 0;
  color: #fff;
  cursor: pointer;
}

html.sell-v2 .sell-gallery-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sv2-spin 0.7s linear infinite;
}

@keyframes sv2-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.sell-v2 .sell-gallery-spinner { animation: none; }
}

html.sell-v2 .sell-gallery-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border-style: dashed;
  background: color-mix(in srgb, var(--sv2-platinum) 8%, transparent);
  color: var(--sv2-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

html.sell-v2 .sell-gallery-add:hover,
html.sell-v2 .sell-gallery-add:focus-visible {
  border-color: color-mix(in srgb, var(--sv2-champagne) 40%, var(--sv2-line));
  color: var(--sv2-text);
  background: color-mix(in srgb, var(--sv2-champagne) 8%, transparent);
  outline: none;
}

html.sell-v2 .sell-gallery-add.is-empty {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 112px;
  max-width: 280px;
}

html.sell-v2 .sell-gallery-add-plus {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: var(--sv2-champagne-deep);
}

html.sell-v2 .sell-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(12, 14, 18, 0.58);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

html.sell-v2 .sell-video-duration {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(12, 14, 18, 0.62);
  color: #f3f0ea;
  font-variant-numeric: tabular-nums;
}

html.sell-v2 .sell-video-local {
  left: 6px;
  top: auto;
  bottom: 6px;
  right: auto;
  max-width: calc(100% - 44px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.sell-v2 .sell-video-tile .sell-video-duration + .sell-video-local,
html.sell-v2 .sell-video-tile .sell-video-local {
  bottom: 28px;
}

/* Delete menu — Back | Delete only; fixed so overflow:hidden tiles cannot clip it */
html.sell-v2 .sell-media-del-menu {
  position: fixed;
  z-index: 12050;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-ivory) 92%, #fff);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html.sell-v2[data-dg-theme="dark"] .sell-media-del-menu {
  background: #1a1f26;
  border-color: rgba(215, 219, 224, 0.16);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.65);
}

html.sell-v2 .sell-media-del-menu[hidden] {
  display: none !important;
}

html.sell-v2 .sell-media-del-item {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--sv2-text);
  font-size: 13.5px;
  font-weight: 550;
  text-align: start;
  cursor: pointer;
}

html.sell-v2 .sell-media-del-item:hover,
html.sell-v2 .sell-media-del-item:focus-visible {
  background: color-mix(in srgb, var(--sv2-platinum) 14%, transparent);
  outline: none;
}

html.sell-v2 .sell-media-del-item.is-danger {
  color: #c45c5c;
}

html.sell-v2 .sell-media-del-item.is-danger:hover,
html.sell-v2 .sell-media-del-item.is-danger:focus-visible {
  background: color-mix(in srgb, #c45c5c 12%, transparent);
}

/* ========== Step 5 — balanced seller form + Face ID camera dialog ========== */
/* Spacing refinement only (owner-approved visuals otherwise unchanged). */
html.sell-v2 #step5 .sell-step-head {
  margin: 0 0 4px;
  padding: 0 2px;
}

html.sell-v2 #step5 .sell-step-head h2 {
  margin: 0 0 10px;
  line-height: 1.25;
}

html.sell-v2 #step5 .sell-step-head p {
  margin: 0 0 20px;
  line-height: 1.45;
  max-width: 42rem;
}

html.sell-v2 #step5 .sell-seller-form {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Contact ↔ Verification selfie */
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-bottom: 16px; /* keep footer actions clear of content */
  padding: 4px 2px 16px;
  box-sizing: border-box;
}

html.sell-v2 #step5 .sell-owner-col,
html.sell-v2 #step5 .sell-verify-col {
  margin: 0;
  padding: 16px 16px 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

html.sell-v2 #step5 .sell-owner-col h3,
html.sell-v2 #step5 .sell-verify-col h3,
html.sell-v2 #step5 .sell-docs-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

html.sell-v2 #step5 .sell-verify-col > .sell-hint {
  margin: 0 0 14px;
  line-height: 1.45;
  max-width: 36rem;
}

html.sell-v2 #step5 .sell-name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; /* ~16px between form rows / columns */
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  html.sell-v2 #step5 .sell-name-grid {
    grid-template-columns: 1fr;
  }
}

html.sell-v2 #step5 .sell-field-label {
  display: block;
  margin-bottom: 7px; /* label → input */
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sv2-muted);
  line-height: 1.35;
}

/* Avoid cramped · marker colliding with uppercase labels (esp. RTL). */
html.sell-v2 #step5 label.sell-field-label::after {
  content: none !important;
}

html.sell-v2 #step5 .sell-field-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--sv2-line);
  background: color-mix(in srgb, var(--sv2-obsidian) 4%, var(--sv2-ivory));
  color: var(--sv2-text);
  font-size: 14.5px;
  color-scheme: light;
}

html.sell-v2[data-dg-theme="dark"] #step5 .sell-field-input {
  background: color-mix(in srgb, var(--sv2-platinum) 14%, #222831);
  border-color: rgba(215, 219, 224, 0.22);
  color: var(--sv2-text);
  color-scheme: dark;
  -webkit-text-fill-color: var(--sv2-text);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

html.sell-v2[data-dg-theme="dark"] #step5 .sell-field-input::placeholder {
  color: rgba(168, 175, 184, 0.55);
  -webkit-text-fill-color: rgba(168, 175, 184, 0.55);
}

html.sell-v2[data-dg-theme="dark"] #step5 .sell-field-input:-webkit-autofill,
html.sell-v2[data-dg-theme="dark"] #step5 .sell-field-input:-webkit-autofill:hover,
html.sell-v2[data-dg-theme="dark"] #step5 .sell-field-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--sv2-text);
  caret-color: var(--sv2-text);
  box-shadow: 0 0 0 1000px #1a1f26 inset;
  transition: background-color 99999s ease-out;
}

html.sell-v2 #step5 .sell-field-input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sv2-champagne) 55%, transparent);
  outline-offset: 1px;
}

html.sell-v2 #step5 .sell-face-idle-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto; /* spacing to Start Camera via .sell-verify-idle gap */
  /* Balanced platinum scan mark — clearer contrast, not a photo placeholder */
  color: color-mix(in srgb, var(--sv2-platinum) 55%, var(--sv2-text));
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--sv2-platinum) 42%, var(--sv2-line));
  background: color-mix(in srgb, var(--sv2-platinum) 14%, var(--sv2-ivory));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

html.sell-v2 #step5 .sell-verify-idle:hover .sell-face-idle-mark,
html.sell-v2 #step5 .sell-verify-idle:focus-within .sell-face-idle-mark {
  color: var(--sv2-text);
  border-color: color-mix(in srgb, var(--sv2-champagne) 40%, var(--sv2-line));
  background: color-mix(in srgb, var(--sv2-champagne) 10%, var(--sv2-ivory));
}

html.sell-v2[data-dg-theme="dark"] #step5 .sell-face-idle-mark {
  color: color-mix(in srgb, var(--sv2-platinum) 92%, #fff);
  border-color: rgba(215, 219, 224, 0.34);
  background: color-mix(in srgb, var(--sv2-platinum) 12%, #1a1f26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.sell-v2 #step5 .sell-face-scan-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

html.sell-v2 #step5 .sell-verify-col {
  /* Divider only — no nested card chrome (outer .sell-final is the frame). */
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--sv2-line);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

html.sell-v2 #step5 .sell-docs-block {
  display: none !important;
}

html.sell-v2 #step5 .sell-owner-col .sell-hint {
  display: none;
}

/* Kill nested .sell-fields panel chrome inside Step 5 contact block. */
html.sell-v2 #step5 .sell-fields {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0;
}

html.sell-v2 #step5 .sell-verify-idle,
html.sell-v2 #step5 .sell-verify-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 12px 4px 4px;
}

html.sell-v2 #step5 .sell-verify-idle {
  gap: 14px; /* face-scan container → Start Camera */
}

html.sell-v2 #step5 .sell-verify-summary.hidden {
  display: none !important;
}

html.sell-v2 #step5 .sell-verify-thumb-wrap {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--sv2-line);
  background: #0f1216;
}

html.sell-v2 #step5 .sell-verify-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.sell-v2 #step5 .sell-verify-upload-status {
  font-size: 11.5px;
  color: var(--sv2-muted);
  min-height: 1.2em;
}

html.sell-v2 .sell-face-dialog {
  position: fixed;
  inset: 0;
  z-index: 11060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    16px
    max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

html.sell-v2 .sell-face-dialog[hidden] {
  display: none !important;
}

html.sell-v2 .sell-face-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.72);
  backdrop-filter: blur(4px);
}

/* One shared panel for live camera + review — identical width / chrome. */
html.sell-v2 .sell-face-dialog-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  max-height: min(88dvh, 640px);
  overflow: hidden; /* kill white inner scrollbar by default */
  padding: 16px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(228, 231, 236, 0.1);
  background:
    linear-gradient(165deg, #1a1d22 0%, #101317 55%, #0c0e11 100%);
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.65);
  color: #e8e6e2;
  box-sizing: border-box;
}

/* Theme-consistent scrollbar — reserved for rare overflow on tiny viewports. */
html.sell-v2 .sell-face-dialog-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 219, 224, 0.35) transparent;
  scrollbar-gutter: auto;
}
html.sell-v2 .sell-face-dialog-panel::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}
html.sell-v2 .sell-face-dialog-panel::-webkit-scrollbar-track {
  background: transparent;
}
html.sell-v2 .sell-face-dialog-panel::-webkit-scrollbar-thumb {
  background: rgba(215, 219, 224, 0.32);
  border-radius: 999px;
}

/* Only enable scrolling when the panel is forced short AND content overflows. */
@media (max-height: 560px) {
  html.sell-v2 .sell-face-dialog-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: min(96dvh, 560px);
  }
}

@media (max-width: 640px) {
  html.sell-v2 .sell-face-dialog {
    padding: 0;
    align-items: stretch;
  }

  html.sell-v2 .sell-face-dialog-panel {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    overflow: hidden;
    padding:
      max(14px, env(safe-area-inset-top, 0px))
      16px
      max(18px, env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }
}

@media (max-width: 640px) and (max-height: 640px) {
  html.sell-v2 .sell-face-dialog-panel {
    overflow-y: auto;
    justify-content: flex-start;
  }
}

html.sell-v2 .sell-face-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

html.sell-v2 .sell-face-dialog-title {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 230, 226, 0.62);
}

html.sell-v2 .sell-face-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e6e2;
  cursor: pointer;
}

html.sell-v2 .sell-face-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sv2-champagne) 60%, white);
  outline-offset: 2px;
}

/* Shared body shell — camera and review use identical structure/spacing. */
html.sell-v2 .sell-face-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

html.sell-v2 .sell-face-body.hidden {
  display: none !important;
}

html.sell-v2 .sell-face-stage {
  position: relative;
  width: min(100%, clamp(200px, 52vmin, 260px));
  margin-inline: auto;
  padding: 4px;
  flex: 0 0 auto;
}

html.sell-v2 .sell-face-stage-clean {
  padding: 4px;
}

html.sell-v2 .sell-face-oval.sell-verify-frame {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: #0a0c0f;
  box-shadow: none;
  overflow: hidden;
}

/* Live video is the primary surface — no darkening filters/overlays on the stream. */
html.sell-v2 .sell-face-oval video#verifyVideo,
html.sell-v2 .sell-face-oval img#verifyDialogCapturedImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  background: transparent;
}

/* Preview mirrored for natural selfie framing; capture canvas stays unmirrored. */
html.sell-v2 .sell-face-oval video#verifyVideo {
  transform: scaleX(-1);
}

html.sell-v2 .sell-face-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

html.sell-v2 .sell-face-arcs-soft {
  animation: sell-face-arc-drift 8s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes sell-face-arc-drift {
  0%, 100% { transform: rotate(0deg); opacity: 0.9; }
  50% { transform: rotate(18deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.sell-v2 .sell-face-arcs-soft {
    animation: none;
  }
}

html.sell-v2 .sell-face-shutter {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  margin: 12px auto 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

html.sell-v2 .sell-face-shutter-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
}

html.sell-v2 .sell-face-shutter-core {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: #f4f1ea;
  transition: transform 120ms ease, background 120ms ease;
}

html.sell-v2 .sell-face-shutter:hover .sell-face-shutter-core,
html.sell-v2 .sell-face-shutter:focus-visible .sell-face-shutter-core {
  transform: scale(0.94);
}

html.sell-v2 .sell-face-shutter:active .sell-face-shutter-core {
  transform: scale(0.86);
  background: #e8e4dc;
}

html.sell-v2 .sell-face-shutter:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sv2-champagne) 55%, white);
  outline-offset: 3px;
}

html.sell-v2 .sell-face-quality,
html.sell-v2 .sell-face-upload-err {
  text-align: center;
  max-width: 280px;
  margin: 6px auto 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #e08a8a;
}

html.sell-v2 .sell-face-guide-text {
  margin: 10px 8px 2px;
  text-align: center;
  font-size: 14px;
  font-weight: 550;
  color: #f2f0ec;
  line-height: 1.35;
  flex: 0 0 auto;
}

html.sell-v2 .sell-face-guide-sub {
  margin: 4px 10px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(232, 230, 226, 0.62);
  line-height: 1.4;
  flex: 0 0 auto;
}

html.sell-v2 .sell-face-guide-sub.hidden {
  display: none !important;
}

html.sell-v2 .sell-face-capture,
html.sell-v2 .sell-face-dialog-actions {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}

/* Two balanced actions — Use Photo + Retake (not three stacked CTAs). */
html.sell-v2 .sell-face-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  flex: 0 0 auto;
}

html.sell-v2 .sell-face-dialog-actions .sell-btn {
  min-height: 44px;
  width: 100%;
  margin: 0;
}

html.sell-v2 .sell-face-dialog-actions .sell-btn[hidden],
html.sell-v2 .sell-face-dialog-actions .sell-btn.hidden {
  display: none !important;
}

/* When Use Photo is hidden (quality fail), Retake spans full width. */
html.sell-v2 .sell-face-dialog-actions:has(#confirmVerificationPhotoBtn[hidden]) {
  grid-template-columns: 1fr;
}

html.sell-v2 .sell-face-retry-upload {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  min-height: 40px;
  flex: 0 0 auto;
}

html.sell-v2 .sell-face-retry-upload.hidden {
  display: none !important;
}

html.sell-face-dialog-open,
html.sell-face-dialog-open body {
  overflow: hidden;
}

/* —— Strict step validation (field-level) —— */
html.sell-v2 .sell-field-invalid,
html.sell-v2 input.sell-field-invalid,
html.sell-v2 select.sell-field-invalid,
html.sell-v2 textarea.sell-field-invalid {
  border-color: color-mix(in srgb, #c45c5c 70%, var(--sv2-line)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, #c45c5c 35%, transparent);
}

html.sell-v2 .sell-inline-error {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #c45c5c;
}

html.sell-v2[data-dg-theme="dark"] .sell-inline-error {
  color: #e08a8a;
}

/* Subtle required cue — does not block optional fields */
html.sell-v2 label:has(+ input[required])::after,
html.sell-v2 label:has(+ select[required])::after,
html.sell-v2 label:has(+ .sell-price-row input[required])::after,
html.sell-v2 label:has(+ .sell-field-input[required])::after {
  content: " ·";
  color: color-mix(in srgb, var(--sv2-champagne-deep, #8e7448) 70%, transparent);
  font-weight: 650;
}
