/*
 * Novademi öğrenme arayüzü (üye paneli, eğitim oynatıcısı, profesyonel alan).
 * Ortak token'lar `--nv-*`; renkler public sitenin marka değişkenlerinden türetilir.
 */

:root {
  --nv-font: var(--font, 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --nv-bg: #f3f5fa;
  --nv-surface: #ffffff;
  --nv-surface-2: #f8fafc;
  --nv-surface-3: #eef2f7;
  --nv-line: #e2e8f0;
  --nv-line-strong: #cbd5e1;
  --nv-ink: #0f172a;
  --nv-ink-2: #334155;
  --nv-muted: #64748b;
  --nv-faint: #94a3b8;
  --nv-primary: var(--primary, #1e40af);
  --nv-primary-strong: var(--primary-dark, #1e3a8a);
  --nv-primary-soft: rgba(30, 64, 175, 0.08);
  --nv-teal: var(--secondary, #0d9488);
  --nv-teal-soft: rgba(13, 148, 136, 0.1);
  --nv-orange: var(--accent, #ea580c);
  --nv-orange-soft: rgba(234, 88, 12, 0.1);
  --nv-violet: #6d28d9;
  --nv-violet-soft: rgba(109, 40, 217, 0.08);
  --nv-ok: #047857;
  --nv-ok-soft: #ecfdf5;
  --nv-warn: #b45309;
  --nv-warn-soft: #fffbeb;
  --nv-danger: #b91c1c;
  --nv-danger-soft: #fef2f2;
  --nv-info: #1d4ed8;
  --nv-info-soft: #eff6ff;
  --nv-radius-xs: 6px;
  --nv-radius-sm: 10px;
  --nv-radius: 14px;
  --nv-radius-lg: 20px;
  --nv-radius-pill: 999px;
  --nv-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --nv-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --nv-shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 18px 40px rgba(15, 23, 42, 0.1);
  --nv-s1: 4px;
  --nv-s2: 8px;
  --nv-s3: 12px;
  --nv-s4: 16px;
  --nv-s5: 20px;
  --nv-s6: 24px;
  --nv-s7: 32px;
  --nv-s8: 40px;
  --nv-text-xs: 0.75rem;
  --nv-text-sm: 0.8125rem;
  --nv-text-base: 0.9375rem;
  --nv-text-md: 1rem;
  --nv-text-lg: 1.125rem;
  --nv-text-xl: 1.375rem;
  --nv-text-2xl: 1.75rem;
  --nv-side-w: 268px;
  --nv-content-max: 1280px;
  --nv-focus: 0 0 0 3px rgba(30, 64, 175, 0.25);
}

/* ─── Portal shell ─── */
.nv-portal {
  background: var(--nv-bg);
  font-family: var(--nv-font);
  color: var(--nv-ink);
  padding: var(--nv-s6) 0 var(--nv-s8);
  min-height: calc(100vh - var(--header-height, 72px));
}
.nv-portal__inner {
  max-width: var(--nv-content-max);
  margin: 0 auto;
  padding: 0 var(--nv-s4);
  display: grid;
  grid-template-columns: var(--nv-side-w) minmax(0, 1fr);
  gap: var(--nv-s6);
  align-items: start;
}
.nv-side {
  position: sticky;
  top: calc(var(--header-height, 72px) + var(--nv-s4));
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-sm);
  padding: var(--nv-s4);
  display: flex;
  flex-direction: column;
  gap: var(--nv-s4);
  max-height: calc(100vh - var(--header-height, 72px) - var(--nv-s7));
  overflow: auto;
}
.nv-side__user {
  display: flex;
  align-items: center;
  gap: var(--nv-s3);
  padding-bottom: var(--nv-s4);
  border-bottom: 1px solid var(--nv-line);
}
.nv-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--nv-text-sm);
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--nv-primary), var(--nv-teal));
}
.nv-side__name {
  font-weight: 700;
  font-size: var(--nv-text-base);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.nv-side__email {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nv-side__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-side__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nv-faint);
  margin: 0 0 var(--nv-s1) var(--nv-s2);
}
.nv-side__link {
  display: flex;
  align-items: center;
  gap: var(--nv-s3);
  padding: 9px var(--nv-s3);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-ink-2);
  font-size: var(--nv-text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nv-side__link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--nv-muted);
}
.nv-side__link:hover {
  background: var(--nv-surface-2);
  color: var(--nv-ink);
}
.nv-side__link.is-active {
  background: var(--nv-primary-soft);
  color: var(--nv-primary-strong);
}
.nv-side__link.is-active i {
  color: var(--nv-primary);
}
.nv-side__link:focus-visible {
  outline: none;
  box-shadow: var(--nv-focus);
}
.nv-side__count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--nv-radius-pill);
  background: var(--nv-surface-3);
  color: var(--nv-ink-2);
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
}
.nv-side__foot {
  border-top: 1px solid var(--nv-line);
  padding-top: var(--nv-s3);
}
.nv-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--nv-s6);
}

/* ─── Page head ─── */
.nv-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
  margin-bottom: var(--nv-s2);
}
.nv-crumbs a {
  color: var(--nv-muted);
  text-decoration: none;
}
.nv-crumbs a:hover {
  color: var(--nv-primary);
}
.nv-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--nv-s4);
}
.nv-page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--nv-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nv-primary);
}
.nv-page-head h1 {
  font-size: var(--nv-text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 4px 0 0;
  color: var(--nv-ink);
}
.nv-page-head p {
  margin: 6px 0 0;
  color: var(--nv-muted);
  font-size: var(--nv-text-base);
  max-width: 64ch;
}
.nv-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nv-s2);
}

/* ─── Layout helpers ─── */
.nv-grid {
  display: grid;
  gap: var(--nv-s4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.nv-grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.nv-grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.nv-split {
  display: grid;
  gap: var(--nv-s6);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}
.nv-stack {
  display: flex;
  flex-direction: column;
  gap: var(--nv-s4);
}
.nv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nv-s2);
}
.nv-spacer {
  flex: 1;
}

