.nexobrain-student {
  --nexobrain-ink: #333;
  --nexobrain-surface: #fff;
  --nexobrain-soft: #e5e5e5;
  --nexobrain-muted: #727272;
  --nexobrain-accent: #50b428;
  --nexobrain-blue: #618c8b;
  --nexobrain-danger: #c93c35;
  --nexobrain-radius: 22px;
  --nexobrain-shadow: 0 22px 60px rgba(31, 42, 38, 0.1);
  margin: 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(80, 180, 40, 0.13), transparent 24rem),
    linear-gradient(135deg, #f4f5f0 0%, #eef2eb 48%, #e7eeeb 100%);
  color: var(--nexobrain-ink);
  font-family: "DM Sans", "Avenir Next", "Century Gothic", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.nexobrain-student *,
.nexobrain-student *::before,
.nexobrain-student *::after {
  box-sizing: border-box;
}

.nexobrain-student a {
  color: inherit;
}

.nexobrain-student .nexobrain-btn--primary {
  color: #fff;
}

.nexobrain-student .nexobrain-btn--secondary {
  color: var(--nexobrain-ink);
}

.nexobrain-student img,
.nexobrain-student video,
.nexobrain-student iframe {
  display: block;
  max-width: 100%;
}

.nexobrain-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--nexobrain-surface);
  border: 2px solid var(--nexobrain-ink);
  border-radius: 999px;
  transform: translateY(-160%);
}

.nexobrain-skip-link:focus {
  transform: translateY(0);
}

.nexobrain-student-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(51, 51, 51, 0.96);
  color: #fff;
  backdrop-filter: blur(14px);
}

.nexobrain-wordmark,
.nexobrain-student-nav,
.nexobrain-student-nav a {
  display: flex;
  align-items: center;
}

.nexobrain-wordmark {
  gap: 11px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nexobrain-wordmark > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--nexobrain-accent);
  border-radius: 12px 4px 12px 4px;
  color: #172013;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
}

.nexobrain-student-nav {
  gap: 8px;
}

.nexobrain-student-nav a {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nexobrain-student-nav a:hover,
.nexobrain-student-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.nexobrain-student-main {
  width: min(1240px, calc(100% - 40px));
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 90px) 0 72px;
}

.nexobrain-student-footer {
  padding: 28px 20px;
  border-top: 1px solid rgba(51, 51, 51, 0.16);
  color: var(--nexobrain-muted);
  font-size: 14px;
  text-align: center;
}

.nexobrain-student h1,
.nexobrain-student h2,
.nexobrain-student h3,
.nexobrain-student p {
  margin-top: 0;
}

.nexobrain-student h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.nexobrain-student h2 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.nexobrain-student .nexobrain-eyebrow {
  color: var(--nexobrain-blue);
}

.nexobrain-student-hero,
.nexobrain-course-hero,
.nexobrain-auth-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 90px);
  margin-bottom: 46px;
}

.nexobrain-student-hero > div,
.nexobrain-course-hero > div {
  max-width: 800px;
}

.nexobrain-student-hero > div > p:last-child,
.nexobrain-course-lead {
  max-width: 700px;
  color: var(--nexobrain-muted);
  font-size: clamp(17px, 2vw, 21px);
}

.nexobrain-student .nexobrain-header-count {
  flex: 0 0 auto;
  background: var(--nexobrain-ink);
  color: #fff;
}

.nexobrain-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.nexobrain-course-card {
  overflow: hidden;
  background: var(--nexobrain-surface);
  border: 1px solid rgba(51, 51, 51, 0.13);
  border-radius: var(--nexobrain-radius);
  box-shadow: var(--nexobrain-shadow);
}

.nexobrain-course-cover {
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(80, 180, 40, 0.76), rgba(97, 140, 139, 0.88)),
    var(--nexobrain-ink);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.nexobrain-course-cover img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.nexobrain-course-cover span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(54px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.1em;
}

.nexobrain-course-card-body {
  padding: clamp(24px, 4vw, 38px);
}

.nexobrain-course-card h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 36px);
}

.nexobrain-course-card h2 a {
  text-decoration: none;
}

.nexobrain-course-card-body > p:not(.nexobrain-eyebrow) {
  min-height: 52px;
  color: var(--nexobrain-muted);
}

.nexobrain-progress {
  min-width: min(100%, 260px);
  margin: 22px 0;
}

.nexobrain-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.nexobrain-progress-copy strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 22px;
}

.nexobrain-progress-copy span {
  color: var(--nexobrain-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nexobrain-progress progress {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--nexobrain-soft);
}

.nexobrain-progress progress::-webkit-progress-bar {
  background: var(--nexobrain-soft);
}

.nexobrain-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--nexobrain-blue), var(--nexobrain-accent));
  border-radius: inherit;
}

