:root {
  --app-bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #1f2937;
  --muted: #667085;
  --brand: #226f54;
  --brand-dark: #18563f;
  --brand-soft: #e8f5ef;
  --sidebar: #111827;
  --sidebar-muted: #9ca3af;
  --danger: #b42318;
  --warning: #b54708;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.08);
}

body {
  background: var(--app-bg);
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
}

a {
  color: #176b87;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.landing-body {
  background: #f7faf8;
  color: #17201c;
}

.landing-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.25rem 1.5rem;
}

.landing-brand {
  align-items: center;
  color: #17201c;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 850;
  gap: 0.75rem;
}

.landing-brand:hover {
  color: #17201c;
  text-decoration: none;
}

.landing-nav-actions,
.landing-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.landing-nav-actions .btn-link {
  color: #39443f;
  font-weight: 750;
  text-decoration: none;
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 96px);
  padding: 2rem 1.5rem 5rem;
}

.landing-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 1.4rem;
  max-width: 760px;
}

.landing-kicker {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.landing-lede {
  color: #4d5b55;
  font-size: 1.18rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
  max-width: 660px;
}

.product-preview {
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(18, 55, 47, 0.16);
  overflow: hidden;
}

.preview-topbar {
  align-items: center;
  background: #17201c;
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  min-height: 64px;
  padding: 1rem 1.25rem;
}

.preview-topbar span {
  background: #70b680;
  border-radius: 999px;
  height: 12px;
  width: 12px;
}

.preview-topbar strong,
.preview-topbar em {
  font-style: normal;
}

.preview-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: #e2e8e4;
}

.preview-grid > div {
  background: #fff;
  min-height: 126px;
  padding: 1.25rem;
}

.preview-label {
  color: #667085;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.3rem;
  text-transform: uppercase;
}

.preview-grid strong {
  color: #17201c;
  font-size: 2.2rem;
}

.preview-table {
  padding: 1rem;
}

.preview-row {
  align-items: center;
  border-bottom: 1px solid #eef1ef;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 0.9fr 90px;
  min-height: 58px;
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-head {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  min-height: 42px;
  text-transform: uppercase;
}

.preview-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
  padding: 0.35rem 0.65rem;
}

.preview-pill.paid {
  background: #dcfae6;
  color: #067647;
}

.preview-pill.due {
  background: #fef0c7;
  color: #93370d;
}

.preview-pill.open {
  background: #e0f2fe;
  color: #075985;
}

.landing-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 5rem 1.5rem;
}

.landing-section-heading {
  max-width: 720px;
}

.landing-section h2,
.landing-band h2 {
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 2rem;
}

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

.feature-grid article {
  background: #fff;
  border: 1px solid #dde6e0;
  border-radius: 8px;
  min-height: 230px;
  padding: 1.35rem;
}

.feature-grid h3 {
  font-size: 1.05rem;
  font-weight: 850;
  margin-bottom: 0.85rem;
}

.feature-grid p,
.landing-band p {
  color: #56645e;
  line-height: 1.65;
  margin: 0;
}

.landing-band {
  align-items: center;
  background: #12372f;
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto 4rem;
  max-width: 1180px;
  padding: 2rem;
}

.landing-band .landing-kicker,
.landing-band p {
  color: rgba(255, 255, 255, 0.72);
}

.landing-band h2 {
  margin-bottom: 1rem;
}

.landing-footer {
  align-items: center;
  border-top: 1px solid #dde6e0;
  color: #667085;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.5rem;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  left: 0;
  padding: 1.25rem;
  position: fixed;
  top: 0;
  width: 264px;
  z-index: 1040;
}

.app-main {
  min-height: 100vh;
}

.app-sidebar + .app-main {
  margin-left: 264px;
}

.brand-lockup {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 0.75rem;
}

