main {
  max-width: none;
  width: 100%;
  padding: 24px;
}
header > a:last-child {
  color: white;
}
nav {
  flex-wrap: wrap;
  gap: 8px;
}
nav label {
  flex: 0 1 170px;
  min-width: 0;
}
nav input {
  width: 100%;
}
.brand span {
  letter-spacing: normal;
  overflow-wrap: normal;
}
.schedulefilters {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  margin: 12px 0;
}
.schedulefilters label {
  min-width: 160px;
}
.schedulefilters .check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}
.check input {
  width: auto;
}
.schedulegrid {
  display: grid;
  grid-template-columns: 60px repeat(7, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #ccd5df;
  background: white;
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
}
.schedulegrid[hidden] {
  display: none;
}
.scheduleday {
  min-width: 0;
  border-left: 1px solid #d6dee7;
}
.scheduleday h2,
.axishead {
  height: 42px;
  margin: 0;
  padding: 12px 3px;
  font-size: 14px;
  text-align: center;
  background: #edf1f6;
}
.istoday h2 {
  background: #d3e5f9;
  color: #13395b;
}
.daytimeline {
  position: relative;
  height: calc(var(--hours) * 48px);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    #e4e9ee 47px,
    #e4e9ee 48px
  );
}
.hourlabel {
  height: 48px;
  font-size: 12px;
  text-align: right;
  padding: 4px 5px;
  color: #687688;
}
.classcard {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--width);
  height: var(--height);
  min-width: 0;
  max-width: 100%;
  padding: 4px 5px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #d9e8f6;
  color: #122f49;
  border: 1px solid white;
  border-left: 3px solid #235b85;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.classcard:hover,
