/* Teacher Dashboard mobile readability — Android, iOS, and browser desktop-site scaling.
   Keep wide desktop dashboards unchanged. */
@media screen and (max-width:760px), screen and (max-width:1400px) and (pointer:coarse){
  .role-dashboard.teacher-studio{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;overflow-x:clip!important;font-size:16px!important;line-height:1.45!important}
  .teacher-studio .teacher-category-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;
    min-width:0!important;max-width:100%!important;width:100%!important
  }
  .teacher-studio .teacher-category-grid>.teacher-category{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
  .teacher-studio .dash-panel{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;padding:16px!important;border-radius:17px!important}
  .teacher-studio .teacher-category-head{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 12px!important;min-width:0!important}
  .teacher-studio .teacher-category-head>div{flex:1 1 auto!important;min-width:0!important}
  .teacher-studio .teacher-category-icon{display:grid!important;place-items:center!important;flex:0 0 48px!important;min-width:48px!important;width:48px!important;height:48px!important;line-height:1!important;font-size:27px!important;border-radius:13px!important}
  .teacher-studio .teacher-category-head h2,.teacher-studio .teacher-workspace-heading h2{font-size:21px!important;line-height:1.25!important;font-weight:800!important;margin:0 0 4px!important;overflow-wrap:anywhere}
  .teacher-studio .teacher-category-head p,.teacher-studio .teacher-workspace-heading p{font-size:14px!important;line-height:1.45!important;margin:0!important}
  .teacher-studio .dash-action-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;min-width:0!important}
  .teacher-studio button.dash-action{box-sizing:border-box!important;display:flex!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:68px!important;padding:12px 13px!important;gap:13px!important;border-radius:13px!important;text-align:left!important;white-space:normal!important}
  .teacher-studio .dash-action-icon{display:grid!important;place-items:center!important;flex:0 0 47px!important;width:47px!important;min-width:47px!important;height:47px!important;min-height:47px!important;border-radius:12px!important;font-size:26px!important;line-height:1!important}
  .teacher-studio .dash-action>span:nth-child(2){display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important}
  .teacher-studio .dash-action b{font-size:16px!important;line-height:1.35!important;font-weight:800!important;white-space:normal!important;overflow-wrap:anywhere}
  .teacher-studio .dash-action small{font-size:13px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere;opacity:.9}
  .teacher-studio .dash-action .dash-arrow{flex:0 0 20px!important;font-size:20px!important;line-height:1!important}
  .teacher-studio .dash-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important}
  .teacher-studio .dash-stat{width:100%!important;min-width:0!important;min-height:85px!important;padding:12px!important;gap:10px!important;white-space:normal!important}
  .teacher-studio .dash-stat-icon{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;font-size:24px!important;line-height:1!important}
  .teacher-studio .dash-stat-value{font-size:23px!important;line-height:1.15!important}
  .teacher-studio .dash-stat-label{font-size:12px!important;line-height:1.35!important;white-space:normal!important}
  .teacher-studio .teacher-duty-panel{padding:16px!important}
  .teacher-studio .teacher-duty-item{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:9px!important;padding:13px!important}
  .teacher-studio .teacher-duty-item>div:first-child{flex:1 1 200px!important;min-width:0!important}
  .teacher-studio .teacher-duty-item strong{font-size:16px!important;line-height:1.4!important}
  .teacher-studio .teacher-duty-item p,.teacher-studio .teacher-duty-item small{font-size:13px!important;line-height:1.5!important;white-space:normal!important}
  .teacher-studio .teacher-duty-status{font-size:12px!important}
  .teacher-studio .teacher-duty-footer{display:flex!important;flex-wrap:wrap!important;gap:10px!important}
  .teacher-studio .teacher-duty-footer button{min-height:44px!important;font-size:14px!important}
  .teacher-studio .teacher-duty-footer small{font-size:12px!important;line-height:1.45!important}
  .teacher-studio .teacher-activity .teacher-empty{font-size:14px!important;line-height:1.5!important}
  .teacher-studio button:focus-visible{outline:3px solid #3b82f6!important;outline-offset:2px!important}
}
@media screen and (max-width:420px){
  .teacher-studio .dash-stats{grid-template-columns:minmax(0,1fr)!important}
  .teacher-studio .dash-stat{min-height:72px!important}
  .teacher-studio .teacher-category-grid{gap:12px!important}
  .teacher-studio .dash-panel{padding:14px!important}
}
@media (prefers-reduced-motion:reduce){
 .teacher-studio button.dash-action{transition:none!important}
}