.brand-lockup:hover {
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #6fcf97, #2f8f6b);
  border-radius: 12px;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--sidebar-muted);
  font-size: 0.78rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  border-radius: 10px;
  color: #d1d5db;
  font-weight: 700;
  padding: 0.78rem 0.9rem;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.sidebar-account {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.8rem;
}

.account-avatar {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--sidebar);
  display: flex;
  flex: 0 0 40px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy span {
  display: block;
}

.account-copy strong {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy span {
  color: var(--sidebar-muted);
  font-size: 0.78rem;
}

.app-navbar {
  background: rgba(246, 248, 251, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
  color: var(--text);
}

.app-navbar .nav-link {
  color: var(--muted);
  font-weight: 700;
}

.app-navbar .nav-link:hover {
  color: var(--text);
}

.navbar-toggler {
  border-color: var(--border-strong);
}

.navbar-toggler-icon {
  filter: none;
}

.mobile-bottom-nav {
  display: none;
}

.app-content {
  max-width: 1480px;
}

@media (min-width: 901px) {
  .app-sidebar + .app-main .mobile-brand,
  .app-sidebar + .app-main .app-navbar .nav-item:not(:last-child) {
    display: none;
  }

  .app-sidebar + .app-main .app-navbar .container-fluid {
    justify-content: flex-end;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  padding: 1rem 1.1rem;
}

.stat-card {
  min-height: 120px;
}

.auth-shell {
  margin: 4rem auto;
  max-width: 560px;
}

.table td,
.table th {
  vertical-align: middle;
}

.table {
  --bs-table-hover-bg: #f9fafb;
}

.table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody td {
  border-color: var(--border);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: 0;
}

.page-toolbar,
.property-detail-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.toolbar-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.buildium-action {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  min-height: 44px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.buildium-action:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.icon-button {
  min-width: 56px;
}

.buildium-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.list-filter-bar {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  padding: 1.25rem 2rem;
}

.filter-button {
  min-width: 180px;
  text-align: left;
}

.match-count {
  border-bottom: 1px solid #ddd;
  color: #9a9a9a;
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
}

.buildium-table {
  --bs-table-hover-bg: #f7f7f7;
}

.buildium-table thead th {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.25rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.buildium-table tbody td {
  border-color: var(--border);
  padding: 1rem 1.25rem;
}

.buildium-form-shell {
  max-width: 980px;
  padding: 0.5rem 0 2rem;
}

.property-question {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.form-section {
  margin-bottom: 2.6rem;
}

.buildium-label {
  color: #777;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.buildium-input,
.buildium-select {
  border-color: #d9d9d9;
  border-radius: 7px;
  color: #4f5054;
  font-size: 1.25rem;
  min-height: 58px;
  padding: 0.75rem 1.25rem;
}

.buildium-select {
  max-width: 430px;
}

.wide-input {
  max-width: 820px;
}

.address-grid {
  max-width: 850px;
}

.rentable-space-box {
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  margin-top: 2rem;
  padding: 1.5rem;
}

.form-footer-actions {
  border-top: 1px solid #d4d4d4;
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

.buildium-tabs,
.buildium-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.buildium-tabs {
  border-bottom: 1px solid #ddd;
}

.buildium-tabs a,
.buildium-subtabs a {
  color: #707070;
  display: block;
  font-weight: 600;
  padding: 0.85rem 0;
}

.buildium-tabs a.active,
.buildium-subtabs a.active {
  border-bottom: 3px solid #70b680;
  color: #555;
  text-decoration: none;
}

.buildium-subtabs {
  gap: 3rem;
  margin-top: 1.25rem;
}

.unit-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin: 1.5rem 0 1.25rem;
}

.unit-detail-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 280px minmax(420px, 1fr) 360px;
  margin-top: 1.75rem;
}

.unit-placeholder {
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  height: 210px;
  overflow: hidden;
  position: relative;
}

.placeholder-house {
  background: #d8d8d8;
  bottom: 0;
  height: 115px;
  left: 110px;
  position: absolute;
  width: 145px;
}

.placeholder-roof {
  border-bottom: 85px solid #d8d8d8;
  border-left: 70px solid transparent;
  border-right: 85px solid transparent;
  bottom: 110px;
  left: 105px;
  position: absolute;
}

.placeholder-tree {
  background: #d8d8d8;
  border-radius: 50%;
  bottom: 55px;
  height: 90px;
  left: 20px;
  position: absolute;
  width: 90px;
}

.unit-heading-row {
  align-items: center;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.85rem;
}

.unit-address-block {
  margin-top: 1.25rem;
}

.detail-label {
  color: #777;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unit-side-card {
  align-self: start;
  background: #f4f4f4;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 1.25rem;
}

.detail-section {
  margin-top: 3rem;
  max-width: 1480px;
}

.section-title {
  border-bottom: 1px solid #ddd;
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0;
  padding-bottom: 0.85rem;
}

.listing-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  padding-top: 1rem;
}

.empty-strip {
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  padding: 0.9rem 1rem;
}

.dashboard-hero {
  align-items: center;
  background: linear-gradient(135deg, #12372f, #226f54 58%, #6fcf97);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 1.6rem;
}

.dashboard-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
}

.dashboard-hero p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 680px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.hero-actions .btn {
  border-radius: 12px;
  font-weight: 800;
  min-height: 44px;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  min-height: 124px;
  padding: 1rem;
  position: relative;
}

.metric-card::after {
  background: var(--brand-soft);
  border-radius: 999px;
  content: "";
  height: 12px;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 12px;
}

.metric-success::after {
  background: #12b76a;
}

.metric-warning::after {
  background: #f79009;
}

.metric-danger::after {
  background: #f04438;
}

.metric-money::after {
  background: #2e90fa;
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-value {
  color: var(--text);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 0.8rem;
}

.action-card .card-header a {
  font-size: 0.86rem;
  font-weight: 800;
}

.tenant-entry {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.tenant-entry-title {
  color: #666;
  font-weight: 700;
}

.tenant-entry-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.lease-document {
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  min-height: 900px;
  padding: 3rem;
  white-space: normal;
}

.lease-document p {
  margin-bottom: 0.55rem;
}

.preview-signature-page {
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  padding-top: 2rem;
}

.preview-signature-page h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.preview-signature-page h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1rem 0;
}

.preview-signature-box-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(240px, 420px) 190px;
  margin: 0.5rem 0 2.5rem;
}

.preview-signature-box,
.preview-date-box {
  border: 1px solid #ddd;
  height: 110px;
}

.preview-date-box {
  height: 72px;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 2.5rem;
  }

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

  .landing-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-sidebar {
    display: none;
  }

  .app-sidebar + .app-main {
    margin-left: 0;
  }

  .app-navbar {
    background: #2d3338;
  }

  .app-navbar .navbar-brand,
  .app-navbar .nav-link {
    color: #fff;
  }

  .app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.78);
  }

  .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
  }

  .navbar-toggler-icon {
    filter: invert(1);
  }

  .page-toolbar,
  .property-detail-header,
  .list-filter-bar,
  .unit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions,
  .detail-actions {
    justify-content: flex-start;
  }

  .unit-detail-layout {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .landing-body {
    padding-bottom: 0;
  }

  .landing-nav {
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .landing-nav-actions {
    flex-direction: column;
    gap: 0.4rem;
  }

  .landing-nav-actions .btn {
    min-height: 40px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    width: auto;
  }

  .landing-hero,
  .landing-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .landing-hero-copy h1 {
    font-size: 2.55rem;
  }

  .landing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .product-preview {
    border-radius: 8px;
  }

  .preview-topbar {
    grid-template-columns: auto 1fr;
  }

  .preview-topbar em {
    grid-column: 2;
  }

  .preview-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid > div {
    min-height: 96px;
  }

  .preview-row {
    gap: 0.5rem;
    grid-template-columns: 1fr;
    padding: 0.8rem 0;
  }

  .preview-head {
    display: none;
  }

  .landing-band {
    margin: 0 1rem 3rem;
    padding: 1.35rem;
  }

  .landing-footer {
    padding: 1.25rem 1rem;
  }

  main.container-fluid {
    padding: 1rem !important;
  }

  .navbar .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .navbar-nav {
    padding-bottom: 0.5rem;
  }

  .mobile-bottom-nav {
    align-items: center;
    background: #2d3338;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    bottom: 0;
    display: grid;
    gap: 0.25rem;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    left: 0;
    padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1030;
  }

  .mobile-bottom-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 44px;
    padding: 0.75rem 0.25rem;
    text-align: center;
  }

  .mobile-bottom-nav a:active,
  .mobile-bottom-nav a:hover {
    color: #fff;
    text-decoration: none;
  }

  .page-title,
  .display-6 {
    font-size: 1.75rem;
  }

  .dashboard-hero {
    border-radius: 18px;
    padding: 1.15rem;
  }

  .dashboard-hero h1 {
    font-size: 1.55rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .metric-card {
    border-radius: 14px;
    min-height: 104px;
    padding: 0.9rem;
  }

  .metric-value {
    font-size: 1.65rem;
  }

  .page-toolbar,
  .property-detail-header,
  .unit-heading-row,
  .tenant-entry-header,
  .form-actions,
  .form-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions,
  .detail-actions,
  .form-actions,
  .form-footer-actions {
    width: 100%;
  }

  .toolbar-actions .btn,
  .detail-actions .btn,
  .form-actions .btn,
  .form-footer-actions .btn,
  .buildium-action {
    justify-content: center;
    width: 100%;
  }

  .stat-card {
    min-height: 96px;
  }

  .card-header {
    gap: 0.75rem;
  }

  .buildium-panel,
  .card {
    border-radius: 8px;
  }

  .list-filter-bar {
    align-items: stretch;
    gap: 1rem;
    min-height: auto;
    padding: 1rem;
  }

  .list-filter-bar > div {
    align-items: stretch !important;
    flex-direction: column;
  }

  .filter-button {
    min-width: 0;
    width: 100%;
  }

  .match-count {
    padding: 0.75rem 1rem;
  }

  .buildium-tabs,
  .buildium-subtabs {
    flex-wrap: nowrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .buildium-tabs a,
  .buildium-subtabs a {
    white-space: nowrap;
  }

  .unit-detail-layout {
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .unit-placeholder {
    display: none;
  }

  .unit-side-card {
    order: -1;
  }

  .detail-section {
    margin-top: 2rem;
  }

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

  .lease-document {
    font-size: 0.92rem;
    min-height: 0;
    padding: 1rem;
  }

  .preview-signature-box-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    margin: 1.5rem auto;
  }

  .tenant-entry {
    padding: 0.9rem;
  }

  .table-responsive {
    overflow: visible;
  }

  .table {
    margin-bottom: 0;
  }

  .table thead {
    display: none;
  }

  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tbody tr {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    margin: 0.75rem;
    overflow: hidden;
  }

  .card > .table-responsive .table tbody tr,
  .buildium-panel > .table-responsive .table tbody tr {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .table tbody td {
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    text-align: right !important;
  }

  .table tbody td:last-child {
    border-bottom: 0;
  }

  .table tbody td::before {
    color: #777;
    content: attr(data-label);
    flex: 0 0 42%;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }

  .table tbody td[colspan] {
    display: block;
    text-align: left !important;
  }

  .table tbody td[colspan]::before {
    content: none;
  }

  .table .btn,
  .table form {
    margin-top: 0.25rem;
  }
}

@media (display-mode: standalone) {
  .app-navbar {
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }
}
