.teacher-homework-integrated .teacher-homework-quick-templates {
  position: relative;
  display: block;
}
.teacher-homework-quick-templates > .phase7-section {
  display: flex;
  flex-direction: column;
  min-block-size: 0;
  max-block-size: 22rem;
}
.teacher-homework-quick-templates > .phase7-section > .phase7-section-body {
  min-block-size: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
@media (min-width: 1181px) {
  .teacher-homework-integrated .teacher-homework-new-with-templates > .teacher-homework-quick-templates {
    align-self: stretch;
  }
  .teacher-homework-quick-templates > .phase7-section {
    position: absolute;
    inset: 0;
    max-block-size: none;
  }
}
.teacher-homework-integrated .phase7-template-sidebar .tool-field + :is(.phase7-template-list, .phase7-empty) {
  margin-block-start: 12px;
}

/* Class Zaban PR1127: only teacher homework deadline checkbox. */
.teacher-homework-integrated .teacher-homework-deadline-toggle>input[type="checkbox"]{width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;flex:0 0 16px}

/* PR1127: live injected picker label has no .teacher-homework-deadline-toggle class. */
.teacher-homework-integrated .phase7-target-grid > .tool-field > label > input[type="checkbox"]{width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;flex:0 0 16px}
