.coach-rollcall-page .coach-class-heading { border-bottom: 1px solid var(--coach-app-line); padding-bottom: 12px; margin-bottom: 12px; }
.coach-rollcall-page .coach-class-heading h1, .coach-rollcall-page .coach-attendance-heading {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.05;
}
.coach-rollcall-page .coach-class-heading h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); margin: 0 0 8px; }
.coach-class-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.coach-rollcall-page .coach-class-meta p { margin: 0; font-size: .82rem; }
.coach-rollcall-page .coach-session-state { background: var(--coach-app-surface); color: var(--coach-app-ink); border-radius: 6px; padding: 3px 8px; font-size: .75rem; white-space: nowrap; }
.coach-rollcall-page .coach-attendance-heading { font-size: 1.8rem; margin: 0 0 4px; }
.coach-rollcall-page .coach-description { font-size: .82rem; color: var(--coach-app-ink); margin: 0 0 12px; }
.coach-rollcall-tools { position: relative; margin-bottom: 4px; }
.coach-rollcall-tools > svg { position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; color: var(--coach-app-muted); pointer-events: none; }
.coach-rollcall-page #roster-search { min-height: 44px; margin: 0; padding: 10px 12px 10px 42px; font-size: 1rem; border: 1px solid var(--coach-app-line); border-radius: 10px; background: var(--coach-app-surface); color: var(--coach-app-ink); }
.coach-rollcall-tools input::placeholder { color: var(--coach-app-muted); opacity: 1; }
.coach-rollcall { display: block; list-style: none; margin: 0; padding: 0; }
.coach-rollcall-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; min-height: 64px; border-bottom: 1px solid var(--coach-app-line); padding: 8px 0; }
.coach-rollcall-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.coach-rollcall-name strong { font-size: 1rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.coach-attendance-badge { display: inline-block; max-width: 100%; border-radius: 6px; padding: 1px 7px; font-size: .72rem; line-height: 1.35; background: var(--coach-app-surface); color: var(--coach-app-muted); }
.coach-rollcall-row[data-attendance-status=absent] .coach-attendance-badge { color: #a12121; background: #ffe7e7; }
.coach-rollcall-row[data-attendance-status=excused] .coach-attendance-badge { color: #805100; background: #fff0cf; }
.coach-rollcall-row[data-attendance-status=present] .coach-attendance-badge { color: var(--coach-app-accent); background: var(--coach-app-accent-soft); }
.dark .coach-rollcall-row[data-attendance-status=absent] .coach-attendance-badge { color: #ffb9b9; background: #542a30; }
.dark .coach-rollcall-row[data-attendance-status=excused] .coach-attendance-badge { color: #ffda90; background: #4e3c1d; }
.coach-mark-controls { display: flex; align-items: center; gap: 2px; }
.coach-absence-toggle { min-width: 72px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--coach-app-accent); border-radius: 8px; color: var(--coach-app-accent); background: var(--coach-app-background); font-size: .85rem; font-weight: 650; cursor: pointer; }
.coach-absence-toggle:hover { background: var(--coach-app-accent-soft); }
.coach-rollcall-row > .coach-muted { grid-column: 1 / -1; font-size: .8rem; margin: 0; }

.coach-confirmation { padding: 12px 0; background: var(--coach-app-background); }
.coach-save-bar { position: sticky; bottom: calc(var(--coach-app-nav-height) + env(safe-area-inset-bottom)); z-index: 3; border-top: 1px solid var(--coach-app-line); }
.coach-rollcall-page .coach-summary-label { margin: 0 0 3px; color: var(--coach-app-muted); font-size: .78rem; }
.coach-rollcall-page .coach-attendance-totals { display: flex; flex-wrap: wrap; column-gap: 6px; margin: 0 0 10px; font-size: .84rem; font-weight: 650; line-height: 1.5; }
.coach-attendance-totals > span { white-space: nowrap; }
.coach-attendance-totals > span + span::before { content: "·"; margin-right: 6px; }
.coach-save-bar .coach-actions { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 8px; }
.coach-rollcall-page .coach-button { background: #1855e8; border-radius: 9px; color: #fff; }
.coach-rollcall-page .coach-secondary { background: transparent; border-color: var(--coach-app-line); color: var(--coach-app-accent); }
.coach-save-bar .coach-button { min-height: 48px; padding: 8px; font-size: .85rem; line-height: 1.25; width: 100%; }
.coach-save-bar .coach-secondary { border-color: transparent; padding-left: 0; padding-right: 0; }
.coach-rollcall-page .coach-save-status { font-size: .8rem; margin: 0 0 8px; }
.coach-attendance-form[data-save-state=saved] .coach-save-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.coach-attendance-form[data-save-state=failed] .coach-save-status { color: #b92c2c; font-weight: 650; }
.dark .coach-attendance-form[data-save-state=failed] .coach-save-status { color: #ffb9b9; }
.coach-rollcall-page .coach-panel { border-radius: 10px; padding: 12px; margin: 12px 0; scroll-margin-top: 12px; }
.coach-class-tools > summary { margin-bottom: 0; }
.coach-class-tools[open] > summary { margin-bottom: 12px; }
.coach-cancel { margin-top: 16px; }

@media (max-width: 359px) {
  .coach-rollcall-name strong { font-size: .94rem; }
  .coach-rollcall-row { gap: 4px; }
  .coach-absence-toggle { min-width: 64px; padding-left: 7px; padding-right: 7px; }
  .coach-rollcall-page .coach-attendance-totals { font-size: .76rem; column-gap: 4px; }
  .coach-attendance-totals > span + span::before { margin-right: 4px; }
  .coach-save-bar .coach-button { font-size: .8rem; }
}
