.classroom-shell.is-student-dashboard {
  --student-violet: #6756e8;
  --student-violet-soft: rgba(103, 86, 232, .1);
  --student-green: #087f69;
  --student-green-soft: rgba(8, 127, 105, .1);
  --student-amber: #a8640d;
  --student-amber-soft: rgba(168, 100, 13, .11);
  padding: 32px clamp(20px, 3vw, 48px) 72px;
}

.classroom-shell.is-student-dashboard .classroom-hero,
.classroom-shell.is-student-dashboard .classroom-notice,
.classroom-shell.is-student-dashboard .student-enrollment-card,
.classroom-shell.is-student-dashboard .student-overview-strip,
.classroom-shell.is-student-dashboard .classroom-list-section {
  width: min(1440px, 100%);
  max-width: none;
}

.classroom-shell.is-student-dashboard .classroom-hero {
  align-items: center;
  margin-bottom: 24px;
}

.classroom-shell.is-student-dashboard .classroom-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: .98;
}

.classroom-shell.is-student-dashboard .classroom-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.classroom-shell.is-student-dashboard #refreshClassrooms {
  min-height: 46px;
  padding-inline: 18px;
}

.student-enrollment-card {
  grid-template-columns: minmax(320px, .9fr) minmax(320px, 1.1fr) minmax(170px, auto);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  padding: 20px;
}

.student-enrollment-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.student-enrollment-icon,
.student-overview-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.student-enrollment-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--student-violet);
  background: var(--student-violet-soft);
}

.student-enrollment-icon svg,
.student-overview-icon svg,
.student-course-meta svg {
  width: 21px;
  height: 21px;
}

.student-enrollment-copy h2 {
  margin: 4px 0 5px;
  font-size: 21px;
  line-height: 1.15;
}

.student-enrollment-copy p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.student-enrollment-card .field-label {
  margin: 0;
  font-size: 13px;
}

.student-enrollment-card .entry-input {
  min-height: 52px;
  margin-top: 7px;
  font-size: 16px;
  letter-spacing: .12em;
}

.student-enrollment-card #enrollClassroom {
  min-height: 52px;
  padding-inline: 24px;
  white-space: nowrap;
}

.student-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 28px;
}

.student-overview-metric {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 108px;
  gap: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 19, 26, .9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  padding: 18px 20px;
}

.student-overview-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  color: var(--student-violet);
  background: var(--student-violet-soft);
}

.student-overview-icon.green {
  color: var(--student-green);
  background: var(--student-green-soft);
}

.student-overview-icon.amber {
  color: var(--student-amber);
  background: var(--student-amber-soft);
}

.student-overview-metric > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.student-overview-metric strong {
  color: var(--text);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.student-overview-metric small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.classroom-shell.is-student-dashboard .classroom-list-head {
  align-items: center;
  margin-bottom: 14px;
}

.classroom-shell.is-student-dashboard .classroom-list-head h2 {
  font-size: 28px;
}

.classroom-shell.is-student-dashboard .classroom-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 18px;
}

.student-course-card {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(25, 35, 58, .13);
}

.student-course-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--student-violet), var(--student-green));
  content: "";
}

.student-course-card .classroom-card-top {
  align-items: center;
}

.student-course-card .classroom-card-top h2 {
  margin-top: 8px;
  font-size: clamp(25px, 2.3vw, 32px);
}

.student-class-code {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 118px;
  border-radius: 10px;
  padding: 9px 13px;
}

.student-class-code small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-class-code strong {
  color: var(--student-green);
  font-size: 14px;
  letter-spacing: .12em;
}

.student-course-meta {
  margin: 18px 0;
  gap: 10px;
}

.student-course-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  padding: 7px 11px;
  font-size: 13px;
}

.student-course-meta svg {
  width: 16px;
  height: 16px;
}

.student-course-meta .student-enrolled-status {
  border-color: rgba(8, 127, 105, .24);
  color: var(--student-green);
  background: var(--student-green-soft);
  font-weight: 800;
}