/* ─── Card ─── */
.nv-card {
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow-sm);
  min-width: 0;
}
.nv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nv-s3);
  padding: var(--nv-s4) var(--nv-s5);
  border-bottom: 1px solid var(--nv-line);
}
.nv-card__title {
  display: flex;
  align-items: center;
  gap: var(--nv-s2);
  font-size: var(--nv-text-md);
  font-weight: 700;
  margin: 0;
  color: var(--nv-ink);
}
.nv-card__title i {
  color: var(--nv-primary);
}
.nv-card__sub {
  margin: 2px 0 0;
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-card__body {
  padding: var(--nv-s5);
}
.nv-card__body--flush {
  padding: 0;
}
.nv-card__foot {
  padding: var(--nv-s3) var(--nv-s5);
  border-top: 1px solid var(--nv-line);
  background: var(--nv-surface-2);
  border-radius: 0 0 var(--nv-radius) var(--nv-radius);
}
.nv-card--accent {
  border-top: 3px solid var(--nv-primary);
}
.nv-card--hero {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 60%, #1e3a8a 100%);
  color: #e2e8f0;
  border: none;
  box-shadow: var(--nv-shadow);
}
.nv-card--hero .nv-card__body {
  padding: var(--nv-s6);
}
.nv-card--hero h2 {
  color: #fff;
  font-weight: 800;
  font-size: var(--nv-text-xl);
  margin: 0 0 6px;
}
.nv-card--hero p {
  color: #cbd5e1;
  margin: 0;
}

/* ─── Stat card ─── */
.nv-stat {
  display: flex;
  gap: var(--nv-s3);
  align-items: flex-start;
  padding: var(--nv-s4);
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow-sm);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
a.nv-stat:hover {
  border-color: var(--nv-line-strong);
  box-shadow: var(--nv-shadow);
}
.nv-chip {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--nv-primary-soft);
  color: var(--nv-primary);
}
.nv-tone-teal .nv-chip,
.nv-chip.nv-tone-teal {
  background: var(--nv-teal-soft);
  color: var(--nv-teal);
}
.nv-tone-orange .nv-chip,
.nv-chip.nv-tone-orange {
  background: var(--nv-orange-soft);
  color: var(--nv-orange);
}
.nv-tone-violet .nv-chip,
.nv-chip.nv-tone-violet {
  background: var(--nv-violet-soft);
  color: var(--nv-violet);
}
.nv-tone-ok .nv-chip,
.nv-chip.nv-tone-ok {
  background: var(--nv-ok-soft);
  color: var(--nv-ok);
}
.nv-tone-warn .nv-chip,
.nv-chip.nv-tone-warn {
  background: var(--nv-warn-soft);
  color: var(--nv-warn);
}
.nv-stat__label {
  font-size: var(--nv-text-xs);
  font-weight: 600;
  color: var(--nv-muted);
}
.nv-stat__value {
  font-size: var(--nv-text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-stat__hint {
  font-size: var(--nv-text-xs);
  color: var(--nv-faint);
  margin-top: 2px;
}

/* ─── Progress ─── */
.nv-progress {
  display: flex;
  align-items: center;
  gap: var(--nv-s2);
}
.nv-progress__track {
  flex: 1;
  height: 8px;
  border-radius: var(--nv-radius-pill);
  background: var(--nv-surface-3);
  overflow: hidden;
}
.nv-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nv-primary), var(--nv-teal));
  transition: width 0.6s ease;
}
.nv-progress--done .nv-progress__bar {
  background: var(--nv-ok);
}
.nv-progress__value {
  flex: none;
  min-width: 3ch;
  font-size: var(--nv-text-xs);
  font-weight: 700;
  color: var(--nv-ink-2);
  text-align: right;
}
.nv-progress--sm .nv-progress__track {
  height: 5px;
}
.nv-ring {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
}
.nv-ring svg {
  transform: rotate(-90deg);
}
.nv-ring__track {
  stroke: var(--nv-surface-3);
}
.nv-ring__arc {
  stroke: var(--nv-primary);
  transition: stroke-dashoffset 0.8s ease;
}
.nv-ring--done .nv-ring__arc {
  stroke: var(--nv-ok);
}
.nv-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: var(--nv-text-sm);
  color: var(--nv-ink);
}

/* ─── Badge ─── */
.nv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--nv-radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--nv-surface-3);
  color: var(--nv-ink-2);
}
.nv-badge--primary {
  background: var(--nv-primary-soft);
  color: var(--nv-primary-strong);
}
.nv-badge--ok {
  background: var(--nv-ok-soft);
  color: var(--nv-ok);
}
.nv-badge--warn {
  background: var(--nv-warn-soft);
  color: var(--nv-warn);
}
.nv-badge--danger {
  background: var(--nv-danger-soft);
  color: var(--nv-danger);
}
.nv-badge--info {
  background: var(--nv-info-soft);
  color: var(--nv-info);
}
.nv-badge--teal {
  background: var(--nv-teal-soft);
  color: var(--nv-teal);
}
.nv-badge--violet {
  background: var(--nv-violet-soft);
  color: var(--nv-violet);
}
.nv-badge--orange {
  background: var(--nv-orange-soft);
  color: var(--nv-orange);
}

/* ─── Buttons ─── */
.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--nv-radius-sm);
  border: 1px solid transparent;
  font-family: var(--nv-font);
  font-size: var(--nv-text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.nv-btn:focus-visible {
  outline: none;
  box-shadow: var(--nv-focus);
}
.nv-btn--primary {
  background: var(--nv-primary);
  color: #fff;
}
.nv-btn--primary:hover {
  background: var(--nv-primary-strong);
  color: #fff;
}
.nv-btn--secondary {
  background: var(--nv-surface);
  border-color: var(--nv-line-strong);
  color: var(--nv-ink);
}
.nv-btn--secondary:hover {
  border-color: var(--nv-primary);
  color: var(--nv-primary);
}
.nv-btn--ghost {
  background: transparent;
  color: var(--nv-primary);
}
.nv-btn--ghost:hover {
  background: var(--nv-primary-soft);
}
.nv-btn--ok {
  background: var(--nv-ok);
  color: #fff;
}
.nv-btn--danger {
  background: var(--nv-surface);
  border-color: rgba(185, 28, 28, 0.35);
  color: var(--nv-danger);
}
.nv-btn--sm {
  padding: 6px 11px;
  font-size: var(--nv-text-xs);
}
.nv-btn[disabled],
.nv-btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Lists ─── */
.nv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nv-list__item {
  display: flex;
  align-items: center;
  gap: var(--nv-s3);
  padding: var(--nv-s3) var(--nv-s5);
  border-bottom: 1px solid var(--nv-line);
  min-width: 0;
}
.nv-list__item:last-child {
  border-bottom: none;
}
.nv-list__body {
  flex: 1;
  min-width: 0;
}
.nv-list__title {
  font-weight: 700;
  font-size: var(--nv-text-sm);
  color: var(--nv-ink);
  margin: 0;
  overflow-wrap: anywhere;
}
.nv-list__title a {
  color: inherit;
  text-decoration: none;
}
.nv-list__title a:hover {
  color: var(--nv-primary);
}
.nv-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 3px;
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-list__meta i {
  margin-right: 3px;
}
.nv-list__aside {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--nv-s2);
}
.nv-date-chip {
  flex: none;
  width: 48px;
  border-radius: var(--nv-radius-sm);
  border: 1px solid var(--nv-line);
  text-align: center;
  overflow: hidden;
  background: var(--nv-surface);
}
.nv-date-chip b {
  display: block;
  font-size: var(--nv-text-lg);
  font-weight: 800;
  line-height: 1.3;
  color: var(--nv-ink);
}
.nv-date-chip span {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 0;
  color: #fff;
  background: var(--nv-primary);
}

/* ─── Course card ─── */
.nv-course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nv-course__cover {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--nv-primary), var(--nv-teal));
  background-size: cover;
  background-position: center;
  position: relative;
}
.nv-course__cover .nv-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}
.nv-course__body {
  padding: var(--nv-s4) var(--nv-s5) var(--nv-s5);
  display: flex;
  flex-direction: column;
  gap: var(--nv-s3);
  flex: 1;
}
.nv-course__title {
  font-size: var(--nv-text-md);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--nv-ink);
}
.nv-course__meta {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-course__actions {
  margin-top: auto;
  display: flex;
  gap: var(--nv-s2);
  flex-wrap: wrap;
}

/* ─── Empty state ─── */
.nv-empty {
  text-align: center;
  padding: var(--nv-s7) var(--nv-s5);
  color: var(--nv-muted);
}
.nv-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--nv-s3);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--nv-surface-3);
  color: var(--nv-faint);
}
.nv-empty__title {
  font-weight: 700;
  color: var(--nv-ink-2);
  font-size: var(--nv-text-base);
  margin: 0 0 4px;
}
.nv-empty__text {
  font-size: var(--nv-text-sm);
  margin: 0 auto;
  max-width: 44ch;
}
.nv-empty__action {
  margin-top: var(--nv-s4);
}

/* ─── Tabs ─── */
.nv-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--nv-surface-3);
  border-radius: var(--nv-radius-sm);
  overflow-x: auto;
  scrollbar-width: none;
}
.nv-tabs a,
.nv-tabs button {
  flex: none;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--nv-font);
  font-size: var(--nv-text-sm);
  font-weight: 700;
  color: var(--nv-muted);
  text-decoration: none;
  cursor: pointer;
}
.nv-tabs a.is-active,
.nv-tabs button.is-active {
  background: var(--nv-surface);
  color: var(--nv-ink);
  box-shadow: var(--nv-shadow-sm);
}

