/* UPMATE responsive contract: desktop >=1024, tablet 768-1023, mobile <=767. Legacy page rules remain until page-specific migration. */
@media screen and (max-width:1023px){
:root{--responsive-gutter:20px;--responsive-gap:16px}
.wrap,main.member-wrap{padding-inline:var(--responsive-gutter)}
#approvedMemberCards{grid-template-columns:repeat(2,minmax(0,1fr))}
.card,.panel,.metric,.history-panel,.history-stat,.member-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
img,video{max-width:100%;height:auto}
input,select,textarea{max-width:100%;box-sizing:border-box}
.saas-admin .panel:has(table),.responsive-config section:has(table){max-width:100%;overflow-x:auto}
.responsive-config main{box-sizing:border-box;width:100%}
.responsive-config section{min-width:0;box-sizing:border-box}
.responsive-config table{min-width:680px}
}
@media screen and (max-width:767px){
:root{--responsive-gutter:14px;--responsive-gap:12px}
.wrap,main.member-wrap{padding:20px var(--responsive-gutter)}
#approvedMemberCards{grid-template-columns:minmax(0,1fr)}
.features{grid-template-columns:minmax(0,1fr)}
.hero{padding:28px 20px!important}
.hero h1{font-size:clamp(26px,7vw,36px)!important}
.features .card{padding:20px!important}
.member-wrap .grid .metric{padding:16px 12px}
.member-wrap .grid .metric strong{font-size:26px}
.member-wrap dialog{box-sizing:border-box;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px}
.ui-actions,.proposal-actions,.review-actions,.request-footer,.company-actions{gap:var(--responsive-gap)}
.directory-pagination button{min-height:44px}
.responsive-config main{margin:20px auto;padding:0 var(--responsive-gutter)}
.responsive-config section{padding:16px}
.responsive-config header{flex-wrap:wrap;gap:12px}
.responsive-config h1{font-size:26px}
.responsive-config button{min-height:44px;max-width:100%}
.responsive-config .weight{flex-wrap:wrap}
.responsive-config #versions{max-width:100%;margin-bottom:8px}
}
