@import url("./css/modules/01-styles.css?v=2026091519");
@import url("./css/modules/02-styles.css?v=2026090724");
@import url("./css/modules/03-styles.css?v=2026090601");
@import url("./css/modules/04-styles.css?v=2026090524");
@import url("./css/modules/05-styles.css?v=2026083101");
@import url("./css/modules/06-styles.css?v=2026090427");
@import url("./css/modules/07-styles.css?v=2026090429");
@import url("./css/modules/08-styles.css?v=2026083101");
@import url("./css/modules/09-styles.css?v=2026090723");
@import url("./css/modules/10-styles.css?v=2026090439");
@import url("./css/modules/11-styles.css?v=2026090435");
@import url("./css/modules/12-styles.css?v=2026090434");
@import url("./css/modules/13-styles.css?v=2026090436");
@import url("./css/modules/14-styles.css?v=2026083101");
@import url("./css/modules/15-styles.css?v=2026090201");
@import url("./css/modules/16-styles.css?v=2026090202");
@import url("./css/modules/17-styles.css?v=2026083116");
@import url("./css/modules/18-styles.css?v=2026090401");
@import url("./css/modules/19-styles.css?v=2026083101");
@import url("./css/modules/20-styles.css?v=2026083118");
@import url("./css/modules/21-styles.css?v=2026090311");
@import url("./css/modules/22-styles.css?v=2026091402");
@import url("./css/modules/23-styles.css?v=2026090440");
@import url("./css/modules/24-styles.css?v=2026090304");
@import url("./css/modules/25-styles.css?v=2026091518");
@import url("./css/modules/26-service-requests.css?v=2026090202");
@import url("./css/modules/27-staff-board.css?v=2026090522");
@import url("./css/modules/28-table-standardization.css?v=2026090901");
@import url("./css/modules/29-tasks-board.css?v=2026090206");
@import url("./css/modules/30-communication-board.css?v=2026090433");
@import url("./css/modules/31-shifts-board.css?v=2026090213");
@import url("./css/modules/32-shift-modal.css?v=2026090203");
@import url("./css/modules/99-desktop-density.css?v=2026090801");

.faq-section .faq-heading h2 {
  color: #071426;
  max-width: 1260px;
  font-size: clamp(42px, 4vw, 62px);
}

.phone-code-field {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

main .signup-form .phone-code-field select,
main .signup-form .phone-code-field input {
  width: 100%;
  min-width: 0;
}

main .signup-form .phone-code-field select {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #071426;
  font: inherit;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

main .signup-form .phone-code-field select:focus {
  border-color: #7cc4f6;
  outline: 3px solid rgba(72, 169, 230, 0.18);
}

@media (max-width: 420px) {
  .phone-code-field {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }
}

.building-actions-menu-popover,
.unit-actions-menu-popover {
  min-width: 188px;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8e6f6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.building-actions-menu-popover {
  min-width: 232px;
}

.building-actions-menu-popover button,
.unit-actions-menu-popover button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
}

.building-actions-menu-popover button svg,
.unit-actions-menu-popover button svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.building-actions-menu-popover button:hover,
.unit-actions-menu-popover button:hover {
  background: #eef6ff;
  color: #1d75d8;
}

.building-actions-menu-popover button.danger,
.unit-actions-menu-popover button.danger {
  color: #ef4444;
}

.building-card-actions {
  display: none !important;
}

@media (max-width: 900px) {
  .app-content.units-view .unit-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    align-items: start;
    gap: 12px;
    min-height: 132px;
    padding: 18px 16px;
    overflow: visible;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 67, 104, 0.08);
  }

  .app-content.units-view .unit-mobile-card-main {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-main > .soft-icon {
    display: none !important;
  }

  .app-content.units-view .unit-mobile-card-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-copy small {
    color: #64748b;
    font-size: 13px;
    font-weight: 400 !important;
  }

  .app-content.units-view .unit-mobile-card-copy strong {
    color: #06111f;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 400 !important;
  }

  .app-content.units-view .unit-mobile-card-copy span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-content.units-view .unit-mobile-card-copy .unit-debt-breakdown,
  .app-content.units-view .unit-mobile-card-copy .unit-total-debt {
    font-size: 16px;
    white-space: nowrap;
  }

  .app-content.units-view .unit-mobile-card-copy span svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #64748b;
    stroke-width: 2;
  }

  .app-content.units-view .unit-mobile-card-copy span b {
    color: #1f2937;
    font-weight: 400;
  }

  .app-content.units-view .unit-mobile-card-copy .unit-total-debt {
    color: #1f2937;
  }

  .app-content.units-view .unit-mobile-card-copy .unit-total-debt b {
    color: #ea580c;
  }

  .app-content.units-view .unit-mobile-card-side {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    justify-self: stretch;
    align-items: flex-start;
    min-width: 0;
    padding-right: 50px;
  }

  .app-content.units-view .unit-mobile-card-side .unit-pill {
    min-width: 82px;
    min-height: 34px;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500 !important;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu {
    position: absolute;
    top: 18px;
    right: 16px;
    display: block !important;
    width: 42px;
    min-width: 42px;
    z-index: 3;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu summary {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
  }
}

#familyMembersModal .family-member-form .phone-code-field {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 10px !important;
}

#familyMembersModal .family-member-form .phone-code-field select,
#familyMembersModal .family-member-form .phone-code-field input {
  width: 100% !important;
  min-width: 0 !important;
}

#familyMembersModal .family-member-form .phone-code-field select {
  appearance: none;
  background: #f8fbff;
}

.vehicle-cell.resident small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.app-content.dashboard-view .finance-health-card .legend-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.app-content.dashboard-view .finance-health-card .legend-dot.orange {
  display: block;
  background: #f97316;
}

.app-content.dashboard-view .finance-health-card .legend-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0 22px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.app-content.dashboard-view .finance-health-card .legend-detail span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
}

.app-content.dashboard-view .finance-health-card .legend-detail em {
  color: #334155;
  font-style: normal;
  font-weight: 500;
}

.unit-actions-menu-popover {
  min-width: 156px !important;
  gap: 0 !important;
  padding: 6px !important;
  border-radius: 14px !important;
}

.unit-actions-menu-popover button {
  display: block !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  line-height: 34px !important;
  white-space: nowrap !important;
}

#familyMembersModal .family-member-form .phone-code-field {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 10px !important;
}

#familyMembersModal .family-member-form .phone-code-field select,
#familyMembersModal .family-member-form .phone-code-field input {
  width: 100% !important;
  min-width: 0 !important;
}

#familyMembersModal .family-member-form .phone-code-field {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
}

#familyMembersModal .family-member-form .phone-code-field select,
#familyMembersModal .family-member-form .phone-code-field input {
  width: 100%;
}

#familyMembersModal .family-member-form .phone-code-field select {
  appearance: none;
  background: #f8fbff;
}

.vehicle-cell.resident small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.site-agenda-board {
  display: block;
  overflow: visible;
}

.legend-detail {
  margin: -4px 0 4px 34px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.app-content.site-agenda-view .content-toolbar {
  display: none;
}

.site-agenda-board svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-agenda-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  min-height: 620px;
}

.site-agenda-list-panel,
.site-agenda-chat-panel {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 67, 104, 0.06);
}

.site-agenda-list-panel {
  padding: 14px;
}

.site-agenda-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.site-agenda-new-button {
  display: inline-flex;
  width: 100%;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.site-agenda-new-button svg,
.site-agenda-chat-actions .button svg,
.site-agenda-composer .button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-agenda-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  color: #64748b;
}

.site-agenda-search svg {
  width: 18px;
  height: 18px;
}

.site-agenda-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  font: inherit;
}

.site-agenda-thread-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
}

.site-agenda-thread-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.site-agenda-thread-card.active {
  border-color: #38bdf8;
  box-shadow: inset 4px 0 0 #0ea5e9;
}

.site-agenda-thread-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #e0f2fe;
  color: #0284c7;
}

.site-agenda-thread-icon svg {
  width: 24px;
  height: 24px;
}

.site-agenda-thread-copy {
  min-width: 0;
}

.site-agenda-thread-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-agenda-thread-title-row strong {
  min-width: 0;
  flex: 1;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-agenda-thread-title-row time {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.site-agenda-thread-copy small {
  display: block;
  margin-top: 3px;
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-agenda-thread-copy p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-agenda-thread-delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #fff1f2;
  color: #ef4444;
  cursor: pointer;
}

.site-agenda-thread-delete svg {
  width: 16px;
  height: 16px;
}

.site-agenda-chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(240px, 1fr) auto;
  min-width: 0;
  overflow: hidden;
}

.site-agenda-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.site-agenda-chat-header strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
}

.site-agenda-chat-header span,
.site-agenda-info-table span,
.site-agenda-info-description span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.site-agenda-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-agenda-chat-actions .button {
  display: inline-flex;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.button.secondary.danger {
  border-color: #fecdd3;
  color: #e11d48;
}

.site-agenda-source-card {
  margin: 16px 18px 0;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
}

.site-agenda-source-card strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.site-agenda-source-card p {
  margin: 6px 0 0;
  color: #1f2937;
  line-height: 1.45;
}

.site-agenda-message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background: #eff6ff;
}

.site-agenda-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 72%;
}

.site-agenda-message.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.site-agenda-message-bubble {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
}

.site-agenda-message.mine .site-agenda-message-bubble {
  border-color: #bbf7d0;
  background: #dcfce7;
}

.site-agenda-message-bubble strong {
  display: block;
  color: #0284c7;
  font-size: 13px;
  line-height: 1.2;
}

.site-agenda-message-bubble p {
  margin: 5px 0 4px;
  color: #0f172a;
  line-height: 1.42;
}

.site-agenda-message-bubble time {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

.site-agenda-attachments {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.site-agenda-attachments a,
.site-agenda-attachments span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 800;
}

.site-agenda-attachments svg {
  width: 16px;
  height: 16px;
}

.site-agenda-reactions {
  display: flex;
  gap: 4px;
  margin-top: -5px;
  padding: 3px 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.site-agenda-reactions span {
  font-size: 12px;
  font-weight: 800;
}

.site-agenda-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #dbeafe;
  background: #ffffff;
}

.site-agenda-composer input {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  color: #0f172a;
  font: inherit;
}

.site-agenda-composer .button {
  display: inline-flex;
  width: 132px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.site-agenda-empty-messages,
.site-agenda-disabled,
.site-agenda-empty-panel {
  color: #64748b;
}

.site-agenda-empty-panel {
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.site-agenda-empty-panel svg {
  width: 42px;
  height: 42px;
  color: #0284c7;
}

.site-agenda-empty-panel strong {
  color: #0f172a;
  font-size: 18px;
}

.site-agenda-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
}

.site-agenda-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.2);
}

.site-agenda-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8f0;
}

.site-agenda-modal header span {
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-agenda-modal header h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 22px;
}

.site-agenda-modal header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.site-agenda-modal header button span {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.site-agenda-modal header svg {
  width: 20px;
  height: 20px;
}

.site-agenda-topic-form {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.site-agenda-topic-form label {
  display: grid;
  gap: 7px;
}

.site-agenda-topic-form label span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.site-agenda-topic-form input,
.site-agenda-topic-form textarea,
.site-agenda-topic-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #0f172a;
  font: inherit;
}

.site-agenda-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.site-agenda-modal-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.site-agenda-topic-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.site-agenda-info-table {
  display: grid;
  margin: 20px 22px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  overflow: hidden;
}

.site-agenda-info-table div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.site-agenda-info-table div:last-child {
  border-bottom: 0;
}

.site-agenda-info-table strong {
  color: #0f172a;
  text-align: right;
}

.site-agenda-info-description {
  margin: 0 22px 22px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
}

.site-agenda-info-description p {
  margin: 8px 0 0;
  color: #0f172a;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .site-agenda-shell {
    grid-template-columns: 1fr;
  }

  .site-agenda-thread-list {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .site-agenda-chat-header,
  .site-agenda-topic-form footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-agenda-form-grid,
  .site-agenda-info-table div {
    grid-template-columns: 1fr;
  }

  .site-agenda-info-table strong {
    text-align: left;
  }

  .site-agenda-message {
    max-width: 90%;
  }

  .site-agenda-composer {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .app-content.units-view .unit-mobile-card-main,
  .app-content.units-view .unit-mobile-card-side {
    display: none !important;
  }

  .app-content.units-view .unit-card-head,
  .app-content.units-view .unit-row {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.25fr) minmax(210px, 1fr) 120px minmax(270px, 1.05fr) minmax(190px, 0.9fr) 76px;
    align-items: center;
    column-gap: 16px;
    min-width: 0;
  }

  .app-content.units-view .unit-row {
    min-height: 68px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .app-content.units-view .unit-row > .unit-apartment {
    grid-column: 1;
    display: flex !important;
  }

  .app-content.units-view .unit-row > .resident {
    grid-column: 2;
    display: flex !important;
  }

  .app-content.units-view .unit-row > .unit-pill {
    grid-column: 3;
    display: inline-flex !important;
  }

  .app-content.units-view .unit-row > .unit-debt-cell {
    grid-column: 4;
    display: flex !important;
  }

  .app-content.units-view .unit-row > .phone {
    grid-column: 5;
    display: flex !important;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu {
    grid-column: 6;
    position: static !important;
    display: flex !important;
    justify-self: end;
    width: 42px;
    min-width: 42px;
  }

  .app-content.units-view .unit-debt-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .app-content.units-view .unit-debt-cell small,
  .app-content.units-view .unit-debt-cell strong {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400 !important;
  }

  .app-content.units-view .unit-debt-cell .unit-pill {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
  }
}

.app-content.units-view .unit-card-head {
  display: none;
}

@media (min-width: 901px) {
  .app-content.units-view .unit-table {
    overflow: visible;
  }

  .app-content.units-view .unit-table-body {
    display: grid;
    gap: 12px;
    padding-top: 12px;
  }

  .app-content.units-view .unit-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    min-width: 0;
    min-height: 112px;
    gap: 10px;
    padding: 14px 112px 14px 20px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 67, 104, 0.06);
  }

  .app-content.units-view .unit-row:hover {
    background: #ffffff;
    box-shadow: inset 4px 0 0 #3ba7e3, 0 12px 30px rgba(17, 67, 104, 0.08);
  }

  .app-content.units-view .unit-apartment,
  .app-content.units-view .unit-cell.resident,
  .app-content.units-view .unit-row > .unit-pill,
  .app-content.units-view .unit-debt-cell,
  .app-content.units-view .unit-cell.phone {
    display: none !important;
  }

  .app-content.units-view .unit-mobile-card-main {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-copy small {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15;
  }

  .app-content.units-view .unit-mobile-card-copy > strong {
    color: #06111f;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.05;
  }

  .app-content.units-view .unit-mobile-card-copy span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-content.units-view .unit-mobile-card-copy span svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #64748b;
    stroke-width: 2;
  }

  .app-content.units-view .unit-mobile-card-copy .unit-debt-breakdown b {
    color: #1f2937;
    font-weight: 400;
  }

  .app-content.units-view .unit-mobile-card-copy .unit-total-debt {
    color: #1f2937;
    font-size: 18px;
  }

  .app-content.units-view .unit-mobile-card-copy .unit-total-debt b {
    color: #ea580c;
    font-weight: 400;
  }

  .app-content.units-view .unit-mobile-card-side {
    position: absolute;
    top: 24px;
    right: 96px;
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .app-content.units-view .unit-mobile-card-side .unit-pill {
    min-width: 92px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 500;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu {
    position: absolute;
    top: 22px;
    right: 24px;
    display: block !important;
    width: 48px;
    min-width: 48px;
    z-index: 3;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu summary {
    width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 14px;
  }
}

@media (min-width: 901px) {
  .app-content.units-view .unit-mobile-card-main,
  .app-content.units-view .unit-mobile-card-side {
    display: none !important;
  }

  .app-content.units-view .unit-card-head {
    display: grid !important;
  }

  .app-content.units-view .unit-table-head,
  .app-content.units-view .unit-row {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.25fr) minmax(210px, 1fr) 120px minmax(260px, 1.05fr) minmax(180px, 0.9fr) 92px;
    align-items: center;
    column-gap: 18px;
    min-width: 0;
  }

  .app-content.units-view .unit-row {
    position: relative;
    min-height: 74px;
    gap: 12px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .app-content.units-view .unit-row:hover {
    background: #f8fbff;
    box-shadow: inset 3px 0 0 #3ba7e3;
  }

  .app-content.units-view .unit-cell,
  .app-content.units-view .unit-debt-cell,
  .app-content.units-view .unit-cell.phone {
    display: flex !important;
    align-items: center;
    min-width: 0;
  }

  .app-content.units-view .unit-apartment {
    display: flex !important;
  }

  .app-content.units-view .unit-row > .unit-pill {
    display: inline-flex !important;
  }

  .app-content.units-view .unit-debt-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
  }

  .app-content.units-view .unit-cell strong,
  .app-content.units-view .unit-debt-cell strong {
    overflow: hidden;
    color: #243447;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-content.units-view .unit-cell small,
  .app-content.units-view .unit-debt-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-content.units-view .unit-debt-cell strong.unit-total-debt {
    color: #1f2937;
    font-size: 13px;
  }

  .app-content.units-view .unit-debt-cell strong.unit-total-debt b {
    color: #ea580c;
    font-weight: 400;
  }

  .app-content.units-view .unit-debt-breakdown,
  .app-content.units-view .unit-total-debt,
  .app-content.units-view .unit-debt-breakdown b,
  .app-content.units-view .unit-total-debt b {
    font-weight: 400 !important;
  }

  .app-content.units-view .unit-cell svg,
  .app-content.units-view .unit-debt-cell svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    color: #64748b;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu {
    position: static;
    justify-self: end;
    display: flex !important;
    width: 42px;
    min-width: 42px;
    z-index: 3;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu summary {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
  }
}

.faq-section .faq-filter-row svg,
.faq-section .faq-item-icon svg,
.faq-section .faq-help-card .button svg,
.faq-section .faq-safe-note svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-section .faq-list summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 16px 24px;
  color: #071426;
  list-style: none;
  font-size: 21px;
  font-weight: 900;
}

.faq-section .faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-section .faq-list summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  justify-self: end;
  border-radius: 10px;
  color: #071426;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.faq-section .faq-list details[open] summary::after {
  content: "-";
  background: linear-gradient(180deg, #177fe8, #075fe2);
  color: #fff;
  font-size: 28px;
}

.faq-section .faq-list details p {
  max-width: 760px;
  margin: -4px 72px 24px 94px;
  padding: 0;
  color: #66758a;
  font-size: 18px;
  line-height: 1.65;
}

.faq-section .faq-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.faq-section .faq-item-icon svg {
  width: 27px;
  height: 27px;
}

.faq-section .faq-help-card {
  padding: 44px 38px 40px;
}

.faq-section .faq-help-illustration {
  width: 130px;
  height: 110px;
  margin-bottom: 22px;
}

.faq-section .faq-help-card h3 {
  font-size: 30px;
}

.faq-section .faq-help-card p {
  margin: 18px 0 24px;
  font-size: 18px;
}

.faq-section .faq-help-card .button {
  min-height: 58px;
  font-size: 20px;
}

.faq-section .faq-trial-link {
  margin-top: 20px;
  font-size: 18px;
}

.faq-section .faq-safe-note {
  margin-top: 22px;
  font-size: 16px;
}

.faq-section .faq-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 42px;
}

.faq-section .faq-help-card {
  padding: 36px 34px 32px;
}

.faq-section .faq-help-illustration {
  width: 118px;
  height: 96px;
  margin-bottom: 20px;
}

.faq-section .faq-help-illustration span:first-child {
  left: 10px;
  top: 18px;
  width: 66px;
  height: 42px;
}

.faq-section .faq-help-illustration span:last-child {
  right: 0;
  bottom: 16px;
  width: 76px;
  height: 50px;
}

.faq-section .faq-help-card h3 {
  color: #071426;
  font-size: 28px;
  line-height: 1.16;
}

.faq-section .faq-help-card p {
  margin: 16px 0 22px;
}

.faq-section .faq-trial-link {
  margin-top: 18px;
}

.faq-section {
  padding-top: 42px;
}

.faq-section .faq-heading {
  margin-bottom: 26px;
}

.faq-section .faq-heading .eyebrow {
  font-size: 16px;
}

.faq-section .faq-heading h2 {
  max-width: 1120px;
  font-size: clamp(40px, 3.6vw, 56px);
  line-height: 1.08;
}

.faq-section .faq-heading > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 19px;
}

.faq-section .faq-filter-row {
  gap: 14px;
  margin-bottom: 28px;
}

.faq-section .faq-filter-row button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 17px;
}