/* ─── Table ─── */
.nv-table-wrap {
  overflow-x: auto;
}
.nv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--nv-text-sm);
}
.nv-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nv-muted);
  padding: 10px var(--nv-s4);
  background: var(--nv-surface-2);
  border-bottom: 1px solid var(--nv-line);
  white-space: nowrap;
}
.nv-table td {
  padding: 12px var(--nv-s4);
  border-bottom: 1px solid var(--nv-line);
  vertical-align: middle;
}
.nv-table tr:last-child td {
  border-bottom: none;
}

/* ─── Key / value, alerts ─── */
.nv-kv {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 8px var(--nv-s4);
  margin: 0;
  font-size: var(--nv-text-sm);
}
.nv-kv dt {
  color: var(--nv-muted);
  font-weight: 600;
}
.nv-kv dd {
  margin: 0;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-alert {
  display: flex;
  gap: var(--nv-s3);
  align-items: flex-start;
  padding: var(--nv-s3) var(--nv-s4);
  border-radius: var(--nv-radius-sm);
  font-size: var(--nv-text-sm);
  background: var(--nv-info-soft);
  color: var(--nv-info);
  border: 1px solid rgba(29, 78, 216, 0.15);
}
.nv-alert--ok {
  background: var(--nv-ok-soft);
  color: var(--nv-ok);
  border-color: rgba(4, 120, 87, 0.18);
}
.nv-alert--warn {
  background: var(--nv-warn-soft);
  color: var(--nv-warn);
  border-color: rgba(180, 83, 9, 0.2);
}
.nv-alert--danger {
  background: var(--nv-danger-soft);
  color: var(--nv-danger);
  border-color: rgba(185, 28, 28, 0.18);
}
.nv-muted {
  color: var(--nv-muted);
}
.nv-small {
  font-size: var(--nv-text-xs);
}

@media (prefers-reduced-motion: reduce) {
  .nv-progress__bar,
  .nv-ring__arc,
  .nv-side__link,
  .nv-btn {
    transition: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .nv-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 991.98px) {
  .nv-portal {
    padding-top: var(--nv-s4);
  }
  .nv-portal__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nv-s4);
  }
  .nv-side {
    position: static;
    max-height: none;
    padding: var(--nv-s3);
    gap: var(--nv-s3);
  }
  .nv-side__user {
    padding-bottom: var(--nv-s3);
  }
  .nv-side__nav {
    display: flex;
    gap: var(--nv-s2);
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }
  .nv-side__group {
    flex-direction: row;
    gap: var(--nv-s1);
  }
  .nv-side__title {
    display: none;
  }
  .nv-side__link {
    flex: none;
    padding: 7px 11px;
    border: 1px solid var(--nv-line);
  }
  .nv-side__count {
    margin-left: 4px;
  }
  .nv-side__foot {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .nv-page-head h1 {
    font-size: var(--nv-text-xl);
  }
  .nv-card__body {
    padding: var(--nv-s4);
  }
  .nv-card__head {
    padding: var(--nv-s3) var(--nv-s4);
  }
  .nv-list__item {
    padding: var(--nv-s3) var(--nv-s4);
    flex-wrap: wrap;
  }
  .nv-list__aside {
    width: 100%;
    justify-content: flex-start;
  }
  .nv-kv {
    grid-template-columns: 1fr;
  }
}

/* ─── Utilities ─── */
.nv-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nv-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--nv-primary);
  text-decoration: underline;
  cursor: pointer;
}
.nv-btn--light {
  background: #fff;
  color: var(--nv-primary-strong);
  border-color: #fff;
}
.nv-btn--light:hover {
  background: #eef2ff;
  color: var(--nv-primary-strong);
}

/* ─── Course home (L4) ─── */
.nv-course-hero__title {
  color: #fff;
  font-weight: 800;
  font-size: var(--nv-text-2xl);
  line-height: 1.2;
  margin: 2px 0 6px;
  overflow-wrap: anywhere;
}
.nv-course-hero .nv-ring__track {
  stroke: rgba(255, 255, 255, 0.18);
}
.nv-course-hero .nv-ring__label {
  color: #fff;
}
.nv-card--flush-outline {
  overflow: hidden;
}

/* ─── Course player (L4) ─── */
.nv-player {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--nv-s4);
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--nv-s6);
  align-items: start;
}
.nv-player__side {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--header-height, 72px) + var(--nv-s4));
  max-height: calc(100vh - var(--header-height, 72px) - var(--nv-s7));
  overflow: auto;
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-sm);
  scrollbar-width: thin;
}
.nv-player__main {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--nv-s4);
  min-width: 0;
}
.nv-lesson-head h1 {
  font-size: var(--nv-text-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin: var(--nv-s2) 0 0;
  overflow-wrap: anywhere;
}
.nv-lesson-summary {
  font-size: var(--nv-text-md);
  color: var(--nv-ink-2);
  margin: 0;
}
.nv-lesson-body {
  font-size: var(--nv-text-md);
  line-height: 1.75;
  color: var(--nv-ink-2);
  max-width: 72ch;
}
.nv-lesson-body p {
  white-space: pre-wrap;
  margin: 0 0 1em;
}
.nv-lesson-body p:last-child {
  margin-bottom: 0;
}

/* Outline */
.nv-outline__head {
  display: flex;
  flex-direction: column;
  gap: var(--nv-s2);
  padding: var(--nv-s4);
  border-bottom: 1px solid var(--nv-line);
  position: sticky;
  top: 0;
  background: var(--nv-surface);
  z-index: 1;
}
.nv-outline__head p {
  margin: 0;
}
.nv-outline__sections,
.nv-outline__lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nv-outline__section {
  border-bottom: 1px solid var(--nv-line);
}
.nv-outline__section > summary {
  display: flex;
  align-items: center;
  gap: var(--nv-s3);
  padding: var(--nv-s3) var(--nv-s4);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--nv-text-sm);
}
.nv-outline__section > summary::-webkit-details-marker {
  display: none;
}
.nv-outline__section > summary:hover {
  background: var(--nv-surface-2);
}
.nv-outline__section > summary:focus-visible {
  outline: none;
  box-shadow: inset var(--nv-focus);
}
.nv-outline__num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nv-primary-soft);
  color: var(--nv-primary);
  font-size: var(--nv-text-xs);
  font-weight: 800;
}
.nv-outline__section.is-locked .nv-outline__num {
  background: var(--nv-surface-3);
  color: var(--nv-faint);
}
.nv-outline__stitle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-outline__stitle .nv-small {
  font-weight: 500;
}
.nv-outline__chev {
  color: var(--nv-faint);
  transition: transform 0.15s ease;
}
.nv-outline__section[open] .nv-outline__chev {
  transform: rotate(180deg);
}
.nv-outline__lessons {
  padding-bottom: var(--nv-s2);
}
.nv-outline__link {
  display: flex;
  align-items: flex-start;
  gap: var(--nv-s3);
  padding: 9px var(--nv-s4) 9px calc(var(--nv-s4) + 6px);
  color: var(--nv-ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: var(--nv-text-sm);
}
a.nv-outline__link:hover {
  background: var(--nv-surface-2);
  color: var(--nv-primary);
}
a.nv-outline__link:focus-visible {
  outline: none;
  box-shadow: inset var(--nv-focus);
}
.nv-outline__lesson.is-current .nv-outline__link {
  background: var(--nv-primary-soft);
  border-left-color: var(--nv-primary);
  font-weight: 700;
}
.nv-outline__lesson.is-locked .nv-outline__link {
  color: var(--nv-faint);
  cursor: not-allowed;
}
.nv-outline__icon {
  flex: none;
  margin-top: 2px;
  font-size: 1rem;
  color: var(--nv-muted);
}
.nv-outline__icon.is-completed {
  color: var(--nv-ok);
}
.nv-outline__icon.is-started {
  color: var(--nv-primary);
}
.nv-outline__icon.is-locked {
  color: var(--nv-faint);
}
.nv-outline__ltitle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.nv-outline__ltitle .nv-small {
  font-weight: 500;
}

/* Video */
.nv-video {
  position: relative;
  background: #000;
  border-radius: var(--nv-radius);
  overflow: hidden;
  box-shadow: var(--nv-shadow);
  aspect-ratio: 16 / 9;
}
.nv-video--embed iframe,
.nv-video--file video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.nv-video--file:focus {
  outline: none;
}
.nv-video--file:focus-visible {
  box-shadow: var(--nv-focus);
}
.nv-video.is-fullscreen {
  border-radius: 0;
}
.nv-video__big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nv-primary-strong);
  font-size: 2.4rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.nv-video__big-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.nv-video__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
  transition: opacity 0.2s ease;
}
.nv-video.is-playing:not(:hover):not(:focus-within) .nv-video__bar {
  opacity: 0;
}
.nv-video__scrub input[type='range'] {
  width: 100%;
  height: 6px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--nv-orange) 0 var(--nv-played, 0%),
    rgba(255, 255, 255, 0.45) var(--nv-played, 0%) var(--nv-buffered, 0%),
    rgba(255, 255, 255, 0.2) var(--nv-buffered, 0%) 100%
  );
}
.nv-video input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
}
.nv-video input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
}
.nv-video__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.nv-video__controls button {
  border: none;
  background: transparent;
  color: #fff;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--nv-font);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.nv-video__controls button:hover,
.nv-video__controls button[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.16);
}
.nv-video__controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.nv-video__volume {
  display: flex;
  align-items: center;
}
.nv-video__volume input[type='range'] {
  width: 80px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}
