#nomkamo-student-class-v2 {
  --nsc2-bg: #f7f8fb;
  --nsc2-card: #ffffff;
  --nsc2-text: #121212;
  --nsc2-muted: #6f7480;
  --nsc2-line: rgba(20, 25, 35, 0.10);
  --nsc2-soft-line: rgba(20, 25, 35, 0.07);
  --nsc2-blue: #001D3F;
  --nsc2-blue-soft: #EEF2F6;
  --nsc2-warm: #fff6df;
  --nsc2-green: #e9f8ee;
  --nsc2-red: #b00020;
  min-height: 100vh;
  background: var(--nsc2-bg);
  color: var(--nsc2-text);
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

#nomkamo-student-class-v2 *,
#nomkamo-student-class-v2 *::before,
#nomkamo-student-class-v2 *::after {
  box-sizing: border-box;
}

#nomkamo-student-class-v2 button,
#nomkamo-student-class-v2 input,
#nomkamo-student-class-v2 textarea,
#nomkamo-student-class-v2 select {
  font: inherit;
}

.nsc2-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 18px;
  padding: 20px;
}

.nsc2-login-hero,
.nsc2-login-card,
.nsc2-card,
.nsc2-widget,
.nsc2-course-hero,
.nsc2-locked {
  background: var(--nsc2-card);
  border: 1px solid var(--nsc2-line);
  border-radius: 14px;
}

.nsc2-login-hero {
  min-height: 520px;
  padding: clamp(28px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.nsc2-login-hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.nsc2-login-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--nsc2-muted);
  font-size: 18px;
  line-height: 1.35;
}

.nsc2-login-card {
  padding: 28px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nsc2-login-card label,
.nsc2-card label {
  display: block;
  margin: 0 0 8px;
  color: var(--nsc2-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.nsc2-input,
.nsc2-textarea {
  width: 100%;
  border: 1px solid var(--nsc2-line);
  background: #fff;
  border-radius: 8px;
  min-height: 42px;
  padding: 11px 12px;
  outline: none;
  margin: 0 0 14px;
}

.nsc2-textarea {
  min-height: 150px;
  resize: vertical;
}

.nsc2-login-actions,
.nsc2-lock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nsc2-btn {
  min-height: 38px;
  border: 1px solid var(--nsc2-line);
  background: #fff;
  color: var(--nsc2-text);
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nsc2-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.nsc2-btn-primary {
  background: var(--nsc2-blue);
  color: #fff;
  border-color: var(--nsc2-blue);
}

.nsc2-btn-outline {
  color: var(--nsc2-blue);
  border-color: rgba(0, 29, 63, 0.30);
}

.nsc2-status {
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid var(--nsc2-line);
  border-radius: 9px;
  color: var(--nsc2-muted);
  background: #fff;
}

.nsc2-status.is-error {
  color: var(--nsc2-red);
}

.nsc2-status.is-ok {
  background: var(--nsc2-green);
  color: #10783a;
}

.nsc2-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.nsc2-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--nsc2-line);
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nsc2-logo {
  color: var(--nsc2-blue);
  font-size: 19px;
  letter-spacing: -0.03em;
  font-weight: 700;
  padding: 0 12px 18px;
}

.nsc2-logo span {
  color: var(--nsc2-text);
  font-weight: 400;
}

.nsc2-nav {
  display: grid;
  gap: 5px;
}

.nsc2-nav-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--nsc2-text);
  border-radius: 14px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.nsc2-icon {
  width: 22px;
  height: 22px;
  color: #7f8695;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nsc2-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nsc2-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nsc2-nav-btn b {
  font-size: 14px;
  font-weight: 600;
}

.nsc2-nav-btn.is-active {
  background: var(--nsc2-blue-soft);
  color: var(--nsc2-blue);
}

.nsc2-nav-btn.is-active .nsc2-icon {
  color: var(--nsc2-blue);
}

.nsc2-side-card {
  margin-top: auto;
  border: 1px solid var(--nsc2-line);
  border-radius: 12px;
  padding: 12px;
}

.nsc2-side-label {
  color: var(--nsc2-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  margin-bottom: 6px;
}

.nsc2-side-text {
  font-size: 13px;
  font-weight: 700;
}

.nsc2-logout {
  border: 0;
  background: transparent;
  color: var(--nsc2-muted);
  text-align: left;
  cursor: pointer;
  padding: 8px 12px;
}

.nsc2-main {
  min-width: 0;
}

.nsc2-topbar {
  height: 66px;
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--nsc2-soft-line);
  padding: 12px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 520px) 1fr;
  gap: 18px;
  align-items: center;
}

.nsc2-search {
  height: 42px;
  border: 1px solid var(--nsc2-soft-line);
  background: #fff;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  color: var(--nsc2-muted);
}

.nsc2-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
}

.nsc2-top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nsc2-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--nsc2-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nsc2-icon-btn .nsc2-icon {
  width: 18px;
  height: 18px;
}

.nsc2-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nsc2-profile b {
  display: block;
  font-size: 13px;
}

.nsc2-profile span {
  display: block;
  color: var(--nsc2-muted);
  font-size: 12px;
}

.nsc2-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nsc2-blue-soft);
  color: var(--nsc2-blue);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.nsc2-page {
  padding: 28px;
}

.nsc2-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  align-items: start;
}

.nsc2-content-column,
.nsc2-wide {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.nsc2-course-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  min-height: 310px;
}

.nsc2-cover {
  min-height: 310px;
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 29, 63, 0.10), transparent 32%),
    linear-gradient(135deg, #f6f6f3, #fff 58%, #eef5ff);
  position: relative;
}

.nsc2-cover-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
}

