:root {
  --teo-bg: #f8f6f4;
  --teo-sidebar: #ffffff;
  --teo-sidebar-border: #f3f4f6;
  --teo-accent: #cb1e31;
  --teo-accent-soft: rgba(203, 30, 49, 0.08);
  --teo-accent-hover: #b01a2b;
  --teo-text: #6d5f5a;
  --teo-muted: #99a1af;
  --teo-icon: #6a7282;
  --teo-card: #ffffff;
  --teo-radius: 16px;
  --teo-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --teo-sidebar-w: 220px;
  --teo-topbar-h: 64px;
  --teo-green: #00bc7d;
  --teo-yellow: #c9a227;
  --teo-brown: #6d5f5a;
  --teo-blue: #2b7fff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--teo-bg);
  color: var(--teo-text);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .page-heading, .welcome-banner__title, .section-header h3 {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.student-app {
  display: flex;
  min-height: 100vh;
  background: var(--teo-bg);
}

/* Sidebar — Figma 87:3620 / 87:3273 */
.student-sidebar {
  width: var(--teo-sidebar-w);
  background: var(--teo-sidebar);
  border-right: 1px solid var(--teo-sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar-brand {
  height: var(--teo-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--teo-sidebar-border);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  height: 30px;
  width: 44px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 30px;
  width: 44px;
  object-fit: contain;
  display: block;
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-toggle:hover { background: rgba(0, 0, 0, 0.04); }

.sidebar-toggle img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.85;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--teo-icon);
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  transition: background .15s ease, color .15s ease;
}

.student-sidebar .nav-link:hover {
  background: rgba(30, 26, 23, 0.04);
  color: #4a5565;
}

.student-sidebar .nav-link.active {
  background: rgba(203, 30, 49, 0.08);
  color: var(--teo-accent);
}

.nav-icon-wrap {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-sidebar .nav-link img.nav-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  /* normalize icon strokes toward Figma #6a7282 */
  filter: brightness(0) saturate(100%) invert(46%) sepia(8%) saturate(604%) hue-rotate(182deg) brightness(94%) contrast(87%);
}

.student-sidebar .nav-link.active img.nav-icon {
  opacity: 1;
  filter: invert(16%) sepia(74%) saturate(4800%) hue-rotate(342deg) brightness(90%) contrast(95%);
}

.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--teo-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.student-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--teo-bg);
}

/* Topbar — Figma 87:3750 / 87:3403 */
.student-topbar {
  height: var(--teo-topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--teo-sidebar-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.student-topbar .topbar-title,
.student-topbar h1 {
  font-family: "Geist", sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
  color: #6d5f5a;
  flex: 1;
  min-width: 0;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.top-search {
  width: 224px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 9px 17px;
}

.top-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-family: "Geist", sans-serif;
  color: #6d5f5a;
  line-height: 19.5px;
  padding: 0;
}

.top-search input::placeholder { color: #d1d5dc; }

.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.icon-btn:hover { background: rgba(0, 0, 0, 0.03); }

.icon-btn .dot {
  position: absolute;
  top: 6px;
  left: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teo-accent);
}

.topbar-user .user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.topbar-avatar-ring {
  display: inline-flex;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(203, 30, 49, 0.2);
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  display: block;
}

.student-content {
  padding: 32px;
  flex: 1;
}

.teo-card {
  background: var(--teo-card);
  border-radius: var(--teo-radius);
  box-shadow: var(--teo-shadow);
  border: 1px solid var(--teo-sidebar-border);
}

.panel { padding: 24px; }
.panel h3 { margin: 0 0 4px; font-size: 16px; }
.panel .sub { color: var(--teo-muted); font-size: 13px; margin-bottom: 16px; }

.btn-teo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--teo-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
  cursor: pointer;
  transition: filter .15s ease;
}

.btn-teo:hover { filter: brightness(1.05); }
.btn-teo img { filter: brightness(0) invert(1); }

.btn-teo-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--teo-sidebar-border);
  background: #fff;
  color: var(--teo-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-teo-outline:hover { border-color: var(--teo-accent); color: var(--teo-accent); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

.alert-teo {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success { background: rgba(0, 188, 125, 0.12); color: #059669; }
.alert-danger { background: var(--teo-accent-soft); color: var(--teo-accent); }

/* Welcome banner — Figma 87:3424 */
.welcome-banner {
  position: relative;
  height: 196px;
  border-radius: var(--teo-radius);
  background: #4d4130;
  overflow: hidden;
}

.welcome-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.welcome-banner__body {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.welcome-banner__eyebrow {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 18px;
}

.welcome-banner__title {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 39px;
  color: #fff;
  font-weight: 400;
}

.welcome-banner__copy {
  margin: 4px 0 16px;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
}

.welcome-banner__cta { margin-top: auto; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  padding: 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 151px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img { width: 18px; height: 18px; }
.stat-icon.brown { background: rgba(109, 95, 90, 0.08); }
.stat-icon.green { background: #ecfdf5; }
.stat-icon.blue { background: #eff6ff; }
.stat-icon.yellow { background: #fffbeb; }
.stat-icon.red { background: var(--teo-accent-soft); }

.stat-value {
  font-family: "Geist", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 39px;
  margin: 12px 0 0;
  color: var(--teo-text);
}

.stat-label {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  margin: 0;
  color: var(--teo-muted);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--teo-text);
}

.section-header a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--teo-accent);
}

.section-header a img {
  transform: rotate(-90deg);
  opacity: 0.9;
}

.section-title { font-size: 20px; margin: 0 0 16px; }
.page-heading { margin: 0; font-size: 28px; }
.page-sub { margin: 4px 0 0; color: var(--teo-muted); font-size: 14px; }

.dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.dash-continue,
.dash-activity {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.continue-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 101px;
  transition: box-shadow .15s ease;
}

.continue-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.continue-card__thumb {
  position: relative;
  width: 128px;
  flex-shrink: 0;
  overflow: hidden;
  background: #ddd;
}

.continue-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 99px;
}

.continue-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.continue-card__body {
  flex: 1;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.continue-card__title {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 17.875px;
  color: var(--teo-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-card__meta {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 16.5px;
  color: var(--teo-muted);
}

.continue-card .progress-wrap { margin-top: 12px; }

.continue-card__play {
  display: flex;
  align-items: center;
  padding-right: 16px;
  flex-shrink: 0;
}

.play-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teo-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-fab img { filter: brightness(0) invert(1); }

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-wrap.lg { margin-top: 8px; }

.progress-bar {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--teo-accent);
  border-radius: 999px;
  transition: width .3s ease;
}

.progress-label {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teo-text);
  white-space: nowrap;
}

.activity-panel {
  padding: 21px;
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
  border: none;
}

.activity-item + .activity-item { margin-top: 16px; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot--green { background: #00bc7d; }
.activity-dot--red { background: var(--teo-accent); }
.activity-dot--blue { background: #2b7fff; }
.activity-dot--muted { background: #6d5f5a; }

.activity-copy { min-width: 0; flex: 1; }

.activity-msg {
  margin: 0;
  font-size: 12px;
  line-height: 16.5px;
  color: #4a5565;
}

.activity-time {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 15px;
  color: var(--teo-muted);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.course-card {
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 26, 23, 0.1);
}

.course-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.course-body { padding: 16px 18px 18px; }
.course-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--teo-accent); }
.course-body h4 { margin: 6px 0 8px; font-size: 18px; line-height: 1.3; }
.course-meta { font-size: 12px; color: var(--teo-muted); margin: 0 0 12px; }

/* My Courses — Figma 87:3769 */
.my-courses {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.my-courses__heading {
  margin: 0 0 0;
}

.my-courses__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 33px;
  color: var(--teo-text);
}

.my-courses__sub {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  color: var(--teo-muted);
}

.my-courses__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
}

.mc-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6a7282;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.mc-filter:hover {
  border-color: #d1d5db;
  color: var(--teo-text);
}

.mc-filter.is-active {
  background: var(--teo-accent);
  border-color: var(--teo-accent);
  color: #fff;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.mc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.mc-card__media {
  position: relative;
  height: 144px;
  overflow: hidden;
  background: #e5e7eb;
}

.mc-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.mc-card__badges {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
}

.mc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}

.mc-pill--cat {
  background: var(--teo-accent);
  color: #fff;
}

.mc-pill--status.is-progress {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--teo-accent);
  font-weight: 600;
}

.mc-pill--status.is-completed {
  background: #ecfdf5;
  border: 1px solid #d0fae5;
  color: #007a55;
  font-weight: 600;
}

.mc-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
}

.mc-card__title {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #1e1a17;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mc-card__instructor {
  margin: 0;
  padding-top: 4px;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: var(--teo-muted);
}

.mc-card__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.mc-card__progress .progress-bar {
  height: 6px;
}

.mc-card__progress .progress-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: var(--teo-text);
  min-width: 28px;
  text-align: right;
}

.mc-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.mc-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
  color: var(--teo-muted);
}

.mc-meta img {
  display: block;
  opacity: 0.85;
  flex-shrink: 0;
}

.mc-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--teo-text);
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  transition: background .15s ease;
}

.mc-card__cta:hover {
  background: #e5e7eb;
  color: var(--teo-text);
}

.mc-card__cta img {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .mc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mc-grid {
    grid-template-columns: 1fr;
  }
}

/* Course player */
.course-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.player-video { overflow: hidden; }
.student-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #120f0d;
}
.student-course-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #120f0d;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a2420 0%, #1e1a17 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 12px;
}

