.schedule-board {
  padding: 1.25rem;
  border: 1px solid rgba(137, 135, 159, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(44, 62, 80, 0.08);
}

.schedule-board__heading {
  margin: 0 0 1rem;
  color: #2c3e50;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

.schedule-board__table-scroll {
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.schedule-board__table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.schedule-board__table th {
  padding: 0.85rem 0.75rem;
  border: 0;
  background: linear-gradient(135deg, #7a7a93 0%, #647a8c 100%);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-board__table thead th:first-child {
  border-top-left-radius: 18px;
}

.schedule-board__table thead th:last-child {
  border-top-right-radius: 18px;
}

.schedule-board__table td {
  padding: 0.9rem 0.75rem;
  border-right: 1px solid rgba(137, 135, 159, 0.12);
  border-bottom: 1px solid rgba(137, 135, 159, 0.12);
  vertical-align: top;
  text-align: left;
  background: #eef3f7;
}

.schedule-board__table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 96px;
  padding: 0.9rem 0.65rem;
  border-right: 1px solid rgba(137, 135, 159, 0.12);
  border-bottom: 1px solid rgba(137, 135, 159, 0.12);
  background: #eef3f7;
  color: #5f7486;
  text-align: center;
  vertical-align: top;
  font-size: 0.8rem;
}

.schedule-board__time-head {
  width: 96px;
}

.schedule-board__time-cell {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.schedule-board__time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 36px;
  padding: 0.3rem 0.65rem;
  border-radius: 14px;
  background: #dde6ed;
}

.schedule-board__table td:last-child {
  border-right: 0;
}

.schedule-board__table tbody tr:last-child th:first-child {
  border-bottom-left-radius: 18px;
}

.schedule-board__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 18px;
}

.schedule-board__empty {
  display: block;
  min-height: 3.2rem;
}

.schedule-board__entry + .schedule-board__entry {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(137, 135, 159, 0.12);
}

.schedule-board__gap-row th,
.schedule-board__gap-row td {
  padding-top: 0.05rem;
  padding-bottom: 0.05rem;
  border-bottom: 0;
  background: #f8fbfd;
}

.schedule-board__gap-time {
  text-align: center;
  vertical-align: middle;
}

.schedule-board__gap-cell {
  border-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.schedule-board__gap-cell:last-child {
  border-right: 0;
}

.schedule-board__gap-dots {
  display: inline-grid;
  gap: 0.08rem;
  justify-items: center;
}

.schedule-board__gap-dots span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(95, 116, 134, 0.3);
}

.schedule-board__time,
.schedule-board__title {
  margin-bottom: 0.45rem;
}

.schedule-board__time {
  color: #5f7486;
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-board__title {
  color: #2c3e50;
  font-weight: 700;
  white-space: pre-line;
}

.schedule-board__entry .schedule-board__title:last-child,
.schedule-board__entry .schedule-board__time:last-child {
  margin-bottom: 0;
}

.schedule-board__caption {
  margin: 1rem 0 0;
  color: #5f7486;
  text-align: center;
  white-space: pre-line;
}

.schedule-board__empty-state {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #eef3f7;
  color: #5f7486;
  text-align: center;
  font-weight: 700;
}

.schedule-board__error {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #89879f;
  color: #ffffff;
  font-weight: 700;
}

.schedule-board--compact {
  padding: 1rem;
}

.schedule-board--compact .schedule-board__heading {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.schedule-board--compact .schedule-board__table th,
.schedule-board--compact .schedule-board__table td {
  padding: 0.7rem 0.55rem;
}

.schedule-board__mobile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}

.schedule-board__day-card {
  padding: 0.95rem;
  border: 1px solid rgba(137, 135, 159, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.06);
}

.schedule-board__day-heading {
  margin: 0 0 0.85rem;
  color: #2c3e50;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.schedule-board__day-list {
  display: grid;
  gap: 0.65rem;
}

.schedule-board__mobile-entry {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #eef3f7;
  border: 1px solid rgba(137, 135, 159, 0.12);
}

.schedule-board__mobile-time,
.schedule-board__mobile-title {
  margin: 0;
}

.schedule-board__mobile-time {
  color: #5f7486;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-board__mobile-title {
  color: #2c3e50;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}

.schedule-board__mobile-gap {
  display: grid;
  gap: 0.12rem;
  justify-content: center;
  padding: 0.1rem 0;
}

.schedule-board__mobile-gap span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(95, 116, 134, 0.28);
}

@media (max-width: 575.98px) {
  .schedule-board {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .schedule-board__heading {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }

  .schedule-board__mobile {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .schedule-board__day-card {
    padding: 0.8rem;
    border-radius: 18px;
  }

  .schedule-board__day-heading {
    margin-bottom: 0.7rem;
    font-size: 0.92rem;
  }

  .schedule-board__mobile-entry {
    padding: 0.72rem 0.8rem;
    border-radius: 14px;
  }

  .schedule-board__mobile-title {
    font-size: 0.92rem;
  }
}