.nsc2-course-info {
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nsc2-chip,
.nsc2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  border: 1px solid var(--nsc2-line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--nsc2-muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nsc2-badge-blue {
  background: var(--nsc2-blue-soft);
  border-color: rgba(0, 29, 63, 0.10);
  color: var(--nsc2-blue);
}

.nsc2-badge-warm {
  background: var(--nsc2-warm);
  border-color: rgba(190, 130, 0, 0.14);
  color: #795200;
}

.nsc2-course-info h1,
.nsc2-lesson-head h1,
.nsc2-page-title {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.nsc2-course-info p,
.nsc2-lesson-head p,
.nsc2-card p,
.nsc2-widget p,
.nsc2-small-card p,
.nsc2-lib-card p {
  color: var(--nsc2-muted);
  line-height: 1.45;
}

.nsc2-course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.nsc2-course-meta div {
  border-top: 1px solid var(--nsc2-line);
  padding-top: 10px;
}

.nsc2-course-meta span,
.nsc2-progress-line span,
.nsc2-stat-row span {
  display: block;
  color: var(--nsc2-muted);
  font-size: 12px;
}

.nsc2-course-meta b,
.nsc2-progress-line b,
.nsc2-stat-row b {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.nsc2-progress-line > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nsc2-progress {
  height: 6px;
  background: #edf0f5;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 18px;
}

.nsc2-progress i {
  display: block;
  height: 100%;
  background: var(--nsc2-blue);
  border-radius: 99px;
}

.nsc2-card,
.nsc2-widget,
.nsc2-list-panel,
.nsc2-library-grid {
  background: #fff;
  border: 1px solid var(--nsc2-line);
  border-radius: 14px;
}

.nsc2-card {
  padding: 20px;
}

.nsc2-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.nsc2-card-head h2,
.nsc2-card h2,
.nsc2-widget h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.nsc2-card-head span {
  color: var(--nsc2-muted);
}

.nsc2-modules {
  display: grid;
  gap: 10px;
}

.nsc2-module {
  border: 1px solid var(--nsc2-soft-line);
  border-radius: 12px;
  overflow: hidden;
}

.nsc2-module-head {
  width: 100%;
  min-height: 66px;
  border: 0;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  text-align: left;
  align-items: center;
}

.nsc2-module-head b {
  display: block;
  font-size: 16px;
}

.nsc2-module-head span {
  display: block;
  color: var(--nsc2-muted);
  font-size: 13px;
  margin-top: 4px;
}

.nsc2-module-head em {
  font-style: normal;
  color: var(--nsc2-muted);
  font-weight: 700;
}

.nsc2-module-body {
  border-top: 1px solid var(--nsc2-soft-line);
}

.nsc2-lesson-row {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--nsc2-soft-line);
  background: #fff;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 11px 16px;
  cursor: pointer;
}

.nsc2-lesson-row:last-child {
  border-bottom: 0;
}

.nsc2-lesson-row.is-selected {
  background: var(--nsc2-blue-soft);
}

.nsc2-lesson-row.is-locked {
  opacity: 0.62;
}

.nsc2-play {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 29, 63, 0.30);
  color: var(--nsc2-blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.nsc2-lesson-row b {
  display: block;
  font-size: 14px;
}

.nsc2-lesson-row small {
  display: block;
  color: var(--nsc2-muted);
  margin-top: 3px;
}

.nsc2-lesson-row em {
  font-style: normal;
  color: var(--nsc2-muted);
  font-size: 13px;
}

.nsc2-rail {
  display: grid;
  gap: 16px;
}

.nsc2-widget {
  padding: 18px;
}

.nsc2-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 10px solid var(--nsc2-blue-soft);
  border-top-color: var(--nsc2-blue);
  display: grid;
  place-items: center;
  margin: 12px 0;
}

.nsc2-ring span {
  font-size: 22px;
  font-weight: 700;
}

.nsc2-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--nsc2-soft-line);
  padding: 10px 0;
}

.nsc2-event-mini {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.nsc2-event-date {
  min-height: 54px;
  border-radius: 12px;
  background: var(--nsc2-blue-soft);
  color: var(--nsc2-blue);
  display: grid;
  place-items: center;
  font-weight: 700;
  text-align: center;
}

.nsc2-event-mini b,
.nsc2-event-mini span {
  display: block;
}

.nsc2-event-mini span {
  color: var(--nsc2-muted);
  margin-top: 4px;
}

.nsc2-empty {
  padding: 18px;
  border: 1px dashed var(--nsc2-line);
  border-radius: 12px;
  color: var(--nsc2-muted);
  background: rgba(255,255,255,0.65);
}

.nsc2-lesson-page {
  max-width: 1180px;
  display: grid;
  gap: 18px;
}

.nsc2-back {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--nsc2-blue);
  cursor: pointer;
  padding: 0;
}

.nsc2-lesson-head {
  background: #fff;
  border: 1px solid var(--nsc2-line);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.nsc2-video {
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid var(--nsc2-line);
  border-radius: 14px;
  overflow: hidden;
}

.nsc2-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.nsc2-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nsc2-tabs button {
  border: 1px solid var(--nsc2-line);
  background: #fff;
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--nsc2-muted);
}

.nsc2-tabs button.is-active {
  background: var(--nsc2-blue);
  border-color: var(--nsc2-blue);
  color: #fff;
}

.nsc2-list-panel,
.nsc2-library-grid {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.nsc2-small-card,
.nsc2-lib-card {
  background: #fff;
  border: 1px solid var(--nsc2-soft-line);
  border-radius: 12px;
  padding: 14px;
}

.nsc2-small-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.nsc2-small-card b,
.nsc2-lib-card h3 {
  display: block;
  margin: 6px 0;
  font-size: 16px;
}

.nsc2-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nsc2-formula-table {
  margin-top: 12px;
  border: 1px solid var(--nsc2-soft-line);
  border-radius: 10px;
  overflow: hidden;
}

.nsc2-formula-table div {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--nsc2-soft-line);
  font-size: 13px;
}

.nsc2-formula-table div:last-child {
  border-bottom: 0;
}

.nsc2-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nsc2-link {
  color: var(--nsc2-blue);
  font-weight: 700;
  text-decoration: none;
}

.nsc2-locked {
  padding: 36px;
}

.nsc2-locked h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.06em;
}

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

  .nsc2-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsc2-course-hero {
    grid-template-columns: 1fr;
  }

  .nsc2-cover {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .nsc2-app {
    grid-template-columns: 1fr;
  }

  .nsc2-sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--nsc2-line);
  }

  .nsc2-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsc2-topbar {
    position: relative;
    grid-template-columns: 1fr;
    height: auto;
  }

  .nsc2-top-actions {
    justify-self: start;
  }

  .nsc2-login {
    grid-template-columns: 1fr;
  }

  .nsc2-login-hero {
    min-height: 360px;
  }

  .nsc2-library-grid,
  .nsc2-rail {
    grid-template-columns: 1fr;
  }

  .nsc2-small-card,
  .nsc2-lesson-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nsc2-page,
  .nsc2-topbar {
    padding: 14px;
  }

  .nsc2-sidebar {
    padding: 14px;
  }

  .nsc2-nav {
    grid-template-columns: 1fr;
  }

  .nsc2-course-info {
    padding: 20px;
  }

  .nsc2-course-meta {
    grid-template-columns: 1fr;
  }

  .nsc2-formula-table div {
    grid-template-columns: 1fr;
  }
}


