:root {
  --ink: #18212f;
  --muted: #657084;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --line: rgba(24, 33, 47, 0.14);
  --green: #1f7a5b;
  --green-dark: #10563d;
  --amber: #c47b20;
  --red: #b83c3c;
  --shadow: 0 18px 55px rgba(22, 29, 39, 0.18);
  --topbar-offset: 112px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #dfe8e1;
}

body.is-list-browse {
  overflow-y: auto;
  background: #f2f5f3;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.app-shell,
.map-stage,
.map {
  width: 100vw;
  height: 100vh;
}

.map-stage {
  position: fixed;
  inset: 0;
}

.map {
  z-index: 1;
}

.topbar {
  position: fixed;
  z-index: 500;
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.browse-view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  background: #edf1ef;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 7px;
}

.browse-view-switch button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.browse-view-switch button:hover {
  color: var(--ink);
  background: #fff;
}

.browse-view-switch button.is-active {
  color: #fff;
  background: var(--green-dark);
}

.mobile-filter-bar,
.mobile-filter-backdrop,
.mobile-apply-filters {
  display: none;
}

.app-shell.is-list-view {
  width: 100%;
  height: auto;
  min-height: 100vh;
  background: #f2f5f3;
}

.listing-feed {
  display: none;
  min-height: 100vh;
  padding: var(--topbar-offset) 18px 52px;
  background: #f2f5f3;
}

.app-shell.is-list-view .listing-feed {
  display: block;
}

.app-shell.is-list-view .map-stage,
.app-shell.is-list-view .map-style-control,
.app-shell.is-list-view .map-stats,
.app-shell.is-list-view .price-analysis-panel,
.app-shell.is-list-view #togglePriceAnalysis,
.app-shell.is-list-view #locateVietnam {
  display: none;
}

.app-shell.is-list-view .topbar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 32px rgba(22, 29, 39, 0.12);
}

.listing-feed-inner {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.listing-feed-header {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.listing-feed-eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-feed-header h1 {
  margin: 5px 0 4px;
  font-size: 28px;
  line-height: 1.2;
}

.listing-feed-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.listing-sort-control {
  flex: 0 0 220px;
}

.listing-sort-control select {
  background: #fff;
  border-color: var(--line);
}

.listing-filter-summary {
  display: flex;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 10px 0;
}

.listing-filter-summary span {
  padding: 5px 8px;
  color: var(--green-dark);
  background: #dfeee7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.listing-filter-summary span.is-default {
  color: var(--muted);
  background: transparent;
}

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

.listing-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 33, 47, 0.11);
  border-radius: 7px;
  box-shadow: 0 7px 20px rgba(22, 29, 39, 0.06);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.listing-card:hover {
  border-color: rgba(31, 122, 91, 0.35);
  box-shadow: 0 12px 28px rgba(22, 29, 39, 0.11);
  transform: translateY(-2px);
}

.listing-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #dce4df;
  background-image: var(--listing-image);
  background-position: center;
  background-size: cover;
}