.nv-video__time {
  font-size: var(--nv-text-xs);
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  white-space: nowrap;
}
.nv-video__menu {
  position: relative;
}
.nv-video__speeds {
  position: absolute;
  right: 0;
  bottom: 42px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 10px;
  min-width: 110px;
}
.nv-video__speeds button {
  width: 100%;
  justify-content: start;
  font-size: var(--nv-text-sm);
  height: 32px;
}
.nv-video__speeds button[aria-checked='true'] {
  color: var(--nv-orange);
}
.nv-video__error {
  position: absolute;
  inset: auto 12px 64px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  font-size: var(--nv-text-sm);
}

/* Live lesson, bottom bar, tabs, resources, notes */
.nv-live-panel {
  border-left: 4px solid var(--nv-orange);
}
.nv-player-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--nv-s3);
  padding: var(--nv-s3);
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow-sm);
}
.nv-player-bar__center {
  display: flex;
  justify-content: center;
  text-align: center;
}
.nv-player-bar__done {
  color: var(--nv-ok);
  font-weight: 700;
}
.nv-player-bar__nav[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.nv-player-tabs__list {
  margin: var(--nv-s3) var(--nv-s3) 0;
}
.nv-player-tabs__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: var(--nv-radius-pill);
  background: var(--nv-primary-soft);
  color: var(--nv-primary);
  font-size: var(--nv-text-xs);
}
.nv-resources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--nv-s2);
}
.nv-resource {
  display: flex;
  align-items: center;
  gap: var(--nv-s3);
  padding: var(--nv-s3);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-ink);
  text-decoration: none;
}
.nv-resource:hover {
  border-color: var(--nv-line-strong);
  background: var(--nv-surface-2);
  color: var(--nv-ink);
}
.nv-resource__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}
.nv-notes__input {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: var(--nv-s4);
  border: 1px solid var(--nv-line-strong);
  border-radius: var(--nv-radius-sm);
  background: var(--nv-surface-2);
  font-family: var(--nv-font);
  font-size: var(--nv-text-base);
  line-height: 1.6;
  color: var(--nv-ink);
}
.nv-notes__input:focus {
  outline: none;
  border-color: var(--nv-primary);
  box-shadow: var(--nv-focus);
  background: var(--nv-surface);
}
.nv-notes__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--nv-s3);
  margin-top: var(--nv-s2);
  min-height: 20px;
}
.nv-notes__status {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nv-notes__status.is-error {
  color: var(--nv-danger);
}

@media (prefers-reduced-motion: reduce) {
  .nv-outline__chev,
  .nv-video__bar {
    transition: none;
  }
}
@media (max-width: 1199.98px) {
  .nv-player {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--nv-s4);
  }
}
@media (max-width: 991.98px) {
  .nv-player {
    grid-template-columns: minmax(0, 1fr);
  }
  .nv-player__side,
  .nv-player__main {
    grid-column: 1;
    grid-row: auto;
  }
  .nv-player__side {
    position: static;
    max-height: none;
  }
  .nv-outline__head {
    position: static;
  }
}
@media (max-width: 575.98px) {
  .nv-player {
    padding: 0 var(--nv-s3);
  }
  .nv-lesson-head h1,
  .nv-course-hero__title {
    font-size: var(--nv-text-xl);
  }
  .nv-video {
    border-radius: var(--nv-radius-sm);
  }
  .nv-video__volume input[type='range'],
  .nv-video__skip {
    display: none;
  }
  .nv-player-bar {
    grid-template-columns: 1fr 1fr;
  }
  .nv-player-bar__center {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .nv-player-bar__nav span {
    display: none;
  }
}

/* ─── Professional workspace (L6) ─── */
.nv-avatar--pro {
  background: linear-gradient(135deg, var(--nv-orange), var(--nv-violet));
}
.nv-list__item.is-selected {
  background: var(--nv-primary-soft);
  box-shadow: inset 3px 0 0 var(--nv-primary);
}
.nv-answer {
  background: var(--nv-surface-2);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius-xs);
  padding: var(--nv-s2) var(--nv-s3);
  white-space: pre-wrap;
  margin: 4px 0;
}
.nv-note-text {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--nv-ink-2);
}
.nv-agenda__day + .nv-agenda__day {
  border-top: 1px solid var(--nv-line);
}
.nv-agenda__title {
  margin: 0;
  padding: var(--nv-s3) var(--nv-s5) 0;
  font-size: var(--nv-text-sm);
  font-weight: 800;
  color: var(--nv-primary);
}
.nv-agenda__time {
  flex: none;
  min-width: 56px;
  display: grid;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.nv-agenda__time small {
  font-weight: 500;
  color: var(--nv-muted);
}
.nv-availability {
  display: grid;
  gap: 6px;
}
.nv-availability__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr) 72px;
  gap: 6px;
  align-items: center;
  font-size: var(--nv-text-sm);
}
@media (max-width: 575.98px) {
  .nv-availability__row {
    grid-template-columns: 1fr 1fr 64px;
  }
  .nv-availability__row > span {
    grid-column: 1 / -1;
    font-weight: 700;
  }
}
@media (max-width: 991.98px) {
  /* Groups keep their width in the horizontal strip (otherwise they shrink and overlap). */
  .nv-side__group {
    flex: none;
  }
}

