/* Teacher home only: give the calendar enough room for readable dates and lessons. */
.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-home-content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr);
  gap: 22px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-home-side-rail {
  gap: 20px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-calendar-compact {
  flex: 1 0 auto;
  min-height: 350px;
  padding: 24px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-calendar-compact .compact-section-head {
  align-items: center;
  margin-bottom: 20px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-calendar-compact .compact-section-head h2 {
  font-size: 20px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-calendar-compact .compact-section-head p {
  margin-top: 8px;
  font-size: 14px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week {
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button {
  min-width: 0;
  min-height: 80px;
  gap: 8px;
  padding: 10px 0;
  border-radius: 9px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button span {
  font-size: 14px;
  line-height: 20px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button strong {
  font-size: 22px;
  line-height: 26px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button.active strong {
  color: #fff;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button i {
  width: 5px;
  height: 5px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons {
  gap: 12px;
  margin-top: 20px;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons button {
  grid-template-columns: 114px minmax(0, 1fr);
  align-items: center;
  gap: 6px 16px;
  min-height: 84px;
  padding: 16px;
  border-radius: 10px;
  line-height: 1.5;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons button span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: 12px;
  border-right: 1px solid #dceaf3;
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons button strong {
  min-width: 0;
  color: #214a62;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons button em {
  min-width: 0;
  color: #64778b;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-empty {
  min-height: 150px;
  gap: 12px;
  font-size: 14px;
}

@media (max-width: 1199px) {
  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-home-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-home-side-rail {
    display: grid;
    grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-home-side-rail {
    display: flex;
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .teacher-calendar-compact {
    min-height: 320px;
    padding: 16px;
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week {
    gap: 2px;
    padding: 8px 2px;
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button {
    min-height: 72px;
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-week button strong {
    font-size: 20px;
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons button {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 5px 10px;
    padding: 12px;
  }

  .teacher-dashboard.teacher-dashboard-home .teacher-home-reference .home-calendar-lessons button span {
    padding-right: 8px;
    font-size: 13px;
  }
}
