/* Phone-only roster. Every rule requires the runtime phone guard class. */
@media (max-width:768px){
  body.pePapsRoster12342{--pr42p-ink:#23394d;--pr42p-muted:#677d90;--pr42p-line:#d8e3ed;--pr42p-panel:#fff;--pr42p-blue:#137bce;--pr42p-bluebg:#ebf5ff;}
  body.pePapsRoster12342 #mobilePapsSelector .mobilePapsSelectorGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.pePapsRoster12342 #mobilePapsSelector .mobileContextPickerButton{padding-inline:8px!important;font-size:14px!important;}
  body.pePapsRoster12342 .pr42p-roster{color:var(--pr42p-ink);width:100%;min-width:0;box-sizing:border-box;margin-bottom:12px;}
  body.pePapsRoster12342 .pr42p-roster-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;}
  body.pePapsRoster12342 .pr42p-roster-head strong{font-size:18px;}
  body.pePapsRoster12342 .pr42p-roster-head>span{font-size:12px;color:var(--pr42p-blue);background:var(--pr42p-bluebg);border-radius:16px;padding:5px 9px;white-space:nowrap;}
  body.pePapsRoster12342 .pr42p-summary{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;margin-bottom:10px;}
  body.pePapsRoster12342 .pr42p-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--pr42p-line);border-radius:12px;overflow:hidden;background:var(--pr42p-panel);gap:0;}
  body.pePapsRoster12342 .pr42p-student{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-width:0;min-height:54px;background:var(--pr42p-panel);color:var(--pr42p-ink);border:0;border-bottom:1px solid var(--pr42p-line);border-radius:0;margin:0;padding:7px 5px;font:inherit;touch-action:manipulation;}
  body.pePapsRoster12342 .pr42p-student:nth-child(odd){border-right:1px solid var(--pr42p-line);}
  body.pePapsRoster12342 .pr42p-student:nth-last-child(-n+2):nth-child(odd),body.pePapsRoster12342 .pr42p-student:last-child{border-bottom:0;}
  body.pePapsRoster12342 .pr42p-student:focus-visible{outline:3px solid var(--pr42p-blue);outline-offset:-3px;}
  body.pePapsRoster12342 .pr42p-student:active{background:var(--pr42p-bluebg);}
  body.pePapsRoster12342 .pr42p-name{display:flex;justify-content:center;align-items:baseline;gap:7px;max-width:100%;font-size:15px;line-height:1.35;}
  body.pePapsRoster12342 .pr42p-name b{min-width:0;overflow-wrap:anywhere;word-break:keep-all;font-weight:650;}
  body.pePapsRoster12342 .pr42p-number{font-size:11px;color:var(--pr42p-muted);font-variant-numeric:tabular-nums;flex-shrink:0;}
  body.pePapsRoster12342 .pr42p-status{font-size:11px;line-height:1.3;}
  body.pePapsRoster12342 .pr42p-complete{color:#168153;}
  body.pePapsRoster12342 .pr42p-missing{color:#965d05;}
  body.pePapsRoster12342 .pr42p-excluded{color:#795aa2;}
  body.pePapsRoster12342 .pr42p-transfer{color:var(--pr42p-muted);}
  body.pePapsRoster12342.pr42p-record-open{overflow:hidden;}
  body.pePapsRoster12342 .pr42p-dialog{box-sizing:border-box;color:var(--pr42p-ink);background:var(--pr42p-panel);width:calc(100% - 20px);max-width:520px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--pr42p-line);border-radius:18px;overflow:hidden;box-shadow:0 15px 44px #00000025;}
  body.pePapsRoster12342 .pr42p-dialog[open]{display:flex;flex-direction:column;}
  body.pePapsRoster12342 .pr42p-dialog::backdrop{background:#102b4677;}
  body.pePapsRoster12342 .pr42p-dialog *{box-sizing:border-box;}
  body.pePapsRoster12342 .pr42p-dialog [hidden]{display:none!important;}
  body.pePapsRoster12342 .pr42p-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;background:var(--pr42p-bluebg);border-bottom:1px solid var(--pr42p-line);flex-shrink:0;}
  body.pePapsRoster12342 .pr42p-dialog-head>div{min-width:0;}
  body.pePapsRoster12342 .pr42p-dialog-head span{display:block;font-size:11px;color:var(--pr42p-blue);}
  body.pePapsRoster12342 .pr42p-dialog-head h2{font-size:20px;line-height:1.35;margin:3px 0 0;overflow-wrap:anywhere;}
  body.pePapsRoster12342 .pr42p-close{width:44px;height:44px;flex-shrink:0;border:1px solid var(--pr42p-line);border-radius:11px;background:var(--pr42p-panel);color:var(--pr42p-ink);font-size:27px;line-height:1;}
  body.pePapsRoster12342 .pr42p-dialog-body{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsStudentCard{border:0;border-radius:0;box-shadow:none;padding:0;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsStudentCard>header h3{font-size:13px;white-space:normal;line-height:1.45;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsStudentCard>header .genderToggle{min-height:38px;flex-shrink:0;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsMetricLine{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;margin-bottom:8px;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsMetricLine>strong{white-space:normal;overflow-wrap:anywhere;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsMetricBadge,body.pePapsRoster12342 .pr42p-dialog .mobilePapsMetricLine>.papsGrade{grid-column:2;justify-self:end;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsInputField input{min-width:0;min-height:44px;font-size:16px;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsInputGrid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsSummaryLine{gap:6px;}
  body.pePapsRoster12342 .pr42p-dialog .mobilePapsSummaryLine>div{padding:8px 5px;flex-wrap:wrap;}
  body.pePapsRoster12342 .pr42p-exclusion{color:#795aa2;background:#f3eefb;border-radius:9px;padding:10px;margin-bottom:10px;font-size:12px;line-height:1.5;}
  body.pePapsRoster12342 .pr42p-message{padding:0 14px;margin:0;font-size:12px;color:#168153;line-height:1.5;flex-shrink:0;}
  body.pePapsRoster12342 .pr42p-message:not(:empty){padding-block:7px;}
  body.pePapsRoster12342 .pr42p-error{color:#ad3333;}
  body.pePapsRoster12342 .pr42p-dialog-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:11px 12px max(11px,env(safe-area-inset-bottom));border-top:1px solid var(--pr42p-line);flex-shrink:0;}
  body.pePapsRoster12342 .pr42p-dialog-foot button{min-height:46px;margin:0;font-size:14px;}
}
