.staff-home h2 { margin:0 0 12px; }
.staff-home, .staff-detail { overflow-wrap:anywhere; }
.staff-today, .staff-roster-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.staff-today h2 { margin:0; }
.staff-today { margin-bottom:14px; }
.staff-roster-row, .staff-visit { padding:10px 0; border-top:1px solid #e1eded; flex-wrap:wrap; }
.staff-roster-row small { width:100%; }
.staff-visit { display:grid; gap:4px; }
.staff-detail h3 { margin:18px 0 10px; }
.staff-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.staff-actions button { flex:1 1 130px; min-height:44px; }

/* Staff entry dialogs use a single column with room around every control. */
dialog .staff-entry-form {
  min-inline-size:0;
  max-inline-size:100%;
  box-sizing:border-box;
}
dialog #staff-add-shift {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}
dialog #staff-add-shift > label {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:6px;
  margin:0;
}
dialog .staff-entry-form :is(input,select,textarea) {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:44px;
  margin:0;
}
dialog #staff-add-shift > button { margin:4px 0 0; min-height:44px; }
dialog #staff-add-shift > [role=alert] { margin:0; overflow-wrap:anywhere; }
dialog .staff-entry-form .formgrid { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:16px; }
dialog .staff-entry-form .formgrid > div { min-width:0; }
dialog .staff-entry-form nav.actions { margin-top:20px; gap:12px; }