.classcard:focus-visible {
  background: #bdd9ed;
  outline: 2px solid #235b85;
  z-index: 2;
}
.classtitle {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.classcard span:last-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.classcard small {
  font-size: 10px;
}
.classcard.cancelled {
  opacity: 0.6;
  text-decoration: line-through;
}
.program-hyrox {
  background: #dceedd;
  border-left-color: #347748;
  color: #174027;
}
.noclasses {
  display: block;
  font-size: 12px;
  text-align: center;
  color: #87929e;
  padding-top: 10px;
}
dialog {
  width: min(600px, 92vw);
  max-height: 92dvh;
  overflow-y: auto;
}
#status,
#formstatus {
  white-space: pre-wrap;
}
#weekchoices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#weekchoices label {
  display: flex;
  align-items: center;
  gap: 4px;
}
#weekchoices input,
#weekly,
#waitlistenabled {
  width: auto;
}
fieldset {
  border: 1px solid #ccd5df;
  border-radius: 8px;
  margin: 16px 0;
}
#weekdaycoaches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#weekdaycoaches [hidden] {
  display: none;
}
.seriesrow {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  background: white;
  color: #183955;
  border: 1px solid #ccd5df;
  border-left: 4px solid #235b85;
  margin: 10px 0;
  padding: 14px;
}
.seriesrow span:last-of-type {
  grid-column: 1/-1;
}
.seriesrow:hover {
  background: #edf4fa;
}
#seriessearch {
  max-width: 440px;
}
@media (max-width: 800px) {
  main {
    padding: 14px;
  }
  .schedulegrid {
    display: block;
    border: none;
    background: transparent;
  }
  .timeaxis {
    display: none;
  }
  .scheduleday {
    border: 1px solid #ccd5df;
    border-radius: 8px;
    background: white;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .daytimeline {
    height: auto;
    min-height: 38px;
    background: none;
    padding: 6px;
    display: grid;
    gap: 5px;
  }
  .classcard {
    position: static;
    width: 100%;
    height: auto;
    min-height: 56px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    font-size: 14px;
    padding: 8px;
  }
  .classcard span:last-of-type,
  .classcard small {
    grid-column: 1/-1;
  }
  .classcard span:last-of-type {
    white-space: normal;
  }
  .seriesrow {
    grid-template-columns: 1fr;
  }
  .seriesrow span:last-of-type {
    grid-column: auto;
  }
  header {
    flex-wrap: wrap;
  }
  nav > * {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  nav label {
    flex-basis: 100%;
  }
  header .brand {
    max-width: 230px;
  }
  #weekdaycoaches {
    grid-template-columns: 1fr;
  }
}

/* Keep the calendar above the fold without changing the workout studio. */
main {
  margin: 16px auto;
  padding-top: 8px;
}
h1 {
  font-size: 30px;
}
main > p {
  margin: 6px 0;
}
nav {
  margin: 12px 0;
  padding: 6px 0;
}
nav button {
  margin-top: 14px;
  padding: 10px 12px;
}
.schedulefilters {
  margin: 6px 0;
  gap: 12px;
}
.schedulefilters label {
  margin: 4px 0;
}
.schedulefilters select {
  padding: 8px;
}
.schedulegrid {
  margin-top: 10px;
}
.hourlabel {
  font-size: 11px;
  white-space: nowrap;
}

/* Calm day-at-a-time schedule for members on phones. */
.member-day-schedule main > h1,
.member-day-schedule main > p,
.member-day-schedule main > nav,
.member-day-schedule #showcancelled,
.member-day-schedule .schedulefilters .check {
  display: none;
}
.member-day-schedule main {
  padding-top: 0;
  margin-top: 0;
}
.member-schedule-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d8e1eb;
  margin: 0 -18px 14px;
}
.member-schedule-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #56677a;
  padding: 19px 12px;
  font-size: 16px;
}
.member-schedule-tabs button[aria-selected="true"] {
  color: #0b4f97;
  border-bottom-color: #0b4f97;
}
.member-schedule-tabs button:not(:disabled):hover {
  background: #e7eff8;
  color: #0b4f97;
}
#member-schedule-filters {
  background: white;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  margin: 0 0 15px;
}
#member-schedule-filters summary {
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 650;
  color: #102d50;
}
#member-filter-summary {
  float: right;
  font-size: 12px;
  font-weight: 500;
  color: #56677a;
  max-width: 65%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.member-day-schedule .schedulefilters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 15px 15px;
  margin: 0;
}
.member-day-schedule .schedulefilters label {
  min-width: 0;
}
.member-day-schedule .schedulefilters select {
  padding: 11px;
  font-size: 16px;
}
#member-week-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 11px;
}
#member-week-controls button {
  padding: 7px 11px;
  min-height: 36px;
}
#member-week-label {
  flex: 1;
  text-align: right;
  font-size: 13px;
  font-weight: 650;
  color: #56677a;
}
.member-seven-days,
.member-month-weekdays,
.member-month-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.member-schedule-day {
  border: 0;
  background: transparent;
  color: #56677a;
  padding: 7px 0;
  border-radius: 9px;
  font-size: 11px;
  min-width: 0;
}
.member-schedule-day span {
  display: block;
  margin-bottom: 5px;
}
.member-schedule-day strong {
  font-size: 20px;
  display: block;
  font-weight: 650;
}
.member-schedule-day[aria-pressed="true"],
.member-month-day[aria-pressed="true"] {
  background: #0b4f97;
  color: white;
}
.member-schedule-day.is-today:not([aria-pressed="true"]),
.member-month-day.is-today:not([aria-pressed="true"]) {
  color: #c51d36;
  box-shadow: inset 0 -2px #c51d36;
}
.member-schedule-day:not(:disabled):hover,
.member-month-day:not(:disabled):hover {
  background: #e7eff8;
  color: #102d50;
}
.member-schedule-day[aria-pressed="true"]:not(:disabled):hover,
.member-month-day[aria-pressed="true"]:not(:disabled):hover {
  background: #102d50;
  color: white;
}
#member-month-toggle {
  display: block;
  width: 100%;
  background: transparent;
  color: #0b4f97;
  border: 0;
  font-size: 24px;
  padding: 2px;
  margin: 6px 0;
  min-height: 36px;
}
#member-month-calendar {
  border-bottom: 1px solid #d8e1eb;
  padding-bottom: 16px;
}
.member-month-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.member-month-controls label {
  min-width: 0;
  margin: 4px 0 14px;
  flex: 1;
  font-size: 11px;
}
.member-month-controls label:has(input) {
  flex: 0.7;
}
.member-month-controls select,
.member-month-controls input {
  padding: 8px;
  font-size: 16px;
}
.member-month-controls > button {
  padding: 7px 9px;
}
.member-month-weekdays {
  font-size: 11px;
  text-align: center;
  color: #56677a;
  margin-bottom: 8px;
}
.member-month-day {
  background: transparent;
  color: #152b43;
  border: 0;
  font-size: 14px;
  border-radius: 8px;
  min-height: 40px;
  padding: 5px 0;
}
.member-month-day.outside-month {
  color: #87929e;
}
.member-day-schedule .schedulegrid {
  display: block;
  border: 0;
  background: transparent;
  margin-top: 16px;
  overflow: visible;
}
.member-selected-day h2 {
  font-size: 14px;
  color: #56677a;
  margin: 17px 0 12px;
  font-weight: 600;
}
.member-day-schedule .member-class-card {
  position: static;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  width: 100%;
  height: auto;
  padding: 16px 10px;
  margin: 0;
  background: white;
  border: 0;
  border-bottom: 1px solid #d8e1eb;
  border-radius: 0;
  color: #152b43;
  font-size: 14px;
  overflow: visible;
}
.member-class-card .member-class-clock {
  white-space: normal;
}
.member-class-clock strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
}
.member-class-clock small {
  display: block;
  font-size: 12px;
  color: #56677a;
  margin-top: 6px;
}
.member-class-card .member-class-description {
  display: block;
  white-space: normal;
  min-width: 0;
}
.member-class-description .classtitle {
  display: block;
  white-space: normal;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #0b4f97;
  overflow-wrap: anywhere;
}
.member-class-description > span:last-of-type {
  display: block;
  white-space: normal;
  font-size: 12px;
  color: #56677a;
}
.member-class-description small {
  display: block;
  color: #0b4f97;
  font-size: 12px;
  margin-top: 6px;
}
.member-class-chevron {
  font-size: 23px;
  color: #87929e;
}
.member-day-schedule .member-class-card:not(:disabled):hover {
  background: #e7eff8;
  color: #152b43;
  border-color: #d8e1eb;
}
.member-schedule-empty {
  background: white;
  padding: 25px 18px;
  border-radius: 10px;
  color: #56677a;
  font-size: 14px;
}
.member-day-schedule .member-class-card > .member-class-chevron {
  grid-column: 3;
  grid-row: 1;
}
.member-day-schedule .member-class-card > .member-class-clock {
  grid-column: 1;
  grid-row: 1;
}
.member-day-schedule .member-class-card > .member-class-description {
  grid-column: 2;
  grid-row: 1;
}
#member-schedule-filters > #refresh {
  margin: 0 15px 15px;
  background: white;
  color: #0b4f97;
  border-color: #d8e1eb;
}