/* ─── Learning calendar (L7) ─── */
.nv-split--calendar {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr);
}
.nv-cal__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nv-s3);
  padding: var(--nv-s3) var(--nv-s4);
  border-bottom: 1px solid var(--nv-line);
}
.nv-cal__title {
  margin: 0;
  font-size: var(--nv-text-lg);
  font-weight: 800;
}
.nv-cal__foot {
  padding: var(--nv-s3) var(--nv-s4);
  border-top: 1px solid var(--nv-line);
}
.nv-cal-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--nv-s2) var(--nv-s4);
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-cal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nv-primary);
  vertical-align: middle;
}
.nv-cal-dot.nv-tone-orange {
  background: var(--nv-orange);
}
.nv-cal-dot.nv-tone-violet {
  background: var(--nv-violet);
}
.nv-cal-dot.nv-tone-teal {
  background: var(--nv-teal);
}
.nv-cal-dot.nv-tone-ok {
  background: var(--nv-ok);
}
.nv-cal-dot.nv-tone-info {
  background: var(--nv-info);
}
.nv-cal-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.nv-cal-month__head {
  padding: var(--nv-s2);
  text-align: center;
  font-size: var(--nv-text-xs);
  font-weight: 700;
  color: var(--nv-muted);
  border-bottom: 1px solid var(--nv-line);
}
.nv-cal-month__cell {
  min-height: 108px;
  padding: 6px;
  border-right: 1px solid var(--nv-line);
  border-bottom: 1px solid var(--nv-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nv-cal-month__cell:nth-child(7n) {
  border-right: none;
}
.nv-cal-month__cell.is-other {
  background: var(--nv-surface-2);
}
.nv-cal-month__cell.is-other .nv-cal-month__day {
  color: var(--nv-faint);
}
.nv-cal-month__day {
  align-self: flex-start;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--nv-radius-pill);
  display: inline-grid;
  place-items: center;
  font-size: var(--nv-text-xs);
  font-weight: 800;
  color: var(--nv-ink);
  text-decoration: none;
}
.nv-cal-month__day:hover {
  background: var(--nv-primary-soft);
}
.nv-cal-month__cell.is-today .nv-cal-month__day {
  background: var(--nv-primary);
  color: #fff;
}
.nv-cal-month__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nv-cal-month__dots {
  display: none;
  gap: 3px;
  justify-content: center;
}
.nv-cal-more {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--nv-primary);
  text-decoration: none;
  padding-left: 4px;
}
.nv-cal-item {
  display: flex;
  align-items: flex-start;
  gap: var(--nv-s3);
  padding: var(--nv-s2) var(--nv-s4);
  color: var(--nv-ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  min-width: 0;
}
a.nv-cal-item:hover {
  background: var(--nv-surface-2);
}
.nv-cal-item__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--nv-primary-soft);
  color: var(--nv-primary);
}
.nv-cal-item__icon.nv-tone-orange {
  background: var(--nv-orange-soft);
  color: var(--nv-orange);
}
.nv-cal-item__icon.nv-tone-violet {
  background: var(--nv-violet-soft);
  color: var(--nv-violet);
}
.nv-cal-item__icon.nv-tone-teal {
  background: var(--nv-teal-soft);
  color: var(--nv-teal);
}
.nv-cal-item__icon.nv-tone-ok {
  background: var(--nv-ok-soft);
  color: var(--nv-ok);
}
.nv-cal-item__icon.nv-tone-info {
  background: var(--nv-info-soft);
  color: var(--nv-info);
}
.nv-cal-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nv-cal-item__time {
  font-size: var(--nv-text-xs);
  font-weight: 700;
  color: var(--nv-muted);
  font-variant-numeric: tabular-nums;
}
.nv-cal-item__title {
  font-size: var(--nv-text-sm);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.nv-cal-item__sub {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-cal-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.nv-cal-item.is-compact {
  gap: 5px;
  padding: 3px 5px;
  border-radius: 6px;
  border-left-width: 3px;
  background: var(--nv-surface-2);
}
.nv-cal-item.is-compact .nv-cal-item__icon {
  display: none;
}
.nv-cal-item.is-compact .nv-cal-item__body {
  flex-direction: row;
  gap: 4px;
  align-items: baseline;
}
.nv-cal-item.is-compact .nv-cal-item__time {
  font-size: 0.625rem;
  flex: none;
}
.nv-cal-item.is-compact .nv-cal-item__title {
  font-size: 0.6875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nv-cal-item--live_lesson {
  border-left-color: var(--nv-orange);
}
.nv-cal-item--assessment {
  border-left-color: var(--nv-violet);
}
.nv-cal-item--assignment {
  border-left-color: var(--nv-teal);
}
.nv-cal-item--coaching {
  border-left-color: var(--nv-primary);
}
.nv-cal-item--study_task {
  border-left-color: var(--nv-ok);
}
.nv-cal-item--event {
  border-left-color: var(--nv-info);
}
.nv-cal-item__warn {
  color: var(--nv-warn);
  font-size: 0.6875rem;
}
.nv-cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.nv-cal-week__day {
  min-height: 220px;
  padding: 6px;
  border-right: 1px solid var(--nv-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nv-cal-week__day:last-child {
  border-right: none;
}
.nv-cal-week__day.is-today {
  background: var(--nv-primary-soft);
}
.nv-cal-week__head {
  margin: 0 0 4px;
  font-size: var(--nv-text-xs);
  text-align: center;
}
.nv-cal-week__head a {
  color: var(--nv-muted);
  text-decoration: none;
  display: grid;
}
.nv-cal-week__head strong {
  font-size: var(--nv-text-lg);
  color: var(--nv-ink);
}
.nv-cal-empty {
  margin: 0;
  text-align: center;
  color: var(--nv-faint);
  font-size: var(--nv-text-xs);
}
.nv-cal-agenda > section + section {
  border-top: 1px solid var(--nv-line);
}
.nv-cal-agenda__day {
  margin: 0;
  padding: var(--nv-s3) var(--nv-s4) var(--nv-s1);
  font-size: var(--nv-text-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--nv-muted);
}
.nv-cal-agenda__day.is-today {
  color: var(--nv-primary);
}
.nv-cal-agenda--mobile {
  display: none;
}

/* Study plan */
.nv-task__feedback {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: var(--nv-radius-xs);
  background: var(--nv-info-soft);
  font-size: var(--nv-text-sm);
}
.nv-task__form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 110px minmax(160px, 2fr) auto;
  gap: 6px;
  align-items: end;
  margin-top: var(--nv-s2);
}
.nv-task__form label,
.nv-task-fields label {
  display: grid;
  gap: 2px;
  margin: 0;
}
.nv-task-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: var(--nv-s3);
}
.nv-task-fields__wide {
  grid-column: 1 / -1;
}
.nv-task__edit {
  margin-top: var(--nv-s2);
}
.nv-task__edit > summary {
  cursor: pointer;
  font-size: var(--nv-text-xs);
  font-weight: 700;
  color: var(--nv-primary);
  margin-bottom: var(--nv-s2);
}

@media (max-width: 1100px) {
  .nv-split--calendar {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767.98px) {
  .nv-cal-month__cell {
    min-height: 54px;
    padding: 4px 2px;
    align-items: center;
  }
  .nv-cal-month__items {
    display: none;
  }
  .nv-cal-month__dots {
    display: flex;
  }
  .nv-cal-agenda--mobile {
    display: block;
    border-top: 1px solid var(--nv-line);
  }
  .nv-cal-week {
    grid-template-columns: minmax(0, 1fr);
  }
  .nv-cal-week__day {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--nv-line);
  }
  .nv-cal-week__head {
    text-align: left;
  }
  .nv-cal-week__head a {
    display: block;
  }
  .nv-task__form,
  .nv-task-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Exams and assignments (L8) ─── */
.nv-text-danger {
  color: var(--nv-danger);
  font-weight: 700;
}
.nv-exam {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--nv-s4);
  display: flex;
  flex-direction: column;
  gap: var(--nv-s4);
}
.nv-exam__head h1 {
  font-size: var(--nv-text-2xl);
  font-weight: 800;
  margin: var(--nv-s2) 0 0;
  overflow-wrap: anywhere;
}
.nv-exam__form {
  display: flex;
  flex-direction: column;
  gap: var(--nv-s3);
}
.nv-exam__bar {
  position: sticky;
  top: calc(var(--header-height, 72px) + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--nv-s2);
  padding: var(--nv-s3) var(--nv-s4);
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
}
.nv-exam__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nv-s3);
  font-size: var(--nv-text-sm);
}
.nv-exam__timer {
  font-weight: 800;
  font-size: var(--nv-text-md);
  font-variant-numeric: tabular-nums;
}
.nv-exam__timer.is-warn {
  color: var(--nv-warn);
}
.nv-exam__timer.is-urgent {
  color: var(--nv-danger);
}
.nv-exam__count {
  font-weight: 700;
}
.nv-exam__saved {
  flex: 1;
  color: var(--nv-muted);
  font-size: var(--nv-text-xs);
}
.nv-exam__map {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nv-exam__map button {
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--nv-line-strong);
  background: var(--nv-surface);
  font-family: var(--nv-font);
  font-weight: 700;
  font-size: var(--nv-text-sm);
  color: var(--nv-ink-2);
  cursor: pointer;
}
.nv-exam__map button.is-answered {
  background: var(--nv-primary-soft);
  border-color: var(--nv-primary);
  color: var(--nv-primary);
}
.nv-exam__map button.is-current {
  background: var(--nv-primary);
  border-color: var(--nv-primary);
  color: #fff;
}
.nv-exam__map button:focus-visible {
  outline: none;
  box-shadow: var(--nv-focus);
}
.nv-exam__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nv-s2);
}
.nv-exam__confirm {
  margin: 0;
}
.nv-exam__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nv-s3);
  padding: var(--nv-s2) 0;
}
.nv-question {
  padding: var(--nv-s4) var(--nv-s5);
  margin: 0;
  min-width: 0;
}
.nv-question[disabled] {
  opacity: 1;
}
.nv-question__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px var(--nv-s3);
  width: 100%;
  margin-bottom: var(--nv-s3);
  float: none;
}
.nv-question__no {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nv-primary-soft);
  color: var(--nv-primary);
  font-weight: 800;
  font-size: var(--nv-text-sm);
}
.nv-question__prompt {
  font-weight: 700;
  font-size: var(--nv-text-md);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nv-question__meta {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-question__options {
  display: grid;
  gap: 8px;
}
.nv-option {
  display: flex;
  align-items: flex-start;
  gap: var(--nv-s3);
  padding: 10px 14px;
  border: 1px solid var(--nv-line-strong);
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
  background: var(--nv-surface);
}
.nv-option:hover {
  border-color: var(--nv-primary);
}
.nv-option input {
  margin-top: 3px;
  accent-color: var(--nv-primary);
}
.nv-option:has(input:checked) {
  border-color: var(--nv-primary);
  background: var(--nv-primary-soft);
}
.nv-option:has(input:focus-visible) {
  box-shadow: var(--nv-focus);
}
.nv-option span {
  flex: 1;
  overflow-wrap: anywhere;
}
.nv-option.is-correct {
  border-color: var(--nv-ok);
  background: var(--nv-ok-soft);
}
.nv-option.is-wrong {
  border-color: var(--nv-danger);
  background: var(--nv-danger-soft);
}
.nv-option__mark {
  color: var(--nv-ok);
  font-size: 1.1rem;
}
.nv-question__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nv-s3);
  margin-top: var(--nv-s3);
}
.nv-question.is-correct {
  border-left: 4px solid var(--nv-ok);
}
.nv-question.is-wrong {
  border-left: 4px solid var(--nv-danger);
}
.nv-question.is-partial,
.nv-question.is-pending {
  border-left: 4px solid var(--nv-warn);
}
.nv-exam-result__title {
  font-size: var(--nv-text-xl);
  font-weight: 800;
  margin: 0 0 4px;
}
.nv-exam-result__stats {
  padding: 0 var(--nv-s5) var(--nv-s5);
}
.nv-assignment {
  padding: var(--nv-s4) var(--nv-s5);
  border-top: 1px solid var(--nv-line);
  display: flex;
  flex-direction: column;
  gap: var(--nv-s2);
}
.nv-assignment:first-child {
  border-top: none;
}
.nv-assignment__title {
  margin: 0;
  font-size: var(--nv-text-md);
  font-weight: 800;
}
.nv-assignment__form {
  display: grid;
  gap: var(--nv-s2);
  padding: var(--nv-s3);
  border: 1px dashed var(--nv-line-strong);
  border-radius: var(--nv-radius-sm);
  background: var(--nv-surface-2);
}
.nv-assignment__form label {
  display: grid;
  gap: 2px;
  margin: 0;
}
.nv-submissions {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: var(--nv-s2);
}
.nv-submission__text > summary {
  cursor: pointer;
  font-size: var(--nv-text-xs);
  font-weight: 700;
  color: var(--nv-primary);
}
.nv-checklist {
  list-style: none;
  margin: 0 0 var(--nv-s3);
  padding: 0;
  display: grid;
  gap: var(--nv-s2);
}
.nv-checklist li {
  display: flex;
  gap: var(--nv-s2);
  align-items: flex-start;
  font-size: var(--nv-text-sm);
}
.nv-checklist li > span {
  flex: 1;
  display: grid;
  gap: 4px;
}
.nv-checklist li i {
  color: var(--nv-faint);
}
.nv-checklist li.is-done i {
  color: var(--nv-ok);
}
@media (max-width: 575.98px) {
  .nv-exam {
    padding: 0 var(--nv-s3);
  }
  .nv-exam__head h1 {
    font-size: var(--nv-text-xl);
  }
  .nv-question {
    padding: var(--nv-s3) var(--nv-s4);
  }
  .nv-exam__bar {
    top: calc(var(--header-height, 64px) + 4px);
  }
}

