/* Student Management BMI presentation only; the PAPS editor and wide layouts
   retain their existing sizing. Intrinsic result columns must never overlap. */
@media (max-width:768px) {
  html[data-pe-tab="students"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-device="tablet"]):not([data-pe-ipados="true"])
    #app.studentScreen #studentPapsSummary table.mobilePapsVertical
    .mobilePapsMetricRow:has(> .mobilePapsBadgeSlot > .papsGrade.bmi) {
      grid-template-columns:minmax(0,1fr) max-content max-content!important;
      column-gap:10px!important;
  }
  /* Preserve complete values/grade labels. Only an unusually wide font/value
     may wrap the heading instead of clipping the number or compressing badges. */
  html[data-pe-tab="students"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-device="tablet"]):not([data-pe-ipados="true"])
    #app.studentScreen #studentPapsSummary table.mobilePapsVertical
    .mobilePapsMetricRow:has(> .mobilePapsBadgeSlot > .papsGrade.bmi) > .mobilePapsMetricTitle {
      white-space:normal!important;
      word-break:keep-all!important;
      overflow-wrap:anywhere!important;
  }
}
