:root {
  --ink: #111827;
  --ink-soft: #263244;
  --muted: #5f6b7a;
  --line: #d7dde5;
  --line-strong: #aeb7c4;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --brand-orange: #f97800;
  --primary: #111827;
  --primary-hover: #312e81;
  --primary-pressed: #0b1020;
  --selected-bg: #eef2ff;
  --selected-ink: #312e81;
  --focus: #6366f1;
  --focus-ring: rgba(99, 102, 241, 0.28);
  --blue: #175cd3;
  --blue-soft: #eaf2ff;
  --green: #067647;
  --green-soft: #e9f8f1;
  --red: #b42318;
  --red-soft: #fff0ee;
  --yellow-soft: #fff8dc;
  --radius: 8px;
  --control-radius: 12px;
  --shadow: 0 16px 44px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.08);
  --header-height: 72px;
  --motion-press: 140ms;
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --motion-enter: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-move: cubic-bezier(0.77, 0, 0.175, 1);
  --motion-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}

/* The HTML hidden contract must win over component display declarations. */
.vinde-canonical-0500 [hidden] {
  display: none !important;
}

/* Vehicle Schema V2: keeps the approved champagne/ink language and adds structure only. */
.schema-group,
.vehicle-spec-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.schema-group > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 4px 0 16px;
}

.schema-group > summary::-webkit-details-marker { display: none; }
.schema-group > summary span,
.vehicle-spec-group h3 { color: var(--ink); font-size: 1rem; margin: 0; }
.schema-group > summary small { color: var(--muted); }
.schema-group .dynamic-fields { padding-top: 4px; }

.vehicle-filter-group > summary small {
  color: var(--muted);
  font-size: .72rem;
}

.vehicle-filter-control[data-vehicle-filter-id] { min-width: 0; }
.vehicle-schema-details > h2 { margin-bottom: 4px; }
.vehicle-spec-group .spec-grid { margin-top: 12px; }
.vehicle-spec-group dd { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .schema-group > summary { gap: 12px; }
  .vehicle-spec-group .spec-grid { grid-template-columns: 1fr; }
}

/* Source-parity controls added after the V3 visual checkpoint. */
.saved-search-actions,
.contact-split,
.settings-actions,
.photo-preview__actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-search-actions {
  justify-content: space-between;
}

.saved-search-unavailable {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .saved-search-unavailable {
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
  }
}

.saved-search-unavailable > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.saved-search-unavailable span,
.saved-search-unavailable strong,
.saved-search-unavailable small {
  display: block;
  min-width: 0;
}

.saved-search-unavailable strong {
  color: var(--ink);
  font-size: 13px;
}

.saved-search-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.saved-search-panel > header,
.saved-search-panel > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.saved-search-panel > header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.saved-search-panel h2,
.saved-search-panel p {
  margin: 0;
}

.saved-search-panel article span,
.saved-search-panel article small {
  display: block;
  min-width: 0;
}

.filter-checks {
  display: grid;
  gap: 2px;
}