.listing-card-image-button {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

.listing-card-image-button:focus-visible {
  outline: 3px solid #2470b8;
  outline-offset: -3px;
}

.listing-card-favorite {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(24, 33, 47, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.listing-card-favorite.is-favorite {
  color: #fff;
  background: var(--red);
}

.listing-card-media-meta {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  color: #fff;
  background: rgba(24, 33, 47, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.listing-card-body {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(44px, auto) auto auto auto auto;
  gap: 8px;
  padding: 12px;
}

.listing-card-title {
  display: -webkit-box;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-card-title:hover {
  color: var(--green-dark);
}

.listing-card-type {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card-price-row {
  display: flex;
  min-height: 36px;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: baseline;
}

.listing-card-price-row strong {
  color: var(--red);
  font-size: 17px;
}

.listing-card-price-row span {
  color: var(--ink);
  font-size: 11px;
}

.listing-card-location {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 33, 47, 0.09);
}

.listing-card-location strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card-location span {
  color: var(--muted);
  font-size: 10px;
}

.listing-card-detail {
  min-height: 32px;
  padding: 6px 0 0;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(31, 122, 91, 0.14);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.listing-card-detail:hover {
  color: #2470b8;
}

.listing-feed-empty {
  display: grid;
  min-height: 300px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 7px;
}

.listing-feed-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.listing-feed-empty button {
  margin-top: 8px;
}

.listing-load-more-row {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
}

.listing-load-more-row button {
  min-width: 180px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.filters {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

label span {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  background: #fff;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.account-button,
.filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: #e7ece9;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.ghost-button,
.account-button,
.filters button {
  color: var(--ink);
  background: #ecf1ee;
}

.account-button {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button.is-signed-in {
  color: #fff;
  background: #2470b8;
}

.ghost-button.is-active {
  color: #fff;
  background: var(--amber);
}

.favorite-nav-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.favorite-heart {
  color: currentColor;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.favorite-nav-button b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
}

.favorite-nav-button.has-favorites .favorite-heart {
  color: var(--red);
}

.full {
  width: 100%;
}

.property-sheet {
  position: fixed;
  z-index: 520;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 150px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 30px));
  transition: transform 180ms ease;
}

.property-sheet.is-open {
  transform: translateY(0);
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #eef2f0;
  border: 0;
  border-radius: 7px;
  font-weight: 900;
}

#closeSheet {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
}

.property-hero {
  height: 170px;
  background:
    linear-gradient(135deg, rgba(31, 122, 91, 0.16), rgba(196, 123, 32, 0.18)),
    var(--image);
  background-position: center;
  background-size: cover;
}

.property-content {
  padding: 18px;
}

.property-content h1 {
  margin: 0 38px 8px 0;
  font-size: 23px;
  line-height: 1.2;
}

.property-title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.property-title-row h1 {
  flex: 1;
  min-width: 0;
  margin-right: 0;
}

.property-favorite-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  gap: 6px;
  align-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.property-favorite-button.is-favorite,
.popup-favorite-button.is-favorite,
.favorite-property-remove.is-favorite {
  color: var(--red);
  background: #fdecec;
  border-color: rgba(184, 60, 60, 0.28);
}

.empty-state {
  color: var(--muted);
}

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

.meta-grid div {
  padding: 10px;
  background: var(--soft);
  border-radius: 7px;
}

.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.meta-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.badge {
  padding: 6px 8px;
  color: var(--green-dark);
  background: #e8f3ee;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notice {
  padding: 10px;
  color: #6c4d1d;
  background: #fff4df;
  border: 1px solid rgba(196, 123, 32, 0.25);
  border-radius: 7px;
  font-size: 13px;
}

.lead-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-row a {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: var(--green);
  border-radius: 7px;
  font-weight: 800;
}

.contact-row a:last-child {
  background: #2470b8;
}

.street-view-button {
  display: grid;
  min-height: 42px;
  place-items: center;
  margin: 10px 0 14px;
  color: var(--ink);
  text-decoration: none;
  background: #edf1f4;
  border: 1px solid rgba(36, 112, 184, 0.22);
  border-radius: 7px;
  font-weight: 800;
}

.street-view-button:hover {
  color: #164f83;
  background: #e3edf5;
  border-color: rgba(36, 112, 184, 0.42);
}

.property-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 18px;
}

.property-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
  border-radius: 6px;
}

.property-detail-section {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.property-detail-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.property-detail-section dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.property-detail-section dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.9fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(24, 33, 47, 0.12);
}

.property-detail-section dl div:last-child {
  border-bottom: 0;
}

.property-detail-section dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.property-detail-section dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.property-detail-tag-groups {
  display: grid;
  gap: 10px;
}

.property-detail-tag-groups h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.property-detail-tag-groups p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.property-detail-tag-groups span {
  padding: 5px 7px;
  color: #164f83;
  background: #e7f1fa;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.private-property-detail {
  margin: 6px 0 14px;
  padding: 13px;
  background: #f2f6fb;
  border: 1px solid rgba(36, 112, 184, 0.24);
  border-radius: 7px;
}

.private-property-detail h2::after {
  margin-left: 7px;
  padding: 3px 5px;
  color: #164f83;
  background: #dceafa;
  border-radius: 4px;
  content: "Chỉ người đăng và Admin";
  font-size: 9px;
  font-weight: 900;
  vertical-align: 2px;
}

.map-style-control {
  position: fixed;
  z-index: 505;
  right: 18px;
  bottom: 84px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(310px, calc(100vw - 36px));
  gap: 3px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.map-style-control button {
  min-width: 0;
  min-height: 38px;
  padding: 5px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.map-style-control button:hover {
  color: var(--ink);
  background: #edf1ef;
}

.map-style-control button.is-active {
  color: #fff;
  background: var(--green-dark);
}

.map-stats {
  position: fixed;
  z-index: 500;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-stats strong {
  font-size: 22px;
}

.map-stats span {
  color: var(--muted);
}

.price-analysis-panel {
  position: fixed;
  z-index: 510;
  left: 18px;
  bottom: 82px;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  visibility: hidden;
}

.price-analysis-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.analysis-head h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.radius-control > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.radius-control output {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.radius-control input[type="range"] {
  min-height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  accent-color: var(--amber);
}

.radius-control input[type="range"]:focus {
  background: transparent;
}

.analysis-content {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.analysis-empty,
.analysis-no-results {
  margin: 0;
  padding: 18px 0 4px;
  color: var(--muted);
}

.analysis-no-results {
  display: grid;
  gap: 4px;
}

.analysis-no-results strong {
  color: var(--ink);
}

.analysis-primary {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.analysis-primary > span,
.analysis-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-primary > strong {
  color: var(--green-dark);
  font-size: 24px;
}

.analysis-primary small {
  color: var(--muted);
}

.analysis-metrics {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  padding-top: 14px;
}

.analysis-metrics div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.analysis-metrics strong {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.analysis-center-marker {
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 6px solid var(--amber);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(22, 29, 39, 0.28);
}

.map.is-price-analysis,
.map.is-price-analysis .leaflet-interactive {
  cursor: crosshair;
}

.admin-panel,
.account-panel {
  position: fixed;
  z-index: 540;
  top: 18px;
  right: 18px;
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translateX(calc(100% + 40px));
  transition: transform 180ms ease;
  visibility: hidden;
}

.admin-panel {
  width: min(760px, calc(100vw - 36px));
}

.admin-panel.is-open,
.account-panel.is-open {
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.account-panel {
  width: min(440px, calc(100vw - 36px));
  z-index: 545;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.listing-wizard {
  gap: 0;
}

.listing-entry-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  background: #eef1f0;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.listing-entry-mode[hidden] {
  display: none;
}

.listing-entry-mode button {
  min-height: 39px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.listing-entry-mode button.is-active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 33, 47, 0.12);
}

.bulk-excel-panel {
  display: grid;
  gap: 14px;
}

.bulk-excel-panel[hidden] {
  display: none;
}

.bulk-excel-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.bulk-excel-heading h3 {
  margin: 3px 0 4px;
  font-size: 18px;
}

.bulk-excel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bulk-excel-heading button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.bulk-excel-heading button span {
  font-size: 18px;
  line-height: 1;
}

.bulk-excel-security-note {
  display: flex;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  color: #164f83;
  background: #eaf2fa;
  border-left: 4px solid #2470b8;
  border-radius: 6px;
  font-size: 12px;
}

.bulk-excel-security-note strong {
  flex: 0 0 auto;
}

.excel-upload-zone {
  display: grid;
  min-height: 174px;
  gap: 6px;
  place-items: center;
  align-content: center;
  padding: 22px;
  color: var(--ink);
  background: #f7f9f8;
  border: 1px dashed rgba(31, 122, 91, 0.45);
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: background 140ms ease, border-color 140ms ease;
}

.excel-upload-zone:hover,
.excel-upload-zone.is-dragging {
  background: #edf6f1;
  border-color: var(--green);
}

.excel-upload-zone.is-processing {
  cursor: wait;
  opacity: 0.68;
}

.excel-file-icon {
  display: grid;
  width: 48px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.excel-upload-zone strong {
  font-size: 14px;
}

.excel-upload-zone small {
  color: var(--muted);
  font-size: 11px;
}

.excel-import-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.excel-import-status.is-success {
  color: var(--green-dark);
  font-weight: 800;
}

.excel-import-status.is-warning {
  color: #8a5a00;
  font-weight: 800;
}

.excel-import-status.is-error {
  color: var(--red);
  font-weight: 800;
}

.excel-preview {
  display: grid;
  gap: 12px;
}

.excel-preview[hidden] {
  display: none;
}

.excel-preview-summary {
  display: grid;
  grid-template-columns: minmax(130px, 1.5fr) repeat(4, minmax(86px, 1fr));
  gap: 7px;
}

.excel-preview-summary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px 10px;
  background: #f3f5f4;
  border-top: 3px solid #7d8a85;
  border-radius: 6px;
}

.excel-preview-summary > div.is-valid {
  border-top-color: var(--green);
}

.excel-preview-summary > div.is-invalid {
  border-top-color: var(--red);
}

.excel-preview-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.excel-preview-summary strong {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.excel-preview-table-wrap {
  max-height: 390px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.excel-preview-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 12px;
}

.excel-preview-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 9px 10px;
  color: var(--muted);
  background: #f3f5f4;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
}

.excel-preview-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.excel-preview-table tr:last-child td {
  border-bottom: 0;
}

.excel-preview-table tr.has-errors {
  background: #fff8f6;
}

.excel-preview-table td strong,
.excel-preview-table td small {
  display: block;
}

.excel-preview-table td small {
  max-width: 210px;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.excel-preview-table ul {
  min-width: 190px;
  margin: 0;
  padding-left: 17px;
  color: var(--red);
  line-height: 1.45;
}

.excel-row-valid {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  color: var(--green-dark);
  background: #e8f3ee;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.excel-import-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 2px;
}

.excel-import-footer button {
  min-height: 40px;
}

.listing-wizard-heading {
  display: flex;
  min-height: 48px;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.listing-wizard-heading h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.draft-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.listing-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
}

.listing-stepper li {
  position: relative;
  display: grid;
  gap: 5px;
  justify-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.listing-stepper li::before,
.listing-stepper li::after {
  position: absolute;
  z-index: 0;
  top: 14px;
  width: 50%;
  height: 2px;
  background: #dfe4e7;
  content: "";
}

.listing-stepper li::before {
  left: 0;
}

.listing-stepper li::after {
  right: 0;
}

.listing-stepper li:first-child::before,
.listing-stepper li:last-child::after {
  display: none;
}

.listing-stepper li.is-complete::before,
.listing-stepper li.is-complete::after,
.listing-stepper li.is-active::before {
  background: var(--green);
}

.listing-stepper button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #edf0f2;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dfe4e7;
  font-size: 11px;
  font-weight: 900;
}

.listing-stepper li.is-active,
.listing-stepper li.is-complete {
  color: var(--green-dark);
}

.listing-stepper li.is-active button,
.listing-stepper li.is-complete button {
  color: #fff;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.listing-step {
  display: none;
}

.listing-step.is-active {
  display: grid;
  gap: 14px;
}

.listing-form-section {
  display: grid;
  gap: 11px;
  padding: 2px 0 16px;
  border-bottom: 1px solid var(--line);
}

.listing-form-section:last-child {
  border-bottom: 0;
}

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

.section-heading h4 {
  margin: 0;
  font-size: 15px;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.google-location-import {
  display: grid;
  gap: 8px;
  padding: 2px 0 13px;
  border-bottom: 1px solid var(--line);
}

.google-location-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.google-location-import-row input {
  background: #fff;
  border-color: rgba(31, 122, 91, 0.35);
}

.google-location-import-row button {
  min-width: 128px;
  white-space: nowrap;
}

.google-location-status {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.google-location-status.is-success {
  color: var(--green-dark);
  font-weight: 700;
}

.google-location-status.is-error {
  color: var(--red);
  font-weight: 700;
}

.google-location-status.is-warning {
  color: #7a4b11;
  font-weight: 700;
}

.listing-method-divider {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-method-divider::before,
.listing-method-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.field-counter {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.location-status {
  padding: 4px 7px;
  color: var(--green-dark);
  background: #dceee5;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.location-status.is-pending {
  color: #7a4b11;
  background: #f7ead5;
}

.listing-location-map {
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #dfe8e1;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.listing-location-map .leaflet-control-attribution {
  font-size: 9px;
}

.privacy-location-note {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  color: #164f83;
  background: #eaf2fa;
  border-left: 4px solid #2470b8;
  border-radius: 6px;
  font-size: 12px;
}

.privacy-location-note span {
  color: #506479;
}

.calculated-price {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.listing-subsection-title {
  margin: 5px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(24, 33, 47, 0.14);
  font-size: 12px;
}

.listing-tag-fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.listing-tag-fieldset legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.listing-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.listing-tag-option {
  position: relative;
  cursor: pointer;
}

.listing-tag-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.listing-tag-option span {
  display: block;
  padding: 7px 9px;
  color: #33485a;
  background: #eef3f6;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.listing-tag-option input:checked + span {
  color: #fff;
  background: var(--green);
}

.listing-tag-option input:focus-visible + span {
  outline: 2px solid #2470b8;
  outline-offset: 2px;
}

.private-listing-field span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.private-listing-field span b {
  padding: 2px 5px;
  color: #164f83;
  background: #dceafa;
  border-radius: 4px;
  font-size: 9px;
}

.private-field-note {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  color: #164f83;
  background: #eef5fc;
  border-left: 4px solid #2470b8;
  border-radius: 6px;
  font-size: 11px;
}

.private-field-note span {
  color: #506479;
}

.number-stepper-row {
  display: flex;
  min-height: 38px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
}

.number-stepper-row > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.number-stepper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.number-stepper button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #eef2f0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
}

.number-stepper output {
  min-width: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.upload-guidance {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  color: #164f83;
  background: #eaf2fa;
  border-radius: 6px;
  font-size: 12px;
}

.upload-guidance span {
  color: #506479;
}

.listing-drop-zone {
  display: grid;
  min-height: 190px;
  gap: 8px;
  place-content: center;
  padding: 20px;
  text-align: center;
  background: #fafbfc;
  border: 1px dashed rgba(24, 33, 47, 0.28);
  border-radius: 7px;
  cursor: pointer;
}

.listing-drop-zone.is-dragging {
  background: #eaf2fa;
  border-color: #2470b8;
}

.listing-drop-zone.is-processing {
  opacity: 0.62;
  cursor: progress;
  pointer-events: none;
}

.listing-drop-zone span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.listing-drop-zone b {
  justify-self: center;
  padding: 8px 12px;
  background: #edf1f4;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.listing-media-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  background: #edf0f2;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.listing-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-media-item figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  overflow: hidden;
  padding: 4px 6px;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(14, 20, 27, 0.7);
  border-radius: 4px;
  font-size: 9px;
}

.listing-media-item button {
  position: absolute;
  z-index: 1;
  top: 5px;
  right: 5px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(184, 60, 60, 0.9);
  border: 0;
  border-radius: 50%;
  font-weight: 900;
}

.listing-review {
  display: grid;
  gap: 12px;
}

.review-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #edf0f2;
  border-radius: 7px;
}

.review-title {
  margin: 0;
  font-size: 18px;
}

.review-address {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.review-grid div {
  display: grid;
  gap: 3px;
  padding: 9px;
  background: var(--soft);
  border-radius: 6px;
}

.review-grid span {
  color: var(--muted);
  font-size: 10px;
}

.review-grid strong {
  font-size: 12px;
}

.review-fact-section {
  display: grid;
  gap: 8px;
}

.review-fact-section h6 {
  margin: 0;
  font-size: 12px;
}

.review-tag-groups {
  display: grid;
  gap: 8px;
}

.review-tag-groups > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.review-tag-groups p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.review-tag-groups b {
  padding: 4px 6px;
  color: #164f83;
  background: #e7f1fa;
  border-radius: 4px;
  font-size: 10px;
}

.review-private-data {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: #164f83;
  background: #f2f6fb;
  border: 1px solid rgba(36, 112, 184, 0.2);
  border-radius: 6px;
  font-size: 11px;
}

.review-privacy {
  margin: 0;
  padding: 10px;
  color: #164f83;
  background: #eaf2fa;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.review-consignment {
  margin: 0;
  padding: 10px;
  color: #10563d;
  background: #e8f3ee;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.listing-wizard-footer {
  position: sticky;
  z-index: 5;
  bottom: -18px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px -18px -18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.footer-spacer {
  flex: 1;
}

.listing-wizard-footer button {
  min-width: 104px;
}

.workspace-tabs,
.auth-tabs {
  display: flex;
  gap: 2px;
  margin: 0 -2px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.workspace-tabs button,
.auth-tabs button {
  flex: 1;
  min-width: max-content;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 800;
}

.workspace-tabs button.is-active,
.auth-tabs button.is-active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.tab-badge {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  margin-left: 4px;
  padding: 0 5px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.google-login {
  display: flex;
  width: 100%;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #263238;
  background: #fff;
  border: 1px solid rgba(24, 33, 47, 0.22);
  border-radius: 7px;
  font-weight: 800;
}

.google-login:hover {
  background: #f7f9f8;
  border-color: rgba(24, 33, 47, 0.38);
}

.google-mark {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.google-error {
  min-height: 0;
  margin-top: 7px;
}

.google-error:empty {
  display: none;
}

.auth-divider {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 11px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.workspace-quota {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 11px 12px;
  background: #eef5f1;
  border-left: 4px solid var(--green);
  border-radius: 6px;
}

.workspace-quota div {
  display: grid;
  gap: 3px;
}

.workspace-quota span {
  color: var(--muted);
  font-size: 12px;
}

.workspace-quota progress {
  width: min(210px, 42%);
}

.workspace-view,
.auth-form {
  display: none;
}

.workspace-view.is-active,
.auth-form.is-active {
  display: block;
}

.view-heading {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.view-heading h3,
.overview-section h3 {
  margin: 0;
  font-size: 16px;
}

.view-heading p,
.overview-section > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-overview {
  display: grid;
  gap: 14px;
}

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

.admin-metric {
  display: grid;
  min-height: 88px;
  align-content: space-between;
  padding: 11px;
  background: #f5f7f6;
  border: 1px solid var(--line);
  border-top: 3px solid #2470b8;
  border-radius: 7px;
}

.admin-metric.is-warning {
  border-top-color: var(--amber);
}

.admin-metric.is-success {
  border-top-color: var(--green);
}

.admin-metric.is-danger {
  border-top-color: var(--red);
}

.admin-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-metric strong {
  font-size: 24px;
  line-height: 1;
}

.overview-section {
  display: grid;
  gap: 9px;
  padding-top: 2px;
}

.overview-action-list {
  display: grid;
  gap: 7px;
}

.overview-action {
  display: flex;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.overview-action:hover {
  border-color: rgba(31, 122, 91, 0.45);
}

.overview-action div {
  display: grid;
  gap: 2px;
}

.overview-action span {
  color: var(--muted);
  font-size: 11px;
}

.overview-action > strong {
  color: var(--green-dark);
  font-size: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lead-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.lead-list,
.management-list,
.moderation-list,
.audit-list {
  display: grid;
  gap: 8px;
}

.lead-item,
.management-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: var(--soft);
  border: 1px solid rgba(24, 33, 47, 0.06);
  border-radius: 7px;
  font-size: 13px;
}

.lead-item > div,
.management-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lead-item span,
.management-copy span,
.management-copy small {
  color: var(--muted);
}

.lead-item strong,
.management-copy strong,
.management-copy span {
  overflow-wrap: anywhere;
}

.item-actions,
.user-controls {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
  justify-content: flex-end;
}

.item-actions button,
.user-controls > button,
.danger-button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #e7ece9;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.reactivate-button {
  min-height: 34px;
  padding: 0 10px;
  color: #10563d;
  background: #dceee5;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.item-actions button[data-approve-property],
.item-actions button[data-publish-property],
.moderation-actions button[data-approve-property] {
  color: #fff;
  background: var(--green);
}

.item-actions button[data-hide-property] {
  color: #7b4c11;
  background: #faedd8;
}

.danger-button {
  color: var(--red);
  background: #f8eaea;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  color: #475164;
  background: #e9edf0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.status-badge.is-pending {
  color: #7b4c11;
  background: #fae8cb;
}

.status-badge.is-published,
.status-badge.is-verified,
.status-badge.is-active {
  color: #10563d;
  background: #dceee5;
}

.status-badge.is-consignment {
  color: #164f83;
  background: #e4f0fa;
}

.status-badge.is-rejected,
.status-badge.is-suspended {
  color: #8f2d2d;
  background: #f6dddd;
}

.status-badge.is-hidden,
.status-badge.is-unverified {
  color: #475164;
  background: #e6eaed;
}

.rejection-note {
  color: var(--red) !important;
  line-height: 1.4;
}

.account-status-row {
  margin: 12px 0 0;
}

.moderation-item {
  display: grid;
  gap: 11px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 7px;
}

.moderation-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.moderation-head h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.moderation-head p,
.moderation-summary,
.moderation-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.moderation-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 3px 9px;
  align-items: center;
  padding: 9px 10px;
  background: #edf5fb;
  border-left: 4px solid #2470b8;
  border-radius: 6px;
  font-size: 12px;
}

.moderation-contact > span,
.moderation-contact > small {
  color: var(--muted);
}

.moderation-contact > a {
  color: #164f83;
  font-weight: 800;
}

.moderation-contact > small {
  grid-column: 2 / -1;
  overflow-wrap: anywhere;
}

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

.moderation-facts div {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--soft);
  border-radius: 6px;
}

.moderation-facts span {
  color: var(--muted);
  font-size: 10px;
}

.moderation-facts strong {
  font-size: 12px;
}

.moderation-actions,
.modal-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.moderation-actions button,
.modal-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.moderation-modal label {
  display: block;
}

.moderation-property-title {
  margin: 0 0 12px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--soft);
  border-left: 3px solid var(--amber);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.moderation-modal textarea {
  width: 100%;
  resize: vertical;
}

.audit-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.audit-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #2470b8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.audit-copy {
  display: grid;
  gap: 3px;
}

.audit-copy strong {
  font-size: 13px;
}

.audit-copy span,
.audit-item time {
  color: var(--muted);
  font-size: 11px;
}

.inline-control span {
  margin-bottom: 3px;
  font-size: 10px;
}

.inline-control select {
  min-width: 108px;
  min-height: 34px;
  padding: 6px 8px;
}

.auth-gate {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-gate span {
  color: var(--muted);
  font-size: 13px;
}

.auth-gate button {
  min-height: 42px;
}

.modal-backdrop {
  position: fixed;
  z-index: 800;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14, 20, 27, 0.52);
  backdrop-filter: blur(4px);
}

.auth-modal {
  width: min(430px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-form {
  gap: 10px;
}

.auth-form.is-active {
  display: grid;
}

.auth-intro {
  margin: -2px 0 12px;
  padding: 10px 12px;
  color: var(--green-dark);
  background: #e8f3ee;
  border-left: 3px solid var(--green);
  font-size: 13px;
  line-height: 1.45;
}

.auth-modal.is-customer-signup .role-picker,
.auth-modal.is-profile-completion .auth-tabs,
.auth-modal.is-profile-completion .google-login,
.auth-modal.is-profile-completion .google-error,
.auth-modal.is-profile-completion .auth-divider {
  display: none;
}

.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.role-picker legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-picker label {
  position: relative;
}

.role-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.role-picker label span {
  display: grid;
  min-height: 40px;
  place-items: center;
  margin: 0;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  text-transform: none;
}

.role-picker input:checked + span {
  color: var(--green-dark);
  background: #e8f3ee;
  border-color: rgba(31, 122, 91, 0.34);
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.account-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: #2470b8;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-summary span,
.account-summary small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-summary small {
  color: var(--green-dark);
  font-weight: 800;
}

.account-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.account-section h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.account-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

.account-section-heading h3 {
  margin: 0;
}

.account-section-heading > strong {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  color: var(--red);
  background: #fdecec;
  border-radius: 999px;
  font-size: 12px;
}

.consignment-account-section > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.consignment-account-section .account-section-heading > strong {
  color: #164f83;
  background: #e4f0fa;
}

.consignment-status-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}

.consignment-status-summary span {
  flex: 1;
  padding: 8px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
  font-size: 11px;
}

.consignment-status-summary b {
  color: var(--ink);
}

.consignment-account-actions {
  display: grid;
  gap: 7px;
}

.consignment-account-actions button {
  width: 100%;
  min-height: 40px;
}

.favorite-property-list {
  display: grid;
  gap: 7px;
}

.favorite-property-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  align-items: stretch;
}

.favorite-property-open {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  text-align: left;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 7px;
}

.favorite-property-open:hover {
  border-color: rgba(31, 122, 91, 0.28);
}

.favorite-property-image {
  width: 68px;
  aspect-ratio: 4 / 3;
  background: var(--image) center / cover;
  border-radius: 5px;
}

.favorite-property-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.favorite-property-copy strong,
.favorite-property-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-property-copy strong {
  font-size: 12px;
}

.favorite-property-copy small {
  color: var(--muted);
  font-size: 11px;
}

.favorite-property-remove {
  display: grid;
  width: 38px;
  place-items: center;
  padding: 0;
  background: #fdecec;
  border: 1px solid rgba(184, 60, 60, 0.22);
  border-radius: 7px;
}

.favorite-empty {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 7px;
}

.favorite-empty p {
  margin: 0;
  font-size: 12px;
}

.quota-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.quota-heading > div {
  display: grid;
  gap: 3px;
}

.quota-heading span {
  color: var(--muted);
  font-size: 12px;
}

progress {
  width: 100%;
  height: 8px;
  accent-color: var(--green);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.plan-option {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 8px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
}

.plan-option span,
.plan-option small {
  color: var(--muted);
  font-size: 11px;
}

.plan-option.is-current {
  color: var(--green-dark);
  background: #e8f3ee;
  border-color: rgba(31, 122, 91, 0.36);
  opacity: 1;
}

.access-note {
  padding: 10px;
  color: #20598b;
  background: #e8f2fb;
  border-left: 4px solid #2470b8;
  border-radius: 6px;
  font-size: 13px;
}

#accountContent > .danger-button {
  margin-top: 14px;
}

.toast {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.map-popup {
  min-width: 210px;
}

.map-popup-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: start;
  margin-bottom: 5px;
}

.map-popup-heading strong {
  display: block;
  margin: 0;
  font-size: 15px;
}

.map-popup .popup-favorite-button {
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.map-popup .popup-favorite-button.is-favorite {
  color: var(--red);
  background: #fdecec;
  border-color: rgba(184, 60, 60, 0.28);
}

.map-popup .popup-view-button {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.property-marker {
  display: grid;
  width: 64px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(31, 122, 91, 0.34);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.island-label-anchor {
  background: transparent;
  border: 0;
}

.island-label {
  display: grid;
  width: 176px;
  min-height: 48px;
  align-content: center;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(184, 60, 60, 0.3);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(22, 29, 39, 0.2);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.island-label strong {
  font-size: 12px;
}

.island-label small {
  margin-top: 3px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.workspace-layout,
.workspace-main {
  min-width: 0;
}

.workspace-navigation-label {
  display: none;
}

.admin-panel.is-admin-workspace {
  display: flex;
  width: min(1120px, calc(100vw - 36px));
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.admin-panel.is-admin-workspace > .panel-head {
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 17px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-panel.is-admin-workspace > .panel-head h2 {
  font-size: 23px;
}

.admin-panel.is-admin-workspace .workspace-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 206px minmax(0, 1fr);
}

.admin-panel.is-admin-workspace .workspace-navigation {
  min-height: 0;
  padding: 18px 12px 18px 18px;
  overflow-y: auto;
  background: #f5f7f6;
  border-right: 1px solid var(--line);
}

.admin-panel.is-admin-workspace .workspace-navigation-label {
  display: block;
  margin: 0 10px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-panel.is-admin-workspace .workspace-tabs {
  display: grid;
  gap: 4px;
  margin: 0;
  overflow: visible;
  border: 0;
}

.admin-panel.is-admin-workspace .workspace-tabs button {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex: none;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 11px;
  color: #52606f;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  text-align: left;
  white-space: normal;
}

.admin-panel.is-admin-workspace .workspace-tabs button:hover {
  color: var(--ink);
  background: #e9eeeb;
}

.admin-panel.is-admin-workspace .workspace-tabs button.is-active {
  color: var(--green-dark);
  background: #e2efe8;
  border-left-color: var(--green);
}

.admin-panel.is-admin-workspace .workspace-tabs .tab-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.admin-panel.is-admin-workspace .workspace-main {
  min-height: 0;
  padding: 18px 20px 26px;
  overflow-y: auto;
  background: #fbfcfb;
}

.admin-panel.is-admin-workspace .workspace-quota {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px 14px;
  background: #eef5f1;
}

.admin-panel.is-admin-workspace .workspace-queue-summary,
.admin-panel.is-admin-workspace .workspace-live-count {
  display: grid;
  gap: 2px;
}

.admin-panel.is-admin-workspace .workspace-queue-breakdown {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid rgba(31, 122, 91, 0.16);
  border-left: 1px solid rgba(31, 122, 91, 0.16);
}

.admin-panel.is-admin-workspace .workspace-queue-breakdown span {
  white-space: nowrap;
}

.admin-panel.is-admin-workspace .workspace-queue-breakdown b {
  color: var(--ink);
}

.admin-panel.is-admin-workspace .workspace-live-count {
  text-align: right;
}

.admin-metric.is-consignment {
  border-top-color: #2470b8;
}

.overview-action.is-consignment {
  border-left: 4px solid #2470b8;
}

.view-kicker {
  display: block;
  margin-bottom: 4px;
  color: #2470b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.consignment-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.consignment-metrics article {
  display: grid;
  min-height: 72px;
  align-content: space-between;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #2470b8;
  border-radius: 7px;
}

.consignment-metrics article.is-pending {
  border-left-color: var(--amber);
}

.consignment-metrics article.is-published {
  border-left-color: var(--green);
}

.consignment-metrics article.is-rejected {
  border-left-color: var(--red);
}

.consignment-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.consignment-metrics strong {
  font-size: 21px;
}

.consignment-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.consignment-toolbar label {
  display: grid;
  gap: 5px;
}

.consignment-toolbar label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.consignment-review-list {
  display: grid;
  gap: 10px;
}

.consignment-review-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #2470b8;
  border-radius: 7px;
  box-shadow: 0 5px 16px rgba(22, 29, 39, 0.05);
}

.consignment-review-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
}

.consignment-review-head h4 {
  margin: 3px 0 4px;
  font-size: 17px;
}

.consignment-review-head p,
.consignment-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.request-code {
  color: #2470b8;
  font-size: 10px;
  font-weight: 900;
}

.consignment-review-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.35fr);
  gap: 10px;
}

.consignor-profile {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 11px;
  background: #edf5fb;
  border-radius: 6px;
}

.consignor-avatar {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #2470b8;
  border-radius: 50%;
  font-weight: 900;
}

.consignor-profile > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.consignor-profile span,
.consignor-profile small {
  color: var(--muted);
  font-size: 10px;
}

.consignor-profile a {
  color: #164f83;
  font-size: 12px;
  font-weight: 900;
}

.consignor-profile small {
  overflow-wrap: anywhere;
}

.consignment-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.consignment-facts div {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: center;
  padding: 9px;
  background: var(--soft);
  border-radius: 6px;
}

.consignment-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.consignment-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.consignment-location-detail {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  background: #f8f2e8;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
}

.consignment-location-detail > div {
  display: grid;
  gap: 3px;
}

.consignment-location-detail span,
.consignment-location-detail small {
  color: var(--muted);
  font-size: 10px;
}

.consignment-location-detail strong {
  font-size: 12px;
}

.consignment-location-detail small {
  flex: 0 0 auto;
}

.consignment-rejection {
  margin: 0;
  padding: 9px 10px;
  color: #8f2d2d;
  background: #f9e9e9;
  border-radius: 6px;
  font-size: 12px;
}

.consignment-review-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  padding-top: 2px;
}

.consignment-review-actions a,
.consignment-review-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.consignment-empty {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 7px;
}

.consignment-empty strong {
  color: var(--ink);
}

@media (max-width: 1400px) and (min-width: 981px) {
  .topbar {
    grid-template-columns: auto auto 1fr;
  }

  .filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .brand {
    min-width: 0;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

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

  .actions button {
    flex: 1 1 120px;
    min-width: 120px;
    min-height: 44px;
    padding: 6px 8px;
    white-space: normal;
  }

  .account-button {
    max-width: none;
  }

  .admin-panel.is-admin-workspace .workspace-layout {
    display: flex;
    flex-direction: column;
  }

  .admin-panel.is-admin-workspace .workspace-navigation {
    flex: 0 0 auto;
    padding: 8px 14px 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-panel.is-admin-workspace .workspace-navigation-label {
    display: none;
  }

  .admin-panel.is-admin-workspace .workspace-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
  }

  .admin-panel.is-admin-workspace .workspace-tabs button {
    min-width: max-content;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
  }

  .admin-panel.is-admin-workspace .workspace-tabs button:hover {
    background: transparent;
  }

  .admin-panel.is-admin-workspace .workspace-tabs button.is-active {
    background: transparent;
    border-bottom-color: var(--green);
  }

  .admin-panel.is-admin-workspace .workspace-main {
    flex: 1;
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  body.is-mobile-filter-open {
    overflow: hidden;
  }

  .app-shell.is-list-view {
    display: flex;
    flex-direction: column;
  }

  .app-shell.is-list-view .topbar {
    position: fixed;
    top: 10px;
    right: 10px;
    left: auto;
    order: -1;
    margin: 0;
  }

  .app-shell.is-list-view .listing-feed {
    order: 0;
    padding-top: 18px;
  }

  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .topbar:not(.is-mobile-filters-open) {
    right: 10px;
    left: auto;
    display: block;
    width: 48px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .topbar:not(.is-mobile-filters-open) .brand,
  .topbar:not(.is-mobile-filters-open) .browse-view-switch,
  .topbar:not(.is-mobile-filters-open) .filters,
  .topbar:not(.is-mobile-filters-open) .actions {
    display: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .browse-view-switch {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mobile-filter-bar {
    display: flex;
    min-width: 0;
    position: relative;
  }

  .mobile-filter-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: var(--green-dark);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(22, 29, 39, 0.24);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-filter-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    padding: 0 6px;
    color: #fff;
    background: var(--green-dark);
    border-radius: 999px;
    font-size: 11px;
  }

  .mobile-filter-backdrop {
    position: fixed;
    z-index: 490;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(14, 20, 27, 0.42);
    border: 0;
  }

  .topbar.is-mobile-filters-open {
    right: 10px;
    left: 10px;
    display: grid;
    width: auto;
    max-height: calc(100dvh - 20px);
    align-content: start;
    padding: 10px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    overscroll-behavior: contain;
  }

  .app-shell.is-list-view .topbar.is-mobile-filters-open {
    right: 10px;
    left: 10px;
  }

  .topbar.is-mobile-filters-open .mobile-filter-bar {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .topbar.is-mobile-filters-open .mobile-filter-toggle {
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: #edf1ef;
    border-color: rgba(24, 33, 47, 0.12);
    box-shadow: none;
    font-size: 28px;
    font-weight: 500;
  }

  .topbar.is-mobile-filters-open .mobile-filter-count {
    display: none !important;
  }

  .topbar.is-mobile-filters-open .filters {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .topbar.is-mobile-filters-open .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .mobile-apply-filters {
    display: block;
    color: #fff !important;
    background: var(--green-dark) !important;
  }

  .brand > div > span {
    display: none;
  }

  .browse-view-switch button {
    min-height: 38px;
    padding: 0 10px;
  }

  .listing-feed {
    padding-right: 10px;
    padding-bottom: 36px;
    padding-left: 10px;
  }

  .listing-feed-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .listing-feed-header h1 {
    font-size: 23px;
  }

  .listing-sort-control {
    flex-basis: auto;
  }

  .listing-card-body {
    padding: 10px;
  }

  .property-sheet {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: none;
  }

  .map-stats {
    left: 10px;
    bottom: 10px;
  }

  .map-style-control {
    right: 10px;
    bottom: 74px;
    width: min(330px, calc(100vw - 20px));
  }

  .price-analysis-panel {
    right: 10px;
    bottom: 72px;
    left: 10px;
    width: auto;
    max-height: 48vh;
  }

  .admin-panel,
  .account-panel {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .admin-panel.is-admin-workspace {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .admin-panel.is-admin-workspace > .panel-head {
    padding: 14px;
  }

  .admin-panel.is-admin-workspace > .panel-head h2 {
    font-size: 20px;
  }

  .admin-panel.is-admin-workspace .workspace-quota {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .admin-panel.is-admin-workspace .workspace-queue-breakdown {
    justify-content: space-between;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid rgba(31, 122, 91, 0.16);
    border-bottom: 1px solid rgba(31, 122, 91, 0.16);
  }

  .admin-panel.is-admin-workspace .workspace-live-count {
    text-align: left;
  }

  .meta-grid,
  .field-row,
  .contact-row,
  .moderation-facts {
    grid-template-columns: 1fr;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .consignment-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .consignment-toolbar,
  .consignment-review-body {
    grid-template-columns: 1fr;
  }

  .consignment-facts {
    grid-template-columns: 1fr 1fr;
  }

  .consignment-location-detail,
  .consignment-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .consignment-location-detail small {
    flex: none;
  }

  .consignment-review-actions {
    grid-template-columns: 1fr 1fr;
  }

  .consignment-review-actions > span {
    display: none;
  }

  .consignment-review-actions a,
  .consignment-review-actions button {
    width: 100%;
    white-space: normal;
  }

  .listing-stepper li > span {
    font-size: 9px;
  }

  .listing-location-map {
    height: 280px;
  }

  .listing-media-preview,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .listing-wizard-footer {
    flex-wrap: wrap;
  }

  .listing-wizard-footer .footer-spacer {
    display: none;
  }

  .listing-wizard-footer button {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .bulk-excel-heading,
  .bulk-excel-security-note {
    align-items: stretch;
    flex-direction: column;
  }

  .bulk-excel-heading button {
    width: 100%;
  }

  .excel-upload-zone {
    min-height: 150px;
  }

  .excel-preview-summary {
    grid-template-columns: 1fr 1fr;
  }

  .excel-preview-summary > div:first-child {
    grid-column: 1 / -1;
  }

  .excel-import-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .excel-import-footer button {
    width: 100%;
  }

  .moderation-head,
  .moderation-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .moderation-actions button,
  .modal-actions button {
    width: 100%;
  }

  .audit-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .audit-item time {
    grid-column: 2;
  }

  .management-item,
  .lead-item,
  .item-actions,
  .user-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .item-actions button,
  .user-controls > button,
  .inline-control select {
    width: 100%;
  }

  .workspace-quota {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-quota progress {
    width: 100%;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .browse-view-switch {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .topbar.is-mobile-filters-open .mobile-filter-bar {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar.is-mobile-filters-open .filters {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .topbar.is-mobile-filters-open .actions {
    grid-column: 1 / -1;
    grid-row: 4;
  }

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

  .listing-card-media {
    aspect-ratio: 16 / 10;
  }

  .excel-preview-summary {
    grid-template-columns: 1fr;
  }

  .excel-preview-summary > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .google-location-import-row {
    grid-template-columns: 1fr;
  }

  .google-location-import-row button {
    width: 100%;
  }
}
