.workspace-shell-ready #student-program-panel #weekly-program-table.program-compact {width:100%;min-width:0;table-layout:fixed;}
.workspace-shell-ready #student-program-panel .program-editor-scroll:is(:fullscreen,:-webkit-full-screen,.is-pseudo-fullscreen) #weekly-program-table {width:100%;min-width:0;min-height:0;}
/* Keep this after the normal viewport rule: it previously reset fullscreen
   to 69vh. Native fullscreen and the Safari fallback share the same sizing. */
.workspace-shell-ready #student-program-panel .program-editor-scroll:is(:fullscreen, :-webkit-full-screen, .is-pseudo-fullscreen) {
  width: 100%;
  height: 100dvh;
  max-height: none;
  min-height: 100dvh;
  padding: 8px;
}

/* Overview keeps subject + topic; the dialog retains every editable field. */
.workspace-shell-ready #student-program-panel #weekly-program-table.program-compact :is(th, td) {
  min-width: 0;
  width: auto;
  padding: 4px;
  overflow-wrap: anywhere;
}
.workspace-shell-ready #student-program-panel #weekly-program-table.program-compact tr > :first-child {
  width: 76px;
  min-width: 0;
}
.workspace-shell-ready #student-program-panel .program-compact .program-block-open {
  min-height: 52px;
  padding: 7px;
  gap: 3px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.workspace-shell-ready #student-program-panel .program-compact .program-block-open :is(strong, span) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.workspace-shell-ready #student-program-panel .program-compact .program-block-open :is(span:nth-of-type(2), small),
.workspace-shell-ready #student-program-panel .program-compact .slot-label {
  display: none;
}
.workspace-shell-ready #student-program-panel .program-compact :is(.program-row-selector, .remove-program-block) {
  min-height: 28px;
  padding: 4px 2px;
  font-size: 9px;
  white-space: nowrap;
}
.workspace-shell-ready #student-program-panel .program-compact .remove-program-block {
  margin-top: 4px;
}
@media (max-width: 640px) {
  .workspace-shell-ready #student-program-panel #weekly-program-table.program-compact {
    min-width: 700px;
  }
}