.nexobrain-progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--nexobrain-blue), var(--nexobrain-accent));
  border-radius: inherit;
}

.nexobrain-message-panel,
.nexobrain-auth-panel,
.nexobrain-course-description,
.nexobrain-complete-banner {
  padding: clamp(28px, 5vw, 58px);
  background: var(--nexobrain-surface);
  border: 1px solid rgba(51, 51, 51, 0.13);
  border-radius: var(--nexobrain-radius);
  box-shadow: var(--nexobrain-shadow);
}

.nexobrain-message-panel {
  max-width: 760px;
  margin: 6vh auto;
  text-align: center;
}

.nexobrain-message-panel h1,
.nexobrain-message-panel h2 {
  margin-right: auto;
  margin-left: auto;
}

.nexobrain-auth-panel {
  align-items: stretch;
  max-width: 1040px;
  margin: 4vh auto;
}

.nexobrain-auth-panel > div {
  flex: 1 1 0;
}

.nexobrain-auth-form {
  padding: 30px;
  background: #f1f3ef;
  border-radius: calc(var(--nexobrain-radius) - 7px);
}

.nexobrain-auth-form label,
.nexobrain-auth-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
}

.nexobrain-auth-form label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nexobrain-auth-form input[type="text"],
.nexobrain-auth-form input[type="password"] {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--nexobrain-ink);
  border-radius: 12px;
  background: var(--nexobrain-surface);
  font: inherit;
}

.nexobrain-auth-form .login-submit input {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--nexobrain-ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nexobrain-auth-note {
  margin-top: 22px;
  color: var(--nexobrain-muted);
  font-size: 14px;
}

.nexobrain-text-link,
.nexobrain-back-link {
  font-weight: 800;
  text-underline-offset: 4px;
}

.nexobrain-back-link {
  display: inline-block;
  margin-bottom: 34px;
}

.nexobrain-course-hero {
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
  background: var(--nexobrain-ink);
  border-radius: var(--nexobrain-radius);
  color: #fff;
}

.nexobrain-course-hero .nexobrain-eyebrow,
.nexobrain-course-hero .nexobrain-course-lead,
.nexobrain-course-hero .nexobrain-progress-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.nexobrain-course-hero h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.nexobrain-course-hero .nexobrain-progress {
  flex: 0 0 280px;
}

.nexobrain-course-continue {
  margin-bottom: 34px;
}

.nexobrain-course-description {
  max-width: 830px;
  margin: 0 0 58px;
  font-size: 18px;
}

.nexobrain-complete-banner {
  margin-bottom: 34px;
  background: linear-gradient(120deg, rgba(80, 180, 40, 0.2), rgba(255, 255, 255, 0.98));
}

.nexobrain-complete-banner h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.nexobrain-section-heading {
  margin-bottom: 22px;
}

.nexobrain-section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.nexobrain-curriculum {
  display: grid;
  gap: 18px;
}

.nexobrain-module {
  padding: clamp(22px, 4vw, 34px);
  background: var(--nexobrain-surface);
  border: 1px solid rgba(51, 51, 51, 0.13);
  border-radius: var(--nexobrain-radius);
}

.nexobrain-module h2 {
  margin-bottom: 18px;
  font-size: clamp(21px, 3vw, 29px);
}

.nexobrain-module ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexobrain-module li + li {
  border-top: 1px solid var(--nexobrain-soft);
}

.nexobrain-module li a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 9px 8px;
  border-radius: 12px;
  text-decoration: none;
}

.nexobrain-module li a:hover,
.nexobrain-module li a:focus-visible,
.nexobrain-module li.is-current a {
  background: #eef3eb;
}

.nexobrain-module li.is-current a {
  box-shadow: inset 4px 0 0 var(--nexobrain-accent);
}

.nexobrain-module li a > span:last-child {
  display: flex;
  flex-direction: column;
}

.nexobrain-module li small {
  color: var(--nexobrain-muted);
  font-size: 12px;
}

.nexobrain-lesson-state {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--nexobrain-soft);
  border-radius: 50%;
  color: var(--nexobrain-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

.nexobrain-module .is-completed .nexobrain-lesson-state {
  background: var(--nexobrain-accent);
  border-color: var(--nexobrain-accent);
  color: #13200e;
}

.nexobrain-module .is-in_progress .nexobrain-lesson-state {
  background: var(--nexobrain-blue);
  border-color: var(--nexobrain-blue);
  color: #fff;
}

.nexobrain-lesson-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 28px;
}

.nexobrain-lesson-topbar .nexobrain-back-link,
.nexobrain-lesson-topbar .nexobrain-progress {
  margin: 0;
}