.video-placeholder img { filter: brightness(0) invert(1); opacity: 0.9; }
.video-placeholder p { margin: 0; font-size: 14px; opacity: 0.8; }
.player-episode-label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teo-muted);
}
.ccp-item.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.player-meta { padding: 20px 24px; }
.player-meta h2 { margin: 0 0 12px; font-size: 24px; }

.course-tabs { margin-top: 20px; overflow: hidden; }

.tab-nav {
  display: flex;
  gap: 4px;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--teo-sidebar-border);
}

.tab-link {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teo-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease;
}

.tab-link:hover { color: var(--teo-text); }
.tab-link.active { color: var(--teo-accent); border-bottom-color: var(--teo-accent); }

.tab-content { padding: 24px; font-size: 14px; line-height: 1.6; }

.overview-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--teo-sidebar-border);
}

.overview-stats div { display: flex; flex-direction: column; gap: 4px; }
.overview-stats strong { font-size: 20px; font-family: "Cormorant Garamond", serif; }
.overview-stats span { font-size: 12px; color: var(--teo-muted); }

/* Course Content Panel — Figma 106:519 */
.ccp {
  width: 360px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: calc(var(--teo-topbar-h) + 24px);
  align-self: start;
}

.ccp__header {
  background: #4d4130;
  padding: 16px 20px;
}

