/* V265: consistent action rows and compact responsive cards. Screen only. */
@media screen {
 html body #app #content :is(.hero-actions,.course-row-actions,.panel-head>.actions,.dm-reminder-actions),
 html body #modalWrap .modal-foot{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px!important}
 html body #app #content :is(.hero-actions,.course-row-actions,.panel-head>.actions,.dm-reminder-actions)>.btn,
 html body #modalWrap .modal-foot>.btn{box-sizing:border-box;min-height:44px!important;padding:10px 14px!important;line-height:1.3!important;max-width:100%;white-space:normal!important;display:inline-flex;align-items:center;justify-content:center;gap:8px!important;margin:0!important}
 html body #app #content :is(.form-grid,.dashboard-kpis,.dm-student-kpis){align-items:stretch}
 html body #app #content :is(.field,.grow,.panel,.dashboard-kpi){min-width:0}
 html body #app #content .attendance-date-card small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.5!important}
 html body #app #content .attendance-course-meta{flex-wrap:wrap;row-gap:5px;line-height:1.45}
 html body #app #content .attendance-course-row{grid-template-columns:44px minmax(0,1fr) auto;align-items:center}
 html body #app #content .attendance-course-row>.course-row-actions{grid-column:2/-1;justify-content:flex-start}
 html body #app #content .attendance-course-row>.course-row-actions>.btn{flex:0 1 auto!important}
}
@media screen and (max-width:780px){
 html body #app #content .attendance-date-card{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:14px!important}
 html body #app #content .attendance-date-card :is(input,.btn){grid-column:1/-1!important;width:100%;min-height:44px!important;box-sizing:border-box}
 html body #app #content .attendance-course-row{grid-template-columns:40px minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
 html body #app #content .attendance-course-row>.status{grid-column:2!important;justify-self:start}
 html body #app #content .attendance-course-row>.course-row-actions{grid-column:1/-1!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 html body #app #content .attendance-course-row>.course-row-actions>.btn{width:100%;min-width:0;align-self:stretch}
 html body #app #content .attendance-course-row>.course-row-actions>.btn:last-child:nth-child(odd){grid-column:1/-1}
 html body #modalWrap .modal-foot>.btn{flex:1 1 130px;min-width:0}
}
@media screen {
 html body #app .secretary-location-context .dm-sidebar-site-name{font-size:12px!important;line-height:1.45!important;font-weight:650!important;letter-spacing:0!important;text-transform:none!important;color:inherit!important;white-space:normal!important}
}

/* V266: location heading and full-width, opaque logo rows. */
@media screen {
 html body #app .school-chip .secretary-location-context.multi{display:block!important;padding-top:14px!important;margin-top:14px!important}
 html body #app .school-chip .secretary-location-context.multi>div{width:100%;gap:10px!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sites-heading{display:flex;align-items:center;gap:8px;opacity:1!important;color:#dcd5ee!important;font-size:10px!important;letter-spacing:.06em!important;font-weight:600!important;line-height:1.4}
 html body #app .school-chip .secretary-location-context.multi .secretary-location-icon{display:grid;place-items:center;width:28px!important;height:28px!important;flex:0 0 28px;border-radius:9px!important;padding:0!important;background:#ffffff0e!important;color:#e9ddff!important;opacity:1!important}
 html body #app .school-chip .secretary-location-context.multi .secretary-location-icon .icon{width:17px;height:17px}
 html body #app .school-chip .secretary-location-context.multi strong{gap:8px!important;width:100%;margin:0}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site{display:flex!important;align-items:center!important;gap:10px!important;width:100%;box-sizing:border-box;padding:10px!important;border-radius:12px!important;background:#ffffff09!important;border:1px solid #ffffff0c;opacity:1!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site-logo{display:grid;place-items:center;width:38px!important;height:38px!important;flex:0 0 38px!important;box-sizing:border-box;padding:4px!important;border-radius:10px!important;background:#fff!important;opacity:1!important;color:#493467!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site-logo img{display:block;width:100%;height:100%;object-fit:contain;opacity:1!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site-name{flex:1;min-width:0;opacity:1!important;color:#f7f4ff!important;font-size:12px!important;line-height:1.45!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;overflow-wrap:anywhere}
}
/* Compact school card: keep the navigation close to the school context. */
@media screen {
 html body #app .sidebar .school-chip:has(.secretary-location-context.multi){padding:12px!important;border-radius:16px!important}
 html body #app .sidebar .school-chip:has(.secretary-location-context.multi) .school-chip-brand{gap:10px!important;align-items:center!important}
 html body #app .sidebar .school-chip:has(.secretary-location-context.multi) .school-chip-brand :is(.school-brand-logo,.school-brand-initials){width:40px!important;height:40px!important;flex:0 0 40px!important;box-sizing:border-box;border-radius:12px!important}
 html body #app .sidebar .school-chip:has(.secretary-location-context.multi) .school-chip-school-copy>strong{font-size:14px!important;line-height:1.3!important}
 html body #app .school-chip .secretary-location-context.multi{margin-top:10px!important;padding-top:10px!important}
 html body #app .school-chip .secretary-location-context.multi>div{gap:7px!important}
 html body #app .school-chip .secretary-location-context.multi .secretary-location-icon{width:24px!important;height:24px!important;flex-basis:24px!important;border-radius:7px!important}
 html body #app .school-chip .secretary-location-context.multi .secretary-location-icon .icon{width:15px;height:15px}
 html body #app .school-chip .secretary-location-context.multi strong{gap:6px!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site{gap:8px!important;padding:7px 8px!important;border-radius:10px!important;min-height:44px}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site-logo{width:30px!important;height:30px!important;flex-basis:30px!important;padding:3px!important;border-radius:8px!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site-name{font-size:11.5px!important;line-height:1.35!important}
}
@media screen {
 html body #app .school-chip .secretary-location-context.multi :is(.dm-sites-heading,.secretary-location-icon,.dm-sidebar-site,.dm-sidebar-site-logo,.dm-sidebar-site-name){margin:0!important}
 html body #app .school-chip .secretary-location-context.multi .dm-sidebar-site-logo img{padding:0!important}
}