/* v3: smaller typography, tighter sidebar, NOMKAMO green accent */
#nomkamo-student-class-v2 {
  --nsc2-blue: #001D3F;
  --nsc2-blue-soft: #EEF2F6;
  font-size: 14px;
}

.nsc2-sidebar {
  padding: 18px 10px;
  gap: 12px;
}

.nsc2-logo {
  font-size: 17px;
  padding: 0 10px 12px;
}

.nsc2-nav {
  gap: 2px;
}

.nsc2-nav-btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 12px;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}

.nsc2-nav-btn b {
  font-size: 13px;
  line-height: 1.1;
}

.nsc2-icon {
  width: 18px;
  height: 18px;
}

.nsc2-icon svg * {
  stroke-width: 1.65;
}

.nsc2-side-card {
  padding: 10px;
  border-radius: 10px;
}

.nsc2-side-label {
  font-size: 9px;
}

.nsc2-side-text,
.nsc2-logout {
  font-size: 12px;
}

.nsc2-topbar {
  height: 58px;
  padding: 10px 24px;
}

.nsc2-search {
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.nsc2-icon-btn {
  width: 34px;
  height: 34px;
}

.nsc2-profile b {
  font-size: 12px;
}

.nsc2-profile span {
  font-size: 11px;
}

.nsc2-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.nsc2-page {
  padding: 22px;
}

.nsc2-dashboard {
  gap: 18px;
}

.nsc2-content-column,
.nsc2-wide,
.nsc2-rail {
  gap: 16px;
}

.nsc2-course-hero {
  min-height: 270px;
  border-radius: 12px;
}

.nsc2-cover {
  min-height: 270px;
}

.nsc2-cover-mark {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  font-size: 34px;
}

.nsc2-course-info {
  padding: 22px 26px;
}

.nsc2-course-info h1,
.nsc2-lesson-head h1,
.nsc2-page-title {
  font-size: clamp(28px, 3.4vw, 46px);
  margin: 10px 0 8px;
}

.nsc2-course-info p,
.nsc2-lesson-head p,
.nsc2-card p,
.nsc2-widget p,
.nsc2-small-card p,
.nsc2-lib-card p {
  font-size: 13px;
  line-height: 1.38;
}

.nsc2-chip,
.nsc2-badge {
  min-height: 21px;
  padding: 3px 8px;
  font-size: 9px;
  letter-spacing: 0.055em;
}

.nsc2-course-meta {
  margin: 14px 0;
  gap: 10px;
}

.nsc2-course-meta span,
.nsc2-progress-line span,
.nsc2-stat-row span {
  font-size: 11px;
}

.nsc2-course-meta b,
.nsc2-progress-line b,
.nsc2-stat-row b {
  font-size: 13px;
}

.nsc2-btn {
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
}

.nsc2-card,
.nsc2-widget {
  border-radius: 12px;
  padding: 16px;
}

.nsc2-card-head h2,
.nsc2-card h2,
.nsc2-widget h3 {
  font-size: 18px;
}

.nsc2-module-head {
  min-height: 58px;
  padding: 12px 14px;
}

.nsc2-module-head b {
  font-size: 14px;
}

.nsc2-module-head span {
  font-size: 12px;
}

.nsc2-lesson-row {
  min-height: 46px;
  padding: 9px 14px;
}

.nsc2-lesson-row b {
  font-size: 13px;
}

.nsc2-lesson-row small,
.nsc2-lesson-row em {
  font-size: 12px;
}

.nsc2-play {
  width: 20px;
  height: 20px;
}

.nsc2-ring {
  width: 96px;
  height: 96px;
  border-width: 8px;
}

.nsc2-ring span {
  font-size: 19px;
}

.nsc2-event-mini {
  grid-template-columns: 56px 1fr;
}

.nsc2-event-date {
  min-height: 48px;
  border-radius: 10px;
  font-size: 12px;
}

.nsc2-small-card,
.nsc2-lib-card {
  border-radius: 10px;
  padding: 12px;
}

.nsc2-small-card b,
.nsc2-lib-card h3 {
  font-size: 14px;
}

.nsc2-tabs button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.nsc2-input,
.nsc2-textarea {
  font-size: 13px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
}

.nsc2-textarea {
  min-height: 130px;
}

.nsc2-login-hero h1 {
  font-size: clamp(48px, 8vw, 112px);
}

.nsc2-login-hero p {
  font-size: 15px;
}

@media (max-width: 560px) {
  .nsc2-page,
  .nsc2-topbar {
    padding: 12px;
  }

  .nsc2-nav-btn {
    min-height: 38px;
  }
}


/* v4: new section structure and dark navy accent */
#nomkamo-student-class-v2 {
  --nsc2-blue: #001D3F;
  --nsc2-blue-soft: #EEF2F6;
}

.nsc2-sidebar {
  overflow-y: auto;
}

.nsc2-nav {
  gap: 1px;
}

.nsc2-nav-btn {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 9px;
}

.nsc2-nav-btn b {
  font-size: 12.5px;
}

.nsc2-icon {
  width: 17px;
  height: 17px;
}

.nsc2-nav-logout {
  margin-top: 8px;
  color: var(--nsc2-muted);
}

.nsc2-placeholder-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.nsc2-placeholder-card h2 {
  margin-top: 4px;
}

.nsc2-logo {
  color: var(--nsc2-blue);
}

.nsc2-btn-primary {
  background: var(--nsc2-blue);
  border-color: var(--nsc2-blue);
}

.nsc2-btn-outline,
.nsc2-link,
.nsc2-back {
  color: var(--nsc2-blue);
}

.nsc2-progress i,
.nsc2-tabs button.is-active {
  background: var(--nsc2-blue);
}

