:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef2ea;
  --text: #16201b;
  --muted: #64706a;
  --border: #dce2dc;
  --accent: #0e6b4f;
  --accent-strong: #094934;
  --amber: #c48120;
  --green: #2f8d59;
  --shadow: 0 18px 55px rgba(22, 32, 27, 0.1);
  --radius: 8px;
  --font-display: Manrope, "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Keep the REN OS advisory bot anchored bottom-right on every public page. */
.ren-chat-widget {
  right: 22px !important;
  left: auto !important;
}

@media (max-width: 560px) {
  .ren-chat-widget {
    right: 14px !important;
    left: auto !important;
  }
}

/* Homepage reference fidelity pass */
body:not(.admin-page):not(.sale-admin-page) {
  background: #ffffff;
  color: #23302b;
}

body:not(.admin-page):not(.sale-admin-page) .site-header {
  height: 58px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #edf0ee;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .brand {
  gap: 9px;
  color: #1e2a25;
  font-size: 14px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #08704e;
  font-size: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .top-nav {
  gap: 28px;
  color: #2f3b36;
  font-size: 11px;
  font-weight: 800;
}

body:not(.admin-page):not(.sale-admin-page) .header-action {
  min-height: 36px;
  padding: 0 22px;
  border-radius: 6px;
  background: #08704e;
  font-size: 12px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .header-call {
  width: 36px;
  height: 36px;
  border-color: #dce8e2;
  color: #08704e;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .mobile-quick-nav {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: 36px;
  align-items: center;
  min-height: 496px;
  padding: 42px 40px 26px;
  background:
    linear-gradient(90deg, rgba(5, 45, 34, 0.98) 0%, rgba(5, 45, 34, 0.82) 43%, rgba(5, 45, 34, 0.16) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1900&q=88") center right / cover no-repeat;
}

body:not(.admin-page):not(.sale-admin-page) .hero::after {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .hero-kicker {
  margin-bottom: 12px;
  color: #d4b340;
  font-size: 12px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 {
  max-width: 580px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 850;
  line-height: 1.16;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
  margin-bottom: 16px;
  font-size: 86px;
  line-height: 0.82;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
  color: #75bf56;
}

body:not(.admin-page):not(.sale-admin-page) .hero p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

body:not(.admin-page):not(.sale-admin-page) .hero-actions {
  gap: 14px;
  margin-top: 24px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
  min-height: 46px;
  padding: 0 25px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .button.primary {
  background: #08704e;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .button.secondary {
  border-color: #e8ecea;
  background: #ffffff;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(570px, 100%);
  margin-top: 18px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1px 8px;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(5, 50, 37, 0.66);
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof i {
  grid-row: 1 / 3;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: rgba(132, 201, 89, 0.16);
  color: #a7d978;
  font-size: 11px;
  font-style: normal;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof strong {
  font-size: 10px;
  line-height: 1.15;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(570px, 100%);
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats strong {
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-ops {
  justify-items: end;
}

body:not(.admin-page):not(.sale-admin-page) .ops-card.main {
  width: min(430px, 100%);
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(22, 32, 29, 0.93);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

body:not(.admin-page):not(.sale-admin-page) .ops-card .panel-topline {
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .ops-card .panel-topline strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: #37c875;
}

body:not(.admin-page):not(.sale-admin-page) .ops-metrics {
  gap: 8px;
  margin: 14px 0 16px;
}

body:not(.admin-page):not(.sale-admin-page) .ops-metrics div {
  min-height: 55px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

body:not(.admin-page):not(.sale-admin-page) .ops-metrics strong {
  font-size: 23px;
}

body:not(.admin-page):not(.sale-admin-page) .ops-metrics span {
  font-size: 8.5px;
}

body:not(.admin-page):not(.sale-admin-page) .ops-subtitle {
  margin: 0 0 9px;
  font-size: 13px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-queue {
  gap: 8px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-queue div {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  min-height: 53px;
  padding: 8px 10px;
  border-radius: 6px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-avatar {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  font-size: 0;
}

body:not(.admin-page):not(.sale-admin-page) .lead-info {
  display: grid;
}

body:not(.admin-page):not(.sale-admin-page) .lead-info strong {
  font-size: 10.5px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-info small,
body:not(.admin-page):not(.sale-admin-page) .lead-queue time {
  font-size: 8.5px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-queue button {
  min-height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #08704e;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .network-box {
  grid-template-columns: 120px 1fr;
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
}

body:not(.admin-page):not(.sale-admin-page) .network-ring {
  width: 96px;
  height: 96px;
  border-width: 12px;
  border-top-color: #a7d65d;
  border-right-color: #52bd70;
  border-bottom-color: #0d8f6a;
  border-left-color: #0d8f6a;
}

body:not(.admin-page):not(.sale-admin-page) .network-ring strong {
  font-size: 25px;
}

body:not(.admin-page):not(.sale-admin-page) .network-bars p {
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip,
body:not(.admin-page):not(.sale-admin-page) #listings,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
body:not(.admin-page):not(.sale-admin-page) #agents,
body:not(.admin-page):not(.sale-admin-page) .signup-band {
  width: min(100% - 56px, 1540px);
  margin-right: auto;
  margin-left: auto;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip {
  grid-template-columns: minmax(150px, 0.95fr) repeat(6, minmax(104px, 1fr));
  gap: 6px;
  margin-top: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
  padding: 16px 0 0;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div strong {
  max-width: 130px;
  color: #26312d;
  font-size: 19px;
  line-height: 1.08;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div span {
  max-width: 138px;
  margin-top: 13px;
  color: #6f7b75;
  font-size: 10.5px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
  position: relative;
  min-height: 118px;
  padding: 17px 8px 24px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(22, 32, 27, 0.045);
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button::after {
  content: "›";
  position: absolute;
  bottom: 12px;
  left: 50%;
  color: #7f8884;
  font-size: 18px;
  transform: translateX(-50%);
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
  width: 26px;
  height: 26px;
  background: transparent;
  color: #08704e;
  font-size: 19px;
}

body:not(.admin-page):not(.sale-admin-page) #listings.section {
  padding: 28px 0 14px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
  align-items: center;
  flex-direction: row;
  margin-bottom: 16px;
}

body:not(.admin-page):not(.sale-admin-page) #listings h2,
body:not(.admin-page):not(.sale-admin-page) #agents h2,
body:not(.admin-page):not(.sale-admin-page) .signup-card h2 {
  color: #26312d;
  font-size: 21px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading p,
body:not(.admin-page):not(.sale-admin-page) #listings .filters {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

body:not(.admin-page):not(.sale-admin-page) .listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e7ece9;
  border-radius: 6px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card img {
  height: auto;
  aspect-ratio: 1.34 / 1;
}

body:not(.admin-page):not(.sale-admin-page) .featured-label {
  position: absolute;
  top: 13px;
  left: 11px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: #d6b22e;
  color: #3f3612;
  font-size: 8px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .listing-fav {
  top: 11px;
  right: 11px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  background: rgba(22, 32, 27, 0.16);
  font-size: 22px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body {
  gap: 6px;
  padding: 10px 10px 12px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  margin: 0;
  min-height: 16px;
  color: #303a36;
  font-size: 11px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body p {
  color: #77817c;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .price {
  color: #08704e;
  font-size: 17px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .listing-price-row span {
  color: #7d8782;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 12px 0 22px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-card {
  border: 1px solid #e7ece9;
  border-radius: 7px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 13px;
  padding: 20px;
}

body:not(.admin-page):not(.sale-admin-page) .form-title {
  grid-column: 1 / -1;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section h3 {
  margin: 0;
  color: #26312d;
  font-size: 21px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title p {
  margin: 7px 0 0;
  color: #64706a;
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section label {
  color: #26312d;
  font-size: 10px;
  font-weight: 800;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section input,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section select,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  min-height: 34px;
  padding: 8px 10px;
  border-color: #e7ece9;
  border-radius: 4px;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  min-height: 34px;
  resize: none;
}

body:not(.admin-page):not(.sale-admin-page) .field-wide {
  grid-column: auto;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .ai-question-row .button {
  min-height: 34px;
  border-radius: 4px;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .security-note,
body:not(.admin-page):not(.sale-admin-page) #lead-status {
  grid-column: 1 / -1;
}

body:not(.admin-page):not(.sale-admin-page) .security-note,
body:not(.admin-page):not(.sale-admin-page) .ai-note {
  margin: 0;
  color: #6d7772;
  font-size: 9.5px;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  display: grid;
  gap: 13px;
  padding: 20px;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form h3 span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: #e8f5ef;
  color: #08704e;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions {
  display: grid;
  gap: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button {
  position: relative;
  min-height: 38px;
  padding: 0 34px;
  border: 1px solid #edf0ee;
  border-radius: 5px;
  background: #f8faf9;
  color: #5d6963;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::before {
  content: "⌂";
  position: absolute;
  left: 12px;
  color: #08704e;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::after {
  content: "›";
  position: absolute;
  right: 13px;
  color: #97a09c;
  font-size: 17px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .owner-form-section {
  padding: 0 0 24px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band {
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e7ece9;
  border-radius: 7px;
  background: #073b30;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band > div {
  padding: 26px 30px;
  color: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band h2 {
  color: #ffffff;
  font-size: 21px;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band ul {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band li::before,
body:not(.admin-page):not(.sale-admin-page) .signup-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #4fd18a;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

body:not(.admin-page):not(.sale-admin-page) #agents.section,
body:not(.admin-page):not(.sale-admin-page) .signup-band.section {
  padding: 0 0 26px;
}

body:not(.admin-page):not(.sale-admin-page) #agents .section-heading {
  margin-bottom: 16px;
}

body:not(.admin-page):not(.sale-admin-page) #agents .section-heading p {
  color: #64706a;
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list article {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list span {
  color: #08704e;
  font-size: 20px;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list strong {
  color: #26312d;
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list p {
  margin: 0;
  color: #6d7772;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .signup-band {
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .signup-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  overflow: hidden;
  border: 1px solid #e7ece9;
  border-radius: 7px;
  background: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .signup-card > div {
  padding: 22px 26px;
}

body:not(.admin-page):not(.sale-admin-page) .signup-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  color: #46534d;
  font-size: 11px;
  font-weight: 700;
}

body:not(.admin-page):not(.sale-admin-page) .signup-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

body:not(.admin-page):not(.sale-admin-page) .site-footer {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 36px;
  padding: 34px 40px 28px;
  background: #082f27;
  color: rgba(255, 255, 255, 0.74);
}

body:not(.admin-page):not(.sale-admin-page) .site-footer .brand {
  color: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .site-footer strong {
  color: #ffffff;
  font-size: 12px;
}

body:not(.admin-page):not(.sale-admin-page) .site-footer p,
body:not(.admin-page):not(.sale-admin-page) .site-footer a,
body:not(.admin-page):not(.sale-admin-page) .site-footer span {
  font-size: 10px;
}

@media (min-width: 760px) {
  body:not(.admin-page):not(.sale-admin-page) .site-header {
    align-items: center;
    flex-direction: row;
    gap: 18px;
    height: 58px;
    padding: 0 40px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(12px, 2.2vw, 28px);
    font-size: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(350px, 0.8fr);
    min-height: 496px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    font-size: 30px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    font-size: 82px;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: minmax(150px, 0.95fr) repeat(6, minmax(82px, 1fr));
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) .owner-band,
  body:not(.admin-page):not(.sale-admin-page) .signup-card {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .feature-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body:not(.admin-page):not(.sale-admin-page) .site-header {
    padding: 0 18px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero,
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) .owner-band,
  body:not(.admin-page):not(.sale-admin-page) .signup-card {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) .listing-grid,
  body:not(.admin-page):not(.sale-admin-page) .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
    grid-column: 1 / -1;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.top-nav a:hover {
  color: var(--text);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
}

.header-action,
.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button.danger-button {
  border-color: #f2b8b5;
  background: #fff7f6;
  color: #a83228;
}

.button.danger-button:hover {
  border-color: #d93025;
  background: #fce8e6;
  color: #8b1d16;
}

.router9-login-inline {
  align-self: end;
  color: var(--accent);
  font-weight: 800;
  padding: 14px 0;
}

.button.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px) 42px;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.section-heading p,
.split-section p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel-topline strong {
  color: var(--text);
}

.dispatch-card {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
}

.dispatch-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.dot.amber {
  background: var(--amber);
}

.dot.green {
  background: var(--green);
}

.intent-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.intent-strip button {
  min-height: 70px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 760;
}

.intent-strip button:hover {
  background: var(--surface-soft);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.panel-heading.compact-heading {
  align-items: center;
  margin: 26px 0 12px;
}

.panel-heading.compact-heading h3 {
  margin: 0;
}

.status-pill {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(18, 122, 89, 0.18);
  border-radius: 999px;
  background: rgba(18, 122, 89, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 190px;
  gap: 10px;
  min-width: min(680px, 100%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 107, 79, 0.12);
}

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

.listing-card,
.form-card,
.metric,
.admin-note,
.agent-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.listing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fbfcfa;
}

.price {
  color: var(--accent-strong);
  font-size: 21px;
  font-weight: 850;
}

.listing-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.listing-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lead-ai-section {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.ai-form-column {
  display: grid;
  gap: 14px;
}

.ai-form-column .ai-result:empty {
  display: none;
}

.owner-form-section {
  display: grid;
  justify-items: start;
}

.owner-form-section .form-card {
  width: min(720px, 100%);
}

.muted-band {
  background: var(--surface-soft);
}

.form-card {
  display: grid;
  gap: 13px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(22, 32, 27, 0.07);
}

#lead-form,
#ai-advisor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 20px;
}

#lead-form h3,
#ai-advisor-form h3,
#lead-form .form-title,
#lead-form .field-wide,
#ai-advisor-form .field-wide,
#lead-form .button,
#ai-advisor-form .button,
#lead-form .form-status,
#ai-advisor-form .form-status {
  grid-column: 1 / -1;
}

#lead-form h3,
#ai-advisor-form h3 {
  margin-bottom: 2px;
}

.form-title {
  display: grid;
  gap: 4px;
}

.form-title h3 {
  margin: 0;
}

.form-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

#lead-form label,
#ai-advisor-form label {
  gap: 6px;
}

#lead-form input,
#lead-form select,
#lead-form textarea,
#ai-advisor-form input,
#ai-advisor-form select,
#ai-advisor-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
}

#lead-form textarea,
#ai-advisor-form textarea {
  min-height: 84px;
  resize: vertical;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.plain-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.process-list span {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-weight: 740;
}

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

.agent-card,
.sale-page-card {
  padding: 18px;
}

.agent-card h3 {
  margin-bottom: 6px;
}

.agent-card p {
  margin: 6px 0;
  color: var(--muted);
}

.sale-page-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sale-page-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.sale-page-card p {
  color: var(--muted);
}

.sale-page-card span {
  color: var(--accent);
  font-weight: 800;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.inline-check input {
  width: auto;
}

.sale-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px) 44px;
  background: #16201b;
  color: white;
}

.campaign-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px) 44px;
  background: #0e6b4f;
  color: white;
}

.campaign-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.campaign-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.sale-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.sale-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.sale-profile-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sale-profile-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.sale-profile-panel strong {
  font-size: 22px;
}

.sale-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 10px;
  margin-bottom: 24px;
}

.sale-empty {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.sale-lead-card {
  position: sticky;
  top: 92px;
}

.admin-page {
  min-height: 100vh;
  padding: 26px 32px 36px;
  background: var(--bg);
}

.sale-admin-page {
  min-height: 100vh;
  padding: 26px 32px 36px;
  background: var(--bg);
}

.admin-page .site-header,
.admin-page main > :not(#admin) {
  display: none;
}

.admin-page main.auth-page > :not(#admin) {
  display: block;
}

.admin-page .auth-page {
  min-height: calc(100vh - 62px);
}

.admin-page .admin-shell {
  margin: 0;
  min-height: calc(100vh - 62px);
}

.sale-admin-shell {
  margin: 0;
  min-height: calc(100vh - 62px);
}

.sale-admin-form {
  width: min(1040px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 20px;
}

.sale-admin-form h3,
.sale-admin-form .field-wide,
.sale-admin-form .button,
.sale-admin-form .form-status {
  grid-column: 1 / -1;
}

.sale-admin-form input,
.sale-admin-form select,
.sale-admin-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
}

.sale-admin-form textarea {
  min-height: 94px;
  resize: vertical;
}

.compact-admin-form {
  display: grid;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
}

.compact-admin-form[hidden],
.admin-tab[hidden] {
  display: none;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 142px;
}

.button.small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 12px;
}

.table-wrap select,
.table-wrap input[type="datetime-local"] {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 9px;
  font-size: 12px;
}

.sale-inventory-row-own td {
  background: #eef9f4;
}

.sale-inventory-row-imported td {
  background: #fff7e8;
}

.sale-inventory-row-available td {
  background: #f8fafc;
}

.sale-inventory-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.sale-inventory-row-own .sale-inventory-badge {
  color: #047857;
  background: #d1fae5;
}

.sale-inventory-row-imported .sale-inventory-badge {
  color: #b45309;
  background: #fef3c7;
}

.sale-inventory-row-available .sale-inventory-badge {
  color: #475569;
  background: #e2e8f0;
}

#sale-agent-listing-rows small {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#sale-campaign-listings {
  min-height: 136px;
}

.sale-product-form {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sale-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sale-product-heading h3 {
  margin: 0;
  font-size: 22px;
}

.sale-product-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.sale-product-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 1.08fr) minmax(280px, 1fr);
  align-items: start;
  gap: 12px;
}

.sale-form-block {
  padding: 12px;
  border: 1px solid rgba(220, 226, 220, 0.72);
  border-radius: 8px;
  background: #fbfcfa;
}

.sale-form-block h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.sale-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 9px;
}

.sale-form-block:nth-child(3) .sale-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sale-field-grid label,
.sale-form-block > label,
.sale-inline-section label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.sale-product-form input,
.sale-product-form select,
.sale-product-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 10px;
  font-size: 13px;
}

.sale-product-form textarea {
  min-height: 86px;
  resize: vertical;
}

.sale-product-form .field-wide {
  grid-column: 1 / -1;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 62px;
  place-items: center;
  gap: 4px;
  margin-top: 8px;
  border: 1px dashed #cfd8d0;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box strong {
  color: var(--text);
  font-size: 14px;
}

.upload-box span,
.form-hint,
.upload-count {
  color: var(--muted);
  font-size: 12px;
}

.upload-count {
  margin: 8px 0 0;
  text-align: right;
  font-weight: 760;
}

.sale-upload-preview {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sale-upload-preview:empty {
  display: none;
}

.sale-upload-preview.image-preview {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.sale-image-thumb {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #e4ebe7;
  border-radius: 7px;
  background: #fbfdfb;
}

.sale-image-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
  border-radius: 5px;
  background: #eef2ea;
}

.sale-image-thumb span {
  display: block;
  overflow: hidden;
  color: #52615b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-upload-preview.document-preview {
  grid-template-columns: 1fr;
}

.sale-file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #e4ebe7;
  border-radius: 7px;
  background: #fbfdfb;
}

.sale-file-chip strong {
  overflow: hidden;
  color: #24342e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-file-chip span {
  color: #6c7772;
  font-size: 11px;
  font-weight: 750;
}

.sale-inline-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sale-inline-section h4 {
  margin: 0;
}

.check-row {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.check-row input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.sale-product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sale-product-form > .form-status {
  margin: 12px 0 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 720px;
  margin: 0 clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid var(--border);
  background: #16201b;
  color: white;
}

.admin-sidebar h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.admin-sidebar-head {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-sidebar-head h2 {
  margin: 0;
}

.admin-logout {
  min-height: 36px;
  border: 1px solid rgba(255, 210, 210, 0.36);
  border-radius: 7px;
  background: rgba(255, 95, 95, 0.12);
  color: #ffd7d7;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.admin-logout:hover {
  background: rgba(255, 95, 95, 0.2);
}

.admin-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
  font-weight: 760;
  padding: 0 12px;
}

.admin-tab.active,
.admin-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-main {
  padding: 24px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 15, 0.58);
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(10, 17, 12, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.review-config-form {
  margin-bottom: 18px;
}

.review-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.review-detail-grid h3,
.review-history h3 {
  margin: 0 0 10px;
}

.review-detail-grid p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.55;
}

.review-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.review-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.review-action-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
}

.review-action-form label {
  display: grid;
  gap: 7px;
  font-weight: 760;
}

.review-action-form textarea {
  min-height: 86px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
}

.review-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.review-history article {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
}

.review-history strong,
.review-history span,
.review-history p {
  display: block;
}

.review-history span,
.review-history p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lead-timeline {
  position: relative;
}

.lead-timeline-item {
  position: relative;
  padding-left: 40px;
}

.lead-timeline-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0d6f51;
  box-shadow: 0 0 0 4px #e8f5ef;
}

.lead-timeline-item.ai::before {
  background: #2563eb;
  box-shadow: 0 0 0 4px #eaf1ff;
}

.lead-timeline-item.appointment::before {
  background: #b7791f;
  box-shadow: 0 0 0 4px #fff7e6;
}

.lead-timeline-item.deal::before,
.lead-timeline-item.status::before {
  background: #8b5cf6;
  box-shadow: 0 0 0 4px #f3edff;
}

.openclaw-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.openclaw-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ai-provider-config {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.ai-provider-master {
  display: grid;
  grid-template-columns: minmax(240px, 360px) auto;
  gap: 12px;
  align-items: end;
}

.ai-provider-master label,
.ai-provider-card label,
.ai-bot-model-row {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-provider-card,
.ai-bot-model-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
}

.ai-provider-card h3,
.ai-bot-model-card h3 {
  margin: 0;
  font-size: 18px;
}

.provider-key-state {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
}

.provider-key-state.ok {
  color: #0b6f51;
}

.provider-key-state.warn {
  color: #a35a0a;
}

.router9-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.router9-status-panel {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(11, 111, 81, 0.22);
  border-radius: 8px;
  background: #eef8f3;
}

.router9-status-panel strong {
  color: #0b4f3d;
}

.router9-status-panel span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.router9-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ren-chat-widget {
  position: fixed;
  right: 22px;
  left: auto;
  bottom: 22px;
  z-index: 80;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}

.ren-chat-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 64px;
  height: 64px;
  margin-right: auto;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 27%),
    linear-gradient(145deg, #10a56d 0%, #08704e 58%, #044a35 100%);
  color: #fff;
  box-shadow:
    0 16px 36px rgba(8, 73, 54, 0.28),
    0 0 0 0 rgba(16, 165, 109, 0.32);
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  animation: ren-chat-pulse 3.6s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ren-chat-toggle::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(16, 165, 109, 0.28);
  border-radius: inherit;
  animation: ren-chat-ring 3.6s ease-out infinite;
}

.ren-chat-toggle::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #72e7a4;
  box-shadow: 0 0 12px rgba(114, 231, 164, 0.85);
}

.ren-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 46px rgba(8, 73, 54, 0.34),
    0 0 0 8px rgba(16, 165, 109, 0.1);
}

.ren-chat-toggle span {
  display: block;
  letter-spacing: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.ren-chat-toggle span:first-child {
  font-size: 12px;
}

.ren-chat-toggle span:last-child {
  font-size: 13px;
}

@keyframes ren-chat-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 16px 36px rgba(8, 73, 54, 0.28),
      0 0 0 0 rgba(16, 165, 109, 0.22);
  }
  50% {
    transform: translateY(-1px) scale(1.035);
    box-shadow:
      0 20px 44px rgba(8, 73, 54, 0.34),
      0 0 0 11px rgba(16, 165, 109, 0.08);
  }
}

@keyframes ren-chat-ring {
  0% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.ren-chat-panel {
  display: none;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 110px));
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 35, 30, 0.22);
  overflow: hidden;
}

.ren-chat-widget.open .ren-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.ren-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #0d6f51;
  color: #fff;
}

.ren-chat-panel header strong,
.ren-chat-panel header span {
  display: block;
}

.ren-chat-panel header span {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.82;
}

.ren-chat-panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.ren-chat-stream {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: #f7faf7;
}

.ren-chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.ren-chat-message-rich {
  max-width: 96%;
}

.ren-chat-message.user {
  justify-self: end;
  background: #0d6f51;
  color: #fff;
  border-color: #0d6f51;
}

.ren-chat-research {
  border-color: rgba(13, 111, 81, 0.18);
  background: #eef8f4;
}

.ren-chat-dots::after {
  content: "...";
  display: inline-block;
  width: 22px;
  overflow: hidden;
  vertical-align: bottom;
  animation: ren-chat-thinking 1.1s steps(4, end) infinite;
}

@keyframes ren-chat-thinking {
  0% {
    width: 0;
  }
  100% {
    width: 22px;
  }
}

.ren-chat-message span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
}

.ren-chat-message p,
.ren-chat-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.ren-chat-text {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.ren-chat-text ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ren-chat-text li {
  margin: 0;
}

.ren-chat-text strong {
  color: #075f45;
  font-weight: 900;
}

.ren-chat-message.user .ren-chat-text strong {
  color: #ffffff;
}

.ren-chat-listings {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ren-chat-product-table-wrap {
  max-width: 100%;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dce2dc;
  border-radius: 8px;
  background: #fbfcfa;
}

.ren-chat-table-title {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border-bottom: 1px solid #e2e8e1;
}

.ren-chat-table-title strong {
  color: #075f45;
  font-size: 10.5px;
  font-weight: 900;
}

.ren-chat-table-title span {
  color: var(--muted);
  font-size: 9px;
}

.ren-chat-product-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 9.5px;
  line-height: 1.2;
}

.ren-chat-product-table th,
.ren-chat-product-table td {
  padding: 6px 5px;
  border-bottom: 1px solid #e5eae4;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.ren-chat-product-table th {
  background: #eef8f3;
  color: #075f45;
  font-weight: 900;
  white-space: normal;
  font-size: 9px;
  line-height: 1.1;
}

.ren-chat-product-table th:nth-child(1),
.ren-chat-product-table td:nth-child(1) {
  width: 29%;
}

.ren-chat-product-table th:nth-child(2),
.ren-chat-product-table td:nth-child(2) {
  width: 20%;
}

.ren-chat-product-table th:nth-child(3),
.ren-chat-product-table td:nth-child(3) {
  width: 18%;
}

.ren-chat-product-table th:nth-child(4),
.ren-chat-product-table td:nth-child(4) {
  width: 17%;
}

.ren-chat-product-table th:nth-child(5),
.ren-chat-product-table td:nth-child(5) {
  width: 16%;
}

.ren-chat-product-table tr:last-child td {
  border-bottom: 0;
}

.ren-chat-product-table tbody tr:hover {
  background: #f1f8f4;
}

.ren-chat-product-table tbody tr {
  cursor: pointer;
}

.ren-chat-product-table a {
  display: grid;
  gap: 1px;
  color: #0d6f51;
  text-decoration: none;
}

.ren-chat-product-table a strong {
  color: inherit;
  font-size: 9.5px;
  font-weight: 900;
}

.ren-chat-product-table a span {
  display: -webkit-box;
  overflow: hidden;
  color: #20362f;
  font-size: 8.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ren-chat-listing-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
  border: 1px solid #dce2dc;
  border-radius: 8px;
  background: #f9fbf8;
}

.ren-chat-listing-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}

.ren-chat-listing-card strong,
.ren-chat-listing-card span,
.ren-chat-listing-card b,
.ren-chat-listing-card small {
  display: block;
}

.ren-chat-listing-card strong {
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.ren-chat-listing-card span,
.ren-chat-listing-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ren-chat-listing-card b {
  margin: 3px 0;
  color: #0d6f51;
  font-size: 12px;
}

.ren-chat-listing-card a,
.ren-chat-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 7px;
  border: 1px solid #0d6f51;
  color: #0d6f51;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.ren-chat-listing-card a {
  margin-top: 7px;
  padding: 0 9px;
}

.ren-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.ren-chat-question-choices {
  display: grid;
  gap: 6px;
}

.ren-chat-question-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(13, 111, 81, 0.28);
  border-radius: 7px;
  background: #eef8f3;
  color: #0d6f51;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ren-chat-question-toggle span {
  margin-left: 8px;
  color: inherit;
  opacity: 1;
}

.ren-chat-question-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.ren-chat-question-list {
  display: grid;
  gap: 6px;
}

.ren-chat-question-list[hidden] {
  display: none;
}

.ren-chat-question-choice {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: start;
  gap: 7px;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(13, 111, 81, 0.26);
  border-radius: 7px;
  background: #ffffff;
  color: #12372c;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ren-chat-question-choice:hover,
.ren-chat-question-choice:focus-visible {
  border-color: #0d6f51;
  background: #eef8f3;
  outline: none;
}

.ren-chat-question-choice.selected {
  border-color: #0d6f51;
  background: #eef8f3;
}

.ren-chat-question-choice:active {
  transform: translateY(1px);
}

.ren-chat-question-choice span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  margin-bottom: 0;
  border: 2px solid #0d6f51;
  border-radius: 5px;
  background: #ffffff;
  opacity: 1;
}

.ren-chat-question-choice.selected span {
  background: #0d6f51;
}

.ren-chat-question-choice.selected span::after {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.ren-chat-question-choice b {
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.ren-chat-actions a {
  padding: 0 10px;
  background: #eef6f1;
}

.ren-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.ren-chat-question-panel {
  grid-column: 1 / -1;
}

.ren-chat-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.ren-chat-form #ren-chat-send {
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.ren-chat-form #ren-chat-send:disabled {
  opacity: 0.62;
  cursor: wait;
}

.ai-bot-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-bot-model-row {
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 0.7fr) minmax(160px, 1fr);
  align-items: center;
}

.ai-bot-manager {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ai-bot-list {
  display: grid;
  gap: 8px;
}

.ai-bot-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.ai-bot-list-item.active {
  border-color: var(--accent);
  background: #eef8f3;
}

.ai-bot-list-item span,
.ai-bot-list-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ai-bot-editor {
  display: grid;
  gap: 12px;
}

.ai-bot-two-cols,
.ai-bot-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.ai-ops-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.ai-ops-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.ai-ops-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-ops-table td,
.ai-ops-table th {
  vertical-align: top;
}

.ai-feature-badge {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  white-space: nowrap;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.ai-feature-badge.ready {
  background: rgba(18, 122, 89, 0.12);
  color: #0b6f51;
}

.ai-feature-badge.partial,
.ai-feature-badge.manual {
  background: rgba(216, 122, 24, 0.13);
  color: #9a4f07;
}

.ai-feature-badge.config {
  background: rgba(41, 92, 170, 0.12);
  color: #295caa;
}

.ai-feature-badge.missing {
  background: rgba(180, 54, 54, 0.11);
  color: #a23434;
}

.ai-config-item.ok {
  border-color: rgba(18, 122, 89, 0.22);
  background: rgba(18, 122, 89, 0.06);
}

.ai-config-item.warn {
  border-color: rgba(216, 122, 24, 0.25);
  background: rgba(216, 122, 24, 0.06);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.admin-note {
  padding: 18px;
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.admin-form textarea,
.admin-form .button,
.admin-form .form-status {
  grid-column: 1 / -1;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f4f6f2;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.status-select {
  min-width: 130px;
  padding: 8px;
}

.crm-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 220px));
  gap: 10px;
  margin-bottom: 16px;
}

.crm-subtabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f8f5;
}

.crm-subtab {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.crm-subtab.active,
.crm-subtab:hover {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 5px rgba(19, 43, 32, 0.08);
}

.crm-view {
  display: none;
}

.crm-view.active {
  display: block;
}

.mini-input {
  min-width: 180px;
  margin-top: 8px;
  padding: 8px;
  font-size: 13px;
}

.crm-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.crm-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #f1d4a6;
  border-radius: 8px;
  background: #fff8eb;
}

.crm-alert.calm {
  border-color: var(--border);
  background: #f7fbf6;
}

.crm-alert span {
  color: var(--muted);
  font-size: 14px;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-column {
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f8f5;
}

.pipeline-column h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 15px;
}

.pipeline-column h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}

.pipeline-card,
.pipeline-empty,
.stack-item {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.pipeline-card {
  margin-bottom: 8px;
}

.pipeline-card span,
.pipeline-card small,
.pipeline-empty,
.stack-item span {
  color: var(--muted);
  font-size: 13px;
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

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

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

.ai-result {
  display: grid;
  gap: 14px;
  min-height: 180px;
}

.ai-result:empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.ai-score-card,
.ai-block,
.ai-match {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.ai-score-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.ai-score-card span,
.ai-score-card em {
  color: var(--muted);
  font-weight: 750;
}

.ai-score-card strong {
  color: var(--accent);
  font-size: 34px;
}

.ai-block {
  padding: 18px;
}

.ai-block h3 {
  margin-bottom: 10px;
}

.ai-block ul,
.ai-block ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.ai-match {
  display: grid;
  gap: 5px;
  padding: 12px;
  margin-top: 8px;
}

.ai-match span,
.ai-match p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content-pre {
  white-space: pre-wrap;
  margin: 0;
  color: var(--muted);
  font-family: inherit;
  line-height: 1.55;
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(440px, 100%);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 16px;
}

.auth-modal.open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 30, 0.72);
  backdrop-filter: blur(4px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(8, 17, 30, 0.28);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.auth-dialog h2 {
  margin: 4px 36px 16px 0;
  font-size: 24px;
}

.auth-account-type {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  margin: -6px 0 16px;
  padding: 0 12px;
  border: 1px solid rgba(18, 122, 89, 0.18);
  border-radius: 999px;
  background: rgba(18, 122, 89, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted-surface, #f5f7fb);
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.auth-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.auth-form {
  display: none;
  gap: 13px;
}

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

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.auth-form em {
  color: #d64545;
  font-style: normal;
}

.auth-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.auth-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

.auth-link,
.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.auth-link button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.owner-listing-page {
  min-height: 100vh;
  background: #f6f8f7;
}

.owner-post-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px rgba(16, 24, 40, 0.05);
}

.owner-post-shell {
  width: min(100% - 40px, 1120px);
  margin: 28px auto 56px;
}

.owner-post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid #dfe8e4;
  border-radius: 8px;
  background: #0a4636;
  color: #ffffff;
}

.owner-post-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #84e1bc;
  font-size: 13px;
  font-weight: 850;
}

.owner-post-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.04;
}

.owner-post-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d8eee6;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.owner-post-hero ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-post-hero li {
  min-height: 42px;
  padding: 11px 14px;
  border-left: 3px solid #f2c94c;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.owner-post-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.owner-post-section,
.owner-post-submit {
  border: 1px solid #e1e8e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.035);
}

.owner-post-section {
  padding: 24px;
}

.owner-post-section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.owner-post-section-title > strong {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #e8f6ef;
  color: #08704e;
  font-size: 14px;
  font-weight: 900;
}

.owner-post-section-title h2 {
  margin: 0;
  color: #18241f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.owner-post-section-title p {
  margin: 5px 0 0;
  color: #66726d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

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

.owner-post-grid label,
.owner-post-note {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #18241f;
  font-size: 13px;
  font-weight: 850;
}

.owner-post-grid label em {
  color: #d64545;
  font-style: normal;
}

.owner-post-grid .field-wide {
  grid-column: 1 / -1;
}

.owner-post-field {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid #dce5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #1683f3;
  font-weight: 900;
}

.owner-post-field input,
.owner-post-field select,
.owner-post-note textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26312d;
  font: inherit;
  font-weight: 650;
}

.owner-post-note {
  margin-top: 16px;
}

.owner-post-note textarea {
  min-height: 118px;
  padding: 14px;
  border: 1px solid #dce5e1;
  border-radius: 7px;
  resize: vertical;
}

.owner-post-upload {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 24px;
  border: 1px dashed #93b5a8;
  border-radius: 8px;
  background: #f7fbf9;
  color: #2b3a35;
  cursor: pointer;
  text-align: center;
}

.owner-post-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.owner-post-upload span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #08704e;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
}

.owner-post-upload strong {
  font-size: 15px;
  font-weight: 900;
}

.owner-post-upload small {
  max-width: 520px;
  margin-top: 7px;
  color: #66726d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.owner-image-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.owner-image-preview article {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e8e5;
  border-radius: 7px;
  aspect-ratio: 1 / 0.76;
  background: #eef2f0;
}

.owner-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-image-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.74);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.owner-post-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
}

.owner-post-submit strong,
.owner-post-submit span {
  display: block;
}

.owner-post-submit strong {
  color: #18241f;
  font-size: 15px;
  font-weight: 900;
}

.owner-post-submit span {
  margin-top: 4px;
  color: #66726d;
  font-size: 13px;
  font-weight: 650;
}

.owner-post-submit .button {
  min-width: 220px;
  min-height: 48px;
  justify-content: center;
}

.owner-post-submit .form-status {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 820px) {
  .owner-post-hero,
  .owner-post-submit {
    grid-template-columns: 1fr;
  }

  .owner-post-grid,
  .owner-image-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-post-submit .button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .owner-post-shell {
    width: min(100% - 24px, 1120px);
  }

  .owner-post-hero,
  .owner-post-section,
  .owner-post-submit {
    padding: 18px;
  }

  .owner-post-grid,
  .owner-image-preview {
    grid-template-columns: 1fr;
  }
}

.owner-listing-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  padding: 12px;
}

.owner-listing-modal.open {
  display: grid;
}

.owner-listing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 30, 0.74);
  backdrop-filter: blur(4px);
}

.owner-listing-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(8, 17, 30, 0.3);
}

.owner-listing-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.owner-listing-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 46px 24px 12px;
  border-bottom: 1px solid #edf0ee;
}

.owner-listing-progress span,
.owner-listing-progress i {
  height: 4px;
  border-radius: 999px;
}

.owner-listing-progress span {
  background: #1c82ee;
}

.owner-listing-progress i {
  background: #eef1f4;
}

.owner-listing-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.owner-listing-title {
  display: grid;
  gap: 8px;
}

.owner-listing-title h2 {
  margin: 0;
  color: #101828;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
}

.owner-listing-title p,
.owner-listing-note {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

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

.owner-listing-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #101828;
  font-size: 14px;
  font-weight: 750;
}

.owner-listing-form label em {
  color: #d64545;
  font-style: normal;
}

.owner-listing-form .field-wide {
  grid-column: 1 / -1;
}

.owner-listing-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid #e4e8ee;
  border-radius: 7px;
  background: #ffffff;
  color: #1683f3;
  font-weight: 850;
}

.owner-listing-field input,
.owner-listing-field select,
.owner-listing-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d2939;
  font: inherit;
  font-weight: 600;
}

.owner-listing-form textarea {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e4e8ee;
  border-radius: 7px;
  resize: vertical;
}

.owner-listing-form .button {
  min-height: 48px;
  border-radius: 7px;
}

.owner-listing-note {
  text-align: center;
}

@media (max-width: 640px) {
  .owner-listing-grid {
    grid-template-columns: 1fr;
  }

  .owner-listing-form {
    padding: 20px;
  }
}

@media (max-width: 1100px) {
  .hero,
  .sale-hero,
  .campaign-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .listing-grid,
  .metric-grid,
  .sale-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-list,
  .sale-page-list,
  .intent-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: auto;
  }

  .filters,
  .sale-toolbar,
  .listing-grid,
  .agent-list,
  .sale-page-list,
  .crm-grid,
  .ai-layout,
  .ai-admin-grid,
  .metric-grid,
  .admin-form,
  .crm-toolbar,
  .admin-form.compact {
    grid-template-columns: 1fr;
  }

  #lead-form,
  #ai-advisor-form,
  .sale-admin-form,
  .sale-product-grid,
  .sale-field-grid {
    grid-template-columns: 1fr;
  }

  .sale-product-form {
    padding: 14px;
  }

  .sale-product-heading,
  .sale-product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .intent-strip {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    border-right: 0;
  }
}

/* Premium homepage redesign */
body:not(.admin-page):not(.sale-admin-page) {
  background:
    radial-gradient(circle at 8% 8%, rgba(14, 107, 79, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f7f2 46%, #ffffff 100%);
}

body:not(.admin-page):not(.sale-admin-page) .site-header {
  height: 48px;
  padding: 7px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(22, 32, 27, 0.08);
  box-shadow: 0 10px 34px rgba(22, 32, 27, 0.06);
}

body:not(.admin-page):not(.sale-admin-page) .brand {
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #0b5c43;
  box-shadow: 0 8px 22px rgba(14, 107, 79, 0.26);
}

body:not(.admin-page):not(.sale-admin-page) .top-nav {
  gap: 17px;
  color: #52615a;
  font-size: 10px;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-call {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(22, 32, 27, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #0b6a4d;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(22, 32, 27, 0.06);
}

body:not(.admin-page):not(.sale-admin-page) .header-action,
body:not(.admin-page):not(.sale-admin-page) .button.primary {
  background: #0b6a4d;
  box-shadow: 0 12px 24px rgba(11, 106, 77, 0.2);
}

body:not(.admin-page):not(.sale-admin-page) .header-action {
  min-height: 30px;
  padding: 0 15px;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .button.secondary {
  border-color: rgba(22, 32, 27, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 32, 27, 0.06);
}

body:not(.admin-page):not(.sale-admin-page) .hero {
  position: relative;
  grid-template-columns: minmax(0, 0.94fr) minmax(350px, 0.78fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: 430px;
  padding: 34px clamp(18px, 5vw, 52px) 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 25, 18, 0.96) 0%, rgba(8, 25, 18, 0.82) 45%, rgba(8, 25, 18, 0.34) 100%),
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1900&q=84") center right / cover no-repeat;
}

body:not(.admin-page):not(.sale-admin-page) .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

body:not(.admin-page):not(.sale-admin-page) .hero-copy,
body:not(.admin-page):not(.sale-admin-page) .hero-ops {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin-bottom: 14px;
  color: #d9b65f;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 {
  max-width: 610px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.18;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
  display: block;
  margin: 0 0 18px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(74px, 8.6vw, 118px);
  font-weight: 800;
  font-style: normal;
  line-height: 0.84;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line span,
body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
  display: inline;
  font-style: normal;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
  color: #7cc261;
}

body:not(.admin-page):not(.sale-admin-page) .hero p {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

body:not(.admin-page):not(.sale-admin-page) .hero-actions {
  gap: 18px;
  margin-top: 30px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
  min-height: 52px;
  padding: 0 30px;
  font-size: 14px;
  border-radius: 8px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(500px, 100%);
  margin-top: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-proof div {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: #ffffff;
  font-size: 11px;
}

.hero-proof span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 760;
}

.hero-bottom-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(540px, 100%);
  margin-top: 22px;
}

.hero-bottom-stats strong,
.hero-bottom-stats span {
  display: block;
}

.hero-bottom-stats strong {
  color: #ffffff;
  font-size: 15px;
}

.hero-bottom-stats span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 8px;
}

.hero-ops {
  display: grid;
  gap: 0;
  align-self: center;
}

.ops-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 28, 22, 0.88);
  box-shadow: 0 22px 54px rgba(13, 32, 24, 0.22);
  backdrop-filter: blur(18px);
}

.ops-card.main {
  padding: 14px;
}

.ops-card .panel-topline {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.ops-card .panel-topline strong {
  color: #ffffff;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 12px;
}

.ops-metrics div {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ops-metrics strong,
.ops-metrics span {
  display: block;
}

.ops-metrics strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.ops-metrics span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  font-weight: 760;
}

.ops-subtitle {
  margin: 6px 0 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 850;
}

.lead-queue {
  display: grid;
  gap: 6px;
}

.lead-queue div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.lead-queue span,
.lead-queue small {
  min-width: 0;
}

.lead-queue small {
  color: #66726d;
  font-size: 8px;
}

.lead-queue span {
  font-size: 10px;
  font-weight: 780;
}

.lead-queue button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-height: 22px;
  border: 0;
  border-radius: 8px;
  background: rgba(14, 107, 79, 0.1);
  color: #0b6a4d;
  font-weight: 820;
  padding: 0 9px;
  font-size: 8px;
}

.network-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.network-title {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 850;
}

.network-ring {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  align-content: center;
  border: 9px solid rgba(124, 194, 97, 0.26);
  border-left-color: #7cc261;
  border-radius: 999px;
}

.network-ring strong {
  color: #7cc261;
  font-size: 20px;
  line-height: 1;
}

.network-ring span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 760;
}

.network-bars {
  display: grid;
  gap: 7px;
}

.network-bars p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
}

.network-bars strong {
  color: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip {
  grid-template-columns: minmax(260px, 1.2fr) repeat(6, minmax(118px, 1fr));
  align-items: stretch;
  margin-top: 0;
  margin-bottom: 0;
  background: rgba(22, 32, 27, 0.1);
  box-shadow: 0 12px 34px rgba(22, 32, 27, 0.06);
}

.intent-strip > div {
  padding: 13px 16px;
  background: #ffffff;
  color: #101b17;
}

.intent-strip > div strong,
.intent-strip > div span {
  display: block;
}

.intent-strip > div span {
  margin-top: 3px;
  color: #66726d;
  font-size: 13px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
  display: grid;
  min-height: 84px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  background: #ffffff;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 107, 79, 0.08);
  color: #0b6a4d;
  font-size: 12px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button small {
  color: #7a8580;
  font-size: 8px;
  font-weight: 650;
}

body:not(.admin-page):not(.sale-admin-page) .section {
  padding-top: clamp(24px, 4vw, 38px);
  padding-bottom: clamp(24px, 4vw, 38px);
}

body:not(.admin-page):not(.sale-admin-page) .section-heading h2,
.owner-band h2 {
  margin: 0;
  color: #101b17;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.02;
}

body:not(.admin-page):not(.sale-admin-page) .section-heading p,
.owner-band p {
  color: #5d6b64;
  font-size: 12px;
}

body:not(.admin-page):not(.sale-admin-page) .filters {
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(22, 32, 27, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(22, 32, 27, 0.06);
}

body:not(.admin-page):not(.sale-admin-page) .filters input,
body:not(.admin-page):not(.sale-admin-page) .filters select {
  min-height: 34px;
  border: 0;
  border-right: 1px solid rgba(22, 32, 27, 0.08);
  border-radius: 0;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .filters select:last-child {
  border-right: 0;
}

body:not(.admin-page):not(.sale-admin-page) .listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card,
body:not(.admin-page):not(.sale-admin-page) .agent-card,
body:not(.admin-page):not(.sale-admin-page) .sale-page-card {
  border: 1px solid rgba(22, 32, 27, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(22, 32, 27, 0.08);
}

body:not(.admin-page):not(.sale-admin-page) .listing-card {
  position: relative;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card img {
  height: 134px;
}

.listing-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(12, 28, 22, 0.32);
  color: #ffffff;
  cursor: pointer;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body {
  gap: 5px;
  padding: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  font-size: 11px;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .price {
  font-size: 13px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body p,
body:not(.admin-page):not(.sale-admin-page) .listing-meta,
body:not(.admin-page):not(.sale-admin-page) .tag {
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card .button {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .tag {
  border-color: rgba(14, 107, 79, 0.12);
  background: rgba(14, 107, 79, 0.07);
  color: #0b6a4d;
}

/* Reference-style compact home browse section */
body:not(.admin-page):not(.sale-admin-page) {
  background: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip,
body:not(.admin-page):not(.sale-admin-page) #listings {
  width: min(100% - 28px, 1560px);
  margin-right: auto;
  margin-left: auto;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip {
  grid-template-columns: minmax(142px, 0.95fr) repeat(6, minmax(104px, 1fr));
  gap: 4px;
  margin-top: 4px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
  padding: 12px 2px 0 0;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div strong {
  max-width: 124px;
  color: #27312d;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.08;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div span {
  max-width: 126px;
  margin-top: 12px;
  color: #6d7772;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
  position: relative;
  min-height: 120px;
  padding: 18px 10px 20px;
  align-content: start;
  gap: 6px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(22, 32, 27, 0.04);
  color: #26312d;
  font-size: 10px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button::after {
  content: "›";
  position: absolute;
  bottom: 12px;
  left: 50%;
  color: #7b8581;
  font-size: 18px;
  font-weight: 500;
  transform: translateX(-50%);
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
  width: 24px;
  height: 24px;
  background: transparent;
  color: #0b6a4d;
  font-size: 18px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button small {
  color: #656f6a;
  font-size: 10px;
  font-weight: 650;
}

body:not(.admin-page):not(.sale-admin-page) #listings.section {
  padding: 25px 0 28px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
  align-items: center;
  margin-bottom: 16px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading h2 {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.1;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading p,
body:not(.admin-page):not(.sale-admin-page) #listings .filters {
  display: none;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  color: #27312d;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(22, 32, 27, 0.04);
}

body:not(.admin-page):not(.sale-admin-page) .listing-grid {
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card {
  border-color: #edf0ee;
  border-radius: 6px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card:first-child::after {
  content: "NỔI BẬT";
  position: absolute;
  top: 13px;
  left: 11px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: #d7b02f;
  color: #3e3510;
  font-size: 8px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card img {
  height: auto;
  aspect-ratio: 1.35 / 1;
}

body:not(.admin-page):not(.sale-admin-page) .listing-fav {
  top: 11px;
  right: 11px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(22, 32, 27, 0.16);
  font-size: 22px;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body {
  gap: 6px;
  padding: 11px 10px 12px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  min-height: 30px;
  color: #303a36;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body p {
  color: #77817c;
  font-size: 9px;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) .price {
  color: #0b6a4d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

body:not(.admin-page):not(.sale-admin-page) .listing-meta {
  gap: 5px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-meta:first-child {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #66726d;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-meta .tag + .tag::before {
  content: "= ";
}

.lead-ai-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 12px;
  align-items: start;
  background: #ffffff;
}

.lead-ai-section .form-card,
.lead-ai-section .ai-result {
  border-color: rgba(22, 32, 27, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(22, 32, 27, 0.08);
}

.lead-ai-section .form-title h3,
.lead-ai-section h3 {
  margin-top: 0;
  color: #10231c;
  font-size: 17px;
}

.lead-ai-section .form-title p {
  color: #66726d;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  gap: 7px 9px;
  padding: 12px;
}

body:not(.admin-page):not(.sale-admin-page) label {
  gap: 5px;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) input,
body:not(.admin-page):not(.sale-admin-page) select,
body:not(.admin-page):not(.sale-admin-page) textarea {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) textarea {
  min-height: 48px;
}

body:not(.admin-page):not(.sale-admin-page) .form-card .button {
  min-height: 32px;
  font-size: 10px;
}

.ai-form-column {
  display: grid;
  gap: 14px;
}

.owner-form-section {
  background: #ffffff;
}

.owner-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.62fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(22, 32, 27, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, #0d2a1f 0%, #0d2a1f 58%, rgba(13, 42, 31, 0.08) 58%),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1600&q=82") right center / 48% 100% no-repeat;
  box-shadow: 0 26px 80px rgba(22, 32, 27, 0.1);
}

.owner-band ul {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #ffffff;
  font-weight: 780;
}

.owner-band li {
  padding: 8px 10px;
  border-left: 3px solid #c99b4f;
  background: rgba(255, 255, 255, 0.08);
}

.owner-band > div h2,
.owner-band > div p {
  color: #ffffff;
}

.owner-band .form-card {
  box-shadow: 0 22px 70px rgba(22, 32, 27, 0.12);
}

.owner-band .form-card {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) #agents {
  background: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) #sale-pages {
  background: #f7f9f5;
}

body:not(.admin-page):not(.sale-admin-page) #sale-pages h2,
body:not(.admin-page):not(.sale-admin-page) #sale-pages p {
  color: #101b17;
}

body:not(.admin-page):not(.sale-admin-page) #sale-pages p {
  opacity: 0.72;
}

.agent-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agent-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 13px;
}

.agent-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 107, 79, 0.08);
  color: #0b6a4d;
  font-weight: 900;
}

.signup-band .sale-page-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body:not(.admin-page):not(.sale-admin-page) .agent-card h3,
body:not(.admin-page):not(.sale-admin-page) .sale-page-card h3 {
  margin: 0;
  font-size: 12px;
}

body:not(.admin-page):not(.sale-admin-page) .agent-card p,
body:not(.admin-page):not(.sale-admin-page) .sale-page-card p {
  margin: 0;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .agent-card .button,
body:not(.admin-page):not(.sale-admin-page) .sale-page-card .button {
  min-height: 28px;
  font-size: 9px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 32px;
  padding: 28px clamp(18px, 5vw, 52px);
  background: #092a20;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p {
  max-width: 320px;
  font-size: 10px;
}

.site-footer strong,
.site-footer a,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 10px;
  color: #ffffff;
}

.site-footer a,
.site-footer span {
  margin-top: 7px;
  font-size: 10px;
}

.site-footer .brand {
  color: #ffffff;
}

@media (max-width: 1180px) {
  body:not(.admin-page):not(.sale-admin-page) .hero,
  .owner-band,
  .lead-ai-section {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intent-strip > div {
    grid-column: 1 / -1;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-list,
  .signup-band .sale-page-list,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:not(.admin-page):not(.sale-admin-page) .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    font-size: 38px;
    line-height: 1;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 span {
    font-size: 34px;
  }

  .hero-proof,
  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) .listing-grid,
  .agent-list,
  .signup-band .sale-page-list,
  .site-footer,
  .lead-queue div {
    grid-template-columns: 1fr;
  }

  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-tools {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    display: none;
  }

  .owner-band {
    background: #0d2a1f;
  }

  .lead-queue button {
    grid-row: auto;
    grid-column: auto;
  }

  body:not(.admin-page):not(.sale-admin-page) .filters {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .filters input,
  body:not(.admin-page):not(.sale-admin-page) .filters select {
    border-right: 0;
    border-bottom: 1px solid rgba(22, 32, 27, 0.08);
  }
}

/* Desktop readability pass for the public homepage */
@media (min-width: 1181px) {
  body:not(.admin-page):not(.sale-admin-page) {
    background:
      linear-gradient(180deg, #ffffff 0%, #f5f7f3 44%, #ffffff 100%);
  }

  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 68px;
    padding: 0 clamp(32px, 5vw, 84px);
  }

  body:not(.admin-page):not(.sale-admin-page) .brand {
    gap: 12px;
    font-size: 16px;
  }

  body:not(.admin-page):not(.sale-admin-page) .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 17px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    gap: clamp(18px, 2vw, 30px);
    font-size: 14px;
    font-weight: 700;
  }

  body:not(.admin-page):not(.sale-admin-page) .header-action {
    min-height: 42px;
    padding: 0 22px;
    font-size: 14px;
  }

  .header-call {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    grid-template-columns: minmax(520px, 0.98fr) minmax(430px, 0.78fr);
    gap: clamp(34px, 4vw, 76px);
    min-height: min(650px, calc(100vh - 138px));
    padding: clamp(46px, 5vw, 76px) clamp(36px, 5vw, 84px) 42px;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 720px;
    font-size: clamp(50px, 4.7vw, 70px);
    line-height: 1.02;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 span {
    margin-bottom: 6px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 610px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.65;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    gap: 14px;
    margin-top: 24px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    min-height: 50px;
    padding: 0 24px;
    font-size: 15px;
  }

  .hero-proof {
    gap: 22px;
    width: min(650px, 100%);
    margin-top: 24px;
  }

  .hero-proof strong {
    font-size: 15px;
  }

  .hero-proof span {
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-bottom-stats {
    width: min(690px, 100%);
    gap: 26px;
    margin-top: 28px;
  }

  .hero-bottom-stats strong {
    font-size: 24px;
  }

  .hero-bottom-stats span {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
  }

  .ops-card.main {
    padding: 20px;
  }

  .ops-card .panel-topline {
    padding-bottom: 18px;
    font-size: 14px;
  }

  .ops-metrics {
    gap: 14px;
    margin: 16px 0 18px;
  }

  .ops-metrics strong {
    font-size: 28px;
  }

  .ops-metrics span {
    font-size: 12px;
    line-height: 1.3;
  }

  .ops-subtitle {
    margin: 12px 0 12px;
    font-size: 14px;
  }

  .lead-queue {
    gap: 10px;
  }

  .lead-queue div {
    gap: 6px 18px;
    padding: 12px 14px;
  }

  .lead-queue span {
    font-size: 14px;
  }

  .lead-queue small {
    font-size: 12px;
  }

  .lead-queue button {
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .network-box {
    grid-template-columns: 132px 1fr;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .network-ring {
    width: 104px;
    height: 104px;
    border-width: 11px;
  }

  .network-ring strong {
    font-size: 30px;
  }

  .network-ring span,
  .network-bars p {
    font-size: 13px;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: minmax(260px, 1.1fr) repeat(6, minmax(128px, 1fr));
    margin-right: clamp(36px, 5vw, 84px);
    margin-left: clamp(36px, 5vw, 84px);
  }

  .intent-strip > div {
    padding: 24px 26px;
  }

  .intent-strip > div strong {
    font-size: 24px;
    line-height: 1.18;
  }

  .intent-strip > div span {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
    min-height: 130px;
    gap: 8px;
    padding: 18px 12px;
    font-size: 15px;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip button small {
    font-size: 13px;
  }

  body:not(.admin-page):not(.sale-admin-page) .section {
    padding: clamp(58px, 6vw, 86px) clamp(36px, 5vw, 84px);
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading {
    margin-bottom: 34px;
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading h2,
  .owner-band h2 {
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.08;
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading p,
  .owner-band p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.65;
  }

  body:not(.admin-page):not(.sale-admin-page) .filters {
    grid-template-columns: minmax(280px, 1fr) 190px 210px;
    min-width: min(760px, 100%);
    padding: 8px;
  }

  body:not(.admin-page):not(.sale-admin-page) .filters input,
  body:not(.admin-page):not(.sale-admin-page) .filters select {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-grid {
    gap: 22px;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-card img {
    height: auto;
    aspect-ratio: 16 / 11;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-body {
    gap: 10px;
    padding: 18px;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
    min-height: 44px;
    font-size: 18px;
    line-height: 1.25;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-body p,
  body:not(.admin-page):not(.sale-admin-page) .listing-meta,
  body:not(.admin-page):not(.sale-admin-page) .tag {
    font-size: 13px;
    line-height: 1.4;
  }

  body:not(.admin-page):not(.sale-admin-page) .price {
    font-size: 23px;
  }

  .listing-fav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lead-ai-section {
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    gap: 26px;
  }

  body:not(.admin-page):not(.sale-admin-page) #lead-form,
  body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
    gap: 16px 14px;
    padding: 28px;
  }

  .lead-ai-section .form-title h3,
  .lead-ai-section h3 {
    font-size: 26px;
    line-height: 1.15;
  }

  .lead-ai-section .form-title p {
    font-size: 14px;
    line-height: 1.55;
  }

  body:not(.admin-page):not(.sale-admin-page) label {
    gap: 7px;
    font-size: 13px;
    line-height: 1.35;
  }

  body:not(.admin-page):not(.sale-admin-page) input,
  body:not(.admin-page):not(.sale-admin-page) select,
  body:not(.admin-page):not(.sale-admin-page) textarea {
    min-height: 46px;
    padding: 11px 13px;
    font-size: 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) textarea {
    min-height: 92px;
  }

  body:not(.admin-page):not(.sale-admin-page) .form-card .button {
    min-height: 46px;
    font-size: 14px;
  }

  .owner-band {
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.58fr);
    min-height: 280px;
    padding: clamp(34px, 4vw, 54px);
  }

  .owner-band ul {
    gap: 10px;
    margin-top: 24px;
    font-size: 15px;
  }

  .agent-list,
  .signup-band .sale-page-list {
    gap: 18px;
  }

  .agent-card,
  .sale-page-card {
    padding: 22px;
  }

  body:not(.admin-page):not(.sale-admin-page) .agent-card h3,
  body:not(.admin-page):not(.sale-admin-page) .sale-page-card h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  body:not(.admin-page):not(.sale-admin-page) .agent-card p,
  body:not(.admin-page):not(.sale-admin-page) .sale-page-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  body:not(.admin-page):not(.sale-admin-page) .agent-card .button,
  body:not(.admin-page):not(.sale-admin-page) .sale-page-card .button {
    min-height: 42px;
    font-size: 14px;
  }

  .site-footer {
    padding: 46px clamp(36px, 5vw, 84px);
  }

  .site-footer p,
  .site-footer a,
  .site-footer span {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* Mobile stability pass: keep the public site readable on narrow phones. */
@media (max-width: 680px) {
  body:not(.admin-page):not(.sale-admin-page) {
    overflow-x: hidden;
  }

  body:not(.admin-page):not(.sale-admin-page) *,
  body:not(.admin-page):not(.sale-admin-page) *::before,
  body:not(.admin-page):not(.sale-admin-page) *::after {
    box-sizing: border-box;
  }

  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 58px;
    padding: 0 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav,
  body:not(.admin-page):not(.sale-admin-page) .header-action {
    display: none;
  }

  .ren-chat-widget {
    right: 14px !important;
    bottom: 86px;
  }

  .ren-chat-widget.open {
    bottom: 14px;
  }

  .ren-chat-widget.open .ren-chat-toggle {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 30px 18px 24px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(5, 45, 34, 0.94) 0%, rgba(5, 45, 34, 0.78) 58%, rgba(5, 45, 34, 0.48) 100%),
      url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=86") center / cover no-repeat;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-copy,
  body:not(.admin-page):not(.sale-admin-page) .hero-ops,
  body:not(.admin-page):not(.sale-admin-page) .ops-card.main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-ops {
    justify-self: stretch;
    margin-top: 180px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    display: block;
    max-width: 100%;
    margin: 0 0 12px;
    font-size: clamp(54px, 17vw, 68px);
    line-height: 0.88;
    white-space: nowrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    white-space: normal;
    text-align: center;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof div,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics div {
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .panel-topline,
  body:not(.admin-page):not(.sale-admin-page) .listing-price-row,
  body:not(.admin-page):not(.sale-admin-page) .network-bars p {
    min-width: 0;
    flex-wrap: wrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue div {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue time,
  body:not(.admin-page):not(.sale-admin-page) .lead-queue button {
    grid-column: 2;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-box {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-bars {
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) #listings,
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
  body:not(.admin-page):not(.sale-admin-page) #agents,
  body:not(.admin-page):not(.sale-admin-page) .signup-band {
    width: calc(100% - 24px);
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) #lead-form,
  body:not(.admin-page):not(.sale-admin-page) .owner-band,
  body:not(.admin-page):not(.sale-admin-page) .partner-role-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading {
    align-items: stretch;
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
    flex-direction: column;
  }

  body:not(.admin-page):not(.sale-admin-page) .view-all-link {
    margin-left: 0;
    justify-content: center;
  }

  body:not(.admin-page):not(.sale-admin-page) h1,
  body:not(.admin-page):not(.sale-admin-page) h2,
  body:not(.admin-page):not(.sale-admin-page) h3,
  body:not(.admin-page):not(.sale-admin-page) p,
  body:not(.admin-page):not(.sale-admin-page) a,
  body:not(.admin-page):not(.sale-admin-page) button,
  body:not(.admin-page):not(.sale-admin-page) span,
  body:not(.admin-page):not(.sale-admin-page) strong,
  body:not(.admin-page):not(.sale-admin-page) small {
    overflow-wrap: anywhere;
  }
}

/* Final chat mobile override: keep the opened chatbot tall under the top header. */
@media (max-width: 680px) {
  .ren-chat-widget.open {
    top: 66px;
    right: 8px !important;
    bottom: 8px;
    left: 8px;
    display: grid;
  }

  .ren-chat-widget.open .ren-chat-panel {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 90;
  }

  .ren-chat-widget.open .ren-chat-stream {
    min-height: 0;
  }

  .ren-chat-widget.open .ren-chat-form {
    padding: 10px 12px 12px;
  }
}

/* Absolute last chatbot override for phone browsers with wide CSS viewport. */
@media (max-width: 1024px) {
  .ren-chat-widget.open {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    z-index: 120 !important;
  }

  .ren-chat-widget.open .ren-chat-panel {
    position: fixed !important;
    inset: 8px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    z-index: 121 !important;
  }

  .ren-chat-widget.open .ren-chat-toggle {
    display: none !important;
  }

  .ren-chat-widget.open .ren-chat-stream {
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}

/* Absolute last chatbot override for phone browsers with wide CSS viewport. */
@media (max-width: 1024px) {
  .ren-chat-widget.open {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    z-index: 120 !important;
  }

  .ren-chat-widget.open .ren-chat-panel {
    position: fixed !important;
    inset: 8px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    z-index: 121 !important;
  }

  .ren-chat-widget.open .ren-chat-toggle {
    display: none !important;
  }

  .ren-chat-widget.open .ren-chat-stream {
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}

/* Wide mobile/tablet fallback: some in-app browsers report a wider CSS viewport. */
@media (max-width: 1024px) {
  .ren-chat-widget.open .ren-chat-panel {
    position: fixed !important;
    top: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 120;
  }

  .ren-chat-widget.open .ren-chat-toggle {
    display: none !important;
  }
}

/* Last override: mobile chatbot must fill vertical space below the header. */
@media (max-width: 680px) {
  .ren-chat-widget.open .ren-chat-panel {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 90;
  }
}

/* Hard mobile override: the open chat panel itself owns the viewport height. */
@media (max-width: 680px) {
  .ren-chat-widget.open .ren-chat-panel {
    position: fixed;
    top: 66px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    z-index: 90;
  }
}

@media (max-width: 680px) {
  .ren-chat-widget.open {
    top: 66px;
    right: 8px !important;
    bottom: 8px;
    left: 8px;
    display: grid;
  }

  .ren-chat-widget.open .ren-chat-panel {
    width: 100%;
    height: calc(100dvh - 74px);
    max-height: calc(100dvh - 74px);
    margin: 0;
  }

  .ren-chat-widget.open .ren-chat-stream {
    min-height: 0;
  }

  .ren-chat-widget.open .ren-chat-form {
    padding: 10px 12px 12px;
  }
}

@media (min-width: 800px) and (max-width: 1180px) {
  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 58px;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.97);
  }

  body:not(.admin-page):not(.sale-admin-page) .brand {
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
  }

  body:not(.admin-page):not(.sale-admin-page) .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: 13px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    gap: 18px;
    font-size: 10px;
    font-weight: 800;
  }

  body:not(.admin-page):not(.sale-admin-page) .header-action {
    min-height: 36px;
    padding: 0 19px;
    font-size: 11px;
  }

  .header-call {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    grid-template-columns: minmax(320px, 0.86fr) minmax(320px, 0.82fr);
    gap: 24px;
    align-items: center;
    min-height: calc(100vh - 58px);
    padding: 26px 32px 20px;
    background:
      linear-gradient(90deg, rgba(8, 23, 18, 0.93) 0%, rgba(8, 23, 18, 0.72) 42%, rgba(8, 23, 18, 0.12) 100%),
      url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=88") center right / cover no-repeat;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero::after {
    height: 0;
  }

  .hero-kicker {
    margin-bottom: 10px;
    color: #d6b14d;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 520px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    display: block;
    margin: 0 0 14px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 800;
    font-style: normal;
    line-height: 0.84;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line span,
  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
    display: inline;
    font-style: normal;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
    color: #7cc261;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 430px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.7;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    gap: 12px;
    margin-top: 20px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    min-height: 42px;
    padding: 0 22px;
    font-size: 11px;
    font-weight: 850;
  }

  .hero-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 450px;
    margin-top: 16px;
  }

  .hero-proof div {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 1px 6px;
    align-items: center;
    min-height: 42px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(9, 42, 32, 0.54);
  }

  .hero-proof i {
    grid-row: 1 / 3;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: rgba(124, 194, 97, 0.15);
    color: #9bd37c;
    font-style: normal;
    font-size: 10px;
  }

  .hero-proof strong {
    color: #ffffff;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.12;
  }

  .hero-proof span {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.15;
  }

  .hero-bottom-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 450px;
    margin-top: 15px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-bottom-stats strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
  }

  .hero-bottom-stats span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 8px;
    font-weight: 650;
    line-height: 1.2;
  }

  .hero-ops {
    justify-items: end;
  }

  .ops-card.main {
    width: min(370px, 100%);
    padding: 16px;
    border-radius: 8px;
    background: rgba(13, 29, 24, 0.91);
  }

  .ops-card .panel-topline {
    padding-bottom: 10px;
    font-size: 11px;
    font-weight: 850;
  }

  .ops-card .panel-topline strong {
    position: relative;
    color: rgba(255, 255, 255, 0.74);
    font-size: 9px;
    font-weight: 800;
  }

  .ops-card .panel-topline strong::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 999px;
    background: #41c978;
  }

  .ops-metrics {
    gap: 7px;
    margin: 11px 0 13px;
  }

  .ops-metrics div {
    min-height: 48px;
    padding: 8px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }

  .ops-metrics strong {
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
  }

  .ops-metrics span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 8.5px;
    font-weight: 700;
  }

  .ops-subtitle {
    margin: 2px 0 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 850;
  }

  .lead-queue {
    gap: 7px;
  }

  .lead-queue div {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    gap: 5px 9px;
    min-height: 48px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.96);
  }

  .lead-avatar {
    grid-row: 1 / 3;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    font-size: 0;
  }

  .lead-info {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .lead-info strong {
    color: #1e2a25;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
  }

  .lead-info small {
    color: #66726d;
    font-size: 8.5px;
    line-height: 1.15;
  }

  .lead-queue time {
    color: #89928e;
    font-size: 8.5px;
    white-space: nowrap;
  }

  .lead-queue button {
    grid-row: auto;
    grid-column: auto;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 5px;
    background: #0b6a4d;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 850;
  }

  .lead-all {
    display: inline-flex;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
  }

  .network-box {
    grid-template-columns: 82px 1fr;
    gap: 13px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .network-ring {
    width: 70px;
    height: 70px;
    border-width: 8px;
  }

  .network-ring strong {
    font-size: 21px;
  }

  .network-ring span,
  .network-bars p {
    font-size: 10px;
  }

  .network-title {
    font-size: 11px;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    margin-top: 0;
  }

  .lead-avatar.avatar-a {
    background: url("https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&w=96&q=90") center / cover;
  }

  .lead-avatar.avatar-b {
    background: url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=96&q=90") center / cover;
  }

  .lead-avatar.avatar-c {
    background: url("https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=96&q=90") center / cover;
  }
}

/* Final mobile override: this block intentionally stays last to neutralize older duplicated homepage rules. */
@media (max-width: 680px) {
  body:not(.admin-page):not(.sale-admin-page) {
    overflow-x: hidden;
  }

  body:not(.admin-page):not(.sale-admin-page) *,
  body:not(.admin-page):not(.sale-admin-page) *::before,
  body:not(.admin-page):not(.sale-admin-page) *::after {
    box-sizing: border-box;
  }

  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 58px;
    padding: 0 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav,
  body:not(.admin-page):not(.sale-admin-page) .header-action {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 30px 18px 24px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(5, 45, 34, 0.94) 0%, rgba(5, 45, 34, 0.78) 58%, rgba(5, 45, 34, 0.48) 100%),
      url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=86") center / cover no-repeat;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-copy,
  body:not(.admin-page):not(.sale-admin-page) .hero-ops,
  body:not(.admin-page):not(.sale-admin-page) .ops-card.main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-ops {
    justify-self: stretch;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    display: block;
    max-width: 100%;
    margin: 0 0 12px;
    font-size: clamp(54px, 17vw, 68px);
    line-height: 0.88;
    white-space: nowrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    white-space: normal;
    text-align: center;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof,
  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof div,
  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats div,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics div {
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .panel-topline,
  body:not(.admin-page):not(.sale-admin-page) .listing-price-row,
  body:not(.admin-page):not(.sale-admin-page) .network-bars p {
    min-width: 0;
    flex-wrap: wrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue div {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue time,
  body:not(.admin-page):not(.sale-admin-page) .lead-queue button {
    grid-column: 2;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-box {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-bars {
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) #listings,
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
  body:not(.admin-page):not(.sale-admin-page) #agents,
  body:not(.admin-page):not(.sale-admin-page) .signup-band {
    width: calc(100% - 24px);
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) #lead-form,
  body:not(.admin-page):not(.sale-admin-page) .owner-band,
  body:not(.admin-page):not(.sale-admin-page) .partner-role-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading {
    align-items: stretch;
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
    flex-direction: column;
  }

  body:not(.admin-page):not(.sale-admin-page) .view-all-link {
    margin-left: 0;
    justify-content: center;
  }

  body:not(.admin-page):not(.sale-admin-page) h1,
  body:not(.admin-page):not(.sale-admin-page) h2,
  body:not(.admin-page):not(.sale-admin-page) h3,
  body:not(.admin-page):not(.sale-admin-page) p,
  body:not(.admin-page):not(.sale-admin-page) a,
  body:not(.admin-page):not(.sale-admin-page) button,
  body:not(.admin-page):not(.sale-admin-page) span,
  body:not(.admin-page):not(.sale-admin-page) strong,
  body:not(.admin-page):not(.sale-admin-page) small {
    overflow-wrap: anywhere;
  }
}

/* Final mobile override: this block intentionally stays last to neutralize older duplicated homepage rules. */
@media (max-width: 680px) {
  body:not(.admin-page):not(.sale-admin-page) {
    overflow-x: hidden;
  }

  body:not(.admin-page):not(.sale-admin-page) *,
  body:not(.admin-page):not(.sale-admin-page) *::before,
  body:not(.admin-page):not(.sale-admin-page) *::after {
    box-sizing: border-box;
  }

  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 58px;
    padding: 0 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav,
  body:not(.admin-page):not(.sale-admin-page) .header-action {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 30px 18px 24px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(5, 45, 34, 0.94) 0%, rgba(5, 45, 34, 0.78) 58%, rgba(5, 45, 34, 0.48) 100%),
      url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=86") center / cover no-repeat;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-copy,
  body:not(.admin-page):not(.sale-admin-page) .hero-ops,
  body:not(.admin-page):not(.sale-admin-page) .ops-card.main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-ops {
    justify-self: stretch;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    display: block;
    max-width: 100%;
    margin: 0 0 12px;
    font-size: clamp(54px, 17vw, 68px);
    line-height: 0.88;
    white-space: nowrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    white-space: normal;
    text-align: center;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof,
  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof div,
  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats div,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics div {
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .panel-topline,
  body:not(.admin-page):not(.sale-admin-page) .listing-price-row,
  body:not(.admin-page):not(.sale-admin-page) .network-bars p {
    min-width: 0;
    flex-wrap: wrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue div {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue time,
  body:not(.admin-page):not(.sale-admin-page) .lead-queue button {
    grid-column: 2;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-box {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-bars {
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) #listings,
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
  body:not(.admin-page):not(.sale-admin-page) #agents,
  body:not(.admin-page):not(.sale-admin-page) .signup-band {
    width: calc(100% - 24px);
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) #lead-form,
  body:not(.admin-page):not(.sale-admin-page) .owner-band,
  body:not(.admin-page):not(.sale-admin-page) .partner-role-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading {
    align-items: stretch;
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
    flex-direction: column;
  }

  body:not(.admin-page):not(.sale-admin-page) .view-all-link {
    margin-left: 0;
    justify-content: center;
  }

  body:not(.admin-page):not(.sale-admin-page) h1,
  body:not(.admin-page):not(.sale-admin-page) h2,
  body:not(.admin-page):not(.sale-admin-page) h3,
  body:not(.admin-page):not(.sale-admin-page) p,
  body:not(.admin-page):not(.sale-admin-page) a,
  body:not(.admin-page):not(.sale-admin-page) button,
  body:not(.admin-page):not(.sale-admin-page) span,
  body:not(.admin-page):not(.sale-admin-page) strong,
  body:not(.admin-page):not(.sale-admin-page) small {
    overflow-wrap: anywhere;
  }
}

/* Final override: homepage product grid is max 8 cards, 4 per row on desktop. */
body:not(.admin-page):not(.sale-admin-page) #listings {
  width: min(100% - 56px, 1320px);
}

body:not(.admin-page):not(.sale-admin-page) #listings #listing-grid.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body:not(.admin-page):not(.sale-admin-page) #listings #listing-grid .listing-card:nth-child(n + 9) {
  display: none;
}

@media (max-width: 1100px) {
  body:not(.admin-page):not(.sale-admin-page) #listings #listing-grid.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) #listings {
    width: min(100% - 24px, 1320px);
  }

  body:not(.admin-page):not(.sale-admin-page) #listings #listing-grid.listing-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes orangePulse {
  0%, 100% {
    background: #ff7a00;
    color: #ffffff;
    box-shadow: 0 0 0 rgba(255, 122, 0, 0);
  }

  50% {
    background: #ffb000;
    color: #1f1600;
    box-shadow: 0 0 28px rgba(255, 122, 0, 0.62);
  }
}

body:not(.admin-page):not(.sale-admin-page) #listings .view-all-link.blink-all-listings {
  display: inline-flex;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #ff7a00;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: orangePulse 1.05s ease-in-out infinite;
}

body:not(.admin-page):not(.sale-admin-page) #listings .view-all-link.blink-all-listings span {
  font-size: 24px;
  line-height: 1;
}

.all-listings-page {
  min-height: 100vh;
  background: #ffffff;
  color: #1e2a25;
}

.all-listings-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #edf0ee;
}

.all-listings-shell {
  width: min(100% - 56px, 1320px);
  margin: 34px auto 64px;
}

.all-listings-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.all-listings-title span {
  display: block;
  margin-bottom: 7px;
  color: #08704e;
  font-size: 13px;
  font-weight: 900;
}

.all-listings-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 950;
  line-height: 1.02;
}

.all-listings-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 200px 200px 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.all-listings-toolbar input,
.all-listings-toolbar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dfe7e4;
  border-radius: 8px;
  background: #ffffff;
  color: #26312d;
  font-size: 14px;
  font-weight: 700;
}

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

.all-listing-card {
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.all-listing-card .listing-image-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.all-listing-card img {
  width: 100%;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
}

.all-listing-card .listing-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: #0f172a;
  text-decoration: none;
}

.all-listing-card h2 {
  min-height: 58px;
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.12;
}

.all-listing-card .listing-location,
.all-listing-card .listing-specs {
  color: #667085;
  font-size: 14px;
  font-weight: 750;
}

.all-listing-card .listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.all-listing-card .listing-contact {
  padding-top: 13px;
  border-top: 1px solid #e4e7ec;
  color: #667085;
  font-size: 20px;
  font-weight: 950;
}

.all-listings-page .form-status {
  margin-top: 18px;
  color: #667085;
  font-size: 14px;
  font-weight: 750;
}

.all-listing-card .listing-chip.purpose {
  top: auto;
  bottom: 12px;
  left: 12px;
  background: rgba(8, 112, 78, 0.94);
  color: #ffffff;
}

.all-load-more {
  display: flex;
  width: min(260px, 100%);
  min-height: 48px;
  justify-content: center;
  margin: 22px auto 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.all-load-more[hidden] {
  display: none;
}

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

  .all-listings-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .all-listings-toolbar input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .all-listings-shell {
    width: min(100% - 24px, 1320px);
  }

  .all-listings-title,
  .all-listings-toolbar {
    grid-template-columns: 1fr;
  }

  .all-listings-title {
    align-items: stretch;
    flex-direction: column;
  }

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

  body:not(.admin-page):not(.sale-admin-page) #listings .view-all-link.blink-all-listings {
    width: 100%;
    justify-content: center;
    font-size: 18px;
  }
}

/* Homepage product grid: 2 rows x 4 cards on desktop */
body:not(.admin-page):not(.sale-admin-page) #listings {
  width: min(100% - 56px, 1320px);
}

body:not(.admin-page):not(.sale-admin-page) #listing-grid.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body:not(.admin-page):not(.sale-admin-page) #listing-grid .listing-card:nth-child(n + 9) {
  display: none;
}

@media (max-width: 1100px) {
  body:not(.admin-page):not(.sale-admin-page) #listing-grid.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) #listings {
    width: min(100% - 24px, 1320px);
  }

  body:not(.admin-page):not(.sale-admin-page) #listing-grid.listing-grid {
    grid-template-columns: 1fr;
  }
}

/* Readability pass: increase homepage text without changing the page structure. */
body:not(.admin-page):not(.sale-admin-page) .brand {
  font-size: 16px;
}

body:not(.admin-page):not(.sale-admin-page) .brand-mark {
  font-size: 15px;
}

body:not(.admin-page):not(.sale-admin-page) .top-nav {
  font-size: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .header-action {
  font-size: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .hero p {
  font-size: 16px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
  font-size: 15px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof strong,
body:not(.admin-page):not(.sale-admin-page) .ops-card .panel-topline,
body:not(.admin-page):not(.sale-admin-page) .lead-info strong,
body:not(.admin-page):not(.sale-admin-page) .lead-all,
body:not(.admin-page):not(.sale-admin-page) .network-title {
  font-size: 13px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof span,
body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats span,
body:not(.admin-page):not(.sale-admin-page) .ops-card .panel-topline strong,
body:not(.admin-page):not(.sale-admin-page) .ops-metrics span,
body:not(.admin-page):not(.sale-admin-page) .lead-info small,
body:not(.admin-page):not(.sale-admin-page) .lead-queue time,
body:not(.admin-page):not(.sale-admin-page) .lead-queue button {
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading h2,
body:not(.admin-page):not(.sale-admin-page) #listings h2,
body:not(.admin-page):not(.sale-admin-page) #agents h2,
body:not(.admin-page):not(.sale-admin-page) .signup-card h2,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section h3 {
  font-size: clamp(23px, 1.65vw, 26px);
}

body:not(.admin-page):not(.sale-admin-page) .view-all-link,
body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  font-size: 13px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  min-height: 36px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body p,
body:not(.admin-page):not(.sale-admin-page) .listing-price-row span,
body:not(.admin-page):not(.sale-admin-page) .tag {
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .price {
  font-size: 20px;
}

body:not(.admin-page):not(.sale-admin-page) .featured-label,
body:not(.admin-page):not(.sale-admin-page) .listing-card:first-child::after {
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title p,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section label,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section input,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section select,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea,
body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .ai-question-row .button,
body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button {
  font-size: 13px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section input,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section select,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea,
body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button {
  min-height: 42px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  height: 42px;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .ai-question-row .button {
  min-height: 44px;
}

body:not(.admin-page):not(.sale-admin-page) .security-note,
body:not(.admin-page):not(.sale-admin-page) .ai-note,
body:not(.admin-page):not(.sale-admin-page) .site-footer p,
body:not(.admin-page):not(.sale-admin-page) .site-footer a,
body:not(.admin-page):not(.sale-admin-page) .site-footer span {
  font-size: 12px;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form h3 span {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) #listings,
body:not(.admin-page):not(.sale-admin-page) #lead,
body:not(.admin-page):not(.sale-admin-page) #owner,
body:not(.admin-page):not(.sale-admin-page) #agents,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor {
  scroll-margin-top: 78px;
}

@media (max-width: 1180px) {
  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section h3,
  body:not(.admin-page):not(.sale-admin-page) #listings .section-heading h2 {
    font-size: 22px;
  }
}

/* Listings browse redesign based on the supplied product-card reference. */
body:not(.admin-page):not(.sale-admin-page) #listings.section {
  width: min(100% - 56px, 1320px);
  padding: 46px 0 42px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
  margin-bottom: 36px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading h2 {
  color: #667085;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading h2 strong {
  color: #0f172a;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) #listings .view-all-link {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-card {
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-card::after,
body:not(.admin-page):not(.sale-admin-page) #listings .featured-label,
body:not(.admin-page):not(.sale-admin-page) #listings .listing-fav {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-image-link {
  position: relative;
  display: block;
  min-height: 242px;
  overflow: hidden;
  background: #e7e7e7;
  color: inherit;
  text-decoration: none;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-card .listing-image-link img {
  display: block;
  width: 100%;
  height: 242px;
  object-fit: cover;
  filter: saturate(0.7) brightness(1.03);
  transition: transform 180ms ease, filter 180ms ease;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-card:hover .listing-image-link img {
  filter: saturate(0.9) brightness(1.02);
  transform: scale(1.025);
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-chip {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-chip.sale {
  left: 12px;
  background: #10b981;
  color: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-chip.type {
  left: 86px;
  background: #ffffff;
  color: #0f172a;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-share,
body:not(.admin-page):not(.sale-admin-page) #listings .listing-zoom {
  position: absolute;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 20px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.14);
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-share {
  top: 12px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-zoom {
  top: 58px;
  color: #1d7eea;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-body {
  display: grid;
  gap: 14px;
  padding: 22px 18px 18px;
  color: inherit;
  text-decoration: none;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-body h3 {
  min-height: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-location,
body:not(.admin-page):not(.sale-admin-page) #listings .listing-specs {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

body:not(.admin-page):not(.sale-admin-page) #listings .listing-contact {
  color: #667085;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
}

@media (max-width: 760px) {
  body:not(.admin-page):not(.sale-admin-page) #listings.section {
    width: min(100% - 32px, 720px);
  }

  body:not(.admin-page):not(.sale-admin-page) #listings .listing-grid {
    grid-template-columns: 1fr;
  }
}

/* Listing detail page */
.listing-detail-page {
  min-height: 100vh;
  margin: 0;
  background: #f7fbff;
  color: #0f172a;
  font-family: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, sans-serif;
}

.listing-detail-page svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 max(22px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.detail-back,
.detail-top-actions button {
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.detail-top-actions {
  display: flex;
  gap: 18px;
}

.detail-top-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.detail-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 18px;
  background: transparent;
}

.detail-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.34 / 1;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111827;
  cursor: zoom-in;
}

.detail-gallery img,
.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1f2937;
  transition: transform 180ms ease;
}

.detail-gallery-item:hover img {
  transform: scale(1.035);
}

.detail-gallery .detail-chip {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 3;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.image-preview-modal.open {
  display: grid;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 10, 18, 0.82);
  cursor: zoom-out;
}

.image-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 1120px);
  max-height: calc(100vh - 48px);
}

.image-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.image-preview-stage {
  position: relative;
  display: grid;
  min-height: 220px;
}

#image-preview-target {
  width: 100%;
  max-height: calc(100vh - 170px);
  border-radius: 8px;
  object-fit: contain;
  background: #000000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  transition: opacity 160ms ease, filter 160ms ease;
}

#image-preview-target.switching {
  opacity: 0.42;
  filter: blur(2px);
}

.image-preview-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: none;
  min-height: 48px;
  place-items: center;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.96);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(255, 122, 0, 0.34);
  transform: translate(-50%, -50%);
}

.image-preview-loading.active {
  display: grid;
}

.image-preview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.image-preview-thumbs button {
  overflow: hidden;
  aspect-ratio: 1.34 / 1;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  background: #111827;
  cursor: pointer;
  transition: border-color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.image-preview-thumbs button.active {
  border-color: #ff8a00;
  opacity: 1;
  transform: translateY(-2px);
}

.image-preview-thumbs button:not(.active) {
  opacity: 0.72;
}

.image-preview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-chip.sale {
  background: #10b981;
  color: #ffffff;
}

.detail-chip.soft {
  background: #e8f1ff;
  color: #1d7eea;
}

.detail-chip.outline {
  border: 1px solid #d5dbe5;
  background: #ffffff;
  color: #111827;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  width: min(100% - 44px, 1250px);
  margin: 48px auto 70px;
}

.detail-main,
.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 28px;
}

.detail-summary-card,
.detail-info-card,
.detail-note-card,
.advisor-card,
.trust-card {
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.detail-summary-card {
  padding: 32px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-summary-card h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.detail-address,
.detail-price-row span,
.detail-price-row small,
.detail-info-card dt,
.detail-note-card p {
  color: #667085;
}

.detail-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 28px;
  font-size: 16px;
}

.detail-address svg {
  color: #1d7eea;
}

.detail-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.detail-price-row div:first-child {
  display: grid;
  gap: 8px;
}

.detail-price-row span {
  font-size: 15px;
}

.detail-price-row strong {
  color: #1d7eea;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.detail-price-row small {
  font-size: 14px;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-actions a,
.advisor-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.detail-call {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(16, 185, 129, 0.24);
}

.detail-message {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

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

.detail-stats article {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 22px 16px;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.detail-stats svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d7eea;
}

.detail-stats article:nth-child(2) svg {
  background: #f3e8ff;
  color: #9333ea;
}

.detail-stats article:nth-child(3) svg {
  background: #cffafe;
  color: #0891b2;
}

.detail-stats strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.detail-stats span {
  color: #667085;
  font-size: 14px;
}

.detail-info-card,
.detail-note-card {
  padding: 28px 32px;
}

.detail-info-card h2,
.detail-note-card h2,
.detail-section-title h2 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-info-card h2::before,
.detail-note-card h2::before,
.detail-section-title h2::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: #1d7eea;
}

.detail-info-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
}

.detail-info-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed #d9e0ea;
}

.detail-info-card dt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.detail-info-card dd {
  margin: 0;
  color: #020617;
  font-size: 15px;
  font-weight: 850;
  text-align: right;
}

.detail-note-card {
  background: linear-gradient(105deg, #fffef7, #ffffff);
}

.detail-note-card p {
  margin: 0;
  font-size: 16px;
}

.detail-lead-card {
  padding: 28px 32px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #f8fffb;
}

.detail-lead-card h2 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 14px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.detail-lead-card h2::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: #0b6f51;
}

#detail-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#detail-lead-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

#detail-lead-form label:last-of-type,
#detail-lead-form .detail-submit,
#detail-lead-status {
  grid-column: 1 / -1;
}

#detail-lead-form input,
#detail-lead-form select,
#detail-lead-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #ffffff;
  color: #101828;
  font: inherit;
}

#detail-lead-form textarea {
  resize: vertical;
}

.detail-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: #0b6f51;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

#detail-lead-status {
  min-height: 20px;
  margin: 0;
  color: #0b6f51;
  font-size: 13px;
  font-weight: 800;
}

.advisor-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 24px;
  text-align: center;
}

.advisor-avatar {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 999px;
  background: #1d7eea;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(29, 126, 234, 0.22);
}

.advisor-avatar span {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 21px;
  height: 21px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #10b981;
}

.advisor-card h2,
.advisor-card p {
  margin: 0;
}

.advisor-card h2 {
  font-size: 19px;
}

.advisor-card p,
.advisor-card div {
  color: #667085;
  font-size: 14px;
}

.advisor-card a {
  width: 100%;
  margin: 18px 0 10px;
  background: linear-gradient(90deg, #1684ef, #2d5ee8);
  color: #ffffff;
}

.advisor-card div {
  display: flex;
  justify-content: center;
  gap: 26px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.trust-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #f2f7ff;
}

.trust-card p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  margin: 0;
}

.trust-card svg {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 9px;
  background: #d1fae5;
  color: #10b981;
}

.trust-card p:nth-child(2) svg {
  background: #dbeafe;
  color: #1d7eea;
}

.trust-card p:nth-child(3) svg {
  background: #f3e8ff;
  color: #9333ea;
}

.trust-card strong {
  font-size: 14px;
}

.trust-card span {
  color: #667085;
  font-size: 13px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 26px;
}

.detail-section-title h2 {
  margin: 0;
}

.detail-section-title a {
  color: #1d7eea;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}

.related-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.related-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.related-card .detail-chip {
  position: absolute;
  top: 12px;
  left: 12px;
}

.related-price {
  position: absolute;
  top: 176px;
  left: 14px;
  color: #ffffff;
  font-size: 17px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.related-card > div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.related-card h3 {
  margin: 0;
  font-size: 17px;
}

.related-card p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #667085;
  font-size: 14px;
}

@media (max-width: 960px) {
  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-topbar {
    padding: 0 16px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 14px;
  }

  .detail-shell {
    width: min(100% - 28px, 560px);
    margin-top: 24px;
  }

  .detail-summary-card,
  .detail-info-card,
  .detail-note-card {
    padding: 22px;
  }

  .detail-summary-card h1 {
    font-size: 28px;
  }

  .detail-price-row,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-stats,
  .detail-info-card dl,
  .detail-related-grid {
    grid-template-columns: 1fr;
  }

  #detail-lead-form {
    grid-template-columns: 1fr;
  }
}

/* Final intent cards layout matched to the supplied need-picker reference */
body:not(.admin-page):not(.sale-admin-page) .intent-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) repeat(6, minmax(128px, 1fr));
  gap: 10px;
  align-items: stretch;
  width: min(100% - 72px, 1540px);
  margin: 34px auto 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
  display: grid;
  align-content: center;
  min-height: 198px;
  padding: 0 28px 0 4px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div strong {
  max-width: 220px;
  color: #202b26;
  font-size: clamp(26px, 2.35vw, 36px);
  font-weight: 850;
  line-height: 1.18;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div span {
  max-width: 220px;
  margin-top: 22px;
  color: #7a8580;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
  position: relative;
  display: grid;
  min-height: 198px;
  padding: 30px 14px 44px;
  align-content: start;
  justify-items: center;
  gap: 10px;
  border: 1px solid #e9eeeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(22, 32, 27, 0.035);
  color: #202b26;
  text-align: center;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #eef7f3;
  color: #0b6f51;
  font-size: 28px;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button small {
  color: #737e79;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button::after {
  content: "›";
  position: absolute;
  bottom: 20px;
  left: 50%;
  color: #7f8884;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100% - 40px, 1540px);
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0 0 8px;
  }
}

@media (max-width: 680px) {
  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 28px, 1540px);
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
    min-height: 174px;
  }
}

@media (max-width: 460px) {
  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: 1fr;
  }
}

/* Final lead/AI layout override */
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  width: min(100% - 40px, 1540px);
  padding: 4px 0 24px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .ai-form-column {
  display: grid;
  min-width: 0;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border: 1px solid #e9eeeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(22, 32, 27, 0.045);
}

body:not(.admin-page):not(.sale-admin-page) #lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section h3 {
  margin: 0;
  color: #202b26;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 850;
  line-height: 1.18;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title p {
  margin: 0;
  color: #66726d;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #29352f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .field-wide {
  grid-column: auto;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) #lead-form .security-note,
body:not(.admin-page):not(.sale-admin-page) #lead-form .form-status {
  grid-column: 1 / -1;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section input,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section select,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e8eeeb;
  border-radius: 5px;
  background: #ffffff;
  color: #23302b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
  resize: none;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form textarea {
  height: 36px;
  min-height: 36px;
  resize: none;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .ai-question-row .button {
  min-height: 38px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .security-note,
body:not(.admin-page):not(.sale-admin-page) .ai-note {
  margin: 2px 0 0;
  color: #6b7671;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) .security-note::before {
  content: "●";
  margin-right: 6px;
  color: #0b7a58;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form h3 span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: #e7f5ef;
  color: #0b7a58;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 36px;
  border: 1px solid #eef2f0;
  border-radius: 6px;
  background: #f8faf9;
  color: #52605a;
  text-align: left;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::before {
  content: "⌂";
  position: absolute;
  left: 13px;
  color: #0b7a58;
  font-size: 12px;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::after {
  content: "›";
  position: absolute;
  right: 14px;
  color: #98a19d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  margin-top: auto;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form .ai-question-row .button {
  grid-column: auto;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-status,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor-result:empty {
  display: none;
}

@media (max-width: 900px) {
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1540px);
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) #lead-form {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
    grid-template-columns: 1fr;
  }
}

/* Sales network band matched to the supplied affiliate reference */
body:not(.admin-page):not(.sale-admin-page) .sales-network-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.92fr);
  gap: 44px;
  align-items: center;
  width: min(100% - 40px, 1540px);
  padding: 18px 0 30px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-copy {
  display: grid;
  gap: 32px;
  min-width: 0;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .section-heading {
  margin: 0;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .section-heading h2 {
  margin: 0;
  color: #202b26;
  font-size: clamp(22px, 2.15vw, 34px);
  font-weight: 850;
  line-height: 1.12;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .section-heading p {
  margin: 14px 0 0;
  color: #65716b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .feature-list article {
  display: grid;
  justify-items: start;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .feature-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f0f8f4;
  color: #0b7656;
  font-size: 21px;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .feature-list strong {
  color: #26312d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .feature-list p {
  margin: 0;
  color: #75807b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-band {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .partner-role-grid {
  display: grid;
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .role-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #e7ece9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(22, 32, 27, 0.045);
}

body:not(.admin-page):not(.sale-admin-page) .role-card.master {
  border-color: #eadcc8;
  background: #fffaf3;
}

body:not(.admin-page):not(.sale-admin-page) .role-card > span {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf6f1;
  color: #0b6f51;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .role-card.master > span {
  background: #f7ead8;
  color: #8b560e;
}

body:not(.admin-page):not(.sale-admin-page) .role-card h2 {
  margin: 0;
  color: #202b26;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 850;
  line-height: 1.22;
}

body:not(.admin-page):not(.sale-admin-page) .role-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #3e4b45;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.38;
  list-style: none;
}

body:not(.admin-page):not(.sale-admin-page) .role-card li::before {
  content: "✓";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-right: 9px;
  border-radius: 999px;
  background: #e9f6ef;
  color: #0b7656;
  font-size: 12px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .role-card.master li::before {
  background: #f7ead8;
  color: #9a620f;
}

body:not(.admin-page):not(.sale-admin-page) .role-card .button {
  justify-content: center;
  min-height: 44px;
  padding-right: 16px;
  padding-left: 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  white-space: normal;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(180px, 0.72fr);
  gap: 10px;
  align-items: end;
  min-height: 252px;
  overflow: hidden;
  border: 1px solid #e7ece9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(22, 32, 27, 0.045);
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card > div {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 26px 0 24px 28px;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card h2 {
  margin: 0;
  color: #202b26;
  font-size: clamp(17px, 1.5vw, 24px);
  font-weight: 850;
  line-height: 1.2;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card ul {
  display: grid;
  gap: 13px;
  margin: 22px 0 24px;
  padding: 0;
  color: #3e4b45;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
  list-style: none;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card li::before {
  content: "✓";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-right: 10px;
  border-radius: 999px;
  background: #e9f6ef;
  color: #0b7656;
  font-size: 12px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card .button {
  align-self: end;
  justify-content: center;
  width: min(100%, 270px);
  min-height: 48px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card img {
  align-self: end;
  width: 100%;
  height: 238px;
  min-height: 0;
  object-fit: cover;
  object-position: 58% center;
}

@media (max-width: 980px) {
  body:not(.admin-page):not(.sale-admin-page) .sales-network-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ai-ops-grid,
  .ai-ops-actions,
  .ai-provider-grid,
  .ai-bot-model-grid,
  .ai-provider-master {
    grid-template-columns: 1fr;
  }

  .ai-bot-model-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body:not(.admin-page):not(.sale-admin-page) {
    padding-bottom: 76px;
  }

  body:not(.admin-page):not(.sale-admin-page) .mobile-quick-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(220, 226, 220, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(22, 32, 27, 0.16);
    backdrop-filter: blur(10px);
  }

  body:not(.admin-page):not(.sale-admin-page) .mobile-quick-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 0 6px;
    border-radius: 6px;
    background: #0b6f51;
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
  }

  body:not(.admin-page):not(.sale-admin-page) .mobile-quick-nav a:nth-child(2) {
    background: #d87a18;
  }

  body:not(.admin-page):not(.sale-admin-page) .mobile-quick-nav a:nth-child(3) {
    background: #26312d;
  }

  body:not(.admin-page):not(.sale-admin-page) .sales-network-section {
    width: min(100% - 28px, 1540px);
  }

  body:not(.admin-page):not(.sale-admin-page) .sales-network-section .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card > div {
    padding: 24px;
  }

  body:not(.admin-page):not(.sale-admin-page) .sales-network-section .signup-card img {
    height: 220px;
  }

  body:not(.admin-page):not(.sale-admin-page) .partner-role-grid {
    gap: 12px;
  }

  body:not(.admin-page):not(.sale-admin-page) .role-card {
    padding: 18px;
  }
}

/* Lead + AI cards matched to the compact two-column reference */
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  width: min(100% - 40px, 1540px);
  padding: 4px 0 24px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .ai-form-column {
  display: grid;
  min-width: 0;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border: 1px solid #e9eeeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(22, 32, 27, 0.045);
}

body:not(.admin-page):not(.sale-admin-page) #lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section h3 {
  margin: 0;
  color: #202b26;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 850;
  line-height: 1.18;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title p {
  margin: 0;
  color: #66726d;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #29352f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .field-wide,
body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) #lead-form .security-note,
body:not(.admin-page):not(.sale-admin-page) #lead-form .form-status {
  grid-column: auto;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) #lead-form .security-note,
body:not(.admin-page):not(.sale-admin-page) #lead-form .form-status {
  grid-column: 1 / -1;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section input,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section select,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e8eeeb;
  border-radius: 5px;
  background: #ffffff;
  color: #23302b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
  resize: none;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .ai-question-row .button {
  min-height: 38px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .security-note,
body:not(.admin-page):not(.sale-admin-page) .ai-note {
  margin: 2px 0 0;
  color: #6b7671;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) .security-note::before {
  content: "●";
  margin-right: 6px;
  color: #0b7a58;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form h3 span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: #e7f5ef;
  color: #0b7a58;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 36px;
  border: 1px solid #eef2f0;
  border-radius: 6px;
  background: #f8faf9;
  color: #52605a;
  text-align: left;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::before {
  content: "⌂";
  position: absolute;
  left: 13px;
  color: #0b7a58;
  font-size: 12px;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::after {
  content: "›";
  position: absolute;
  right: 14px;
  color: #98a19d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  margin-top: auto;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-status,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor-result:empty {
  display: none;
}

@media (max-width: 900px) {
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1540px);
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) #lead-form {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
    grid-template-columns: 1fr;
  }
}

/* Final homepage reference override: keep this at EOF */
body:not(.admin-page):not(.sale-admin-page) {
  background: #ffffff;
  color: #23302b;
}

body:not(.admin-page):not(.sale-admin-page) .site-header {
  height: 58px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #edf0ee;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .brand {
  gap: 9px;
  color: #1f2b26;
  font-size: 14px;
  font-weight: 900;
}

body:not(.admin-page):not(.sale-admin-page) .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #08704e;
}

body:not(.admin-page):not(.sale-admin-page) .top-nav {
  gap: 28px;
  color: #2f3b36;
  font-size: 11px;
  font-weight: 800;
}

body:not(.admin-page):not(.sale-admin-page) .header-action {
  min-height: 36px;
  padding: 0 22px;
  border-radius: 6px;
  background: #08704e;
  font-size: 12px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .header-call {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: 36px;
  min-height: 496px;
  padding: 42px 40px 26px;
  background:
    linear-gradient(90deg, rgba(5, 45, 34, 0.98) 0%, rgba(5, 45, 34, 0.82) 43%, rgba(5, 45, 34, 0.16) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1900&q=88") center right / cover no-repeat;
}

body:not(.admin-page):not(.sale-admin-page) .hero::after {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 {
  max-width: 580px;
  font-size: 32px;
  line-height: 1.16;
}

body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
  margin-bottom: 16px;
  font-size: 86px;
  line-height: 0.82;
}

body:not(.admin-page):not(.sale-admin-page) .hero p {
  max-width: 560px;
  font-size: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
  min-height: 46px;
  border-radius: 6px;
}

body:not(.admin-page):not(.sale-admin-page) .hero-proof,
body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats {
  width: min(570px, 100%);
}

body:not(.admin-page):not(.sale-admin-page) .ops-card.main {
  width: min(430px, 100%);
  padding: 18px;
  border-radius: 6px;
  background: rgba(22, 32, 29, 0.93);
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip,
body:not(.admin-page):not(.sale-admin-page) #listings,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
body:not(.admin-page):not(.sale-admin-page) #agents,
body:not(.admin-page):not(.sale-admin-page) .signup-band {
  width: min(100% - 56px, 1540px);
  margin-right: auto;
  margin-left: auto;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip {
  grid-template-columns: minmax(150px, 0.95fr) repeat(6, minmax(104px, 1fr));
  gap: 6px;
  margin-top: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
  padding: 16px 0 0;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div strong {
  max-width: 130px;
  color: #26312d;
  font-size: 19px;
  line-height: 1.08;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div span {
  max-width: 138px;
  margin-top: 13px;
  color: #6f7b75;
  font-size: 10.5px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
  position: relative;
  min-height: 118px;
  padding: 17px 8px 24px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(22, 32, 27, 0.045);
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button::after {
  content: "›";
  position: absolute;
  bottom: 12px;
  left: 50%;
  color: #7f8884;
  font-size: 18px;
  transform: translateX(-50%);
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
  width: 26px;
  height: 26px;
  background: transparent;
  color: #08704e;
  font-size: 19px;
}

body:not(.admin-page):not(.sale-admin-page) #listings.section {
  padding: 28px 0 14px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
  align-items: center;
  flex-direction: row;
  margin-bottom: 16px;
}

body:not(.admin-page):not(.sale-admin-page) #listings h2,
body:not(.admin-page):not(.sale-admin-page) #agents h2,
body:not(.admin-page):not(.sale-admin-page) .signup-card h2 {
  color: #26312d;
  font-size: 21px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading p,
body:not(.admin-page):not(.sale-admin-page) #listings .filters {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

body:not(.admin-page):not(.sale-admin-page) .listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e7ece9;
  border-radius: 6px;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card img {
  height: auto;
  aspect-ratio: 1.34 / 1;
}

body:not(.admin-page):not(.sale-admin-page) .featured-label {
  position: absolute;
  top: 13px;
  left: 11px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: #d6b22e;
  color: #3f3612;
  font-size: 8px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .listing-fav {
  top: 11px;
  right: 11px;
  width: 28px;
  height: 28px;
  font-size: 22px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body {
  gap: 6px;
  padding: 10px 10px 12px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  margin: 0;
  color: #303a36;
  font-size: 11px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body p,
body:not(.admin-page):not(.sale-admin-page) .listing-price-row span {
  color: #77817c;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .price {
  color: #08704e;
  font-size: 17px;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 4px 0 24px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form,
body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border: 1px solid #e9eeeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(22, 32, 27, 0.045);
}

body:not(.admin-page):not(.sale-admin-page) #lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

body:not(.admin-page):not(.sale-admin-page) .form-title,
body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .security-note {
  grid-column: 1 / -1;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section h3 {
  margin: 0;
  color: #202b26;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.18;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section .form-title p {
  margin: 0;
  color: #66726d;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section label {
  gap: 6px;
  min-width: 0;
  color: #29352f;
  font-size: 10px;
  line-height: 1.2;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section input,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section select,
body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-color: #e8eeeb;
  border-radius: 5px;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .field-wide {
  grid-column: auto;
}

body:not(.admin-page):not(.sale-admin-page) .lead-ai-section textarea {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
  resize: none;
}

body:not(.admin-page):not(.sale-admin-page) #lead-form .button,
body:not(.admin-page):not(.sale-admin-page) .ai-question-row .button {
  min-height: 38px;
  border-radius: 5px;
  font-size: 10px;
}

body:not(.admin-page):not(.sale-admin-page) .security-note,
body:not(.admin-page):not(.sale-admin-page) .ai-note {
  margin: 2px 0 0;
  color: #6d7772;
  font-size: 9.5px;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 36px;
  border: 1px solid #eef2f0;
  border-radius: 6px;
  background: #f8faf9;
  color: #52605a;
  text-align: left;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::before {
  content: "⌂";
  position: absolute;
  left: 12px;
  color: #08704e;
}

body:not(.admin-page):not(.sale-admin-page) .ai-suggestions button::after {
  content: "›";
  position: absolute;
  right: 13px;
  color: #97a09c;
  font-size: 17px;
}

body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  margin-top: auto;
}

body:not(.admin-page):not(.sale-admin-page) #ai-advisor-form .ai-question-row .button {
  grid-column: auto;
}

@media (max-width: 900px) {
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1540px);
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) #lead-form {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .ai-question-row {
    grid-template-columns: 1fr;
  }
}

body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
body:not(.admin-page):not(.sale-admin-page) #agents.section,
body:not(.admin-page):not(.sale-admin-page) .signup-band.section {
  padding: 0 0 24px;
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band,
body:not(.admin-page):not(.sale-admin-page) .signup-card {
  overflow: hidden;
  border: 1px solid #e7ece9;
  border-radius: 7px;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band {
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0;
  padding: 0;
  background: #073b30;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band > div {
  padding: 26px 30px;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band h2,
body:not(.admin-page):not(.sale-admin-page) .owner-band p,
body:not(.admin-page):not(.sale-admin-page) .owner-band li {
  color: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .owner-band img,
body:not(.admin-page):not(.sale-admin-page) .signup-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

body:not(.admin-page):not(.sale-admin-page) .feature-list article {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body:not(.admin-page):not(.sale-admin-page) .signup-band {
  background: transparent;
}

body:not(.admin-page):not(.sale-admin-page) .signup-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  background: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .signup-card > div {
  padding: 22px 26px;
}

body:not(.admin-page):not(.sale-admin-page) .site-footer {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 36px;
  padding: 34px 40px 28px;
  background: #082f27;
  color: rgba(255, 255, 255, 0.74);
}

body:not(.admin-page):not(.sale-admin-page) .site-footer .brand,
body:not(.admin-page):not(.sale-admin-page) .site-footer strong {
  color: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .site-footer p,
body:not(.admin-page):not(.sale-admin-page) .site-footer a,
body:not(.admin-page):not(.sale-admin-page) .site-footer span {
  font-size: 10px;
}

/* Final compact browse-page match for the supplied reference */
body:not(.admin-page):not(.sale-admin-page) {
  background: #ffffff;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip,
body:not(.admin-page):not(.sale-admin-page) #listings {
  width: min(100% - 40px, 1540px);
  margin-right: auto;
  margin-left: auto;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip {
  grid-template-columns: minmax(140px, 0.9fr) repeat(6, minmax(96px, 1fr));
  gap: 6px;
  align-items: stretch;
  margin-top: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
  padding: 14px 4px 0 0;
  background: transparent;
  color: #26312d;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div strong {
  max-width: 128px;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip > div span {
  max-width: 132px;
  margin-top: 13px;
  color: #737d78;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button {
  position: relative;
  display: grid;
  min-height: 120px;
  padding: 17px 8px 24px;
  align-content: start;
  justify-items: center;
  gap: 5px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(22, 32, 27, 0.045);
  color: #26312d;
  font-size: 10px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button::after {
  content: "›";
  position: absolute;
  bottom: 12px;
  left: 50%;
  color: #7f8884;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transform: translateX(-50%);
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: #0b6a4d;
  font-size: 19px;
}

body:not(.admin-page):not(.sale-admin-page) .intent-strip button small {
  color: #69736e;
  font-size: 10px;
  font-weight: 650;
}

body:not(.admin-page):not(.sale-admin-page) #listings.section {
  padding: 28px 0 32px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
  align-items: center;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 14px;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading h2 {
  color: #26312d;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.1;
}

body:not(.admin-page):not(.sale-admin-page) #listings .section-heading p,
body:not(.admin-page):not(.sale-admin-page) #listings .filters {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  color: #26312d;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(22, 32, 27, 0.045);
}

body:not(.admin-page):not(.sale-admin-page) .listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #edf0ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card:first-child::after {
  content: "NỔI BẬT";
  position: absolute;
  top: 13px;
  left: 11px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: #d7b02f;
  color: #3e3510;
  font-size: 8px;
  font-weight: 850;
}

body:not(.admin-page):not(.sale-admin-page) .listing-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
}

body:not(.admin-page):not(.sale-admin-page) .listing-fav {
  top: 11px;
  right: 11px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(22, 32, 27, 0.14);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body {
  gap: 6px;
  padding: 10px 10px 12px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-meta:first-child {
  display: none;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body h3 {
  min-height: 30px;
  margin: 0;
  color: #303a36;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) .listing-body p {
  margin: 0;
  color: #77817c;
  font-size: 9px;
  line-height: 1.35;
}

body:not(.admin-page):not(.sale-admin-page) .price {
  color: #0b6a4d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

body:not(.admin-page):not(.sale-admin-page) .listing-meta {
  gap: 5px;
}

body:not(.admin-page):not(.sale-admin-page) .tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #66726d;
  font-size: 9px;
}

body:not(.admin-page):not(.sale-admin-page) .listing-meta .tag + .tag::before {
  content: "= ";
}

body:not(.admin-page):not(.sale-admin-page) .listing-card .button {
  display: none;
}

@media (max-width: 900px) {
  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip > div {
    grid-column: 1 / -1;
  }

  body:not(.admin-page):not(.sale-admin-page) .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) #listings {
    width: min(100% - 24px, 1540px);
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) .listing-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  body:not(.admin-page):not(.sale-admin-page) .hero {
    min-height: calc(100vh - 168px);
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 13px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 660px;
    font-size: clamp(44px, 4.25vw, 58px);
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    margin-top: 20px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    min-height: 44px;
  }

  .hero-proof {
    margin-top: 20px;
  }

  .hero-bottom-stats {
    display: none;
  }

  .ops-card.main {
    padding: 18px;
  }

  .lead-queue div {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .network-ring {
    width: 92px;
    height: 92px;
  }
}

/* First-screen hero matched to the supplied desktop reference */
@media (min-width: 1181px) {
  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 58px;
    padding: 0 clamp(36px, 4.8vw, 66px);
    background: rgba(255, 255, 255, 0.96);
  }

  body:not(.admin-page):not(.sale-admin-page) .brand {
    font-size: 14px;
    font-weight: 900;
  }

  body:not(.admin-page):not(.sale-admin-page) .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav {
    gap: clamp(18px, 2.3vw, 30px);
    font-size: 12px;
    font-weight: 800;
  }

  body:not(.admin-page):not(.sale-admin-page) .header-action {
    min-height: 38px;
    padding: 0 19px;
    font-size: 12px;
    font-weight: 850;
  }

  .header-call {
    width: 32px;
    height: 32px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    grid-template-columns: minmax(390px, 0.9fr) minmax(340px, 0.76fr);
    gap: clamp(24px, 3.8vw, 58px);
    align-items: center;
    min-height: calc(100vh - 58px);
    padding: clamp(28px, 4.4vw, 44px) clamp(36px, 4.8vw, 66px) clamp(22px, 3.5vw, 34px);
    background:
      linear-gradient(90deg, rgba(8, 23, 18, 0.93) 0%, rgba(8, 23, 18, 0.72) 42%, rgba(8, 23, 18, 0.12) 100%),
      url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1900&q=88") center right / cover no-repeat;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero::after {
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 247, 243, 0.9));
  }

  .hero-kicker {
    margin-bottom: 10px;
    color: #d6b14d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 610px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(34px, 3.25vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    display: block;
    margin: 0 0 16px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(86px, 8.45vw, 122px);
    font-weight: 800;
    font-style: normal;
    line-height: 0.84;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line span,
  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
    display: inline;
    font-style: normal;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line em {
    color: #7cc261;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.7;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    gap: 18px;
    margin-top: 30px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    min-height: 52px;
    padding: 0 30px;
    font-size: 13px;
    font-weight: 850;
  }

  .hero-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(560px, 100%);
    margin-top: 22px;
  }

  .hero-proof div {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 1px 8px;
    align-items: center;
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(9, 42, 32, 0.54);
  }

  .hero-proof i {
    grid-row: 1 / 3;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: rgba(124, 194, 97, 0.15);
    color: #9bd37c;
    font-style: normal;
    font-size: 12px;
  }

  .hero-proof strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
  }

  .hero-proof span {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }

  .hero-bottom-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(560px, 100%);
    margin-top: 22px;
    padding: 13px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-bottom-stats strong {
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
  }

  .hero-bottom-stats span {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
  }

  .hero-ops {
    justify-items: end;
  }

  .ops-card.main {
    width: min(500px, 100%);
    padding: 20px;
    border-radius: 8px;
    background: rgba(13, 29, 24, 0.91);
  }

  .ops-card .panel-topline {
    padding-bottom: 12px;
    font-size: 12px;
    font-weight: 850;
  }

  .ops-card .panel-topline strong {
    position: relative;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 800;
  }

  .ops-card .panel-topline strong::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #41c978;
  }

  .ops-metrics {
    gap: 9px;
    margin: 15px 0 17px;
  }

  .ops-metrics div {
    min-height: 58px;
    padding: 10px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }

  .ops-metrics strong {
    font-size: 25px;
    font-weight: 900;
  }

  .ops-metrics span {
    font-size: 9.5px;
    font-weight: 700;
  }

  .ops-subtitle {
    margin: 4px 0 10px;
    font-size: 14px;
  }

  .lead-queue {
    gap: 9px;
  }

  .lead-queue div {
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    gap: 7px 12px;
    min-height: 58px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.96);
  }

  .lead-avatar {
    grid-row: 1 / 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f1d7c4, #7bb3a0);
    color: #123429;
    font-size: 0;
    font-weight: 900;
  }

  .lead-info {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .lead-info strong {
    color: #1e2a25;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
  }

  .lead-info small {
    color: #66726d;
    font-size: 9.5px;
    line-height: 1.2;
  }

  .lead-queue time {
    color: #89928e;
    font-size: 9.5px;
    white-space: nowrap;
  }

  .lead-queue button {
    grid-row: auto;
    grid-column: auto;
    min-height: 28px;
    padding: 0 13px;
    border-radius: 5px;
    background: #0b6a4d;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 850;
  }

  .lead-all {
    display: inline-flex;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
  }

  .network-box {
    grid-template-columns: 112px 1fr;
    gap: 20px;
    margin-top: 17px;
    padding-top: 17px;
  }

  .network-ring {
    width: 94px;
    height: 94px;
    border-width: 11px;
  }

  .network-ring strong {
    font-size: 26px;
  }

  .network-ring span,
  .network-bars p {
    font-size: 11px;
  }

  .network-title {
    font-size: 12px;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip {
    margin-top: 0;
  }

  .lead-avatar.avatar-a {
    background: url("https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&w=96&q=90") center / cover;
  }

  .lead-avatar.avatar-b {
    background: url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=96&q=90") center / cover;
  }

  .lead-avatar.avatar-c {
    background: url("https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=96&q=90") center / cover;
  }
}
/* Final mobile override: this block intentionally stays last to neutralize older duplicated homepage rules. */
@media (max-width: 680px) {
  body:not(.admin-page):not(.sale-admin-page) {
    overflow-x: hidden;
  }

  body:not(.admin-page):not(.sale-admin-page) *,
  body:not(.admin-page):not(.sale-admin-page) *::before,
  body:not(.admin-page):not(.sale-admin-page) *::after {
    box-sizing: border-box;
  }

  body:not(.admin-page):not(.sale-admin-page) .site-header {
    height: 58px;
    padding: 0 14px;
  }

  body:not(.admin-page):not(.sale-admin-page) .top-nav,
  body:not(.admin-page):not(.sale-admin-page) .header-action {
    display: none;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 30px 18px 24px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(5, 45, 34, 0.94) 0%, rgba(5, 45, 34, 0.78) 58%, rgba(5, 45, 34, 0.48) 100%),
      url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=86") center / cover no-repeat;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-copy,
  body:not(.admin-page):not(.sale-admin-page) .hero-ops,
  body:not(.admin-page):not(.sale-admin-page) .ops-card.main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-ops {
    justify-self: stretch;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero h1 .hero-brand-line {
    display: block;
    max-width: 100%;
    margin: 0 0 12px;
    font-size: clamp(54px, 17vw, 68px);
    line-height: 0.88;
    white-space: nowrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    white-space: normal;
    text-align: center;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof,
  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .hero-proof div,
  body:not(.admin-page):not(.sale-admin-page) .hero-bottom-stats div,
  body:not(.admin-page):not(.sale-admin-page) .ops-metrics div {
    min-width: 0;
  }

  body:not(.admin-page):not(.sale-admin-page) .panel-topline,
  body:not(.admin-page):not(.sale-admin-page) .listing-price-row,
  body:not(.admin-page):not(.sale-admin-page) .network-bars p {
    min-width: 0;
    flex-wrap: wrap;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue div {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-queue time,
  body:not(.admin-page):not(.sale-admin-page) .lead-queue button {
    grid-column: 2;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-box {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .network-bars {
    width: 100%;
  }

  body:not(.admin-page):not(.sale-admin-page) .intent-strip,
  body:not(.admin-page):not(.sale-admin-page) #listings,
  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) .owner-form-section,
  body:not(.admin-page):not(.sale-admin-page) #agents,
  body:not(.admin-page):not(.sale-admin-page) .signup-band {
    width: calc(100% - 24px);
  }

  body:not(.admin-page):not(.sale-admin-page) .lead-ai-section,
  body:not(.admin-page):not(.sale-admin-page) #lead-form,
  body:not(.admin-page):not(.sale-admin-page) .owner-band,
  body:not(.admin-page):not(.sale-admin-page) .partner-role-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.sale-admin-page) .section-heading {
    align-items: stretch;
    gap: 10px;
  }

  body:not(.admin-page):not(.sale-admin-page) #listings .section-heading {
    flex-direction: column;
  }

  body:not(.admin-page):not(.sale-admin-page) .view-all-link {
    margin-left: 0;
    justify-content: center;
  }

  body:not(.admin-page):not(.sale-admin-page) h1,
  body:not(.admin-page):not(.sale-admin-page) h2,
  body:not(.admin-page):not(.sale-admin-page) h3,
  body:not(.admin-page):not(.sale-admin-page) p,
  body:not(.admin-page):not(.sale-admin-page) a,
  body:not(.admin-page):not(.sale-admin-page) button,
  body:not(.admin-page):not(.sale-admin-page) span,
  body:not(.admin-page):not(.sale-admin-page) strong,
  body:not(.admin-page):not(.sale-admin-page) small {
    overflow-wrap: anywhere;
  }
}
/* Final chat mobile override: keep the opened chatbot tall under the top header. */
@media (max-width: 680px) {
  .ren-chat-widget.open {
    top: 66px;
    right: 8px !important;
    bottom: 8px;
    left: 8px;
    display: grid;
  }

  .ren-chat-widget.open .ren-chat-panel {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 90;
  }

  .ren-chat-widget.open .ren-chat-stream {
    min-height: 0;
  }

  .ren-chat-widget.open .ren-chat-form {
    padding: 10px 12px 12px;
  }
}