.ccp__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
}

.ccp__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ccp__progress-label {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.ccp__progress-pct {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: var(--teo-accent);
}

.ccp__bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ccp__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teo-accent);
}

.ccp__list {
  max-height: 520px;
  overflow-y: auto;
  background: #fff;
}

.ccp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px 15px;
  border: none;
  border-bottom: 1px solid #f9fafb;
  border-left: 2px solid transparent;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.ccp-item:hover:not(:disabled) {
  background: #fafafa;
}

.ccp-item:disabled {
  cursor: default;
}

.ccp-item--active {
  background: rgba(203, 30, 49, 0.04);
  border-left-color: var(--teo-accent);
  padding-left: 18px;
}

.ccp-item--active:hover {
  background: rgba(203, 30, 49, 0.06);
}

.ccp-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ccp-item__play {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teo-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
}

.ccp-item__ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  box-sizing: border-box;
  display: block;
}

.ccp-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ccp-item__title {
  display: block;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16.5px;
  color: var(--teo-text);
}

.ccp-item__num {
  opacity: 0.5;
  margin-right: 4px;
}

.ccp-item--active .ccp-item__title,
.ccp-item--active .ccp-item__num {
  color: var(--teo-accent);
  opacity: 1;
}

.ccp-item--locked .ccp-item__title,
.ccp-item--locked .ccp-item__num {
  color: #99a1af;
}