.nexobrain-lesson-topbar .nexobrain-progress {
  width: 270px;
}

.nexobrain-player-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.nexobrain-player-sidebar {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.nexobrain-player-sidebar details > summary {
  margin-bottom: 14px;
  padding: 15px 18px;
  background: var(--nexobrain-ink);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.nexobrain-player-sidebar .nexobrain-module {
  padding: 20px;
  border-radius: 16px;
}

.nexobrain-player-sidebar .nexobrain-module h2 {
  font-size: 19px;
}

.nexobrain-lesson-content {
  min-width: 0;
  padding: clamp(26px, 5vw, 64px);
  background: var(--nexobrain-surface);
  border: 1px solid rgba(51, 51, 51, 0.13);
  border-radius: var(--nexobrain-radius);
  box-shadow: var(--nexobrain-shadow);
}

.nexobrain-lesson-content > header {
  margin-bottom: 36px;
}

.nexobrain-lesson-content h1 {
  font-size: clamp(36px, 5vw, 66px);
}

.nexobrain-video {
  position: relative;
  margin: 0 0 42px;
  overflow: hidden;
  background: #111;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
}

.nexobrain-video iframe,
.nexobrain-video video {
  width: 100%;
  height: 100%;
  border: 0;
}

.nexobrain-video > a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nexobrain-lesson-copy {
  max-width: 760px;
  margin-bottom: 46px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.8;
}

.nexobrain-lesson-copy h2,
.nexobrain-lesson-copy h3 {
  margin-top: 1.8em;
  font-family: "DM Sans", "Avenir Next", "Century Gothic", sans-serif;
}

.nexobrain-lesson-copy a,
.nexobrain-resources a {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nexobrain-resources {
  margin: 46px 0;
  padding: clamp(22px, 4vw, 34px);
  background: #eef3eb;
  border-radius: 18px;
}

.nexobrain-resources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexobrain-resources li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(51, 51, 51, 0.14);
}

.nexobrain-resources li span {
  display: flex;
  flex-direction: column;
}

.nexobrain-resources li small {
  color: var(--nexobrain-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
}

.nexobrain-lesson-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 50px;
}

.nexobrain-lesson-navigation a {
  display: flex;
  flex-direction: column;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--nexobrain-soft);
  border-radius: 16px;
  text-decoration: none;
}

.nexobrain-lesson-navigation a:last-child {
  align-items: flex-end;
  text-align: right;
}

.nexobrain-lesson-navigation a:hover,
.nexobrain-lesson-navigation a:focus-visible {
  border-color: var(--nexobrain-blue);
  background: #f2f5f2;
}

.nexobrain-lesson-navigation small {
  color: var(--nexobrain-muted);
  text-transform: uppercase;
}

.nexobrain-complete-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: var(--nexobrain-ink);
  border-radius: 18px;
  color: #fff;
}

.nexobrain-complete-action p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.nexobrain-complete-action .nexobrain-action-feedback:empty {
  display: none;
}

.nexobrain-complete-action .nexobrain-action-feedback.is-error {
  color: #ffd7d4;
}

.nexobrain-student :focus-visible {
  outline: 3px solid var(--nexobrain-accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nexobrain-course-grid,
  .nexobrain-player-layout {
    grid-template-columns: 1fr;
  }

  .nexobrain-player-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .nexobrain-player-sidebar details:not([open]) {
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .nexobrain-student-header {
    position: static;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .nexobrain-wordmark strong {
    display: none;
  }

  .nexobrain-student-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nexobrain-student-nav a {
    min-height: 38px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .nexobrain-student-main {
    width: min(100% - 24px, 1240px);
    padding-top: 34px;
  }

  .nexobrain-student-hero,
  .nexobrain-course-hero,
  .nexobrain-auth-panel,
  .nexobrain-lesson-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nexobrain-course-hero .nexobrain-progress,
  .nexobrain-lesson-topbar .nexobrain-progress {
    width: 100%;
    flex-basis: auto;
  }

  .nexobrain-auth-form,
  .nexobrain-lesson-content {
    padding: 22px;
  }

  .nexobrain-course-cover,
  .nexobrain-course-cover img {
    min-height: 180px;
  }

  .nexobrain-lesson-navigation {
    grid-template-columns: 1fr;
  }

  .nexobrain-lesson-navigation a:last-child {
    align-items: flex-start;
    text-align: left;
  }

  .nexobrain-complete-action,
  .nexobrain-resources li {
    align-items: stretch;
    flex-direction: column;
  }

  .nexobrain-complete-action .nexobrain-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexobrain-student *,
  .nexobrain-student *::before,
  .nexobrain-student *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
