:root {
  color-scheme: light;
  --orange: #ff7a1a;
  --orange-dark: #d85f08;
  --orange-soft: #fff0e5;
  --turquoise: #00a8a8;
  --turquoise-dark: #007f82;
  --turquoise-soft: #e1f7f7;
  --black: #111111;
  --ink: #1c1c1c;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --wash: #f7f8f9;
  --warning: #b7791f;
  --warning-soft: #fff7df;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Workflow polish: notifications, inspections, payments, and compact property browsing. */
.header-alert-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
}

.header-alert-button .dock-icon {
  width: 22px;
  height: 22px;
}

.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #e62f2f;
  box-shadow: 0 0 0 1px rgba(230, 47, 47, 0.2);
}

.listing-photo-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 20px;
  background: linear-gradient(145deg, rgba(0, 168, 168, 0.12), rgba(255, 122, 26, 0.12)), var(--paper);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.unit-feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.unit-feature-icon {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.unit-feature-icon .dock-icon {
  width: 17px;
  height: 17px;
  color: var(--turquoise-dark);
}

.inspection-list,
.payment-destination-stack {
  display: grid;
  gap: 10px;
}

.inspection-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.inspection-row > div,
.inspection-row strong,
.inspection-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.inspection-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.inspection-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--turquoise-soft);
  color: var(--turquoise-dark);
}

.payment-destination-panel,
.pending-payment-state,
.lease-signing-panel,
.agent-offer-summary,
.permission-warning {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--wash);
}

.payment-destination-panel.hidden {
  display: none;
}

.pending-payment-state {
  border-color: rgba(255, 122, 26, 0.36);
  background: rgba(255, 122, 26, 0.08);
}

.permission-warning {
  border-color: rgba(255, 122, 26, 0.34);
  background: rgba(255, 122, 26, 0.08);
  color: var(--ink);
}

.generated-lease-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 168, 168, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fcfc 100%);
}

.generated-lease-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.generated-lease-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

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

.lease-field-grid > div,
.lease-standard-terms {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.lease-field-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.lease-field-grid span,
.lease-standard-terms p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pending-button,
.pending-button:hover {
  border-color: rgba(255, 122, 26, 0.3);
  background: rgba(255, 122, 26, 0.12);
  color: #9a4b0d;
  cursor: wait;
  transform: none;
}

.nairobi-signoff {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: baseline;
  padding: 20px 16px calc(22px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.nairobi-signoff strong {
  color: var(--orange);
  font-size: 13px;
}

.nairobi-signoff small {
  margin-left: 7px;
  color: var(--muted);
}

@media (min-width: 761px) {
  .property-grid,
  .floating-listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    justify-content: start;
  }

  .property-card .photo-track img,
  .floating-image-wrap img,
  .listing-photo-empty {
    height: 198px;
    min-height: 198px;
    aspect-ratio: auto;
  }

  .unit-floating-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 315px));
    justify-content: start;
  }

  .unit-floating-main img {
    height: 178px;
    aspect-ratio: auto;
  }

  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .dashboard-tabs .tab-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .payment-dashboard {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  }

  .payment-dashboard .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }

  .property-grid .property-body {
    gap: 8px;
    padding: 13px;
  }

  .property-grid .price {
    font-size: 18px;
  }

  .property-grid .status-row {
    gap: 8px;
  }

  .property-grid .currency-convert-chip {
    min-height: 32px;
    padding: 5px 9px;
  }

  .property-grid .property-description {
    display: none;
  }

  .property-grid .property-meta {
    justify-content: flex-start;
    gap: 6px 10px;
    font-size: 12px;
  }

  .property-grid .property-money-strip span {
    padding: 8px;
  }

  .property-grid .property-cta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .property-grid .property-cta-row .button {
    min-height: 38px;
    padding: 7px 5px;
    font-size: 10px;
    white-space: normal;
  }
}

.notification-item-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.notification-item-actions .icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

@media (max-width: 760px) {
  .app-topbar {
    min-width: 0;
  }

  .app-topbar .header-alert-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .property-cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-cta-row > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .property-cta-row .button {
    width: 100%;
    min-height: 44px;
    padding-inline: 8px;
    white-space: normal;
  }

  .inspection-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .inspection-row > .row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .payment-dashboard,
  .payment-dashboard .stats-grid {
    grid-template-columns: 1fr;
  }

  .payment-dashboard .stat-card strong {
    font-size: clamp(20px, 6vw, 27px);
  }

  .notification-item {
    align-items: flex-start;
  }

  .notification-item-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .lease-signing-panel {
    padding: 12px;
  }

  .lease-field-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .modal-card form > .button-row:last-child,
  .modal-card form > .row-actions:last-child {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 10px 0 max(2px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, var(--paper) 18%);
  }

  .nairobi-signoff {
    flex-wrap: wrap;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }
}

.insight-panel {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(8, 143, 146, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(8, 143, 146, 0.08), rgba(255, 116, 23, 0.05)),
    var(--paper);
  box-shadow: 0 16px 40px rgba(21, 24, 27, 0.07);
  color: var(--ink);
}

.insight-panel h3,
.insight-panel p {
  margin: 0;
}

.section-title-row,
.mini-stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mini-stat-row {
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.mini-stat-row span,
.amenity-chip-grid span,
.checklist-grid span,
.compact-card-rail button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.pilot-map-canvas {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 116, 23, 0.22), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(8, 143, 146, 0.22), transparent 28%),
    linear-gradient(135deg, #edf8f8, #f8fbfb);
  border: 1px solid rgba(8, 143, 146, 0.2);
}

.map-road {
  position: absolute;
  inset: auto;
  display: block;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 1px rgba(100, 112, 123, 0.08);
}

.map-road.main {
  width: 120%;
  height: 18px;
  left: -8%;
  top: 48%;
  transform: rotate(-16deg);
}

.map-road.cross {
  width: 18px;
  height: 120%;
  left: 56%;
  top: -10%;
  transform: rotate(18deg);
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 1px;
  min-width: 52px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(255, 116, 23, 0.26);
  cursor: pointer;
}

.map-pin small {
  color: rgba(17, 17, 17, 0.66);
  font-size: 8px;
  line-height: 1;
}

.inline-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.inline-search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.amenity-chip-grid,
.checklist-grid,
.compact-card-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.amenity-chip-grid span,
.checklist-grid span,
.compact-card-rail button {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}

.amenity-chip-grid small,
.compact-card-rail small,
.property-card-insight,
.crew-last-transacted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checklist-grid span {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.checklist-grid span.done {
  border-color: rgba(8, 143, 146, 0.35);
  background: rgba(8, 143, 146, 0.1);
}

.timeline-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-mini span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #f4f6f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.timeline-mini span.active {
  background: rgba(8, 143, 146, 0.13);
  color: var(--turquoise);
}

.repair-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.repair-guide-grid span {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.repair-guide-grid b {
  color: var(--orange);
}

.property-card-insight {
  margin: 10px 0 0;
}

.crew-last-transacted {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .insight-panel {
    margin: 14px 0;
    padding: 14px;
    border-radius: 20px;
  }

  .section-title-row {
    display: grid;
  }

  .pilot-map-canvas {
    min-height: 190px;
  }

  .amenity-chip-grid,
  .checklist-grid,
  .compact-card-rail {
    grid-template-columns: 1fr;
  }
}

/* Approved UrbanNest discovery and dashboard layout, August 2026. */
.discovery-nav {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.discovery-nav .nav-inner {
  width: min(1380px, calc(100% - 48px));
  min-height: 66px;
  gap: 20px;
}

.discovery-brand {
  gap: 8px;
}

.discovery-brand .brand-logo-wrap,
.discovery-brand .brand-logo-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.brand strong i {
  color: var(--orange);
  font-style: normal;
}

.discovery-brand strong {
  font-size: 19px;
}

.discovery-brand small,
.signed-in-brand small {
  display: none;
}

.discovery-nav .nav-links {
  flex: 1 1 auto;
  justify-content: center;
}

.discovery-actions {
  flex-wrap: nowrap;
}

.nav-saved-action,
.nav-signin-action,
.nav-profile-action,
.nav-menu-action {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.nav-profile-action {
  padding: 0;
}

.nav-profile-action .avatar {
  width: 38px;
  height: 38px;
}

.nav-saved-action .dock-icon,
.nav-signin-action .dock-icon,
.nav-menu-action .dock-icon {
  width: 19px;
  height: 19px;
}

.discovery-nav .mobile-nav-toggle {
  display: inline-grid !important;
}

.discovery-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.discovery-hero .container,
.available-nearby-section .container {
  width: min(1380px, calc(100% - 48px));
}

.home-search-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(150px, 0.75fr)) auto;
  align-items: stretch;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.1);
}

.home-search-bar label {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.home-search-bar label:first-child {
  grid-template-columns: auto minmax(0, 1fr);
}

.home-search-bar label:first-child .dock-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 18px;
  margin-right: 8px;
}

.home-search-bar select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.home-search-submit {
  align-self: center;
  min-height: 42px;
  margin: 7px;
  padding: 8px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
}

.discovery-hero-grid {
  position: relative;
  display: grid;
  min-height: 430px;
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wash);
  isolation: isolate;
}

.discovery-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  width: min(48%, 580px);
  padding: clamp(32px, 5vw, 70px);
}

.discovery-hero-copy::before {
  position: absolute;
  z-index: -1;
  inset: 0 -55% 0 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 58%, color-mix(in srgb, var(--paper) 78%, transparent) 78%, transparent 100%);
  content: "";
}

.discovery-hero-copy h1 {
  max-width: 570px;
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

.discovery-hero-copy p {
  max-width: 430px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.discovery-hero-copy .button.ghost {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.discovery-hero-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: var(--wash);
}

.discovery-hero-media > img,
.hero-live-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-live-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-live-empty img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.hero-trust-panel {
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  width: min(245px, 28%);
  gap: 6px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--turquoise) 30%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.18);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.hero-trust-heading {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 900;
}

.hero-trust-heading .dock-icon {
  width: 20px;
}

.hero-trust-panel > strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
}

.hero-trust-panel > strong small {
  color: var(--muted);
  font-size: 16px;
}

.hero-trust-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-trust-panel ul {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.hero-trust-panel li {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
}

.hero-trust-panel li .dock-icon {
  width: 14px;
  color: var(--turquoise-dark);
}

.hero-listing-caption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: grid;
  min-width: 245px;
  padding: 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  color: #ffffff;
}

.hero-listing-caption strong,
.hero-listing-caption span {
  color: #ffffff;
}

.hero-listing-caption span {
  font-size: 12px;
}

.available-nearby-section {
  padding: 38px 0 28px;
}

.compact-section-title {
  align-items: center;
  margin-bottom: 16px;
}

.compact-section-title h2 {
  font-size: 34px;
}

.listing-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.property-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.property-rail > .discovery-property-card {
  flex: 0 0 min(300px, 27vw);
  scroll-snap-align: start;
}

.discovery-property-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
}

.discovery-property-card .photo-carousel,
.discovery-property-card .photo-track,
.discovery-property-card .photo-track img,
.discovery-property-card .listing-photo-empty {
  height: 178px;
  min-height: 178px;
}

.discovery-property-card .photo-track img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
}