.faq-section .faq-filter-row svg {
  width: 21px;
  height: 21px;
}

.faq-section .faq-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
}

.faq-section .faq-list {
  gap: 10px;
}

.faq-section .faq-list summary {
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  min-height: 66px;
  padding: 14px 20px;
  font-size: 19px;
}

.faq-section .faq-item-icon {
  width: 48px;
  height: 48px;
}

.faq-section .faq-item-icon svg {
  width: 24px;
  height: 24px;
}

.faq-section .faq-list summary::after {
  width: 31px;
  height: 31px;
  font-size: 29px;
}

.faq-section .faq-list details[open] summary::after {
  font-size: 25px;
}

.faq-section .faq-list details p {
  margin: -2px 62px 22px 88px;
  font-size: 17px;
}

.faq-section .faq-help-card {
  padding: 32px 30px 28px;
  border-radius: 18px;
}

.faq-section .faq-help-card h3 {
  font-size: 26px;
}

.faq-section .faq-help-card p,
.faq-section .faq-trial-link {
  font-size: 17px;
}

.faq-section {
  padding-top: 48px;
}

.faq-section .faq-heading {
  margin-bottom: 24px;
}

.faq-section .faq-heading .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.faq-section .faq-heading h2 {
  font-size: clamp(38px, 3.45vw, 54px);
}

.faq-section .faq-filter-row {
  margin-bottom: 24px;
}

.faq-section .faq-list details {
  border-radius: 14px;
}

.faq-section .faq-list summary {
  min-height: 62px;
}

.faq-section .faq-list details[open] summary {
  padding-bottom: 10px;
}

.faq-section .faq-list details p {
  margin: 0 62px 22px 88px;
}

.faq-section .faq-help-card {
  align-self: start;
  margin-top: 0;
}

.hero .hero-copy {
  min-height: 430px;
}

.hero .hero-actions {
  margin-top: 30px;
}

.hero .hero-price-card {
  width: min(100%, 660px);
  max-width: 660px;
  min-height: 136px;
  margin-top: 52px;
  padding: 22px 30px;
  align-content: center;
  align-items: center;
  grid-template-columns: minmax(250px, 1fr) minmax(180px, 0.72fr);
  gap: 16px 34px;
}

.hero .hero-benefits {
  display: none;
}

.hero .hero-price-main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 4px;
  text-align: right;
}

.hero .hero-price-main span {
  color: #071426;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 900;
  line-height: 1.1;
}

.hero .hero-price-main strong {
  color: #1478d4;
  font-size: clamp(68px, 5vw, 92px);
  line-height: 0.92;
  white-space: nowrap;
}

.hero .hero-price-main small {
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
}

.hero .hero-price-benefits {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  border-top: 0;
}

.hero .hero-price-benefits span {
  position: relative;
  padding-left: 20px;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.hero .hero-price-benefits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #5ccfb2;
}

.hero .hero-price-cta {
  display: none;
}

.hero .hero-people {
  display: none;
}

.app-mode .whatsapp-help {
  display: none !important;
}

.support-cases-button {
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #147fc4 !important;
  font-weight: 850;
}

.support-cases-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.support-cases-button.has-message {
  border-color: #f9a8d4 !important;
  background: #fdf2f8 !important;
  color: #db2777 !important;
}

.support-case-table {
  padding: 0 !important;
  overflow: hidden;
}

.support-case-board {
  display: grid;
  gap: 0;
  border: 1px solid #dbe8f3;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.support-case-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e7eff7;
}

.support-case-toolbar h3 {
  margin: 0;
  font-size: 28px;
}

.support-case-toolbar p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #50627a;
  font-weight: 650;
}

.support-case-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-case-toolbar-actions span {
  color: #68788d;
  font-size: 18px;
  font-weight: 750;
}

.support-case-list {
  display: grid;
}

.support-case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0;
}

.support-case-metrics article {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 18px 22px;
  border: 1px solid #dbe8f3;
  border-radius: 14px;
  background: #ffffff;
}

.support-case-metrics article.active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #93c5fd inset;
}

.support-case-metrics article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #156fd4;
}

.support-case-metrics svg,
.support-search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.support-case-metrics small {
  color: #50627a;
  font-weight: 750;
}

.support-case-metrics strong {
  display: block;
  margin-top: 4px;
  color: #071421;
  font-size: 28px;
  font-weight: 900;
}

.support-case-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(190px, 220px);
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe8f3;
  border-radius: 14px;
  background: #ffffff;
}

.support-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  color: #1d4f9f;
}

.support-search input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 700;
}

.support-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  padding: 3px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #ffffff;
}

.support-segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #071421;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.support-segmented button.active {
  background: #147fc4;
  color: #ffffff;
}

.support-case-filters select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  font-weight: 850;
}

.support-case-table-card {
  margin-top: 18px;
  border: 1px solid #dbe8f3;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.support-case-table-head,
.support-case-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(130px, .8fr) minmax(150px, .9fr) minmax(110px, .6fr) minmax(170px, .9fr) auto;
  align-items: center;
  gap: 18px;
}

.support-case-table-head {
  min-height: 58px;
  padding: 0 24px;
  border-bottom: 1px solid #e7eff7;
  background: #f8fafc;
  color: #50627a;
  font-size: 14px;
  font-weight: 900;
}

.support-case-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px 56px;
  text-align: center;
}

.support-case-empty span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #eff6ff;
  color: #147fc4;
}

.support-case-empty svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.support-case-empty strong {
  color: #071421;
  font-size: 24px;
}

.support-case-empty p {
  max-width: 520px;
  margin: 0;
  color: #68788d;
  font-weight: 650;
  line-height: 1.45;
}

.support-case-row {
  min-height: 92px;
  padding: 16px 24px;
  border-bottom: 1px solid #e7eff7;
}

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

.support-case-row.unread {
  background: #fff7fb;
}

.support-case-row strong,
.support-case-row span,
.support-case-row small {
  display: block;
}

.support-case-row strong {
  color: #071421;
  font-size: 18px;
}

.support-case-row span,
.support-case-row small {
  color: #68788d;
  font-weight: 750;
}

.support-case-detail {
  gap: 0;
}

.support-case-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
}

.support-case-main,
.support-case-aside {
  display: grid;
  align-content: start;
  gap: 16px;
}

.support-case-summary-card,
.support-conversation-card,
.support-info-card {
  border: 1px solid #dbe8f3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.04);
}

.support-case-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 16px;
  padding: 18px 22px;
}

.support-case-summary-title h3 {
  margin: 6px 0 4px;
  color: #071421;
  font-size: 28px;
}

.support-case-summary-title span {
  color: #50627a;
  font-size: 15px;
  font-weight: 850;
}

.support-case-badges,
.support-case-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-case-actions .button.ghost,
.detail-actions .button.ghost {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #0f63c7;
}

.support-case-actions .button.ghost:hover,
.detail-actions .button.ghost:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}

.support-case-actions .button.ghost.danger,
.detail-actions .button.ghost.danger {
  border-color: #fb7185;
  background: #fff1f2;
  color: #e11d48;
}

.support-case-actions .button.ghost.danger:hover,
.detail-actions .button.ghost.danger:hover {
  background: #ffe4e6;
}

.support-status-badge,
.support-priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 15px;
  font-weight: 900;
}

.support-status-badge::before {
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.support-priority-badge {
  background: #f3e8ff;
  color: #7e22ce;
}

.support-status-badge.small,
.support-priority-badge.small {
  min-height: 26px;
  padding: 0 10px;
  font-size: 13px;
}

.support-case-meta-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 12px;
  border-top: 1px solid #e7eff7;
}

.support-meta-item,
.support-info-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.support-meta-item {
  padding: 0 18px;
  border-left: 1px solid #e7eff7;
}

.support-meta-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.support-meta-item svg,
.support-info-line svg,
.support-info-card-head svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #1d4f9f;
  stroke-width: 2;
}

.support-meta-item strong,
.support-meta-item span,
.support-info-line strong,
.support-info-line span {
  display: block;
}

.support-meta-item strong,
.support-info-line strong {
  color: #071421;
  font-weight: 900;
}

.support-meta-item span,
.support-info-line span {
  color: #50627a;
  font-size: 14px;
  font-weight: 650;
}

.support-conversation-card {
  overflow: hidden;
}

.support-conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e7eff7;
}

.support-conversation-head h3,
.support-info-card h3 {
  margin: 0;
  color: #071421;
  font-size: 22px;
}

.support-conversation-head span {
  color: #50627a;
  font-weight: 850;
}

.support-case-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-message-list {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 18px;
  min-height: 360px;
  padding: 28px 24px;
  background: #ffffff;
}

.support-message {
  display: grid;
  align-self: start;
  gap: 8px;
  position: relative;
  width: fit-content;
  min-width: min(420px, 100%);
  max-width: min(880px, 88%);
  padding: 14px 16px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.support-message::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #ff604f;
  content: "";
}

.support-message.operator {
  justify-self: start;
  border-color: #bfdbfe;
  background: #ffffff;
}

.support-message.manager {
  justify-self: end;
  border-color: #ddd6fe;
  background: #ffffff;
}

.support-message.manager::before {
  inset: 0 0 0 auto;
  background: #7c3aed;
}

.support-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.support-message p {
  margin: 0;
  color: #334155;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-wrap;
}

.support-message a {
  color: #147fc4;
  font-weight: 850;
  text-decoration: none;
}

.support-reply-form,
.support-case-modal {
  display: grid;
  gap: 14px;
}

.support-reply-form {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid #e7eff7;
  background: #ffffff;
}

.support-reply-form textarea[name="message"] {
  min-height: 52px;
  max-height: 120px;
  padding: 14px 16px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  resize: vertical;
}

.support-case-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 24px;
  border-top: 1px solid #e7eff7;
  color: #50627a;
  font-weight: 750;
}

.support-case-pagination div {
  display: flex;
  gap: 10px;
}

.support-case-pagination button {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #ffffff;
  color: #8aa0b8;
  font: inherit;
  font-weight: 900;
}

.support-case-pagination button.active {
  background: #e8f4ff;
  color: #147fc4;
}

.support-reply-form .button.primary {
  min-height: 52px;
  gap: 8px;
  padding: 0 22px;
}

.support-reply-form .button.primary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.support-attachment-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #ffffff;
  color: #071421;
  cursor: pointer;
}

.support-attachment-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.support-attachment-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.support-closed-message {
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid #e7eff7;
}

.support-info-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

.support-info-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7eff7;
}

.support-customer-profile {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 0 14px;
}

.support-customer-profile strong {
  color: #071421;
  font-size: 20px;
  font-weight: 900;
}

.support-customer-profile span {
  color: #50627a;
  font-weight: 650;
}

.support-info-lines {
  display: grid;
  gap: 18px;
}

.support-info-table {
  display: grid;
}

.support-info-table > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #e7eff7;
}

.support-info-table > div:last-child {
  border-bottom: 0;
}

.support-info-table span {
  color: #50627a;
  font-weight: 650;
}

.support-info-table strong {
  color: #071421;
  font-weight: 850;
}

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

