/* Shared controls also apply to already published tenant theme snapshots. */
body.up-body .experience-stats{min-width:0;grid-auto-flow:row dense}
body.up-body .experience-stats .experience-stat{grid-column:auto / span min(var(--item-span,1),var(--experience-columns,4));min-width:0;min-height:var(--item-height,var(--theme-card-min-height,178px));overflow-wrap:anywhere;box-sizing:border-box}
@media(max-width:1100px){body.up-body .experience-stats .experience-stat{grid-column:auto / span 1}}
/* Never pin every card to column 1: persisted two-column themes otherwise leave a blank half. */
@media(max-width:600px){
 body.up-body .experience-stats .experience-stat{grid-column:auto;max-width:100%;min-height:min(var(--item-height,var(--theme-card-min-height,178px)),210px);padding:14px}
 body.up-body .experience-stats{gap:12px}
 body.up-body{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
 body.up-body .mpv2-main,body.up-body .mpv2-content{min-width:0;max-width:100%;box-sizing:border-box}
 body.up-body[data-page=services] .up-page-title,body.up-body[data-page=services] .mpv2-card-title{margin:0 0 12px;font-size:1.35em}
 html[data-theme] body.up-body[data-user-template][data-page] .up-catalog-card{padding:14px!important}
 body.up-body .up-catalog-card .up-platform-grid{display:flex;gap:6px;margin:0 0 12px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
 body.up-body .up-catalog-card .up-platform{position:relative;flex:0 0 42px;min-height:40px;padding:7px}
 body.up-body[data-page=services] .up-page-title{display:none}
 body.up-body .up-catalog-controls{gap:8px}
 body.up-body .up-catalog-controls .up-search-wrap{margin:0}
 body.up-body .up-catalog-controls .up-field{margin:0}
 body.up-body .up-catalog-controls .up-input{min-height:42px;padding:9px 12px;font-size:1em}
 body.up-body .up-catalog-controls .up-search-wrap .up-input{padding-inline-start:40px}
 body.up-body .up-catalog-count{margin:10px 0;font-size:.85em}
 body.up-body .up-catalog-table tr{padding:12px 0;gap:8px}
 body.up-body .up-catalog-table .up-service-category{display:block;padding:0;margin-top:8px}
 body.up-body .up-catalog-table .up-service-category th{display:block;width:auto!important;padding:10px!important}
 html[data-theme] body.up-body[data-user-template][data-page] .up-catalog-table td{padding:0!important;width:auto!important;min-width:0}
 body.up-body .up-catalog-table td:nth-child(2){grid-column:1/-1}
 body.up-body .up-catalog-table .up-category-name{display:none}
 body.up-body .up-catalog-table [data-service-row] details summary{min-height:30px;display:flex;align-items:center}
}
@media(max-width:340px){body.up-body .experience-stats{grid-template-columns:minmax(0,1fr)!important}}