.discovery-property-card .photo-logo-overlay {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.discovery-property-card .property-body {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: auto auto minmax(34px, auto) 1fr auto;
  gap: 9px;
  padding: 13px;
}

.discovery-property-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.listing-title-row,
.listing-price-row,
.listing-attribution-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.listing-title-row > div {
  min-width: 0;
}

.listing-title-row h3 {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-title-row p {
  min-height: 15px;
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-price-row {
  align-items: center;
}

.listing-price-row .price {
  font-size: 18px;
}

.listing-price-row .price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.compact-property-meta {
  display: flex;
  min-height: 34px;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 11px;
}

.listing-attribution-row {
  min-height: 30px;
  align-items: center;
}

.listing-attribution-row > small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-attribution-row .currency-convert-chip {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 4px 7px;
  font-size: 10px;
}

.listing-attribution-row .currency-convert-chip small {
  display: none;
}

.discovery-property-card .property-cta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.discovery-property-card .property-cta-row .button {
  min-height: 36px;
  padding: 6px 4px;
  font-size: 11px;
}

.property-cta-row-single {
  grid-template-columns: 1fr;
}

.realestate-listing-card[data-action="viewPropertyUnits"] {
  cursor: pointer;
}

.apartment-unit-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.apartment-unit-preview-strip button,
.apartment-media-tile {
  position: relative;
  min-width: 0;
  min-height: 54px;
  aspect-ratio: 1.2 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
  color: var(--black);
  cursor: zoom-in;
}

.apartment-unit-preview-strip img,
.apartment-media-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-unit-preview-strip span,
.apartment-media-tile span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  min-width: 0;
  padding: 4px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-bubble-preview-strip {
  margin: 0 14px 12px;
}

.apartment-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  min-width: 0;
}

.apartment-media-tile {
  aspect-ratio: 1 / 1;
}

.apartment-media-tile.primary {
  grid-column: span 2;
  aspect-ratio: 1.8 / 1;
}

.apartment-media-tile.primary span {
  max-width: max-content;
}

.trust-value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.trust-value-strip article {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.trust-value-strip article:last-child {
  border-right: 0;
}

.trust-value-strip .dock-icon {
  width: 27px;
  flex: 0 0 27px;
  color: var(--turquoise-dark);
}

.trust-value-strip div {
  display: grid;
  gap: 3px;
}

.trust-value-strip strong {
  font-size: 13px;
}

.trust-value-strip span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.unit-detail-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(120px, 1fr));
  gap: 5px;
  height: min(44vh, 390px);
  overflow: hidden;
  border-radius: 8px;
}

.unit-gallery-photo {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--wash);
}

.unit-gallery-photo.photo-1 {
  grid-row: 1 / 3;
}

.unit-gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-bubble-image img[data-action],
.apartment-unit-preview-strip button,
.apartment-media-tile,
.floating-image-wrap img[data-action],
.property-page-hero img[data-action],
.property-detail-hero img[data-action],
.mockup-property-hero > img[data-action],
.unit-floating-main img[data-action],
.photo-track img[data-action] {
  cursor: zoom-in;
}

.batch-unit-panel {
  border-color: rgba(0, 168, 168, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.08), rgba(255, 122, 26, 0.08)),
    var(--paper);
}

.batch-unit-panel h3 {
  margin-bottom: 2px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.checkbox-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}

.unit-detail-gallery.single {
  display: block;
}

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.property-media-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 2px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.property-media-tabs span {
  white-space: nowrap;
}

.property-media-tabs .active {
  color: var(--orange-dark);
}

.property-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.collection-bubble {
  padding: 10px;
}

.collection-bubble summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.collection-bubble summary::-webkit-details-marker {
  display: none;
}

.collection-bubble summary > img {
  width: 88px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}

.collection-bubble summary > span {
  display: grid;
  gap: 5px;
}

.collection-bubble summary small {
  color: var(--muted);
}

.collection-bubble summary > .dock-icon {
  width: 18px;
  transition: transform 160ms ease;
}

.collection-bubble[open] summary > .dock-icon {
  transform: rotate(90deg);
}

.collection-bubble-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px 0;
}

.collections-page > .card-header h2 {
  margin: 0;
  font-size: 28px;
}

.app-topbar-inner {
  min-height: 64px;
}

.app-topbar .signed-in-brand {
  width: auto;
  height: auto;
}

.app-topbar .signed-in-brand .brand-logo-wrap,
.app-topbar .signed-in-brand .brand-logo-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.app-topbar .signed-in-brand span:last-child {
  display: grid;
}

.app-topbar .signed-in-brand strong {
  font-size: 18px;
}

.app-main {
  width: min(1220px, calc(100% - 32px));
  padding-top: 22px;
}

.dashboard-heading {
  margin-bottom: 14px;
}

.dashboard-heading h1 {
  font-size: 38px;
}

.dashboard-tabs {
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.dashboard-tabs .tab-button {
  min-height: 34px;
  border-radius: 6px;
}

.dashboard-tabs .tab-button.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

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

.dashboard-summary-card {
  min-height: 104px;
  padding: 14px;
  box-shadow: none;
}

.dashboard-summary-card strong {
  font-size: 27px;
}

.dashboard-card,
.chart-card,
.tenant-planner,
.dashboard-intro-card {
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.06);
}