.support-attachment-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #f8fbff;
}

.support-attachment-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #147fc4;
}

.support-attachment-row svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.support-attachment-row strong,
.support-attachment-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-attachment-row strong {
  color: #071421;
  font-size: 13px;
  font-weight: 700;
}

.support-attachment-row small,
.support-empty-note {
  color: #50627a;
  font-size: 12px;
  font-weight: 500;
}

.support-empty-note {
  margin: 0;
}

.support-case-modal {
  grid-template-columns: minmax(0, 1fr);
  width: min(720px, calc(100vw - 32px));
  gap: 18px;
}

.support-case-modal .app-dialog-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.support-case-modal .icon-button {
  width: 44px;
  height: 44px;
  justify-self: end;
  border: 1px solid #dbe8f3;
  border-radius: 12px;
  background: #ffffff;
  color: #071421;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.support-case-modal label,
.support-reply-form label {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  color: #334155;
  font-weight: 850;
}

.support-case-modal input:not([type="file"]),
.support-case-modal textarea,
.support-reply-form textarea {
  width: 100%;
}

.support-file-upload {
  width: 100%;
}

.support-file-upload .file-upload-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-case-modal .message,
.support-case-modal .button.primary {
  grid-column: 1 / -1;
}

.app-content.support-cases-view {
  gap: 6px;
  padding-top: 6px;
}

.subscription-banner:not(.hidden) + .tenant-picker.hidden + .app-content.support-cases-view {
  padding-top: 6px;
}

.app-content.support-cases-view .admin-message:empty {
  display: none;
}

.app-content.support-cases-view .support-case-board {
  border-radius: 12px;
}

.app-content.support-cases-view .support-case-toolbar {
  padding: 10px 14px;
}

.app-content.support-cases-view .support-case-toolbar h3 {
  font-size: 21px;
}

.app-content.support-cases-view .support-case-toolbar p:not(.eyebrow) {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.app-content.support-cases-view .support-case-toolbar-actions {
  gap: 10px;
}

.app-content.support-cases-view .support-case-toolbar-actions span {
  font-size: 16px;
}

.app-content.support-cases-view .support-case-toolbar .button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.app-content.support-cases-view .support-case-metrics {
  gap: 8px;
  padding: 8px 0;
}

.app-content.support-cases-view .support-case-metrics article {
  gap: 10px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 10px;
}

.app-content.support-cases-view .support-case-metrics article > span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.app-content.support-cases-view .support-case-metrics svg,
.app-content.support-cases-view .support-search svg {
  width: 16px;
  height: 16px;
}

.app-content.support-cases-view .support-case-metrics small {
  font-size: 11px;
  font-weight: 650;
}

.app-content.support-cases-view .support-case-metrics strong {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
}

.app-content.support-cases-view .support-case-filters {
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
}

.app-content.support-cases-view .support-search,
.app-content.support-cases-view .support-case-filters select {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.app-content.support-cases-view .support-segmented {
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  border-radius: 8px;
}

.app-content.support-cases-view .support-segmented button {
  min-height: 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}

.app-content.support-cases-view .support-case-table-card {
  margin-top: 0;
  border-radius: 10px;
}

.app-content.support-cases-view .support-case-table-head,
.app-content.support-cases-view .support-case-row {
  gap: 12px;
  grid-template-columns: minmax(190px, 1.25fr) minmax(110px, .75fr) minmax(130px, .8fr) minmax(90px, .55fr) minmax(140px, .85fr) auto;
  text-align: center;
}

.app-content.support-cases-view .support-case-table-head > :first-child,
.app-content.support-cases-view .support-case-row > :first-child {
  text-align: left;
}

.app-content.support-cases-view .support-case-table-head > :last-child,
.app-content.support-cases-view .support-case-row > :last-child {
  justify-self: end;
}

.app-content.support-cases-view .support-case-table-head {
  min-height: 34px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 750;
}

.app-content.support-cases-view .support-case-row {
  min-height: 46px;
  padding: 7px 14px;
}

.app-content.support-cases-view .support-case-row strong {
  color: #071421;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}

.app-content.support-cases-view .support-case-row > div strong {
  font-size: 15px;
  font-weight: 600;
}

.app-content.support-cases-view .support-case-row span,
.app-content.support-cases-view .support-case-row small {
  color: #071421;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.app-content.support-cases-view .support-status-badge.small {
  display: inline-flex;
  justify-content: center;
  min-width: 86px;
  padding: 4px 10px;
  color: #ea580c;
  font-size: 11px;
  font-weight: 600;
}

.app-content.support-cases-view .support-case-row .button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.app-content.support-cases-view .support-case-load-more {
  padding: 10px 14px;
  border-top: 1px solid #e7eff7;
  color: #68788d;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.unit-mobile-summary,
.vehicle-mobile-summary,
.guest-mobile-summary,
.guest-mobile-details,
.staff-mobile-meta,
.resident-mobile-summary {
  display: none;
}

@media (max-width: 780px) {
  .support-case-desk,
  .support-case-summary-card,
  .support-case-meta-grid,
  .support-case-metrics,
  .support-case-filters,
  .support-case-table-head,
  .support-case-row {
    grid-template-columns: 1fr;
  }

  .support-meta-item {
    padding: 12px 0;
    border-top: 1px solid #e7eff7;
    border-left: 0;
  }

  .support-message {
    max-width: 100%;
  }

  .support-reply-form {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .support-reply-form .button.primary {
    grid-column: 1 / -1;
  }

  .support-case-row {
    grid-template-columns: 1fr;
  }

  .support-case-toolbar,
  .support-case-toolbar-actions,
  .support-case-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-message {
    max-width: 100%;
  }
}

.mobile-menu-button,
.app-sidebar-backdrop {
  display: none;
}

@media (max-width: 780px) {
  html,
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  body.mobile-menu-lock {
    overflow: hidden;
  }

  .app-shell {
    position: relative;
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(84vw, 320px);
    height: 100dvh;
    max-height: none;
    min-height: 0;
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow: auto;
    transform: translateX(-104%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 44px rgba(7, 20, 33, 0.16);
  }

  .app-shell.mobile-menu-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(7, 20, 33, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .app-shell.mobile-menu-open .app-sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: #167fe3;
    box-shadow: 0 10px 24px rgba(17, 67, 104, 0.08);
  }

  .mobile-menu-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .app-topbar > div:first-of-type {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-topbar h2 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-topbar-actions {
    width: 100%;
    flex-basis: 100%;
  }
}

.task-mobile-code,
.task-mobile-meta,
.task-mobile-note {
  display: none;
}

.task-weekday-picker label {
  position: relative;
}

.task-weekday-picker input {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-head em {
  display: none !important;
}

body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-head small,
body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .finance-section-title p {
  font-weight: 400 !important;
}

.field-label-text .required-star {
  color: #ef4444;
  font-weight: 900;
}

#recordModal .finance-form-modal.supplier-debt-form-modal .field-label-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 980px) {
  html,
  body.app-mode,
  .app-shell,
  .app-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .app-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(84vw, 320px);
    height: 100dvh !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    overflow: auto;
    transform: translateX(-104%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 44px rgba(7, 20, 33, 0.16);
  }

  .app-shell.mobile-menu-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(7, 20, 33, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .app-shell.mobile-menu-open .app-sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    min-height: 62px;
    padding: 10px 12px;
  }

  .app-topbar > div:first-of-type {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-breadcrumb {
    display: none;
  }

  .app-topbar h2 {
    overflow: hidden;
    font-size: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-topbar-actions {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    gap: 8px;
    align-items: center !important;
    width: auto !important;
  }

  .app-topbar-actions #supportCasesButton,
  .app-topbar-actions #appInfoButton,
  .app-topbar-actions #appStatsToggleButton,
  .app-topbar-actions #changeTenantButton {
    display: none !important;
  }

  .profile-menu-wrap {
    width: auto !important;
  }

  .profile-menu {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 62px);
    right: 10px;
    left: auto;
    z-index: 95;
    width: min(240px, calc(100vw - 20px));
    min-width: 0;
    margin-top: 0 !important;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(7, 20, 33, 0.18);
  }

  .profile-menu button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .profile-card {
    width: 44px !important;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .profile-card > span:not(.profile-avatar),
  .profile-card > svg {
    display: none;
  }

  .app-logout {
    width: 44px !important;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    border-radius: 12px;
  }

  .app-logout span {
    display: none;
  }

  .subscription-banner {
    margin: 10px 12px 0 !important;
  }

  .tenant-picker,
  .app-content,
  .unit-detail {
    padding: 12px !important;
  }
}

@media (max-width: 980px) {
  #assignmentModal .finance-flow-modal .modal-head {
    padding: 18px 16px 14px;
  }

  #assignmentModal .finance-flow-modal .modal-head h3 {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
  }

  #assignmentModal .finance-flow-modal .modal-head strong {
    font-size: 22px !important;
    line-height: 1.05;
    white-space: nowrap;
  }

  #assignmentModal .finance-flow-modal .modal-head small,
  #assignmentModal .finance-flow-modal .finance-section-title p {
    font-weight: 400 !important;
  }

  #assignmentModal .finance-flow-modal .finance-section-title h4 {
    font-size: 19px;
    line-height: 1.12;
  }

  #assignmentModal .assignment-bulk-select {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 8px;
    min-height: 30px;
    padding: 4px 0;
    border: 0;
    background: transparent;
  }

  #assignmentModal .assignment-bulk-select input {
    width: 14px !important;
    height: 14px !important;
    margin: 0;
  }

  #assignmentModal .assignment-bulk-select span {
    font-size: 12px;
    font-weight: 600;
  }

  #assignmentModal .assignment-bulk-select small {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 500;
  }
}

.resident-menu-button,
.resident-menu-backdrop {
  display: none;
}

.resident-head .resident-menu-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #167fe3;
}

.resident-head .resident-menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 780px) {
  .resident-head .resident-menu-button {
    display: inline-grid;
  }

  .resident-head {
    align-items: flex-start;
  }

  .resident-head > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .resident-tabs {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    align-content: start;
    width: min(82vw, 320px);
    margin: 0;
    padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
    gap: 10px;
    background: #ffffff;
    box-shadow: 18px 0 44px rgba(7, 20, 33, 0.16);
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  .resident-shell.resident-menu-open .resident-tabs {
    transform: translateX(0);
  }

  .resident-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(7, 20, 33, 0.34);
  }

  .resident-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 14px;
    text-align: left;
  }
}