.nsc2-tabs button.is-active {
  border-color: var(--nsc2-blue);
}

.nsc2-play {
  border-color: rgba(0, 29, 63, 0.30);
  color: var(--nsc2-blue);
}

.nsc2-badge-blue {
  background: var(--nsc2-blue-soft);
  border-color: rgba(0, 29, 63, 0.12);
  color: var(--nsc2-blue);
}


/* v5: slightly safer logo width for "NOMKAMO Online lab" */
.nsc2-logo {
  line-height: 1.15;
}

.nsc2-logo span {
  white-space: nowrap;
}


/* v6: neutral apple-like UI, smaller scale, no accent color */
#nomkamo-student-class-v2 {
  --nsc2-bg: #f5f5f7;
  --nsc2-card: #ffffff;
  --nsc2-text: #1d1d1f;
  --nsc2-muted: #6e6e73;
  --nsc2-line: rgba(29, 29, 31, 0.10);
  --nsc2-soft-line: rgba(29, 29, 31, 0.06);
  --nsc2-blue: #1d1d1f;
  --nsc2-blue-soft: #f2f2f4;
  --nsc2-warm: #fbfbfc;
  --nsc2-green: #eef6ee;
  font-size: 13px;
}

.nsc2-login-hero,
.nsc2-login-card,
.nsc2-card,
.nsc2-widget,
.nsc2-course-hero,
.nsc2-locked,
.nsc2-list-panel,
.nsc2-library-grid,
.nsc2-lesson-head,
.nsc2-video {
  border-radius: 18px;
  border-color: rgba(29, 29, 31, 0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.nsc2-sidebar {
  width: 228px;
  padding: 14px 10px;
  gap: 8px;
}

.nsc2-logo {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0 10px 8px;
}

.nsc2-logo span {
  color: #6e6e73;
}

.nsc2-nav { gap: 2px; }

.nsc2-nav-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.nsc2-nav-btn b {
  font-size: 12px;
  font-weight: 600;
}

.nsc2-icon {
  width: 16px;
  height: 16px;
  color: #8a8a90;
}

.nsc2-icon svg * { stroke-width: 1.7; }

.nsc2-nav-btn.is-active {
  background: #f0f0f2;
  color: #1d1d1f;
}

.nsc2-nav-btn.is-active .nsc2-icon {
  color: #1d1d1f;
}

.nsc2-side-card {
  border-radius: 14px;
  padding: 10px;
  background: #fbfbfc;
}

.nsc2-side-label {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.nsc2-side-text,
.nsc2-logout { font-size: 11px; }

.nsc2-topbar {
  height: 56px;
  padding: 9px 22px;
  background: rgba(245, 245, 247, 0.84);
}

.nsc2-search {
  height: 34px;
  border-radius: 999px;
  border-color: rgba(29, 29, 31, 0.08);
  background: rgba(255,255,255,0.92);
  padding: 0 12px;
  font-size: 12px;
}

.nsc2-search input,
.nsc2-search input::placeholder {
  font-size: 12px;
  color: #8a8a90;
}

.nsc2-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(29,29,31,0.08);
  background: rgba(255,255,255,0.92);
}

.nsc2-profile b { font-size: 11px; }
.nsc2-profile span { font-size: 10px; }
.nsc2-avatar {
  width: 30px;
  height: 30px;
  background: #f0f0f2;
  color: #1d1d1f;
  font-size: 12px;
}

.nsc2-page { padding: 20px; }
.nsc2-dashboard { gap: 16px; }
.nsc2-content-column,
.nsc2-wide,
.nsc2-rail { gap: 14px; }

.nsc2-btn,
.nsc2-tabs button {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 14px;
  border: 1px solid rgba(29,29,31,0.10);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 1px 1px rgba(0,0,0,0.02);
}

.nsc2-btn:hover,
.nsc2-tabs button:hover,
.nsc2-icon-btn:hover {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.nsc2-btn-primary,
.nsc2-tabs button.is-active {
  background: linear-gradient(180deg, #2b2b2d 0%, #171718 100%);
  border-color: #171718;
  color: #ffffff;
}

.nsc2-btn-outline,
.nsc2-link,
.nsc2-back {
  color: #1d1d1f;
  border-color: rgba(29,29,31,0.10);
}

.nsc2-course-hero { min-height: 250px; }
.nsc2-cover { min-height: 250px; background: linear-gradient(180deg, #fbfbfc 0%, #f2f2f4 100%); }
.nsc2-cover-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 31px;
  background: #1d1d1f;
}

.nsc2-course-info { padding: 20px 22px; }

.nsc2-course-info h1,
.nsc2-lesson-head h1,
.nsc2-page-title {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 8px 0 8px;
}

.nsc2-course-info p,
.nsc2-lesson-head p,
.nsc2-card p,
.nsc2-widget p,
.nsc2-small-card p,
.nsc2-lib-card p {
  font-size: 12px;
  line-height: 1.45;
}

.nsc2-chip,
.nsc2-badge {
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
  background: #f7f7f8;
  color: #6e6e73;
}

.nsc2-badge-blue,
.nsc2-badge-warm {
  background: #f0f0f2;
  border-color: rgba(29,29,31,0.06);
  color: #6e6e73;
}

.nsc2-course-meta { gap: 8px; margin: 12px 0; }
.nsc2-course-meta div { padding-top: 8px; }
.nsc2-course-meta span,
.nsc2-progress-line span,
.nsc2-stat-row span { font-size: 10px; }
.nsc2-course-meta b,
.nsc2-progress-line b,
.nsc2-stat-row b { font-size: 12px; }

.nsc2-progress { height: 5px; background: #e7e7ea; }
.nsc2-progress i { background: #1d1d1f; }

.nsc2-card,
.nsc2-widget { padding: 14px; }

.nsc2-card-head { margin-bottom: 10px; }
.nsc2-card-head h2,
.nsc2-card h2,
.nsc2-widget h3 {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.nsc2-module { border-radius: 14px; }
.nsc2-module-head {
  min-height: 52px;
  padding: 10px 14px;
}
.nsc2-module-head b { font-size: 13px; }
.nsc2-module-head span,
.nsc2-module-head em { font-size: 11px; }

.nsc2-lesson-row {
  min-height: 42px;
  padding: 8px 14px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
}
.nsc2-lesson-row.is-selected { background: #f7f7f8; }
.nsc2-play {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(29,29,31,0.14);
  color: #1d1d1f;
  font-size: 9px;
}
.nsc2-lesson-row b { font-size: 12px; }
.nsc2-lesson-row small,
.nsc2-lesson-row em {
  font-size: 11px;
  color: #8a8a90;
}

.nsc2-widget { padding: 14px; }
.nsc2-ring {
  width: 88px;
  height: 88px;
  border-width: 7px;
  border-color: #ececef;
  border-top-color: #1d1d1f;
}
.nsc2-ring span { font-size: 17px; }
.nsc2-stat-row { padding: 8px 0; }

.nsc2-event-mini { grid-template-columns: 50px 1fr; gap: 10px; }
.nsc2-event-date {
  min-height: 44px;
  border-radius: 12px;
  background: #f2f2f4;
  color: #1d1d1f;
  font-size: 11px;
}

.nsc2-empty {
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
  background: #fbfbfc;
}

.nsc2-lesson-page { gap: 14px; }
.nsc2-lesson-head { padding: 16px; }

.nsc2-tabs { gap: 6px; }
.nsc2-list-panel,
.nsc2-library-grid { padding: 12px; gap: 8px; }
.nsc2-small-card,
.nsc2-lib-card {
  border-radius: 14px;
  padding: 12px;
}
.nsc2-small-card b,
.nsc2-lib-card h3 { font-size: 13px; margin: 4px 0; }

.nsc2-formula-table { border-radius: 12px; }
.nsc2-formula-table div {
  padding: 7px 9px;
  font-size: 12px;
}

.nsc2-input,
.nsc2-textarea {
  min-height: 36px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12px;
  border-color: rgba(29,29,31,0.10);
}
.nsc2-textarea { min-height: 120px; }

.nsc2-login {
  gap: 16px;
  padding: 16px;
}
.nsc2-login-card { padding: 22px; }
.nsc2-login-hero { min-height: 470px; }
.nsc2-login-hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: -0.06em;
}
.nsc2-login-hero p { font-size: 14px; }

@media (max-width: 900px) {
  .nsc2-sidebar { width: 100%; }
  .nsc2-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nsc2-topbar { padding: 10px 14px; }
}

@media (max-width: 560px) {
  .nsc2-page,
  .nsc2-topbar,
  .nsc2-sidebar { padding: 12px; }

  .nsc2-nav { grid-template-columns: 1fr; }

  .nsc2-nav-btn { min-height: 32px; }

  .nsc2-btn,
  .nsc2-tabs button { min-height: 32px; padding: 7px 12px; }

  .nsc2-course-info { padding: 16px; }
}


/* v7: dashboard home page */
.nsc2-home {
  display: grid;
  gap: 14px;
}

.nsc2-home-hero {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: end;
}

.nsc2-home-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.nsc2-home-hero p {
  max-width: 820px;
  margin: 0;
  color: #6e6e73;
  font-size: 12.5px;
  line-height: 1.45;
}

.nsc2-home-hero-mini {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 14px;
}

.nsc2-home-hero-mini span,
.nsc2-home-card > span,
.nsc2-home-card-head span,
.nsc2-home-level span {
  display: block;
  color: #8a8a90;
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.nsc2-home-hero-mini b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.nsc2-home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.nsc2-home-card {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.018);
}

.nsc2-home-card h2 {
  margin: 5px 0 6px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.nsc2-home-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.nsc2-home-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.42;
}

.nsc2-home-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.nsc2-home-course {
  grid-column: span 7;
}

.nsc2-home-level {
  grid-column: span 5;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.nsc2-level-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 28px;
  line-height: 1;
}

.nsc2-home-streak,
.nsc2-home-tip,
.nsc2-home-note {
  grid-column: span 4;
}

.nsc2-home-lessons {
  grid-column: span 7;
}

.nsc2-home-news {
  grid-column: span 5;
}

.nsc2-home-events {
  grid-column: span 12;
}

.nsc2-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.nsc2-home-stats div {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 10px;
}

.nsc2-home-stats b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.nsc2-home-stats span {
  display: block;
  margin-top: 4px;
  color: #8a8a90;
  font-size: 10px;
}

.nsc2-home-progress {
  margin: 8px 0 0;
}

.nsc2-streak-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 14px;
}

.nsc2-streak-dots i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #e8e8ed;
}

.nsc2-streak-dots i.is-active {
  background: #1d1d1f;
}

.nsc2-home-list,
.nsc2-news-list {
  display: grid;
  gap: 7px;
}

.nsc2-home-lesson {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(29,29,31,0.07);
  border-radius: 14px;
  background: #fbfbfc;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.nsc2-home-lesson:hover {
  background: #ffffff;
}

.nsc2-home-lesson b {
  display: block;
  font-size: 12.5px;
  line-height: 1.25;
}

.nsc2-home-lesson span {
  display: block;
  margin-top: 3px;
  color: #8a8a90;
  font-size: 11px;
}

.nsc2-home-lesson em {
  font-style: normal;
  color: #6e6e73;
  font-size: 11px;
}

.nsc2-news-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #fbfbfc;
}

.nsc2-news-item > span {
  width: fit-content;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f0f2;
  color: #6e6e73;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
}

.nsc2-news-item b {
  display: block;
  margin-bottom: 3px;
  font-size: 12.5px;
}

.nsc2-news-item p {
  font-size: 11.5px;
}

.nsc2-two-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nsc2-two-events > div {
  background: #fbfbfc;
  border: 1px solid rgba(29,29,31,0.06);
  border-radius: 16px;
  padding: 12px;
}

.nsc2-dash-event {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
}

.nsc2-dash-date {
  min-height: 52px;
  border-radius: 14px;
  background: #f0f0f2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
}

.nsc2-dash-date b,
.nsc2-dash-date span {
  display: block;
}

.nsc2-dash-date b {
  font-size: 11px;
  line-height: 1.1;
}

.nsc2-dash-date span {
  color: #6e6e73;
  font-size: 10px;
}

.nsc2-dash-event-body b {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
}

.nsc2-dash-event-body p {
  margin-bottom: 6px;
  font-size: 11.5px;
}

.nsc2-text-link {
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(29,29,31,0.25);
}

.nsc2-dash-empty {
  min-height: 52px;
  display: grid;
  align-items: center;
  border-radius: 14px;
  background: #f5f5f7;
  color: #8a8a90;
  padding: 10px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .nsc2-home-course,
  .nsc2-home-level,
  .nsc2-home-streak,
  .nsc2-home-tip,
  .nsc2-home-note,
  .nsc2-home-lessons,
  .nsc2-home-news {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .nsc2-home-hero {
    grid-template-columns: 1fr;
  }

  .nsc2-two-events {
    grid-template-columns: 1fr;
  }

  .nsc2-home-stats {
    grid-template-columns: 1fr;
  }

  .nsc2-home-level {
    grid-template-columns: 1fr;
  }
}


/* v8: courses catalog page */
.nsc2-courses-page {
  display: grid;
  gap: 14px;
}

.nsc2-courses-hero {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 16px;
  align-items: end;
}

.nsc2-courses-hero h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.nsc2-courses-hero p {
  max-width: 760px;
  margin: 0;
  color: #6e6e73;
  font-size: 12.5px;
  line-height: 1.45;
}

.nsc2-courses-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nsc2-courses-hero-stats div {
  background: #f5f5f7;
  border-radius: 15px;
  padding: 12px;
}

.nsc2-courses-hero-stats b {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.nsc2-courses-hero-stats span {
  display: block;
  margin-top: 6px;
  color: #8a8a90;
  font-size: 10px;
  line-height: 1.2;
}

.nsc2-course-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 10px;
}

.nsc2-course-filter-bar span {
  margin-left: auto;
  color: #8a8a90;
  font-size: 11px;
}

.nsc2-course-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nsc2-course-card {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 410px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.018);
}

.nsc2-course-card.is-current {
  border-color: rgba(29,29,31,0.18);
}

.nsc2-course-card-top {
  min-height: 132px;
  background:
    radial-gradient(circle at 22% 20%, rgba(29,29,31,0.08), transparent 28%),
    linear-gradient(180deg, #fbfbfc 0%, #f2f2f4 100%);
  position: relative;
  display: grid;
  place-items: center;
}

.nsc2-course-cover-small {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #1d1d1f;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.nsc2-fav-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(29,29,31,0.10);
  background: rgba(255,255,255,0.82);
  color: #8a8a90;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.nsc2-fav-btn.is-active {
  color: #1d1d1f;
  background: #ffffff;
}

.nsc2-course-card-body {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.nsc2-course-card-body h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.nsc2-course-card-body p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.42;
}

.nsc2-course-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.nsc2-course-card-meta div {
  background: #f7f7f8;
  border-radius: 13px;
  padding: 9px;
}

.nsc2-course-card-meta b {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.nsc2-course-card-meta span {
  display: block;
  margin-top: 5px;
  color: #8a8a90;
  font-size: 9.5px;
}

.nsc2-course-card-progress {
  margin: 0;
}

.nsc2-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.nsc2-course-tags span {
  min-height: 20px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}

.nsc2-course-card-actions {
  padding: 12px 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(29,29,31,0.06);
}

@media (max-width: 1180px) {
  .nsc2-course-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nsc2-courses-hero {
    grid-template-columns: 1fr;
  }

  .nsc2-courses-hero-stats {
    grid-template-columns: 1fr;
  }

  .nsc2-course-catalog {
    grid-template-columns: 1fr;
  }

  .nsc2-course-filter-bar span {
    margin-left: 0;
    width: 100%;
  }
}


/* v9: tighter gutters + course detail page */
.nsc2-page.nsc2-home,
.nsc2-page.nsc2-courses-page,
.nsc2-page.nsc2-course-detail-page {
  padding-left: 12px;
  padding-right: 12px;
}

.nsc2-course-title-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.nsc2-course-title-btn h2 {
  transition: opacity .16s ease;
}

.nsc2-course-title-btn:hover h2 {
  opacity: .72;
}

.nsc2-course-card-top {
  cursor: pointer;
}

.nsc2-course-detail-page {
  display: grid;
  gap: 14px;
}

.nsc2-course-detail-hero {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 35%) minmax(0, 1fr);
  min-height: 330px;
}

.nsc2-course-detail-cover {
  min-height: 330px;
  background:
    radial-gradient(circle at 24% 22%, rgba(29,29,31,0.07), transparent 30%),
    linear-gradient(180deg, #fbfbfc 0%, #f2f2f4 100%);
  display: grid;
  place-items: center;
}

.nsc2-course-detail-cover span {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: #1d1d1f;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.nsc2-course-detail-info {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.nsc2-course-detail-info h1 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 68px);
  line-height: .94;
  letter-spacing: -0.06em;
}

.nsc2-course-detail-info p {
  max-width: 760px;
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.45;
}

.nsc2-course-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.nsc2-course-detail-stats div {
  background: #f5f5f7;
  border-radius: 15px;
  padding: 11px;
}

.nsc2-course-detail-stats b {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.nsc2-course-detail-stats span {
  display: block;
  margin-top: 6px;
  color: #8a8a90;
  font-size: 10px;
}

.nsc2-course-detail-progress {
  margin: 0;
}

.nsc2-course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.nsc2-course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.nsc2-course-inside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.nsc2-course-inside-item,
.nsc2-course-preview-module {
  background: #fbfbfc;
  border: 1px solid rgba(29,29,31,0.06);
  border-radius: 14px;
  padding: 11px;
}

.nsc2-course-inside-item b,
.nsc2-course-preview-module b {
  display: block;
  font-size: 13px;
}

.nsc2-course-inside-item span,
.nsc2-course-preview-module span {
  display: block;
  margin-top: 5px;
  color: #6e6e73;
  font-size: 11.5px;
  line-height: 1.35;
}

.nsc2-course-preview-modules {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.nsc2-course-preview-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.nsc2-course-preview-module em {
  font-style: normal;
  color: #8a8a90;
  font-size: 12px;
}

.nsc2-course-detail-modules {
  margin-top: 12px;
}

.nsc2-course-detail-modules > .nsc2-card-head {
  display: none;
}

@media (max-width: 980px) {
  .nsc2-course-detail-hero,
  .nsc2-course-detail-grid {
    grid-template-columns: 1fr;
  }

  .nsc2-course-detail-cover {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .nsc2-page.nsc2-home,
  .nsc2-page.nsc2-courses-page,
  .nsc2-page.nsc2-course-detail-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nsc2-course-detail-stats,
  .nsc2-course-inside-grid {
    grid-template-columns: 1fr;
  }

  .nsc2-course-detail-info {
    padding: 18px;
  }
}


/* v10: full clickable course cards + homework page */
.nsc2-course-card {
  cursor: pointer;
}

.nsc2-course-card .nsc2-btn,
.nsc2-course-card .nsc2-fav-btn,
.nsc2-course-card .nsc2-course-title-btn {
  cursor: pointer;
}

.nsc2-page.nsc2-homework-page {
  padding-left: 12px;
  padding-right: 12px;
}

.nsc2-homework-page {
  display: grid;
  gap: 14px;
}

.nsc2-homework-hero {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 16px;
  align-items: end;
}

.nsc2-homework-hero h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: .96;
  letter-spacing: -0.055em;
}

.nsc2-homework-hero p {
  max-width: 760px;
  margin: 0;
  color: #6e6e73;
  font-size: 12.5px;
  line-height: 1.45;
}

.nsc2-homework-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nsc2-homework-stats div {
  background: #f5f5f7;
  border-radius: 15px;
  padding: 11px;
}

.nsc2-homework-stats b {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.nsc2-homework-stats span {
  display: block;
  margin-top: 6px;
  color: #8a8a90;
  font-size: 10px;
  line-height: 1.15;
}

.nsc2-homework-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 10px;
}

.nsc2-homework-board {
  display: grid;
  gap: 9px;
}

.nsc2-homework-card {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.018);
}

.nsc2-homework-card-head {
  width: 100%;
  border: 0;
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.nsc2-homework-card-head:hover {
  background: #fbfbfc;
}

.nsc2-homework-card-head h2 {
  margin: 7px 0 4px;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.nsc2-homework-card-head p {
  margin: 0;
  color: #8a8a90;
  font-size: 11.5px;
  line-height: 1.35;
}

.nsc2-homework-side {
  text-align: right;
}

.nsc2-homework-side b,
.nsc2-homework-side span {
  display: block;
}

.nsc2-homework-side b {
  font-size: 12px;
  color: #1d1d1f;
}

.nsc2-homework-side span {
  margin-top: 5px;
  color: #8a8a90;
  font-size: 10px;
}

.nsc2-homework-card-body {
  border-top: 1px solid rgba(29,29,31,0.06);
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fbfbfc;
}

.nsc2-homework-description {
  color: #1d1d1f;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.nsc2-homework-teacher-comment {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.07);
  border-radius: 14px;
  padding: 12px;
}

.nsc2-homework-teacher-comment b {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.nsc2-homework-teacher-comment p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.45;
}

.nsc2-homework-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .nsc2-homework-hero {
    grid-template-columns: 1fr;
  }

  .nsc2-homework-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nsc2-page.nsc2-homework-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nsc2-homework-stats {
    grid-template-columns: 1fr;
  }

  .nsc2-homework-card-head {
    grid-template-columns: 1fr;
  }

  .nsc2-homework-side {
    text-align: left;
  }
}


/* v11: homework opens as its own page, not lesson */
.nsc2-homework-card-clickable {
  cursor: pointer;
}

.nsc2-homework-card-clickable:hover {
  background: #fbfbfc;
}

.nsc2-homework-card-clickable .nsc2-homework-card-head {
  pointer-events: none;
}

.nsc2-homework-detail-page {
  padding-left: 12px;
  padding-right: 12px;
}

.nsc2-homework-detail-hero {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 16px;
  align-items: end;
}

.nsc2-homework-detail-hero h1 {
  margin: 9px 0 8px;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: .96;
  letter-spacing: -0.055em;
}

.nsc2-homework-detail-hero p {
  margin: 0;
  color: #6e6e73;
  font-size: 12.5px;
  line-height: 1.45;
}

.nsc2-homework-detail-status {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 14px;
}

.nsc2-homework-detail-status span,
.nsc2-homework-detail-status b,
.nsc2-homework-detail-status em {
  display: block;
}

.nsc2-homework-detail-status span {
  color: #8a8a90;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .065em;
}

.nsc2-homework-detail-status b {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.nsc2-homework-detail-status em {
  margin-top: 5px;
  color: #6e6e73;
  font-style: normal;
  font-size: 12px;
}

.nsc2-homework-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
}

.nsc2-homework-task-card {
  min-height: 260px;
}

.nsc2-homework-help-card {
  align-self: start;
}

.nsc2-homework-comment-card {
  grid-column: 1 / -1;
}

.nsc2-homework-comment-card p {
  color: #1d1d1f;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .nsc2-homework-detail-hero,
  .nsc2-homework-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nsc2-homework-detail-page {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* v12: button hover readability + homework execution forms */
.nsc2-btn-primary:hover,
.nsc2-tabs button.is-active:hover {
  background: #ffffff;
  color: #1d1d1f;
  border-color: rgba(29,29,31,0.12);
}

.nsc2-homework-work-card {
  grid-column: 1 / -1;
}

.nsc2-homework-work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.nsc2-homework-work-head h2 {
  margin: 0 0 5px;
}

.nsc2-homework-work-head p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
}

.nsc2-homework-work-form label {
  display: block;
  margin-bottom: 7px;
  color: #8a8a90;
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .065em;
}

.nsc2-homework-quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nsc2-homework-quiz-meta span {
  min-height: 22px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 10px;
}

.nsc2-homework-quiz {
  display: grid;
  gap: 10px;
}

.nsc2-homework-quiz-question {
  background: #fbfbfc;
  border: 1px solid rgba(29,29,31,0.06);
  border-radius: 14px;
  padding: 12px;
}

.nsc2-homework-quiz-question b {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.35;
}

.nsc2-homework-quiz-options {
  display: grid;
  gap: 7px;
}

.nsc2-homework-quiz-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(29,29,31,0.07);
  border-radius: 12px;
  background: #ffffff;
  padding: 9px 10px;
  cursor: pointer;
}

.nsc2-homework-quiz-option input {
  margin-top: 2px;
}

.nsc2-homework-quiz-option span {
  font-size: 12px;
  line-height: 1.35;
}

.nsc2-homework-formula-editor {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.nsc2-homework-formula-head,
.nsc2-homework-formula-row {
  display: grid;
  grid-template-columns: 1.2fr .55fr .55fr 1fr 36px;
  gap: 7px;
  align-items: center;
}

.nsc2-homework-formula-head span {
  color: #8a8a90;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.nsc2-homework-formula-row .nsc2-input {
  margin: 0;
  min-height: 34px;
}

.nsc2-mini-delete {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(29,29,31,0.10);
  background: #ffffff;
  border-radius: 12px;
  color: #1d1d1f;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.nsc2-mini-delete:hover {
  background: #f5f5f7;
}

.nsc2-homework-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.nsc2-homework-image-choice {
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
}

.nsc2-homework-image-choice.is-selected {
  border-color: #1d1d1f;
}

.nsc2-homework-image-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nsc2-homework-image-choice img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f5f5f7;
}

.nsc2-homework-image-choice span {
  display: block;
  padding: 8px 9px;
  color: #6e6e73;
  font-size: 11px;
}

@media (max-width: 760px) {
  .nsc2-homework-work-head {
    display: grid;
  }

  .nsc2-homework-formula-head {
    display: none;
  }

  .nsc2-homework-formula-row {
    grid-template-columns: 1fr;
    background: #fbfbfc;
    border-radius: 14px;
    padding: 10px;
  }

  .nsc2-mini-delete {
    width: 100%;
  }

  .nsc2-homework-image-grid {
    grid-template-columns: 1fr;
  }
}


/* v13: selected image in image-formula homework */
.nsc2-homework-image-choice {
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

.nsc2-homework-image-choice img {
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.nsc2-homework-image-choice.is-selected,
.nsc2-homework-image-choice:has(input:checked) {
  border-color: #1d1d1f;
  box-shadow: 0 0 0 2px rgba(29,29,31,0.08);
  transform: translateY(-1px);
}

.nsc2-homework-image-choice.is-selected img,
.nsc2-homework-image-choice:has(input:checked) img {
  filter: none;
  opacity: 1;
}

.nsc2-homework-image-grid:has(input:checked) .nsc2-homework-image-choice:not(:has(input:checked)) img {
  filter: grayscale(1);
  opacity: .36;
}

.nsc2-homework-image-choice.is-selected::after,
.nsc2-homework-image-choice:has(input:checked)::after {
  content: "выбрано";
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #1d1d1f;
  border: 1px solid rgba(29,29,31,.12);
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 600;
}


/* v14: images stay colored until one option is selected */
.nsc2-homework-image-choice img {
  filter: none;
  opacity: 1;
}

.nsc2-homework-image-grid:has(input:checked) .nsc2-homework-image-choice:not(:has(input:checked)) img {
  filter: grayscale(1);
  opacity: .36;
}

.nsc2-homework-image-grid:has(input:checked) .nsc2-homework-image-choice:not(:has(input:checked)) {
  opacity: .86;
}

.nsc2-homework-image-grid:not(:has(input:checked)) .nsc2-homework-image-choice img {
  filter: none;
  opacity: 1;
}


/* v15: library page - terms/articles/text materials only */
.nsc2-page.nsc2-library-page {
  padding-left: 12px;
  padding-right: 12px;
}

.nsc2-library-page {
  display: grid;
  gap: 14px;
}

.nsc2-library-hero {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 16px;
  align-items: end;
}

.nsc2-library-hero h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: .96;
  letter-spacing: -0.055em;
}

.nsc2-library-hero p {
  max-width: 760px;
  margin: 0;
  color: #6e6e73;
  font-size: 12.5px;
  line-height: 1.45;
}

.nsc2-library-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nsc2-library-stats div {
  background: #f5f5f7;
  border-radius: 15px;
  padding: 11px;
}

.nsc2-library-stats b {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.nsc2-library-stats span {
  display: block;
  margin-top: 6px;
  color: #8a8a90;
  font-size: 10px;
  line-height: 1.15;
}

.nsc2-library-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  padding: 10px;
}

.nsc2-library-list {
  display: grid;
  gap: 8px;
}

.nsc2-library-card {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.018);
}

.nsc2-library-card-head {
  width: 100%;
  border: 0;
  background: #ffffff;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.nsc2-library-card-head:hover {
  background: #fbfbfc;
}

.nsc2-library-card-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.nsc2-library-card-side {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nsc2-library-card-side em {
  color: #8a8a90;
  font-style: normal;
  font-size: 10px;
}

.nsc2-library-card-body {
  border-top: 1px solid rgba(29,29,31,0.06);
  padding: 14px;
  background: #fbfbfc;
  display: grid;
  gap: 12px;
}

.nsc2-rich-text {
  color: #1d1d1f;
  font-size: 13px;
  line-height: 1.55;
}

.nsc2-rich-text a,
.nsc2-library-link {
  color: #1d1d1f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(29,29,31,0.25);
}

.nsc2-library-link {
  width: fit-content;
  font-size: 12px;
}

.nsc2-library-lessons {
  border-top: 1px solid rgba(29,29,31,0.06);
  padding-top: 10px;
  display: grid;
  gap: 5px;
}

.nsc2-library-lessons b {
  display: block;
  font-size: 11px;
  color: #1d1d1f;
}

.nsc2-library-lessons span {
  color: #6e6e73;
  font-size: 11.5px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .nsc2-library-hero {
    grid-template-columns: 1fr;
  }

  .nsc2-library-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nsc2-page.nsc2-library-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nsc2-library-card-head {
    grid-template-columns: 1fr;
  }

  .nsc2-library-card-side {
    justify-content: flex-start;
  }
}


/* v16: rich text in library + no lesson relation block */
.nsc2-rich-text p {
  margin: 0 0 10px;
}

.nsc2-rich-text p:last-child {
  margin-bottom: 0;
}

.nsc2-rich-text ul,
.nsc2-rich-text ol {
  margin: 4px 0 12px 18px;
  padding: 0;
}

.nsc2-rich-text li {
  margin: 4px 0;
  padding-left: 2px;
}

.nsc2-rich-text strong {
  font-weight: 700;
}

.nsc2-rich-text em {
  font-style: italic;
}

.nsc2-rich-text br + br {
  display: none;
}
