/* A full-height work area, with all classroom controls in a single dock. */
html:has(body.classroom-app) { height: 100%; overflow: hidden; }
body.classroom-app {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 56px 0 0;
  overflow: hidden;
  box-sizing: border-box;
  --dock-height: 65px;
}
.classroom-workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 18px 24px;
  display: grid;
  place-items: center;
  container-type: size;
}
.classroom-app #classroomCanvasFrame {
  position: relative;
  inset: auto;
  width: min(100cqw, calc(100cqh * 297 / 210));
  height: auto;
  aspect-ratio: 297 / 210;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #ccd0d9, 0 4px 18px #17171709;
}
.classroom-app .classroom-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.classroom-app #optionCenter.classroom-dock {
  position: relative;
  inset: auto;
  z-index: 400;
  display: flex !important;
  flex: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: 100%;
  margin: 0;
  padding: 12px 24px max(12px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.classroom-dock :is(.dock-edit-actions, .dock-view-actions, .dock-mode-actions) { display: flex; align-items: center; gap: 8px; }
.classroom-dock .dock-view-actions { margin-left: auto; }
.classroom-app .classroom-dock button { min-height: 38px; padding: 8px 11px; font-size: 13px; line-height: 20px; white-space: nowrap; }
.classroom-app .classroom-dock :is(#plehG, #exportMenuToggle) { background: var(--blue); border-color: var(--blue); color: white; }
.classroom-app .classroom-dock :is(#plehG, #exportMenuToggle):hover { background: #003fa9; }
.classroom-app .classroom-dock :is(#desksMenuToggle, #studentsMenuToggle) { border-color: transparent; }
.classroom-app .classroom-dock button[aria-expanded="true"] { background: #eaf0fc; border-color: #b6cbed; color: var(--blue); }
.classroom-dock .dock-chevron { font: 18px/1 'Artific', sans-serif; margin-left: 2px; }
.classroom-dock .zoom-controls { padding: 0; margin: 0; border: 0; gap: 1px; }
.classroom-app .classroom-dock :is(#zoomInBtn, #zoomOutBtn) { width: 32px; padding: 7px; border-color: transparent; }
.classroom-app .classroom-dock #zoomLabel { display: flex; align-items: center; justify-content: center; width: 45px; min-width: 45px; height: auto; margin: 0; padding: 0; border: 0; background: transparent; font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }
.dock-divider { height: 24px; width: 1px; background: var(--line); margin: 0 3px; }
.classroom-app #optionCenter .dock-panel {
  box-sizing: border-box;
  position: fixed;
  inset: auto auto calc(var(--dock-height) + 10px) 24px;
  width: 330px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - var(--dock-height) - 82px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 20px;
  border: 1px solid #cdd5e3;
  border-radius: 9px;
  background: #f9f9fb;
  box-shadow: 0 10px 40px #15244026;
  opacity: 1 !important;
  transform: none !important;
}
.classroom-app #optionCenter .dock-panel[hidden] { display: none !important; }
.classroom-app #optionCenter .dock-panel > button { width: 100%; justify-content: flex-start; margin: 0 0 8px; white-space: normal; }
.classroom-app #optionCenter .dock-panel > button:last-child { margin-bottom: 0; }
.classroom-app #optionCenter .dock-panel #canard { margin: 0 0 8px; }
.dock-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.classroom-app .dock-panel-heading h2 { margin: 0; color: var(--blue); font-size: 27px; }
.classroom-app .dock-panel-heading button { flex: none; width: 30px; min-height: 30px; height: 30px; padding: 0; border-color: transparent; background: transparent; font-size: 24px; }
.classroom-app .dock-panel-description { margin: 0 0 16px; font-size: 14px; line-height: 21px; color: var(--muted); }
.dock-panel-separator { height: 1px; margin: 12px 0 18px; background: var(--line); }
.classroom-app #optionCenter .dock-export-panel { right: 24px; left: auto; width: 300px; }
.dock-export-panel small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.classroom-app #optionCenter #studentListDiv { box-sizing: border-box; }
/* Waiting labels stay above the non-modal panel so they can be dragged to a desk. */
.classroom-app #labelPark { position: fixed; display: block !important; height: 0; min-height: 0 !important; visibility: hidden; z-index: 450; pointer-events: none; transform: none !important; opacity: 1 !important; }
.classroom-app.students-panel-open #labelPark { visibility: visible; }
.classroom-app #labelPark .dadLabel { display: flex !important; pointer-events: auto; transition: none !important; }
.classroom-app #labelPark .dadLabel.dragged { clip-path: none !important; }
.classroom-app #helpCenter { top: 68px; max-height: calc(100dvh - var(--dock-height) - 82px); }
.classroom-app #saveStatus:not([hidden]) { bottom: calc(var(--dock-height) + 12px); }
@media (max-width: 1100px) {
  .classroom-app #optionCenter.classroom-dock { gap: 8px; padding-inline: 16px; }
  .classroom-dock :is(.dock-edit-actions, .dock-view-actions, .dock-mode-actions) { gap: 4px; }
  .classroom-app .classroom-dock button { padding-inline: 9px; font-size: 12px; gap: 6px; }
  .classroom-dock :is(.dock-center-label, .dock-invert-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 760px) {
  .classroom-workspace { margin: 12px 16px; }
  .classroom-app #optionCenter.classroom-dock { padding: 8px 12px max(8px, env(safe-area-inset-bottom)); gap: 8px; }
  .classroom-dock .dock-edit-actions { width: 100%; justify-content: space-between; }
  .classroom-dock .dock-view-actions { width: 100%; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
  .classroom-dock .dock-mode-actions { gap: 4px; }
  .classroom-app .classroom-dock button { min-height: 36px; padding: 7px 8px; font-size: 12px; }
  .classroom-app .classroom-dock :is(#desksMenuToggle, #studentsMenuToggle) { gap: 4px; }
  .classroom-app .classroom-dock :is(#desksMenuToggle, #studentsMenuToggle) .pixel-icon { display: none; }
  .classroom-dock .dock-divider { margin: 0; }
  .classroom-app #optionCenter .dock-panel { left: 16px; right: auto; }
  .classroom-app #optionCenter .dock-export-panel { right: 16px; left: auto; }
}
@media (max-width: 420px) {
  .classroom-app .classroom-dock button { padding-inline: 6px; font-size: 11px; }
  .classroom-dock .dock-chevron, .classroom-dock #importBureausBtn .pixel-icon { display: none; }
  .classroom-app .classroom-dock :is(#zoomInBtn, #zoomOutBtn) { width: 28px; padding: 5px; }
  .classroom-app .classroom-dock #zoomLabel { min-width: 40px; width: 40px; }
}
.classroom-app #optionCenter .dock-panel button { font-size: 13px; }
.classroom-app #optionCenter .dock-panel-heading button { font-size: 24px; }
