.event {
  min-height: 25px;
}

.event-gap {
  visibility: hidden;
  pointer-events: none;
}

.event.seg-start {
  width: calc(100% + 6px);
  border-radius: 5px 0 0 5px;
}

.event.seg-mid {
  width: calc(100% + 12px);
  margin-left: -6px;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.event.seg-end {
  width: calc(100% + 6px);
  margin-left: -6px;
  border-radius: 0 5px 5px 0;
  padding-left: 0;
}

.event.seg-single {
  border-radius: 5px;
}

.event.selected.seg-start,
.event.selected.seg-mid,
.event.selected.seg-end {
  outline-offset: -2px;
}

.event.instructor-0 { background: #dbeafe; color: #1d4ed8; }
.event.instructor-1 { background: #ccfbf1; color: #0f766e; }
.event.instructor-2 { background: #fef3c7; color: #a16207; }
.event.instructor-3 { background: #ffe4e6; color: #be123c; }
.event.instructor-4 { background: #ede9fe; color: #6d28d9; }
.event.instructor-5 { background: #cffafe; color: #0e7490; }
.event.instructor-6 { background: #ecfccb; color: #4d7c0f; }
.event.instructor-7 { background: #ffedd5; color: #c2410c; }
.event.instructor-8 { background: #fce7f3; color: #be185d; }

.event.instructor-0.staffing-short { background-color: #dbeafe; color: #1d4ed8; --stripe-rgb: 59,130,246; }
.event.instructor-1.staffing-short { background-color: #ccfbf1; color: #0f766e; --stripe-rgb: 20,184,166; }
.event.instructor-2.staffing-short { background-color: #fef3c7; color: #a16207; --stripe-rgb: 234,179,8; }
.event.instructor-3.staffing-short { background-color: #ffe4e6; color: #be123c; --stripe-rgb: 244,63,94; }
.event.instructor-4.staffing-short { background-color: #ede9fe; color: #6d28d9; --stripe-rgb: 139,92,246; }
.event.instructor-5.staffing-short { background-color: #cffafe; color: #0e7490; --stripe-rgb: 8,145,178; }
.event.instructor-6.staffing-short { background-color: #ecfccb; color: #4d7c0f; --stripe-rgb: 101,163,13; }
.event.instructor-7.staffing-short { background-color: #ffedd5; color: #c2410c; --stripe-rgb: 249,115,22; }
.event.instructor-8.staffing-short { background-color: #fce7f3; color: #be185d; --stripe-rgb: 236,72,153; }

.event.staffing-short {
  border: 0 !important;
  background-image: none;
}

.event.staffing-short.seg-start,
.event.staffing-short.seg-single {
  border-left: 0;
}

.event.staffing-short.seg-end,
.event.staffing-short.seg-single {
  border-right: 0;
}

.event.event.staffing-complete {
  background: repeating-linear-gradient(135deg, rgba(107, 114, 128, .28) 0 1px, #e5e7eb 1px 6px);
  color: #4b5563;
  border-color: transparent;
}

.event .staffing-count,
.event.staffing-count {
  color: #dc2626 !important;
  font-weight: 800;
}

.coach-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 18px;
}

.selected-month-panel {
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 134px);
  overflow: hidden;
}

.selected-month-list {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 7px 15px 15px;
}

.selected-month-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.selected-month-item:last-child { border-bottom: 0; }
.selected-month-item:hover b { color: var(--blue); }
.selected-month-date { display: grid; place-items: center; height: 36px; padding: 0 7px; border-radius: 9px; background: #e8eef9; color: #173f7a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.selected-month-item b { display: block; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.selected-month-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.selected-month-item i { font-style: normal; }
.empty.compact { padding: 35px 8px; line-height: 1.8; }

.list-row .date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.list-row .date-box b {
  font-size: 15px;
  font-weight: 800;
}

.list-row .date-box span {
  font-size: 9px;
  font-weight: 600;
}

.history-month-filter {
  margin-left: auto;
  padding: 8px 30px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #536079;
  font-size: 11px;
  font-weight: 700;
}

.list-row.past-event {
  opacity: .55;
}

.list-row.past-event h4,
.list-row.past-event p {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

@media (max-width: 1180px) {
  .coach-calendar-layout { grid-template-columns: 1fr; }
  .selected-month-panel { position: static; max-height: none; }
  .selected-month-list { max-height: 360px; }
}

.event.event.selected {
  background: #6b7280;
  color: #fff;
  outline-color: #6b7280;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.events {
  display: grid;
  grid-auto-rows: 25px;
  align-items: stretch;
  row-gap: 4px;
}

.event,
.event-gap {
  height: 25px;
  min-height: 25px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 13px;
  align-self: stretch;
}

.event.seg-start,
.event.seg-mid,
.event.seg-end {
  top: 0;
}

.brand > span:last-child {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.35px;
}

.login-icon {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(145deg, #2f6bff, #173f7a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, .22);
}

.hero-copy h1 {
  font-size: clamp(29px, 3vw, 40px);
  white-space: nowrap;
}

.stats.master-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 540px) {
  .stats.master-stats {
    grid-template-columns: 1fr;
  }
}

.coach-notice {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 19px 22px;
  border: 1px solid #cfdcff;
  border-radius: 14px;
  background: #f3f6ff;
}

.coach-notice .notice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #dfe8ff;
  color: #3158b5;
  font-size: 19px;
}

.coach-notice h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #274b9c;
}

.coach-notice p {
  margin: 0;
  color: #60719b;
  font-size: 11px;
  line-height: 1.7;
}

.history-tabs {
  display: flex;
  gap: 4px;
  padding: 15px 20px 0;
  border-bottom: 1px solid var(--line);
}

.history-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 11px 16px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.history-tab.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.history-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--blue2);
  font-size: 10px;
}

@media (max-width: 700px) {
  .coach-notice {
    grid-template-columns: 38px 1fr;
  }

  .coach-notice .btn {
    grid-column: 1 / -1;
  }
}