/* ─── Certificates (L9) ─── */
.nv-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.nv-cert-grid {
  display: grid;
  gap: var(--nv-s4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.nv-cert-card {
  display: flex;
  flex-direction: column;
  gap: var(--nv-s3);
  padding: var(--nv-s4);
  border: 1px solid var(--nv-line);
  border-top: 3px solid var(--nv-primary);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  min-width: 0;
}
.nv-cert-card.nv-tone-violet {
  border-top-color: var(--nv-violet);
}
.nv-cert-card.nv-tone-teal {
  border-top-color: var(--nv-teal);
}
.nv-cert-card__art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nv-s2);
  color: var(--nv-primary);
}
.nv-cert-card .nv-cert-seal {
  width: 30px;
}
.nv-list__meta .nv-progress {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: 320px;
}
.nv-cert-card__title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--nv-text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-cert-card__meta {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: var(--nv-text-sm);
}
.nv-cert-card__meta > div {
  display: flex;
  justify-content: space-between;
  gap: var(--nv-s3);
  border-bottom: 1px dashed var(--nv-line);
  padding-bottom: 4px;
}
.nv-cert-card__meta dt {
  color: var(--nv-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.nv-cert-card__meta dd {
  margin: 0;
  text-align: right;
  min-width: 0;
}
.nv-cert-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nv-s2);
  margin-top: auto;
}
.nv-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  font-size: var(--nv-text-sm);
}
.nv-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 12px 26px;
}
.nv-steps li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--nv-line-strong);
  background: var(--nv-surface);
}
.nv-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--nv-line);
}
.nv-steps li.is-done::before {
  border-color: var(--nv-ok);
  background: var(--nv-ok);
}
.nv-steps li.is-done:not(:last-child)::after {
  background: var(--nv-ok);
}
.nv-steps li > span {
  font-weight: 700;
  color: var(--nv-ink);
}
.nv-steps li:not(.is-done) > span {
  color: var(--nv-muted);
}
.nv-steps small {
  color: var(--nv-muted);
}
.nv-steps--large {
  font-size: var(--nv-text-md);
  margin-bottom: var(--nv-s3);
}
.nv-cert-kinds {
  list-style: none;
  margin: 0 0 var(--nv-s2);
  padding: 0;
  display: grid;
  gap: var(--nv-s3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.nv-cert-kinds li {
  display: flex;
  gap: var(--nv-s3);
  align-items: flex-start;
  font-size: var(--nv-text-sm);
}
.nv-cert-kinds li > span:last-child {
  display: grid;
  gap: 2px;
}
.nv-cert-kinds small {
  color: var(--nv-muted);
  line-height: 1.45;
}

/* The certificate sheet: same layout as the PDF drawn by the backend. */
.nv-cert-page {
  display: flex;
  flex-direction: column;
  gap: var(--nv-s4);
  min-width: 0;
}
.nv-cert-page__hint {
  margin: 0;
  text-align: center;
}
.nv-cert-sheet {
  --nv-cert-paper: #fdfcf9;
  page: certificate;
  font-variant-numeric: lining-nums;
  padding: clamp(10px, 2.4vw, 22px);
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.nv-cert-sheet__frame {
  position: relative;
  aspect-ratio: 842 / 595;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.6vw, 6px);
  padding: clamp(18px, 4vw, 44px) clamp(14px, 5vw, 60px);
  background: var(--nv-cert-paper);
  border: 1px solid var(--nv-line-strong);
  text-align: center;
  color: var(--nv-ink);
  container-type: inline-size;
}
.nv-cert-sheet__frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--nv-line);
  pointer-events: none;
}
.nv-cert-sheet__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0 solid var(--nv-primary);
}
.nv-cert-sheet__corner.is-tl {
  top: -1px;
  left: -1px;
  border-top-width: 3px;
  border-left-width: 3px;
}
.nv-cert-sheet__corner.is-tr {
  top: -1px;
  right: -1px;
  border-top-width: 3px;
  border-right-width: 3px;
}
.nv-cert-sheet__corner.is-bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 3px;
  border-left-width: 3px;
}
.nv-cert-sheet__corner.is-br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 3px;
  border-right-width: 3px;
}
.nv-cert-sheet p {
  margin: 0;
}
.nv-cert-sheet__brand {
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--nv-primary);
  font-size: clamp(0.95rem, 2.4cqi, 1.5rem);
  padding-left: 0.3em;
}
.nv-cert-sheet__kind,
.nv-cert-sheet__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: clamp(0.6rem, 1.05cqi, 0.72rem);
  color: var(--nv-muted);
}
.nv-cert-sheet__kind {
  margin-bottom: clamp(4px, 2.6cqi, 26px) !important;
}
.nv-cert-sheet__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 4.6cqi, 2.6rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.nv-cert-sheet__rule {
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--nv-primary);
  margin: clamp(4px, 1.2cqi, 12px) 0 clamp(6px, 2cqi, 18px);
}
.nv-cert-sheet__course {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8cqi, 1.65rem);
  line-height: 1.25;
  max-width: 80%;
  overflow-wrap: anywhere;
}
.nv-cert-sheet__citation {
  max-width: 58%;
  margin-top: clamp(4px, 1.4cqi, 14px) !important;
  font-size: clamp(0.6rem, 1.3cqi, 0.85rem);
  line-height: 1.5;
  color: var(--nv-muted);
}
.nv-cert-sheet__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: clamp(8px, 3cqi, 40px);
  width: 78%;
  margin-top: auto;
  padding-top: clamp(6px, 2cqi, 20px);
}
.nv-cert-sheet__foot > div {
  border-bottom: 1px solid var(--nv-line);
  padding-bottom: 4px;
}
.nv-cert-sheet__value {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.7rem, 1.6cqi, 1.05rem);
  margin-top: 2px !important;
  overflow-wrap: anywhere;
}
.nv-cert-seal {
  color: var(--nv-primary);
  width: clamp(34px, 7cqi, 64px);
  height: auto;
}
.nv-cert-sheet__verify {
  margin-top: clamp(4px, 1.6cqi, 16px) !important;
  font-size: clamp(0.6rem, 1cqi, 0.7rem);
  color: var(--nv-muted);
  overflow-wrap: anywhere;
}
@page certificate {
  size: A4 landscape;
  margin: 10mm;
}
@media print {
  body:has(.nv-cert-sheet) * {
    visibility: hidden !important;
  }
  body:has(.nv-cert-sheet) .nv-cert-sheet,
  body:has(.nv-cert-sheet) .nv-cert-sheet * {
    visibility: visible !important;
  }
  body:has(.nv-cert-sheet) .nv-cert-sheet {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ─── Koçluğum (L10) ─── */
.nv-coach-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--nv-s4);
  padding: var(--nv-s5, 20px);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  background: linear-gradient(135deg, var(--nv-primary-soft), var(--nv-surface) 60%);
}
.nv-coach-hero p {
  margin: 0;
}
.nv-coach-hero__coach {
  display: flex;
  gap: var(--nv-s3);
  align-items: center;
  min-width: 0;
}
.nv-coach-hero__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--nv-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}
.nv-coach-hero__label {
  font-size: var(--nv-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nv-muted);
}
.nv-coach-hero__name {
  font-size: var(--nv-text-lg);
  font-weight: 800;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-coach-hero__next {
  display: grid;
  gap: 6px;
  align-content: center;
  padding-left: var(--nv-s4);
  border-left: 1px solid var(--nv-line);
  min-width: 0;
}
.nv-coach-hero__when {
  font-weight: 700;
  color: var(--nv-ink);
}
.nv-feedback__text {
  margin: 4px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--nv-violet);
  background: var(--nv-surface-2);
  border-radius: 0 var(--nv-radius-sm) var(--nv-radius-sm) 0;
  font-size: var(--nv-text-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  .nv-coach-hero {
    grid-template-columns: 1fr;
  }
  .nv-coach-hero__next {
    padding-left: 0;
    padding-top: var(--nv-s3);
    border-left: 0;
    border-top: 1px solid var(--nv-line);
  }
}

/* ─── Etkinlik bileti (L11) ─── */
.nv-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  box-shadow: var(--nv-shadow);
  overflow: hidden;
  position: relative;
}
.nv-ticket::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--nv-primary);
}
.nv-ticket.is-invalid::before {
  background: var(--nv-danger);
}
.nv-ticket__main {
  padding: var(--nv-s5, 20px) var(--nv-s5, 20px) var(--nv-s5, 20px) calc(var(--nv-s5, 20px) + 5px);
  min-width: 0;
}
.nv-ticket__brand {
  margin: 0 0 6px;
  font-size: var(--nv-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nv-primary);
}
.nv-ticket__title {
  margin: 0 0 var(--nv-s3);
  font-size: var(--nv-text-xl);
  font-weight: 800;
  line-height: 1.25;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-ticket__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--nv-s3);
  margin: 0;
}
.nv-ticket__meta dt {
  font-size: var(--nv-text-xs);
  font-weight: 700;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nv-ticket__meta dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-ticket__meta dd small {
  display: block;
  font-weight: 400;
  color: var(--nv-muted);
}
.nv-ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--nv-s5, 20px);
  background: var(--nv-surface-2);
  border-left: 2px dashed var(--nv-line-strong);
  text-align: center;
}
.nv-ticket__stub::before,
.nv-ticket__stub::after {
  content: '';
  position: absolute;
  left: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nv-bg, #f1f5f9);
  border: 1px solid var(--nv-line);
}
.nv-ticket__stub::before {
  top: -11px;
}
.nv-ticket__stub::after {
  bottom: -11px;
}
.nv-ticket__status {
  font-weight: 800;
  color: var(--nv-ok);
  margin-bottom: 6px;
}
.nv-ticket.is-invalid .nv-ticket__status {
  color: var(--nv-danger);
}
.nv-ticket__label {
  font-size: var(--nv-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nv-muted);
}
.nv-ticket__number {
  font-size: var(--nv-text-lg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--nv-ink);
  overflow-wrap: anywhere;
}
.nv-ticket-page__note {
  text-align: center;
  margin: var(--nv-s4) 0 var(--nv-s3);
}
@media (max-width: 575.98px) {
  .nv-ticket {
    grid-template-columns: 1fr;
  }
  .nv-ticket__stub {
    border-left: 0;
    border-top: 2px dashed var(--nv-line-strong);
  }
  .nv-ticket__stub::before,
  .nv-ticket__stub::after {
    display: none;
  }
}

