/* PE-CLASS 12290 — presentation-only record entry cleanup.
 * Keep the original DOM, handlers, class selection and stored records intact. */

/* This is the descriptive duplicate above the roster actions, not a selector
 * or the actual class heading. Wide layouts already hide its toolbar. */
html[data-pe-tab="students"] #app.studentScreen
> .studentRosterTools > strong {
  display: none !important;
}

/* App compact assessment: before class loading the core renders an inert
 * title/save placeholder. Hide only that waiting header and its empty panel.
 * A loaded (including loading/error) editor has #saveAssessBtn and its sticky
 * region, so its real title, actions, errors and score controls stay visible.
 * Operating-site assessment layouts and app wide layouts are unchanged. */
@media (max-width: 768px) {
  html.pe-local-app[data-pe-tab="assessment"] body.mobileAssessmentView
  #app:has(> #mobileAssessmentSelector):not(:has(#saveAssessBtn))
  > .pe87PageHead:not(.peRecordStickyRegion),
  html.pe-local-app[data-pe-tab="assessment"] body.mobileAssessmentView
  #app:has(> #mobileAssessmentSelector):not(:has(#saveAssessBtn))
  > .pe87PageHead:not(.peRecordStickyRegion)
  + .panel:has(> .empty:only-child):not([role="alert"]):not(:has(.error, [role="alert"])) {
    display: none !important;
  }
}

