/* Classroom Pointer: readable, single-panel student controls.
   Only presentation changes: existing permission and roster handlers remain intact. */
body.teacher-view #teacherDock #tbStudentsMenu {
  position:fixed;
  z-index:120;
  inset:72px 18px auto auto;
  width:min(660px,calc(100vw - 36px));
  max-width:none;
  height:min(76dvh,720px);
  max-height:calc(100dvh - 90px);
  padding:18px;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#fff;
  border:2px solid #b9c9e3;
  border-radius:18px;
  box-shadow:0 16px 65px #142d5266;
  color:#172033;
  font-size:15px;
}
body.teacher-view #teacherDock #tbStudentsMenu::before {
  content:"STUDENT CONTROLS";
  display:block;
  font-size:18px;
  font-weight:850;
  letter-spacing:.03em;
  color:#173f82;
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid #d9e3ef;
}
body.teacher-view #teacherDock #tbStudentsMenu .permission-tools{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:9px;
  background:#edf4ff;
  padding:14px;
}
body.teacher-view #teacherDock #tbStudentsMenu .permission-tools strong{
  grid-column:1/-1;
  font-size:15px;
}
body.teacher-view #teacherDock #tbStudentsMenu .permission-tools label{
  min-height:44px;
  font-size:14px;
  justify-content:center;
  padding:10px 8px;
}
body.teacher-view #teacherDock #tbStudentsMenu .pointer-bulk-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
body.teacher-view #teacherDock #tbStudentsMenu .pointer-bulk-actions button{
  min-height:42px;
  font-size:14px;
  background:#f1f5fc;
  border:1px solid #cbd8ea;
}
body.teacher-view #teacherDock #tbStudentsMenu #roster{
  width:100%;
  margin-top:12px;
  font-size:14px;
  overflow:visible;
}
body.teacher-view #teacherDock #tbStudentsMenu .roster-row{
  border:1px solid #d9e3f0;
  border-radius:11px;
  padding:10px 12px;
  margin:7px 0;
  background:#fff;
  gap:8px 14px;
}
body.teacher-view #teacherDock #tbStudentsMenu .roster-row button,
body.teacher-view #teacherDock #tbStudentsMenu .roster-row label{
  min-height:35px;
  font-size:13px;
}
body.teacher-view #teacherDock #tbStudentsMenu input[type=checkbox]{
  width:19px;
  height:19px;
  accent-color:#2463df;
}
body.teacher-view #teacherDock #tbStudentsBtn{
  background:#e8f0ff;
  border:1px solid #aac5f4;
  color:#194b9b;
  font-weight:800;
  min-height:42px;
}
body.teacher-view #teacherDock #tbStudentsBtn[aria-expanded=true]{
  background:#245fd2;
  color:white;
}
@media(max-width:700px){
  body.teacher-view #teacherDock #tbStudentsMenu{
    inset:54px 8px auto 8px;
    width:auto;
    height:min(78dvh,700px);
    padding:12px;
  }
  body.teacher-view #teacherDock #tbStudentsMenu .permission-tools{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:8px;
    gap:5px;
  }
  body.teacher-view #teacherDock #tbStudentsMenu .permission-tools label{
    font-size:12px;
    padding:6px 4px;
  }
}
/* The fullscreen toolbar floats inside #stage: keep controls on-screen. */
#stage .teacher-dock.floating #tbStudentsMenu{
  position:fixed;
  top:16px;
  right:16px;
  bottom:auto;
  left:auto;
  width:min(620px,calc(100vw - 220px));
  height:min(85dvh,740px);
  max-height:calc(100dvh - 32px);
}
@media(max-width:680px){
  #stage .teacher-dock.floating #tbStudentsMenu{
    top:8px;
    right:8px;
    width:calc(100vw - 80px);
  }
}
