/* Shared school-club action roles only; attendance statuses and layouts stay intact. */
html[data-pe-tab="clubs"] :is(#app.clubScreen,#mobileClubRoot,.clubMemberActionModal,#clubCalModal,.clubQrAttendanceModal,.mobileClubDetailSheet,.mobileClubImportSheet) {
  --pe-club-save-bg:#1f8b4c; --pe-club-save-border:#1f7a45;
  --pe-club-danger-bg:#fff4f4; --pe-club-danger-ink:#c53d3d;
}
html[data-pe-tab="clubs"] :is(#addClubBtn,#addClubMemberBtn,#saveClubAttBtn,#saveClubCalAttendance,#makeQrLink,#importAllStudentsBtn,#openClubMemberCreateBtn,#mobileClubAddDepartment,#mobileClubAddMember,#mobileClubOpenImport,#mobileClubImportSave,#mobileClubMakeQr,#mobileClubAttendanceSave,#mobileSaveCalendarRecord),
html[data-pe-tab="clubs"] :is(#app.clubScreen,.clubMemberActionModal,.clubImportModal) .btn.green,
html[data-pe-tab="clubs"] :is(.mobileClubPrimaryFull,.mobileClubMemberEditFooter button[type="submit"]) {
  background:#1f8b4c !important; border-color:#1f7a45 !important; color:#fff !important;
  background-image:none !important;
}
html[data-pe-tab="clubs"] :is(#app.clubScreen,.clubMemberActionModal,#clubCalModal) .btn.danger,
html[data-pe-tab="clubs"] :is(#deleteClubBtn,#deleteClubCalAttendance,#mobileClubDeleteDepartment,#mobileDeleteCalendarRecord,.clubMemberDelete,.mobileClubMemberDelete) {
  background:#fff4f4 !important; border-color:#efb9b9 !important; color:#c53d3d !important;
  background-image:none !important;
}
html[data-pe-tab="clubs"] :is(#app.clubScreen,.clubMemberActionModal,#clubCalModal) .btn.secondary,
html[data-pe-tab="clubs"] :is(#renameClubBtn,#copyQrLink,#openClubRosterUploadBtn,#mobileClubRenameDepartment,#mobileClubCopyQr,#mobileClubUploadRoster,.clubMemberEdit,.mobileClubMemberEdit) {
  background:#fff !important; border-color:#c9d5e2 !important; color:#31516f !important;
  background-image:none !important;
}
html[data-pe-tab="clubs"] :is(#bulkClubPresentBtn,#bulkClubCalPresent,#mobileClubAttendanceBulkPresent,#mobileBulkCalendarPresent) {
  background:#eefaf4 !important; border-color:#79c99e !important; color:#177a45 !important;
}
html[data-pe-tab="clubs"] :is(#bulkClubAbsentBtn,#bulkClubCalAbsent,#mobileClubAttendanceBulkAbsent,#mobileBulkCalendarAbsent) {
  background:#fff3f3 !important; border-color:#efb0b0 !important; color:#b93636 !important;
}
html[data-pe-tab="clubs"] :is(#resetClubAttBtn,#mobileClubAttendanceReset),
html[data-pe-tab="clubs"] #app.clubScreen #resetClubAttBtn {
  background:#f8fafc !important; border-color:#c6d2df !important; color:#3c5369 !important;
}
/* Strong legacy PC selectors must not restore a different semantic palette. */
html[data-pe-tab="clubs"] #app.clubScreen[data-club-windows-pc="true"] .clubPcAttendanceActions :is(#saveClubAttBtn) {
  background:#1f8b4c !important; border-color:#1f7a45 !important; color:#fff !important;
}
html[data-pe-tab="clubs"] #app.clubScreen[data-club-windows-pc="true"] .clubPcAttendanceActions #bulkClubPresentBtn {
  background:#eefaf4 !important; border-color:#79c99e !important; color:#177a45 !important;
}
html[data-pe-tab="clubs"] #app.clubScreen[data-club-windows-pc="true"] .clubPcAttendanceActions #bulkClubAbsentBtn {
  background:#fff3f3 !important; border-color:#efb0b0 !important; color:#b93636 !important;
}