.student-course-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(103, 86, 232, .18);
  border-radius: 10px;
  background: var(--student-violet-soft);
  padding: 16px 18px;
}

.student-course-next strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 18px;
}

.student-course-next p {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.student-course-next .classroom-open {
  width: auto;
  min-width: 180px;
  min-height: 48px;
  padding-inline: 22px;
}

.classroom-shell.is-student-dashboard button,
.classroom-shell.is-student-dashboard input {
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.classroom-shell.is-student-dashboard button:focus-visible,
.classroom-shell.is-student-dashboard input:focus-visible {
  outline: 3px solid rgba(103, 86, 232, .34);
  outline-offset: 2px;
}

html[data-theme="day"] .classroom-shell.is-student-dashboard .student-enrollment-card,
html[data-theme="day"] .student-overview-metric,
html[data-theme="day"] .student-course-card {
  border-color: #d8dfeb;
  background: rgba(255, 255, 255, .96);
}

html[data-theme="day"] .student-enrollment-copy p,
html[data-theme="day"] .student-overview-metric small,
html[data-theme="day"] .student-class-code small,
html[data-theme="day"] .student-course-next p {
  color: #526078;
}

html[data-theme="day"] .student-overview-metric strong,
html[data-theme="day"] .student-course-next strong {
  color: #142039;
}

html[data-theme="day"] .student-course-next {
  border-color: rgba(103, 86, 232, .2);
  background: #f5f3ff;
}

html[data-theme="day"] .student-overview-metric {
  box-shadow: 0 14px 32px rgba(31, 42, 68, .08);
}

html[data-theme="night"] .classroom-shell.is-student-dashboard {
  --student-violet: #a99cff;
  --student-green: #63d6b4;
  --student-amber: #f0bd70;
}

html[data-theme="night"] .student-course-card,
html[data-theme="night"] .student-overview-metric,
html[data-theme="night"] .student-enrollment-card {
  border-color: #46536c;
}

html[data-theme="night"] .student-course-next {
  background: rgba(103, 86, 232, .13);
}

@media (max-width: 980px) {
  .student-enrollment-card {
    grid-template-columns: 1fr minmax(280px, 1fr);
  }

  .student-enrollment-copy {
    grid-row: 1 / 3;
  }

  .student-enrollment-card #enrollClassroom {
    grid-column: 2;
    width: 100%;
  }

  .student-overview-strip {
    grid-template-columns: 1fr 1fr;
  }

  .student-overview-metric:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .classroom-shell.is-student-dashboard {
    padding: 22px 14px 52px;
  }

  .classroom-shell.is-student-dashboard .classroom-hero {
    align-items: stretch;
  }

  .classroom-shell.is-student-dashboard .classroom-hero h1 {
    font-size: clamp(40px, 13vw, 54px);
  }

  .classroom-shell.is-student-dashboard .classroom-hero p {
    font-size: 16px;
  }

  .student-enrollment-card,
  .student-overview-strip,
  .student-course-next {
    grid-template-columns: 1fr;
  }

  .student-enrollment-card {
    align-items: stretch;
    padding: 17px;
  }

  .student-enrollment-copy {
    grid-row: auto;
  }

  .student-enrollment-card #enrollClassroom,
  .student-overview-metric:last-child {
    grid-column: auto;
  }

  .student-overview-metric {
    min-height: 94px;
  }

  .student-course-card {
    padding: 20px 18px 18px 22px;
  }

  .student-course-next .classroom-open {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .student-enrollment-copy,
  .student-course-card .classroom-card-top {
    align-items: flex-start;
  }

  .student-course-card .classroom-card-top {
    flex-direction: column;
  }

  .student-class-code {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .classroom-shell.is-student-dashboard *,
  .classroom-shell.is-student-dashboard *::before,
  .classroom-shell.is-student-dashboard *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}