/* v036: visual-only mobile density refinement. Navigation and business flow stay in PHP. */
@media(max-width:760px){
 :root{--shell-top:64px}
 body{font-size:14px;line-height:1.42;padding-bottom:0}
 .topbar{height:64px!important;min-height:64px!important;padding:5px 9px!important;border-bottom-width:3px!important}
 .brand-row{min-width:0;gap:7px}.mobile-menu{width:38px;height:38px;border-radius:12px;font-size:21px;flex:0 0 auto}
 .topbar .brand{min-width:0;gap:7px!important}.topbar .brand-logo-frame{width:62px!important;height:44px!important;padding:5px!important;border-radius:11px!important;flex:0 0 auto}
 .topbar .center-identity{min-width:0}.topbar .center-identity b{font-size:13px!important;line-height:1.05;white-space:nowrap}.topbar .center-identity strong{font-size:8px!important;line-height:1.1;letter-spacing:.11em}
 .topbar .userbox{gap:4px!important}.topbar .link-button{min-width:52px;min-height:38px!important;padding:5px 8px!important;border-radius:12px!important;font-size:10px!important}
 .sidebar{top:64px;width:min(292px,84vw);padding:12px 10px 22px}.sidebar .nav-label{margin:13px 9px 4px}.sidebar a{min-height:42px;padding:8px 10px}
 .content{padding:76px 10px calc(82px + env(safe-area-inset-bottom))!important}.view-as-banner{top:64px!important;right:0!important;bottom:auto!important;left:0!important;min-height:58px!important;height:auto!important;padding:7px 10px!important;align-items:center!important}.view-as-banner>span{min-width:0;line-height:1.2}.view-as-banner small{font-size:10px}.view-as-banner button{min-height:38px;padding:0 10px;font-size:10px;white-space:nowrap}.is-viewing-as .sidebar{top:122px}.is-viewing-as .content{padding-top:134px!important}
 .role-return-banner{top:69px;right:8px;left:8px;padding:6px 7px 6px 11px;border-radius:14px}.role-return-banner button{min-height:34px;padding:0 10px;font-size:11px}
 .eyebrow{margin-bottom:5px;font-size:10px;letter-spacing:.13em}.page-head{margin-bottom:12px!important}.page-head h1,.section-heading h1{font-size:24px!important;line-height:1.12}.panel-head h2,.section-heading h2{font-size:19px;line-height:1.2}
 .panel,.card{padding:14px;border-radius:18px}.panel{margin-bottom:12px}.panel-head{margin-bottom:10px;gap:10px}.muted,.panel p,.card p{font-size:13px}
 .dashboard-hero{min-height:158px!important;height:158px;margin-bottom:11px!important;padding:17px 38% 16px 17px!important;border-radius:23px!important}
 .dashboard-hero .hero-copy{max-width:none!important}.dashboard-hero h1{margin-bottom:7px!important;font-size:27px!important;line-height:1.02!important;letter-spacing:-.5px}.dashboard-hero p{margin:0;font-size:12.5px;line-height:1.32}.dashboard-hero .mascot-dashboard{right:-17px!important;bottom:-14px!important;width:42%!important;height:145px!important;object-fit:contain}.dashboard-hero .hero-spark{display:none}
 .mini-stats,.parity-summary-cards{gap:7px!important;margin-bottom:11px!important}.mini-stats a,.parity-summary-cards a{min-height:80px!important;padding:9px 14px 9px 7px!important;border-radius:17px!important;gap:5px!important}.mini-stats a strong{font-size:26px!important}.mini-stats a span{font-size:10px!important;line-height:1.15!important}.mini-stats a i{right:5px!important;font-size:21px!important}
 .parity-attention{padding:13px 14px!important;margin-top:11px!important;margin-bottom:11px!important}.parity-attention .panel-head{align-items:center!important;flex-direction:row!important}.parity-attention h2{font-size:18px}.parity-attention>p{margin:3px 0 0;font-size:12px;line-height:1.35}.parity-attention .badge{padding:6px 9px;font-size:10px;white-space:nowrap}
 .compact-menu-grid,.parity-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:0!important}.compact-menu-card{min-height:88px!important;padding:11px!important;border-radius:18px!important;gap:8px!important}.compact-menu-card .icon{width:39px!important;height:39px!important;border-radius:13px!important;font-size:19px!important;flex:0 0 auto}.compact-menu-card strong{font-size:15px!important;line-height:1.15;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.compact-menu-card small{font-size:10.5px!important;line-height:1.25;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.compact-menu-card .card-chevron{font-size:21px}
 .parity-directory{gap:9px}.parity-directory .parity-link{min-height:76px;padding:13px 14px;border-radius:18px}.parity-directory .parity-link strong{font-size:15px}.parity-directory .parity-link small{font-size:11px;line-height:1.3}.parity-hero{margin-bottom:13px;padding:14px 2px}.parity-hero h1{margin:2px 0 5px;font-size:25px;line-height:1.1}.parity-hero p{margin:0;font-size:13px}
 .mobile-bottom-nav{right:6px!important;bottom:max(5px,env(safe-area-inset-bottom))!important;left:6px!important;min-height:62px!important;height:62px;padding:4px!important;border-radius:18px!important}.mobile-bottom-nav a,.mobile-bottom-nav button{min-height:52px!important;border-radius:14px!important}.mobile-bottom-nav span,.mobile-bottom-nav button span{font-size:19px!important}.mobile-bottom-nav small,.mobile-bottom-nav button small{font-size:9px!important;line-height:1.05}
 .student-search-heading{min-height:148px!important;height:148px;padding:17px 38% 16px 17px!important;border-radius:23px!important}.student-search-heading h1{font-size:25px!important}.student-search-heading p{font-size:12px;line-height:1.32}.mascot-student-search{right:-12px;bottom:-13px;width:43%;height:138px}.master-enrollment,.autocomplete-search{padding:13px!important}.student-filter-chips{gap:6px;margin:10px 0}.student-filter-chips a{min-height:38px;padding:0 12px;font-size:12px}.student-suggestions{max-height:min(230px,30dvh)}.selected-student-list{gap:7px!important;margin-top:11px!important}.selected-student-card{min-height:80px!important;padding:11px!important;gap:10px!important;border-radius:17px!important}.selected-student-card h2{font-size:17px!important;line-height:1.16}.selected-student-card p,.selected-student-card small{font-size:11px!important}.selected-student-card .student-quick-actions{gap:6px!important}.selected-student-card .student-quick-actions a{min-height:38px!important;font-size:11px!important}
 .profile-identity-card{min-height:146px;padding:15px 31% 13px 15px;border-radius:22px}.profile-identity-card h1{font-size:22px;line-height:1.06}.profile-identity-card .student-profile-code{margin-bottom:7px;font-size:11px}.profile-identity-card .badge{padding:6px 9px;font-size:10px}.profile-identity-card dl{margin-top:7px}.profile-identity-card dt{font-size:9px}.profile-identity-card dd{font-size:12px}.mascot-profile-small{right:-14px;bottom:-18px;width:35%;height:132px}.profile-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:9px 0}.profile-action-grid a{min-height:62px;padding:6px;border-radius:15px;font-size:10px}.profile-action-grid i{width:27px;height:27px;font-size:16px}.profile-summary-grid{gap:7px}.profile-summary-grid article{min-height:98px;padding:11px;border-radius:16px}.profile-summary-grid strong{font-size:16px}.parent-info-card{margin-top:9px}.parent-info-grid{gap:6px}
 .schedule-actions,.coach-chips,.dialog-actions{gap:6px;margin:8px 0}.coach-chips a{min-height:36px;padding:0 11px;font-size:11px}.coach-column{padding:12px}.coach-column h2{font-size:18px}.schedule-card{grid-template-columns:80px minmax(0,1fr);gap:7px;padding:9px 3px;font-size:12px}.schedule-card time{font-size:12px}.schedule-card small{font-size:10.5px}.schedule-filter{gap:9px;margin-bottom:11px}.schedule-filter input,.schedule-filter select{min-height:44px}.schedule-dialog{padding:14px;border-radius:19px}.schedule-dialog details{padding:10px}
 .attendance-card{padding:12px!important;border-radius:18px!important}.attendance-card h2{font-size:17px}.attendance-main p{font-size:12px}.attendance-actions.two-status{gap:7px}.two-status .attendance-btn{min-height:50px!important;font-size:14px!important;border-radius:13px!important}
 .spr-form{gap:14px}.spr-simple-fields{gap:9px}.spr-simple-fields input,.spr-simple-fields select,.spr-form textarea{min-height:44px;margin-top:5px}.rating-list{gap:9px}.rating-list fieldset{padding:11px;border-radius:16px}.rating-list legend{font-size:14px}.rating-chips{gap:7px}.rating-chips span{min-height:46px;padding:7px 5px;border-radius:12px;font-size:12px}.spr-submit{gap:7px}.spr-history-list{gap:9px}.spr-history-card{padding:13px}.spr-history-card h2{font-size:17px}.progress-grid{margin:9px 0;gap:6px}.progress-grid div{padding:9px;font-size:12px}
 .child-picker{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;margin-bottom:10px;padding:12px}.child-picker h2{font-size:17px}.child-picker .eyebrow{display:none}.child-tabs{justify-content:flex-end;flex-wrap:nowrap;max-width:100%;overflow-x:auto}.child-tab{min-height:38px;padding:0 13px;font-size:12px;white-space:nowrap}
 .portal-hero{min-height:162px;height:162px;padding:17px 39% 16px 17px;margin-bottom:11px;border-radius:23px}.student-hero{min-height:174px;height:174px}.portal-hero h1{font-size:27px!important;line-height:1.04}.portal-hero p{margin:7px 0;font-size:12px;line-height:1.3}.portal-hero .mascot-portal{right:-15px!important;bottom:-17px!important;width:43%!important;height:153px!important}.student-hero .mascot-portal{height:164px!important}.portal-cta{min-height:40px;padding:0 13px;font-size:12px}
 .portal-grid{gap:9px}.portal-grid.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.portal-card{min-height:148px;padding:14px;border-radius:19px}.portal-grid.dashboard-grid .portal-card{min-height:164px;padding:12px}.portal-card .portal-icon{width:34px;height:34px;margin-bottom:7px;border-radius:11px;font-size:17px}.portal-card h2{margin:2px 0 5px;font-size:17px;line-height:1.15}.portal-card p{font-size:11px;line-height:1.3}.portal-card .big-value{font-size:20px}.portal-link{padding-top:7px;font-size:11px}.academic-position,.practice-dashboard-card{margin-top:9px}.mini-progress{grid-template-columns:1fr;gap:5px}.mini-progress span{padding:7px}.mini-progress small,.mini-progress strong{font-size:10px}
 .section-heading{gap:9px;margin-bottom:12px}.portal-list,.practice-list{gap:9px}.portal-row{grid-template-columns:65px minmax(0,1fr);gap:9px;padding:12px}.portal-row time{min-height:60px;border-radius:14px}.portal-row time strong{font-size:17px}.portal-row h2{font-size:17px}.friendly-badges{gap:5px;margin-top:7px}.friendly-badges span{padding:5px 8px;font-size:10px}.friendly-empty{padding:24px 14px}
 .package-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.package-overview .portal-card{min-height:112px!important;padding:12px!important}.package-history{margin-top:14px}.package-cycle{gap:9px;padding:12px}.package-cycle h2{font-size:17px}
 .practice-heading .compact-btn{min-height:42px;padding:0 13px;font-size:12px}.practice-tabs{gap:5px;margin-bottom:10px;overflow-x:auto}.practice-tabs span{padding:7px 11px;font-size:11px;white-space:nowrap}.practice-card{gap:10px;padding:13px}.practice-card h2{margin:6px 0 3px;font-size:17px}.practice-actions{gap:6px}.practice-actions .btn{min-height:42px;font-size:12px}.practice-hero{padding:17px;margin-bottom:11px;border-radius:21px}.practice-hero h1{font-size:27px}.question-card,.practice-builder{padding:13px}.question-number{width:38px;height:38px;font-size:18px}.answer-options span{min-height:50px}
}
@media(max-width:370px){
 .topbar .brand-logo-frame{width:56px!important}.topbar .center-identity b{font-size:12px!important}.topbar .link-button{min-width:48px;padding:4px 6px!important}
 .dashboard-hero{min-height:150px!important;height:150px;padding-right:36%!important}.dashboard-hero h1{font-size:24px!important}.dashboard-hero p{font-size:11.5px}.dashboard-hero .mascot-dashboard{width:40%!important;height:135px!important}
 .mini-stats a,.parity-summary-cards a{min-height:76px!important;padding-inline:5px 12px!important}.mini-stats a strong{font-size:24px!important}.mini-stats a span{font-size:9.5px!important}
 .compact-menu-card{min-height:84px!important;padding:9px!important}.compact-menu-card .icon{width:35px!important;height:35px!important;font-size:17px!important}.compact-menu-card strong{font-size:14px!important}.compact-menu-card small{font-size:10px!important}
 .profile-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-hero{padding-right:36%}.portal-hero h1{font-size:24px!important}.portal-grid.dashboard-grid{grid-template-columns:1fr!important}.portal-grid.dashboard-grid .portal-card{min-height:138px}.package-overview{grid-template-columns:1fr 1fr!important}
}