@media (max-width: 980px) {
  .app-content.buildings-view {
    gap: 10px;
  }

  .app-content.buildings-view .data-table.buildings-board {
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .app-content.buildings-view .building-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-content.buildings-view .building-stat-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    min-height: 86px;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(17, 67, 104, 0.05);
  }

  .app-content.buildings-view .building-stat-card > span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .app-content.buildings-view .building-stat-card svg {
    width: 22px;
    height: 22px;
  }

  .app-content.buildings-view .building-stat-card strong {
    color: #42536a;
    font-size: 12px;
    line-height: 1.2;
  }

  .app-content.buildings-view .building-stat-card b {
    margin-top: 4px;
    font-size: 23px;
  }

  .app-content.buildings-view .building-stat-card small {
    display: block;
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.15;
  }

  .app-content.buildings-view .building-list-card {
    border-radius: 16px;
    overflow: visible;
  }

  .app-content.buildings-view .building-list-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    overflow: visible;
  }

  .app-content.buildings-view .building-search,
  .app-content.buildings-view .standard-list-search {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
  }

  .app-content.buildings-view .standard-list-search input {
    min-height: 38px;
    font-size: 14px;
    font-weight: 650;
  }

  .app-content.buildings-view .standard-list-actions {
    display: grid;
    width: 100%;
    min-height: 44px;
  }

  .app-content.buildings-view .building-create {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
  }

  .app-content.buildings-view .building-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 12px max(28px, env(safe-area-inset-bottom));
  }

  .app-content.buildings-view .building-card {
    gap: 10px;
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(17, 67, 104, 0.05);
  }

  .app-content.buildings-view .building-card-top {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
  }

  .app-content.buildings-view .building-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .app-content.buildings-view .building-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .app-content.buildings-view .building-card h4 {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.2;
  }

  .app-content.buildings-view .building-pill {
    padding: 4px 8px;
    font-size: 11px;
  }

  .app-content.buildings-view .building-address,
  .app-content.buildings-view .building-residents {
    gap: 7px;
    min-height: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .app-content.buildings-view .building-address {
    padding-bottom: 8px;
  }

  .app-content.buildings-view .building-mini-stats span {
    padding: 2px 8px 9px;
  }

  .app-content.buildings-view .building-mini-stats strong {
    font-size: 16px;
  }

  .app-content.buildings-view .building-mini-stats small {
    font-size: 11px;
  }

  .app-content.buildings-view .building-occupancy {
    grid-template-columns: minmax(64px, auto) 1fr minmax(66px, auto);
    gap: 8px;
  }

  .app-content.buildings-view .building-occupancy strong,
  .app-content.buildings-view .building-occupancy small {
    font-size: 11px;
  }

  .app-content.buildings-view .building-occupancy b {
    font-size: 18px;
  }

  .app-content.buildings-view .building-card-actions {
    gap: 8px;
  }

  .app-content.buildings-view .building-card-actions .button {
    min-height: 38px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 12px;
  }

  .app-content.buildings-view .empty-state {
    margin: 0;
    min-height: 0;
    padding: 18px 14px;
    border: 1px dashed #cfe0f1;
    border-radius: 14px;
    color: #536273;
    font-size: 15px;
    text-align: center;
  }

  #recordModal {
    z-index: 120;
    place-items: start center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal {
    width: min(100%, calc(100vw - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
    overflow: auto;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal .modal-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 14px 14px 12px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal .modal-head h3 {
    gap: 10px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal .modal-head strong {
    font-size: 18px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal .modal-head small {
    font-size: 11px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-grid.two,
  body:has(.app-content.buildings-view) #recordModal .vehicle-form-grid.three {
    grid-template-columns: 1fr;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-section {
    padding: 12px 14px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal label,
  body:has(.app-content.buildings-view) #recordModal .building-address-check {
    font-size: 12px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal input,
  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal select,
  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal textarea,
  body:has(.app-content.buildings-view) #recordModal .number-stepper {
    min-height: 40px;
    font-size: 14px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal textarea {
    min-height: 74px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-note-field > small {
    margin-top: 0;
    font-size: 10px;
  }

  body:has(.app-content.buildings-view) #recordModal .vehicle-form-modal > .button.full {
    width: calc(100% - 28px);
    min-height: 44px;
    margin: 4px 14px 14px;
    transform: none;
    font-size: 14px;
  }

  .app-content.units-view {
    width: 100%;
    max-width: 100vw;
    gap: 10px;
    min-width: 0;
    overflow-x: hidden;
    padding-inline: 8px !important;
  }

  .app-content.units-view .data-table.units-board {
    gap: 10px;
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    min-width: 0;
    justify-self: center;
    overflow: visible;
  }

  .app-content.units-view .unit-stat-grid {
    display: none;
  }

  .app-content.units-view .unit-list-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 16px;
    overflow: visible;
  }

  .app-content.units-view .unit-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    padding: 10px;
    overflow: visible;
  }

  .app-content.units-view .unit-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 10px;
  }

  .app-content.units-view .unit-search input {
    min-height: 34px;
    font-size: 13px;
    font-weight: 650;
  }

  .app-content.units-view #unitExportButton {
    display: none !important;
  }

  .app-content.units-view #unitBulkButton {
    display: none !important;
  }

  .app-content.units-view .unit-export-button,
  .app-content.units-view .unit-toolbar .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin-left: 0;
    padding: 0 10px;
    border: 1px solid #b8d7ff;
    border-radius: 10px;
    background: #ffffff;
    color: #0b75d1;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.15;
    white-space: nowrap;
    text-indent: 0;
    opacity: 1;
    visibility: visible;
  }

  .app-content.units-view #unitCreateButton {
    grid-column: 1 / -1;
    border-color: #1d8ed5;
    background: #48a9e6;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(72, 169, 230, 0.2);
  }

  .app-content.units-view .unit-filter-row {
    display: none;
  }

  .app-content.units-view .unit-filter-row label {
    display: grid;
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: #ffffff;
    color: #536273;
    font-size: 13px;
    font-weight: 760;
  }

  .app-content.units-view .unit-filter-row select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 28px 0 0;
    border: 0;
    background: transparent;
    color: #071421;
    font-size: 13px;
    font-weight: 760;
    text-align: left;
  }

  .app-content.units-view .unit-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .app-content.units-view .unit-table-head {
    display: none;
  }

  .app-content.units-view .unit-table-body {
    display: grid;
    gap: 7px;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 10px max(28px, env(safe-area-inset-bottom));
    align-content: start;
  }

  .app-content.units-view .unit-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 9px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 67, 104, 0.04);
  }

  .app-content.units-view .unit-row > .actions-menu {
    display: none;
  }

  .app-content.units-view .unit-row > .unit-apartment {
    grid-column: 1;
    grid-row: 1;
  }

  .app-content.units-view .unit-resident-inline {
    display: inline;
    color: #071421;
    font-weight: 760;
  }

  .app-content.units-view .unit-mobile-summary {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
    justify-items: end;
    align-self: start;
    min-width: 74px;
  }

  .app-content.units-view .unit-mobile-summary strong {
    color: #071421;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }

  .app-content.units-view .unit-row > .resident,
  .app-content.units-view .unit-row > .phone,
  .app-content.units-view .unit-row > .unit-debt-cell {
    grid-column: 1 / -1;
  }

  .app-content.units-view .unit-row > .resident {
    display: none;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    justify-items: start;
    gap: 8px;
    min-height: 0;
    padding-left: 0;
  }

  .app-content.units-view .unit-row > .unit-pill {
    display: none;
  }

  .app-content.units-view .unit-cell {
    gap: 8px;
    min-width: 0;
  }

  .app-content.units-view .unit-cell .soft-icon,
  .app-content.units-view .unit-cell .avatar-soft {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .app-content.units-view .unit-cell .soft-icon svg {
    width: 18px;
    height: 18px;
  }

  .app-content.units-view .unit-cell strong,
  .app-content.units-view .unit-debt-cell strong {
    color: #071421;
    font-size: 13px;
    font-weight: 760;
  }

  .app-content.units-view .unit-debt-cell small {
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
  }

  .app-content.units-view .unit-cell small {
    margin-top: 1px;
    color: #536273;
    font-size: 11px;
  }

  .app-content.units-view .unit-row > .resident small {
    margin: 0;
    color: #64748b;
    font-size: 11px;
  }

  .app-content.units-view .unit-debt-cell {
    display: none;
  }

  .app-content.units-view .unit-row > .phone {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    justify-items: start;
    gap: 8px;
    min-height: 0;
    color: #536273;
  }

  .app-content.units-view .unit-row > .phone svg {
    width: 16px;
    height: 16px;
    justify-self: center;
  }

  .app-content.units-view .unit-pill {
    min-height: 21px;
    padding: 0 8px;
    font-size: 10px;
  }

  .app-content.units-view .actions-menu summary {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .app-content.units-view .unit-footer {
    display: none;
  }

  .app-content.units-view #recordModal,
  body:has(.app-content.units-view) #recordModal {
    z-index: 120;
    place-items: start center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal {
    width: min(100%, calc(100vw - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
    overflow: auto;
    transform: none;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal .modal-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 14px 14px 12px;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal .modal-head h3 {
    gap: 10px;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal .modal-head strong {
    font-size: 18px;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal .modal-head small {
    font-size: 11px;
  }

  body:has(.app-content.units-view) #recordModal .vehicle-form-grid.two,
  body:has(.app-content.units-view) #recordModal .vehicle-form-grid.three {
    grid-template-columns: 1fr;
  }

  body:has(.app-content.units-view) #recordModal .vehicle-form-section {
    padding: 12px 14px;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal label,
  body:has(.app-content.units-view) #recordModal .unit-form-modal .vehicle-field-label {
    font-size: 12px;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal input,
  body:has(.app-content.units-view) #recordModal .unit-form-modal select,
  body:has(.app-content.units-view) #recordModal .unit-form-modal textarea,
  body:has(.app-content.units-view) #recordModal .unit-form-modal .status-segment button {
    min-height: 40px;
    font-size: 14px;
  }

  body:has(.app-content.units-view) #recordModal .unit-form-modal > .button.full {
    width: calc(100% - 28px);
    min-height: 44px;
    margin: 4px 14px 14px;
    transform: none;
    font-size: 14px;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 10px;
    overflow-x: hidden;
    padding-inline: 8px !important;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) > .data-table {
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    min-width: 0;
    justify-self: center;
    gap: 10px;
    overflow: visible;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .page-stat-grid,
  .app-content.guests-view .guest-filter-select,
  .app-content.vehicles-view #vehicleExportButton,
  .app-content.residents-view #residentExportButton {
    display: none !important;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .vehicle-list-card,
  .app-content.guests-view .guest-list-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 16px;
    overflow: visible;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .vehicle-toolbar,
  .app-content.guests-view .guest-toolbar,
  .app-content.residents-view .residents-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    overflow: visible;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .vehicle-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 10px;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .vehicle-search input {
    min-height: 34px;
    font-size: 13px;
    font-weight: 650;
  }

  .app-content.vehicles-view #vehicleCreateButton,
  .app-content.guests-view #guestCreateButton {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #1d8ed5;
    border-radius: 10px;
    background: #48a9e6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(72, 169, 230, 0.2);
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .vehicle-table,
  .app-content.residents-view .residents-table,
  .app-content.guests-view .guest-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .app-content:is(.residents-view, .vehicles-view) .vehicle-table-head,
  .app-content.residents-view .residents-table-head,
  .app-content.guests-view .guest-table-head {
    display: none;
  }

  .app-content:is(.residents-view, .vehicles-view) .vehicle-table-body,
  .app-content.residents-view .residents-table-body,
  .app-content.guests-view .guest-table-body {
    display: grid;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 10px 10px max(28px, env(safe-area-inset-bottom));
    align-content: start;
  }

  .app-content.vehicles-view .vehicle-row,
  .app-content.guests-view .guest-row,
  .app-content.residents-view .resident-member-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 9px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 67, 104, 0.04);
  }

  .app-content.vehicles-view .vehicle-identity,
  .app-content.guests-view .guest-person,
  .app-content.residents-view .resident-person-cell {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
    min-width: 0;
  }

  .app-content.vehicles-view .vehicle-mini,
  .app-content.guests-view .guest-person > span,
  .app-content.residents-view .avatar-soft {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .app-content.vehicles-view .vehicle-mobile-summary,
  .app-content.guests-view .guest-mobile-summary,
  .app-content.residents-view .resident-mobile-summary {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
    justify-items: end;
    align-self: start;
    min-width: 82px;
  }

  .app-content.guests-view .guest-mobile-summary {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
    min-width: 104px;
    padding-left: 0;
  }

  .app-content.guests-view .guest-mobile-details {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 4px;
    padding-left: 44px;
  }

  .app-content.vehicles-view .vehicle-mobile-summary strong,
  .app-content.guests-view .guest-mobile-summary strong,
  .app-content.residents-view .resident-mobile-summary strong {
    color: #071421;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }

  .app-content.guests-view .guest-mobile-details small {
    color: #071421;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
  }

  .app-content.vehicles-view .vehicle-cell.with-icon,
  .app-content.residents-view .resident-location-cell {
    grid-column: 1 / -1;
    padding-left: 44px;
  }

  .app-content.vehicles-view .vehicle-cell.with-icon:has(.vehicle-location-icon) {
    gap: 4px;
    padding-left: 38px;
  }

  .app-content.vehicles-view .vehicle-location-icon {
    width: 26px;
    height: 26px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .app-content.vehicles-view .vehicle-location-icon svg {
    width: 18px;
    height: 18px;
  }

  .app-content.vehicles-view .vehicle-cell.resident,
  .app-content.vehicles-view .vehicle-cell:not(.with-icon),
  .app-content.vehicles-view .vehicle-validity-cell,
  .app-content.vehicles-view .vehicle-row > .vehicle-status,
  .app-content.guests-view .guest-type,
  .app-content.guests-view .guest-row > .guest-units,
  .app-content.guests-view .guest-row > strong,
  .app-content.guests-view .guest-card-number,
  .app-content.guests-view .guest-row > .guest-status,
  .app-content.residents-view .resident-member-row > span:not(.resident-mobile-summary),
  .app-content.residents-view .resident-member-row > strong {
    display: none;
  }

  .app-content.vehicles-view .vehicle-row > .actions-menu,
  .app-content.guests-view .guest-actions,
  .app-content.residents-view .resident-member-row > .actions-menu {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .app-content.guests-view .guest-actions {
    min-height: 0;
  }

  .app-content:is(.residents-view, .vehicles-view, .guests-view) .vehicle-footer {
    display: none;
  }

  .app-content.vehicles-view .vehicle-identity strong,
  .app-content.guests-view .guest-person strong,
  .app-content.residents-view .resident-person-cell strong,
  .app-content.residents-view .resident-location-cell strong {
    color: #071421;
    font-size: 13px;
    font-weight: 760;
  }

  .app-content.vehicles-view .vehicle-identity small,
  .app-content.vehicles-view .vehicle-cell small,
  .app-content.guests-view .guest-person small,
  .app-content.residents-view .resident-person-cell small,
  .app-content.residents-view .resident-location-cell small {
    margin-top: 1px;
    color: #536273;
    font-size: 11px;
    font-weight: 500;
  }

  .app-content.vehicles-view #recordModal,
  .app-content.guests-view #recordModal,
  body:has(.app-content.vehicles-view) #recordModal,
  body:has(.app-content.guests-view) #recordModal {
    z-index: 120;
    place-items: start center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal {
    width: min(100%, calc(100vw - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
    overflow: auto;
    transform: none;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal .modal-head,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal .modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: #ffffff;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal .modal-head h3,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal .modal-head h3 {
    min-width: 0;
    gap: 10px;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal .modal-head strong,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal .modal-head strong {
    font-size: 18px;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal .modal-head small,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal .modal-head small {
    font-size: 11px;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-grid.two,
  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-grid.three,
  body:has(.app-content.guests-view) #recordModal .guest-entry-layout,
  body:has(.app-content.guests-view) #recordModal .guest-entry-grid,
  body:has(.app-content.guests-view) #recordModal .guest-entry-footer-fields {
    grid-template-columns: 1fr;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-section,
  body:has(.app-content.guests-view) #recordModal .guest-entry-panel,
  body:has(.app-content.guests-view) #recordModal .guest-entry-summary,
  body:has(.app-content.guests-view) #recordModal .guest-entry-footer-fields {
    padding: 12px 14px;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal label,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal label,
  body:has(.app-content.guests-view) #recordModal .guest-company-toggle,
  body:has(.app-content.guests-view) #recordModal .guest-unit-label {
    font-size: 12px;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal input,
  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal select,
  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal textarea,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal input,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal select,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal textarea {
    min-height: 40px;
    font-size: 14px;
  }

  body:has(.app-content.guests-view) #recordModal .guest-entry-modal .guest-unit-picker {
    max-height: 180px;
  }

  body:has(.app-content.vehicles-view) #recordModal .vehicle-form-modal > .button.full,
  body:has(.app-content.guests-view) #recordModal .guest-entry-modal > .button.full {
    width: calc(100% - 28px);
    min-height: 44px;
    margin: 4px 14px 14px;
    transform: none;
    font-size: 14px;
  }

  .app-content:is(.staff-view, .tasks-view, .shifts-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view) {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 10px;
    overflow-x: hidden;
    padding-inline: 8px !important;
  }

  .app-content:is(.staff-view, .tasks-view, .shifts-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view) > .data-table {
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    min-width: 0;
    justify-self: center;
    overflow: visible;
  }

  .app-content.bookings-view .content-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .app-content.bookings-view .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .app-content.bookings-view #appCreateRecordButton {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
  }

  .app-content:is(.staff-view, .tasks-view, .shifts-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view) .page-stat-grid,
  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view) select,
  .app-content:is(.tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.task-chip-row, .request-chip-row, .communication-chip-row),
  .app-content:is(.staff-view, .tasks-view, .announcements-view, .notifications-view, .amenities-view) :is(.vehicle-export-button, .communication-export, #amenityExportButton, #taskExportButton) {
    display: none !important;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view) :is(.staff-list-card, .task-list-card, .request-list-card, .communication-list-card, .amenity-list-card) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 16px;
    overflow: visible;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view) :is(.staff-list-toolbar, .task-toolbar, .request-toolbar, .communication-toolbar, .amenity-toolbar) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    overflow: visible;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view) :is(.staff-search, .task-search, .request-search, .communication-search, .vehicle-search) {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 10px;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view) :is(.staff-search, .task-search, .request-search, .communication-search, .vehicle-search) input {
    min-height: 34px;
    font-size: 13px;
    font-weight: 650;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view) :is(#staffCreateButton, #taskCreateButton, #requestCreateButton, #communicationCreateButton, #amenityCreateButton, #appCreateRecordButton) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #1d8ed5;
    border-radius: 10px;
    background: #48a9e6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(72, 169, 230, 0.2);
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.staff-table-head, .task-table-head, .request-table-head, .communication-table-head) {
    display: none;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.staff-table, .task-table, .request-table, .communication-table) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.staff-table-body, .task-table-body, .request-table-body, .communication-table-body) {
    display: grid;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 10px 10px max(28px, env(safe-area-inset-bottom));
    align-content: start;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.staff-table-row, .task-table-row, .request-table-row, .communication-table-row) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 9px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 67, 104, 0.04);
  }

  .app-content.tasks-view .task-table-row {
    grid-template-columns: minmax(0, 1fr) auto 42px;
    align-items: center;
    gap: 10px 8px;
    padding: 12px;
    border-radius: 18px;
  }

  .app-content.staff-view .staff-table-row {
    grid-template-columns: minmax(0, 1fr) auto 42px;
    align-items: center;
    gap: 8px;
    min-height: 76px;
    padding: 12px;
    border-radius: 16px;
  }

  .app-content.staff-view .staff-table-row > :is(span:nth-child(2), span:nth-child(3), span:nth-child(4), span:nth-child(5)),
  .app-content.tasks-view .task-table-row > :is(span:nth-child(1), span:nth-child(3), span:nth-child(4), span:nth-child(5), span:nth-child(6), span:nth-child(7)),
  .app-content.service-requests-view .request-table-row > :is(span:nth-child(7)),
  .app-content:is(.announcements-view, .notifications-view) .communication-table-row > :is(span:nth-child(5), span:nth-child(6)) {
    display: none;
  }

  .app-content.staff-view .staff-person,
  .app-content.tasks-view .task-title-cell,
  .app-content.service-requests-view .request-ticket,
  .app-content:is(.announcements-view, .notifications-view) .communication-title {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .app-content.tasks-view .task-title-cell {
    display: grid;
    gap: 3px;
    padding: 0;
  }

  .app-content.tasks-view .task-title-cell .task-mobile-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 2px;
    color: #d97706;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    white-space: normal;
  }

  .app-content.tasks-view .task-title-cell .task-mobile-code em {
    color: #071421;
    font-style: normal;
    font-weight: 600;
  }

  .app-content.staff-view .staff-person {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .app-content.staff-view .staff-person i {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #1f6fd1;
    font-size: 20px;
    font-weight: 900;
  }

  .app-content.staff-view .staff-person > span {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .app-content.staff-view .staff-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #536273;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  .app-content.staff-view .staff-mobile-meta b,
  .app-content.staff-view .staff-mobile-meta em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #536273;
    font-style: normal;
    font-weight: 700;
  }

  .app-content.staff-view .staff-mobile-meta svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #64748b;
  }

  .app-content.staff-view .staff-table-row > span:nth-child(6),
  .app-content.tasks-view .task-table-row > span:nth-child(8),
  .app-content.service-requests-view .request-table-row > span:nth-child(8),
  .app-content:is(.announcements-view, .notifications-view) .communication-table-row > span:nth-child(7),
  .app-content.notifications-view .communication-table-row > span:nth-child(8) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  .app-content.staff-view .staff-table-row > span:nth-child(6) {
    grid-column: 2;
    align-self: center;
  }

  .app-content.tasks-view .task-table-row > span:nth-child(8) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .app-content.tasks-view .task-status {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
  }

  .app-content.staff-view .staff-table-row > span:nth-child(3),
  .app-content.staff-view .staff-table-row > span:nth-child(2),
  .app-content.service-requests-view .request-table-row > span:nth-child(2),
  .app-content.service-requests-view .request-table-row > span:nth-child(3),
  .app-content.service-requests-view .request-table-row > span:nth-child(5),
  .app-content.service-requests-view .request-table-row > span:nth-child(6),
  .app-content:is(.announcements-view, .notifications-view) .communication-table-row > span:nth-child(3),
  .app-content:is(.announcements-view, .notifications-view) .communication-table-row > span:nth-child(4) {
    grid-column: 1 / -1;
    padding-left: 44px;
    color: #536273;
    font-size: 11px;
    font-weight: 650;
  }

  .app-content.tasks-view .task-mobile-start svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #071421;
  }

  .app-content.staff-view .staff-table-row > span:nth-child(2)::before {
    content: none;
  }

  .app-content.tasks-view .task-table-row > span:nth-child(5),
  .app-content.service-requests-view .request-table-row > span:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .app-content.tasks-view .task-table-row > span:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    display: none;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.staff-actions, .task-actions, .request-actions, .communication-actions) {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 0;
  }

  .app-content.tasks-view .task-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .app-content.tasks-view .task-actions .actions-menu summary {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
  }

  .app-content.tasks-view .task-mobile-meta {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #071421;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  .app-content.tasks-view .task-mobile-meta > i {
    display: block;
    width: 1px;
    height: 22px;
    flex: 0 0 auto;
    background: #dce8f3;
  }

  .app-content.tasks-view .task-mobile-meta :is(.task-mobile-assignee, .task-related-cell, .task-mobile-start) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #071421;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  .app-content.tasks-view .task-mobile-meta .task-mobile-assignee {
    flex: 0 1 auto;
  }

  .app-content.tasks-view .task-mobile-meta .task-related-cell {
    flex: 1 1 auto;
  }

  .app-content.tasks-view .task-mobile-meta .task-related-cell {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-content.tasks-view .task-mobile-note {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid #e6edf5;
    color: #071421;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
  }

  .app-content.tasks-view .task-mobile-note b {
    color: #071421;
  }

  .app-content.tasks-view .task-assignee i {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .app-content.tasks-view :is(.task-assignee, .task-related-cell, .task-due) {
    color: #071421;
  }

  .app-content.tasks-view :is(.task-assignee svg, .task-related-cell svg, .task-due svg) {
    color: #071421;
  }

  @media (max-width: 430px) {
    .app-content.tasks-view .task-table-row {
      grid-template-columns: minmax(0, 1fr) auto 40px;
      gap: 10px 7px;
    }

    .app-content.tasks-view .task-title-cell {
      grid-column: 1;
      grid-row: 1;
      min-width: 0;
    }

    .app-content.tasks-view .task-title-cell strong {
      min-width: 0;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .app-content.tasks-view .task-table-row > span:nth-child(5) {
      display: none;
    }

    .app-content.tasks-view .task-actions {
      grid-column: 3;
      grid-row: 1;
      align-self: center;
      justify-self: end;
    }

    .app-content.tasks-view .task-table-row > span:nth-child(8) {
      grid-column: 2;
      grid-row: 1;
      align-self: center;
      justify-self: end;
    }

    .app-content.tasks-view .task-mobile-meta {
      display: flex;
      grid-column: 1 / -1;
      grid-row: 2;
      gap: 7px;
      overflow: hidden;
    }

    .app-content.tasks-view .task-mobile-note {
      grid-column: 1 / -1;
      grid-row: 3;
      margin-top: 2px;
      padding-left: 0;
    }

    .app-content.tasks-view .task-status {
      min-height: 30px;
      padding: 0 9px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
    }

    .app-content.tasks-view .task-actions .actions-menu summary {
      width: 40px;
      height: 40px;
      min-height: 40px;
    }
  }

  .app-content.staff-view .staff-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .app-content.staff-view .staff-actions .actions-menu summary {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.staff-person strong, .task-title-cell strong, .request-ticket strong, .communication-title strong) {
    color: #071421;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.15;
  }

  .app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view) :is(.request-ticket small, .communication-title small) {
    color: #536273;
    font-size: 11px;
    font-weight: 500;
  }

  .app-content.amenities-view .amenity-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
  }

  .app-content.amenities-view .amenity-card {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border-radius: 12px;
  }

  .app-content.amenities-view .amenity-card-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
  }

  .app-content.amenities-view .amenity-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .app-content.amenities-view .amenity-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .app-content.amenities-view .amenity-card-title {
    display: grid;
    gap: 4px;
  }

  .app-content.amenities-view .amenity-card-title div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    order: 2;
  }

  .app-content.amenities-view .amenity-pill {
    margin: 0;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1;
  }

  .app-content.amenities-view .amenity-card-title h4 {
    order: 1;
    min-width: 0;
    font-size: 17px;
    line-height: 1.15;
  }

  .app-content.amenities-view .amenity-card-title p,
  .app-content.amenities-view .amenity-meta,
  .app-content.amenities-view .amenity-availability {
    display: none;
  }

  .app-content.amenities-view .amenity-next {
    margin-top: 2px;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.2;
  }

  .app-content.amenities-view .amenity-next svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .app-content.amenities-view .amenity-card-actions {
    display: none;
  }

  .app-content.bookings-view.booking-calendar-table,
  .app-content.bookings-view > .booking-calendar-table,
  .booking-calendar-table {
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: none;
    overflow-x: hidden;
  }

  .booking-calendar-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    overflow: hidden;
  }

  .booking-calendar-controls label {
    box-sizing: border-box;
    display: grid;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .booking-calendar-controls :is(label, select, input, button) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 38px;
    font-size: 16px;
  }

  .booking-calendar-controls input[type="date"] {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    padding-inline: 12px;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
  }

  .booking-calendar-controls input[type="date"]::-webkit-date-and-time-value {
    width: 100%;
    text-align: center;
  }

  .booking-timetable-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    overflow-x: hidden;
  }

  .booking-timetable {
    display: none;
  }

  .booking-mobile-agenda {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .booking-week-nav {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 82px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e3edf7;
    border-radius: 14px;
    background: #ffffff;
  }

  .booking-week-nav strong {
    min-width: 0;
    color: #071421;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
  }

  .booking-week-nav .button {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  .booking-day-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76px, 1fr);
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .booking-day-tabs button {
    display: grid;
    gap: 2px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid #dbe8f4;
    border-radius: 12px;
    background: #ffffff;
    color: #071421;
    text-align: left;
  }

  .booking-day-tabs button.active {
    border-color: #7cc5ec;
    background: #eaf8ff;
    color: #1684c7;
  }

  .booking-day-tabs strong {
    font-size: 14px;
    font-weight: 850;
    line-height: 1.1;
  }

  .booking-day-tabs span {
    color: #64758a;
    font-size: 12px;
    font-weight: 700;
  }

  .booking-mobile-day-panel {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .booking-mobile-day-panel h4 {
    margin: 0;
    color: #071421;
    font-size: 17px;
    font-weight: 850;
  }

  .booking-mobile-slots {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .booking-mobile-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
    font: inherit;
    text-align: left;
  }

  .booking-mobile-slot span {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .booking-mobile-slot strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #071421;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.15;
  }

  .booking-mobile-slot small {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #64758a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  .booking-mobile-slot b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
  }

  .booking-mobile-slot.available {
    border: 1px dashed #86d69d;
    background: #eefbf2;
  }

  .booking-mobile-slot.available b {
    background: #dcfce7;
    color: #16a34a;
  }

  .booking-mobile-slot.occupied {
    border: 1px solid #f6c7d2;
    background: #fff1f5;
  }

  .booking-mobile-slot.occupied b {
    background: #ffe4eb;
    color: #be123c;
  }

  body:has(.app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view)) #recordModal {
    z-index: 120;
    place-items: start center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  body:has(.app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view)) #recordModal .modal {
    width: min(100%, calc(100vw - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
    overflow: auto;
    transform: none;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    grid-template-columns: none !important;
  }

  body:has(.app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view)) #recordModal .modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: #ffffff;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal,
  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal * {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-x: hidden;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal .modal-head {
    padding: 14px 14px 10px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal .modal-head h3 {
    gap: 10px;
  }

  body:has(.app-content.bookings-view) #recordModal .modal-title-icon.booking {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: 0 0 42px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal .modal-head strong {
    font-size: 20px;
    line-height: 1.05;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal .modal-head small {
    font-size: 11px;
    line-height: 1.2;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-modal .icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry {
    gap: 10px;
    padding: 0 12px 12px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-steps {
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 0;
    font-size: 13px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-steps i {
    display: none;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-main fieldset {
    gap: 9px;
    padding: 12px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-main legend,
  body:has(.app-content.bookings-view) #recordModal .booking-section-title h4,
  body:has(.app-content.bookings-view) #recordModal .booking-summary-card h4 {
    font-size: 15px;
    line-height: 1.15;
  }

  body:has(.app-content.bookings-view) #recordModal :is(.booking-select-line select, .booking-date-line input, .booking-owner-grid select, .booking-stepper input, .booking-bottom-grid textarea) {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-owner-grid,
  body:has(.app-content.bookings-view) #recordModal .booking-bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-selected-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-selected-card em {
    grid-column: 2;
    justify-self: start;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-owner-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-owner-card small {
    grid-column: 2;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-summary-card {
    order: 2;
    gap: 10px;
    padding: 12px;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-summary-card dl div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body:has(.app-content.bookings-view) #recordModal .booking-slot-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 -12px -12px;
    padding: 10px 12px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #e5edf6;
    background: rgba(255, 255, 255, 0.96);
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body:has(.app-content.bookings-view) #recordModal .booking-entry-footer .button,
  body:has(.app-content.bookings-view) #recordModal .booking-entry-footer .button.primary {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal :is(.modal-fields, .task-form-section, .task-form-grid, label, input, select, textarea, .task-segment) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-head {
    width: auto;
    max-width: none;
    justify-content: space-between;
    flex: 0 0 auto;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-head h3 > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-head strong {
    font-size: 20px;
    line-height: 1.05;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-head small {
    font-size: 11px;
    line-height: 1.2;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .icon-button {
    position: static;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .modal-fields {
    display: grid;
    flex: 1 1 auto;
    padding: 0 10px 12px;
    overflow-x: hidden;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal :is(.modal-head, .modal-fields, .modal-message, .task-cancel-button, .task-save-new-button, #saveRecordButton) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body:has(.app-content.tasks-view) #recordModal .task-form-section {
    padding: 12px;
    border-radius: 12px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-segment {
    overflow: hidden;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-segment button {
    min-width: 0;
    padding-inline: 6px;
    font-size: 12px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-toggle-row {
    display: inline-grid;
    grid-template-columns: 18px max-content;
    justify-content: start;
    justify-self: start;
    align-items: center;
    width: auto;
    max-width: max-content;
    gap: 8px;
    margin-top: 10px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-toggle-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-toggle-row span {
    white-space: nowrap;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-attachment-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal :is(.task-upload-box, .task-checklist) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal :is(.task-checklist span, .task-checklist > button) {
    grid-template-columns: 18px minmax(0, 1fr) 26px 26px;
    gap: 6px;
    padding: 0 8px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-checklist input[name="checklistItems"] {
    min-width: 0;
    padding-inline: 4px;
    font-size: 12px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-checklist button {
    min-width: 0;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-repeat-panel {
    padding: 12px;
    gap: 8px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-weekday-picker {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-weekday-picker label {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal .task-weekday-picker span {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    padding: 0 4px;
    font-size: 12px;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal > :is(.task-cancel-button, .task-save-new-button, #saveRecordButton.button.full) {
    width: calc(100% - 20px) !important;
    min-height: 42px;
    margin: 8px 10px;
    transform: none !important;
  }

  body:has(.app-content.tasks-view) #recordModal .task-entry-modal > :is(.task-cancel-button, .task-save-new-button) {
    display: none !important;
  }

  body:has(.app-content.staff-view) #recordModal .staff-permission-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body:has(.app-content.staff-view) #recordModal .staff-permission-card {
    grid-template-columns: 16px 24px minmax(0, 1fr);
    min-height: 36px;
    gap: 8px;
    padding: 7px 10px;
  }

  body:has(.app-content.staff-view) #recordModal .staff-permission-card input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0;
  }

  body:has(.app-content.staff-view) #recordModal .staff-permission-card span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  body:has(.app-content.staff-view) #recordModal .staff-permission-card svg {
    width: 14px;
    height: 14px;
  }

  body:has(.app-content.staff-view) #recordModal .staff-permission-card strong {
    font-size: 12px;
  }

  body:has(.app-content:is(.staff-view, .tasks-view, .service-requests-view, .announcements-view, .notifications-view, .amenities-view, .bookings-view)) #recordModal :is(.vehicle-form-grid.two, .vehicle-form-grid.three, .task-form-grid, .finance-fields-grid, .modal-fields) {
    grid-template-columns: 1fr;
  }
}

.unit-tab-panel:not(.active) {
  display: none;
}

.unit-finance-panel-toggle {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #071421;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.unit-finance-panel-toggle > span {
  color: #071421;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.unit-finance-panel-toggle > small {
  display: none;
  color: #405168;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.unit-finance-segments {
  display: none;
}

.unit-resident-inline {
  display: none;
}

[data-unit-panel="ownerships"] #ownershipSearchInput,
[data-unit-panel="notes"] #unitNoteSearchInput {
  display: none !important;
}

#paymentCreateForm.is-unit-scoped #paymentBuildingSelect,
#paymentCreateForm.is-unit-scoped .payment-unit-toolbar {
  display: none !important;
}

#paymentCreateForm.is-unit-scoped .finance-modal-section:has(#paymentBuildingSelect) {
  display: none !important;
}

#paymentCreateForm.is-unit-scoped #paymentBuildingSelect,
#paymentCreateForm.is-unit-scoped #paymentBuildingSelect:required {
  pointer-events: none;
}

#paymentCreateForm.is-unit-scoped .finance-modal-section:has(#paymentBuildingSelect) .finance-section-title p {
  display: none;
}

#paymentCreateForm.is-unit-scoped .finance-modal-section:has(#paymentBuildingSelect) .finance-fields-grid.single {
  display: block;
}

body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal {
  width: min(720px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

.payment-scoped-unit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  background: #f8fbff;
  color: #071421;
}

.payment-scoped-unit input {
  display: none;
}

.payment-scoped-unit > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf7ff;
  color: #238bd2;
}

.payment-scoped-unit svg {
  width: 22px;
  height: 22px;
}

.payment-scoped-unit strong,
.payment-scoped-unit small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-scoped-unit strong {
  font-size: 15px;
  font-weight: 850;
}

.payment-scoped-unit small {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  body:has(#unitDetail:not(.hidden)) #recordModal {
    position: fixed !important;
    inset: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    place-items: start center !important;
    padding: calc(max(8px, env(safe-area-inset-top)) + 6px) 8px max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 18px !important;
    overflow: auto !important;
    transform: none !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal *,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal :is(.modal-fields, .vehicle-form-grid, .vehicle-form-section, label, input, select, textarea, .status-segment) {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal .modal-head {
    padding: 12px 14px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal .vehicle-form-grid.two,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal .vehicle-form-grid.three {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal input,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal select,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal textarea,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal .status-segment button {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 14px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-form-modal > .button.full {
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
    margin: 4px 14px 14px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    scroll-padding-bottom: max(140px, calc(var(--app-keyboard-inset, 0px) + 28px)) !important;
    transform: none !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal *,
  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal :is(.modal-fields, .vehicle-form-grid, .family-form-section, label, input, select, textarea, .family-type-grid, .family-type-card) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .modal-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dce8f3 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .modal-head h3 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .modal-head h3 > span:last-child {
    min-width: 0 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .modal-head strong {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .modal-head small {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .icon-button {
    position: static !important;
    flex: 0 0 auto !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .modal-fields {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    padding-bottom: max(12px, var(--app-keyboard-inset, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .family-form-section {
    width: 100% !important;
    padding: 16px 14px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .vehicle-form-grid.two,
  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .vehicle-form-grid.three {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal :is(label, input, select, textarea) {
    width: 100% !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal :is(input, select, textarea),
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal :is(input, select, textarea) {
    font-size: 16px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal :is(input[type="date"], input[data-date-placeholder="true"]) {
    display: block !important;
    max-width: 100% !important;
    -webkit-appearance: none;
    appearance: none;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal .family-type-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .family-form-modal > .button.full {
    position: static !important;
    flex: 0 0 auto !important;
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
    margin: 4px 14px 14px !important;
    transform: none !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal *,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal :is(.modal-fields, .vehicle-form-grid, .vehicle-form-section, label, input, select, textarea) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .modal-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dce8f3 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .modal-head h3 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .modal-head h3 > span:last-child {
    min-width: 0 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .modal-head strong {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .modal-head small {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .icon-button {
    position: static !important;
    flex: 0 0 auto !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .modal-fields {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 0 max(12px, var(--app-keyboard-inset, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal.note-form-modal .modal-fields {
    gap: 12px !important;
    padding: 14px 14px max(14px, calc(var(--app-keyboard-inset, 0px) + 14px)) !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .vehicle-form-section {
    width: 100% !important;
    padding: 16px 14px !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .vehicle-form-grid.two,
  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal .vehicle-form-grid.three {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal :is(label, input, select, textarea) {
    width: 100% !important;
  }

  body:has(#unitDetail:not(.hidden)) #recordModal .unit-history-form-modal > .button.full {
    position: static !important;
    flex: 0 0 auto !important;
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
    margin: 4px 14px 14px !important;
    transform: none !important;
  }

  #familyMembersModal {
    place-items: start center !important;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
  }

  #familyMembersModal .family-members-modal {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    max-height: calc(var(--app-visual-viewport-height, 100dvh) - 16px) !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-padding-bottom: max(140px, calc(var(--app-keyboard-inset, 0px) + 28px)) !important;
    transform: none !important;
  }

  #familyMembersModal .family-members-modal *,
  #familyMembersModal :is(.family-members-hero, .family-members-workspace, .family-members-list-panel, .family-member-list, .family-member-card, .family-member-form, .modal-fields, label, input, select, textarea) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #familyMembersModal .family-members-hero {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 38px !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
  }

  #familyMembersModal .family-members-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  #familyMembersModal .family-members-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  #familyMembersModal .family-members-title-row {
    gap: 6px !important;
  }

  #familyMembersModal .family-members-title-row h3 {
    width: 100% !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  #familyMembersModal .family-members-title-row span {
    min-height: 24px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  #familyMembersModal .family-members-hero p:not(.eyebrow) {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  #familyMembersModal .family-members-hero .button.primary {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  #familyMembersModal .family-members-hero .icon-button {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    justify-self: end !important;
    border-radius: 12px !important;
  }

  #familyMembersModal .family-members-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 12px !important;
    padding-bottom: max(12px, var(--app-keyboard-inset, 0px)) !important;
  }

  #familyMembersModal .family-members-list-panel,
  #familyMembersModal .family-member-form {
    width: 100% !important;
    min-height: 0 !important;
    border-radius: 14px !important;
  }

  #familyMembersModal .family-members-list-head {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    padding: 14px 14px 10px !important;
  }

  #familyMembersModal .family-members-list-head h4,
  #familyMembersModal .family-member-form h4 {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  #familyMembersModal .family-members-list-head span,
  #familyMembersModal .family-members-footer {
    font-size: 12px !important;
  }

  #familyMembersModal .family-member-list {
    gap: 8px !important;
    max-height: none !important;
    padding: 0 14px 12px !important;
    overflow: visible !important;
  }

  #familyMembersModal .family-member-card {
    grid-template-columns: 42px minmax(0, 1fr) 38px !important;
    gap: 9px !important;
    min-height: 0 !important;
    padding: 12px !important;
    border: 1px solid #e3edf6 !important;
    border-radius: 14px !important;
  }

  #familyMembersModal .family-member-card .avatar-soft {
    width: 42px !important;
    height: 42px !important;
    font-size: 14px !important;
  }

  #familyMembersModal .family-member-card-title {
    display: grid !important;
    gap: 5px !important;
  }

  #familyMembersModal .family-member-card-title strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  #familyMembersModal .family-member-badges em {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  #familyMembersModal .family-member-meta {
    display: grid !important;
    gap: 5px !important;
  }

  #familyMembersModal .family-member-meta small {
    gap: 6px !important;
    color: #071421 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  #familyMembersModal .family-member-meta svg {
    width: 15px !important;
    height: 15px !important;
  }

  #familyMembersModal .family-member-card .actions-menu {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  #familyMembersModal .family-member-card .actions-menu summary {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;
  }

  #familyMembersModal .family-members-footer {
    padding: 10px 14px !important;
  }

  #familyMembersModal .family-member-form {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  #familyMembersModal .family-member-form-head {
    align-items: center !important;
  }

  #familyMembersModal #cancelFamilyMemberEditButton {
    display: inline-flex !important;
    min-height: 32px !important;
    font-size: 12px !important;
  }

  #familyMembersModal #cancelFamilyMemberEditButton.hidden {
    display: none !important;
  }

  #familyMembersModal .family-member-form .modal-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #familyMembersModal .family-member-form .modal-fields label {
    display: grid !important;
    gap: 6px !important;
    grid-column: auto !important;
    color: #071421 !important;
    font-size: 13px !important;
  }

  #familyMembersModal .family-member-form :is(input, select, textarea) {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }

  #familyMembersModal .family-member-form .checkbox-label {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  #familyMembersModal .family-member-form .checkbox-label input {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
  }

  #familyMembersModal .family-member-form .checkbox-label span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  #familyMembersModal .family-member-form .checkbox-label small {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #familyMembersModal .family-member-form-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }

  #familyMembersModal .family-member-form-actions .button {
    width: 100% !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  #collectionModal,
  #paymentCreateModal {
    place-items: start center !important;
    padding: 8px !important;
    overflow-x: hidden !important;
    max-width: 100dvw !important;
  }

  #collectionModal .collection-flow-modal,
  #paymentCreateModal .finance-flow-modal {
    width: 100% !important;
    max-width: calc(100dvw - 16px) !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  #collectionModal .collection-flow-modal *,
  #paymentCreateModal .finance-flow-modal * {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #collectionModal .collection-flow-modal .modal-head,
  #paymentCreateModal .finance-flow-modal .modal-head {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  #collectionModal .collection-flow-modal .modal-head h3,
  #paymentCreateModal .finance-flow-modal .modal-head h3 {
    gap: 10px !important;
  }

  #collectionModal .collection-flow-modal .modal-head strong,
  #paymentCreateModal .finance-flow-modal .modal-head strong {
    font-size: 18px !important;
    line-height: 1.08 !important;
  }

  #collectionModal .collection-flow-modal .modal-head small,
  #paymentCreateModal .finance-flow-modal .modal-head small {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #collectionModal .collection-flow-modal .modal-title-icon,
  #paymentCreateModal .finance-flow-modal .modal-title-icon,
  #collectionModal .collection-flow-modal .finance-section-title > span,
  #paymentCreateModal .finance-flow-modal .finance-section-title > span {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  #collectionModal .collection-flow-modal .icon-button,
  #paymentCreateModal .finance-flow-modal .icon-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  #collectionModal .collection-flow-modal .finance-modal-section,
  #paymentCreateModal .finance-flow-modal .finance-modal-section {
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  #collectionModal .collection-flow-modal .finance-section-title,
  #paymentCreateModal .finance-flow-modal .finance-section-title {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #collectionModal .collection-flow-modal .finance-section-title h4,
  #paymentCreateModal .finance-flow-modal .finance-section-title h4 {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  #collectionModal .collection-flow-modal .finance-section-title p,
  #paymentCreateModal .finance-flow-modal .finance-section-title p {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #collectionModal .collection-flow-modal .finance-fields-grid,
  #collectionModal .collection-flow-modal .finance-fields-grid.two,
  #paymentCreateModal .finance-flow-modal .finance-fields-grid,
  #paymentCreateModal .finance-flow-modal .finance-fields-grid.two {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #collectionModal .collection-flow-modal label,
  #paymentCreateModal .finance-flow-modal label {
    gap: 5px !important;
    font-size: 12px !important;
  }

  #collectionModal .collection-flow-modal input,
  #collectionModal .collection-flow-modal select,
  #collectionModal .collection-flow-modal textarea,
  #paymentCreateModal .finance-flow-modal input,
  #paymentCreateModal .finance-flow-modal select,
  #paymentCreateModal .finance-flow-modal textarea {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
  }

  #collectionModal .collection-flow-modal textarea,
  #paymentCreateModal .finance-flow-modal textarea {
    min-height: 76px !important;
  }

  #collectionModal .collection-flow-modal .assignment-list,
  #paymentCreateModal .finance-flow-modal .assignment-list {
    max-height: 210px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  #collectionModal .collection-flow-modal .modal-message,
  #paymentCreateModal .finance-flow-modal .modal-message {
    padding: 0 14px 10px !important;
  }

  #collectionModal .collection-flow-modal > .button.full,
  #paymentCreateModal .finance-flow-modal > .button.full {
    display: flex !important;
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 2px auto max(14px, env(safe-area-inset-bottom)) !important;
    align-self: center !important;
    justify-self: center !important;
    border-radius: 12px !important;
  }

  .unit-detail {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    gap: 10px;
    padding-inline: 8px !important;
  }

  .unit-detail * {
    min-width: 0;
    box-sizing: border-box;
  }

  .unit-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    padding: 14px;
    border: 1px solid #dce8f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 67, 104, 0.05);
  }

  .unit-detail-main {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .unit-detail-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: #edf7ff;
    color: #238bd2;
  }

  .unit-detail-icon svg {
    width: 30px;
    height: 30px;
  }

  .unit-detail-main .eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.1;
  }

  .unit-detail-main h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .unit-detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .unit-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
  }

  .unit-pill.empty {
    background: #f4e8ff;
    color: #a855f7;
  }

  .unit-pill.occupied,
  .unit-pill.debt-open,
  .unit-pill.debt-none {
    background: #dcfce7;
    color: #21a653;
  }

  .unit-detail-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: #071421;
    font-size: 13px;
    font-weight: 750;
  }

  .unit-detail-location svg {
    width: 17px;
    height: 17px;
  }

  .unit-detail-person {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 14px;
    background: #f8fbff;
  }

  .unit-detail-person:empty {
    display: none;
  }

  .unit-detail-person .avatar-soft.large {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .unit-detail-person strong,
  .unit-detail-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .unit-detail-person strong {
    color: #071421;
    font-size: 14px;
    font-weight: 850;
  }

  .unit-detail-person small {
    color: #071421;
    font-size: 12px;
    font-weight: 650;
  }

  .unit-detail-actions {
    display: grid;
  }

  .unit-detail-actions .button {
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }

  .unit-detail .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  .finance-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 10px;
    border: 1px solid #dce8f3;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 67, 104, 0.04);
  }

  .finance-card-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: #edf7ff;
    color: #238bd2;
  }

  .finance-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .finance-card span:not(.finance-card-icon) {
    display: block;
    color: #071421;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
  }

  .finance-card strong {
    display: block;
    margin-top: 3px;
    color: #071421;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
  }

  .finance-card.teal {
    grid-column: 1 / -1;
  }

  .finance-card.wide {
    grid-column: 1 / -1;
  }

  .unit-detail-workspace,
  .unit-detail-left,
  .unit-tab-panel,
  .finance-ledger-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    overflow: visible;
  }

  .unit-detail .unit-detail-workspace,
  .unit-detail .unit-detail-left,
  .unit-detail .unit-tab-panel.active,
  .unit-detail .finance-ledger-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .unit-detail .unit-detail-workspace,
  .unit-detail .unit-detail-left,
  .unit-detail .unit-tab-panel.active {
    min-height: 0 !important;
    height: auto !important;
    align-content: start !important;
    align-items: start !important;
  }

  .unit-detail .unit-detail-left {
    grid-template-rows: auto auto !important;
  }

  .unit-detail .unit-tab-panel.active {
    gap: 10px !important;
  }

  .unit-detail .unit-tab-panel.active {
    padding: 0 !important;
  }

  .unit-detail .finance-ledger-grid .history-panel,
  .unit-detail .finance-ledger-grid .unit-closed-debt-panel {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .unit-detail .finance-ledger-grid .history-panel:nth-of-type(n + 4) {
    display: none !important;
  }

  .unit-detail .finance-ledger-grid [data-unit-finance-panel="debts"] {
    order: 1;
  }

  .unit-detail .finance-ledger-grid [data-unit-finance-panel="collections"] {
    order: 2;
  }

  .unit-detail .finance-ledger-grid [data-unit-finance-panel="closed-debts"] {
    order: 3;
  }

  .unit-detail .unit-finance-segments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center !important;
    align-content: center !important;
    gap: 6px;
    width: 100%;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 4px;
    border: 1px solid #dce8f3;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden !important;
  }

  .unit-detail .unit-finance-segments button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px;
    max-height: 36px !important;
    aspect-ratio: auto !important;
    padding: 0 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #071421;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
    transform: none !important;
  }

  .unit-detail .unit-finance-segments button.is-selected {
    background: #eaf7ff;
    color: #137fc4;
    box-shadow: inset 0 0 0 1px #75c6f3;
  }

  .unit-detail-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 8px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .unit-detail-tabs::-webkit-scrollbar {
    display: none;
  }

  .unit-detail-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dce8f3;
    border-radius: 999px;
    background: #ffffff;
    color: #071421;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .unit-detail-tabs button.active {
    border-color: #4aaee8;
    background: #eaf7ff;
    color: #137fc4;
  }

  .unit-detail-tabs svg {
    width: 17px;
    height: 17px;
  }

  .unit-detail-tabs span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: #eef3f8;
    color: #071421;
    font-size: 11px;
  }

  .history-panel {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #dce8f3;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
  }

  .unit-detail .history-panel {
    display: grid !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .history-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
  }

  .history-head h3 {
    margin: 0;
    color: #071421;
    font-size: 18px;
    line-height: 1.2;
  }

  .unit-finance-panel-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #071421;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }

  .unit-finance-panel-toggle > span {
    color: #071421;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
  }

  .unit-finance-panel-toggle > small {
    display: none;
    justify-self: end;
    color: #071421;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
  }

  .unit-finance-panel:not(.is-expanded) {
    display: none !important;
  }

  .unit-detail [data-unit-finance-panel][data-expanded="false"] {
    display: none !important;
  }

  .unit-finance-panel.is-expanded {
    display: grid !important;
  }

  .unit-finance-panel.is-expanded .unit-finance-panel-toggle > small {
    display: none;
  }

  .unit-detail [data-unit-finance-panel][data-expanded="true"] .unit-finance-panel-toggle > small {
    display: none;
  }

  .history-head .button {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .history-head .header-button-spacer {
    display: none;
  }

  .unit-detail .data-table {
    display: grid;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .unit-detail .history-panel .data-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .unit-detail [data-unit-panel="families"] .history-head .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .unit-detail [data-unit-panel="families"] #familySearchInput {
    display: none !important;
  }

  .unit-detail .families-history-table {
    display: grid !important;
    gap: 8px;
  }

  .unit-detail .families-history-table .admin-row.inline-action {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 5px 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border: 1px solid #e3edf6;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
  }

  .unit-detail .families-history-table .admin-row.inline-action::after {
    content: attr(data-family-date-range);
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    color: #071421;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
  }

  .unit-detail .families-history-table .admin-row.inline-action::before {
    content: attr(data-family-status-label);
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
  }

  .unit-detail .families-history-table .admin-row.inline-action[data-family-status="passive"]::before {
    background: #ffedd5;
    color: #ea580c;
  }

  .unit-detail .families-history-table .admin-row.header.inline-action {
    display: none !important;
  }

  .unit-detail .families-history-table .admin-row.inline-action > span {
    display: none !important;
  }

  .unit-detail .families-history-table .admin-row.inline-action > span:nth-child(2),
  .unit-detail .families-history-table .admin-row.inline-action > span:nth-child(3) {
    display: block !important;
    grid-column: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #071421;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .unit-detail .families-history-table .admin-row.inline-action > span:nth-child(2) {
    grid-row: 1;
    font-size: 15px;
    font-weight: 850;
    padding-right: 4px;
  }

  .unit-detail .families-history-table .admin-row.inline-action > span:nth-child(3) {
    grid-row: 2;
    font-size: 13px;
    font-weight: 700;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .unit-detail .families-history-table .admin-row.inline-action > span::before {
    content: none !important;
  }

  .unit-detail .families-history-table .row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    align-self: start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding-top: 4px;
  }

  .unit-detail .families-history-table .row-actions .text-button {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .unit-detail .unit-vehicle-detail-table,
  .unit-detail .ownerships-history-table,
  .unit-detail .notes-history-table {
    display: grid !important;
    gap: 8px;
  }

  .unit-detail .unit-vehicle-detail-table .admin-row.header.inline-action,
  .unit-detail .ownerships-history-table .admin-row.header.inline-action,
  .unit-detail .notes-history-table .admin-row.header.inline-action {
    display: none !important;
  }

  .unit-detail .unit-vehicle-detail-table .admin-row.inline-action,
  .unit-detail .ownerships-history-table .admin-row.inline-action,
  .unit-detail .notes-history-table .admin-row.inline-action {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e3edf6;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
  }

  .unit-detail .unit-vehicle-detail-table .admin-row.inline-action > span,
  .unit-detail .ownerships-history-table .admin-row.inline-action > span,
  .unit-detail .notes-history-table .admin-row.inline-action > span {
    display: grid !important;
    grid-template-columns: minmax(72px, 0.55fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #071421;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .unit-detail .unit-vehicle-detail-table .admin-row.inline-action > span::before,
  .unit-detail .ownerships-history-table .admin-row.inline-action > span::before,
  .unit-detail .notes-history-table .admin-row.inline-action > span::before {
    content: attr(data-label);
    color: #071421;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
  }

  .unit-detail .unit-vehicle-detail-table .admin-row.inline-action > span:first-child,
  .unit-detail .ownerships-history-table .admin-row.inline-action > span:first-child,
  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(2) {
    display: block !important;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
  }

  .unit-detail .unit-vehicle-detail-table .admin-row.inline-action > span:first-child::before,
  .unit-detail .ownerships-history-table .admin-row.inline-action > span:first-child::before,
  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(2)::before {
    content: none;
  }

  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(1),
  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(4),
  .unit-detail .ownerships-history-table .admin-row.inline-action > span:nth-child(3) {
    display: none !important;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action {
    position: relative;
    padding-top: 14px;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action::after {
    content: attr(data-owner-status-label);
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action[data-owner-status="passive"]::after {
    background: #ffedd5;
    color: #ea580c;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action > span:first-child {
    padding-right: 72px;
  }

  .unit-detail .unit-vehicle-detail-table .row-actions,
  .unit-detail .ownerships-history-table .row-actions,
  .unit-detail .notes-history-table .row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding-top: 4px;
  }

  .unit-detail .unit-vehicle-detail-table .row-actions .text-button,
  .unit-detail .ownerships-history-table .row-actions .text-button,
  .unit-detail .notes-history-table .row-actions .text-button {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 4px 10px;
    align-items: start;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action > span {
    display: block !important;
    grid-template-columns: none !important;
    min-width: 0;
    color: #071421;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action > span::before {
    content: none !important;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action > span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    padding-right: 70px;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap !important;
  }

  .unit-detail .ownerships-history-table .admin-row.inline-action > span:nth-child(3) {
    display: none !important;
  }

  .unit-detail .ownerships-history-table .row-actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .unit-detail .notes-history-table .admin-row.inline-action {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px;
  }

  .unit-detail .notes-history-table .admin-row.inline-action > span {
    display: none !important;
    grid-template-columns: none !important;
  }

  .unit-detail .notes-history-table .admin-row.inline-action > span::before {
    content: none !important;
  }

  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(2),
  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(3) {
    display: block !important;
    min-width: 0;
    color: #071421;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(2) {
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
  }

  .unit-detail .notes-history-table .admin-row.inline-action > span:nth-child(3) {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
  }

  .unit-detail .notes-history-table .row-actions {
    grid-column: 1;
    grid-row: 3;
  }

  .unit-detail #unitCollectionTable,
  .unit-detail #unitClosedDebtTable,
  .unit-detail #unitDebtTable {
    display: block !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
  }

  .unit-detail #unitCollectionTable.is-empty,
  .unit-detail #unitClosedDebtTable.is-empty,
  .unit-detail #unitDebtTable.is-empty {
    border-radius: 14px !important;
    background: transparent !important;
  }

  .unit-detail .data-table .admin-row.header {
    display: none;
  }

  .unit-detail .data-table .admin-row.no-actions,
  .unit-detail #unitCollectionTable .admin-row.no-actions,
  .unit-detail #unitClosedDebtTable .admin-row.no-actions,
  .unit-detail #unitDebtTable .admin-row.no-actions {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    padding: 0;
    border: 1px solid #e3edf6;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
  }

  .unit-detail .data-table .admin-row.no-actions + .admin-row.no-actions {
    margin-top: 8px;
  }

  .unit-detail .data-table .admin-row.no-actions span,
  .unit-detail #unitCollectionTable .admin-row.no-actions > span,
  .unit-detail #unitClosedDebtTable .admin-row.no-actions > span,
  .unit-detail #unitDebtTable .admin-row.no-actions > span {
    display: grid;
    grid-template-columns: minmax(78px, 0.75fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-bottom: 1px solid #edf3f8;
    color: #071421;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .unit-detail .data-table .admin-row.no-actions span:last-child {
    border-bottom: 0;
  }

  .unit-detail .data-table .admin-row.no-actions span::before {
    content: attr(data-label);
    color: #071421;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
  }

  .unit-detail #unitCollectionTable .admin-row.unit-collection-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .unit-detail #unitCollectionTable .admin-row.unit-collection-row > span {
    display: block;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .unit-detail #unitCollectionTable .admin-row.unit-collection-row > span::before {
    content: none;
  }

  .unit-detail #unitCollectionTable .admin-row.unit-collection-row > span:nth-child(1) {
    font-weight: 750;
  }

  .unit-detail #unitCollectionTable .admin-row.unit-collection-row > span:nth-child(2) {
    justify-self: end;
    font-size: 15px;
    font-weight: 900;
  }

  .unit-detail #unitCollectionTable .admin-row.unit-collection-row > span:nth-child(n + 3) {
    display: none !important;
  }

  .unit-detail #unitDebtTable .admin-row.unit-open-debt-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 0.8fr) auto !important;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

  .unit-detail #unitDebtTable .admin-row.unit-open-debt-row > span {
    display: block;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    color: #071421;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .unit-detail #unitDebtTable .admin-row.unit-open-debt-row > span::before {
    content: none;
  }

  .unit-detail #unitDebtTable .admin-row.unit-open-debt-row > span:nth-child(3) {
    justify-self: end;
    font-size: 14px;
    font-weight: 900;
  }

  .unit-detail #unitDebtTable .admin-row.unit-open-debt-row > span:nth-child(n + 4) {
    display: none !important;
  }

  .unit-detail #unitClosedDebtTable .admin-row.unit-closed-debt-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 0.8fr) auto !important;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

  .unit-detail #unitClosedDebtTable .admin-row.unit-closed-debt-row > span {
    display: block;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    color: #071421;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .unit-detail #unitClosedDebtTable .admin-row.unit-closed-debt-row > span::before {
    content: none;
  }

  .unit-detail #unitClosedDebtTable .admin-row.unit-closed-debt-row > span:nth-child(3) {
    justify-self: end;
    font-size: 14px;
    font-weight: 900;
  }

  .unit-detail #unitClosedDebtTable .admin-row.unit-closed-debt-row > span:nth-child(n + 4) {
    display: none !important;
  }

  .unit-detail .empty-state {
    margin: 0;
    padding: 12px;
    border: 1px dashed #dce8f3;
    border-radius: 14px;
    color: #071421;
    font-size: 13px;
    font-weight: 650;
  }

  .unit-detail .data-table.is-empty .empty-state {
    min-height: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 430px) {
  .unit-detail-main {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .unit-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .unit-detail-icon svg {
    width: 25px;
    height: 25px;
  }

  .unit-detail-main h3 {
    font-size: 23px;
  }

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

  .unit-detail .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .finance-card.teal {
    grid-column: 1 / -1;
  }

  .finance-card.wide {
    grid-column: 1 / -1;
  }

  .finance-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    min-height: 58px;
    padding: 9px;
  }

  .finance-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .finance-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .finance-card span:not(.finance-card-icon) {
    font-size: 10px;
    line-height: 1.15;
  }

  .finance-card strong {
    font-size: 14px;
    line-height: 1.1;
  }
}

