: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;
}

* {
  box-sizing: border-box;
}

* {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

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

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

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;
}

.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-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;
}

.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;
}

.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 {
  display: grid;
  align-content: end;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(0, 168, 168, 0.16), rgba(17, 17, 17, 0.78)),
    url("assets/apartment-bedroom.png") center / cover;
  color: var(--paper);
}

.auth-visual h2 {
  margin: 18px 0 8px;
  font-size: 46px;
  line-height: 1;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.82);
}

.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(122px, 0.55fr) minmax(0, 1fr);
  gap: 8px;
}

.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;
}

.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(3, minmax(0, 1fr));
  gap: 8px;
}

.oauth-button {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  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);
}

.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;
}

.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;
}

.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;
}

.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);
}

.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);
}

.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;
}

.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;
  padding: 18px;
  background: rgba(17, 17, 17, 0.58);
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.modal-open .mobile-summary-dock,
body.modal-open .mobile-role-dock {
  display: none !important;
}

.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, 100%);
  max-height: min(calc(100dvh - 36px), 900px);
  margin: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: modalRise 220ms ease both;
}

.modal-card.narrow {
  width: min(520px, 100%);
}

.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);
  }
}

.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 {
    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) {
  .nav-inner,
  .app-topbar-inner,
  .container,
  .app-main {
    width: min(100% - 24px, 1180px);
  }

  .nav-inner {
    min-height: 66px;
  }

  .app-topbar-inner {
    display: flex;
    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 {
    width: auto;
    align-items: center;
    justify-content: space-between;
    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;
  }

  .app-topbar .brand-initials {
    display: grid;
  }

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

  .app-topbar .brand span:last-child {
    display: none;
  }

  .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: 128px;
    background: #090909;
  }

  .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: #090909;
    color: var(--paper);
    overflow: hidden;
  }

  .mobile-search-hero {
    position: relative;
    min-height: 174px;
    overflow: hidden;
    background: var(--black);
  }

  .mobile-search-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46));
    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(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.94);
    color: var(--paper);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  }

  .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(--paper);
    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 rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
    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 rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
  }

  .mobile-recent-box strong {
    font-size: 19px;
  }

  .mobile-recent-box p {
    max-width: 320px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    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-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 rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--paper);
    font-weight: 900;
  }

  .mobile-chip-row button.active {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--black);
  }

  .mobile-insight-card {
    position: relative;
    flex: 0 0 min(76vw, 292px);
    overflow: hidden;
    min-height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #171717;
    scroll-snap-align: start;
  }

  .mobile-insight-card img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    opacity: 0.86;
  }

  .mobile-insight-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
    content: "";
  }

  .mobile-insight-card div {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: grid;
    gap: 7px;
  }

  .mobile-insight-card span,
  .mobile-insight-card small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-insight-card strong {
    color: var(--paper);
    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-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 rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-news-list strong {
    color: var(--paper);
    line-height: 1.2;
  }

  .mobile-news-list span {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.38;
  }

  .mobile-summary-dock {
    position: fixed;
    right: 6px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 6px;
    z-index: 68;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 8px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    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: 68px;
    place-items: center;
    gap: 4px;
    border: 0;
    border-radius: 18px;
    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(8px, 2.35vw, 10px);
    font-weight: 850;
    white-space: normal;
    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,
  .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;
  }

  .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 12px;
  }

  .dashboard-heading h1 {
    max-width: 100%;
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.08;
  }

  .dashboard-heading .row-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 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: 128px;
  }

  .app-main {
    padding-bottom: 136px;
  }

  .mobile-role-dock {
    position: fixed;
    right: 6px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 6px;
    z-index: 72;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 8px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(17, 17, 17, 0.93);
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.28);
    backdrop-filter: blur(18px);
  }

  .mobile-role-dock:has(button:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-role-dock button {
    display: grid;
    min-width: 0;
    min-height: 68px;
    place-items: center;
    gap: 4px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--paper);
    text-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(8px, 2.3vw, 10px);
    font-weight: 850;
    line-height: 1.08;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
    hyphens: none;
  }

  .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: start;
    justify-items: center;
    padding: 12px 10px max(18px, env(safe-area-inset-bottom));
    min-height: 100dvh;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 16px;
  }

  .modal-close {
    align-self: flex-end;
  }

}

@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(100% - 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 .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;
    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;
  }

  .mobile-insight-card {
    flex-basis: 82vw;
    min-height: 250px;
  }

  .mobile-insight-card img {
    min-height: 250px;
  }

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

  .mobile-mini-property img {
    width: 74px;
    height: 70px;
  }

  .mobile-mini-property button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-heading {
    gap: 8px;
  }

  .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;
  }

  .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;
  }

  .segmented button {
    width: 100%;
  }

  .toast {
    right: 9px;
    bottom: 9px;
    max-width: calc(100vw - 18px);
  }
}
