.dashboard-schedule-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.4rem 0 0.9rem;
}

.dashboard-schedule-heading h2 {
  margin-bottom: 0.2rem;
}

.dashboard-schedule-heading p {
  margin-bottom: 0;
}

.schedule-updated-at {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.dashboard-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.schedule-panel {
  min-width: 0;
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.schedule-panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.schedule-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.schedule-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #9ca3af;
}

.schedule-panel-current .schedule-dot {
  background: #3c8d63;
  box-shadow: 0 0 0 5px rgba(60, 141, 99, 0.12);
  animation: schedulePulse 2.8s ease-in-out infinite;
}

.schedule-panel-upcoming .schedule-dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(79, 141, 247, 0.12);
}

.schedule-student-card {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 190px;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.schedule-student-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-student-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.schedule-student-card.is-current {
  border-color: rgba(60, 141, 99, 0.28);
  background: linear-gradient(145deg, #ffffff, #f1faf5);
}

.schedule-student-card.is-upcoming {
  border-color: rgba(79, 141, 247, 0.24);
  background: linear-gradient(145deg, #ffffff, #f3f7ff);
}

.schedule-card-orb {
  display: none;
}

.schedule-music-mark {
  width: 52px;
  height: 52px;
}

.schedule-student-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.schedule-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.schedule-identity > div {
  width: 100%;
  text-align: center;
}

.schedule-avatar {
  display: none !important;
}

.schedule-student-main h3 {
  margin: 0.22rem 0 0.3rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  text-align: center;
}

.schedule-student-main p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.schedule-focus {
  min-height: 9.5rem;
}

.schedule-status {
  display: inline-block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-align: center;
}

.schedule-pill {
  position: static;
  z-index: 1;
  align-self: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  backdrop-filter: none;
  margin-left: 0;
}

.schedule-pill::before {
  content: "Teacher: ";
  font-weight: 500;
}

.schedule-progress-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  padding: 0.72rem 0.8rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(60, 141, 99, 0.12);
}

.schedule-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.schedule-progress-copy strong {
  color: #347653;
  font-weight: 750;
}

.schedule-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(60, 141, 99, 0.12);
}

.schedule-progress-track span {
  display: block;
  height: 100%;
  min-width: 7px;
  border-radius: inherit;
  background: linear-gradient(90deg, #57a875, #3c8d63);
  transition: width 0.6s ease;
}

.schedule-student-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.schedule-student-actions .button {
  min-width: 180px;
  text-decoration: none;
  text-align: center;
}

.schedule-student-actions .button:last-child {
  position: relative;
  overflow: hidden;
}

.schedule-student-actions .button:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.22) 48%, transparent 70%);
  transition: transform 0.55s ease;
}

.schedule-student-actions .button:last-child:hover::after {
  transform: translateX(120%);
}

.schedule-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  min-height: 190px;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(145deg, #fbfcfe, #f7f9fc);
}

.schedule-empty .schedule-music-mark {
  width: 38px;
  height: 38px;
  color: #b7c2d1;
  animation: scheduleFloat 4s ease-in-out infinite;
}

.student-card-highlight {
  animation: studentCardFocus 2.4s ease;
  position: relative;
  z-index: 1;
}

@keyframes schedulePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(60, 141, 99, 0.12); }
  50% { box-shadow: 0 0 0 9px rgba(60, 141, 99, 0.035); }
}

@keyframes scheduleFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes studentCardFocus {
  0%, 100% {
    box-shadow: inherit;
    transform: translateY(0);
  }
  18%, 70% {
    box-shadow:
      0 0 0 4px rgba(79, 141, 247, 0.16),
      0 18px 44px rgba(79, 141, 247, 0.18);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-panel-current .schedule-dot,
  .schedule-empty .schedule-music-mark,
  .student-card-highlight {
    animation: none;
  }

  .schedule-student-card,
  .schedule-progress-track span,
  .schedule-student-actions .button:last-child::after {
    transition: none;
  }
}

@media (max-width: 760px) {
  .dashboard-schedule-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-schedule-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-panel-current .schedule-empty {
    min-height: 96px;
    padding: 0.75rem 1rem;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .schedule-panel-current .schedule-empty .schedule-music-mark {
    width: 28px;
    height: 28px;
  }

  .schedule-identity {
    align-items: center;
  }

  .schedule-pill {
    margin-left: 0;
  }

  .schedule-student-actions .button {
    width: 100%;
    min-width: 0;
  }

  .schedule-progress-copy {
    flex-direction: column;
    gap: 0.2rem;
  }
}
