.mobile-client-primary, .mobile-more-filters, .mobile-dialog-backbar, .mobile-page-back, .mobile-property-filter-value { display: none; }

@media (max-width: 760px) {
  .workspace { padding-left: 12px; padding-right: 12px; }
  .section-panel { min-width: 0; }
  .section-panel > .section-heading, .clients-header { gap: 10px; }
  .section-panel h2, .clients-header h2 { line-height: 1.35; letter-spacing: -.3px; }
  .property-card, .client-filter-panel { border-radius: 14px; border-color: #e1e8f2; box-shadow: 0 3px 14px #18375706; }
  .dashboard-panel { gap: 14px; }
  .dashboard-card { padding: 14px; border-radius: 14px; }
  .dashboard-empty { min-height: 70px; padding: 18px 12px; font-size: 12px; line-height: 1.6; }
  .dashboard-hero, .dashboard-hero.management { padding: 16px; border-radius: 14px; }
  .dashboard-hero .dashboard-link { min-height: 44px; }
  .calculator-panel { border-radius: 14px; }
  .loan-result-card { padding: 16px; border-radius: 12px; box-shadow: none; }
  .property-quick-views { gap: 8px; padding: 10px; }
  .property-quick-view, .property-more-views > summary { min-height: 44px; border-radius: 10px; }
  #propertySection .property-filter-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #propertySection .property-filter-main > label { display: grid; align-content: center; gap: 3px; min-height: 62px; margin: 0; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: #f0f4fa; color: #586d89; font-size: 11px; font-weight: 600; }
  #propertySection .property-filter-main input, #propertySection .property-filter-main select { width: 100%; min-width: 0; min-height: 26px; height: 26px; margin: 0; padding: 1px 13px 1px 0; border: 0; border-radius: 0; background-color: transparent !important; box-shadow: none; color: #243f62; font-size: 16px; font-weight: 600; text-overflow: ellipsis; }
  #propertySection .property-filter-main input { padding-right: 0; }
  #propertySection .property-filter-main label:has(select) { position: relative; padding-right: 19px; }
  #propertySection .property-filter-main label:has(select)::after { position: absolute; top: 29px; right: 10px; width: 5px; height: 5px; border-right: 1.5px solid; border-bottom: 1.5px solid; content: ''; transform: rotate(45deg); pointer-events: none; }
  #propertySection .property-filter-main select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  #propertySection .property-filter-main .mobile-property-filter-value { display: block; overflow: hidden; font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
  #propertySection .property-filter-main label.has-selection { border-color: #2c6dcc; color: #fff; background: linear-gradient(115deg, #2460bd, #347fda); }
  #propertySection .property-filter-main label:has(select:disabled) { opacity: .6; }
  #propertySection .property-filter-main label:focus-within { border-color: #91b3e5; background: #eaf2fe; }
  #propertySection .property-filter-main .property-community-filter { grid-column: auto; }
  .property-community-caret { display: none; }
  .property-community-suggestions { width: min(290px, calc(100vw - 48px)); max-width: none; z-index: 30; }
  .property-filter-footer { align-items: center; gap: 8px; margin-top: 10px; }
  .property-advanced > summary, .mobile-more-filters { min-height: 44px; padding: 10px 12px; border: 1px solid #dce5f1; border-radius: 10px; color: #4e6583; background: #fff; font-size: 12px; font-weight: 600; }
  .property-advanced-grid { gap: 10px; padding-top: 10px; }
  .property-filter-actions button { min-height: 44px; }
  .client-filter-head { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-bottom: 10px; }
  .client-mobile-sorts { order: -2; justify-content: flex-start; gap: 8px; }
  .client-mobile-sorts .client-follow-sort { flex: 1; min-height: 38px; padding: 8px 6px; border: 1px solid #e2e9f3; border-radius: 9px; background: #f6f8fc; font-size: 11px; }
  .client-filter-summary { order: -1; min-height: 0; padding: 0; }
  .client-filter-summary .client-business-views { display: none; }
  .client-filter-summary #clientFilterCount { font-size: 11px; }
  .client-filter-head .client-search-field { flex: 0 0 auto; height: auto; }
  .client-search-field input { min-height: 44px; border-radius: 10px; font-size: 16px; }
  .mobile-client-primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mobile-filter-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 50px; box-sizing: border-box; gap: 3px; margin: 0; padding: 9px 18px 9px 9px; border: 1px solid transparent; border-radius: 10px; color: #586d89; background: #f0f4fa; font-size: 12px; font-weight: 600; text-align: left; }
  label.mobile-filter-tile::after { position: absolute; top: 22px; right: 10px; width: 5px; height: 5px; border-bottom: 1.5px solid; border-right: 1.5px solid; content: ''; transform: rotate(45deg); pointer-events: none; }
  .mobile-filter-tile.active, .mobile-filter-tile.has-selection { border-color: #2c6dcc; color: #fff; background: linear-gradient(115deg, #2460bd, #347fda); }
  .mobile-filter-tile select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
  .mobile-filter-value { display: none; }
  .mobile-filter-tile.has-selection .mobile-filter-caption { font-size: 10px; opacity: .85; }
  .mobile-filter-tile.has-selection .mobile-filter-value { display: block; max-width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-filter-tile:focus-within, .mobile-filter-tile:focus-visible { outline: 2px solid #8bb1e8; outline-offset: 2px; }
  .mobile-more-filters { display: block; width: 100%; margin-top: 10px; text-align: center; }
  #clientsSection .client-filter-panel .client-filters { display: none; }
  #clientsSection .mobile-filters-expanded .client-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 10px; gap: 8px; }
  #clientsSection .client-filter-panel .client-filters label:has(#clientCategoryFilter), #clientsSection .client-filter-panel .client-filters label:has(#clientGradeFilter), #clientsSection .client-filter-panel .client-filters label:has(#clientViewingFilter) { display: none; }
  #clientsSection .client-filter-panel .client-filters label:has(#clientOwnerFilter) { grid-column: auto; }
  #clientsSection .client-filter-panel .client-filters label { min-height: 50px; border-radius: 10px; }
  .mobile-page-back { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 66px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 9px; color: #285e9f; background: #eff4fb; font-size: 14px; font-weight: 600; }
  .mobile-dialog-backbar { position: sticky; top: 0; z-index: 8; display: flex; padding: max(6px, env(safe-area-inset-top)) 10px 6px; border-bottom: 1px solid #e3eaf3; background: #fffffff5; backdrop-filter: blur(12px); }
  dialog:not(#mobileFunctionsDialog) { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); box-sizing: border-box; }
  dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), dialog select, dialog textarea { min-width: 0; box-sizing: border-box; font-size: 16px; }
  .followup-ledger-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .followup-ledger-controls label { min-width: 0; }
  .followup-ledger-controls input, .followup-ledger-controls select { width: 100%; max-width: 100%; min-height: 44px; padding: 7px 6px; }
  .followup-ledger-summary { grid-column: 1 / -1; }
  #clientDetailDialog { max-width: 100vw; max-height: 100dvh; }
  #clientDetailDialog .client-detail-close { display: none; }
  #propertyDrawer .property-drawer-head { display: flex; flex-wrap: wrap; gap: 8px; padding-top: max(10px, env(safe-area-inset-top)); }
  #propertyDrawer .property-drawer-head > .mobile-page-back { order: -2; }
  #propertyDrawer .property-drawer-title { flex: 1 1 calc(100% - 90px); min-width: 0; padding-right: 0; }
  #propertyDrawer .property-drawer-head-actions { width: 100%; justify-content: flex-end; padding-right: 0; }
  #propertyDrawer .property-drawer-head-actions > .property-close { display: none; }
  #propertyDrawer .property-drawer-title h2 { font-size: 19px; line-height: 1.4; }
  .property-modal-card > .mobile-page-back { position: sticky; top: 0; z-index: 2; margin-bottom: 10px; }
  .property-sandbox-head .property-section-actions { order: -1; }
  .clients-actions, .property-section-actions { gap: 8px; }
  .clients-actions > button { min-height: 40px; border-radius: 9px; }
  #propertyDrawer .property-primary-actions button { min-height: 40px; padding: 7px 5px; box-shadow: none; border-radius: 9px; }
}