@media (max-width: 1040px) {
  .home-search-bar {
    grid-template-columns: 1.3fr repeat(2, 0.8fr) auto;
  }

  .home-search-bar label:nth-of-type(4) {
    display: none;
  }

  .hero-trust-panel {
    width: 230px;
  }

  .trust-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-value-strip article:nth-child(2) {
    border-right: 0;
  }

  .trust-value-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .discovery-nav .nav-inner {
    width: calc(100% - 24px);
    min-height: 62px;
    gap: 8px;
  }

  .discovery-brand .brand-logo-wrap,
  .discovery-brand .brand-logo-image {
    width: 34px;
    height: 34px;
  }

  .discovery-brand span:last-child {
    display: grid;
  }

  .discovery-brand strong {
    font-size: 17px;
  }

  .discovery-actions {
    display: flex;
    margin-left: auto;
    gap: 2px;
  }

  .discovery-actions .nav-saved-action,
  .discovery-actions .nav-signin-action span,
  .nav-saved-action span {
    display: none;
  }

  .discovery-actions .nav-signin-action,
  .discovery-actions .header-alert-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .discovery-nav .nav-menu-action {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .mobile-home-app {
    gap: 20px;
    padding-top: 12px;
    background: var(--paper);
  }

  .mobile-home-search {
    display: grid;
    gap: 10px;
    padding: 0 14px;
  }

  .mobile-search-field {
    display: flex;
    min-height: 48px;
    gap: 9px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--muted);
    box-shadow: 0 5px 18px rgba(17, 17, 17, 0.07);
    text-align: left;
  }

  .mobile-search-field .dock-icon {
    width: 19px;
    flex: 0 0 19px;
  }

  .mobile-search-field span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-filter-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .mobile-filter-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-filter-rail label {
    position: relative;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
  }

  .mobile-filter-rail label.active {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--black);
  }

  .mobile-filter-rail select {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
  }

  .mobile-app-section {
    padding-inline: 14px;
  }

  .mobile-section-title > div {
    min-width: 0;
  }

  .mobile-section-title > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--orange-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-section-title h2 {
    font-size: 20px;
  }

  .mobile-section-title button {
    min-height: 32px;
    padding: 5px 8px;
    border: 0;
    color: var(--muted);
    font-size: 11px;
    box-shadow: none;
  }

  .mobile-home-property-list {
    display: grid;
    gap: 14px;
  }

  .mobile-home-property-list .discovery-property-card {
    width: 100%;
    box-shadow: 0 7px 22px rgba(17, 17, 17, 0.08);
  }

  .mobile-home-property-list .discovery-property-card .photo-carousel,
  .mobile-home-property-list .discovery-property-card .photo-track,
  .mobile-home-property-list .discovery-property-card .photo-track img,
  .mobile-home-property-list .discovery-property-card .listing-photo-empty {
    height: clamp(190px, 56vw, 255px);
    min-height: clamp(190px, 56vw, 255px);
  }

  .discovery-property-card .property-body {
    padding: 12px;
  }

  .listing-title-row h3 {
    font-size: 15px;
  }

  .discovery-property-card .property-cta-row .button {
    min-height: 40px;
    font-size: 11px;
  }

  .mobile-summary-dock,
  .mobile-role-dock {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    gap: 2px;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--paper) 95%, transparent);
    box-shadow: 0 10px 34px rgba(17, 17, 17, 0.16);
  }

  .mobile-summary-dock button,
  .mobile-role-dock button {
    min-height: 54px;
    border-radius: 6px;
    color: var(--muted);
  }

  .mobile-summary-dock button.active,
  .mobile-role-dock button.active {
    background: var(--orange-soft);
    color: var(--orange-dark);
  }

  .mobile-summary-dock span,
  .mobile-role-dock span {
    font-size: clamp(8px, 2.35vw, 10px);
  }

  .mobile-guides-section {
    padding-bottom: 20px;
  }

  .unit-detail-gallery {
    grid-template-columns: 1fr 0.7fr;
    grid-template-rows: repeat(2, minmax(100px, 1fr));
    height: min(42vh, 310px);
  }

  .unit-gallery-photo:nth-of-type(n + 4) {
    display: none;
  }

  .property-media-tabs {
    gap: 14px;
  }

  .property-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-detail-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .collections-page {
    padding: 14px;
  }

  .collection-bubble summary {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .collection-bubble summary > img {
    width: 76px;
    height: 62px;
  }

  .app-topbar-inner {
    display: flex;
    width: calc(100% - 24px);
    min-height: 58px;
    padding: 7px 0;
  }

  .app-topbar .signed-in-brand {
    flex: 1 1 auto;
  }

  .app-topbar .signed-in-brand .brand-logo-wrap,
  .app-topbar .signed-in-brand .brand-logo-image {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .app-topbar .signed-in-brand span:last-child {
    display: grid;
  }

  .app-topbar .signed-in-brand strong {
    font-size: 16px;
  }

  .app-topbar .app-user {
    flex: 0 0 auto;
    width: auto;
    gap: 5px;
  }

  .app-topbar .app-user > div {
    display: none;
  }

  .app-topbar .app-user .avatar {
    width: 36px;
    height: 36px;
  }

  .app-topbar .app-user .button {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .app-main {
    width: calc(100% - 20px);
    padding-top: 14px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .dashboard-heading {
    margin-bottom: 10px;
  }

  .dashboard-heading h1,
  .dashboard-greeting h1 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .dashboard-tabs {
    display: none;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-summary-card {
    min-height: 88px;
    padding: 11px;
  }

  .dashboard-summary-card strong {
    font-size: clamp(18px, 5.7vw, 25px);
  }

  .dashboard-summary-card small,
  .dashboard-summary-card span {
    font-size: 10px;
  }

  .dashboard-card,
  .chart-card,
  .dashboard-intro-card,
  .tenant-planner {
    padding: 13px;
  }

  .chart-grid,
  .workspace-grid {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .discovery-nav .nav-inner {
    width: calc(100% - 16px);
  }

  .discovery-brand strong {
    font-size: 15px;
  }

  .discovery-actions .header-alert-button,
  .discovery-actions .nav-profile-action,
  .discovery-nav .nav-menu-action {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .mobile-home-search,
  .mobile-app-section {
    padding-inline: 10px;
  }

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

  .property-detail-actions {
    grid-template-columns: 1fr;
  }

  .property-detail-actions .button:first-child {
    grid-column: auto;
  }
}

@media (prefers-color-scheme: dark) and (prefers-color-scheme: light) {
  .discovery-nav,
  .discovery-hero,
  .available-nearby-section,
  .mobile-home-app {
    background: #090a0b;
    color: #f6f7f8;
  }

  .home-search-bar,
  .mobile-search-field,
  .mobile-filter-rail label,
  .trust-value-strip,
  .hero-trust-panel,
  .collection-bubble,
  .dashboard-tabs {
    border-color: #30343a;
    background: #151719;
    color: #f6f7f8;
  }

  .home-search-bar label,
  .trust-value-strip article {
    border-color: #30343a;
  }

  .home-search-bar select,
  .nav-saved-action,
  .nav-signin-action,
  .nav-profile-action,
  .nav-menu-action,
  .mobile-search-field,
  .mobile-filter-rail label,
  .listing-title-row h3,
  .listing-price-row .price,
  .hero-trust-panel > strong,
  .hero-trust-panel li,
  .discovery-hero-copy h1 {
    color: #f6f7f8;
  }

  .discovery-hero-grid,
  .discovery-hero-media,
  .hero-live-empty {
    background: #0f1113;
  }

  .discovery-hero-copy::before {
    background: linear-gradient(90deg, #090a0b 0%, #090a0b 58%, rgba(9, 10, 11, 0.76) 78%, transparent 100%);
  }

  .discovery-hero-copy .button.ghost {
    border-color: #3b4048;
    background: rgba(21, 23, 25, 0.92);
    color: #f6f7f8;
  }

  .mobile-summary-dock,
  .mobile-role-dock {
    border-color: #30343a;
    background: rgba(21, 23, 25, 0.96);
  }

  .mobile-summary-dock button,
  .mobile-role-dock button {
    color: #b8bec7;
  }
}

/* Mobile property actions stay compact despite broad legacy button rules. */
@media (max-width: 760px) {
  .mobile-mini-property .property-trust-badge.compact {
    grid-column: auto;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
  }

  .mobile-mini-property .mobile-mini-actions {
    grid-column: 1 / -1;
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
  }

  .mobile-mini-property .mobile-mini-actions > button {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }

  .mobile-mini-property .mobile-mini-actions > button:first-child {
    width: 44px;
    border-radius: 50%;
  }
}

/* Swipeable, published-only property media. */
.shorts-section {
  background: var(--wash);
}

.shorts-rail {
  display: grid;
  grid-auto-columns: minmax(220px, 286px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shorts-rail::-webkit-scrollbar {
  display: none;
}

.short-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  scroll-snap-align: start;
  text-align: left;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

.short-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
  pointer-events: none;
}

.short-card > div {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  min-width: 0;
  gap: 4px;
}

.short-card-play {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.58);
  color: #fff;
  backdrop-filter: blur(8px);
}

.short-card-play .dock-icon {
  width: 21px;
  height: 21px;
}

.short-card strong,
.short-card small {
  overflow-wrap: anywhere;
  color: #fff;
}

.short-card span {
  color: #72e1dd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.short-card a {
  justify-self: start;
  margin-top: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.shorts-empty {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.shorts-empty .dock-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--turquoise-dark);
}

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

.shorts-empty strong,
.shorts-empty span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

@media (max-width: 760px) {
  .shorts-rail {
    grid-auto-columns: minmax(172px, 54vw);
  }

  .short-card {
    aspect-ratio: 9 / 16;
  }
}

/* Full-screen, vertical UrbanNest Shorts playback. */
.modal-card.shorts-viewer-modal {
  width: min(480px, calc(100vw - 24px));
  max-width: min(480px, calc(100vw - 24px));
  height: min(860px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #050505;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.shorts-viewer-shell,
.shorts-viewer-feed,
.shorts-viewer-item {
  width: 100%;
  height: 100%;
}

.shorts-viewer-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
}

.shorts-viewer-topbar {
  position: absolute;
  z-index: 7;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.shorts-viewer-topbar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

.shorts-viewer-topbar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.shorts-viewer-topbar button,
.shorts-viewer-actions button,
.shorts-play-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.48);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.shorts-viewer-feed {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}

.shorts-viewer-feed::-webkit-scrollbar {
  display: none;
}

.shorts-viewer-item {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #050505;
}

.shorts-viewer-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shorts-viewer-gradient {
  position: absolute;
  inset: 32% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.shorts-viewer-copy {
  position: absolute;
  z-index: 3;
  right: 76px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 18px;
  display: grid;
  gap: 5px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

.shorts-viewer-copy span {
  color: #82ebe7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shorts-viewer-copy h2,
.shorts-viewer-copy p,
.shorts-viewer-copy small {
  margin: 0;
  color: #fff;
}

.shorts-viewer-copy h2 {
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.08;
}

.shorts-viewer-copy p {
  font-size: 14px;
  font-weight: 800;
}

.shorts-viewer-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.shorts-viewer-actions {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
}

.shorts-play-toggle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

.shorts-viewer-item.is-paused .shorts-play-toggle {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .modal-backdrop:has(.shorts-viewer-modal) {
    padding: 0;
    background: #050505;
  }

  .modal-card.shorts-viewer-modal,
  .modal-card.shorts-viewer-modal.narrow {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

@media (prefers-color-scheme: dark) and (prefers-color-scheme: light) {
  .shorts-section,
  .shorts-empty {
    border-color: #30343a;
    background: #0f1113;
    color: #f6f7f8;
  }
}

/* Trust, collections, media, and marketplace experience. */
.property-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}

.property-trust-row > small {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.property-trust-badge {
  display: inline-flex;
  min-height: 34px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 122, 26, 0.34);
  border-radius: 999px;
  background: var(--orange-soft);
  color: #9a3f00;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

button.property-trust-badge {
  cursor: pointer;
}

.property-trust-badge.verified {
  border-color: rgba(0, 168, 168, 0.34);
  background: var(--turquoise-soft);
  color: var(--turquoise-dark);
}

.property-trust-badge.compact {
  min-width: 42px;
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.property-trust-badge .dock-icon {
  width: 16px;
  height: 16px;
}

.role-verification-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.property-trust-panel,
.trust-factor-grid,
.trust-factor-list,
.saved-collection-list,
.planner-steps,
.trust-next-steps {
  display: grid;
  gap: 12px;
}

.trust-score-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(0, 168, 168, 0.06)), var(--paper);
}

.trust-score-hero.verified {
  border-color: rgba(0, 168, 168, 0.34);
}

.trust-score-hero > div:first-child {
  display: flex;
  align-items: baseline;
  color: var(--orange-dark);
}

.trust-score-hero > div:first-child strong {
  font-size: 52px;
  line-height: 1;
}

.trust-score-hero h3,
.trust-score-hero p {
  margin: 4px 0 0;
}

.trust-score-hero p {
  color: var(--muted);
}

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

.trust-factor-grid > article,
.saved-collection-card,
.tenant-planner,
.marketing-analytics-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

.trust-progress {
  display: block;
  overflow: hidden;
  height: 7px;
  margin: 10px 0;
  border-radius: 999px;
  background: var(--line);
}

.trust-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--turquoise));
}

.trust-factor-list > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.trust-factor-list p,
.trust-factor-list strong,
.trust-factor-list small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trust-factor-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.trust-factor-list .dock-icon {
  width: 17px;
  height: 17px;
  color: var(--turquoise-dark);
}

.media-summary-grid,
.marketing-metric-grid,
.offer-price-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.media-summary-grid > div,
.marketing-metric-grid > div,
.offer-price-preview > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.media-summary-grid strong,
.marketing-metric-grid strong,
.offer-price-preview strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.media-summary-grid small,
.marketing-metric-grid span,
.offer-price-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.media-pipeline-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.media-pipeline-note span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.save-chip.saved,
.mobile-mini-actions button.saved {
  background: var(--orange);
  color: #fff;
}

.mobile-mini-actions {
  display: grid;
  grid-template-columns: 42px minmax(64px, 1fr);
  gap: 6px;
  align-items: stretch;
}

.mobile-mini-actions button {
  min-width: 0;
}

.mobile-mini-actions .dock-icon {
  width: 17px;
  height: 17px;
}

.saved-collection-card > .card-header {
  margin-bottom: 12px;
}

.saved-property-wrap {
  display: grid;
  min-width: 0;
}

.saved-property-actions {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--wash);
}

.saved-property-actions small {
  color: var(--muted);
  text-align: center;
}

.tenant-planner > .card-header {
  margin-bottom: 10px;
}

.tenant-planner > .card-header > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 900;
}

.planner-steps button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
  text-align: left;
}

.planner-steps button > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--orange-dark);
}

.planner-steps button span,
.planner-steps button strong,
.planner-steps button small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.planner-steps button small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.planner-steps .dock-icon {
  width: 20px;
  height: 20px;
}

.marketing-analytics-card {
  box-shadow: none;
}

.trust-next-steps {
  margin-top: 14px;
}

.trust-next-steps span {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--muted);
}

.trust-next-steps .dock-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--turquoise-dark);
}

.offer-price-preview {
  margin: 8px 0;
}

.offer-price-preview.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-manager-panel {
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

@media (max-width: 760px) {
  .trust-score-hero,
  .trust-factor-grid {
    grid-template-columns: 1fr;
  }

  .trust-score-hero > div:first-child strong {
    font-size: 44px;
  }

  .property-trust-badge:not(.compact) {
    width: 100%;
    justify-content: flex-start;
  }

  .mobile-mini-property {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .mobile-mini-actions {
    grid-column: 1 / -1;
  }

  .mobile-mini-actions > button:last-child {
    min-height: 42px;
  }

  .saved-collection-card,
  .tenant-planner,
  .marketing-analytics-card {
    padding: 12px;
  }

  .offer-price-preview.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-price-preview strong {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .offer-price-preview.compact,
  .marketing-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-trust-badge {
    font-size: 11px;
  }
}

@media (prefers-color-scheme: dark) and (prefers-color-scheme: light) {
  body,
  .site-shell,
  .app-shell,
  .app-main,
  .auth-page,
  .auth-restore-screen {
    background: #090a0b;
    color: #f6f7f8;
  }

  .top-nav,
  .app-topbar,
  .dashboard-tabs,
  .mobile-role-dock,
  .mobile-summary-dock {
    border-color: #30343a;
    background: rgba(17, 19, 21, 0.96);
    color: #f6f7f8;
  }

  .dashboard-card,
  .profile-card,
  .property-card,
  .info-card,
  .table-card,
  .job-card,
  .chart-card,
  .saved-collection-card,
  .tenant-planner,
  .marketing-analytics-card,
  .trust-factor-grid > article,
  .auth-card,
  .modal-card {
    border-color: #30343a;
    background: #151719;
    color: #f6f7f8;
  }

  .trust-score-hero,
  .planner-steps button,
  .media-summary-grid > div,
  .marketing-metric-grid > div,
  .offer-price-preview > div,
  .saved-property-actions,
  .public-manager-panel,
  .locked-details,
  .empty-state,
  .profile-group,
  .floating-picker,
  .property-money-strip span {
    border-color: #30343a;
    background: #0f1113;
    color: #f6f7f8;
  }

  input,
  select,
  textarea,
  .button.ghost,
  .icon-button,
  .save-chip {
    border-color: #3b4048;
    background: #1b1e21;
    color: #f6f7f8;
  }

  h1,
  h2,
  h3,
  strong,
  .price {
    color: #f6f7f8;
  }

  .muted,
  small,
  .trust-score-hero p,
  .property-trust-row > small,
  .planner-steps button small,
  .media-summary-grid small,
  .marketing-metric-grid span,
  .offer-price-preview small {
    color: #b8bec7;
  }

  .property-trust-badge {
    border-color: rgba(255, 122, 26, 0.42);
    background: rgba(255, 122, 26, 0.16);
    color: #ffb37b;
  }

  .property-trust-badge.verified {
    border-color: rgba(0, 196, 196, 0.42);
    background: rgba(0, 168, 168, 0.17);
    color: #71dddd;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-slider-track,
  .law-slider-track,
  .page-transition,
  .brand-logo-image {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .mobile-summary-dock,
  .mobile-role-dock {
    right: 4px;
    left: 4px;
    gap: 3px;
    padding: 6px;
  }

  .mobile-summary-dock button,
  .mobile-role-dock button {
    padding-inline: 0;
  }

  .mobile-summary-dock span,
  .mobile-role-dock span {
    min-height: 16px;
    font-size: 8px;
    line-height: 1;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

* {
  box-sizing: border-box;
}

* {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  overflow-x: hidden;
  animation: pageFade 260ms ease both;
}

#app,
#modal-root,
.site-shell,
.app-shell,
.app-main,
.container {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

input,
select,
textarea {
  font-size: 16px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background: var(--paper);
}

.top-nav,
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-inner,
.app-topbar-inner,
.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav-inner,
.app-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  text-align: left;
}

.brand-initials {
  order: 1;
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--black);
  color: var(--paper);
  font-size: 14px;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--paper);
  font-size: 19px;
  letter-spacing: 0;
}

.brand-logo-wrap {
  order: 2;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
}

.brand-logo-image {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--paper);
}

.app-topbar .brand-logo-image {
  animation: logoFloat 2.8s ease-in-out infinite;
}

.brand span:last-child {
  order: 3;
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 22px;
  line-height: 1;
}

.brand small {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.nav-links,
.auth-actions,
.dashboard-tabs,
.row-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links button,
.text-button,
.tab-button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav-links a {
  font-size: 14px;
}

.auth-form-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 4px;
}

.auth-form-links .link-button {
  min-height: 40px;
  padding: 6px 0;
  text-align: right;
}

.nav-links button {
  display: none;
  font-size: 14px;
}

.mobile-nav-toggle {
  display: none !important;
}

.button,
.icon-button,
.chip-button,
.segmented button,
.tab-button,
.link-button,
.card-action,
.danger-button {
  border: 0;
}

.button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.button.primary {
  background: var(--orange);
  color: var(--black);
}

.button.primary:hover {
  background: #ff8a35;
}

.button:disabled,
.danger-button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.secondary {
  background: var(--black);
  color: var(--paper);
}

.button.secondary:hover {
  background: #2a2a2a;
}

.button.ghost {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
}

.button.turquoise {
  background: var(--turquoise);
  color: var(--paper);
}

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

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button,
.chip-button {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--black);
  font-weight: 900;
}

.icon-button {
  border: 1px solid var(--line);
}

.icon-button:hover,
.chip-button:hover {
  border-color: var(--turquoise);
  color: var(--turquoise-dark);
}

.hero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.34)),
    url("assets/townhouse-exterior.png") center / cover;
  color: var(--paper);
}

.hero .eyebrow,
.contact-card .eyebrow,
.auth-visual .eyebrow {
  color: var(--paper);
}

.auth-visual .brand,
.auth-visual .brand small {
  color: var(--paper);
}

.auth-visual .brand {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.auth-visual .brand strong {
  color: var(--black);
}

.auth-visual .brand small {
  color: #4b5563;
}

.auth-visual .brand-mark {
  background: var(--orange);
  color: var(--black);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 42px;
  align-items: end;
  min-height: clamp(450px, 58vh, 610px);
  padding: 48px 0 22px;
}

.hero h1,
.section-title h2,
.auth-card h1,
.dashboard-heading h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 6.8vw, 78px);
}

