.ff-schedule {
  display: grid;
  gap: 1rem;
}

/* Use the available browser width for the seven-day calendar on desktop,
   even when the WordPress theme wraps page content in a narrow container. */
@media (min-width: 1100px) {
  .ff-schedule {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 24px;
    padding-left: 24px;
  }
}

.ff-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(67, 82, 77, .2);
  padding: .35rem 0 .9rem;
}

.ff-week-toolbar__title { font-size: 1.2rem; }
.ff-week-toolbar__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.ff-week-button {
  display: inline-block;
  border: 1px solid #743434;
  border-radius: 999px;
  padding: .55rem .85rem;
  background: #fff;
  color: #562626 !important;
  font-weight: 700;
  text-decoration: none !important;
}
.ff-week-button:hover,
.ff-week-button:focus { background: #743434; color: #fff !important; }

.ff-week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(135px, 1fr));
  gap: .65rem;
  align-items: start;
  overflow-x: auto;
  padding: .15rem 0 .8rem;
}

.ff-calendar-day {
  min-width: 0;
  border-radius: 12px;
  padding: .45rem;
  background: #f4f7f6;
}
.ff-calendar-day.is-today { box-shadow: inset 0 0 0 2px #743434; }
.ff-calendar-day__header {
  display: flex;
  justify-content: space-between;
  gap: .35rem;
  margin-bottom: .55rem;
  padding: .25rem .2rem .5rem;
  border-bottom: 1px solid rgba(67, 82, 77, .18);
  color: #354a43;
}
.ff-calendar-day__courses { display: grid; gap: .55rem; }
.ff-calendar-empty { margin: .25rem; color: #7b8581; font-size: .85rem; }

.ff-week-calendar .ff-session {
  border: 0;
  border-top: 5px solid var(--ff-course-color, #6f8f88);
  border-radius: 10px;
  padding: .7rem;
  box-shadow: 0 3px 10px rgba(41, 37, 36, .08);
}
.ff-week-calendar .ff-session__date { font-size: .88rem; }
.ff-week-calendar .ff-session h3 { font-size: 1.05rem; line-height: 1.2; }
.ff-week-calendar .ff-session p { font-size: .84rem; line-height: 1.35; }
.ff-week-calendar .ff-booking-button {
  display: block;
  padding: .5rem .6rem;
  font-size: .82rem;
  text-align: center;
}
.ff-week-calendar .ff-series-box { font-size: .82rem; }

.ff-session {
  border: 1px solid color-mix(in srgb, var(--ff-course-color, #6f8f88) 55%, transparent);
  border-top: 7px solid var(--ff-course-color, #6f8f88);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: color-mix(in srgb, var(--ff-course-color, #6f8f88) 10%, white);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.ff-session h3,
.ff-session p {
  margin: 0.25rem 0;
}

.ff-session__date {
  font-weight: 700;
}

.ff-session__capacity,
.ff-session__status {
  font-size: 0.92em;
}

.ff-session.is-cancelled {
  opacity: 0.65;
}

.ff-session.is-cancelled h3 {
  text-decoration: line-through;
}

.ff-session.is-cancelled .ff-session__status {
  color: #a11;
}

.ff-booking-form {
  margin-top: 0.8rem;
}

.ff-booking-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.ff-booking-label input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.ff-guest-login {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.ff-booking-select {
  display: block;
  min-width: 220px;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 8px;
  padding: 0.55rem;
  background: transparent;
  color: inherit;
  font: inherit;
}

.ff-booking-button {
  display: inline-block;
  margin-top: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: #743434;
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ff-booking-button:hover,
.ff-booking-button:focus {
  background: #562626;
  color: #fff !important;
}

.ff-secondary-button {
  display: inline-block;
  border: 1px solid #743434;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #fff;
  color: #562626 !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.ff-secondary-button:hover,
.ff-secondary-button:focus {
  background: #743434;
  color: #fff !important;
}

.ff-inline-action {
  color: #562626 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ff-empty-state {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #f4f8f7;
}

.ff-empty-state > :first-child { margin-top: 0; }
.ff-empty-state > :last-child { margin-bottom: 0; }
.ff-table-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ff-table-actions .ff-booking-button { margin-top: 0; }

.ff-session__status.is-booked {
  color: #27633a;
}

.ff-series-box {
  margin: 0.8rem 0;
  border-left: 4px solid #743434;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, #743434 8%, transparent);
}

.ff-series-box p {
  margin: 0.3rem 0 0;
}

.ff-notice {
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.ff-notice.is-success {
  border: 1px solid #72a17e;
  background: #edf7ef;
  color: #204d2c;
}

.ff-notice.is-error {
  border: 1px solid #c58585;
  background: #fff0f0;
  color: #7a2020;
}

.ff-account-bookings {
  display: grid;
  gap: 1rem;
}

.ff-booking-group-title {
  margin: 1.6rem 0 .75rem;
}

.ff-account-booking {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  padding: 1rem;
}

.ff-account-bookings--history .ff-account-booking {
  background: #f7f7f7;
  color: #555;
}

.ff-status-badge {
  display: inline-block;
  margin-top: .25rem;
  border-radius: 999px;
  padding: .22rem .62rem;
  background: #ececec;
  color: #333;
  font-size: .9em;
}

.ff-status-badge--confirmed { background: #e7f4ea; color: #245c31; }
.ff-status-badge--pending_payment,
.ff-status-badge--waitlisted { background: #fff3d7; color: #684d12; }
.ff-status-badge--waitlist_offered { background: #743434; color: #fff; }
.ff-status-badge--cancelled,
.ff-status-badge--cancelled_series,
.ff-status-badge--cancelled_by_studio,
.ff-status-badge--cancelled_capacity,
.ff-status-badge--waitlist_expired,
.ff-status-badge--waitlist_declined { background: #ededed; color: #555; }
.ff-status-badge--cancelled_late,
.ff-status-badge--cancelled_late_series,
.ff-status-badge--no_show,
.ff-status-badge--payment_failed { background: #f8e2e2; color: #7a2020; }

.ff-trainer-sessions {
  display: grid;
  gap: 1rem;
}

.ff-trainer-session {
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 14px;
  padding: 1.15rem;
  background: #fff;
  box-shadow: 0 3px 12px rgba(41, 37, 36, .06);
}

.ff-trainer-session h3 { margin-top: 0; }
.ff-trainer-session h4 { margin: 1rem 0 .4rem; }
.ff-participant-list { margin: 0; padding-left: 1.5rem; }
.ff-participant-list li { padding: .35rem 0; }
.ff-participant-list:not(.ff-participant-list--waiting) li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.ff-participant-list--waiting { color: #684d12; }
.ff-attendance-actions { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.ff-attendance-actions form { margin: 0; }
.ff-attendance-button { border: 1px solid #596963; border-radius: 999px; padding: .42rem .72rem; background: #fff; color: #263a33; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.ff-attendance-button.is-attended:hover, .ff-attendance-button.is-attended:focus { background: #2f6a42; color: #fff; }
.ff-attendance-button.is-no-show { border-color: #8b3a3a; color: #7a2020; }
.ff-attendance-button.is-no-show:hover, .ff-attendance-button.is-no-show:focus { background: #7a2020; color: #fff; }
.ff-attendance-state { display: inline-block; margin-left: .35rem; border-radius: 999px; padding: .18rem .5rem; font-size: .8rem; }
.ff-attendance-state.is-attended { background: #e7f4ea; color: #245c31; }
.ff-attendance-state.is-no-show { background: #f8e2e2; color: #7a2020; }
.ff-attendance-locked { display: block; color: #666; }

.ff-substitution-board {
  margin: 1rem 0 1.5rem;
  border: 1px solid #d8b36a;
  border-radius: 14px;
  padding: 1.15rem;
  background: #fff9ea;
}
.ff-substitution-board > h3 { margin-top: 0; }
.ff-substitution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ff-substitution-grid article { border: 1px solid rgba(104, 77, 18, .22); border-radius: 10px; padding: .9rem; background: #fff; }
.ff-substitution-grid h4 { margin: 0 0 .35rem; }

@media (max-width: 680px) {
  .ff-substitution-grid { grid-template-columns: 1fr; }
}

.ff-trainer-month-report { margin-top: 1.5rem; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 14px; padding: 1.15rem; background: #fff; }
.ff-trainer-month-report > h3 { margin-top: 0; }
.ff-month-select { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-bottom: 1rem; }
.ff-month-select label { width: 100%; font-weight: 700; }
.ff-trainer-report-wrap { overflow-x: auto; }
.ff-trainer-report { width: 100%; border-collapse: collapse; }
.ff-trainer-report th, .ff-trainer-report td { padding: .65rem .55rem; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }

.ff-invoice-table-wrap { overflow-x: auto; }
.ff-invoice-table { width: 100%; border-collapse: collapse; }
.ff-invoice-table th, .ff-invoice-table td { padding: 12px 10px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: middle; }
.ff-invoice-table th { font-weight: 700; }
.ff-customer-profile { max-width: 760px; }
.ff-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.ff-profile-form p, .ff-profile-form fieldset { margin: 0; }
.ff-profile-form fieldset, .ff-profile-form p:nth-last-child(-n+3) { grid-column: 1 / -1; }
.ff-profile-form input[type="text"], .ff-profile-form input[type="tel"], .ff-profile-form select { width: 100%; box-sizing: border-box; margin-top: 5px; }
@media (max-width: 700px) { .ff-profile-form { grid-template-columns: 1fr; } .ff-profile-form p, .ff-profile-form fieldset { grid-column: 1; } }

.ff-waitlist-notice {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #8a6f3b;
  border-radius: 6px;
  background: #fff8e7;
  color: #4d3d20;
  line-height: 1.5;
}

.ff-account-booking h3,
.ff-account-booking p {
  margin: 0.25rem 0 0.6rem;
}

.ff-account-offers > h2 { margin-bottom: .35rem; }
.ff-offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.ff-offer-card { overflow: hidden; border: 1px solid color-mix(in srgb, var(--ff-course-color, #6f8f88) 45%, transparent); border-top: 7px solid var(--ff-course-color, #6f8f88); border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(41,37,36,.06); }
.ff-offer-card__image img { display: block; width: 100%; height: 220px; object-fit: cover; }
.ff-offer-card__content { padding: 1.1rem; }
.ff-offer-card__content h3 { margin-top: 0; }
.ff-series-dates { margin: .6rem 0 1rem; padding-left: 1.4rem; }
.ff-current-passes { margin: 1rem 0 1.4rem; border-radius: 10px; padding: .9rem 1rem; background: #f4f8f7; }
.ff-pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .8rem 0 1.6rem; }
.ff-pass-card { box-sizing: border-box; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 14px; padding: 1rem; background: #fff; box-shadow: 0 3px 12px rgba(41,37,36,.06); }
.ff-pass-card h4 { margin-top: 0; }
.ff-pass-price { font-size: 1.25rem; font-weight: 700; }

@media (max-width: 759px) {
  .ff-offer-grid { grid-template-columns: 1fr; }
  .ff-pass-grid { grid-template-columns: 1fr; }
}

.ff-cancel-button {
  border: 1px solid #743434;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: transparent;
  color: #743434 !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ff-cancel-button:hover,
.ff-cancel-button:focus {
  background: #743434;
  color: #fff !important;
}

.ff-customer-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.ff-customer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #743434;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: #fff;
  color: #562626 !important;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none !important;
}

.ff-customer-link:hover,
.ff-customer-link:focus {
  background: #743434;
  color: #fff !important;
}

.ff-customer-icon { font-size: 1.05rem; }
.ff-detail__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: inherit;
}

.ff-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.ff-detail__main,
.ff-detail__booking {
  border: 1px solid color-mix(in srgb, var(--ff-course-color, #6f8f88) 45%, transparent);
  border-radius: 16px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}

.ff-detail__booking {
  border-top: 7px solid var(--ff-course-color, #6f8f88);
  position: sticky;
  top: 1rem;
}

.ff-detail__image img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

.ff-price-overview {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--ff-course-color, #6f8f88) 35%, transparent);
}

.ff-price-overview h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.ff-price-overview ul { list-style: none; margin: 0; padding: 0; }
.ff-price-overview li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.ff-price-overview li strong { text-align: right; }
.ff-price-overview__note { margin: .8rem 0 0; font-size: .88rem; line-height: 1.45; }

.ff-overview {
  --ff-overview-border: color-mix(in srgb, currentColor 16%, transparent);
  --ff-overview-background: #fff;
  --ff-overview-radius: 14px;
  --ff-overview-padding: 1.15rem;
  margin-top: 2rem;
}
.ff-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ff-overview-card,
.ff-short-notice,
.ff-featured-offer,
.ff-studio-news {
  box-sizing: border-box;
  border: 1px solid var(--ff-overview-border);
  border-radius: var(--ff-overview-radius);
  background: var(--ff-overview-background);
  box-shadow: 0 3px 12px rgba(41, 37, 36, .06);
}
.ff-overview-card { min-height: 190px; padding: var(--ff-overview-padding); }
.ff-trainer-overview > .ff-overview-card { min-height: 0; margin-top: 1rem; }
.ff-overview-card h3,
.ff-short-notice > h3,
.ff-featured-offer__content h3,
.ff-studio-news > h3 { margin-top: 0; }
.ff-overview-card > :last-child,
.ff-short-notice > :last-child,
.ff-featured-offer__content > :last-child,
.ff-studio-news > :last-child { margin-bottom: 0; }
.ff-upcoming-list { margin: 0; padding-left: 1.25rem; }
.ff-upcoming-list li { margin-bottom: 0.7rem; }
.ff-action-needed { color: #7a2020; }
.ff-featured-offer { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.4fr); gap: 1.2rem; margin-top: 1rem; overflow: hidden; background: var(--ff-overview-background); }
.ff-featured-offer:not(:has(.ff-featured-offer__image)) { display: block; }
.ff-featured-offer:not(:has(.ff-featured-offer__image)) .ff-featured-offer__content { padding: var(--ff-overview-padding); }
.ff-featured-offer__image { padding: var(--ff-overview-padding) 0 var(--ff-overview-padding) var(--ff-overview-padding); }
.ff-featured-offer__image img { display: block; width: 100%; height: 100%; min-height: 190px; border-radius: 10px; object-fit: cover; }
.ff-featured-offer__content { align-self: center; padding: 1.2rem 1.2rem 1.2rem 0; }
.ff-featured-offer__content h3 { margin: .2rem 0; }
.ff-featured-offer__eyebrow { margin: 0; font-weight: 700; color: #743434; }
.ff-short-notice, .ff-studio-news { margin-top: 1rem; padding: var(--ff-overview-padding); }
.ff-short-notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.ff-short-notice-grid article { box-sizing: border-box; border: 1px solid var(--ff-overview-border); border-radius: 10px; padding: .9rem; background: #f4f8f7; }
.ff-short-notice-grid h4 { margin: 0 0 .35rem; }
.ff-active-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.ff-active-card { box-sizing: border-box; padding: 1.1rem; border: 1px solid var(--ff-overview-border, #d8d3d5); border-radius: 12px; background: var(--ff-overview-background, #fff); box-shadow: 0 3px 12px rgba(42, 35, 39, .06); }
.ff-active-card h4 { margin: 0 0 .5rem; font-size: 1.15rem; }
.ff-active-card p { margin: 0; }

@media (max-width: 759px) {
	.ff-week-toolbar { align-items: flex-start; flex-direction: column; }
	.ff-week-toolbar__actions { width: 100%; }
	.ff-week-button { box-sizing: border-box; flex: 1; text-align: center; }
	.ff-week-calendar { display: grid; grid-template-columns: 1fr; overflow: visible; }
	.ff-calendar-day { padding: .65rem; }
	.ff-calendar-day__header { font-size: 1.05rem; }
	.ff-calendar-day:has(.ff-calendar-empty) { display: none; }
	.ff-overview-grid { grid-template-columns: 1fr; }
	.ff-featured-offer { grid-template-columns: 1fr; }
	.ff-featured-offer__image { padding: 1rem 1rem 0; }
	.ff-featured-offer__content { padding: 0 1rem 1rem; }
	.ff-short-notice-grid { grid-template-columns: 1fr; }
  .ff-detail__grid {
    grid-template-columns: 1fr;
  }
  .ff-detail__booking {
    position: static;
  }
  .ff-booking-button,
  .ff-secondary-button,
  .ff-cancel-button,
  .ff-table-actions > a {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }
  .ff-account-booking form,
  .ff-account-booking form .ff-cancel-button {
    width: 100%;
  }
}
.ff-compact-schedule{margin:32px auto;max-width:1200px}.ff-compact-schedule__header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.ff-compact-schedule__header h2{margin:3px 0 0}.ff-compact-schedule__eyebrow{color:#823637;font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.ff-compact-schedule__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ff-compact-course{border:1px solid #dce2df;border-top:7px solid var(--ff-course-color);border-radius:16px;background:#fff;padding:20px;box-shadow:0 8px 24px rgba(48,70,64,.08);display:flex;flex-direction:column}.ff-compact-course__date{color:#52645f;font-size:.95rem}.ff-compact-course__time{font-weight:700;margin-top:8px}.ff-compact-course h3{font-size:1.18rem;margin:5px 0 8px}.ff-compact-course p{color:#52645f;flex:1;margin:0 0 16px}.ff-compact-course .ff-booking-button{text-align:center}
@media(max-width:900px){.ff-compact-schedule__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ff-compact-schedule__header{align-items:flex-start;flex-direction:column}.ff-compact-schedule__grid{grid-template-columns:1fr}.ff-compact-schedule__header .ff-secondary-button{width:100%;text-align:center}}
.ff-capacity-table-wrap{overflow-x:auto;margin-top:20px}
.ff-capacity-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #dfe5e2;border-radius:14px;overflow:hidden}
.ff-capacity-table th,.ff-capacity-table td{padding:13px 15px;text-align:left;border-bottom:1px solid #e7ebe9;vertical-align:top}
.ff-capacity-table th{background:#eef2f0;color:#42534f;font-weight:700}
.ff-capacity-table tbody tr:last-child td{border-bottom:0}
.ff-capacity-table tbody tr:hover{background:#fafbfa}
@media(max-width:700px){.ff-capacity-table,.ff-capacity-table tbody,.ff-capacity-table tr,.ff-capacity-table td{display:block}.ff-capacity-table thead{display:none}.ff-capacity-table tr{padding:12px 14px;border-bottom:1px solid #dfe5e2}.ff-capacity-table tbody tr:last-child{border-bottom:0}.ff-capacity-table td{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:5px 0;border:0}.ff-capacity-table td:before{content:attr(data-label);font-weight:700;color:#42534f}}

/* Accessible bulk attendance, including narrow phones. */
.ff-attendance-form { min-width: 0; width: 100%; }
.ff-attendance-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ff-attendance-list li { margin: 0; border-bottom: 1px solid #d7dfda; padding: 0; }
.ff-attendance-list label { display: flex; align-items: center; gap: 14px; padding: 14px 8px; min-height: 48px; cursor: pointer; color: #233b31; font-size: 17px; line-height: 1.45; }
.ff-attendance-list input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 26px !important; height: 26px !important; min-width: 26px; flex: 0 0 26px; margin: 0; accent-color: #2f6a42; }
.ff-attendance-list label span { min-width: 0; overflow-wrap: anywhere; }
.ff-attendance-list .ff-person-state { display: block; color: #465b50; font-size: 14px; }
.ff-attendance-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ff-attendance-controls button { min-height: 48px; white-space: normal; margin: 0; }
.ff-attendance-controls button:disabled { opacity: .6; cursor: wait; }
.ff-attendance-feedback { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ff-trainer-sessions { display: block; }
  .ff-trainer-session { min-width: 0; padding: 16px; margin-bottom: 18px; }
  .ff-attendance-controls { flex-direction: column; }
  .ff-attendance-controls button { width: 100%; }
}

/* Past sessions remain readable, without suggesting current availability. */
.ff-session.is-past { background: #eeeeec; border-color: #d0d0cd; --ff-course-color: #b8b8b4 !important; box-shadow: none; }
.ff-session.is-past h3, .ff-session.is-past p, .ff-session.is-past .ff-session__date { color: #626262; }
.ff-session.is-past .is-past-label { display: inline-block; color: #505050; background: #e0e0dd; border-radius: 6px; padding: 5px 8px; }

/* Phone: skip elapsed sessions; desktop keeps the complete week. */
.ff-mobile-week-empty { display: none; }
@media (max-width: 759px) {
  .ff-week-calendar .ff-session.is-mobile-past { display: none; }
  .ff-week-calendar .ff-calendar-day:not(:has(.ff-session:not(.is-mobile-past))) { display: none; }
  .ff-mobile-week-empty { display: block; padding: 1rem; border-radius: 10px; background: #edf1eb; color: #33473d; }
}
