/* =========================================================
   pages/student-dashboard.css
   ---------------------------------------------------------
   Student dashboard and legacy lesson-history styles.
   Dashboard direction: minimal, focused, with restrained
   colour accents.
   ========================================================= */


/* =========================================================
   1) STUDENT APP SHELL
   ========================================================= */

body.nn-student-view {
  background: #f7f8fa;
}

body.nn-student-view .site-header {
  display: none;
}

body.nn-student-view main.site-container {
  background: #f7f8fa;
  padding-top: 38px;
}

.nn-student-dashboard {
  display: grid;
  gap: 28px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px 72px;
  color: #111827;
}


/* =========================================================
   2) DASHBOARD INTRO
   ========================================================= */

.nn-student-dashboard__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nn-student-dashboard__intro h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.nn-student-dashboard__intro p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.4;
}

.nn-student-dashboard__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #0f9fa8;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}


/* =========================================================
   3) NEXT LESSON STRIP
   ========================================================= */

.nn-student-next {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #e0e5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
}

.nn-student-next__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef8f8;
  color: #087780;
  font-size: 1.2rem;
}

.nn-student-next__content {
  min-width: 0;
}

.nn-student-next__content strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.nn-student-next__content p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.35;
}

.nn-student-next__content small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.8rem;
}

.nn-student-next__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid #cfd7df;
  border-radius: 9px;
  background: #fff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nn-student-next__action:hover,
.nn-student-next__action:focus-visible {
  border-color: #0f9fa8;
  color: #087780;
  text-decoration: none;
}


/* =========================================================
   4) NOTICES
   ========================================================= */

.nn-student-dashboard .nn-notice,
.nn-student-dashboard .nn-student-notice {
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}


/* =========================================================
   5) FEATURE SHORTCUTS
   ========================================================= */

.nn-student-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid #e2e7ec;
  border-bottom: 1px solid #e2e7ec;
}

.nn-student-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 28px 24px 26px;
  color: #111827;
  text-align: center;
  text-decoration: none;
}

.nn-student-shortcut + .nn-student-shortcut {
  border-left: 1px solid #e2e7ec;
}

.nn-student-shortcut:hover,
.nn-student-shortcut:focus-visible {
  color: #111827;
  text-decoration: none;
}

.nn-student-shortcut__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 1.25rem;
}

.nn-student-shortcut--practice .nn-student-shortcut__icon {
  background: #e8f6ef;
  color: #16845f;
}

.nn-student-shortcut--resources .nn-student-shortcut__icon {
  background: #eaf1ff;
  color: #2563eb;
}

.nn-student-shortcut--milestones .nn-student-shortcut__icon {
  background: #fff2d8;
  color: #b86c00;
}

.nn-student-shortcut h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.nn-student-shortcut p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.nn-student-shortcut__practiceButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #18865f;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(24, 134, 95, 0.16);
  opacity: 1;
  cursor: pointer;
}

.nn-student-shortcut__practiceButton:hover,
.nn-student-shortcut__practiceButton:focus-visible {
  background: #126f4e;
  color: #fff;
  text-decoration: none;
}

.nn-student-shortcut__practiceGoals {
  width: 100%;
  max-width: 250px;
  margin-top: 12px;
  color: #334155;
  text-align: left;
}

.nn-student-shortcut__practiceGoals > strong {
  display: block;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.nn-student-shortcut__practiceGoals ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
}

.nn-student-shortcut__practiceGoals li + li {
  margin-top: 4px;
}

.nn-student-shortcut .nn-student-shortcut__practiceEmpty {
  max-width: 240px;
  margin-top: 12px;
}

.nn-student-shortcut__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #087780;
  font-size: 0.81rem;
  font-weight: 800;
}

.nn-student-shortcut--resources .nn-student-shortcut__action {
  color: #1d5fc2;
}

.nn-student-shortcut--milestones .nn-student-shortcut__action {
  color: #a96200;
}


/* =========================================================
   6) RECENT LESSONS
   ========================================================= */

.nn-student-recent {
  overflow: hidden;
  border: 1px solid #e0e5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
}

.nn-student-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 12px;
}

.nn-student-recent__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.nn-student-recent__head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.nn-student-recent__head a:hover,
.nn-student-recent__head a:focus-visible {
  color: #087780;
  text-decoration: none;
}

.nn-student-recent__list {
  margin: 0;
  padding: 0 24px 10px;
  list-style: none;
}

.nn-student-recent__list li {
  border-top: 1px solid #e8ecf0;
}

