/* Narrow and short screens, including small Android media players. */
@media screen and (max-width:560px){
 html .app-shell,html .app-shell>.main{max-width:100%;min-width:0}
 html .page{padding:18px 12px calc(108px + env(safe-area-inset-bottom,0px));min-width:0}
 html .page-title{align-items:stretch;flex-direction:column;gap:12px}
 html .page-title h1{font-size:clamp(24px,7vw,32px)}
 html .page-title p{font-size:14px}
 html .page-title>.btn,html .page-title .page-actions{width:100%}
 html .card{padding:14px;border-radius:24px;min-width:0}
 html .filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 html .filters>*{min-width:0;max-width:100%;width:100%;margin:0}
 html .filters input,html .filters .custom-select-trigger,html .filters .btn{min-height:44px}
 html .student-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 html .student-card-main{padding:14px 14px 52px}
 html .student-card-top strong{font-size:15px;white-space:normal;overflow-wrap:anywhere}
 html .student-card-meta{font-size:12px}
 html .student-actions{bottom:10px;inset-inline-end:12px;inset-inline-start:auto}
 html .student-actions .icon-btn{width:36px;height:36px}
 html .settings-page .settings-option-card{padding:14px;min-width:0}
 html .settings-page .primary-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html .settings-page .theme-schedule-fields{grid-template-columns:1fr}
 html dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:16px;border-radius:24px}
 html .floating-tabs{gap:2px;padding:5px;inset-inline:8px;width:calc(100% - 16px);border-radius:26px}
 html .floating-tabs .floating-tab{min-width:0;flex:1;min-height:54px;padding:8px 3px;border-radius:15px}
 html .floating-tab span{font-size:10px;overflow-wrap:anywhere}
 html .topbar{margin:8px 8px 0;padding:6px 8px;height:auto;min-height:54px;gap:4px;border-radius:26px}
 html .topbar .icon-btn,html .topbar .account-trigger,html .topbar .global-search-trigger{width:34px;min-width:34px;height:40px;flex:0 0 34px}
 html .topbar .network-status{font-size:10px;padding:4px 6px}
 html .table-wrap{max-width:100%;overflow-x:auto}
 html .form-grid,html .detail-grid,html .account-details{grid-template-columns:minmax(0,1fr)}
}
@media screen and (max-width:360px){
 html .page{padding-inline:8px}
 html .topbar{flex-wrap:wrap}
 html .topbar .topbar-spacer{flex-basis:0}
 html .topbar .network-status{max-width:100%}
 html .card{padding:12px}
 html .topbar .icon-btn,html .topbar .account-trigger,html .topbar .global-search-trigger{width:30px;min-width:30px;flex-basis:30px}
 html .topbar .network-status{font-size:9px;padding-inline:4px}
 html .settings-page .settings-tabs{gap:4px}
 html .floating-tab span{font-size:9px}
 html .login-card{padding:18px;max-width:calc(100vw - 20px)}
 html .login-brand img{width:min(150px,50vw);height:auto}
}
@media screen and (max-height:480px) and (max-width:1100px){
 html .page{padding-top:12px;padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 html .topbar{position:relative;top:auto;min-height:48px}
 html .floating-tabs{bottom:calc(4px + env(safe-area-inset-bottom,0px))}
 html .floating-tabs .floating-tab{min-height:44px;padding-block:4px}
 html .login-page{min-height:100dvh;padding:12px;align-items:flex-start}
 html .login-brand img{width:96px;height:96px}
 html .login-card{margin-block:8px}
 html .welcome-splash .splash-logo-wrap img{width:96px;height:96px}
 html .camera-frame,html .transport-sale-inline-scan .camera-frame{min-height:120px}
 html .transport-sale-inline-scan video{height:min(180px,40dvh);min-height:120px}
}