.ccp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}

.ccp-badge svg {
  display: block;
  flex-shrink: 0;
}

.ccp-badge--reviewed {
  background: #ecfdf5;
  color: #007a55;
}

.ccp-badge--submitted {
  background: #eff6ff;
  color: #1447e6;
}

.ccp-badge--not_submitted {
  background: #fffbeb;
  color: #bb4d00;
}

.ccp-badge--locked {
  background: #f3f4f6;
  color: #99a1af;
}

/* Legacy lesson list (catalog / older views) */
.player-sidebar { padding: 20px; position: sticky; top: calc(var(--teo-topbar-h) + 24px); }
.player-sidebar h4 { margin: 0 0 16px; font-size: 18px; }

.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list.flat .lesson-item { border-radius: 8px; margin-bottom: 4px; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}

.lesson-item:hover { background: rgba(30, 26, 23, 0.04); }
.lesson-item.active { background: var(--teo-accent-soft); }
.lesson-item.locked { opacity: 0.5; }

.lesson-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(30, 26, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-item.active .lesson-num { background: var(--teo-accent); color: #fff; }
.lesson-info { flex: 1; min-width: 0; }
.lesson-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-info span { font-size: 11px; color: var(--teo-muted); }
.lesson-check { flex-shrink: 0; }

/* Catalog */
.catalog-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 32px;
  align-items: center;
}

.catalog-hero h2 { font-size: 32px; margin: 8px 0 12px; }
.catalog-hero p { color: var(--teo-muted); line-height: 1.6; margin: 0; }
.catalog-meta { font-size: 14px; color: var(--teo-muted); margin-top: 12px; }
.catalog-hero-img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }

.bullet-list { padding-left: 20px; line-height: 1.8; }

/* Assignments */
.assignment-grid, .certificate-grid, .support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.assignment-card, .certificate-card, .support-card, .qa-card { padding: 20px; }
.assignment-card h4, .certificate-card h4 { margin: 8px 0; font-size: 18px; }
.assignment-card p { font-size: 13px; color: var(--teo-muted); line-height: 1.5; }
.assignment-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }

.assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--teo-sidebar-border);
}

.assignment-row:last-child { border-bottom: none; }

