/* Mobile layout guardrails, 2026-11-17 22:48. Presentation only. */
/* These selectors contain decorative English labels, never task/status data. */
body :is(.intro,.qy-home-intro,.qy-hero .hero-copy,.qy-info-heading,.qy-info-page,.qy-guardian-page,.qy-guardian-entry,.qy-parent-review-card,.qy-attendance-history,.qy-attendance-roster,.qy-weekly-heading,.qy-t3-heading,.qy-production-welcome,.course-cover) .eyebrow,
body .qy-workspace-eyebrow,
body .qy-home-eyebrow,
body .breadcrumb small,
body .logo small,
body .side-bottom>small,
body .qy-home-motto>small{display:none!important}
/* Do not hide generic .eyebrow: admin drafts and current-view labels use it. */
@media(max-width:700px){
  body :is(button,.button,[role="button"]){box-sizing:border-box;white-space:nowrap;word-break:normal;overflow-wrap:normal}
  body :is(button,.button)[class]:not(.channel):not(.quick-card):not(.qy-course-day):not(.qy-calendar-day){min-inline-size:44px}
  body :is(.event,.row,.section-head,.qy-weekly-task-foot,.qy-t3-heading)>:is(button,.button){flex-shrink:0}
  body :is(.event-body,.section-head>div,.qy-t3-heading>div,.qy-weekly-heading>div){min-width:0;flex:1 1 0%;overflow-wrap:anywhere}
  body :is(.section-head,.qy-t3-heading,.qy-weekly-heading){flex-wrap:wrap;gap:8px}
  body :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
  body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
  body select,body textarea{width:100%}
  body :is(input[type="date"],input[type="datetime-local"],input[type="time"]){display:block;min-height:44px;min-inline-size:0;max-inline-size:100%;font-size:16px;padding-inline:8px}
  body input[type="date"]::-webkit-date-and-time-value{min-width:0;text-align:left}
  body input[type="date"]::-webkit-datetime-edit{min-width:0;padding:0}
  body :is(fieldset,.form-grid,.form-row,.qy-t3-form-grid,.qy-attendance-filters)>*{min-width:0;max-width:100%;box-sizing:border-box}
  body .qy-attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body .qy-attendance-filters>label{display:block;min-width:0;margin:0}
  body .qy-attendance-filters :is(input,select){width:100%;max-width:100%;min-width:0}
  body .qy-attendance-history .section-head>div{flex:1 1 160px}
  body .qy-attendance-history .section-head>.button{margin:0;min-height:44px}
  /* Content-rich card buttons may contain intentionally separate labels;
     permit the label/body to wrap without splitting their action caption. */
  body :is(.channel,.quick-card,.qy-workspace-link) :is(strong,b,small,.qy-workspace-link-copy){white-space:normal;overflow-wrap:anywhere;min-width:0}
}
body .intro>.pill{display:none!important}
@media(max-width:700px){
  body .qy-r2-choices button[data-r2t-pick] :is(strong,span){white-space:normal;overflow-wrap:anywhere;min-width:0}
}
@media(max-width:700px){
  /* Old -4px margin deliberately broke the parent's edge on small screens. */
  body .qy-home-primary>.qy-home-season-panel{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:0}
}
/* Verified decorative captions; Chinese form/status eyebrows are retained. */
body .qy-workspace-priority header>.eyebrow,
body .qy-shop-coming-kicker,
body .qy-home-page .qy-home-heading .eyebrow,
body .qy-3d-heading .eyebrow,
body .qy-player-heading .eyebrow,
body #qyLocker .section-head .eyebrow,
body .family-registration>.eyebrow{display:none!important}
