/* Al Hijra phone layout repairs: shared dashboard pages, not just Settings. */
@media(max-width:750px){
 html,body,#app{width:100%;max-width:100%;overflow-x:clip}
 *{box-sizing:border-box}
 .app-frame{display:block!important;width:100%;min-width:0}
 .app-frame .main-area{width:100%;min-width:0;max-width:100%}
 .app-frame .content-area{width:100%!important;max-width:100%!important;min-width:0!important;padding:14px 12px 28px!important;margin:0!important}
 .app-frame .mobile-head{display:flex!important;align-items:center;gap:8px;min-width:0;max-width:100%;padding:11px 12px!important;position:relative;z-index:8}
 .app-frame .mobile-head .mobile-school-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
 .app-frame .mobile-head button{flex-shrink:0;min-height:39px;font-size:12px}
 .app-frame .page-head{display:block!important;height:auto!important;min-height:0!important;margin:0 0 13px!important}
 .app-frame .page-head h1{font-size:clamp(25px,7vw,33px)!important;line-height:1.13!important;overflow-wrap:anywhere}
 .app-frame .page-head .eyebrow{font-size:10px}
 .app-frame .page-head .dashboard-top-tools{display:none!important}
 .app-frame .school-tab-content{width:100%;max-width:100%;min-width:0;gap:14px!important}
 .app-frame .grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
 .app-frame .grid>*{min-width:0!important;max-width:100%!important}
 .app-frame .panel{width:100%;max-width:100%;min-width:0;padding:16px!important;height:auto!important}
 .app-frame .panel h2,.app-frame .panel h3{overflow-wrap:anywhere;line-height:1.25}
 .app-frame form,.app-frame .field,.app-frame .row,.app-frame .section-title{min-width:0;max-width:100%}
 .app-frame input:not([type=checkbox]):not([type=radio]):not([type=color]),
 .app-frame select,.app-frame textarea{max-width:100%!important;min-width:0!important;width:100%!important;font-size:16px}
 .app-frame .row{flex-wrap:wrap;align-items:flex-start;overflow-wrap:anywhere}
 .app-frame .section-photo-banner{height:145px!important;max-width:100%;border-radius:14px}
 .app-frame .section-photo-content{max-width:100%;left:16px!important;right:16px!important}
 .app-frame .section-photo-content h2{font-size:clamp(21px,6vw,29px)!important;line-height:1.12}
 .app-frame .section-photo-content p{font-size:12px!important;line-height:1.4}
 .app-frame .section-title{margin:8px 0 14px}
 .app-frame .section-title h2{font-size:clamp(22px,6vw,29px)!important;line-height:1.2!important}
 .app-frame .section-title p{font-size:13px;line-height:1.5}
 .app-frame .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .app-frame .metric-card{min-width:0!important;padding:13px!important}
 .app-frame .metric-card strong{font-size:23px!important}
 .app-frame .school-administrator-settings .grid{grid-template-columns:minmax(0,1fr)!important}
 .app-frame .school-invite-history-list{max-width:100%;min-width:0}
 .app-frame .school-invite-history-row{display:flex!important;flex-direction:column!important;align-items:stretch!important}
 .app-frame .story-post-list,.app-frame .classwork-page,.app-frame .classroom-directory-page{max-width:100%;min-width:0}
 .app-frame .sidenav{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;z-index:1002!important;width:min(82vw,305px)!important;max-width:305px!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;white-space:normal!important;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility .2s ease}
 .app-frame .sidenav.mobile-nav-open{transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important}
 .app-frame .sidenav .sidebar-nav-item{width:100%!important;min-width:0!important;white-space:normal!important}
}
@media(max-width:380px){
 .app-frame .content-area{padding:12px 10px 25px!important}
 .app-frame .mobile-head{padding:9px!important}
 .app-frame .metric-grid{gap:8px}
 .app-frame .metric-card{padding:11px!important}
}
