.cv-lms-course {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
}

.cv-lms-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.cv-lms-loading,
.cv-lms-error {
  min-height: 220px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.cv-lms-loading span,
.cv-lms-error p {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.cv-lms-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(79, 70, 229, 0.16);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: cv-lms-spin 0.8s linear infinite;
}

@keyframes cv-lms-spin {
  to { transform: rotate(360deg); }
}

.cv-lms-error-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1f2;
  color: #be123c;
  font-weight: 800;
  font-size: 21px;
}

.cv-lms-error h2,
.cv-lms-section-head h2,
.cv-lms-lesson-heading h2 {
  margin: 0;
  color: #0f172a;
}

.cv-lms-overview {
  padding: 22px;
  overflow: hidden;
}

.cv-lms-overview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cv-lms-overview-top > div {
  display: grid;
  gap: 5px;
}

.cv-lms-overview-top strong {
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
}

.cv-lms-kicker {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #6366f1;
}

.cv-lms-percent {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #eef2ff;
  color: #4338ca;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.cv-lms-progress {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  background: #e9edf5;
  border-radius: 999px;
}

.cv-lms-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 0.25s ease;
}

.cv-lms-continue {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.cv-lms-continue span {
  display: grid;
  gap: 4px;
}

.cv-lms-continue small {
  color: rgba(255, 255, 255, 0.62);
}

.cv-lms-continue strong {
  font-size: 15px;
  line-height: 1.35;
}

.cv-lms-continue b {
  font-size: 24px;
}

.cv-lms-finished {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}

.cv-lms-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 4px 2px 0;
}

.cv-lms-section-head > div {
  display: grid;
  gap: 5px;
}

.cv-lms-lessons {
  display: grid;
  gap: 10px;
}

.cv-lms-lesson {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 15px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  text-align: left;
  cursor: pointer;
}

.cv-lms-lesson-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
}

.cv-lms-lesson.is-completed .cv-lms-lesson-mark {
  background: #dcfce7;
  color: #15803d;
}

.cv-lms-lesson.is-watched .cv-lms-lesson-mark {
  background: #eef2ff;
  color: #4f46e5;
}

.cv-lms-lesson-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cv-lms-lesson-copy strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.cv-lms-lesson-copy span {
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-lms-lesson-status {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.cv-lms-back-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 2px;
  text-align: left;
  cursor: pointer;
}

.cv-lms-back-top {
  padding-top: 0;
}

.cv-lms-lesson-heading {
  display: grid;
  gap: 8px;
}

.cv-lms-lesson-heading h2 {
  font-size: 26px;
  line-height: 1.15;
}

.cv-lms-lesson-heading p {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.cv-lms-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #090d18;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.cv-lms-player video,
.cv-lms-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
}

.cv-lms-player-pending {
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.28), transparent 38%),
    linear-gradient(145deg, #111827, #060914);
}

.cv-lms-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.cv-lms-player-placeholder small {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

.cv-lms-play-symbol {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.cv-lms-watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.74);
  font-size: 9px;
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(4px);
}

.cv-lms-copy,
.cv-lms-task,
.cv-lms-feedback {
  padding: 18px;
}

.cv-lms-copy p,
.cv-lms-task p {
  margin: 0;
  color: #243044;
  font-size: 14px;
  line-height: 1.58;
}

.cv-lms-task {
  display: grid;
  gap: 8px;
  border-left: 4px solid #6366f1;
}

.cv-lms-materials,
.cv-lms-actions {
  display: grid;
  gap: 10px;
}

.cv-lms-material {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px 15px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cv-lms-primary,
.cv-lms-secondary,
.cv-lms-question {
  min-height: 50px;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cv-lms-primary {
  border: 0;
  background: #4f46e5;
  color: #fff;
}

.cv-lms-primary.is-active {
  background: #15803d;
}

.cv-lms-secondary {
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: #eef2ff;
  color: #4338ca;
}

.cv-lms-secondary.is-active {
  border-color: rgba(21, 128, 61, 0.2);
  background: #dcfce7;
  color: #15803d;
}

.cv-lms-question {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
}

.cv-lms-primary:disabled,
.cv-lms-secondary:disabled,
.cv-lms-question:disabled {
  opacity: 0.58;
  cursor: wait;
}

.cv-lms-feedback {
  display: grid;
  gap: 10px;
}

.cv-lms-feedback[hidden] {
  display: none;
}

.cv-lms-feedback label {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.cv-lms-feedback textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.cv-lms-feedback textarea:focus {
  border-color: rgba(79, 70, 229, 0.52);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.cv-lms-feedback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cv-lms-feedback-footer span {
  color: #64748b;
  font-size: 12px;
}

.cv-lms-feedback-footer .cv-lms-primary {
  min-height: 42px;
  padding: 10px 14px;
}

.cv-lms-lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cv-lms-lesson-nav button {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 560px) {
  .cv-lms-lesson {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .cv-lms-lesson-mark {
    width: 38px;
    height: 38px;
  }

  .cv-lms-lesson-status {
    grid-column: 2;
  }

  .cv-lms-lesson-heading h2 {
    font-size: 23px;
  }
}


/*
  CONTENTVILLE_LESSON16_FORMATTED_COPY_V1
  Preserve the author's paragraph and line
  structure inside the standalone lesson.
*/
.cv-lms-lesson-screen.is-standalone
.cv-lms-copy p {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.62;
}

.cv-lms-lesson-screen.is-standalone
.cv-lms-copy {
  padding: 18px;
}

@media (max-width: 560px) {
  .cv-lms-lesson-screen.is-standalone
  .cv-lms-copy {
    padding: 16px;
  }

  .cv-lms-lesson-screen.is-standalone
  .cv-lms-copy p {
    font-size: 15px;
    line-height: 1.58;
  }
}