.hero p {
  max-width: 700px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.metric {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.metric strong {
  display: block;
  font-size: 26px;
}

.metric span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.hero-card {
  align-self: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--black);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-card-body h2 {
  margin: 0;
  font-size: 24px;
}

.hero-card-body p {
  margin: 0;
  color: var(--muted);
}

.mobile-home-app,
.mobile-summary-dock {
  display: none;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--wash);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.section-title p,
.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.property-grid,
.role-grid,
.stats-grid,
.form-grid,
.admin-grid,
.crew-grid {
  display: grid;
  gap: 16px;
}

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

.property-card,
.info-card,
.dashboard-card,
.auth-card,
.modal-card,
.table-card,
.job-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.property-card {
  overflow: hidden;
}

.tenant-suggested-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-inline: -4px;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tenant-suggested-rail::-webkit-scrollbar {
  display: none;
}

.tenant-suggested-rail .property-card {
  flex: 0 0 min(86vw, 340px);
  scroll-snap-align: start;
}

.tenant-suggested-rail .property-money-strip,
.tenant-suggested-rail .property-cta-row {
  grid-template-columns: 1fr;
}

.property-card h3,
.property-card p,
.property-card small,
.property-card strong,
.property-money-strip,
.property-cta-row .button {
  min-width: 0;
  overflow-wrap: anywhere;
}

.insight-section {
  background: var(--paper);
}

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

.insight-slider {
  overflow-x: auto;
  overflow-y: hidden;
  margin-inline: -4px;
  padding: 4px;
  cursor: grab;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.insight-slider:active {
  cursor: grabbing;
}

.insight-slider::-webkit-scrollbar {
  display: none;
}

.insight-slider-track {
  display: flex;
  width: max-content;
  animation: lawRailBoomerang 60s ease-in-out infinite alternate;
  will-change: transform;
}

.insight-slider:is(:hover, :focus-within, .user-swiping) .insight-slider-track {
  animation-play-state: paused;
}

.insight-slider-track .insight-card {
  flex: 0 0 min(84vw, 360px);
  width: min(84vw, 360px);
}

.insight-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  scroll-snap-align: start;
}

.insight-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.insight-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.insight-card span {
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card h3,
.insight-card p {
  margin: 0;
}

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

.insight-card a,
.mobile-insight-card a {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.auth-restore-screen {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: var(--wash);
}

.auth-restore-card {
  display: grid;
  width: min(100%, 360px);
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.auth-restore-card img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  animation: logoFloat 2.2s ease-in-out infinite;
}

.auth-restore-card strong {
  font-size: 18px;
}

.auth-restore-card p {
  margin: 0;
  color: var(--muted);
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  background: #dfe7e5;
}

.photo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-track::-webkit-scrollbar {
  display: none;
}

.photo-track img {
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
}

.photo-logo-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);
  object-fit: contain;
}

.carousel-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.carousel-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.8);
  color: var(--paper);
  font-weight: 900;
}

.property-body,
.dashboard-card,
.info-card,
.table-card,
.job-card,
.profile-card {
  padding: 18px;
}

.property-body {
  display: grid;
  gap: 12px;
}

.mobile-property-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mobile-property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.14);
}

.save-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.18);
}

.save-chip .dock-icon {
  width: 20px;
  height: 20px;
}

.property-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.property-money-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.property-money-strip span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}

.property-money-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-money-strip strong {
  font-size: 14px;
}

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

.currency-convert-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  justify-self: start;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 168, 168, 0.28);
  border-radius: 999px;
  background: rgba(0, 168, 168, 0.08);
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 950;
  text-align: left;
}

.currency-convert-chip small {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.icon-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 54px;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--paper);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(255, 122, 26, 0.24);
}

.icon-add-button span {
  font-size: 24px;
  line-height: 1;
}

.icon-add-button .dock-icon {
  width: 18px;
  height: 18px;
}

.icon-add-button.large {
  min-width: 64px;
  min-height: 54px;
}

.signed-in-logo-wrap,
.app-topbar .signed-in-logo-wrap .brand-logo-image {
  width: 56px;
  height: 56px;
}

.app-topbar .signed-in-brand {
  flex: 0 0 auto;
  min-width: 56px;
}

.landlord-portfolio-intro,
.property-page-hero {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 168, 168, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.1), rgba(255, 122, 26, 0.12)),
    var(--paper);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.landlord-portfolio-intro {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.landlord-portfolio-intro h2,
.landlord-portfolio-intro p,
.property-page-hero h2,
.property-page-hero p {
  margin: 0;
}

.landlord-portfolio-intro h2,
.property-page-hero h2 {
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1;
}

.property-page-hero h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(30px, 6vw, 52px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.property-bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.property-bubble-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.1);
}

.property-bubble-main {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.property-bubble-image {
  position: relative;
  display: block;
  min-width: 0;
}

.property-bubble-image img {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  object-fit: cover;
}

.property-bubble-image span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
}

.property-bubble-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px;
}

.property-bubble-copy .status-row {
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.property-bubble-copy .badge {
  max-width: 100%;
  white-space: normal;
}

.property-bubble-copy strong,
.property-page-hero strong {
  overflow-wrap: anywhere;
}

.property-bubble-copy small,
.property-bubble-copy .muted {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.property-bubble-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  min-width: 0;
}

.property-bubble-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: var(--wash);
}

.property-bubble-stats strong {
  font-size: 22px;
  line-height: 1;
}

.property-bubble-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.property-bubble-money {
  min-width: 0;
  color: var(--black);
  font-size: clamp(17px, 5vw, 20px);
  font-weight: 950;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.property-units-public-page .marketplace-wide-container {
  display: grid;
  gap: 18px;
}

.property-public-back-row {
  display: flex;
  justify-content: flex-start;
}

.compact-actions {
  flex-wrap: wrap;
  justify-content: space-between;
}

.compact-actions .button,
.compact-actions .danger-button {
  flex: 1 1 120px;
  min-width: 0;
}

.property-page-hero {
  grid-template-columns: auto minmax(180px, 280px) minmax(0, 1fr);
  align-items: center;
}

.property-page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
}

.unit-page-hero {
  border-color: rgba(255, 122, 26, 0.24);
}

.rent-command-card {
  border-radius: 28px;
}

.rent-building-card {
  border-radius: 24px;
}

.compact-progress {
  padding: 12px;
}

.rent-unit-breakdown {
  display: grid;
  gap: 8px;
}

.rent-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--wash);
  color: var(--ink);
  text-align: left;
}

.rent-unit-row small,
.rent-unit-row strong {
  display: block;
}

.rent-unit-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.floating-listing-grid,
.unit-floating-grid,
.chat-thread-grid {
  display: grid;
  gap: 16px;
}

.floating-listing-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.floating-listing-card,
.unit-floating-card,
.chat-thread-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.1);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.floating-listing-card:hover,
.unit-floating-card:hover,
.chat-thread-card:hover {
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.14);
  transform: translateY(-2px);
}

.floating-listing-main,
.unit-floating-main,
.chat-thread-main {
  width: 100%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.floating-listing-main {
  display: block;
  padding: 0;
}

.floating-image-wrap {
  position: relative;
  display: block;
  background: var(--turquoise-soft);
}

.floating-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}

.floating-listing-body,
.unit-floating-body {
  display: grid;
  gap: 10px;
}

.floating-listing-body {
  align-content: center;
  padding: 14px 14px 16px;
}

.floating-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.floating-title-row > span {
  color: var(--black);
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.floating-listing-body strong,
.unit-floating-body strong,
.chat-thread-main strong {
  display: block;
  color: var(--black);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.floating-listing-body small,
.unit-floating-body small,
.chat-thread-main small {
  color: var(--muted);
}

.floating-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.floating-listing-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--turquoise-soft);
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 900;
}

.floating-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.property-detail-shell,
.unit-detail-media,
.unit-detail-copy,
.tenant-history-panel,
.chat-shell {
  display: grid;
  gap: 16px;
}