.asg-submit { max-width: 100%; }
.asg-submit__label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: #99a1af;
}
.asg-submit__label[for="asgFile"],
.asg-submit__label[for="asgNotes"] {
  color: #6a7282;
  letter-spacing: .6px;
  font-size: 12px;
}
.asg-submit__select-wrap {
  position: relative;
  margin: 8px 0 24px;
}
.asg-submit__select {
  width: 100%;
  height: 47px;
  padding: 0 40px 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: var(--teo-text);
  font-size: 14px;
  appearance: none;
}
.asg-submit__select:focus {
  outline: none;
  border-color: #cb1e31;
  box-shadow: 0 0 0 3px rgba(203, 30, 49, .12);
}
.asg-submit__chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.asg-submit__card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: var(--teo-shadow);
  padding: 24px;
}
.asg-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 172px;
  margin: 8px 0 20px;
  padding: 34px 20px;
  border: 2px dashed #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
}
.asg-drop.is-drag,
.asg-drop:hover { border-color: #cb1e31; background: #fff8f8; }
.asg-drop__input { display: none; }
.asg-drop__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.asg-drop__title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #6a7282;
}
.asg-drop__hint,
.asg-drop__current {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16.5px;
  color: #99a1af;
}
.asg-submit__notes {
  width: 100%;
  min-height: 89px;
  margin: 0 0 20px;
  padding: 13px 17px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  resize: vertical;
  font-size: 14px;
  line-height: 21px;
  color: var(--teo-text);
}
.asg-submit__notes::placeholder { color: #d1d5dc; }
.asg-submit__notes:focus {
  outline: none;
  border-color: #cb1e31;
  box-shadow: 0 0 0 3px rgba(203, 30, 49, .12);
}
.asg-submit__cta { padding: 10px 24px; }
.asg-submit__notes-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.asg-submit__notes-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #6a7282;
}
.asg-submit__notes-list strong { color: #433c33; }

.feedback-card {
  padding: 16px;
  background: var(--teo-bg);
  border-radius: 10px;
  margin-bottom: 12px;
}

.feedback-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--teo-accent); margin-bottom: 8px; }

.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--teo-sidebar-border);
  font-size: 14px;
}

.resource-list li strong { display: block; color: var(--teo-text); }
.resource-list li span { color: var(--teo-muted); font-size: 12px; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-published { background: rgba(47, 158, 106, 0.12); color: var(--teo-green); }
.badge-draft { background: rgba(201, 162, 39, 0.15); color: var(--teo-yellow); }

/* Certificates */
.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teo-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cert-date { font-size: 12px; color: var(--teo-muted); margin-top: 8px; }

/* Q&A */
.grid-2 { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.qa-layout .qa-card { margin-bottom: 12px; }
.qa-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qa-question { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.qa-answer { padding: 12px; background: var(--teo-bg); border-radius: 8px; margin-bottom: 8px; }
.qa-answer strong { font-size: 12px; color: var(--teo-accent); display: block; margin-bottom: 4px; }

/* Settings */
.settings-panel { max-width: 640px; }
.settings-avatar-row { display: flex; align-items: center; gap: 16px; }
.settings-avatar-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--teo-sidebar-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.form-control:focus { outline: none; border-color: var(--teo-accent); }

/* Table */
.student-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.student-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teo-muted);
  border-bottom: 1px solid var(--teo-sidebar-border);
}

.student-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--teo-sidebar-border);
}

/* Notifications */
.notification-list { display: flex; flex-direction: column; gap: 12px; }

.notification-card {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teo-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-body strong { display: block; margin-bottom: 6px; font-size: 15px; }
.notif-body p { margin: 0 0 8px; font-size: 13px; color: var(--teo-muted); line-height: 1.5; }

/* Support */
.support-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state h4 { font-size: 22px; margin: 0 0 8px; }
.empty-state p { color: var(--teo-muted); margin: 0; }

.text-muted { color: var(--teo-muted); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teo-bg);
  padding: 24px;
}

.student-login .login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--teo-radius);
  box-shadow: var(--teo-shadow);
  padding: 40px 36px;
  border: 1px solid rgba(30, 26, 23, 0.04);
}

.login-card .logo { height: 32px; margin-bottom: 24px; display: block; }
.login-card h1 { font-size: 32px; margin: 0 0 8px; }
.login-card .lead { color: var(--teo-muted); font-size: 14px; margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-split { grid-template-columns: 1fr; }
  .course-player { grid-template-columns: 1fr; }
  .player-sidebar { position: static; }
  .ccp { width: 100%; position: static; }
  .catalog-hero { grid-template-columns: 1fr; }
  .grid-2, .qa-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .student-sidebar { display: none; }
  .student-content { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .welcome-banner { height: auto; min-height: 196px; }
  .welcome-banner__body { padding: 24px; }
  .top-search { display: none; }
}
