/* Leaf Box v2.6.2: forensic box/layout regression fixes. */
[hidden]{display:none!important}
body.lb-profile-open{overflow:hidden!important;overscroll-behavior:none}
.member-profile-backdrop{overscroll-behavior:contain;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
.member-profile-card{max-width:100%;overscroll-behavior:contain}
.member-profile-bio,.mp-request,.mp-admin-entry,.panel-results{overflow-wrap:anywhere}
.mp-topup [data-market-upi-reference][hidden],.mp-topup [data-upi-payment-guide][hidden]{display:none!important}
.mp-topup [data-market-upi-reference]{min-width:0}
.mp-card .mp-card-info,.mp-admin-entry>div,.mp-request>div,.mp-preview-body>.mp-preview-text{min-width:0;max-width:100%}
.mp-card-info .spread>*{min-width:0}
.mp-price,.mp-card-info strong,.mp-request strong{overflow-wrap:anywhere}
.mp-admin-actions>.btn{min-height:44px;white-space:normal;text-align:center}
.mp-editor .mp-html-input{overflow-x:auto;overflow-wrap:normal;tab-size:2}
.panel-results .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.panel-results .owner-table{max-width:none}
.lb-notification-item,.lb-dialog-content,.lb-dialog-body,.lb-toast-copy{overflow-wrap:anywhere}
.mobile-more-sheet,.mobile-drawer{overscroll-behavior:contain}
@media(max-width:800px){
  .lb-toast-stack{padding-bottom:env(safe-area-inset-bottom)}
  .mp-section>.spread{align-items:flex-start}
  .mp-filters{max-width:100%}
  .mp-filters select{width:100%;max-width:100%}
  .mp-request,.mp-admin-entry{align-items:flex-start}
  .panel-nav{scroll-padding-inline:12px}
  .mobile-more-sheet{scroll-padding-bottom:max(16px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  .mp-topup{grid-template-columns:minmax(0,1fr)}
  .mp-topup [data-market-upi-reference],.mp-topup>button{grid-column:1/-1}
  .topbar .heading{overflow:hidden;text-overflow:ellipsis}
  .topbar .heading small{display:none}
  .mp-preview-body{padding-inline:7px;gap:7px}
  .mp-preview-body>.mp-photo-stack{width:60px!important;min-width:60px!important;max-width:60px!important;--mp-size:60px}
}
@media(prefers-reduced-motion:reduce){
  .mp-card,.mp-admin-entry,.mp-card *{scroll-behavior:auto!important}
}

/* v2.6.3 — Marketplace collection accessibility and narrow-column controls */
.mp-section>.spread{min-width:0}
.mp-filters{align-items:end;min-width:0;max-width:100%;gap:12px}
.mp-filters label{min-width:0;display:grid;gap:6px;font-size:13px;color:var(--muted)}
.mp-filters select{min-height:44px;max-width:100%;text-overflow:ellipsis}
.mp-filter-empty{padding:18px;line-height:1.5}
.mp-card[hidden]{display:none!important}
@media(max-width:480px){
  .mp-section>.spread{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
  .mp-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .mp-filters .input{width:100%;min-width:0;font-size:14px;padding-inline:8px}
}
@media(max-width:320px){.mp-filters{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.mp-grid .mp-card{transition:none!important}}