.property-extras-grid,
.floating-form-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.property-extras-grid > section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.property-extras-grid h3 {
  margin: 0;
}

.floating-picker {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.floating-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  list-style: none;
}

.floating-picker summary::-webkit-details-marker {
  display: none;
}

.floating-picker summary span,
.floating-picker summary small {
  display: block;
}

.floating-picker summary small {
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 900;
}

.floating-chip-grid,
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.floating-chip-grid {
  max-height: 220px;
  overflow: auto;
  padding: 0 14px 14px;
}

.floating-chip {
  display: inline-flex;
}

.floating-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.floating-chip span,
.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #9bb4d0;
  border-radius: 999px;
  background: var(--paper);
  color: #17324d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
}

.floating-chip input:checked + span {
  border-color: var(--turquoise);
  background: var(--turquoise-soft);
  color: var(--turquoise-dark);
}

.compact-chips {
  margin-top: 2px;
}

.property-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 168, 0.12), rgba(255, 122, 26, 0.12)), var(--paper);
}

.property-detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.unit-floating-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.unit-floating-main {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.unit-floating-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--turquoise-soft);
}

.unit-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.unit-detail-copy,
.current-tenant-card,
.previous-tenant-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.current-tenant-card {
  display: grid;
  gap: 14px;
  background: var(--paper);
}

.tenant-focus {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tenant-focus .avatar {
  width: 58px;
  height: 58px;
  background: var(--turquoise);
}

.tenant-focus h3,
.tenant-focus p {
  margin: 0;
}

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

.previous-tenant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.previous-tenant-row strong,
.previous-tenant-row small {
  display: block;
}

.previous-tenant-row small {
  color: var(--muted);
}

.chat-thread-main {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.chat-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-participants > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.chat-participants .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.chat-participants small,
.chat-preview {
  display: block;
  color: var(--muted);
}

.chat-participants.expanded > span {
  border-radius: var(--radius);
  background: var(--wash);
}

.chat-message-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.chat-bubble {
  width: min(82%, 560px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.chat-bubble.mine {
  margin-left: auto;
  border-color: rgba(0, 168, 168, 0.3);
  background: var(--turquoise-soft);
}

.chat-bubble p {
  margin: 8px 0;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.property-body h3,
.dashboard-card h3,
.info-card h3,
.job-card h3,
.profile-card h3 {
  margin: 0;
}

.property-meta,
.status-row,
.split-row,
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.property-meta {
  color: var(--muted);
  font-size: 14px;
}

.price {
  color: var(--black);
  font-size: 24px;
  font-weight: 950;
}

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

.info-card {
  min-height: 210px;
}

.info-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 22px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--paper);
}

.contact-card a {
  color: var(--paper);
  font-weight: 900;
}

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

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  background: var(--paper);
}

.auth-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(3, 16, 20, 0.2), rgba(3, 12, 16, 0.9)),
    url("assets/apartment-bedroom.png") center / cover;
  color: var(--paper);
}

.auth-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 68%, rgba(255, 122, 26, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1));
  content: "";
}

.auth-visual h2 {
  margin: 18px 0 8px;
  font-size: 46px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.auth-visual p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 26px;
}

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

.auth-card h1 {
  font-size: 42px;
}

.auth-card form,
.modal-card form,
.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

.phone-input-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.46fr) minmax(0, 1fr);
  gap: 8px;
}

.password-field {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.password-field > input {
  min-width: 0;
  padding-inline-end: 56px;
}

.password-field > .password-visibility-toggle {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}

.password-visibility-toggle svg { width: 20px; height: 20px; }
.password-visibility-toggle:focus-visible { outline: 2px solid var(--turquoise); outline-offset: -3px; }
.password-visibility-toggle:hover { background: rgba(0, 168, 168, 0.1); }

.phone-input-row select,
.phone-input-row input {
  min-width: 0;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.12);
}

.file-note {
  color: var(--muted);
  font-size: 12px;
}

.draft-status,
.payment-routing-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 168, 168, 0.22);
  border-radius: var(--radius);
  background: var(--turquoise-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.draft-status {
  background: rgba(255, 127, 50, 0.1);
  border-color: rgba(255, 127, 50, 0.24);
  color: var(--ink);
}

.payment-routing-note span {
  color: var(--muted);
  font-weight: 750;
}

.payment-method-picks {
  margin: 10px 0 14px;
}

.form-message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.form-message.success {
  border-color: rgba(0, 168, 168, 0.34);
  background: var(--turquoise-soft);
  color: var(--turquoise-dark);
}

.form-message.error {
  border-color: rgba(180, 35, 24, 0.28);
  background: var(--danger-soft);
  color: var(--danger);
}

.auth-switch {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
}

.oauth-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.oauth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}

.oauth-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.oauth-button strong {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper);
}

.oauth-button.oauth-apple {
  background: #000;
  border: 0;
  border-radius: 6px;
  padding: 0;
}

.oauth-apple img {
  display: block;
  width: min(200px, 100%);
  height: auto;
}

.oauth-button:focus-visible {
  outline: 3px solid Highlight;
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  background: var(--wash);
}

.app-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-user strong,
.app-user span {
  overflow-wrap: anywhere;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper);
  font-weight: 950;
}

img.avatar,
.avatar.profile-photo {
  display: block;
  object-fit: cover;
}

.profile-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-subline > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-subline .stars {
  font-size: 13px;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 18px;
}

.dashboard-heading h1 {
  font-size: clamp(34px, 5vw, 64px);
  overflow-wrap: anywhere;
}

.dashboard-tabs {
  position: sticky;
  top: 87px;
  z-index: 12;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-role-dock {
  display: none;
}

.profile-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.profile-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.profile-group summary::-webkit-details-marker {
  display: none;
}

.profile-group summary span {
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 950;
}

.mobile-page-card {
  display: grid;
  gap: 16px;
}

.tab-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

.tab-button.active {
  background: var(--black);
  color: var(--paper);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stat-card small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.mobile-dashboard-stack {
  display: grid;
  gap: 16px;
}

.dashboard-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(0, 168, 168, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.1), rgba(255, 122, 26, 0.12)),
    var(--paper);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.dashboard-intro-card h2 {
  margin: 4px 0 6px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.05;
}

.dashboard-intro-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

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

.dashboard-summary-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.dashboard-summary-card small,
.dashboard-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.dashboard-summary-card small {
  text-transform: uppercase;
}

.dashboard-summary-card strong {
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-summary-card.turquoise {
  border-color: rgba(0, 168, 168, 0.3);
  background: linear-gradient(135deg, rgba(0, 168, 168, 0.12), rgba(255, 255, 255, 0.95));
}

.dashboard-summary-card.orange {
  border-color: rgba(255, 122, 26, 0.3);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.14), rgba(255, 255, 255, 0.95));
}

.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.quick-action-button {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.quick-action-button strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper);
}

.quick-action-button .dock-icon {
  width: 16px;
  height: 16px;
}

.quick-action-button span {
  font-size: 13px;
  white-space: nowrap;
}

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

.chart-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.07);
}

.chart-card h3,
.chart-card p {
  margin: 0;
}

.chart-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mini-chart {
  width: min(148px, 46vw);
  height: min(148px, 46vw);
  justify-self: center;
}

.pie-chart {
  transform: rotate(-90deg);
}

.pie-chart text {
  transform: rotate(90deg);
  transform-origin: center;
  fill: var(--ink);
  font-size: 7px;
  font-weight: 950;
}

.empty-chart {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--wash);
  color: var(--muted);
  font-weight: 950;
}

.mini-bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 120px;
  padding-top: 8px;
}

.mini-bar-chart span {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--turquoise), var(--orange));
}

.mini-bar-chart i {
  position: absolute;
  right: 50%;
  bottom: -20px;
  transform: translateX(50%);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.mini-line-chart {
  width: 100%;
  height: 120px;
}

.mini-line-chart polyline {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.mini-line-chart circle {
  fill: var(--turquoise);
  stroke: var(--paper);
  stroke-width: 1.4;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chart-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.premium-empty {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 118px;
}

.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.financial-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.financial-card h3,
.financial-card p {
  margin: 0;
}

.permission-grid {
  display: grid;
  gap: 10px;
}

.permission-option {
  align-items: flex-start;
}

.permission-option span {
  display: grid;
  gap: 3px;
}

.permission-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.financial-progress {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 168, 0.12), rgba(255, 122, 26, 0.12)), var(--paper);
}

.financial-progress strong,
.financial-progress small {
  display: block;
}

.financial-progress small {
  margin-top: 4px;
  color: var(--muted);
}

.financial-progress > span {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.1);
}

.financial-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--turquoise), var(--orange));
}

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

.workspace-grid.wide {
  grid-template-columns: 1fr;
}

.dashboard-card {
  display: grid;
  gap: 14px;
}

.bottom-action-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.bottom-action-panel .button,
.bottom-action-panel .danger-button {
  width: 100%;
}

.platform-feature-panel {
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 116, 23, 0.08), rgba(0, 168, 168, 0.08)),
    #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.workspace-grid > .platform-feature-panel {
  grid-column: 1 / -1;
}

.platform-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.platform-feature-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.platform-feature-card:hover,
.platform-feature-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 168, 0.35);
  box-shadow: 0 18px 34px rgba(0, 168, 168, 0.12);
}

.platform-feature-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--turquoise);
  background: rgba(0, 168, 168, 0.1);
}

.platform-feature-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.platform-feature-card small {
  color: var(--muted);
  line-height: 1.45;
}

.card-header,
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  animation: logoFloat 2.8s ease-in-out infinite;
}

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

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

.item-row {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.item-row strong,
.item-row small {
  display: block;
  overflow-wrap: anywhere;
}

.item-row small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--turquoise-soft);
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.badge.orange {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.badge.dark {
  background: var(--black);
  color: var(--paper);
}

.badge.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.verification-row,
.marketplace-filters,
.consent-stack,
.chat-routing-banner,
.responsibility-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.verification-banner,
.responsibility-note,
.chat-routing-banner {
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(0, 168, 168, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.1), rgba(255, 122, 26, 0.1)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.08);
}

.verification-banner.compact {
  box-shadow: none;
}

.verification-banner p,
.responsibility-note p,
.chat-routing-banner small {
  margin: 4px 0 0;
  color: var(--muted);
}

.verification-pending-shell {
  min-height: 100dvh;
  background: var(--paper);
}

.verification-pending-page {
  max-width: 900px;
  margin-inline: auto;
  padding: 36px 24px 100px;
}

.verification-pending-card {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.verification-pending-card h1 {
  margin: 0;
  color: var(--black);
  font-size: 2rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.verification-pending-card p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.starter-verification {
  display: grid;
  gap: 10px;
  justify-items: start;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.starter-verification h2 {
  margin: 0;
  font-size: 1.125rem;
}

.admin-approval-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
}

.admin-approval-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-approval-identity strong,
.verification-review-hero h2 {
  color: var(--black);
  overflow-wrap: anywhere;
}

.admin-approval-identity small,
.admin-approval-meta span,
.verification-review-list small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-approval-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.verification-review-modal {
  display: grid;
  gap: 18px;
}

.verification-review-modal h2,
.verification-review-modal h3,
.verification-review-modal p {
  margin: 0;
  text-align: left;
}

.verification-review-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.12), rgba(255, 122, 26, 0.1)),
    var(--wash);
}

.avatar.large {
  width: 74px;
  height: 74px;
  font-size: 1.25rem;
}