.nn-student-recent__list a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  color: #334155;
  text-decoration: none;
}

.nn-student-recent__list a:hover,
.nn-student-recent__list a:focus-visible {
  color: #0f172a;
  text-decoration: none;
}

.nn-student-recent__list time {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
}

.nn-student-recent__label {
  font-size: 0.84rem;
  line-height: 1.3;
}

.nn-student-recent__label.is-missed {
  color: #dc2626;
  font-weight: 700;
}

.nn-student-recent__label.is-no_charge {
  color: #9a6700;
}

.nn-student-recent__list i {
  justify-self: end;
  color: #94a3b8;
  font-size: 0.68rem;
}

.nn-student-recent__empty {
  margin: 8px 24px 24px;
  padding: 18px;
  border: 1px dashed #d8dfe6;
  border-radius: 10px;
  background: #fafbfc;
}

.nn-student-recent__empty strong {
  display: block;
  color: #1e293b;
  font-size: 0.88rem;
}

.nn-student-recent__empty p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.8rem;
}


/* =========================================================
   8) LEGACY LESSON-HISTORY VIEW
   ========================================================= */

body.nn-student-view .nn-student {
  width: min(100%, 1160px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  color: #111827;
}

body.nn-student-view .nn-student-intro h1 {
  margin: 16px 0 6px;
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

body.nn-student-view .nn-student-meta-wrap {
  display: grid;
  gap: 2px;
}

body.nn-student-view .nn-student-intro .nn-meta,
body.nn-student-view .nn-student-intro .nn-meta--secondary {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

body.nn-student-view .nn-next {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid #e0e5eb;
  border-radius: 10px;
  background: #fff;
}

body.nn-student-view .nn-next h2 {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.nn-student-view .nn-next-date {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 750;
}

body.nn-student-view .nn-lesson-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.nn-student-view .nn-lesson {
  display: block;
  width: 100%;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #e0e5eb;
  border-radius: 10px;
  background: #fff;
}

body.nn-student-view .nn-lesson-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.nn-student-view .nn-date {
  flex: 1 1 auto;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

body.nn-student-view .nn-chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-left: 16px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

body.nn-student-view .nn-lesson.is-open .nn-chevron {
  transform: rotate(-135deg);
}

body.nn-student-view .nn-lesson-content {
  display: none;
  padding: 0 18px 18px;
  color: #475569;
}

body.nn-student-view .nn-lesson.is-open .nn-lesson-content {
  display: block;
}

body.nn-student-view .nn-block {
  margin: 18px 0 0;
}

body.nn-student-view .nn-block h4 {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.nn-student-view .nn-block p {
  margin: 0 0 8px;
  line-height: 1.6;
}

body.nn-student-view .nn-status-attended .nn-date {
  padding-left: 12px;
  border-left: 4px solid #2e7d32;
}

body.nn-student-view .nn-status-missed .nn-date {
  padding-left: 12px;
  border-left: 4px solid #b42318;
}

body.nn-student-view .nn-status-no_charge .nn-date {
  padding-left: 12px;
  border-left: 4px solid #a16207;
}

body.nn-student-view .nn-status-unknown .nn-date {
  padding-left: 12px;
  border-left: 4px solid #cbd5e1;
}

body.nn-student-view .nn-links {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.nn-student-view .nn-links li {
  margin: 6px 0;
}

body.nn-student-view .nn-links a {
  color: #087780;
  text-decoration: none;
  word-break: break-word;
}

body.nn-student-view .nn-links a:hover {
  text-decoration: underline;
}

body.nn-student-view .nn-future-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid #d9e0e7;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

body.nn-student-view .nn-future-lessons {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease;
}

body.nn-student-view .nn-future-lessons.is-open {
  max-height: 700px;
  margin-top: 16px;
  opacity: 1;
}

body.nn-student-view .nn-future-lessons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5e7eb;
}

body.nn-student-view .nn-future-lessons li {
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #475569;
  font-size: 0.9rem;
}


/* =========================================================
   9) RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  body.nn-student-view main.site-container {
    padding-top: 22px;
  }

  .nn-student-dashboard {
    gap: 20px;
    padding: 0 14px 48px;
  }

  .nn-student-dashboard__intro h1 {
    font-size: 1.65rem;
  }

  .nn-student-dashboard__avatar {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .nn-student-next {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .nn-student-next__icon {
    width: 42px;
    height: 42px;
  }

  .nn-student-next__action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nn-student-shortcuts {
    grid-template-columns: 1fr;
    border: 1px solid #e0e5eb;
    border-radius: 14px;
    background: #fff;
  }

  .nn-student-shortcut {
    align-items: flex-start;
    padding: 20px;
    text-align: left;
  }

  .nn-student-shortcut + .nn-student-shortcut {
    border-top: 1px solid #e2e7ec;
    border-left: 0;
  }

  .nn-student-shortcut__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  .nn-student-shortcut__action {
    margin-top: 14px;
  }

  .nn-student-shortcut__practiceButton {
    margin-top: 14px;
  }

  .nn-student-shortcut__practiceGoals,
  .nn-student-shortcut .nn-student-shortcut__practiceEmpty {
    max-width: none;
  }

  .nn-student-recent__head {
    padding: 18px 18px 10px;
  }

  .nn-student-recent__head a {
    font-size: 0.76rem;
  }

  .nn-student-recent__list {
    padding: 0 18px 8px;
  }

  .nn-student-recent__list a {
    grid-template-columns: 62px minmax(0, 1fr) 12px;
    gap: 12px;
  }

  body.nn-student-view .nn-student {
    padding: 22px 14px 56px;
  }
}

@media (max-width: 420px) {
  .nn-student-dashboard__intro p {
    font-size: 0.9rem;
  }
}

/* =========================================================
   10) STUDENT LESSONS PAGE
   ---------------------------------------------------------
   Matches the minimal student dashboard visual language.
   ========================================================= */

.nn-student-lessons-page {
  display: grid;
  gap: 26px;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 24px 72px;
  color: #111827;
}

.nn-student-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #087780;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.nn-student-page-back:hover,
.nn-student-page-back:focus-visible {
  color: #075f66;
  text-decoration: none;
}

.nn-student-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nn-student-page-heading h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.nn-student-page-heading p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.4;
}


/* Student area shortcuts */

.nn-student-page-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nn-student-page-shortcut {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #e0e5eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.nn-student-page-shortcut:hover,
.nn-student-page-shortcut:focus-visible {
  transform: translateY(-1px);
  color: #111827;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045);
}

.nn-student-page-shortcut > i {
  justify-self: end;
  color: #94a3b8;
  font-size: 0.7rem;
}

.nn-student-page-shortcut__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1rem;
}

.nn-student-page-shortcut strong,
.nn-student-page-shortcut small {
  display: block;
}

.nn-student-page-shortcut strong {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

.nn-student-page-shortcut small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.76rem;
}

.nn-student-page-shortcut--practice {
  border-color: #cee7dc;
}

.nn-student-page-shortcut--practice .nn-student-page-shortcut__icon {
  background: #e8f6ef;
  color: #16845f;
}

.nn-student-page-shortcut--resources {
  border-color: #d7e2f6;
}

.nn-student-page-shortcut--resources .nn-student-page-shortcut__icon {
  background: #eaf1ff;
  color: #2563eb;
}

.nn-student-page-shortcut--milestones {
  border-color: #f0dfb9;
}

.nn-student-page-shortcut--milestones .nn-student-page-shortcut__icon {
  background: #fff2d8;
  color: #b86c00;
}


/* Shared Lessons sections */

.nn-student-upcoming,
.nn-student-history {
  overflow: hidden;
  border: 1px solid #e0e5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
}

.nn-student-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 17px;
}

.nn-student-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.nn-student-section-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.nn-student-section-head > span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 700;
}


/* Upcoming lessons */

.nn-student-upcoming__list {
  padding: 0 24px 14px;
}

.nn-student-upcoming__lesson {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 82px;
  padding: 13px 4px;
  border-top: 1px solid #e8ecf0;
}

.nn-student-upcoming__lesson.is-next {
  margin: 0 0 6px;
  padding: 14px;
  border: 1px solid #bfe2df;
  border-radius: 11px;
  background: #f5fbfb;
}

.nn-student-upcoming__date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 50px;
  height: 54px;
  border-radius: 10px;
  background: #eef8f8;
  color: #087780;
}

.nn-student-upcoming__date strong {
  font-size: 1.04rem;
  line-height: 1;
}

.nn-student-upcoming__date span {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.nn-student-upcoming__main {
  min-width: 0;
}

.nn-student-upcoming__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #087780;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nn-student-upcoming__main h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.nn-student-upcoming__main p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.77rem;
}

.nn-student-upcoming__lesson time {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 850;
  white-space: nowrap;
}


/* Lesson history */

.nn-student-history__list {
  padding: 0 24px 14px;
}

.nn-student-history__lesson {
  border-top: 1px solid #e8ecf0;
}

.nn-student-history__toggle {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 17px;
  width: 100%;
  min-height: 72px;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nn-student-history__date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 46px;
  height: 50px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
}

.nn-student-history__date strong {
  font-size: 0.94rem;
  line-height: 1;
}

.nn-student-history__date small {
  margin-top: 4px;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.nn-student-history__lesson.is-attended .nn-student-history__date {
  background: #edf8f3;
  color: #16845f;
}

.nn-student-history__lesson.is-missed .nn-student-history__date {
  background: #fff0f0;
  color: #c2413b;
}

.nn-student-history__lesson.is-no_charge .nn-student-history__date {
  background: #fff8e8;
  color: #946000;
}

.nn-student-history__summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nn-student-history__summary strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-student-history__summary small {
  color: #64748b;
  font-size: 0.74rem;
}

.nn-student-history__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 750;
  white-space: nowrap;
}

.nn-student-history__lesson.is-attended .nn-student-history__status {
  background: #edf8f3;
  color: #16845f;
}

.nn-student-history__lesson.is-missed .nn-student-history__status {
  background: #fff0f0;
  color: #c2413b;
}

.nn-student-history__lesson.is-no_charge .nn-student-history__status {
  background: #fff8e8;
  color: #946000;
}

.nn-student-history__chevron {
  justify-self: end;
  color: #94a3b8;
  font-size: 0.68rem;
  transition: transform 0.18s ease;
}

.nn-student-history__lesson.is-open .nn-student-history__chevron {
  transform: rotate(180deg);
}

.nn-student-history__details {
  display: none;
  margin: 0 0 12px 67px;
  padding: 4px 20px 20px;
  border-left: 2px solid #e4e9ee;
}

.nn-student-history__lesson.is-open .nn-student-history__details {
  display: block;
}

.nn-student-history__block {
  margin-top: 17px;
}

.nn-student-history__block:first-child {
  margin-top: 8px;
}

.nn-student-history__block h3 {
  margin: 0 0 7px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nn-student-history__block p {
  margin: 0 0 8px;
  color: #334155;
  line-height: 1.58;
}

.nn-student-history__links {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-student-history__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #087780;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.nn-student-history__links a:hover {
  text-decoration: underline;
}

.nn-student-history__links i {
  font-size: 0.65rem;
}

.nn-student-history__images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nn-student-history__images img {
  display: block;
  width: min(180px, 100%);
  height: auto;
  border-radius: 8px;
}


/* Empty states */

.nn-student-page-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 0 24px 22px;
  padding: 17px;
  border: 1px dashed #d8dfe6;
  border-radius: 10px;
  background: #fafbfc;
}

.nn-student-page-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #eef8f8;
  color: #087780;
}

.nn-student-page-empty strong {
  display: block;
  color: #1e293b;
  font-size: 0.86rem;
}

.nn-student-page-empty p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.78rem;
}


