/* Classroom presentation only. Existing scan, disclosure and record handlers
 * remain the owners of behavior in both the website and the packaged app. */
@layer peLocalTypography {
  html body :is(#app, #classroomToolsContent12307) .classroomFlow .classroomCatchupList
  > button:is([data-catchup-index], [data-session-catchup-student]) > .type.paps {
    background: #e8f3ff !important;
    color: #1765a6 !important;
    -webkit-text-fill-color: #1765a6 !important;
  }
  html body :is(#app, #classroomToolsContent12307) .classroomFlow .classroomCatchupList
  > button:is([data-catchup-index], [data-session-catchup-student]) > .type.assessment {
    background: #f1eaff !important;
    color: #7044aa !important;
    -webkit-text-fill-color: #7044aa !important;
  }

  @media (max-width: 768px) {
    /* 5px roster border + 8px summary inset = 1px bulk border + 12px inset. */
    html body #app .classroomFlow .classroomBulkWrap > #classroomBulkMenuToggle {
      position: relative !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: 60px !important;
      height: auto !important;
      padding: 14px 40px 14px 12px !important;
      box-sizing: border-box !important;
      text-align: left !important;
    }
    html body #app .classroomFlow #classroomBulkMenuToggle > span:first-child {
      display: block !important;
      min-width: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      font-size: 15px !important;
      line-height: 1.4 !important;
      text-align: left !important;
    }
    html body #app .classroomFlow #classroomBulkMenuToggle > span:last-child {
      position: absolute !important;
      inset: 50% 14px auto auto !important;
      display: block !important;
      width: 12px !important;
      min-width: 12px !important;
      height: 8px !important;
      min-height: 8px !important;
      margin: 0 !important;
      padding: 0 !important;
      font-size: 0 !important;
      line-height: 0 !important;
      color: transparent !important;
      -webkit-text-fill-color: transparent !important;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%234e738e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat !important;
      transform: translateY(-50%) !important;
      transform-origin: center !important;
      pointer-events: none !important;
    }
    html body #app .classroomFlow #classroomBulkMenuToggle[aria-expanded="true"] > span:last-child {
      transform: translateY(-50%) rotate(180deg) !important;
    }
    html body #app .classroomFlow .classroomSessionCatchupIntro {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) max-content !important;
      align-items: center !important;
      gap: 12px !important;
    }
    html body #app .classroomFlow .classroomSessionCatchupIntro > div {
      min-width: 0 !important;
    }
    html body #app .classroomFlow .classroomSessionCatchupIntro > #classroomScanSessionCatchup {
      width: auto !important;
      min-width: 104px !important;
      min-height: 44px !important;
      padding: 10px 12px !important;
      align-self: center !important;
      white-space: nowrap !important;
      word-break: keep-all !important;
      box-sizing: border-box !important;
    }

    /* Session results use the same single-row badge / identity / action grid
     * as the existing home-tools results, even when the identity wraps. */
    html body #app .classroomFlow .classroomCatchupList > button[data-session-catchup-student] {
      display: grid !important;
      grid-template-columns: 58px minmax(0, 1fr) max-content !important;
      align-items: center !important;
      gap: 8px !important;
      min-width: 0 !important;
      text-align: left !important;
    }
    html body #app .classroomFlow .classroomCatchupList > button[data-session-catchup-student] > .type {
      grid-column: 1 !important;
      grid-row: 1 !important;
      align-self: center !important;
      min-width: 0 !important;
    }
    html body #app .classroomFlow .classroomCatchupList > button[data-session-catchup-student] > .student {
      grid-column: 2 !important;
      grid-row: 1 !important;
      min-width: 0 !important;
      justify-items: start !important;
      text-align: left !important;
    }
    html body #app .classroomFlow .classroomCatchupList > button[data-session-catchup-student] > .student > :is(b, small) {
      min-width: 0 !important;
      max-width: 100% !important;
      text-align: left !important;
      overflow-wrap: anywhere !important;
    }
    html body #app .classroomFlow .classroomCatchupList > button[data-session-catchup-student] > .go {
      display: block !important;
      grid-column: 3 !important;
      grid-row: 1 !important;
      justify-self: end !important;
      align-self: center !important;
      white-space: nowrap !important;
      text-align: right !important;
    }
  }
}
