@media screen {
/* Mobile layout refinements; dashboard selector keeps a half-width desktop field. */
@media(min-width:901px){body.portal-shell #console #dashboard-page .dash-entity-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body.portal-shell #console #dashboard-page .dash-entity-filter select{justify-self:end;width:100%}}
/* Keep native table scrolling local and keyboard focus visible. */
body.portal-shell #console .ui-table-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
body.portal-shell #console .ui-table-scroll:focus-visible{outline:3px solid #7566ce;outline-offset:-3px}
@media(max-width:900px){
 body.portal-shell #console .page{min-width:0;max-width:100%}
 body.portal-shell #console .page :is(.master-layout,.master-layout>*,.master-grid,.master-grid>*,.report-shell,.report-table-card,.list-card,.card,.pool-card){min-width:0;max-width:100%}
 body.portal-shell #console .page :is(.page-heading,.master-footer,.report-pagination,.dash-pagination,.subscriber-list-pager,.franchise-group-pager){gap:10px;flex-wrap:wrap}
 body.portal-shell #console .page .page-heading h1{overflow-wrap:anywhere}
 body.portal-shell #console .page :is(input,select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell #console .page .list-toolbar{align-items:stretch;gap:8px}
 body.portal-shell #console .page .list-toolbar .search-box{min-width:0;max-width:none;width:100%}
 body.portal-shell #console .page .master-footer>button{flex:1 1 120px;min-height:40px}
 body.portal-shell #console .page :is(.report-pagination,.dash-pagination){justify-content:flex-start;gap:8px}
 body.portal-shell #console .ui-table-scroll[data-horizontal-overflow="true"]::before{content:'↔ Swipe to see all columns';display:block;position:sticky;left:0;width:fit-content;max-width:100%;box-sizing:border-box;padding:7px 10px;color:#536687;background:#f2f5fc;border-radius:7px;font-size:11px;line-height:16px;white-space:normal}
}
@media(max-width:700px){
 body.portal-shell #console #subscribers-page .list-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:10px;padding:12px}
 body.portal-shell #console #subscribers-page .list-toolbar .search-box{flex:1 1 100%;width:100%;min-width:0}
 body.portal-shell #console #subscribers-page .subscriber-plan-filter{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;align-items:start;gap:5px;flex:1 1 130px;min-width:0;margin:0;font-size:12px;text-align:left}
 body.portal-shell #console #subscribers-page .subscriber-plan-filter>span{white-space:nowrap;word-break:normal}
 body.portal-shell #console #subscribers-page .subscriber-plan-filter select{width:100%;max-width:none;min-height:40px}
 body.portal-shell #console #subscribers-page #subscriber-status{flex:1 1 100%;width:100%;min-height:40px}
 body.portal-shell #console #subscribers-page .result-count{flex:1 1 100%;margin:0;text-align:left}
 body.portal-shell #console #subscribers-page .subscriber-list-tools{display:flex;flex:1 1 100%;gap:8px;width:100%}
 body.portal-shell #console #subscribers-page .subscriber-list-tools button{flex:1;min-width:0;min-height:40px}
 body.portal-shell #console #franchise-list-page .list-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;padding:12px}
 body.portal-shell #console #franchise-list-page .list-toolbar .search-box,body.portal-shell #console #franchise-list-page .list-toolbar>.result-count{grid-column:1/-1;width:100%;min-width:0;margin:0;text-align:left}
 body.portal-shell #console #franchise-list-page .list-toolbar>:is(select,button){width:100%;min-width:0;min-height:40px;white-space:normal;margin:0}
 body.portal-shell #console #franchise-list-page .franchise-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
 body.portal-shell #console #franchise-list-page .franchise-filter-bar label{grid-column:1/-1;min-width:0}
 body.portal-shell #console #franchise-list-page .franchise-filter-bar button{min-width:0;min-height:40px}
 body.portal-shell #console .page .master-grid{column-gap:12px;row-gap:14px}
}

}