.verification-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.verification-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.verification-document-card,
.verification-review-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--wash);
}

.verification-document-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

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

.verification-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  padding-top: 6px;
}

.role-picker {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.role-picker h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.role-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.role-card input {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.role-card.selected,
.role-card:hover {
  transform: translateY(-3px);
  border-color: var(--turquoise);
  box-shadow: 0 18px 42px rgba(0, 168, 168, 0.16);
}

.role-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
  color: var(--paper);
  font-weight: 950;
}

.role-card small {
  color: var(--muted);
  line-height: 1.35;
}

.signup-details {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.public-user-pill {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.marketplace-filters {
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.marketplace-filters label {
  display: grid;
  flex: 1 1 150px;
  min-width: 142px;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.marketplace-filters select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.marketplace-filters .segmented {
  flex: 1 1 240px;
}

.market-switch-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  min-width: 150px;
}

.market-switch-field .dock-icon {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  color: var(--turquoise);
}

.market-switch-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.market-switch-field.compact {
  min-width: min(100%, 220px);
}

.uk-compliance-form-panel,
.uk-compliance-panel,
.uk-tenant-notice {
  border: 1px solid rgba(0, 168, 168, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.08), rgba(255, 122, 26, 0.08)),
    var(--paper);
}

.uk-compliance-form-panel {
  padding: 16px;
}

.uk-compliance-mini-grid,
.uk-compliance-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.uk-compliance-mini-grid .toggle-row {
  align-items: flex-start;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(0, 168, 168, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.uk-compliance-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.08);
}

.uk-compliance-panel .section-title-row {
  align-items: flex-start;
}

.uk-compliance-panel .section-title-row strong {
  display: grid;
  min-width: 64px;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper);
  font-weight: 950;
}

.uk-compliance-card-grid article {
  display: grid;
  gap: 8px;
  min-height: 166px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.uk-compliance-card-grid strong {
  color: var(--black);
  font-size: 15px;
  line-height: 1.15;
}

.uk-compliance-card-grid span,
.uk-compliance-card-grid small,
.uk-tenant-notice span {
  color: var(--muted);
  line-height: 1.45;
}

.uk-compliance-card-grid small {
  font-weight: 800;
}

.uk-tenant-notice {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
}

.uk-tenant-notice strong {
  color: var(--black);
}

.crew-market-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.1);
}

.crew-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tier-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.tier-card.active {
  border-color: var(--orange);
  box-shadow: 0 14px 34px rgba(255, 122, 26, 0.16);
}

.tier-card p,
.tier-card small {
  margin: 0;
}

.tier-card small {
  color: var(--muted);
  line-height: 1.35;
}

.image-viewer {
  display: grid;
  place-items: center;
  min-height: min(72dvh, 780px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--black);
}

.image-viewer img {
  width: min(100%, 1100px);
  max-height: 78dvh;
  object-fit: contain;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--muted);
  text-align: center;
}

.compact-empty {
  padding: 12px;
  text-align: left;
}

.move-in-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.move-in-summary > div,
.lease-view-box,
.lease-preview,
.reference-card,
.rating-card,
.mini-list > div,
.stripe-terminal {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.move-in-summary small,
.rating-card small,
.mini-list small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.move-in-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.lease-view-box,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lease-preview {
  display: grid;
  gap: 6px;
}

.lease-preview p {
  margin: 0;
}

.private-lease-viewer {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink);
}

.private-lease-toolbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.private-lease-toolbar button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--ink);
  font-size: 22px;
}

.private-lease-toolbar button:disabled {
  opacity: .45;
}

.private-lease-page {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.private-lease-toolbar .private-lease-zoom {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  background: var(--surface, #fff);
  color: var(--ink);
}

.private-lease-status:empty {
  display: none;
}

.private-lease-canvas-wrap {
  max-height: 65vh;
  overscroll-behavior: contain;
  background: #fff;
}

.private-lease-canvas {
  background: #fff;
}

[data-lease-preview-status] {
  line-height: 1.5;
  color: var(--ink);
}

.toggle-row {
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--turquoise-soft);
  color: var(--ink);
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.reference-section,
.reference-list,
.rating-list,
.mini-list {
  display: grid;
  gap: 10px;
}

.reference-card {
  margin: 0;
}

.reference-card legend {
  padding: 0 8px;
  color: var(--black);
  font-weight: 950;
}

.stars {
  display: inline-flex;
  gap: 1px;
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

.star.filled {
  color: var(--orange);
}

.star.empty {
  color: #cfd6dc;
}

.rating-score {
  white-space: nowrap;
}

.rating-card {
  display: grid;
  gap: 6px;
}

.rating-card p {
  margin: 0;
  color: var(--ink);
}

.stripe-terminal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.14), rgba(255, 122, 26, 0.16)),
    var(--paper);
}

.stripe-terminal h3,
.stripe-terminal p {
  margin: 0;
}

.terminal-screen {
  min-width: 132px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--turquoise-soft);
  font-weight: 950;
  text-align: center;
}

.pending-approval {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.pending-approval.compact {
  padding: 0;
}

.pending-approval img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.pending-approval h2,
.pending-approval p {
  margin: 0;
}

.verification-state-card {
  gap: 14px;
  padding: 8px 2px 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 950;
  color: var(--black);
  background: rgba(255, 255, 255, 0.92);
}

.status-pill.orange {
  background: rgba(255, 122, 24, 0.18);
  color: #9b3e00;
}

.status-pill.turquoise {
  background: rgba(22, 179, 178, 0.18);
  color: #075d5c;
}

.verification-state-card .status-pill {
  align-self: center;
}

.next-step-list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 4px 0 6px;
}

.next-step-list span {
  border: 1px solid rgba(22, 179, 178, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(22, 179, 178, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(17, 17, 17, 0.58);
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}

body.modal-open .mobile-summary-dock,
body.modal-open .mobile-role-dock {
  display: none !important;
}

.mobile-summary-dock,
.mobile-role-dock {
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

body.dock-hidden:not(.modal-open) .mobile-summary-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}

.dock-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-card {
  width: min(760px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(calc(100dvh - 24px), 900px);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: modalRise 220ms ease both;
}

.modal-card.narrow {
  width: min(520px, calc(100vw - 24px));
}

.modal-card *,
.modal-card *::before,
.modal-card *::after {
  max-width: 100%;
}

.modal-card h1,
.modal-card h2,
.modal-card h3,
.modal-card p,
.modal-card label,
.modal-card summary,
.modal-card .muted,
.property-card,
.dashboard-card,
.profile-card,
.job-card,
.table-card {
  overflow-wrap: anywhere;
}

.modal-card .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.modal-card .row-actions,
.modal-card .button-row,
.modal-card .bottom-action-panel {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  align-items: stretch;
}

.modal-card .row-actions > *,
.modal-card .button-row > *,
.modal-card .bottom-action-panel > *,
.modal-card .button,
.modal-card .danger-button {
  width: 100%;
}

.modal-card .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.modal-close {
  border: 0;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--black);
  font-weight: 950;
  min-width: 38px;
  min-height: 38px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.active {
  background: var(--turquoise);
  color: var(--paper);
}

.job-card {
  display: grid;
  gap: 12px;
}

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

.approval-box {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--wash);
}

.approval-box small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.locked-details {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--paper);
}

.locked-details p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.profile-card {
  display: grid;
  gap: 10px;
}

.profile-detail-grid,
.qualification-grid {
  display: grid;
  gap: 10px;
}

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

.profile-detail-grid > div,
.qualification-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.profile-detail-grid small,
.qualification-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.qualification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.qualification-card img,
.qualification-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--turquoise-soft);
}

.qualification-placeholder {
  display: grid;
  place-items: center;
  color: var(--turquoise-dark);
  font-weight: 900;
}

.rating-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--orange-soft);
}

.compact-form {
  padding: 14px;
  box-shadow: none;
}

.profile-card .avatar {
  width: 58px;
  height: 58px;
  background: var(--turquoise);
}

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

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(440px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.42);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
}

.page-transition-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
  animation: logoPagePulse 620ms ease both;
}