.listing-grid--results.is-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.listing-card--table {
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.listing-card--table .listing-card__media {
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  aspect-ratio: auto;
  overflow: hidden;
}

.listing-card--table .listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card--table .listing-card__body {
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(100px, .55fr) minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  overflow: hidden;
}

.listing-card--table .listing-card__category,
.listing-card--table .listing-card__body > h3,
.listing-card--table .listing-price,
.listing-card--table .listing-card__meta {
  margin: 0;
}

.listing-card--table .listing-card__category {
  display: none;
}

.listing-card--table .listing-card__body > h3,
.listing-card--table .listing-card__body > h3 button,
.listing-card--table .listing-card__body > h3 a {
  min-width: 0;
  max-height: 2.7em;
  line-height: 1.35;
}

.listing-card--table .listing-price { white-space: nowrap; }
.listing-card--table .listing-card__meta { min-width: 0; overflow: hidden; }
.listing-card--table .listing-card__meta span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.draft-restored {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #a7d8bc;
  background: #effaf3;
  color: #17643a;
}

.draft-restored .text-button {
  margin-left: auto;
}

.dynamic-publish-section .form-band__heading,
.publish-form .form-band__heading {
  align-items: flex-start;
}

.advanced-fields {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.advanced-fields > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.advanced-fields > summary small {
  color: var(--muted);
  font-weight: 650;
}

.advanced-fields[open] > summary {
  margin-bottom: 14px;
}

.dynamic-field {
  min-width: 0;
}

.dynamic-field.is-disabled {
  opacity: .62;
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-chip {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
}

.choice-chip:hover,
.choice-chip:focus-visible {
  border-color: var(--line-strong);
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.choice-chip.is-active {
  border-color: var(--selected-ink);
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.photo-preview__actions {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  justify-content: flex-end;
  padding: 4px;
  background: rgba(17, 24, 39, .72);
}

.photo-preview__actions .icon-button,
.photo-preview__actions .text-button {
  color: #fff;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-weight: 700;
}

[data-description-quality][aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-soft);
}

.preview-listing {
  display: grid;
  gap: 0;
  margin: 14px 0;
  border: 1px solid var(--line);
}

.preview-listing div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.preview-listing dt {
  color: var(--muted);
}

.preview-listing dd {
  margin: 0;
  font-weight: 750;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-field .icon-button {
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
}

.auth-flow-state {
  display: grid;
  gap: 12px;
  padding-block: 18px;
}

.thread-row-wrap {
  position: relative;
}

.thread-row-wrap > .text-button {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.seller-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
}

.seller-profile-hero > div {
  min-width: 0;
  margin-right: auto;
}

.seller-profile-hero h1,
.seller-profile-hero p {
  margin: 0;
}

button.seller-summary,
a.seller-summary {
  width: 100%;
  text-align: left;
}

button.seller-summary > span:nth-child(2),
a.seller-summary > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

button.seller-summary strong,
button.seller-summary small,
a.seller-summary strong,
a.seller-summary small {
  display: block;
}

.contact-split > * {
  flex: 1;
}

.gallery-nav,
.gallery-zoom-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .92);
}

.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }
.gallery-zoom-button { top: 14px; right: 14px; transform: none; }

.gallery-zoom img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.notification-list,
.blocked-list {
  display: grid;
  gap: 8px;
  padding-block: 24px 60px;
}

.notification-row,
.blocked-list article {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.notification-row.is-unread {
  border-left: 1px solid var(--line-strong);
  background: #f8fafc;
}

.notification-row strong,
.notification-row small,
.blocked-list strong,
.blocked-list small {
  display: block;
}

.action-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.action-list > button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

@media (max-width: 760px) {
  .combo-popover,
  .custom-combobox--compact .combo-popover {
    width: auto;
    max-width: none;
    max-height: min(82dvh, 720px);
  }

  .saved-search-panel > article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .saved-search-panel > article .icon-button {
    grid-column: 2;
  }

  .listing-card--table {
    grid-template-columns: 88px minmax(0, 1fr);
    height: 104px;
    min-height: 104px;
    max-height: 104px;
  }

  .listing-card--table .listing-card__media {
    height: 104px;
    min-height: 104px;
    max-height: 104px;
  }

  .listing-card--table .listing-card__body {
    height: 104px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(34px, auto) auto minmax(0, 1fr);
    align-content: center;
    gap: 3px;
    padding: 9px 10px;
  }
  .listing-card--table .listing-card__body > h3 {
    min-height: 0;
    max-height: 34px;
    margin: 0;
  }
  .listing-card--table .listing-price {
    min-height: 16px;
    line-height: 16px;
  }
  .listing-card--table .listing-card__meta {
    min-width: 0;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
  }
  .listing-card--table .listing-card__meta span {
    min-width: 0;
    display: flex;
    flex: 1 1 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .table-view-button {
    display: grid;
  }

  .seller-profile-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .seller-profile-hero > div {
    flex: 1 1 calc(100% - 80px);
  }

  .seller-profile-hero > button {
    flex: 1;
  }

  .choice-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-chip {
    overflow-wrap: anywhere;
    text-align: left;
  }

  .photo-preview__actions {
    position: static;
    justify-content: flex-start;
    background: var(--ink);
  }

  .preview-listing div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", sans-serif);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin-bottom: 12px;
  font-size: 42px;
}

h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

p {
  color: var(--muted);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.shell-wide,
.shell-narrow {
  width: calc(100% - 48px);
  margin-inline: auto;
}

.shell-wide {
  max-width: 1280px;
}

.shell-narrow {
  max-width: 920px;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button,
.icon-button {
  border: 0;
  border-radius: var(--radius);
  background: none;
  text-decoration: none;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 750;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  transition: background var(--motion-press) ease, border-color var(--motion-press) ease, box-shadow var(--motion-press) ease, transform var(--motion-press) var(--motion-enter);
}

.primary-button:hover {
  border-color: var(--primary-hover);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}

.primary-button:active {
  border-color: var(--primary-pressed);
  background: var(--primary-pressed);
  box-shadow: none;
  transform: translateY(1px);
}

.primary-button:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring), 0 6px 16px rgba(17, 24, 39, 0.16);
}

.primary-button:disabled {
  border-color: #6b7280;
  background: #6b7280;
  color: white;
  box-shadow: none;
  transform: none;
}

.secondary-button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background var(--motion-press) ease, border-color var(--motion-press) ease, color var(--motion-press) ease, transform var(--motion-press) var(--motion-enter);
}

.secondary-button:hover {
  border-color: var(--primary-hover);
  background: var(--selected-bg);
  color: var(--primary-hover);
}

.secondary-button:active {
  background: #e0e7ff;
  transform: translateY(1px);
}

.secondary-button:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.secondary-button:disabled,
.icon-button:disabled {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  box-shadow: none;
  transform: none;
}

.danger-button {
  border: 1px solid #f4b6b0;
  background: var(--red-soft);
  color: var(--red);
}

.text-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 750;
}

.text-button:hover {
  color: var(--primary-hover);
}

.text-button:active {
  color: var(--primary-pressed);
}

.text-button:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.text-button:disabled {
  background: transparent;
  color: #6b7280;
}

.text-button .icon {
  width: 16px;
  height: 16px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.icon-button:hover,
.icon-button.is-active {
  border-color: var(--primary-hover);
  background: var(--selected-bg);
  color: var(--primary-hover);
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--selected-ink);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(215, 221, 229, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(16px);
}

.site-header__desktop {
  height: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.site-header__mobile,
.mobile-menu {
  display: none;
}

.brand {
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
}

.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:active,
.footer-brand,
.footer-brand:link,
.footer-brand:visited,
.footer-brand:hover,
.footer-brand:active {
  text-decoration: none;
}

.brand:focus-visible,
.footer-brand:focus-visible {
  border-radius: 14px;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-lockup img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand-lockup em {
  color: var(--brand-orange);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav__link .icon {
  display: none;
}

.main-nav__link.is-active {
  border-bottom-color: var(--selected-ink);
  color: var(--ink);
}

.header-search,
.page-search,
.admin-search,
.help-search {
  height: 44px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.header-search {
  max-width: 460px;
  justify-self: stretch;
  padding-left: 12px;
}

.header-search input,
.page-search input,
.admin-search input,
.help-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
}

.header-search > .icon,
.page-search > .icon,
.admin-search > .icon,
.help-search > .icon {
  color: var(--muted);
}

.header-search .icon-button,
.admin-search .icon-button {
  height: 44px;
  width: 44px;
  flex-basis: 44px;
  margin-right: 0;
  border: 0;
  background: var(--ink);
  color: white;
}

.header-actions,
.mobile-header-actions,
.results-actions,
.conversation__actions,
.publish-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-button {
  position: relative;
}

.badge-dot,
.badge-count {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--selected-ink);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.badge-dot {
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
}

.badge-count {
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
}

.home-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #303b3b;
}

.home-hero__photo,
.home-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-hero__photo {
  background: url("../images/marketplace-home.jpg") center 54% / cover no-repeat;
  transform: scale(1.01);
}

.home-hero__overlay {
  background: rgba(8, 18, 38, 0.56);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding-block: 56px;
  color: white;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: white;
  font-size: 54px;
}

.home-hero__content > p {
  max-width: 660px;
  margin-bottom: 28px;
  color: #edf2f7;
  font-size: 18px;
}

.hero-search {
  max-width: 1140px;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(175px, 0.8fr) minmax(165px, 0.8fr) auto;
  gap: 8px;
}

.hero-search label {
  height: 54px;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.hero-search .custom-combobox {
  min-width: 0;
}

.hero-search .combo-trigger {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.97);
}

.hero-search input,
.hero-search select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  appearance: none;
}

.hero-search__submit {
  min-height: 54px;
  padding-inline: 22px;
}

.trust-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-band__grid {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.trust-band__grid > span {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.trust-band__grid > span:last-child {
  border-right: 0;
}

.trust-band .icon {
  color: var(--green);
}

.content-section {
  padding-block: 64px;
}

.content-section--tint,
.related-band {
  padding-block: 64px;
  border-block: 1px solid var(--line);
  background: var(--surface-alt);
}

.section-heading,
.account-section-heading,
.admin-table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading h3,
.account-section-heading h1,
.account-section-heading h2,
.admin-table-heading h2 {
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-tile {
  min-width: 0;
  min-height: 148px;
  display: grid;
  justify-items: start;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.category-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.category-tile > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.category-tile strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.category-tile small {
  color: var(--muted);
}

.listing-grid {
  display: grid;
  gap: 16px;
}

.listing-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-grid--results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-grid--account {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
  transition: border-color var(--motion-fast) var(--motion-enter), box-shadow var(--motion-standard) var(--motion-enter), transform var(--motion-fast) var(--motion-enter);
}

.listing-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}

.listing-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-standard) var(--motion-enter);
}

.listing-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  text-align: center;
}

.listing-image-placeholder .icon {
  width: 30px;
  height: 30px;
}

.listing-image-placeholder small {
  font-size: 12px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .listing-card:hover .listing-card__media img {
    transform: scale(1.025);
  }
}

.status-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-chip--promoted {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow-soft);
  color: #7a4b00;
}

.status-chip--success {
  background: var(--green-soft);
  color: var(--green);
}

.status-chip--pending {
  background: var(--yellow-soft);
  color: #7a4b00;
}

.status-chip--risk {
  background: var(--red-soft);
  color: var(--red);
}

.status-chip--neutral {
  background: var(--surface-alt);
  color: var(--muted);
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 2px 4px rgba(17, 24, 39, 0.34));
  transition: color var(--motion-fast) var(--motion-enter), transform var(--motion-press) var(--motion-enter);
}

.favorite-button:hover {
  background: transparent;
  color: var(--ink);
  transform: scale(1.06);
}

.favorite-button:active {
  background: transparent;
  transform: scale(0.94);
}

.favorite-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.favorite-button.is-active,
.favorite-wide.is-active,
.mobile-detail-cta .icon-button.is-active {
  color: var(--red);
}

.favorite-button.is-active .icon,
.favorite-wide.is-active .icon,
.mobile-detail-cta .icon-button.is-active .icon {
  fill: currentColor;
}

.listing-card__body {
  padding: 15px;
}

.listing-card__category {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
}

.listing-card h3 {
  min-height: 42px;
  margin: 6px 0 8px;
}

.listing-card h3 button,
.listing-card h3 a {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.listing-card h3 button:hover,
.listing-card h3 a:hover {
  color: var(--selected-ink);
}

.listing-price {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
}

.listing-card__meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.listing-card__meta span,
.listing-card__meta a,
.detail-title-row p,
.contact-meta span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-card__meta a,
.detail-title-row p a,
.spec-grid a,
.vinde-ssr-location a {
  color: inherit;
  text-decoration: none;
}

.listing-card__category:hover,
.listing-card__meta a:hover,
.detail-title-row p a:hover,
.spec-grid a:hover,
.vinde-ssr-location a:hover {
  color: var(--selected-ink);
  text-decoration: underline;
}

.listing-card__meta .icon,
.detail-title-row p .icon,
.contact-meta .icon {
  width: 14px;
  height: 14px;
}

.home-publish-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-publish-band h2 {
  max-width: 680px;
}

.home-publish-band p {
  margin-bottom: 0;
}

.page-intro {
  padding-block: 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-intro--compact {
  padding-block: 28px;
}

.page-intro--detail {
  padding-block: 18px;
}

.page-intro p {
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumbs button,
.breadcrumbs a {
  max-width: 220px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: none;
  text-overflow: ellipsis;
}

.breadcrumbs strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

.listings-search-row {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  gap: 12px;
}

.page-search {
  height: 50px;
  padding-left: 14px;
  background: var(--surface);
}

.page-search .primary-button {
  height: 42px;
  margin-right: 3px;
}

.mobile-filter-trigger {
  display: none;
}

.filter-count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 10px;
}

.listings-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-block: 36px 72px;
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  max-height: calc(100dvh - var(--header-height) - 40px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-heading {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  background: inherit;
}

.filter-sidebar__scroll {
  display: grid;
  min-height: 0;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.field-label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.field-label input,
.field-label textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-label textarea {
  resize: vertical;
}

.custom-combobox {
  position: relative;
  min-width: 0;
}

.combo-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.combo-trigger {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.combo-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-trigger > .icon:last-child {
  color: var(--muted);
  transition: transform 140ms ease;
}

.custom-combobox.is-open .combo-trigger > .icon:last-child {
  transform: rotate(180deg);
}

.combo-trigger:hover {
  border-color: var(--line-strong);
  background: #fbfcfd;
}

.combo-trigger:focus-visible {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.combo-backdrop {
  display: none;
}

.combo-popover {
  position: absolute;
  z-index: 440;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-width: min(100%, calc(100vw - 32px));
  max-height: 340px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(17, 24, 39, 0.18);
}

.combo-popover--headerless {
  grid-template-rows: minmax(0, 1fr);
}

.combo-popover--headerless.combo-popover--searchable {
  grid-template-rows: auto minmax(0, 1fr);
}

.combo-popover[hidden] {
  display: none;
}

.combo-popover header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px 7px 14px;
  border-bottom: 1px solid var(--line);
}

.combo-search {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
}

.combo-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.combo-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.combo-search > input,
.hero-search .combo-search > input,
.filter-sidebar .combo-search > input,
.publish-form .combo-search > input {
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.custom-combobox--compact .combo-popover {
  right: 0;
  left: auto;
  width: min(260px, calc(100vw - 32px));
  max-width: min(260px, calc(100vw - 32px));
}

.combo-option {
  min-height: 44px;
  padding-block: 6px;
}

.filter-sidebar .combo-popover,
.publish-form .combo-popover {
  max-width: 100%;
}

.combo-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
}

.combo-option {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.combo-option > span:first-child,
.combo-option strong,
.combo-option small {
  min-width: 0;
  display: block;
}

.combo-option strong {
  overflow-wrap: anywhere;
}

.combo-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.combo-option:hover,
.combo-option:focus-visible {
  outline: 0;
  background: var(--surface-alt);
}

.combo-option[aria-selected="true"] {
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.combo-option__indicator {
  width: 8px;
  height: 8px;
  justify-self: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.combo-empty {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.current-location-picker,
.combo-location-group {
  margin: 4px 4px 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.listing-card__media::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.12));
  content: '';
  pointer-events: none;
}

.combo-section-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.combo-section-title .icon {
  width: 17px;
  height: 17px;
  color: var(--selected-ink);
}

.combo-section-title--manual {
  margin: 3px 4px 0;
  padding: 8px 8px 5px;
  border-top: 1px solid var(--line);
}

.current-location-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.current-location-status {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.current-location-status > span,
.current-location-status > span > span {
  min-width: 0;
}

.current-location-status strong,
.current-location-status small {
  display: block;
  overflow-wrap: anywhere;
}

.current-location-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.current-location-status.is-detected > .icon {
  flex: 0 0 auto;
  color: var(--green);
}

.current-location-status.is-error {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.current-location-status.is-error > span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.current-location-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-top-color: var(--selected-ink);
  border-radius: 999px;
  animation: current-location-spin 720ms linear infinite;
}

@keyframes current-location-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .current-location-spinner {
    border-color: var(--selected-ink);
    animation: none;
  }
}

.range-field strong {
  color: var(--selected-ink);
}

.range-field input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--selected-ink);
}

.filter-checks {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border: 0;
  border-block: 1px solid var(--line);
}

.filter-checks legend {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 750;
}

.filter-checks label,
.check-row {
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
}

.filter-checks input,
.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  accent-color: var(--selected-ink);
}

.filter-apply {
  width: 100%;
}

.filter-apply {
  display: inline-flex;
}

.filter-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.filter-section h3,
.filter-section__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.filter-section__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.filter-section__title small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.filter-section--dynamic {
  padding: 15px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: #f8fafc;
}

.filter-group {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.filter-group > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.filter-group > summary::-webkit-details-marker {
  display: none;
}

.filter-group > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.filter-group[open] > summary::after {
  content: "−";
}

.filter-group > summary:focus-visible {
  outline: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.filter-group > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.filter-group__body {
  display: grid;
  gap: 10px;
  padding: 2px 0 14px;
}

.filter-group.filter-section--dynamic {
  padding: 0 12px;
}

.filter-group.filter-section--dynamic .filter-group__body {
  padding-bottom: 12px;
}

.filter-input-row,
.filter-submit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-submit-row {
  position: sticky;
  z-index: 4;
  bottom: 0;
  grid-template-columns: minmax(70px, 0.65fr) minmax(0, 1.35fr);
  background: inherit;
}

.filter-submit-row .primary-button,
.filter-submit-row .secondary-button {
  min-width: 0;
  padding-inline: 9px;
}

.filter-validation-message {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.filter-input-row input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-soft);
}

.results-column {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.results-toolbar h1 {
  margin: 0;
  font-size: 30px;
}

.result-count-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: .01em;
}

.custom-combobox--compact {
  min-width: 190px;
}

.custom-combobox--compact .combo-trigger {
  min-height: 42px;
}

.custom-combobox--compact .combo-popover {
  right: 0;
  left: auto;
}

.view-toggle {
  position: relative;
  width: 96px;
  min-width: 96px;
  height: 48px;
  display: grid;
  grid-template-columns: repeat(2, 44px);
  align-items: center;
  gap: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 15px;
  background: var(--surface-alt);
  isolation: isolate;
}

.view-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .12);
  transform: translateX(0);
  transition: transform 140ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out;
}

.view-toggle[data-active-view="list"]::before {
  transform: translateX(44px);
}

.view-toggle > button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: color 140ms ease-out, transform 140ms ease-out;
}

.view-toggle > button.is-active {
  color: var(--ink);
}

.view-toggle > button:active {
  transform: scale(.96);
}

.view-toggle > button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.view-mode-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.active-filters > button:not(.text-button) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 0;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}

.active-filters .icon {
  width: 16px;
  height: 16px;
}

.active-filters .text-button {
  min-height: 40px;
  padding-inline: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

@media (prefers-reduced-motion: reduce) {
  .view-toggle::before,
  .view-toggle > button { transition-duration: 1ms; }
}

.listing-grid--results.is-list {
  grid-template-columns: 1fr;
}

.listing-card--list {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.listing-card--list .listing-card__media {
  min-height: 210px;
  aspect-ratio: auto;
}

.listing-card--list .listing-card__body {
  display: grid;
  align-content: start;
}

.listing-card--list h3 {
  min-height: 0;
  margin-top: 8px;
}

.listing-card--list .listing-card__meta {
  display: flex;
  gap: 18px;
}

.listing-card--list .listing-card__body > p {
  max-width: 680px;
  margin: 12px 0;
}

.listing-card__list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.listing-card__list-actions > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 32px;
}

.pagination button,
.pagination a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.pagination .is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.inline-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink);
}

.inline-notice > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.inline-notice > span {
  min-width: 0;
  flex: 1;
}

.inline-notice--error {
  border-color: #f2b8b5;
  background: #fff8f7;
}

.empty-state {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface-alt);
}

.empty-state h2,
.empty-state h1,
.empty-state p {
  max-width: 480px;
}

.listing-card__facts {
  min-width: 0;
  display: flex;
  gap: 6px;
  margin: -5px 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.listing-card__facts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.listing-card__facts span + span::before { content: '·'; margin-right: 6px; color: var(--line-strong); }

.detail-terminal-shell {
  padding-block: clamp(28px, 7vw, 72px);
}

.detail-terminal-state {
  min-height: min(390px, calc(100svh - 220px));
  padding: clamp(24px, 6vw, 40px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.detail-terminal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.detail-terminal-actions > * {
  min-height: 44px;
}

@media (max-width: 359px) {
  .detail-terminal-actions {
    width: 100%;
    align-items: stretch;
  }

  .detail-terminal-actions > * {
    width: 100%;
  }
}

.sheet-backdrop,
.filter-sheet {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 36px;
  padding-block: 28px 72px;
}

.detail-main {
  min-width: 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.detail-gallery__main {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.detail-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery__main > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  font-size: 11px;
}

.detail-gallery--empty {
  grid-template-columns: minmax(0, 1fr);
}

.detail-gallery__main > .detail-gallery__image-placeholder {
  position: absolute;
  inset: 0;
  padding: 0;
  border-radius: 0;
  background: var(--surface-alt);
  color: var(--muted);
}

.detail-gallery__thumbs {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  min-width: 0;
}

.detail-gallery__thumbs button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.detail-gallery__thumbs button.is-active {
  border-color: var(--selected-ink);
}

.detail-gallery__thumbs img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.detail-title-row h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.detail-title-row p {
  margin: 0;
}

.detail-title-row > strong {
  flex: 0 0 auto;
  font-size: 30px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 0 4px;
}

.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #163a70;
  font-size: 12px;
  font-weight: 750;
}

.detail-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section p:last-child {
  margin-bottom: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-grid > div {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.spec-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-grid dd {
  margin: 3px 0 0;
  font-weight: 750;
}

.safety-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.safety-note > .icon {
  width: 32px;
  height: 32px;
  color: var(--green);
}

.safety-note h2 {
  margin-bottom: 5px;
  font-size: 18px;
}

.safety-note p {
  margin: 0;
}

.contact-column {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-price {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-price span,
.seller-summary span,
.contact-meta {
  color: var(--muted);
  font-size: 12px;
}

.contact-price strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
}

.seller-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-block: 5px;
}

.seller-summary > div {
  min-width: 0;
}

.seller-summary strong,
.seller-summary span {
  display: block;
}

.seller-summary strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}

.seller-summary small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seller-summary span .icon {
  width: 13px;
  height: 13px;
  display: inline;
  color: var(--green);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #163a70;
  font-weight: 850;
}

a.seller-summary,
a.seller-summary:visited,
a.seller-summary:hover,
a.seller-summary:focus-visible {
  text-decoration: none;
}

.avatar--seller {
  overflow: hidden;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.avatar--seller .avatar__initials {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #163a70;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(-0.5px);
}

.avatar--large {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  font-size: 24px;
}

.avatar--large .avatar__initials {
  font-size: 25px;
}

.contact-button,
.favorite-wide {
  width: 100%;
}

.favorite-wide {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-alt);
  font-weight: 750;
}

.contact-meta {
  display: grid;
  gap: 7px;
  padding: 8px 0;
}

.report-link {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 12px;
}

.detail-contact__safety {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.detail-contact__safety .report-link {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding-inline: 4px;
  text-align: left;
}

.mobile-detail-cta {
  display: none;
}

.publish-layout {
  padding-block: 34px 80px;
}

.publish-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.publish-progress li {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
}

.publish-progress li span,
.form-band__heading > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 12px;
}

.publish-progress li.is-active {
  color: var(--ink);
}

.publish-progress li.is-active span,
.form-band__heading > span {
  background: var(--ink);
  color: white;
}

.publish-form {
  display: grid;
  gap: 18px;
}

.form-band {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-band__heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.form-band__heading h2,
.form-band__heading p {
  margin-bottom: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.photo-preview,
.photo-add {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview > span {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  font-size: 10px;
}

.photo-preview .icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border: 0;
}

/* Runtime upload previews place reorder/cover/delete in a shared action row.
   Keep those controls in normal flex flow instead of stacking every icon at
   the generic preview corner. */
.photo-preview .photo-preview__actions .icon-button {
  position: static;
  inset: auto;
}

.photo-preview .icon-button .icon {
  width: 16px;
  height: 16px;
}

.photo-add {
  min-height: 110px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-alt);
}

.photo-add .icon {
  color: var(--selected-ink);
}

.photo-add span {
  color: var(--muted);
  font-size: 11px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-label--full {
  grid-column: 1 / -1;
}

.smart-category {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #b9d1f8;
  border-radius: var(--radius);
  background: var(--blue-soft);
  text-align: left;
}

.smart-category > .icon:first-child {
  color: var(--blue);
}

.smart-category strong,
.smart-category small {
  display: block;
}

.smart-category small {
  color: var(--muted);
}

.publish-review {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #b3ddca;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.publish-review > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.publish-review > div > .icon {
  color: var(--green);
}

.publish-review strong,
.publish-review small {
  display: block;
}

.publish-review small {
  color: var(--muted);
}

.publish-actions {
  justify-content: flex-end;
}

.publish-actions .primary-button[data-publish-submit-state]:disabled {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  cursor: wait;
  opacity: 1;
}

.publish-actions .primary-button[data-publish-submit-state="success"]:disabled {
  border-color: var(--green);
  background: var(--green);
  cursor: default;
}

.publish-submit-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #bed2f4;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--ink);
}

.publish-submit-status[hidden] {
  display: none;
}

.publish-submit-status > span:first-child {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  color: var(--blue);
}

.publish-submit-status .icon {
  width: 20px;
  height: 20px;
}

.publish-submit-status strong,
.publish-submit-status small {
  display: block;
}

.publish-submit-status small {
  margin-top: 3px;
  color: var(--muted);
}

.publish-submit-status--success {
  border-color: #b3ddca;
  background: var(--green-soft);
}

.publish-submit-status--success > span:first-child {
  color: var(--green);
}

.publish-submit-status--error {
  border-color: #f4b6b0;
  background: var(--red-soft);
}

.publish-submit-status--error > span:first-child {
  color: var(--red);
}

.favorite-button.is-active {
  animation: favorite-confirm var(--motion-standard) var(--motion-enter);
}

@keyframes favorite-confirm {
  0% { transform: scale(0.88); }
  65% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.publish-form[data-publish-operation-locked="1"] .publish-section,
.publish-form[data-publish-operation-locked="1"] .publish-review {
  opacity: 0.72;
}

.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.72fr);
  background: var(--surface);
}

.auth-photo {
  min-height: 680px;
  background: url("../images/marketplace-home.jpg") center / cover no-repeat;
}

.auth-panel {
  width: 100%;
  max-width: 560px;
  align-self: center;
  position: relative;
  padding: 48px 64px;
}

.auth-panel__dismiss {
  position: absolute;
  top: 24px;
  right: 24px;
  min-width: 48px;
  min-height: 48px;
}

.auth-gate-shell {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) 18px;
  background: var(--canvas);
}

.auth-gate-card {
  width: min(100%, 480px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(17, 24, 39, .12);
  text-align: center;
}

.auth-gate-card h1,
.auth-gate-card p { margin: 0; }
.auth-gate-card p { max-width: 38ch; color: var(--muted); }
.auth-gate-actions { width: 100%; display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.auth-gate-actions > * { min-width: 148px; }

.auth-panel .brand {
  margin-bottom: 42px;
}

.auth-tabs,
.message-tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.auth-tabs {
  margin: 28px 0 22px;
}

.auth-tabs button,
.message-tabs button,
.segmented button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.auth-tabs button.is-active,
.message-tabs button.is-active,
.segmented button.is-active {
  border-bottom-color: var(--selected-ink);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form > .primary-button {
  width: 100%;
}

.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-safety {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.auth-safety .icon {
  color: var(--green);
}

.auth-safety strong,
.auth-safety small {
  display: block;
}

.auth-safety small {
  color: var(--muted);
}

.messages-shell {
  height: 680px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  margin-block: 28px 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.thread-list {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.thread-list__tools {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.thread-list__tools label {
  min-width: 0;
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.thread-list__tools input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
}

.message-tabs {
  position: relative;
  padding-inline: 14px;
}

.message-tabs__indicator {
  position: absolute;
  z-index: 0;
  bottom: -1px;
  left: 14px;
  width: calc((100% - 28px) / 3);
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--selected-ink);
  transform: translateX(calc(var(--message-tab-index, 0) * 100%));
  transition: transform var(--motion-standard) var(--motion-move);
  pointer-events: none;
}

.message-tabs button {
  position: relative;
  z-index: 1;
}

.message-tabs button.is-active {
  border-bottom-color: transparent;
}

.message-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--selected-bg);
  color: var(--selected-ink);
  font-size: 10px;
}

.thread-row {
  position: relative;
  width: 100%;
  min-height: 102px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.thread-row:hover,
.thread-row.is-active {
  background: #f5f8fc;
}

.thread-row.is-active::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3px;
  background: var(--selected-ink);
}

.thread-row > span:nth-child(2) {
  min-width: 0;
}

.thread-row strong,
.thread-row small,
.thread-row p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-row small,
.thread-row p,
.thread-row time {
  color: var(--muted);
  font-size: 11px;
}

.thread-row p {
  margin: 6px 0 0;
}

.thread-row b {
  position: absolute;
  right: 14px;
  bottom: 13px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--selected-ink);
  color: white;
  font-size: 10px;
}

.thread-list__empty-hint {
  padding: 20px 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.conversation {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.conversation__header {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.conversation__header strong,
.conversation__header small {
  display: block;
}

.conversation__header small {
  color: var(--muted);
  font-size: 11px;
}

.conversation-back {
  display: none;
}

.listing-context {
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.listing-context__media {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9edf2;
  color: var(--muted);
}

.listing-context__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.listing-context__media > span {
  display: none;
}

.listing-context__media.is-fallback > span,
.listing-context__media.is-broken > span {
  display: grid;
  place-items: center;
}

.listing-context small,
.listing-context strong {
  display: block;
}

.listing-context small {
  color: var(--muted);
  font-size: 10px;
}

.message-stream {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 24px;
  background: #f6f8fb;
}

.message-bubble {
  max-width: min(72%, 560px);
  align-self: flex-start;
  padding: 11px 13px 8px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  background: var(--surface);
}

.message-bubble.is-mine {
  align-self: flex-end;
  border-color: #c9d9ef;
  border-radius: 8px 8px 2px 8px;
  background: var(--blue-soft);
}

.message-bubble p {
  margin: 0 0 5px;
  color: var(--ink);
}

.message-bubble span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.message-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 112px));
  gap: 4px;
  margin-bottom: 7px;
}

.message-attachment {
  position: relative;
  min-width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 7px;
  background: #e9edf2;
  color: var(--muted);
}

.message-attachment img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.message-attachment [data-message-attachment-fallback] {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.message-attachment.is-broken [data-message-attachment-fallback] {
  display: grid;
}

.composer {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.composer input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.composer__send {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.account-head {
  padding-block: 34px;
  background: var(--ink);
  color: white;
}

.account-head__inner,
.profile-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-identity {
  justify-content: flex-start;
}

.profile-identity h1,
.profile-identity p {
  margin-bottom: 3px;
  color: white;
}

.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-block: 34px 80px;
}

.account-nav {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.account-nav > :is(button, a) {
  appearance: none;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  text-align: left;
}

.account-nav > :is(button, a) .icon:first-child {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.account-nav > :is(button, a):last-child {
  border-bottom: 0;
}

.account-nav > :is(button, a):hover,
.account-nav > :is(button, a).is-active {
  background: var(--selected-bg);
}

.account-nav > :is(button, a).is-active {
  box-shadow: inset 3px 0 var(--selected-ink);
}

.account-nav > :is(button, a) .icon:last-child {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.account-content {
  min-width: 0;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.account-metrics button {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.account-metrics button:last-child {
  border-right: 0;
}

.account-metrics button:hover {
  background: var(--surface-alt);
}

.account-metrics button > span {
  color: var(--selected-ink);
}

.account-metrics strong {
  font-size: 28px;
}

.account-count-skeleton {
  width: 34px;
  height: 22px;
  display: grid;
  place-items: center;
}

.account-count-skeleton > span {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #e4e7ec;
}

.account-count-error {
  display: grid;
  place-items: center;
  color: var(--danger, #b42318);
}

.account-count-error svg {
  width: 22px;
  height: 22px;
}

.account-counts-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -12px 0 24px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger, #b42318) 28%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger, #b42318) 6%, var(--surface));
}

.account-counts-error > span {
  display: grid;
  flex: 0 0 auto;
  color: var(--danger, #b42318);
}

.account-counts-error p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink);
}

.account-metrics small {
  color: var(--muted);
}

.account-activity,
.account-help-row,
.settings-form,
.owner-listings {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-activity .section-heading {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.activity-row,
.owner-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child,
.owner-row:last-child {
  border-bottom: 0;
}

.activity-row img,
.owner-row img {
  width: 68px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.activity-row strong,
.activity-row small,
.owner-row strong,
.owner-row small {
  display: block;
}

.activity-row small,
.owner-row p {
  color: var(--muted);
  font-size: 12px;
}

.owner-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  min-height: 112px;
}

.owner-row img {
  width: 92px;
  height: 76px;
}

.owner-row h3,
.owner-row p {
  margin: 5px 0 0;
}

.owner-row__actions {
  display: flex;
  gap: 6px;
}

.account-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 20px;
}

.account-help-row > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-help-row strong,
.account-help-row small {
  display: block;
}

.account-help-row small {
  color: var(--muted);
}

.settings-form {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.settings-form > section,
.settings-form > .primary-button {
  margin: 0 22px 22px;
}

.settings-form > section {
  padding-top: 22px;
  border-bottom: 1px solid var(--line);
}

.toggle-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  color: var(--muted);
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--selected-ink);
}

.admin-header {
  padding-block: 30px;
  background: var(--ink);
  color: white;
}

.admin-header .breadcrumbs,
.admin-header .breadcrumbs button,
.admin-header .breadcrumbs strong,
.admin-header p {
  color: #cbd5e1;
}

.admin-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-title h1 {
  margin-bottom: 8px;
}

.admin-title p {
  margin: 0;
}

.admin-page {
  padding-block: 28px 80px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.admin-metrics > div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.admin-metrics > div:last-child {
  border-right: 0;
}

.admin-metrics small {
  color: var(--muted);
}

.admin-metrics strong {
  font-size: 28px;
}

.trend {
  color: var(--muted);
  font-size: 11px;
}

.trend--up {
  color: var(--green);
}

.trend--risk {
  color: var(--red);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 260px minmax(240px, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.segmented {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented button {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  background: var(--ink);
  color: white;
}

.admin-search {
  padding-left: 12px;
  background: var(--surface);
}

.admin-table-section,
.parity-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-table-heading {
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-table-heading p {
  margin: 3px 0 0;
  font-size: 12px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  font-size: 13px;
}

td strong,
td small {
  display: block;
}

td small {
  color: var(--muted);
}

tbody tr:hover {
  background: #fafbfc;
}

.admin-table-section table {
  min-width: 820px;
}

.empty-inline {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 36px 80px;
}

.state-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.state-card__preview {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: -18px -18px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.state-card h2 {
  font-size: 19px;
}

.state-card p {
  min-height: 68px;
}

.state-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}

.state-icon--error {
  background: var(--red-soft);
  color: var(--red);
}

.state-icon--lock {
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.skeleton-preview span {
  width: 74%;
  height: 14px;
  border-radius: 3px;
  background: #d9dee6;
  animation: pulse 1.4s ease-in-out infinite;
}

.skeleton-preview span:nth-child(2) {
  width: 58%;
}

.skeleton-preview span:nth-child(3) {
  width: 68%;
}

.skeleton-preview.is-complete {
  color: var(--green);
}

.vinde-skeleton {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.vinde-skeleton > div {
  min-height: 320px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 28px;
  gap: 12px;
  overflow: hidden;
}

.vinde-skeleton [data-skeleton-block] {
  min-width: 0;
  border-radius: 10px;
  background: #e4e7ec;
}

.vinde-skeleton [data-skeleton-block]:nth-child(even) { background: #f2f4f7; }
.vinde-skeleton [data-skeleton-block]:first-child { background: #ffe7d1; }
.vinde-skeleton > p { margin: 14px 0 0; color: var(--muted); font-weight: 700; }

.vinde-skeleton--home [data-skeleton-block]:nth-child(1),
.vinde-skeleton--listings [data-skeleton-block]:nth-child(1),
.vinde-skeleton--publish-edit [data-skeleton-block]:nth-child(2),
.vinde-skeleton--account [data-skeleton-block]:nth-child(n+7) { grid-column: 1 / -1; }
.vinde-skeleton--home [data-skeleton-block]:nth-child(2) { grid-column: 1 / 5; }
.vinde-skeleton--home [data-skeleton-block]:nth-child(3) { grid-column: 5 / 9; }
.vinde-skeleton--home [data-skeleton-block]:nth-child(4) { grid-column: 9 / -1; }
.vinde-skeleton--home [data-skeleton-block]:nth-child(n+5) { grid-column: span 6; grid-row: span 5; }

.vinde-skeleton--listings [data-skeleton-block]:nth-child(n+2),
.vinde-skeleton--my-listings [data-skeleton-block]:nth-child(n+4) { grid-column: span 4; grid-row: span 3; }
.vinde-skeleton--listings [data-skeleton-block]:nth-child(2),
.vinde-skeleton--my-listings [data-skeleton-block]:nth-child(4) { grid-row: span 6; }
.vinde-skeleton--my-listings [data-skeleton-block]:nth-child(-n+3) { grid-column: span 4; }

.vinde-skeleton--detail > div { grid-auto-rows: 36px; }
.vinde-skeleton--detail [data-skeleton-block]:first-child { grid-column: 1 / -1; grid-row: span 6; }
.vinde-skeleton--detail [data-skeleton-block]:nth-child(n+2):nth-child(-n+5) { grid-column: 1 / 10; }
.vinde-skeleton--detail [data-skeleton-block]:nth-child(n+6) { grid-column: span 6; grid-row: span 2; }

.vinde-skeleton--publish-edit [data-skeleton-block] { grid-column: 1 / -1; grid-row: span 2; }
.vinde-skeleton--publish-edit [data-skeleton-block]:nth-child(4),
.vinde-skeleton--publish-edit [data-skeleton-block]:nth-child(5) { grid-column: span 6; }
.vinde-skeleton--publish-edit [data-skeleton-block]:nth-child(6) { grid-row: span 4; }

.vinde-skeleton--messages [data-skeleton-block]:nth-child(odd),
.vinde-skeleton--notifications [data-skeleton-block]:nth-child(odd) { grid-column: 1 / 3; grid-row: span 2; border-radius: 999px; }
.vinde-skeleton--messages [data-skeleton-block]:nth-child(even),
.vinde-skeleton--notifications [data-skeleton-block]:nth-child(even) { grid-column: 3 / -1; grid-row: span 2; }

.vinde-skeleton--account [data-skeleton-block]:first-child { grid-column: 1 / 4; grid-row: span 4; border-radius: 999px; }
.vinde-skeleton--account [data-skeleton-block]:nth-child(2),
.vinde-skeleton--account [data-skeleton-block]:nth-child(3) { grid-column: 4 / 10; }
.vinde-skeleton--account [data-skeleton-block]:nth-child(n+4):nth-child(-n+6) { grid-column: span 4; grid-row: span 3; }

.vinde-skeleton--stats [data-skeleton-block]:nth-child(-n+3) { grid-column: span 4; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(n+4) { grid-column: span 1; grid-row: span 6; align-self: end; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(4) { grid-column-start: 1; grid-row: 4 / span 4; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(5) { grid-row: 3 / span 5; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(6) { grid-row: 5 / span 3; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(7) { grid-row: 2 / span 6; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(8) { grid-row: 4 / span 4; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(9) { grid-row: 3 / span 5; }
.vinde-skeleton--stats [data-skeleton-block]:nth-child(10) { grid-row: 6 / span 2; }

@media (max-width: 640px) {
  .vinde-skeleton { padding: 14px; border-radius: 12px; }
  .vinde-skeleton > div { min-height: 280px; gap: 9px; }
  .vinde-skeleton--home [data-skeleton-block]:nth-child(n+5),
  .vinde-skeleton--listings [data-skeleton-block]:nth-child(n+2),
  .vinde-skeleton--my-listings [data-skeleton-block]:nth-child(n+4) { grid-column: 1 / -1; }
}

.help-hero {
  padding-block: 64px;
  background: var(--ink);
  color: white;
}

.help-hero h1 {
  color: white;
}

.help-search {
  max-width: 680px;
  height: 54px;
  padding-left: 14px;
  background: white;
  color: var(--ink);
}

.help-search .primary-button {
  height: 46px;
  margin-right: 3px;
}

.help-layout,
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  padding-block: 44px 80px;
}

.help-nav,
.legal-layout aside {
  display: grid;
  align-content: start;
  gap: 2px;
}

.help-nav strong {
  padding: 10px 12px;
}

.help-nav button,
.legal-layout aside button,
.legal-layout aside a {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
}

.help-nav button:hover,
.help-nav button.is-active,
.legal-layout aside button:hover,
.legal-layout aside button.is-active,
.legal-layout aside a:hover,
.legal-layout aside a.is-active {
  background: var(--selected-bg);
}

.help-content,
.legal-layout article {
  max-width: 820px;
}

.help-steps {
  border-block: 1px solid var(--line);
}

.help-steps section {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.help-steps section:last-child {
  border-bottom: 0;
}

.help-steps section > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.help-steps h3,
.help-steps p {
  margin-bottom: 4px;
}

.support-row,
.parity-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-row strong,
.support-row small,
.parity-note strong,
.parity-note small {
  display: block;
}

.support-row small,
.parity-note small {
  color: var(--muted);
}

.legal-layout article h3 {
  margin-top: 30px;
}

.parity-section {
  margin-block: 36px 80px;
}

.parity-section table {
  min-width: 820px;
}

.parity-note {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--green-soft);
}

.parity-note > .icon {
  color: var(--green);
}

.not-found {
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.not-found > span {
  color: var(--selected-ink);
  font-size: 72px;
  font-weight: 900;
}

.install-banner {
  position: fixed;
  z-index: 180;
  right: 16px;
  bottom: 16px;
  width: min(520px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.install-banner > img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.install-banner strong,
.install-banner p {
  display: block;
}

.install-banner p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.install-banner .secondary-button {
  max-width: 190px;
  white-space: normal;
  line-height: 1.2;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.footer-main {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.footer-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-lockup--footer {
  gap: 8px;
  font-size: 17px;
}

.brand-lockup--footer img {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.footer-nav button,
.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-nav button:hover,
.footer-nav a:hover {
  color: var(--selected-ink);
}

.footer-bottom {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
}

body.has-canonical-modal {
  overflow: hidden;
  overscroll-behavior: none;
}

.modal {
  position: fixed;
  z-index: 310;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 32px), 500px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
}

.modal-icon--success {
  background: var(--green-soft);
  color: var(--green);
}

.modal .field-label {
  margin-top: 14px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.modal[data-modal-kind="exit-publish"],
.modal-backdrop[data-modal-kind="exit-publish"] {
  opacity: 1;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.modal[data-modal-kind="exit-publish"].is-closing {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 6px)) scale(.99);
  pointer-events: none;
}

.modal-backdrop[data-modal-kind="exit-publish"].is-closing {
  opacity: 0;
  pointer-events: none;
}

.modal-inline-error {
  margin-top: 13px;
  color: var(--red);
  font-weight: 700;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: vinde-button-spin 700ms linear infinite;
}

@keyframes vinde-button-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .modal[data-modal-kind="exit-publish"],
  .modal-backdrop[data-modal-kind="exit-publish"] { transition-duration: 1ms; }
  .button-spinner { animation-duration: 1.2s; }
}

.toast-region {
  position: fixed;
  z-index: 1400;
  right: auto;
  bottom: max(20px, var(--vinde-feedback-obstruction-offset, 0px), var(--vinde-feedback-keyboard-offset, 0px));
  left: 50%;
  display: block;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  width: 100%;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 11px 12px 11px 14px;
  border: 1px solid color-mix(in srgb, var(--vinde-feedback-accent, #73a7ff) 36%, transparent);
  border-radius: 18px;
  background: rgb(21 28 41 / 97%);
  color: #f8faff;
  box-shadow: 0 10px 28px rgb(0 0 0 / 30%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms var(--motion-enter), transform 220ms var(--motion-enter);
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast--success { --vinde-feedback-accent: #45d483; }
.toast--error {
  --vinde-feedback-accent: #ff716a;
}
.toast--warning { --vinde-feedback-accent: #ffbe45; }
.toast--info,
.toast--default { --vinde-feedback-accent: #73a7ff; }

.vinde-premium-feedback__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--vinde-feedback-accent) 58%, transparent);
  border-radius: 999px;
  color: var(--vinde-feedback-accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.vinde-premium-feedback__copy {
  min-width: 0;
  flex: 1 1 auto;
  color: #f8faff;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.vinde-premium-feedback__action {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--vinde-feedback-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.vinde-premium-feedback__dismiss {
  flex: 0 0 49px;
  width: 49px;
  height: 49px;
  min-width: 49px;
  min-height: 49px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vinde-premium-feedback__action:hover,
.vinde-premium-feedback__action:focus-visible,
.vinde-premium-feedback__dismiss:hover,
.vinde-premium-feedback__dismiss:focus-visible {
  background: color-mix(in srgb, var(--vinde-feedback-accent) 12%, transparent);
  outline: 2px solid color-mix(in srgb, var(--vinde-feedback-accent) 54%, transparent);
  outline-offset: -2px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 1; }
}

@media (max-width: 1120px) {
  .site-header__desktop {
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .header-actions .secondary-button {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .header-actions .secondary-button .icon {
    width: 19px;
    height: 19px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .listing-grid--results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listings-layout {
    grid-template-columns: 278px minmax(0, 1fr);
  }

  .listing-grid--account {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .shell-wide,
  .shell-narrow {
    width: calc(100% - 32px);
  }

  .site-header__desktop {
    grid-template-columns: 150px minmax(160px, 1fr) auto;
  }

  .brand {
    width: auto;
  }

  .brand-lockup--header {
    gap: 7px;
    font-size: 18px;
  }

  .brand-lockup--header img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .header-actions > .primary-button {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .hero-search {
    grid-template-columns: minmax(200px, 1fr) repeat(2, minmax(150px, 0.7fr));
  }

  .hero-search__submit {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .listing-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .filter-sidebar {
    padding: 16px;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-actions {
    width: 100%;
    justify-content: space-between;
  }

  .results-actions .custom-combobox--compact {
    min-width: 0;
    flex: 1;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 74px;
  }

  .detail-title-row {
    display: grid;
  }

.contact-column {
    padding: 18px;
  }

  .auth-panel {
    padding: 40px;
  }

  .messages-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .account-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .admin-toolbar {
    grid-template-columns: 220px minmax(200px, 1fr);
  }

  .admin-toolbar > .primary-button {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 23px;
  }

  .shell-wide,
  .shell-narrow {
    width: calc(100% - 28px);
  }

  .site-header__desktop {
    display: none;
  }

  .site-header__mobile {
    height: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .site-header__mobile > .icon-button,
  .mobile-header-actions .icon-button {
    border: 0;
  }

  .brand--mobile {
    width: auto;
    justify-self: center;
  }

  .brand-lockup--mobile {
    gap: 7px;
    font-size: 18px;
  }

  .brand-lockup--mobile img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .mobile-header-actions {
    gap: 2px;
  }

  .mobile-header-actions .icon-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .mobile-menu {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: block;
    padding: 8px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .mobile-menu .main-nav__link {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-alt);
  }

  .mobile-menu .main-nav__link .icon {
    display: block;
  }

  .mobile-menu .main-nav__link.is-active {
    background: var(--selected-bg);
  }

  .home-hero {
    min-height: 650px;
    align-items: flex-end;
  }

  .home-hero__photo {
    background-position: 58% 52%;
  }

  .home-hero__overlay {
    background: rgba(8, 18, 38, 0.61);
  }

  .home-hero__content {
    padding-block: 34px 28px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero__content > p {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .hero-search__query,
  .hero-search__submit {
    grid-column: 1 / -1;
  }

  .hero-search label,
  .hero-search .combo-trigger,
  .hero-search__submit {
    min-height: 48px;
    height: 48px;
  }

  .hero-search label {
    padding-inline: 10px;
  }

  body.has-combobox {
    overscroll-behavior: contain;
  }

  body.has-combobox .filter-sheet,
  body.has-combobox .modal {
    overflow: visible;
  }

  .combo-backdrop {
    background: rgba(17, 24, 39, 0.58);
    pointer-events: auto;
  }

  .combo-popover,
  .custom-combobox--compact .combo-popover {
    position: fixed;
    z-index: 440;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: min(82dvh, 720px);
    border-width: 1px 0 0;
    border-radius: 12px 12px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .combo-popover header {
    min-height: 56px;
    padding-inline: 16px 10px;
  }

  .combo-search {
    margin: 8px 14px;
  }

  .combo-options {
    padding: 6px 10px 12px;
  }

  .combo-option {
    min-height: 52px;
  }

  .trust-band__grid {
    min-height: 74px;
  }

  .trust-band__grid > span {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 6px;
    font-size: 10px;
    text-align: center;
  }

  .content-section,
  .content-section--tint,
  .related-band {
    padding-block: 38px;
  }

  .section-heading,
  .account-section-heading {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .section-heading .secondary-button,
  .account-section-heading .primary-button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-tile {
    min-height: 116px;
    padding: 14px;
  }

  .listing-grid--home,
  .listing-grid--results,
  .listing-grid--account {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .listing-card__body {
    padding: 11px;
  }

  .listing-card h3 {
    min-height: 38px;
    font-size: 14px;
  }

  .listing-price {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .listing-card__meta span:last-child {
    display: none;
  }

  .home-publish-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .page-intro,
  .page-intro--compact {
    padding-block: 26px;
  }

  .page-intro--detail {
    padding-block: 12px;
  }

  .breadcrumbs {
    margin-bottom: 12px;
  }

  .listings-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-search .primary-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .page-search .primary-button::before {
    content: "→";
    font-size: 20px;
  }

  .mobile-filter-trigger {
    display: inline-flex;
    padding-inline: 11px;
  }

  .listings-layout {
    display: block;
    padding-block: 24px 52px;
  }

  .filter-sidebar {
    display: none;
  }

  .filter-sheet .filter-sidebar__scroll {
    display: grid;
    gap: 14px;
    overflow: visible;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .results-toolbar h1 {
    font-size: 25px;
  }

  .results-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    min-width: 0;
    flex: 1;
  }

  .sort-select span {
    display: none;
  }

  .sort-select select {
    width: 100%;
  }

  .listing-card--list {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .listing-card--list .listing-card__media {
    min-height: 150px;
  }

  .listing-card--list .listing-card__body > p,
  .listing-card--list .listing-card__list-actions > span,
  .listing-card--list .listing-card__category {
    display: none;
  }

  .listing-card--list .listing-card__meta {
    display: grid;
    gap: 4px;
  }

  .listing-card--list .listing-card__list-actions {
    margin-top: 8px;
  }

  .listing-card--list .secondary-button {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .sheet-backdrop {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: block;
    background: rgba(17, 24, 39, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-fast) var(--motion-enter);
  }

  .sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-sheet {
    position: fixed;
    z-index: 220;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82vh, 720px);
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--surface);
    transform: translateY(102%);
    transition: transform var(--motion-standard) var(--motion-drawer);
  }

  .filter-sheet.is-open {
    transform: none;
  }

  .sheet-handle {
    width: 42px;
    height: 4px;
    margin: 8px auto 3px;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .filter-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }

  .filter-sheet header h2,
  .filter-sheet header .eyebrow {
    margin-bottom: 0;
  }

  .filter-sheet__body {
    max-height: calc(82vh - 76px);
    display: grid;
    gap: 16px;
    overflow-y: auto;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .filter-sheet .filter-apply {
    display: inline-flex;
  }

  .filter-sheet .filter-submit-row {
    position: sticky;
    z-index: 3;
    bottom: calc(-20px - env(safe-area-inset-bottom));
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 22px rgba(17, 24, 39, 0.08);
  }

  .detail-layout {
    display: block;
    width: 100%;
    padding: 0 0 80px;
  }

  .detail-main {
    width: 100%;
  }

  .detail-gallery {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .detail-gallery__main {
    min-width: 0;
    border-radius: 0;
    aspect-ratio: 4 / 3;
  }

  .detail-gallery__thumbs {
    position: relative;
    z-index: 2;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 68px;
    margin-top: -24px;
    padding-inline: 14px;
  }

  .detail-gallery__thumbs button {
    border-color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
  }

  .detail-title-row,
  .detail-tags,
  .detail-section {
    margin-inline: 14px;
  }

  .detail-title-row {
    display: grid;
    gap: 8px;
    padding-top: 22px;
  }

  .detail-title-row h1 {
    font-size: 27px;
  }

  .detail-title-row > strong {
    grid-row: 1;
    font-size: 25px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .safety-note {
    grid-template-columns: auto 1fr;
  }

  .safety-note .text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .contact-column {
    position: static;
    margin: 14px;
    box-shadow: none;
  }

  .contact-column .contact-button,
  .contact-column .favorite-wide {
    display: none;
  }

  .mobile-detail-cta {
    position: fixed;
    z-index: 150;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: 100vw;
    min-width: 0;
    min-height: 66px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-detail-cta > * {
    max-width: 100%;
    min-width: 0;
  }

  .mobile-detail-cta[data-owner-view="1"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-detail-cta[data-owner-view="1"] > [data-owner-action] {
    padding-inline: 8px;
  }

  .related-band .listing-grid--home > :nth-child(n+3) {
    display: none;
  }

  .publish-layout {
    padding-block: 22px 56px;
  }

  .publish-progress li {
    min-height: 48px;
    font-size: 11px;
  }

  .form-band {
    padding: 18px 14px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .field-label--full {
    grid-column: auto;
  }

  .publish-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }

  .publish-actions [data-action="submit-publish"] {
    grid-column: 1 / -1;
  }

  .auth-page {
    display: block;
    min-height: 0;
  }

  .auth-photo {
    height: 190px;
    min-height: 0;
    background-position: center 52%;
  }

  .auth-panel {
    max-width: none;
    padding: 28px 18px 54px;
  }

  .auth-panel__dismiss { top: 10px; right: 10px; }
  .auth-gate-actions { flex-direction: column-reverse; }
  .auth-gate-actions > * { width: 100%; }

  .auth-panel .brand {
    display: none;
  }

  .messages-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: calc(100vh - var(--header-height) - var(--canonical-mobile-nav-clearance));
    height: min(680px, calc(100dvh - var(--header-height) - var(--canonical-mobile-nav-clearance)));
    min-height: 0;
    max-height: 680px;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .messages-shell:not(.is-thread-route) {
    display: block;
  }

  .messages-shell:not(.is-thread-route) .thread-list {
    height: 100%;
    border-right: 0;
  }

  .messages-shell:not(.is-thread-route) .conversation {
    display: none;
  }

  .messages-shell.is-thread-route {
    display: block;
  }

  .messages-shell.is-thread-route .thread-list {
    display: none;
  }

  .messages-shell.is-thread-route .conversation {
    height: 100%;
  }

  .conversation-back {
    display: grid;
  }

  .conversation__header {
    padding-inline: 8px;
  }

  .conversation__actions .icon-button:first-child {
    display: none;
  }

  .listing-context {
    padding-inline: 10px;
  }

  .listing-context .text-button {
    font-size: 11px;
  }

  .message-stream {
    padding: 16px 12px;
  }

  .message-bubble {
    max-width: 86%;
  }

  .composer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .account-head {
    padding-block: 24px;
  }

  .account-head__inner {
    align-items: flex-start;
    min-width: 0;
  }

  .profile-identity {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 62px);
  }

  .profile-identity > div {
    min-width: 0;
    max-width: 100%;
  }

  .profile-identity h1 {
    font-size: 25px;
  }

  .profile-identity h1,
  .profile-identity p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .profile-identity .avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .account-head__inner > .secondary-button {
    min-width: 44px;
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .account-layout {
    display: block;
    width: calc(100% - 28px);
    min-width: 0;
    padding-block: 0 56px;
  }

  .account-nav {
    position: sticky;
    z-index: 20;
    top: var(--header-height);
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    scrollbar-width: none;
  }

  .account-nav > :is(button, a) {
    min-width: max-content;
    grid-template-columns: auto auto;
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: none;
  }

  .account-nav > :is(button, a) .icon:last-child {
    display: none;
  }

  .account-nav > :is(button, a).is-active {
    box-shadow: inset 0 -3px var(--selected-ink);
  }

  .account-content {
    width: calc(100% - 28px);
    margin: 24px auto 0;
  }

  .account-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .account-metrics button {
    min-height: 100px;
    padding: 8px;
  }

  .account-metrics strong {
    font-size: 22px;
  }

  .account-metrics small {
    font-size: 10px;
    text-align: center;
  }

  .account-help-row {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .owner-row img {
    width: 76px;
    height: 68px;
  }

  .owner-row p {
    display: none;
  }

  .owner-row__actions {
    display: grid;
  }

  .settings-form > section,
  .settings-form > .primary-button {
    margin-inline: 14px;
  }

  .admin-header {
    padding-block: 22px;
  }

  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-title h1 {
    font-size: 28px;
  }

  .admin-page {
    width: 100%;
    padding-block: 18px 56px;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
    border-inline: 0;
    border-radius: 0;
  }

  .admin-metrics > div {
    min-height: 92px;
    border-bottom: 1px solid var(--line);
  }

  .admin-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .admin-toolbar > .primary-button {
    width: 100%;
  }

  .admin-table-section {
    border-inline: 0;
    border-radius: 0;
  }

  .state-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 24px 56px;
  }

  .state-card p {
    min-height: 0;
  }

  .help-hero {
    padding-block: 42px;
  }

  .help-search .primary-button {
    width: 46px;
    padding: 0;
    font-size: 0;
  }

  .help-search .primary-button::before {
    content: "→";
    font-size: 20px;
  }

  .help-layout,
  .legal-layout {
    display: block;
    padding-block: 24px 56px;
  }

  .help-nav,
  .legal-layout aside {
    display: flex;
    overflow-x: auto;
    margin-bottom: 28px;
    scrollbar-width: none;
  }

  .help-nav strong {
    display: none;
  }

  .help-nav button,
  .legal-layout aside button,
  .legal-layout aside a {
    min-width: max-content;
  }

  .support-row,
  .parity-note {
    grid-template-columns: auto 1fr;
  }

  .support-row .secondary-button {
    grid-column: 1 / -1;
  }

  .parity-section {
    width: 100%;
    margin-block: 24px 56px;
    border-inline: 0;
    border-radius: 0;
  }

  .footer-main {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 18px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .modal {
    padding: 22px 18px;
  }

  .toast-region {
    right: auto;
    bottom: max(calc(12px + env(safe-area-inset-bottom)), var(--vinde-feedback-obstruction-offset, 0px), var(--vinde-feedback-keyboard-offset, 0px));
    left: 50%;
    width: min(560px, calc(100vw - 24px));
  }

  body.has-canonical-mobile-nav:not(.is-canonical-keyboard-open) .toast-region {
    bottom: max(calc(var(--canonical-mobile-nav-clearance, 92px) + 12px), var(--vinde-feedback-obstruction-offset, 0px), var(--vinde-feedback-keyboard-offset, 0px));
  }

  body.has-mobile-detail-cta:not(.has-canonical-mobile-nav):not(.is-canonical-keyboard-open) .toast-region {
    bottom: max(calc(78px + env(safe-area-inset-bottom)), var(--vinde-feedback-obstruction-offset, 0px), var(--vinde-feedback-keyboard-offset, 0px));
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: none;
    transition: opacity 80ms linear;
  }
}

@media (max-width: 760px) {
  .install-banner {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    gap: 9px;
    padding: 10px;
  }

  .install-banner > img {
    width: 42px;
    height: 42px;
  }

  .install-banner > .primary-button,
  .install-banner > .secondary-button {
    grid-column: 2 / 3;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .install-banner > .icon-button {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  body.has-mobile-detail-cta .install-banner {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .shell-wide,
  .shell-narrow {
    width: calc(100% - 24px);
  }

  .brand--mobile {
    width: auto;
  }

  .mobile-header-actions .icon-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .home-hero {
    min-height: 640px;
  }

  .home-hero h1 {
    font-size: 31px;
  }

  .hero-search label {
    font-size: 13px;
  }

  .category-tile {
    min-height: 108px;
  }

  .listing-card__media {
    aspect-ratio: 1 / 0.88;
  }

  .listing-card__category {
    font-size: 9px;
  }

  .listing-card h3 {
    font-size: 13px;
  }

  .listing-card__meta {
    font-size: 10px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .publish-progress li {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    text-align: center;
  }

  .profile-identity h1 {
    font-size: 22px;
  }

  .owner-row {
    grid-template-columns: 64px minmax(0, 1fr) 38px;
  }

  .owner-row img {
    width: 64px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.cookie-banner {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted, #667085);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.wordpress-document > :first-child { margin-top: 0; }
.wordpress-document > :last-child { margin-bottom: 0; }
.wordpress-document :where(h2, h3, h4) { margin-top: 1.6em; }
.wordpress-document :where(p, li) { line-height: 1.7; }

.legal-document-scroll,
.help-document-scroll {
  max-height: clamp(320px, 52vh, 520px);
  overflow: auto;
  padding: 4px 18px 4px 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.legal-document-scroll > :is(h1, h2):first-child,
.help-document-scroll > :is(h1, h2):first-child {
  display: none;
}

.legal-document-scroll:focus-visible,
.help-document-scroll:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .legal-document-scroll,
  .help-document-scroll {
    max-height: clamp(320px, 52vh, 460px);
    padding-right: 10px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 82px;
    left: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__actions .text-button { grid-column: 1 / -1; }
}

/* Final narrow-viewport containment. Keep intrinsic control sizes from
   widening the canonical page when runtime identities contain long values. */
@media (max-width: 760px) {
  .seller-profile-hero,
  .seller-profile-hero > div,
  .seller-profile-hero h1,
  .publish-form,
  .form-band,
  .form-band__heading,
  .form-band__heading > div,
  .form-grid,
  .photo-grid,
  .field-label,
  .dynamic-field,
  .custom-combobox,
  .smart-category {
    min-width: 0;
    max-width: 100%;
  }

  .seller-profile-hero h1,
  .seller-profile-hero p,
  .form-band__heading h2,
  .form-band__heading p,
  .smart-category strong,
  .smart-category small {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .publish-form :is(input, select, textarea, button) {
    min-width: 0;
    max-width: 100%;
  }

  .results-actions .custom-combobox--compact {
    min-width: 0;
    flex: 1 1 auto;
  }

  .view-toggle {
    min-width: 0;
    flex: 0 0 auto;
  }
}

/* Canonical 0.5.17 bounded cascade: keep the component rules authoritative. */
.account-mobile-nav,
.account-mobile-back,
.publish-condition-control--mobile,
.combo-close-button,
.install-banner--mobile,
.detail-mobile-back { display: none; }
.home-hero { isolation: isolate; outline: 0; }
.home-hero__photo,
.home-hero__overlay { border-radius: inherit; }
.home-hero__photo { transform: none; }
.account-head__inner { min-width: 0; }
.profile-identity { min-width: 0; flex: 1 1 auto; }
.profile-identity > div { min-width: 0; }
.profile-identity h1,
.profile-identity p { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.profile-identity__greeting {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-identity__greeting > span:first-child {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.verified-badge {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f7ef;
  color: #087f4d;
}
.verified-badge .icon { width: 14px; height: 14px; }
.account-head__inner > .secondary-button { flex: 0 0 auto; }
.seller-profile-hero > div,
.seller-summary > span:nth-child(2) { min-width: 0; }
.seller-profile-hero h1,
.seller-profile-hero p,
.seller-summary strong,
.seller-summary small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.home-hero__content,
.hero-search { position: relative; z-index: 12; }
.custom-combobox--hero .combo-popover > header,
.custom-combobox--hero .combo-close-button { display: none !important; }
.trust-band,
.home-section { position: relative; z-index: 1; background: var(--surface); }
.listing-grid { align-items: stretch; }
.listing-card:not(.listing-card--table) { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.listing-card:not(.listing-card--table) .listing-card__body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(42px, auto) auto auto 1fr; align-content: start; }
.listing-card__category { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card__meta,
.listing-card__meta span { min-width: 0; max-width: 100%; overflow: hidden; }
.listing-card h3 button,
.listing-card h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-card.listing-card--list { height: 228px; min-height: 228px; grid-template-rows: minmax(0, 1fr); }
.listing-card--list .listing-card__media { height: 100%; min-height: 0; }
.listing-card--list .listing-card__body { grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto; }
.listing-card--table .listing-card__facts { display: none; }
.listing-card--list .listing-card__body > p { display: none !important; }
.owner-row__image-placeholder {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--muted);
}
.owner-row__image-placeholder .icon { width: 30px; height: 30px; }
.filter-checks .toggle-row { border-bottom: 0; }
.filter-group .filter-checks {
  gap: 12px;
  padding-block: 4px;
  border: 0;
}
.filter-group .filter-checks .toggle-row {
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
}
.filter-group .filter-checks .toggle-row input { margin: 0 0 0 auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 380px); grid-template-areas: "gallery contact" "main ."; align-items: start; column-gap: 36px; row-gap: 0; }
.detail-primary-row { grid-area: gallery; display: block; min-width: 0; }
.detail-primary-row .detail-gallery { height: 560px; }
.detail-gallery__main,
.detail-gallery__open { width: 100%; height: 100%; }
.detail-gallery__main { aspect-ratio: auto; }
.detail-gallery__open { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.detail-gallery--empty .detail-gallery__main { min-height: 220px; aspect-ratio: 4 / 3; }
.detail-gallery__thumbs button { position: relative; }
.gallery-thumb-more { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; background: rgba(8, 18, 38, .68); color: #fff; text-align: center; }
.gallery-thumb-more strong,
.gallery-thumb-more small { display: block; }
.detail-main { grid-area: main; width: auto; }
.detail-layout > .contact-column { grid-area: contact; position: relative; top: auto; min-width: 0; min-height: 560px; height: auto; align-content: start; overflow: hidden; }
.modal--gallery.modal-backdrop { background: rgba(4, 10, 20, .94); }
.modal.modal--gallery { width: 100vw; max-width: none; height: 100dvh; max-height: none; overflow: hidden; padding: 0; border-radius: 0; background: #050b16; }
.modal--gallery .modal-close { z-index: 4; top: 18px; left: 18px; right: auto; }
.gallery-lightbox { width: 100%; height: 100%; display: grid; grid-template-columns: 68px minmax(0, 1fr) 68px; align-items: center; gap: 16px; padding: 24px; }
.gallery-lightbox__stage { position: relative; min-width: 0; height: 100%; display: grid; place-items: center; margin: 0; padding-block: 0 86px; }
.gallery-lightbox__stage > img { width: 100%; height: 100%; max-height: calc(100dvh - 134px); object-fit: contain; }
.gallery-lightbox figcaption { position: absolute; bottom: 72px; left: 50%; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; transform: translateX(-50%); backdrop-filter: blur(14px); }
.gallery-lightbox__thumbs { position: absolute; bottom: 0; left: 50%; max-width: min(720px, calc(100vw - 190px)); display: flex; gap: 8px; overflow-x: auto; padding: 2px; transform: translateX(-50%); scrollbar-width: none; }
.gallery-lightbox__thumbs::-webkit-scrollbar { display: none; }
.gallery-lightbox__thumbs button { flex: 0 0 64px; width: 64px; height: 52px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: rgba(255,255,255,.12); }
.gallery-lightbox__thumbs button.is-active { border-color: #fff; }
.gallery-lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-lightbox__fallback { display: none; place-items: center; gap: 10px; color: #fff; text-align: center; }
.gallery-lightbox__fallback svg { width: 38px; height: 38px; }
.gallery-lightbox__stage.is-broken > img { display: none; }
.gallery-lightbox__stage.is-broken .gallery-lightbox__fallback { display: grid; }
.gallery-glass { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(14px); }
.gallery-glass:disabled { opacity: .35; }
.install-banner--mobile { display: none; }
.publish-category-flow { min-width: 0; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); }
.publish-category-card {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--selected-ink);
  border-radius: 18px;
  background: var(--selected-bg);
  color: var(--ink);
  text-align: left;
}
.publish-category-card > span { min-width: 0; }
.publish-category-card small,
.publish-category-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.publish-category-card small { color: var(--muted); font-size: 12px; }
.publish-category-card > .icon:last-child { align-self: center; justify-self: center; }
.publish-category-manual { justify-self: start; }
.publish-category-confirmed,
.publish-category-current,
.smart-category { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.publish-category-confirmed > span,
.publish-category-current > span,
.smart-category > span { min-width: 0; }
.publish-category-confirmed small,
.publish-category-confirmed strong,
.publish-category-current small,
.publish-category-current strong,
.smart-category small,
.smart-category strong,
.category-recheck-note { display: block; }
.category-recheck-note { margin-top: 5px; color: var(--muted); font-size: 12px; font-style: normal; }
.smart-category { width: 100%; padding: 12px; border: 1px solid var(--selected-ink); border-radius: var(--radius); background: var(--selected-bg); color: var(--ink); text-align: left; }
.publish-category-recommendation > .text-button { justify-self: start; }
.real-estate-transaction {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.real-estate-transaction legend {
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.real-estate-transaction__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.real-estate-transaction__option {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.real-estate-transaction__option:hover { border-color: var(--selected-ink); }
.real-estate-transaction__option:focus-visible { outline: 3px solid color-mix(in srgb, var(--selected-ink) 28%, transparent); outline-offset: 2px; }
.real-estate-transaction__option.is-active {
  border-color: var(--selected-ink);
  background: var(--selected-bg);
  color: var(--selected-ink);
  box-shadow: inset 0 0 0 1px var(--selected-ink);
}
.real-estate-transaction.has-error { border-color: var(--danger, #b42318); }
.real-estate-transaction__error { color: var(--danger, #b42318); font-size: 12px; font-weight: 700; }
.publish-condition-row { margin-bottom: 12px; }
.schema-group { margin-top: 12px; overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); }
.schema-group > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px; background: var(--surface-alt); font-weight: 800; cursor: pointer; }
.schema-group > .form-grid { padding: 16px; }

@media (max-width: 1120px) and (min-width: 761px) {
  .site-header__desktop {
    grid-template-columns: auto auto minmax(140px, 1fr) auto;
    gap: 10px;
  }

  .brand-lockup {
    gap: 7px;
    font-size: 18px;
  }

  .brand-lockup img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .main-nav {
    display: flex;
  }

  .main-nav__link {
    width: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .main-nav__link .icon {
    width: 19px;
    height: 19px;
    display: block;
  }

  .header-search {
    min-width: 0;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions .primary-button,
  .header-actions .secondary-button {
    width: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, 350px); column-gap: 24px; }
}

@media (max-width: 760px) {
  .site-header__mobile { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 14px; }
  .brand--mobile { justify-self: start; }
  .mobile-menu { display: none !important; }
  .install-banner--mobile {
    position: fixed;
    z-index: 160;
    top: auto;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    width: auto;
    max-width: calc(100% - 20px);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .install-banner--mobile > img { width: 38px; height: 38px; }
  .install-banner--mobile .install-banner__open { grid-column: auto; min-height: 36px; padding-inline: 12px; }
  .home-hero { min-height: 430px; align-items: center; }
  .home-hero__content { padding-block: 28px; }
  .home-hero h1 { font-size: clamp(30px, 9vw, 36px); }
  .hero-search__submit::before,
  .page-search .primary-button::before,
  .help-search .primary-button::before { content: none; }
  .combo-close-button { display: grid; }
  .category-grid { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-tile {
    width: auto;
    min-width: 0;
    min-height: 126px;
    height: 126px;
    max-height: 126px;
    flex: 0 0 calc((100% - 30px) / 3.75);
    grid-template-rows: 36px minmax(34px, auto) 18px;
    align-content: space-between;
    gap: 6px;
    padding: 10px;
    scroll-snap-align: start;
    overflow: hidden;
  }
  .category-tile > span { width: 34px; height: 34px; }
  .category-tile strong {
    min-width: 0;
    max-width: 100%;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
  }
  .category-tile small {
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .listing-card:not(.listing-card--table) .listing-card__body { grid-template-rows: auto minmax(38px, auto) auto auto 1fr; }
  .listing-card.listing-card--list { height: 150px; min-height: 150px; grid-template-columns: 118px minmax(0, 1fr); }
  .listing-card--list .listing-card__media { height: 100%; min-height: 0; }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-primary-row { order: 1; display: block; width: 100%; }
  .detail-primary-row .detail-gallery { height: auto; }
  .detail-main { order: 2; width: 100%; }
  .detail-layout > .contact-column { order: 3; position: static; min-height: 0; height: auto; margin: 14px; overflow: visible; }
  .detail-mobile-back { display: grid; position: absolute; z-index: 4; top: 10px; left: 10px; background: rgba(255,255,255,.9); }
  .gallery-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; padding: 10px; }
  .gallery-lightbox__stage { padding-bottom: 78px; }
  .gallery-lightbox__stage > img { max-height: calc(100dvh - 108px); }
  .gallery-lightbox figcaption { bottom: 64px; }
  .gallery-lightbox__thumbs { max-width: calc(100vw - 32px); }
  .gallery-lightbox__thumbs button { flex-basis: 58px; width: 58px; height: 48px; }
  .gallery-glass { width: 42px; height: 42px; }
  .publish-condition-control--desktop { display: none; }
  .real-estate-transaction { grid-column: 1 / -1; width: 100%; padding: 12px; }
  .real-estate-transaction__option { min-height: 48px; padding-inline: 8px; }
  .publish-condition-control--mobile { display: block; grid-column: 1 / -1; padding: 0; border: 0; }
  .publish-condition-control--mobile legend { margin-bottom: 8px; font-weight: 800; }
  .publish-condition-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .publish-condition-chip { min-width: max-content; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .publish-condition-chip.is-active { border-color: var(--selected-ink); background: var(--selected-bg); color: var(--selected-ink); font-weight: 800; }
  .publish-layout,
  .publish-form,
  .form-band,
  .form-grid { width: 100%; min-width: 0; max-width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-band { overflow: clip; }
  .publish-category-confirmed,
  .publish-category-current,
  .smart-category { grid-template-columns: auto minmax(0, 1fr); }
  .publish-category-confirmed > button,
  .publish-category-current > button,
  .smart-category > .icon:last-child { grid-column: 1 / -1; justify-self: start; }
  .account-nav { display: none; }
  .account-mobile-back {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 14px;
    padding: 0;
    color: var(--ink);
  }
  .account-mobile-nav { display: grid; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .account-mobile-nav > :is(button, a) { appearance: none; min-height: 54px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-decoration: none; text-align: left; }
  .account-mobile-nav > :is(button, a) .icon:first-child { width: 18px; height: 18px; color: currentColor; }
  .account-mobile-nav > :is(button, a):last-child { border-bottom: 0; }
  .account-layout { width: calc(100% - 28px); }
  .account-content { width: 100%; margin: 24px 0 0; }
  .activity-row > span { min-width: 0; }
  .activity-row strong,
  .activity-row small { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .profile-identity h1,
  .profile-identity p { overflow-wrap: anywhere; word-break: break-word; }
  .profile-identity h1 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .profile-identity h1.profile-identity__greeting { display: flex; overflow: visible; }
  .profile-identity__email { display: none; }
  .cookie-banner { right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 10px; gap: 8px; padding: 10px 12px; border-radius: 12px; }
  .cookie-banner p { font-size: 11px; line-height: 1.35; }
  .cookie-banner__actions { gap: 6px; }
  .cookie-banner__actions button { min-height: 44px; padding-inline: 9px; font-size: 11px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-preview .photo-preview__actions {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    justify-content: space-between;
    gap: 2px;
    padding: 2px;
    flex-wrap: nowrap;
    background: var(--ink);
  }
  .photo-preview .photo-preview__actions .icon-button {
    position: static;
    inset: auto;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .photo-preview .photo-preview__actions .text-button {
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
    padding-inline: 4px;
  }
}

@media (max-width: 360px) {
  .category-tile { flex-basis: calc((100% - 20px) / 3.2); }
}

@media (hover: hover) and (pointer: fine) {
  .category-grid { cursor: grab; }
  .category-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .category-grid.is-dragging * { pointer-events: none; }
}

/* Canonical 0.5.17: app-parity presentation for the existing WordPress
   Auto and Imobiliare publish schema. Storage keys and global shell styling
   remain owned by the existing publish contract. */
[data-dynamic-category="auto"],
[data-dynamic-category="imobiliare"] {
  display: grid;
  gap: 12px;
}
[data-dynamic-category="auto"] .schema-primary-block,
[data-dynamic-category="imobiliare"] .schema-primary-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
[data-dynamic-category="auto"] .auto-primary-grid,
[data-dynamic-category="imobiliare"] .property-primary-grid,
[data-dynamic-category="auto"] .auto-schema-grid,
[data-dynamic-category="imobiliare"] .property-advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
[data-dynamic-category="imobiliare"] .property-advanced-grid {
  align-items: start;
}
[data-dynamic-category="auto"] .schema-group,
[data-dynamic-category="imobiliare"] .schema-group {
  margin-top: 0;
  overflow: hidden;
  background: var(--surface);
}
[data-dynamic-category="auto"] .schema-group > summary,
[data-dynamic-category="imobiliare"] .schema-group > summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  list-style: none;
}
[data-dynamic-category="auto"] .schema-group > summary::-webkit-details-marker,
[data-dynamic-category="imobiliare"] .schema-group > summary::-webkit-details-marker {
  display: none;
}
[data-dynamic-category="auto"] .schema-group__icon,
[data-dynamic-category="imobiliare"] .schema-group__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--selected-bg);
  color: var(--selected-ink);
}
[data-dynamic-category="auto"] .schema-group__icon .icon,
[data-dynamic-category="imobiliare"] .schema-group__icon .icon {
  width: 21px;
  height: 21px;
}
[data-dynamic-category="auto"] .schema-group__copy,
[data-dynamic-category="imobiliare"] .schema-group__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
[data-dynamic-category="auto"] .schema-group__copy strong,
[data-dynamic-category="imobiliare"] .schema-group__copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}
[data-dynamic-category="auto"] .schema-group__copy small,
[data-dynamic-category="imobiliare"] .schema-group__copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
[data-dynamic-category="auto"] .schema-group__progress,
[data-dynamic-category="imobiliare"] .schema-group__progress {
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--selected-bg);
  color: var(--selected-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
[data-dynamic-category="auto"] .schema-group__chevron,
[data-dynamic-category="imobiliare"] .schema-group__chevron {
  display: grid;
  place-items: center;
  transition: transform .18s ease;
}
[data-dynamic-category="auto"] .schema-group[open] .schema-group__chevron,
[data-dynamic-category="imobiliare"] .schema-group[open] .schema-group__chevron {
  transform: rotate(180deg);
}
[data-dynamic-category="auto"] .schema-group > .form-grid,
[data-dynamic-category="imobiliare"] .schema-group > .form-grid {
  border-top: 1px solid var(--line);
}
[data-dynamic-category="imobiliare"] .schema-choice-field {
  grid-column: 1 / -1;
}
[data-dynamic-category="imobiliare"] .schema-choice-field .choice-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
[data-dynamic-category="imobiliare"] .schema-choice-field .choice-chip {
  width: auto;
  min-height: 44px;
  flex: 0 1 auto;
  padding: 9px 13px;
}

@media (min-width: 1180px) {
  [data-dynamic-category="auto"] .auto-schema-grid,
  [data-dynamic-category="imobiliare"] .property-advanced-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  [data-dynamic-category="auto"],
  [data-dynamic-category="imobiliare"] {
    gap: 10px;
  }
  [data-dynamic-category="auto"] .schema-primary-block,
  [data-dynamic-category="imobiliare"] .schema-primary-block {
    padding: 12px;
  }
  [data-dynamic-category="auto"] .auto-primary-grid,
  [data-dynamic-category="imobiliare"] .property-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-dynamic-category="auto"] .auto-schema-grid,
  [data-dynamic-category="imobiliare"] .property-advanced-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-dynamic-category="auto"] .schema-group > summary,
  [data-dynamic-category="imobiliare"] .schema-group > summary {
    min-height: 72px;
    grid-template-columns: 38px minmax(0, 1fr) auto 20px;
    gap: 9px;
    padding: 12px;
  }
  [data-dynamic-category="auto"] .schema-group__icon,
  [data-dynamic-category="imobiliare"] .schema-group__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  [data-dynamic-category="auto"] .schema-group > .form-grid,
  [data-dynamic-category="imobiliare"] .schema-group > .form-grid {
    padding: 12px;
  }
  [data-dynamic-category="auto"] .combo-trigger,
  [data-dynamic-category="imobiliare"] .combo-trigger,
  [data-dynamic-category="auto"] input,
  [data-dynamic-category="imobiliare"] input,
  [data-dynamic-category="auto"] textarea,
  [data-dynamic-category="imobiliare"] textarea {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  [data-dynamic-category="auto"] .auto-primary-grid,
  [data-dynamic-category="imobiliare"] .property-primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-dynamic-category="auto"] .schema-group__copy small,
  [data-dynamic-category="imobiliare"] .schema-group__copy small {
    display: none;
  }
}

/* 0.5.17: one mobile viewport contract for every editable control and transient sheet. */
@media (max-width: 760px) {
  body :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    textarea,
    select,
    [contenteditable="true"]
  ) {
    font-size: 16px;
  }

  .combo-popover,
  .custom-combobox--compact .combo-popover {
    --canonical-mobile-sheet-height: min(720px, calc(var(--canonical-visual-viewport-height, 100dvh) - 24px));
    top: calc(
      var(--canonical-visual-viewport-offset-top, 0px) +
      var(--canonical-visual-viewport-height, 100dvh) -
      var(--canonical-mobile-sheet-height)
    );
    right: auto;
    bottom: auto;
    left: var(--canonical-visual-viewport-offset-left, 0px);
    width: var(--canonical-visual-viewport-width, 100vw);
    max-width: var(--canonical-visual-viewport-width, 100vw);
    height: var(--canonical-mobile-sheet-height);
    max-height: var(--canonical-mobile-sheet-height);
    grid-template-rows: auto auto minmax(0, 1fr);
    contain: layout paint;
  }

  .combo-popover--headerless {
    grid-template-rows: minmax(0, 1fr);
  }

  .combo-popover--headerless.combo-popover--searchable {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .combo-popover header,
  .combo-search {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    background: var(--surface);
  }

  .combo-options {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.has-combobox .filter-sheet {
    overflow: hidden;
  }

  body.has-combobox .modal {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sheet-backdrop,
  .modal-backdrop,
  .combo-backdrop {
    top: var(--canonical-visual-viewport-offset-top, 0px);
    right: auto;
    bottom: auto;
    left: var(--canonical-visual-viewport-offset-left, 0px);
    width: var(--canonical-visual-viewport-width, 100vw);
    height: var(--canonical-visual-viewport-height, 100dvh);
  }

  .filter-sheet {
    --canonical-mobile-sheet-height: min(720px, calc(var(--canonical-visual-viewport-height, 100dvh) - 24px));
    top: calc(
      var(--canonical-visual-viewport-offset-top, 0px) +
      var(--canonical-visual-viewport-height, 100dvh) -
      var(--canonical-mobile-sheet-height)
    );
    right: auto;
    bottom: auto;
    left: var(--canonical-visual-viewport-offset-left, 0px);
    width: var(--canonical-visual-viewport-width, 100vw);
    height: var(--canonical-mobile-sheet-height);
    max-height: var(--canonical-mobile-sheet-height);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .filter-sheet__body {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .modal:not(.modal--gallery) {
    top: calc(var(--canonical-visual-viewport-offset-top, 0px) + 12px);
    left: 50%;
    width: min(calc(var(--canonical-visual-viewport-width, 100vw) - 24px), 500px);
    max-height: calc(var(--canonical-visual-viewport-height, 100dvh) - 24px);
    transform: translateX(-50%);
  }

  .modal.modal--gallery {
    top: var(--canonical-visual-viewport-offset-top, 0px);
    left: var(--canonical-visual-viewport-offset-left, 0px);
    width: var(--canonical-visual-viewport-width, 100vw);
    height: var(--canonical-visual-viewport-height, 100dvh);
    max-height: var(--canonical-visual-viewport-height, 100dvh);
    transform: none;
  }
}

/*
 * Owner marketplace — approved Round 2.1 contract.
 * These styles are deliberately scoped to the canonical owner surfaces so the
 * public marketplace keeps its existing visual language unchanged.
 */
.status-chip--warning {
  background: #fff3e6;
  color: #b54708;
}

.status-chip--danger {
  background: var(--red-soft);
  color: var(--red);
}

.owner-workspace {
  min-height: calc(100vh - var(--header-height));
  padding: 28px 0 84px;
  background: var(--canvas);
  color: var(--ink);
}

.owner-workspace > .shell-wide {
  max-width: 1240px;
}

.owner-workspace__header {
  min-height: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.owner-workspace__header > div {
  min-width: 0;
}

.owner-workspace__header > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.owner-workspace__header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.owner-workspace__header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.owner-workspace__back {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}

.owner-workspace__back svg,
.owner-workspace__header--stats > .secondary-button svg,
.owner-listing-card__open svg,
.owner-overflow-button svg,
.owner-filter-toggle svg {
  width: 20px;
  height: 20px;
}

.owner-workspace__header--stats > .secondary-button {
  min-height: 48px;
  flex: 0 0 auto;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.owner-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .02);
}

.owner-toolbar form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.owner-toolbar form > label {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.owner-toolbar form > label svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.owner-toolbar input,
.owner-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.owner-toolbar input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.owner-filter-toggle {
  display: none;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.owner-toolbar__filters {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(170px, 190px);
  gap: 10px;
}

.owner-toolbar__filters > label {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.owner-status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  max-width: 100%;
  padding: 0 0 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 84, 103, .42) transparent;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
}

.owner-status-tabs::-webkit-scrollbar {
  display: block;
  height: 5px;
}

.owner-status-tabs::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(71, 84, 103, .42);
}

.owner-stats-metrics::-webkit-scrollbar {
  display: none;
}

.owner-status-tabs button {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
}

.owner-status-tabs button.is-active {
  border-color: var(--selected-ink);
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.owner-status-tabs small {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(95, 107, 122, .1);
  color: inherit;
  font-size: 11px;
  line-height: 1.3;
}

.owner-status-tabs button.is-active small {
  background: rgba(49, 46, 129, .1);
}

.owner-results-heading {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--muted);
}

.owner-results-heading strong {
  font-size: 16px;
}

.owner-results-heading span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.owner-results {
  min-height: 220px;
}

.owner-listings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.owner-listing-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
}

.owner-listing-card__summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
}

.owner-listing-card__summary > img,
.owner-listing-card__summary > .owner-row__image-placeholder {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-alt);
  object-fit: cover;
  overflow: hidden;
}

.owner-listing-card__copy {
  min-width: 0;
}

.owner-listing-card__copy h3,
.owner-listing-card__copy strong,
.owner-listing-card__copy span {
  display: block;
}

.owner-listing-card__copy h3 {
  display: -webkit-box;
  min-height: 43px;
  max-height: 43px;
  margin: 1px 0 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -.018em;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-listing-card__copy strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.owner-listing-card__copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-listing-card__open {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
}

.owner-listing-card__status {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.owner-listing-card__status .status-chip {
  min-height: 28px;
  gap: 5px;
  padding-inline: 10px;
  font-size: 12px;
}

.owner-listing-card__status .status-chip svg {
  width: 15px;
  height: 15px;
}

.owner-metric-rail {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
}

.owner-metric-rail > div {
  min-width: 0;
  margin: 0;
  padding: 0 3px;
  border: 0;
  background: transparent;
  text-align: center;
}

.owner-metric-rail dt {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
}

.owner-metric-rail dt svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.owner-metric-rail dt strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.owner-metric-rail dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.22;
}

.owner-listing-card__hint {
  min-height: 20px;
  margin: auto 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.owner-moderation-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.owner-moderation-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent);
}

.owner-moderation-note--category {
  border-color: color-mix(in srgb, #e08312 34%, var(--line));
  background: color-mix(in srgb, #e08312 8%, var(--surface));
}

.owner-moderation-summary {
  display: grid;
  gap: 12px;
  text-align: left;
}

.owner-moderation-summary > p,
.owner-moderation-reason {
  margin: 0;
}

.owner-moderation-callout,
.owner-moderation-reason,
.owner-moderation-reasons {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--ink);
  line-height: 1.5;
}

.owner-moderation-callout--category {
  border-color: color-mix(in srgb, #e08312 34%, var(--line));
  background: color-mix(in srgb, #e08312 8%, var(--surface));
}

.owner-moderation-reasons {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 34px;
}

.owner-listing-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}

.owner-listing-card__actions:has(.owner-primary-action:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.owner-primary-action,
.owner-overflow-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 100ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.owner-primary-action:active:not(:disabled),
.owner-overflow-button:active:not(:disabled) {
  transform: scale(.98);
}

.owner-primary-action {
  padding: 0 16px;
  border: 1px solid var(--action-solid);
  background: var(--action-solid);
  color: var(--action-on-solid);
}

.owner-primary-action:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--action-solid) 88%, var(--action-on-solid));
  background: color-mix(in srgb, var(--action-solid) 88%, var(--action-on-solid));
  color: var(--action-on-solid);
}

.owner-primary-action:active:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--action-solid) 82%, var(--action-on-solid));
  background: color-mix(in srgb, var(--action-solid) 82%, var(--action-on-solid));
  color: var(--action-on-solid);
}

.owner-primary-action:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.owner-primary-action:is(:disabled, [aria-disabled="true"]) {
  border-color: var(--line);
  background: var(--surface-high);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: wait;
  transform: none;
}

.owner-action-pending-copy {
  display: none;
}

[data-owner-mutation-control][aria-busy="true"] .owner-action-idle-copy {
  display: none;
}

[data-owner-mutation-control][aria-busy="true"] .owner-action-pending-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.owner-listing-card[data-owner-action-pending] [data-owner-mutation-gateway] {
  cursor: wait;
}

.owner-overflow-button {
  width: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.owner-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
}

.owner-pagination button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.owner-pagination button.is-active {
  border-color: var(--selected-ink);
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.owner-pagination button:disabled {
  opacity: .45;
}

.owner-listings-state,
.owner-stats-error {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.owner-listings-state > span,
.owner-stats-error > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
}

.owner-listings-state h2,
.owner-listings-state p,
.owner-stats-error h2,
.owner-stats-error p {
  margin: 0;
}

.owner-listings-state p,
.owner-stats-error p {
  max-width: 480px;
  color: var(--muted);
}

.owner-listings-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.owner-listings-loading > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--selected-ink);
  animation: owner-loading-pulse 1s ease-in-out infinite alternate;
}

.owner-listings-loading > span:nth-child(2) { animation-delay: .16s; }
.owner-listings-loading > span:nth-child(3) { animation-delay: .32s; }
.owner-listings-loading > p { margin-left: 6px; }

@keyframes owner-loading-pulse {
  from { opacity: .24; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

.owner-stats-layout {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.owner-stats-summary {
  align-self: start;
  height: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
}

.owner-stats-summary__listing {
  min-width: 0;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.owner-stats-summary__listing > img,
.owner-stats-summary__listing > .owner-row__image-placeholder {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-alt);
  object-fit: cover;
  overflow: hidden;
}

.owner-stats-summary__listing > div {
  min-width: 0;
}

.owner-stats-summary__listing h2 {
  display: -webkit-box;
  max-height: 44px;
  margin: 7px 0 6px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-stats-summary__listing strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.owner-stats-summary__listing p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.owner-stats-summary .owner-metric-rail {
  min-height: 64px;
  margin-top: 18px;
}

.owner-stats-summary .owner-metric-rail dt {
  gap: 4px;
}

.owner-stats-summary .owner-metric-rail dt strong {
  font-size: 15px;
}

.owner-stats-summary .owner-metric-rail dd {
  font-size: 9px;
}

.owner-stats-availability {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.owner-stats-availability > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.owner-stats-availability strong,
.owner-stats-availability small {
  display: block;
}

.owner-stats-availability strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.owner-stats-availability small {
  font-size: 11px;
  line-height: 1.4;
}

.owner-stats-main {
  min-width: 0;
}

.owner-stats-controls {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.owner-stats-periods,
.owner-stats-metrics {
  min-width: 0;
  display: grid;
  border-radius: 10px;
  background: var(--surface-alt);
}

.owner-stats-periods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-stats-metrics {
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  overflow-x: auto;
  scrollbar-width: none;
}

.owner-stats-periods button,
.owner-stats-metrics button {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}

.owner-stats-periods button.is-active,
.owner-stats-metrics button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(17, 24, 39, .08);
}

.owner-stats-chart-card {
  min-height: 0;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .04);
}

.owner-stats-chart-card > header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  min-height: 46px;
}

.owner-stats-chart-card > header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.owner-stats-chart-card > header strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.owner-stats-chart-card > header small {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.owner-stats-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
  overflow: visible;
  opacity: 1;
  transition: opacity var(--motion-fast) var(--motion-enter);
}

.owner-stats-chart__empty,
.owner-listings-loading--chart {
  opacity: 1;
  transition: opacity var(--motion-fast) var(--motion-enter);
}

@starting-style {
  .owner-stats-chart,
  .owner-stats-chart__empty,
  .owner-listings-loading--chart {
    opacity: 0;
  }
}

.owner-chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.owner-chart-area polygon {
  fill: rgba(67, 86, 194, .08);
}

.owner-chart-series polyline {
  fill: none;
  stroke: #4356c2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.owner-chart-series circle {
  fill: var(--surface);
  stroke: #4356c2;
  stroke-width: 4;
}

.owner-chart-point {
  outline: none;
}

.owner-chart-hit-target {
  fill: transparent !important;
  stroke: transparent !important;
  stroke-width: 0 !important;
  pointer-events: all;
}

.owner-chart-point:focus-visible .owner-chart-visible-point {
  stroke-width: 6;
}

.owner-chart-tooltip {
  display: none;
  pointer-events: none;
}

.owner-chart-point:hover .owner-chart-tooltip,
.owner-chart-point:focus .owner-chart-tooltip {
  display: block;
}

.owner-chart-tooltip rect {
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1;
}

.owner-chart-tooltip text {
  fill: #fff;
  font-size: 12px;
  font-weight: 750;
}

.owner-chart-labels text,
.owner-chart-y-labels text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.help-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.help-legal-links a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(67, 86, 194, .36);
  text-underline-offset: 3px;
}

.owner-stats-chart__empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.owner-listings-loading--chart {
  min-height: 280px;
}

.owner-stats-explainer {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.owner-stats-explainer > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 800;
}

.owner-stats-explainer > summary::-webkit-details-marker {
  display: none;
}

.owner-stats-explainer > summary svg {
  width: 18px;
  height: 18px;
  transition: transform .18s ease;
}

.owner-stats-explainer[open] > summary svg {
  transform: rotate(180deg);
}

.owner-stats-explainer > div {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.owner-stats-explainer p {
  margin: 10px 0 0;
}

.modal--owner-actions .modal-icon {
  background: var(--selected-bg);
  color: var(--selected-ink);
}

.modal.modal--owner-actions .modal-close {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.modal-backdrop.modal--owner-actions {
  opacity: 1;
  transition: opacity var(--motion-standard) var(--motion-enter);
}

.modal.modal--owner-actions {
  opacity: 1;
  transition: opacity var(--motion-standard) var(--motion-enter), transform var(--motion-standard) var(--motion-enter);
}

.modal-backdrop.modal--owner-actions.is-closing {
  opacity: 0;
  transition-duration: var(--motion-fast);
}

.modal.modal--owner-actions.is-closing {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 6px)) scale(.99);
  transition-duration: var(--motion-fast);
}

.modal.modal--owner-actions.is-closing * {
  pointer-events: none;
}

@starting-style {
  .modal-backdrop.modal--owner-actions {
    opacity: 0;
  }

  .modal.modal--owner-actions {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 8px)) scale(.99);
  }
}

.modal--owner-actions .action-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.modal--owner-actions .action-list > button {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
}

.owner-action-sheet__handle {
  display: none;
}

.owner-action-sheet__summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.owner-action-sheet__summary > img,
.owner-action-sheet__summary > .owner-row__image-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.owner-action-sheet__summary h2,
.owner-action-sheet__summary p {
  margin: 5px 0 0;
}

.owner-action-sheet__summary h2 {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-action-sheet__summary p {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-action-row__label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.owner-action-row__chevron {
  display: inline-grid;
  margin-left: auto;
  color: var(--muted);
}

.owner-action-row__chevron svg {
  width: 18px;
  height: 18px;
}

.modal--owner-actions .owner-action-row--danger {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.owner-action-sheet__cancel {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .owner-listings-grid,
  .owner-stats-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-stats-summary {
    width: 100%;
  }

  .owner-toolbar__filters {
    grid-template-columns: minmax(150px, 190px) minmax(150px, 180px);
  }

  .owner-listing-card__summary {
    grid-template-columns: 80px minmax(0, 1fr) 44px;
  }

  .owner-listing-card__summary > img,
  .owner-listing-card__summary > .owner-row__image-placeholder {
    width: 80px;
    height: 80px;
  }

  .owner-stats-controls {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .owner-workspace {
    min-height: calc(100svh - var(--header-height));
    padding: 14px 0 calc(var(--canonical-mobile-nav-clearance, 96px) + 24px);
  }

  .owner-workspace > .shell-wide {
    width: calc(100% - 28px);
  }

  .owner-workspace__header {
    min-height: 56px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .owner-workspace__back {
    display: grid;
  }

  .owner-workspace__header > div > span {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .owner-workspace__header h1 {
    font-size: clamp(24px, 6.7vw, 28px);
  }

  .owner-workspace__header p {
    display: none;
  }

  .owner-workspace__header--stats {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
  }

  .owner-workspace__header--stats > .secondary-button {
    width: 44px;
    min-height: 44px;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .owner-workspace__header--stats > .secondary-button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .owner-workspace__header--stats > div {
    grid-column: 2;
    grid-row: 1;
  }

  .owner-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .owner-toolbar form {
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }

  .owner-toolbar form > label {
    border: 0;
    border-radius: 14px 0 0 14px;
  }

  .owner-filter-toggle {
    display: grid;
  }

  .owner-toolbar__filters {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 10px;
  }

  .owner-toolbar__filters.is-open {
    display: grid;
  }

  .owner-toolbar__filters > label {
    background: var(--surface);
  }

  .owner-status-tabs {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 0 0 7px;
  }

  .owner-status-tabs button {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .owner-results-heading {
    display: flex;
  }

  .owner-listings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .owner-listing-card {
    gap: 13px;
    padding: 14px;
    border-radius: 14px;
  }

  .owner-listing-card__summary {
    grid-template-columns: 88px minmax(0, 1fr) 44px;
    gap: 11px;
  }

  .owner-listing-card__summary > img,
  .owner-listing-card__summary > .owner-row__image-placeholder {
    width: 88px;
    height: 88px;
  }

  .owner-listing-card__copy h3 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 18px;
  }

  .owner-listing-card__copy strong {
    font-size: 19px;
  }

  .owner-listing-card__copy span {
    font-size: 13px;
  }

  .owner-metric-rail {
    min-height: 64px;
    gap: 0;
  }

  .owner-metric-rail > div {
    padding-inline: 1px;
  }

  .owner-metric-rail dt {
    gap: 4px;
  }

  .owner-metric-rail dt svg {
    width: 18px;
    height: 18px;
  }

  .owner-metric-rail dt strong {
    font-size: 17px;
  }

  .owner-metric-rail dd {
    font-size: 10px;
  }

  .owner-listing-card__actions {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .owner-stats-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .owner-stats-summary {
    padding: 14px;
  }

  .owner-stats-summary__listing {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .owner-stats-summary__listing > img,
  .owner-stats-summary__listing > .owner-row__image-placeholder {
    width: 84px;
    height: 84px;
  }

  .owner-stats-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 6px;
  }

  .owner-stats-metrics {
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    scroll-snap-type: x proximity;
  }

  .owner-stats-metrics button {
    scroll-snap-align: start;
  }

  .owner-stats-chart-card {
    min-height: 0;
    margin-top: 10px;
    padding: 14px 10px;
  }

  .owner-stats-chart-card > header {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding-inline: 4px;
  }

  .owner-stats-chart-card > header strong {
    font-size: 28px;
  }

  .owner-stats-chart {
    min-width: 0;
    height: 244px;
  }

  .owner-stats-explainer > summary {
    min-height: 52px;
  }

  .modal.modal--owner-actions {
    top: auto;
    right: auto;
    bottom: 0;
    left: var(--canonical-visual-viewport-offset-left, 0px);
    width: var(--canonical-visual-viewport-width, 100vw);
    max-width: none;
    height: auto;
    max-height: min(78vh, calc(var(--canonical-visual-viewport-height, 100dvh) - 12px));
    padding: 22px 18px max(22px, env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    transform: translateY(0);
  }

  .modal.modal--owner-actions.is-closing {
    transform: translateY(14px);
  }

  .modal.modal--owner-actions .action-list > button {
    min-height: 52px;
  }

  .modal.modal--owner-actions .modal-close {
    display: none;
  }

  .owner-action-sheet__handle {
    width: 42px;
    height: 5px;
    display: block;
    margin: -10px auto 16px;
    border-radius: 999px;
    background: var(--line);
  }

  @starting-style {
    .modal.modal--owner-actions {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

@media (max-width: 360px) {
  .owner-listing-card__summary {
    grid-template-columns: 76px minmax(0, 1fr) 44px;
    gap: 9px;
  }

  .owner-listing-card__summary > img,
  .owner-listing-card__summary > .owner-row__image-placeholder {
    width: 76px;
    height: 76px;
  }

  .owner-listing-card__copy h3 {
    font-size: 16px;
  }

  .owner-listing-card__copy strong {
    font-size: 17px;
  }

  .owner-metric-rail dt {
    gap: 3px;
  }

  .owner-metric-rail dt svg {
    width: 16px;
    height: 16px;
  }

  .owner-metric-rail dt strong {
    font-size: 15px;
  }

  .owner-metric-rail dd {
    font-size: 9px;
  }

  .owner-pagination button span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-listings-loading > span {
    animation: none;
  }
}