/* =========================================================
   11) STUDENT LESSONS RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .nn-student-lessons-page {
    gap: 20px;
    padding: 0 14px 48px;
  }

  .nn-student-page-heading h1 {
    font-size: 1.65rem;
  }

  .nn-student-page-shortcuts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nn-student-page-shortcut {
    min-height: 72px;
  }

  .nn-student-section-head {
    padding: 18px 18px 14px;
  }

  .nn-student-upcoming__list,
  .nn-student-history__list {
    padding: 0 18px 10px;
  }

  .nn-student-upcoming__lesson {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .nn-student-upcoming__lesson.is-next {
    padding: 12px;
  }

  .nn-student-upcoming__lesson time {
    font-size: 0.98rem;
  }

  .nn-student-history__toggle {
    grid-template-columns: 46px minmax(0, 1fr) 12px;
    gap: 12px;
  }

  .nn-student-history__status {
    grid-column: 2;
    width: fit-content;
    margin-top: -3px;
  }

  .nn-student-history__chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .nn-student-history__details {
    margin-left: 58px;
    padding-right: 6px;
    padding-left: 15px;
  }
}

@media (max-width: 460px) {
  .nn-student-page-heading .nn-student-dashboard__avatar {
    display: none;
  }

  .nn-student-upcoming__lesson {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .nn-student-upcoming__lesson time {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
    color: #087780;
  }

  .nn-student-history__summary strong {
    white-space: normal;
  }

  .nn-student-section-head > span {
    display: none;
  }
}