/* Four compact fields on each calendar tile. */
.classcard {
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.05;
  gap: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.classcard > strong,
.classcard > span {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.05;
}
.classcard .classcount {
  font-weight: 700;
}
#classdetails {
  position: fixed;
  width: min(440px, 94vw);
  border-radius: 12px;
  padding: 22px;
}
.class-actions {
  position: absolute;
  right: 18px;
  top: 14px;
}
.class-actions summary {
  cursor: pointer;
  font-size: 25px;
  list-style: none;
  padding: 0 10px;
}
.class-actions summary::-webkit-details-marker {
  display: none;
}
.class-actions > div {
  position: absolute;
  right: 0;
  top: 36px;
  background: #fff;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  box-shadow: 0 6px 25px #102d5026;
  width: 200px;
  z-index: 5;
  padding: 7px;
}
.class-actions button {
  width: 100%;
  background: white;
  color: #102d50;
  border: 0;
  text-align: left;
  padding: 11px;
}
.class-actions button:hover {
  background: #edf4fa;
}
.class-roster-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e7edf4;
}
.class-roster-row > span:first-of-type {
  flex: 1;
}
.class-roster-row > button {
  padding: 7px 11px;
}
#markall:not(:empty) {
  margin: 6px 0 4px;
}
.markall-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  background: #f5f9fc;
}
.markall-confirm p {
  flex-basis: 100%;
  margin: 0;
}
.markall-result {
  margin: 4px 0;
  font-weight: 600;
}
.markall-skipped {
  margin: 0 0 6px;
  padding-left: 20px;
  color: #8a3b12;
}
.class-roster-row > strong {
  font-size: 12px;
  color: #246247;
}
@media (max-width: 800px) {
  .classcard {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 9px;
    font-size: 13px;
    gap: 6px;
  }
  .classcard .classcoach {
    grid-column: 2;
  }
  .classcard .classcount {
    grid-column: 1;
    grid-row: 2;
  }
}
/* The class ⋯ menu sits alone in the dialog's top-right corner; the title
   row keeps that corner free so long titles wrap beside it, never under it. */
#classdetails .class-actions {
  right: 10px;
  top: 12px;
  z-index: 100;
}
#classdetails .class-actions summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  line-height: 1;
}
#classdetails .class-actions summary:hover,
#classdetails .class-actions[open] summary {
  background: #e3ebf4;
}
#classdetails .class-actions > div {
  top: 46px;
}
#classdetails:has(.class-actions) .sectiontitle {
  padding-right: 42px;
}
#detailtitle {
  overflow-wrap: anywhere;
}
/* Deleting a repeating class is destructive: red, and set apart from Close. */
#deleteseries {
  margin-left: auto;
  color: #a41635;
  border-color: #e7b3bf;
}
#deleteseries:hover {
  background: #fbeef1;
}
/* On phones it gets its own full-width line below Save and Close. */
@media (max-width: 600px) {
  #deleteseries {
    margin-left: 0;
    margin-top: 14px;
    flex-basis: 100%;
  }
}
#classdetails .sectiontitle {
  padding-right: 0;
}

/* Personal training appointments on the member's phone Schedule (Run 8). */
.member-day-schedule .member-appointment-card {
  grid-template-columns: 72px minmax(0, 1fr);
  border-left: 4px solid #0b4f97;
}
.member-appointment-card .member-appointment-actions,
.member-appointment-card .member-appointment-note {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #56677a;
}
.member-appointment-card .member-appointment-actions button {
  min-height: 44px;
  margin: 0;
}
.member-appointment-status:empty {
  display: none;
}
.member-appointment-status {
  color: #8a2c0d;
  font-size: 14px;
  margin: 8px 0 0;
}
.member-appointment-actions .danger {
  background: #a3271b;
  border-color: #a3271b;
  color: white;
}

/* Parents book for their linked dependents (Brock 2026-11-08). */
.book-for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.book-for > span {
  font-weight: 700;
}
.book-for button {
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.book-for button[aria-pressed="true"] {
  background: #0b4f97;
  border-color: #0b4f97;
  color: white;
}
.booking-for-note {
  font-weight: 700;
}