@media (max-width: 780px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    transform: none !important;
  }

  #collectionModal,
  #paymentCreateModal {
    width: 100dvw !important;
    max-width: 100dvw !important;
    overflow-x: hidden !important;
    touch-action: pan-y !important;
  }

  #collectionModal .collection-flow-modal,
  #paymentCreateModal .finance-flow-modal {
    width: calc(100dvw - 16px) !important;
    max-width: calc(100dvw - 16px) !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  #collectionModal .collection-flow-modal :is(input, select, textarea),
  #paymentCreateModal .finance-flow-modal :is(input, select, textarea) {
    display: block !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    transform: none !important;
    touch-action: manipulation !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  #collectionModal .collection-flow-modal label:has(input[name="collectionDate"]) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #collectionModal input[name="collectionDate"] {
    box-sizing: border-box !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  #collectionForm > button[type="submit"].button.full,
  #paymentCreateForm > button[type="submit"].button.full {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    width: calc(100dvw - 76px) !important;
    max-width: calc(100dvw - 76px) !important;
    min-width: 0 !important;
    margin: 4px auto max(16px, env(safe-area-inset-bottom)) !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .app-content.accounts-view {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 12px;
    padding-inline: 8px !important;
    overflow-x: hidden;
  }

  .app-content.accounts-view > .accounts-board,
  .accounts-board,
  .account-list-card,
  .account-panel,
  .account-table,
  .mini-movement-table,
  .quick-action-grid {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .accounts-board {
    display: grid;
    gap: 12px;
  }

  .account-list-card {
    display: block !important;
    order: 2;
  }

  .account-bottom-grid {
    order: 3;
  }

  .account-stat-grid.page-stat-grid,
  .account-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .account-stat-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    min-height: 76px;
    padding: 12px;
    border-radius: 14px;
  }

  .account-stat-card > span {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .account-stat-card small,
  .account-stat-card em {
    font-size: 10px;
    line-height: 1.15;
  }

  .account-stat-card strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.15;
  }

  .account-list-card,
  .account-panel {
    border-radius: 16px;
  }

  .account-list-header,
  .account-panel header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 14px 14px 10px;
  }

  .account-list-header h4,
  .account-panel h4 {
    min-width: 0;
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
  }

  .account-list-actions .button,
  .account-panel header .text-button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .account-table {
    display: grid !important;
    padding: 0 14px 14px;
  }

  .account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
    align-items: center;
    min-width: 0 !important;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
  }

  .account-row-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 34px;
    padding: 8px 0;
    background: transparent;
  }

  .account-row > span,
  .account-row-head span {
    min-width: 0;
  }

  .account-row > span:nth-child(2),
  .account-row > span:nth-child(3),
  .account-row > span:nth-child(5),
  .account-row > span:nth-child(6),
  .account-row > span:nth-child(7),
  .account-row > span:nth-child(8),
  .account-row > span:nth-child(9) {
    display: none !important;
  }

  .account-row > span:nth-child(4) {
    display: block !important;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }

  .account-name-cell {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .account-name-cell i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .account-name-cell strong,
  .account-row > span:nth-child(4) strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.2;
  }

  .account-bottom-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mini-movement-table {
    padding: 0 14px 14px;
  }

  .mini-movement-table > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto !important;
    gap: 8px;
    align-items: center;
    min-width: 0 !important;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
  }

  .mini-movement-table > div > span:nth-child(2),
  .mini-movement-table > div > span:nth-child(4) {
    display: none !important;
  }

  .mini-movement-table > div > span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.25;
  }

  .mini-movement-table > div > span:nth-child(5) {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-weight: 850;
  }

  .quick-action-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 0 14px 12px;
  }

  .quick-action-grid button {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
  }

  .quick-action-grid button span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .account-info-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    margin: 0 14px 14px;
    font-size: 12px;
    line-height: 1.3;
  }

  .inline-modal-backdrop:has(.account-action-modal) {
    align-items: flex-start;
    padding: max(10px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .inline-modal-backdrop .account-action-modal,
  .inline-modal-backdrop .account-action-modal * {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .inline-modal-backdrop .account-action-modal {
    width: calc(100dvw - 24px) !important;
    max-width: calc(100dvw - 24px) !important;
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .inline-modal-backdrop .account-action-modal .modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: start;
    padding: 16px 14px 14px;
  }

  .inline-modal-backdrop .account-action-modal .modal-head h3 {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
  }

  .inline-modal-backdrop .account-action-modal .modal-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .inline-modal-backdrop .account-action-modal .modal-head strong {
    font-size: 22px;
    line-height: 1.05;
  }

  .inline-modal-backdrop .account-action-modal .modal-head small {
    font-size: 14px;
    line-height: 1.25;
  }

  .inline-modal-backdrop .account-action-modal .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .inline-modal-backdrop .account-action-modal .finance-modal-section {
    padding: 18px 14px;
  }

  .inline-modal-backdrop .account-action-modal .finance-section-title {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .inline-modal-backdrop .account-action-modal .finance-section-title > span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .inline-modal-backdrop .account-action-modal .finance-section-title h4 {
    font-size: 20px;
    line-height: 1.1;
  }

  .inline-modal-backdrop .account-action-modal .finance-section-title p {
    font-size: 13px;
    line-height: 1.25;
  }

  .inline-modal-backdrop .account-action-modal .finance-fields-grid.two {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .inline-modal-backdrop .account-action-modal label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    line-height: 1.2;
  }

  .inline-modal-backdrop .account-action-modal :is(select, input, textarea) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 16px !important;
    line-height: 1.25;
  }

  .inline-modal-backdrop .account-action-modal textarea {
    min-height: 108px;
  }

  .inline-modal-backdrop .account-action-modal input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
  }

  .inline-modal-backdrop .account-action-modal .inline-modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 16px;
  }

  .inline-modal-backdrop .account-action-modal .inline-modal-footer .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .app-content.due-periods-view {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 12px;
    padding-inline: 8px !important;
    overflow-x: hidden;
  }

  .app-content.due-periods-view .metric-strip,
  .app-content.due-periods-view .content-toolbar .search-input,
  .app-content.due-periods-view .standard-list-search {
    display: none !important;
  }

  .app-content.due-periods-view .content-toolbar {
    display: none !important;
  }

  .app-content.due-periods-view .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .app-content.due-periods-view #appCreateRecordButton {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
  }

  .app-content.due-periods-view .standard-table-card,
  .app-content.due-periods-view .standard-table-body {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .app-content.due-periods-view .standard-list-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .app-content.due-periods-view .standard-list-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .app-content.due-periods-view [data-standard-create] {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  .app-content.due-periods-view .data-table .admin-row,
  .app-content.due-periods-view .admin-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(78px, auto) 38px !important;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
  }

  .app-content.due-periods-view .admin-row.header {
    min-height: 38px;
    background: #f8fafc;
    color: #405168;
    font-size: 11px;
    font-weight: 900;
  }

  .app-content.due-periods-view .admin-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
  }

  .app-content.due-periods-view .admin-row > span:nth-child(3) {
    justify-self: end;
    text-align: right;
    font-weight: 850;
  }

  .app-content.due-periods-view .admin-row > span:nth-child(n + 4),
  .app-content.due-periods-view .admin-row > .inline-row-actions {
    display: none !important;
  }

  .app-content.due-periods-view .admin-row > .actions-menu {
    display: flex !important;
    justify-self: end;
    width: 34px;
    min-width: 34px;
  }

  .app-content.due-periods-view .admin-row.header > .actions-menu {
    display: none !important;
  }

  .app-content.due-periods-view .admin-row .actions-menu summary {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .app-content.due-periods-view .empty-state {
    width: auto;
    margin: 0 12px 12px;
    padding: 12px;
    border: 1px dashed #dce8f3;
    border-radius: 12px;
    font-size: 13px;
  }

  body:has(.app-content.due-periods-view) #recordModal .finance-form-modal .due-period-assignment-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body:has(.app-content.due-periods-view) #recordModal .finance-form-modal .due-period-assignment-toolbar .button {
    width: 100%;
    min-width: 0;
  }

  body:has(.app-content.due-periods-view) #recordModal .finance-form-modal .assignment-list {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-head {
    padding: 18px 16px 14px;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-head h3 {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-title-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-head strong {
    font-size: 22px !important;
    line-height: 1.05;
    white-space: nowrap;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .modal-head small {
    font-size: 13px !important;
    line-height: 1.22;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .finance-section-title h4 {
    font-size: 19px;
    line-height: 1.12;
  }

  body:has(.app-content.due-periods-view) #recordModal .due-period-form-modal .finance-section-title p {
    font-size: 13px;
    line-height: 1.25;
  }
}

@media (max-width: 980px) {
  #recordModal .finance-form-modal.supplier-debt-form-modal {
    display: flex;
    flex-direction: column;
    width: min(94vw, 560px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow: auto !important;
  }

  #recordModal .finance-form-modal.supplier-debt-form-modal .modal-fields {
    min-height: 0;
  }

  #recordModal .finance-form-modal.supplier-debt-form-modal .supplier-debt-inline-save {
    position: static !important;
    bottom: auto !important;
    align-self: center;
    width: calc(100% - 32px);
    min-width: 0;
    max-width: 420px;
    min-height: 48px;
    margin: 14px 16px max(20px, env(safe-area-inset-bottom));
    transform: none !important;
    flex: 0 0 auto;
    z-index: auto;
    box-shadow: 0 16px 30px rgba(28, 126, 214, 0.22);
  }
}