.page-transition-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.page-transition-card span {
  color: var(--black);
  font-weight: 950;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes logoPagePulse {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  45% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lawRailBoomerang {
  0%,
  8% {
    transform: translateX(0);
  }
  92%,
  100% {
    transform: translateX(calc(-100% + min(86vw, 340px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-slider .insight-slider-track,
  .mobile-law-slider .law-slider-track,
  .page-transition-card {
    animation: none;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero-inner,
  .contact-grid,
  .workspace-grid,
  .floating-listing-main,
  .property-detail-hero,
  .unit-detail-layout {
    grid-template-columns: 1fr;
  }

  .property-grid,
  .role-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  html,
  body,
  #app,
  #modal-root,
  .site-shell,
  .app-shell,
  .app-main,
  .container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .nav-inner,
  .app-topbar-inner,
  .container,
  .app-main {
    width: min(calc(100vw - 24px), 1180px);
  }

  .nav-inner {
    min-height: 66px;
  }

  .app-topbar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 56px;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo-wrap,
  .brand-logo-image {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    max-width: 180px;
    font-size: 11px;
  }

  .app-topbar .brand small {
    max-width: none;
  }

  .top-nav .brand-initials {
    display: grid;
  }

  .top-nav .brand-logo-image {
    animation: logoFloat 2.8s ease-in-out infinite;
  }

  .top-nav .brand span:last-child {
    display: none;
  }

  .app-topbar .app-user {
    min-width: 0;
    width: auto;
    align-items: center;
    justify-content: end;
    gap: 10px;
    padding-top: 2px;
  }

  .app-topbar .app-user > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-topbar .app-user .button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .app-topbar .brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .app-topbar .brand-initials {
    display: grid;
  }

  .app-topbar .brand-logo-wrap,
  .app-topbar .brand-logo-image {
    width: 38px;
    height: 38px;
  }

  .app-topbar .signed-in-brand,
  .app-topbar .signed-in-logo-wrap,
  .app-topbar .signed-in-logo-wrap .brand-logo-image {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .app-topbar .brand span:last-child {
    display: none;
  }

  .dashboard-heading {
    align-items: center;
    gap: 10px;
  }

  .dashboard-greeting {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-greeting h1 {
    min-width: 0;
    font-size: clamp(28px, 11vw, 42px);
  }

  .icon-add-button {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 42px;
    padding: 7px 10px;
  }

  .landlord-portfolio-intro,
  .property-page-hero {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .property-page-hero > .button {
    justify-self: start;
  }

  .property-bubble-grid {
    grid-template-columns: 1fr;
  }

  .property-bubble-card {
    border-radius: 26px;
  }

  .apartment-unit-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apartment-media-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apartment-media-tile.primary {
    grid-column: 1 / -1;
  }

  .property-bubble-stats,
  .rent-unit-row {
    grid-template-columns: 1fr;
  }

  .rent-unit-row > span:last-child {
    justify-self: start;
  }

  .app-topbar .app-user strong,
  .app-topbar .app-user .muted,
  .app-topbar .profile-subline > span:first-child,
  .app-topbar .rating-score {
    display: none;
  }

  .app-topbar .profile-subline {
    margin-top: 0;
  }

  .mobile-nav-toggle {
    display: inline-grid !important;
  }

  .nav-links {
    position: absolute;
    right: 12px;
    left: 12px;
    top: 66px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: grid;
  }

  .nav-links button {
    display: inline-flex;
    padding: 0;
  }

  .auth-actions {
    display: none;
  }

  .site-shell {
    padding-bottom: 156px;
    background: var(--wash);
  }

  .site-shell > .hero {
    display: none;
  }

  .site-shell .section {
    background: var(--paper);
    color: var(--ink);
  }

  .site-shell .section.alt {
    background: var(--wash);
  }

  .mobile-home-app {
    display: grid;
    gap: 22px;
    padding-bottom: 28px;
    background: linear-gradient(180deg, var(--paper), var(--wash));
    color: var(--ink);
    overflow: hidden;
  }

  .mobile-search-hero {
    position: relative;
    min-height: 174px;
    overflow: hidden;
    background: #eef5f4;
  }

  .mobile-search-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.42));
    content: "";
  }

  .mobile-search-hero > img {
    width: 100%;
    height: 196px;
    object-fit: cover;
  }

  .mobile-search-pill {
    position: absolute;
    z-index: 1;
    top: 18px;
    right: 18px;
    left: 18px;
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--black);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
  }

  .mobile-search-pill strong {
    font-size: 19px;
    line-height: 1.1;
  }

  .mobile-home-icon {
    position: absolute;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px 4px 4px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--black);
    font-size: 11px;
    font-weight: 950;
  }

  .mobile-home-icon img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--paper);
    animation: logoFloat 2.8s ease-in-out infinite;
  }

  .mobile-app-section {
    display: grid;
    gap: 14px;
    padding: 0 16px;
  }

  .mobile-app-section.compact {
    margin-top: -4px;
  }

  .mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-section-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .mobile-section-title button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-recent-box {
    display: grid;
    gap: 8px;
    min-height: 104px;
    place-items: center;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
    text-align: center;
  }

  .mobile-recent-box strong {
    font-size: 19px;
  }

  .mobile-recent-box p {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
  }

  .mobile-chip-row,
  .mobile-card-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-law-slider {
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    cursor: grab;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-law-slider:active {
    cursor: grabbing;
  }

  .mobile-law-slider .law-slider-track {
    width: max-content;
    overflow: visible;
    animation: lawRailBoomerang 60s ease-in-out infinite alternate;
    will-change: transform;
  }

  .mobile-law-slider:is(:hover, :focus-within, .user-swiping) .law-slider-track {
    animation-play-state: paused;
  }

  .mobile-law-slider::-webkit-scrollbar,
  .mobile-chip-row::-webkit-scrollbar,
  .mobile-card-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-chip-row button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.06);
  }

  .mobile-chip-row button.active {
    border-color: rgba(255, 122, 26, 0.36);
    background: var(--orange-soft);
    color: var(--black);
  }

  .mobile-insight-card {
    position: relative;
    flex: 0 0 min(76vw, 292px);
    overflow: hidden;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.12);
    scroll-snap-align: start;
  }

  .mobile-insight-card img {
    width: 100%;
    height: 132px;
    min-height: 132px;
    object-fit: cover;
    opacity: 1;
  }

  .mobile-insight-card::after {
    display: none;
  }

  .mobile-insight-card div {
    position: static;
    display: grid;
    gap: 7px;
    padding: 14px;
  }

  .mobile-insight-card span,
  .mobile-insight-card small,
  .mobile-insight-card a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-insight-card strong {
    color: var(--ink);
    font-size: 19px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-mini-list,
  .mobile-news-list {
    display: grid;
    gap: 12px;
  }

  .mobile-mini-property {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 18px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  }

  .mobile-mini-property img {
    width: 86px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
  }

  .mobile-mini-avatar {
    display: grid;
    width: 86px;
    height: 78px;
    place-items: center;
  }

  .mobile-mini-avatar .avatar {
    width: 62px;
    height: 62px;
    font-size: 16px;
  }

  .mobile-mini-property div {
    display: grid;
    gap: 4px;
  }

  .mobile-mini-property strong {
    font-size: 15px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .mobile-mini-property small {
    color: var(--muted);
    line-height: 1.25;
  }

  .mobile-mini-property span {
    color: var(--black);
    font-size: 13px;
    font-weight: 950;
  }

  .mobile-mini-property button {
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: var(--black);
    font-size: 13px;
    font-weight: 950;
  }

  .mobile-news-list article {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  }

  .mobile-news-list strong {
    color: var(--ink);
    line-height: 1.2;
  }

  .mobile-news-list span {
    color: var(--muted);
    line-height: 1.38;
  }

  .mobile-summary-dock {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 68;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(17, 17, 17, 0.92);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
  }

  body.nav-open .mobile-summary-dock {
    display: none;
  }

  .mobile-summary-dock button {
    display: grid;
    min-width: 0;
    min-height: 62px;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--paper);
    text-align: center;
  }

  .mobile-summary-dock button.active {
    background: rgba(255, 122, 26, 0.18);
    color: var(--orange);
  }

  .mobile-summary-dock strong,
  .mobile-summary-dock span {
    max-width: 100%;
    overflow-wrap: normal;
    line-height: 1.05;
  }

  .mobile-summary-dock strong {
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 950;
  }

  .mobile-summary-dock span {
    font-size: clamp(9px, 2.5vw, 11px);
    font-weight: 850;
    white-space: nowrap;
    word-break: normal;
    hyphens: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 46px 0 26px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-metrics,
  .property-grid,
  .insight-grid,
  .role-grid,
  .stats-grid,
  .form-grid,
  .move-in-summary,
  .profile-detail-grid,
  .qualification-grid,
  .crew-grid,
  .admin-grid,
  .approval-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .mobile-dashboard-stack {
    gap: 14px;
  }

  .dashboard-intro-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .dashboard-intro-card h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .quick-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .quick-action-button {
    width: 100%;
    min-width: 0;
    border-radius: 16px;
    padding: 9px 10px;
  }

  .quick-action-button span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-summary-card {
    min-height: 118px;
    padding: 13px;
    border-radius: 18px;
  }

  .dashboard-summary-card strong {
    font-size: clamp(20px, 6vw, 28px);
  }

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

  .chart-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 20px;
  }

  .chart-card .chart-legend {
    grid-column: 1 / -1;
  }

  .mini-chart {
    width: 116px;
    height: 116px;
  }

  .mini-bar-chart,
  .mini-line-chart {
    grid-column: 1 / -1;
    height: 112px;
  }

  .section-title,
  .dashboard-heading,
  .card-header,
  .modal-header,
  .status-row,
  .split-row,
  .lease-view-box,
  .stripe-terminal {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-heading {
    gap: 10px;
    margin: 8px 0 14px;
  }

  .dashboard-heading h1 {
    max-width: 100%;
    font-size: clamp(24px, 7.2vw, 34px);
    line-height: 1.08;
  }

  .dashboard-heading .row-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 8px;
  }

  .dashboard-heading .button,
  .dashboard-heading .danger-button {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    white-space: normal;
  }

  .app-topbar .app-user .muted {
    display: none;
  }

  .dashboard-tabs {
    display: none;
  }

  .app-shell {
    padding-bottom: calc(130px + env(safe-area-inset-bottom));
  }

  .app-main {
    padding-bottom: calc(138px + env(safe-area-inset-bottom));
  }

  .mobile-role-dock {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 72;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    gap: 8px;
    max-width: calc(100vw - 24px);
    min-height: 76px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(17, 17, 17, 0.93);
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.28);
    backdrop-filter: blur(18px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .mobile-role-dock::-webkit-scrollbar {
    display: none;
  }

  .bottom-action-panel {
    grid-template-columns: 1fr;
  }

  .platform-feature-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .platform-feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .platform-feature-card {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    padding: 14px;
  }

  .platform-feature-card small {
    grid-column: 2;
  }

  .card-header .row-actions,
  .floating-card-actions,
  .row-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-header .button,
  .card-header .danger-button,
  .row-actions .button,
  .row-actions .danger-button,
  .button-row .button,
  .button-row .danger-button {
    width: 100%;
  }

  .mobile-role-dock button {
    display: grid;
    min-width: 0;
    min-height: 60px;
    place-items: center;
    gap: 3px;
    padding: 6px 4px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--paper);
    text-align: center;
    scroll-snap-align: center;
  }

  .mobile-role-dock button.active {
    background: rgba(255, 122, 26, 0.18);
    color: var(--orange);
  }

  .mobile-role-dock strong {
    display: grid;
    place-items: center;
    max-width: 100%;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .mobile-role-dock span {
    max-width: 100%;
    font-size: clamp(10px, 2.65vw, 12px);
    font-weight: 850;
    line-height: 1.08;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
    hyphens: none;
  }

  .marketplace-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .marketplace-filters label,
  .marketplace-filters .segmented {
    min-width: 0;
    width: 100%;
  }

  .marketplace-filters .segmented {
    grid-column: 1 / -1;
  }

  .mobile-property-card {
    border-radius: 22px;
  }

  .property-card .photo-track img {
    aspect-ratio: 1.12 / 1;
  }

  .property-money-strip,
  .property-cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-row {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .floating-card-actions,
  .previous-tenant-row,
  .chat-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-image-wrap {
    min-height: auto;
  }

  .floating-image-wrap img {
    aspect-ratio: 4 / 3;
  }

  .chat-bubble {
    width: 100%;
  }

  .financial-grid,
  .floating-listing-grid,
  .unit-floating-grid,
  .property-extras-grid,
  .floating-form-sections {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: center;
    justify-items: center;
    overflow: hidden;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    min-height: 100dvh;
  }

  .modal-card {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal-card.narrow {
    width: calc(100vw - 16px);
  }

  .modal-card form,
  .modal-card .form-stack {
    gap: 12px;
    margin-top: 14px;
  }

  .modal-card .form-grid,
  .phone-input-row,
  .modal-card .row-actions,
  .modal-card .button-row,
  .modal-card .bottom-action-panel {
    grid-template-columns: 1fr;
  }

  .modal-card input,
  .modal-card select,
  .modal-card textarea {
    width: 100%;
  }

  .modal-header {
    gap: 10px;
  }

  .modal-title-wrap {
    min-width: 0;
  }

  .modal-title-wrap img {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }

  .modal-close {
    align-self: flex-end;
  }

}

@media (max-width: 760px) and (prefers-color-scheme: dark) and (prefers-color-scheme: light) {
  .site-shell {
    background: #090909;
  }

  .site-shell .section {
    background: #111;
    color: var(--paper);
  }

  .site-shell .section.alt {
    background: #0d0d0d;
  }

  .mobile-home-app {
    background: #090909;
    color: var(--paper);
  }

  .mobile-search-hero {
    background: var(--black);
  }

  .mobile-search-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46));
  }

  .mobile-search-pill {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(14, 14, 14, 0.94);
    color: var(--paper);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  }

  .mobile-section-title h2 {
    color: var(--paper);
  }

  .mobile-section-title button {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
  }

  .mobile-recent-box {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }

  .mobile-recent-box p {
    color: rgba(255, 255, 255, 0.68);
  }

  .mobile-chip-row button {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: var(--paper);
    box-shadow: none;
  }

  .mobile-chip-row button.active {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--black);
  }

  .mobile-insight-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: #171717;
    box-shadow: none;
  }

  .mobile-insight-card img {
    opacity: 0.86;
  }

  .mobile-insight-card span,
  .mobile-insight-card small,
  .mobile-insight-card a {
    color: rgba(255, 255, 255, 0.78);
  }

  .mobile-insight-card strong {
    color: var(--paper);
  }

  .mobile-news-list article {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .mobile-news-list strong {
    color: var(--paper);
  }

  .mobile-news-list span {
    color: rgba(255, 255, 255, 0.68);
  }
}

@media (max-width: 500px) {
  .hero h1,
  .dashboard-heading h1,
  .section-title h2,
  .auth-card h1 {
    font-size: 34px;
  }

  .nav-inner,
  .app-topbar-inner,
  .container,
  .app-main {
    width: min(calc(100vw - 18px), 1180px);
  }

  .app-topbar-inner {
    gap: 6px;
    padding: 6px 0 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-wrap,
  .brand-logo-image {
    width: 38px;
    height: 38px;
  }

  .app-topbar .brand-logo-wrap,
  .app-topbar .brand-logo-image,
  .app-topbar .brand-initials {
    width: 34px;
    height: 34px;
  }

  .app-topbar .signed-in-brand,
  .app-topbar .signed-in-logo-wrap,
  .app-topbar .signed-in-logo-wrap .brand-logo-image {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .app-topbar .brand-initials {
    font-size: 12px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    max-width: 154px;
    font-size: 9px;
    line-height: 1.12;
  }

  .app-topbar .brand small {
    max-width: 220px;
  }

  .app-topbar .app-user {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-self: end;
    gap: 8px;
  }

  .app-topbar .app-user .button {
    grid-column: auto;
    width: auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .app-topbar .avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .app-topbar .app-user strong {
    font-size: 15px;
    line-height: 1.05;
  }

  .app-topbar .profile-subline {
    margin-top: 2px;
    gap: 4px;
    font-size: 10px;
  }

  .app-main {
    padding-top: 12px;
  }

  .mobile-search-hero > img {
    height: 182px;
  }

  .mobile-search-pill {
    right: 12px;
    left: 12px;
    min-height: 60px;
  }

  .mobile-home-icon {
    left: 8px;
    padding-right: 7px;
    font-size: 10px;
  }

  .mobile-home-icon img {
    width: 34px;
    height: 34px;
  }

  .mobile-section-title h2 {
    font-size: 20px;
  }

  .verification-pending-page {
    padding: 24px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .admin-approval-card {
    padding: 14px;
    border-radius: 20px;
  }

  .admin-approval-card .row-actions,
  .verification-admin-actions {
    grid-template-columns: 1fr;
  }

  .verification-review-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .verification-review-hero .avatar.large {
    width: 64px;
    height: 64px;
  }

  .verification-document-grid,
  .verification-review-modal .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .mobile-insight-card {
    flex-basis: 82vw;
  }

  .mobile-insight-card img {
    height: 124px;
    min-height: 124px;
  }

  .mobile-mini-property {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .mobile-mini-property img {
    width: 74px;
    height: 70px;
  }

  .mobile-mini-avatar {
    width: 74px;
    height: 70px;
  }

  .mobile-mini-property button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-heading {
    gap: 8px;
  }

  .dashboard-intro-card,
  .chart-card {
    grid-template-columns: 1fr;
  }

  .chart-card .mini-chart {
    justify-self: center;
  }

  .quick-action-row,
  .dashboard-summary-grid {
    gap: 8px;
  }

  .quick-action-button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 72px;
    text-align: center;
  }

  .quick-action-button span {
    white-space: normal;
  }

  .dashboard-heading h1 {
    font-size: clamp(24px, 7.4vw, 30px);
    line-height: 1.08;
  }

  .dashboard-card,
  .info-card,
  .table-card,
  .job-card,
  .profile-card,
  .property-body {
    padding: 14px;
  }

  .stat-card strong {
    font-size: 26px;
  }

  .floating-listing-body strong,
  .unit-floating-body strong,
  .chat-thread-main strong {
    font-size: 17px;
  }

  .floating-title-row {
    flex-direction: column;
    gap: 4px;
  }

  .floating-title-row > span {
    text-align: left;
  }

  .chat-participants > span {
    width: 100%;
    border-radius: var(--radius);
  }

  .floating-picker summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-chip-grid {
    max-height: 260px;
  }

  .profile-subline {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-panel,
  .auth-card,
  .modal-card {
    padding: 14px;
  }

  .modal-backdrop {
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  }

  .modal-card,
  .modal-card.narrow {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }

  .button,
  .danger-button {
    width: 100%;
    min-height: 44px;
  }

  .dashboard-heading .button,
  .dashboard-heading .danger-button {
    min-height: 38px;
    font-size: 14px;
  }

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

  .dashboard-tabs {
    margin-inline: -9px;
    padding-inline: 9px;
  }

  .tab-button {
    flex-basis: min(42vw, 132px);
    font-size: 12px;
  }

  .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .segmented button {
    width: 100%;
  }

  .mobile-summary-dock,
  .mobile-role-dock {
    right: 8px;
    left: 8px;
  }

  .mobile-summary-dock button,
  .mobile-role-dock button {
    min-height: 58px;
    border-radius: 18px;
  }

  .mobile-summary-dock span,
  .mobile-role-dock span {
    font-size: clamp(8px, 2.45vw, 10px);
  }

  .toast {
    right: 9px;
    bottom: 9px;
    max-width: calc(100vw - 18px);
  }
}

/* Keep these layout decisions last so smaller legacy breakpoints cannot override them. */
@media (max-width: 760px) {
  .site-shell > .desktop-discovery-section {
    display: none;
  }

  .mobile-summary-dock,
  .mobile-role-dock {
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    gap: 8px;
    padding-inline: 8px;
  }

  .mobile-summary-dock button,
  .mobile-role-dock button {
    padding-inline: 4px;
  }

  .mobile-summary-dock span,
  .mobile-role-dock span {
    width: 100%;
    font-size: clamp(10px, 2.65vw, 12px);
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Customer portal dock: keep this final so older mobile rules cannot collapse it. */
@media (max-width: 760px) {
  body.dock-hidden:not(.modal-open) .mobile-role-dock,
  .mobile-role-dock {
    position: fixed !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    z-index: 120 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 6px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    padding: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(219, 229, 232, 0.96) !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 44px rgba(20, 29, 37, 0.14) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    visibility: visible !important;
  }

  .mobile-role-dock button,
  body.dock-hidden:not(.modal-open) .mobile-role-dock button {
    display: grid !important;
    grid-template-rows: 25px minmax(18px, auto) !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    place-items: center !important;
    align-content: center !important;
    gap: 3px !important;
    padding: 5px 2px !important;
    border: 0 !important;
    border-radius: 20px !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  .mobile-role-dock strong {
    display: grid !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  .mobile-role-dock .dock-icon {
    width: 23px !important;
    height: 23px !important;
  }

  .mobile-role-dock span {
    display: -webkit-box !important;
    width: 100% !important;
    max-height: 28px !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: clamp(10px, 2.55vw, 12px) !important;
    font-weight: 780 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  .app-shell {
    padding-bottom: calc(130px + env(safe-area-inset-bottom)) !important;
  }

  .app-main {
    padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 761px) {
  .property-grid,
  .floating-listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    justify-content: start;
  }

  .property-card .photo-track img,
  .floating-image-wrap img,
  .listing-photo-empty {
    height: 198px;
    min-height: 198px;
    aspect-ratio: auto;
  }

  .unit-floating-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 315px));
    justify-content: start;
  }

  .unit-floating-main img {
    height: 178px;
    aspect-ratio: auto;
  }

  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .dashboard-tabs .tab-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .payment-dashboard {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  }

  .payment-dashboard .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }
}

@media (max-width: 760px) {
  .app-topbar .header-alert-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .property-cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-cta-row > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .property-cta-row .button {
    width: 100%;
    min-height: 44px;
    padding-inline: 8px;
    white-space: normal;
  }

  .inspection-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .inspection-row > .row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .payment-dashboard,
  .payment-dashboard .stats-grid {
    grid-template-columns: 1fr;
  }

  .payment-dashboard .stat-card strong {
    font-size: clamp(20px, 6vw, 27px);
  }

  .modal-card {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .modal-card form > .button-row:last-child,
  .modal-card form > .row-actions:last-child {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 10px 0 max(2px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, var(--paper) 18%);
  }

  .nairobi-signoff {
    flex-wrap: wrap;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }
}

/* Maintenance-only cards; shared profile and finance cards retain their layout. */
:is(.maintenance-approval-card, .crew-job-card) {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  container-type: inline-size;
}
:is(.maintenance-approval-card, .crew-job-card) * { min-width: 0; letter-spacing: 0; }
:is(.maintenance-approval-card, .crew-job-card) h3 { font-size: 20px; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
:is(.maintenance-approval-card, .crew-job-card) :is(p, .muted) { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
:is(.maintenance-approval-card, .crew-job-card) small { font-size: 14px; line-height: 1.45; text-transform: none; }
:is(.maintenance-approval-card, .crew-job-card) .status-row { flex-direction: row; align-items: start; flex-wrap: wrap; gap: 12px; }
:is(.maintenance-approval-card, .crew-job-card) .status-row > div:first-child { flex: 1 1 220px; }
:is(.maintenance-approval-card, .crew-job-card) .app-user { align-items: start; }
:is(.maintenance-approval-card, .crew-job-card) :is(.offer-price-preview, .offer-price-preview.compact, .profile-detail-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
:is(.maintenance-approval-card, .crew-job-card) :is(.offer-price-preview, .profile-detail-grid) > div {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
html[data-theme] :is(.maintenance-approval-card, .crew-job-card) :is(.offer-price-preview, .profile-detail-grid) strong {
  display: block;
  max-width: 100%;
  font-size: 22px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}
html[data-theme] .maintenance-approval-card .offer-price-preview > div:not(:first-child) strong { font-size: 17px; }
:is(.maintenance-approval-card, .crew-job-card) .approval-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
:is(.maintenance-approval-card, .crew-job-card) .approval-box { padding: 0; border-radius: 0; background: transparent; }
:is(.maintenance-approval-card, .crew-job-card) .approval-box small { margin-bottom: 6px; font-weight: 600; text-transform: none; }
:is(.maintenance-approval-card, .crew-job-card) .locked-details { padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit; }
:is(.maintenance-approval-card, .crew-job-card) .locked-details p { color: var(--muted); }
:is(.maintenance-approval-card, .crew-job-card) .row-actions { flex-wrap: wrap; gap: 12px; }
:is(.maintenance-approval-card, .crew-job-card) .maintenance-next-step { margin: 0; padding: 12px 0 12px 12px; border-left: 3px solid var(--turquoise-dark); font-weight: 650; }
.maintenance-approval-card .maintenance-crew-background { padding: 0; border: 0; border-radius: 0; background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.maintenance-approval-card .maintenance-crew-background summary { padding: 14px 0; min-height: 48px; font-size: 16px; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.maintenance-approval-card .maintenance-crew-background[open] { padding-bottom: 16px; }
.maintenance-approval-card .maintenance-crew-background summary:focus-visible { outline: 3px solid var(--turquoise-dark); outline-offset: 3px; }
:is(.maintenance-approval-card, .crew-job-card) :is(button, .button) { min-height: 48px; max-width: 100%; height: auto; font-size: 16px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
@container (max-width: 440px) {
  :is(.maintenance-approval-card, .crew-job-card) :is(.offer-price-preview, .offer-price-preview.compact, .profile-detail-grid, .approval-grid) { grid-template-columns: minmax(0, 1fr); }
  :is(.maintenance-approval-card, .crew-job-card) .approval-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  :is(.maintenance-approval-card, .crew-job-card) .row-actions > button { flex: 1 1 100%; }
}
@media (max-width: 500px) {
  :is(.maintenance-approval-card, .crew-job-card) { padding: 16px; }
}
