/* Responsive refinements: same components and actions, sized to available space. */
@media screen {
  #main :where(section,article,header,form,div,details,summary){min-width:0}
  .section-head{flex-wrap:wrap;align-items:center;gap:12px}
  .section-head>div:first-child{flex:1 1 240px}
  .section-head>.btn,.section-head>.agenda-store-menu{flex:0 1 auto}
  .agenda-store-menu[open]{flex:1 0 100%}
  .agenda-store-menu-content{position:static;width:100%;max-width:100%;max-height:55vh;max-height:55dvh;margin-top:8px;overflow:auto}
  .agenda-store-list,.agenda-main,.agenda-store-detail,.protocol-view,.protocol-snippet,.group-meeting-card{overflow-wrap:anywhere}
  .shift-compact-week-days{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
  .shift-compact-person{min-width:0;min-height:40px}
  .shift-compact-person b,.shift-compact-period.many-shifts .shift-compact-person b,.shift-compact-week-days[style*="--week-days:4"] .shift-compact-person b{font-size:12px!important;white-space:normal;overflow-wrap:break-word;word-break:normal}
  .shift-compact-period header{flex-wrap:wrap;gap:3px 8px}
  .shift-compact-period header time{white-space:nowrap}
  .shift-day-title>span{overflow-wrap:anywhere}
  .shift-compact-event-inline{white-space:normal;max-width:100%;overflow-wrap:anywhere}
  input:not([type=checkbox]):not([type=radio]),select,textarea{min-width:0;max-width:100%}
  .table-wrap{min-width:0;max-width:100%;overflow-x:auto}
  .toast-root{max-width:calc(100vw - 24px)}
  .toast{max-width:100%;overflow-wrap:anywhere}
}
@media screen and (min-width:641px) and (max-width:1100px){
  .page-head{flex-wrap:wrap;gap:16px!important}
  .page-head>div:first-child{flex:1 1 240px}
  .page-actions{justify-content:flex-start}
  .section-head>div:first-child{flex-basis:100%}
  .attendance-board{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
  .attendance-column{padding:14px}
  .session-note-card dl,.role-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
  .session-topic-head{flex-wrap:wrap}
  .ag-area-group>div>a{overflow-wrap:anywhere}
}
@media screen and (max-width:640px),screen and (max-width:960px) and (max-height:500px) and (pointer:coarse){
  .shift-compact-week-days{grid-template-columns:minmax(0,1fr)}
  .shift-compact-person{min-height:44px}
  .attendance-column{padding:12px}
  .attendance-person{min-height:44px;overflow-wrap:anywhere}
  .section-head>div:first-child{flex-basis:100%}
}
@media screen and (pointer:coarse){
  .shift-note-edit,.shift-note-delete,.shift-note-add,.shift-reservation-add,.shift-reservation-alert{min-height:44px;min-width:44px}
  .shift-note-actions{flex-wrap:wrap;gap:8px}
  .agenda-mobile-moves{display:flex;flex-wrap:wrap;gap:8px}
}
@media screen and (max-height:500px){
}