/* Keep the bot-trap field submitted, but outside the visible registration form. */
form[data-form="register"] input.registration-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mobile-only { display: none !important; }
.mockup-quick-actions .desktop-only { display: contents; }
.tenant-search-desktop-helpers { display: contents; }
.role-menu-tools { display: grid; gap: 8px; border-top: 1px solid #dce5e3; margin-top: 16px; padding-top: 16px; }
.mockup-dashboard-main :is([data-action="openMaintenanceWorkspace"], [data-action="replayGuide"]) { display: none !important; }

.admin-security-panel > details { padding: 4px 16px 16px; }
.admin-security-panel > details > summary { padding: 12px 0; line-height: 1.5; }
.admin-security-panel > details > p { margin-top: 8px; }
.admin-users-table { max-width: 100%; overscroll-behavior-inline: contain; }
.admin-users-table table { min-width: 1080px; table-layout: auto; }
.admin-users-table :is(th, td) { padding: 16px 12px; overflow: visible; text-overflow: clip; word-break: normal; overflow-wrap: normal; }
.admin-users-table .admin-user-identity { min-width: 230px; }
.admin-users-table .admin-user-identity > :is(strong, span) { display: inline-block; max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.admin-users-table td:nth-child(4) { min-width: 130px; white-space: nowrap; }
.admin-users-table .admin-user-actions { min-width: 250px; }
.admin-users-table .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-users-table :is(.badge, .status-pill, .button) { white-space: normal; word-break: normal; overflow-wrap: normal; }
html[data-theme] .admin-users-table :is(table, tbody, tr, td, th) { background-color: var(--material-surface); color: var(--material-ink); }
html[data-theme] .admin-users-table .admin-user-identity .muted { color: var(--material-secondary); }
html[data-theme] .admin-users-table td[data-label]::before { color: var(--material-secondary); }
.modal-card:has(> .verification-review-modal) > .modal-header h2,
.modal-card .verification-review-modal :is(h2, h3) { font-size: 20px; line-height: 1.35; }
.modal-card .verification-review-modal .profile-detail-grid strong { font-size: 16px; line-height: 1.5; }
.admin-account-lifecycle { display: grid; gap: 16px; min-width: 0; }
.admin-account-lifecycle :is(form, fieldset, label) { display: grid; gap: 12px; min-width: 0; }
.admin-account-lifecycle fieldset { margin: 0; padding: 16px; border: 1px solid var(--material-edge); border-radius: 6px; }
.admin-account-lifecycle :is(input, select, textarea, button) { width: 100%; min-width: 0; max-width: 100%; }
.admin-account-lifecycle :is(p, code, strong, small) { white-space: normal; overflow-wrap: anywhere; }
.admin-account-lifecycle p { margin: 0; line-height: 1.5; }
.admin-account-lifecycle summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
.admin-account-lifecycle li { margin-bottom: 12px; }

@media (max-width: 600px) {
  .admin-users-table { overflow: visible; }
  .admin-users-table :is(table, tbody, tr, td) { display: block; min-width: 0; width: 100%; }
  .admin-users-table thead { display: none; }
  .admin-users-table tr { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .admin-users-table td { border: 0; padding: 6px 0; white-space: normal; }
  .admin-users-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
  .admin-users-table .admin-user-identity, .admin-users-table .admin-user-actions { min-width: 0; }
  .admin-users-table .admin-user-identity > :is(strong, span) { max-width: 100%; }
}

@media (max-width: 360px) {
  .mockup-mobile-topbar.app-topbar { padding-inline: 8px; column-gap: 8px; }
  .mockup-mobile-topbar .signed-in-brand,
  .mockup-mobile-topbar .mockup-mobile-actions { flex-shrink: 0; }
}

@media (max-width: 820px) {
  .mobile-only { display: block !important; }
  .desktop-only, .desktop-workspace-menu, .tenant-application-desktop, .tenant-search-desktop-helpers { display: none !important; }
  .mockup-quick-actions .mobile-only { display: contents !important; }
  .mockup-mobile-actions { margin-left: auto; gap: 8px; }
  .mockup-mobile-topbar .brand strong { color: var(--un-text, #18252a); }
  .workspace-menu-trigger { flex: 0 0 44px; width: 44px; height: 44px; }
  .role-landlord:not(.tab-properties) [data-action="openPropertyModal"] { display: none !important; }
  html[data-theme] .mockup-app-shell:has(.mobile-role-dock) { padding-bottom: 0 !important; }
  html[data-theme] .mockup-app-shell .mockup-dashboard-main.app-main {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html[data-theme] .mockup-dashboard-view .item-row.mobile-lease-row { display: flex; flex-direction: column; gap: 12px; }
  html[data-theme] .mockup-dashboard-view .item-row.mobile-lease-row > div:first-child { flex: 0 1 auto; width: 100%; }
  html[data-theme] .mockup-dashboard-view .item-row.mobile-lease-row > .row-actions.lease-row-actions {
    display: flex; flex-direction: row; flex-wrap: wrap; flex: 0 1 auto; width: 100%; max-width: 100%; margin: 0; justify-content: flex-start; align-items: center; gap: 8px;
  }
  html[data-theme] .mobile-lease-row > .lease-row-actions > * { flex: 0 1 auto; width: auto; max-width: 100%; }
  .lease-row-actions .lease-view-action { order: -1; }
  .lease-row-actions :is(button, a) { max-width: 100%; white-space: normal; }
  .mobile-list-filters { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-block: 12px 20px; }
  .mobile-list-filters label { display: grid; gap: 6px; min-width: 0; }
  .mobile-list-filters :is(input, select) { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
  .mobile-filtered-out { display: none !important; }
  .mobile-filter-empty:not([hidden]) { display: block; padding: 16px 0; }
  .tenant-application-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid #dce5e3; }
  .tenant-application-summary > div { min-width: 0; }
  .tenant-application-summary :is(strong, small) { display: block; overflow-wrap: anywhere; }
  .tenant-application-summary small { margin-block: 6px; }
  .tenant-application-summary .status-pill { flex-shrink: 0; }
  .mobile-search-tools { display: flex !important; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
  .mobile-search-tools button { flex: 1 1 120px; min-height: 44px; }
  .tenant-search-helper-modal .insight-panel { margin: 0; border: 0; padding: 0; box-shadow: none; background: none; }
  .role-landlord.tab-payments .workspace-grid { display: flex; flex-direction: column; }
  .role-landlord.tab-payments .workspace-grid > section:has([data-action="openLandlordBankModal"]) { order: -1; }
  .country-picker-modal .country-picker-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 8px; }
  .country-picker-modal .modal-header { flex-direction: row; align-items: flex-start; gap: 12px; }
  .country-picker-modal .modal-header > div { min-width: 0; }
  .country-picker-modal .modal-header h2 { margin: 0; font-size: 20px; }
  .country-picker-modal .admin-security-logo { display: none; }
  .country-picker-modal .country-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 18px; min-height: 80px; border-radius: 8px; }
  .country-picker-modal .country-choice > .dock-icon { display: none; }
  .country-picker-modal [data-market="KE"] { background: linear-gradient(120deg, #edf8f0, #f8fcff); color: #163d31; }
  .country-picker-modal [data-market="UK"] { background: linear-gradient(120deg, #eef3fc, #fff1f3); color: #253858; }
  .country-picker-modal .country-choice strong { font-size: 18px; overflow-wrap: anywhere; }
  .country-picker-modal .country-choice small { font-size: 15px; }
  html[data-theme] .country-picker-modal .country-choice :is(strong, small) { color: inherit; }
  .modal-backdrop:has(:is(.listing-lightbox-modal, .fullscreen-image-modal)) { padding: 0 !important; }
  html[data-theme] .modal-card:is(.listing-lightbox-modal, .fullscreen-image-modal) {
    display: flex; flex-direction: column; width: 100%; max-width: none; height: var(--modal-viewport-height, 100dvh); max-height: var(--modal-viewport-height, 100dvh);
    margin: 0; padding: 0; border: 0; border-radius: 0; background: #080b0d; box-shadow: none; overflow: hidden; touch-action: pan-x pinch-zoom;
  }
  :is(.listing-lightbox-modal, .fullscreen-image-modal) .modal-header {
    position: absolute; z-index: 3; inset: 0 0 auto; display: flex; flex-direction: row; justify-content: flex-end; padding: max(12px, env(safe-area-inset-top)) 12px 12px;
    margin: 0; border: 0; pointer-events: none;
  }
  :is(.listing-lightbox-modal, .fullscreen-image-modal) .modal-header > div { display: none; }
  :is(.listing-lightbox-modal, .fullscreen-image-modal) .modal-header button { pointer-events: auto; background: #fff; color: #18252a; width: 44px; height: 44px; }
  .listing-lightbox-modal .listing-lightbox, .fullscreen-image-modal .image-viewer { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
  .listing-lightbox-modal .listing-lightbox-track { display: flex; height: 100%; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pinch-zoom; border-radius: 0; }
  .listing-lightbox-modal .listing-lightbox-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; scroll-snap-align: center; border-radius: 0; background: transparent; }
  .listing-lightbox-modal .listing-lightbox-slide img, .fullscreen-image-modal .image-viewer img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border: 0; border-radius: 0; }
  .listing-lightbox-modal figcaption { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); right: auto; left: 50%; transform: translateX(-50%); color: #fff; background: #18252a; }
  .listing-lightbox-modal .listing-lightbox-controls { display: none; }
}

@media (min-width: 821px) {
  .mobile-filter-empty { display: none !important; }
}