/* ─── Bildirimler (L12) ─── */
.nv-bell {
  position: relative;
  margin-left: auto;
  flex: none;
}
.nv-bell__button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--nv-line);
  background: var(--nv-surface);
  color: var(--nv-ink-2, var(--nv-ink));
  font-size: 1.05rem;
  text-decoration: none;
}
.nv-bell__button:hover,
.nv-bell__button[aria-expanded='true'] {
  border-color: var(--nv-primary);
  color: var(--nv-primary);
}
.nv-bell__button:focus-visible {
  outline: none;
  box-shadow: var(--nv-focus);
}
.nv-bell__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--nv-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.nv-bell__panel {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 1050;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}
.nv-bell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nv-s2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--nv-line);
  font-size: var(--nv-text-sm);
}
.nv-bell__all {
  border: 0;
  background: none;
  color: var(--nv-muted);
  font: inherit;
  font-size: var(--nv-text-xs);
  cursor: pointer;
}
.nv-bell__all:hover {
  color: var(--nv-primary);
}
.nv-bell__empty {
  margin: 0;
  padding: 16px 14px;
  font-size: var(--nv-text-sm);
  color: var(--nv-muted);
}
.nv-bell__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
}
.nv-bell__item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--nv-line);
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.nv-bell__item:hover {
  background: var(--nv-surface-2);
}
.nv-bell__item.is-unread {
  background: var(--nv-primary-soft);
}
.nv-bell__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.nv-bell__title {
  font-size: var(--nv-text-sm);
  font-weight: 700;
  color: var(--nv-ink);
}
.nv-bell__text {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
  overflow-wrap: anywhere;
}
.nv-bell__time {
  font-size: 11px;
  color: var(--nv-faint);
}
.nv-bell__more {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: var(--nv-text-sm);
  font-weight: 700;
}
.nv-notice.is-unread {
  background: var(--nv-primary-soft);
}
.nv-notice__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--nv-primary);
  vertical-align: middle;
}