@media (max-width: 760px) {
  .app-content.subscription-view {
    width: 100%;
    max-width: 100vw;
    padding: 8px !important;
    overflow-x: hidden;
  }

  .app-content.subscription-view .subscription-page {
    zoom: 1 !important;
    gap: 12px;
    min-height: 0;
    padding-bottom: 0;
  }

  .app-content.subscription-view .subscription-page-hero {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 4px 0 2px;
  }

  .app-content.subscription-view .subscription-page-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .app-content.subscription-view .subscription-page-icon svg {
    width: 22px;
    height: 22px;
  }

  .app-content.subscription-view .subscription-page-hero .eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
  }

  .app-content.subscription-view .subscription-page-hero h3 {
    margin: 0 0 3px;
    font-size: 24px;
    line-height: 1.08;
  }

  .app-content.subscription-view .subscription-page-hero p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
  }

  .app-content.subscription-view .subscription-layout,
  .app-content.subscription-view .subscription-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    min-width: 0;
    align-items: start;
  }

  .app-content.subscription-view .subscription-card {
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .app-content.subscription-view .subscription-card h3 {
    font-size: 16px;
  }

  .app-content.subscription-view .plan-head {
    grid-template-columns: 44px minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
  }

  .app-content.subscription-view .plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .app-content.subscription-view .plan-icon svg {
    width: 20px;
    height: 20px;
  }

  .app-content.subscription-view .plan-status-tag {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 13px;
  }

  .app-content.subscription-view .plan-head p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
  }

  .app-content.subscription-view .plan-days {
    width: 54px;
    height: 54px;
    border-width: 5px;
  }

  .app-content.subscription-view .plan-days b {
    font-size: 18px;
  }

  .app-content.subscription-view .plan-days small {
    font-size: 9px;
    line-height: 1.05;
  }

  .app-content.subscription-view .plan-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 12px;
  }

  .app-content.subscription-view .plan-meta-grid span {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 28px;
    padding: 0;
    border-right: 0;
  }

  .app-content.subscription-view .plan-meta-grid svg {
    grid-row: auto;
    width: 18px;
    height: 18px;
  }

  .app-content.subscription-view .plan-meta-grid small {
    font-size: 11px;
    font-weight: 650;
  }

  .app-content.subscription-view .plan-meta-grid strong {
    justify-self: end;
    font-size: 13px;
  }

  .app-content.subscription-view .annual-total-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .app-content.subscription-view .annual-total-card .plan-icon.small {
    width: 36px;
    height: 36px;
  }

  .app-content.subscription-view .annual-total-card p,
  .app-content.subscription-view .annual-total-card small,
  .app-content.subscription-view .secure-note {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
  }

  .app-content.subscription-view .annual-total-card strong {
    margin: 4px 0;
    font-size: 20px;
    line-height: 1.12;
  }

  .app-content.subscription-view .subscription-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-content.subscription-view .subscription-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border-radius: 11px;
    font-size: 14px;
  }

  .app-content.subscription-view .payment-history-card {
    padding: 0;
    overflow: hidden;
  }

  .app-content.subscription-view .payment-history-head {
    padding: 14px;
  }

  .app-content.subscription-view .payment-history-table {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .app-content.subscription-view .payment-history-row.header {
    display: none;
  }

  .app-content.subscription-view .payment-history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 14px;
  }

  .app-content.subscription-view .payment-history-row span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .app-content.subscription-view .payment-history-row strong {
    justify-self: end;
    white-space: nowrap;
  }

  .app-content.subscription-view .payment-history-row em {
    justify-self: start;
    padding: 4px 8px;
    font-size: 11px;
  }

  .app-content.subscription-view .payment-history-row span:last-child {
    justify-self: end;
    color: #64748b;
    font-size: 12px;
  }

  .app-content.subscription-view .payment-empty {
    min-height: 160px;
    padding: 20px 14px;
  }

  .app-content.subscription-view .payment-empty svg {
    width: 64px;
    height: 64px;
    padding: 14px;
    border-radius: 18px;
  }

  .app-content.subscription-view .payment-empty strong {
    font-size: 13px;
  }

  .app-content.subscription-view .payment-empty span {
    font-size: 12px;
    line-height: 1.3;
  }

  .app-content.subscription-view .settings-table.subscription-settings-table {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .app-content.subscription-view .plan-card {
    align-content: start;
    margin-bottom: 0;
    overflow: visible;
  }

  .app-content.subscription-view .subscription-side {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .app-content.debts-view {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 12px;
    padding-inline: 8px !important;
    overflow-x: hidden;
  }

  .app-content.debts-view .metric-strip,
  .app-content.debts-view .content-toolbar .search-input,
  .app-content.debts-view .standard-list-search {
    display: none !important;
  }

  .app-content.debts-view .content-toolbar {
    display: none !important;
  }

  .app-content.debts-view .standard-table-card,
  .app-content.debts-view .standard-table-body {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .app-content.debts-view .standard-list-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .app-content.debts-view .standard-list-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .app-content.debts-view [data-standard-create] {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  .app-content.debts-view .data-table .admin-row,
  .app-content.debts-view .admin-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(58px, 0.9fr) minmax(46px, 0.7fr) minmax(76px, auto) 38px !important;
    gap: 7px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 10px;
  }

  .app-content.debts-view .admin-row.header {
    min-height: 38px;
    background: #f8fafc;
    color: #405168;
    font-size: 10px;
    font-weight: 900;
  }

  .app-content.debts-view .admin-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: 11px;
    line-height: 1.18;
  }

  .app-content.debts-view .admin-row > span:nth-child(4) {
    justify-self: end;
    text-align: right;
    font-weight: 850;
    white-space: nowrap;
  }

  .app-content.debts-view .admin-row > .actions-menu {
    display: flex !important;
    justify-self: end;
    width: 34px;
    min-width: 34px;
  }

  .app-content.debts-view .admin-row.header > .actions-menu {
    display: none !important;
  }

  .app-content.debts-view .admin-row .actions-menu summary {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

@media (max-width: 980px) {
  .app-content.supplier-debts-view {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 12px;
    padding-inline: 8px !important;
    overflow-x: hidden;
  }

  .app-content.supplier-debts-view .metric-strip,
  .app-content.supplier-debts-view .content-toolbar .search-input,
  .app-content.supplier-debts-view .standard-list-search {
    display: none !important;
  }

  .app-content.supplier-debts-view .content-toolbar {
    display: none !important;
  }

  .app-content.supplier-debts-view .standard-table-card,
  .app-content.supplier-debts-view .standard-table-body {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .app-content.supplier-debts-view .standard-list-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .app-content.supplier-debts-view .standard-list-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .app-content.supplier-debts-view [data-standard-create] {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  .app-content.supplier-debts-view .data-table .admin-row,
  .app-content.supplier-debts-view .admin-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(72px, 1fr) minmax(48px, 0.7fr) minmax(76px, auto) 38px !important;
    gap: 7px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 10px;
  }

  .app-content.supplier-debts-view .admin-row.header {
    min-height: 38px;
    background: #f8fafc;
    color: #405168;
    font-size: 10px;
    font-weight: 900;
  }

  .app-content.supplier-debts-view .admin-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: 11px;
    line-height: 1.18;
  }

  .app-content.supplier-debts-view .admin-row > span:nth-child(4) {
    justify-self: end;
    text-align: right;
    font-weight: 850;
    white-space: nowrap;
  }

  .app-content.supplier-debts-view .admin-row > .actions-menu {
    display: flex !important;
    justify-self: end;
    width: 34px;
    min-width: 34px;
  }

  .app-content.supplier-debts-view .admin-row.header > .actions-menu {
    display: none !important;
  }

  .app-content.supplier-debts-view .admin-row .actions-menu summary {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

@media (max-width: 900px) {
  .app-content.units-view .unit-apartment,
  .app-content.units-view .unit-mobile-summary,
  .app-content.units-view .unit-cell.resident,
  .app-content.units-view .unit-row > .unit-pill,
  .app-content.units-view .unit-debt-cell,
  .app-content.units-view .unit-cell.phone {
    display: none !important;
  }

  .app-content.units-view .unit-mobile-card-main {
    display: flex !important;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-main > .soft-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 16px;
  }

  .app-content.units-view .unit-mobile-card-main > .soft-icon svg {
    width: 30px;
    height: 30px;
  }

  .app-content.units-view .unit-mobile-card-copy {
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-copy small,
  .app-content.units-view .unit-mobile-card-copy span,
  .app-content.units-view .unit-mobile-card-side small {
    font-weight: 400 !important;
  }

  .app-content.units-view .unit-mobile-card-copy strong,
  .app-content.units-view .unit-mobile-card-side strong {
    font-weight: 500 !important;
  }

  .app-content.units-view .unit-mobile-card-side .unit-pill {
    font-weight: 500 !important;
  }

  .app-content.units-view .unit-mobile-card-side {
    display: grid !important;
  }
}

.resident-mobile-card-main,
.resident-mobile-card-side {
  display: none;
}

@media (max-width: 900px) {
  .app-content.residents-view .resident-member-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    min-height: 142px;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .app-content.residents-view .resident-person-cell,
  .app-content.residents-view .resident-location-cell,
  .app-content.residents-view .resident-mobile-summary,
  .app-content.residents-view .resident-member-row > span:not(.resident-mobile-card-side),
  .app-content.residents-view .resident-member-row > strong {
    display: none !important;
  }

  .app-content.residents-view .resident-mobile-card-main {
    display: flex !important;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
  }

  .app-content.residents-view .resident-mobile-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(140deg, #74a8f8, #8b6cf6);
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .app-content.residents-view .resident-mobile-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #071421;
  }

  .app-content.residents-view .resident-mobile-copy > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #071421;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 600;
  }

  .app-content.residents-view .resident-primary-chip {
    width: max-content;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
  }

  .app-content.residents-view .resident-mobile-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-content.residents-view .resident-mobile-info svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    stroke-width: 2.5;
  }

  .app-content.residents-view .resident-mobile-card-side {
    display: grid !important;
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
    align-self: start;
  }

  .app-content.residents-view .resident-mobile-card-side .status-pill {
    min-width: 76px;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
  }

  .app-content.residents-view .resident-member-row > .actions-menu {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
  }

  .app-content.residents-view .resident-member-row > .actions-menu summary {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}

.building-actions-menu-popover,
.unit-actions-menu-popover {
  min-width: 188px;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8e6f6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.building-actions-menu-popover {
  min-width: 232px;
}

.building-actions-menu-popover button,
.unit-actions-menu-popover button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
}

.building-actions-menu-popover button svg,
.unit-actions-menu-popover button svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.building-actions-menu-popover button:hover,
.unit-actions-menu-popover button:hover {
  background: #eef6ff;
  color: #1d75d8;
}

.building-actions-menu-popover button.danger,
.unit-actions-menu-popover button.danger {
  color: #ef4444;
}

.building-card-actions {
  display: none !important;
}

@media (max-width: 900px) {
  .app-content.units-view .unit-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    align-items: start;
    gap: 12px;
    min-height: 132px;
    padding: 18px 16px;
    overflow: visible;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 67, 104, 0.08);
  }

  .app-content.units-view .unit-mobile-card-main {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-main > .soft-icon {
    display: none !important;
  }

  .app-content.units-view .unit-mobile-card-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .app-content.units-view .unit-mobile-card-copy small {
    color: #64748b;
    font-size: 13px;
    font-weight: 400 !important;
  }

  .app-content.units-view .unit-mobile-card-copy strong {
    color: #06111f;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 500 !important;
  }

  .app-content.units-view .unit-mobile-card-copy span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-content.units-view .unit-mobile-card-copy span svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #64748b;
    stroke-width: 2;
  }

  .app-content.units-view .unit-mobile-card-copy span b {
    color: #1f2937;
    font-weight: 900;
  }

  .app-content.units-view .unit-mobile-card-side {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    justify-self: stretch;
    align-items: flex-start;
    min-width: 0;
    padding-right: 50px;
  }

  .app-content.units-view .unit-mobile-card-side .unit-pill {
    min-width: 82px;
    min-height: 34px;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500 !important;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu {
    position: absolute;
    top: 18px;
    right: 16px;
    display: block !important;
    width: 42px;
    min-width: 42px;
    z-index: 3;
  }

  .app-content.units-view .unit-row > .actions-menu.unit-actions-menu summary {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
  }
}
