/* Calendar summary and expanded settings need full rows, not competing flex columns. */
@media screen and (max-width:1024px){
 .app-frame .school-calendar-panel{display:block;padding:14px;min-width:0}
 .app-frame .school-calendar-panel .panel-head{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;min-width:0;margin:0}
 .app-frame .school-calendar-panel .panel-head>h3{margin:0;font-size:17px;line-height:1.7;white-space:normal;overflow-wrap:normal}
 .app-frame .school-calendar-panel .panel-head>button{width:100%;min-width:0;max-width:100%;justify-content:center}
 .app-frame .school-calendar-panel>p{font-size:13px;line-height:1.85;margin:10px 0 0;max-width:100%;overflow-wrap:anywhere}
 .app-frame .school-calendar-editor{width:100%;min-width:0;margin-top:4px}
 .app-frame .school-calendar-editor>h3{margin:8px 0;font-size:17px;line-height:1.85}
 .app-frame .school-calendar-editor>small{display:block;font-size:13px;line-height:1.85}
 .app-frame .school-calendar-editor form{min-width:0;display:grid;gap:12px}
 .app-frame .school-calendar-editor fieldset{min-inline-size:0;min-width:0;max-width:100%;margin:0;padding:12px}
 .app-frame .school-calendar-editor legend{max-width:100%;font-size:14px;line-height:1.85;padding-inline:4px}
 .app-frame .school-calendar-editor .form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .app-frame .calendar-weekdays{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
 .app-frame .calendar-weekdays label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;line-height:1.85;padding:4px 0}
 .app-frame .calendar-weekdays input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-height:20px;padding:0;margin:0}
}
