.student-sections-toggle { display:none; }
@media (max-width:620px) {
  [data-shell] > .sidebar { grid-template-areas:'brand identity' 'sections sections' 'nav nav'; gap:.5rem; padding:.65rem max(1rem, env(safe-area-inset-right)) .5rem max(1rem, env(safe-area-inset-left)); }
  .student-sections-toggle { grid-area:sections; display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:44px; width:100%; padding:.6rem .75rem; border:1px solid #ffffff45; border-radius:6px; background:transparent; color:white; font:inherit; font-size:.9rem; text-align:left; box-shadow:none; }
  .student-sections-toggle > span:last-child { font-size:.8rem; }
  [data-shell] > .sidebar nav { display:none; }
  [data-shell] > .sidebar.student-sections-open nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:55dvh; overflow:auto; gap:.35rem; }
  [data-shell] > .sidebar nav .nav-item { min-height:44px; white-space:normal; font-size:.85rem; line-height:1.3; padding:.7rem; }
  [data-shell] > .sidebar nav [hidden] { display:none !important; }
  [data-shell] .content { min-width:0; padding:0 1rem max(1rem,env(safe-area-inset-bottom)); }
  [data-shell] .profile-menu { box-shadow:none; }
  [data-files-view] .folders { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  [data-files-view] .folder { min-height:68px; min-width:0; }
  [data-files-view] .folder__name { font-size:.8rem; white-space:normal; }
  [data-files-view] .files-folder-actions { flex-wrap:wrap; }
  [data-files-view] .files-folder-actions button { min-width:44px; min-height:44px; }
  [data-shell] input, [data-shell] select, [data-shell] textarea, .login input { font-size:16px; }
  [data-shell] .identity__summary { min-height:44px; }
}