/* S2–S4 — sınıf kartı, devam özeti, yoklama tablosu, sınıf takvimi */
.nv-deflist {
  display: grid;
  gap: var(--nv-s2, 8px);
  margin: 0;
}
.nv-deflist__row {
  display: grid;
  grid-template-columns: minmax(96px, 36%) 1fr;
  gap: var(--nv-s3);
  padding-bottom: var(--nv-s2, 8px);
  border-bottom: 1px solid var(--nv-line);
}
.nv-deflist__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.nv-deflist dt {
  color: var(--nv-muted);
  font-size: var(--nv-text-sm);
}
.nv-deflist dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.nv-attendance-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: var(--nv-s3);
}
.nv-attendance-stats li {
  display: grid;
  gap: 2px;
  padding: var(--nv-s3);
  border: 1px solid var(--nv-line);
  border-radius: 10px;
  text-align: center;
}
.nv-attendance-stats strong {
  font-size: 1.25rem;
  color: var(--nv-ink);
}
.nv-attendance-stats span {
  font-size: var(--nv-text-xs);
  color: var(--nv-muted);
}
.nv-attendance-table__choice {
  text-align: center;
}
.nv-attendance-table input[type='radio'] {
  width: 1.15rem;
  height: 1.15rem;
}
.nv-agenda-day + .nv-agenda-day {
  border-top: 1px solid var(--nv-line);
}
.nv-agenda-day__title {
  margin: 0;
  padding: var(--nv-s3) var(--nv-s5) 0;
  font-size: var(--nv-text-sm);
  color: var(--nv-muted);
}
@media (max-width: 575px) {
  .nv-deflist__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* The video was watched: the lesson completed itself (player tracking). */
.nv-video__done { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 0; padding: .55rem .8rem; border-radius: .6rem; background: #ecfdf5; color: #047857; font-weight: 600; font-size: .9rem; }
.nv-video__done i { font-size: 1rem; }

/* Two equal columns (e.g. a learner's lessons next to exams and assignments). */
.nv-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .nv-split--even { grid-template-columns: minmax(0, 1fr); } }

/* Instructor exam editor: questions with their options (the correct ones marked). */
.nv-question-list { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.nv-question-options { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: 2px; font-size: .88rem; }
.nv-question-options li { color: var(--nv-muted, #64748b); }
.nv-question-options li.is-correct { color: #047857; font-weight: 600; }

/* Five stat cards (member dashboard): one row on wide screens instead of four + one alone. */
@media (min-width: 1200px) {
  .nv-grid--stats:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ─── Deneme takibi (Denemelerim / koç Denemeler) ─── */
.nv-exam-chart { display: block; width: 100%; height: auto; }
.nv-exam-chart__grid { stroke: var(--nv-line); stroke-width: 1; }
.nv-exam-chart__axis { fill: var(--nv-muted); font-size: 11px; font-family: var(--nv-font); }
.nv-exam-chart__line { fill: none; stroke: var(--nv-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.nv-exam-chart__dot { fill: var(--nv-primary); stroke: var(--nv-surface); stroke-width: 2; }
.nv-exam-change { font-weight: 700; color: var(--nv-muted); }
.nv-exam-change.is-up { color: var(--nv-ok); }
.nv-exam-change.is-down { color: var(--nv-danger); }
.nv-exam-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--nv-s3); }
.nv-exam-topics li { display: grid; gap: 4px; }
.nv-exam-topics__head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nv-exam-topics__head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-exam-topics__head span { font-size: var(--nv-text-xs); white-space: nowrap; }
.nv-exam-topics__head b { margin-left: auto; white-space: nowrap; color: var(--nv-danger); font-size: var(--nv-text-sm); }
.nv-exam-topics__bar { display: block; height: 8px; border-radius: var(--nv-radius-pill); background: var(--nv-surface-3); overflow: hidden; }
.nv-exam-topics__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nv-orange), var(--nv-danger)); }
.nv-exam-topics small { font-size: var(--nv-text-xs); }
.nv-exam-list-title { margin: var(--nv-s5) 0 var(--nv-s3); font-size: var(--nv-text-lg); font-weight: 800; color: var(--nv-ink); }
.nv-exam-net { display: grid; justify-items: end; line-height: 1.1; }
.nv-exam-net strong { font-size: var(--nv-text-2xl); font-weight: 800; color: var(--nv-primary); }
.nv-exam-net small { color: var(--nv-muted); font-size: var(--nv-text-xs); white-space: nowrap; }
.nv-exam-sections td, .nv-exam-sections th { padding-top: 8px; padding-bottom: 8px; }
.nv-exam-foot { display: grid; gap: var(--nv-s3); border-top: 1px solid var(--nv-line); }
.nv-exam-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.nv-exam-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: var(--nv-radius-pill); background: var(--nv-danger-soft); color: var(--nv-ink); font-size: var(--nv-text-sm); font-weight: 600; }
.nv-exam-chip small { color: var(--nv-muted); font-weight: 500; }
.nv-exam-delete { display: inline-flex; }
.nv-exam-delete > summary { list-style: none; }
.nv-exam-delete > summary::-webkit-details-marker { display: none; }
.nv-exam-delete[open] > summary { font-size: 0; }
.nv-exam-delete[open] > summary::after { content: 'Vazgeç'; font-size: var(--nv-text-sm); }
.nv-exam-delete[open] { gap: 8px; flex-wrap: wrap; }
.nv-exam-form { display: grid; gap: var(--nv-s4); }
.nv-exam-inputs td { padding: 6px var(--nv-s3); }
.nv-exam-inputs input[type='number'] { max-width: 110px; }
.nv-exam-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nv-s3); }
.nv-exam-submit .nv-alert { flex: 1 1 100%; margin: 0; }
.nv-exam-summary { margin: 0; padding: 8px 14px; border-radius: var(--nv-radius-pill); background: var(--nv-primary-soft); color: var(--nv-ink); font-weight: 600; font-size: var(--nv-text-sm); }
@media (max-width: 640px) {
  .nv-exam-inputs input[type='number'] { max-width: 72px; }
  .nv-exam-net strong { font-size: var(--nv-text-xl); }
}
