:root {
  --navy: #320025;
  --navy2: #480035;
  --ink: #2c0120;
  --muted: #785c70;
  --line: rgba(50, 0, 37, 0.12);
  --paper: #fffaf3;
  --card: rgba(255, 255, 255, 0.88);
  --gold: #dba43c;
  --mint: #f8dff1;
  --rose: #ffe4dc;
  --sky: #f7e0f1;
  --lavender: #f6d6ed;
  --shadow: 0 24px 70px rgba(41, 0, 30, 0.16);
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at top left, #f9e8c9, transparent 36%), radial-gradient(circle at 80% 5%, #f5d5ec, transparent 34%), linear-gradient(135deg, #fffaf3 0%, #f9e9f5 52%, #fbe8f6 100%); min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.logoMark { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #900069); color: white; font-weight: 600; letter-spacing: .06em; box-shadow: 0 18px 40px rgba(50, 0, 37,.24); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #766128; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -0.06em; line-height: .92; margin: 22px 0 18px; color: var(--navy); }
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -0.045em; color: var(--navy); margin-bottom: 12px; }
h3 { color: var(--navy); margin-bottom: 8px; }
.lead { max-width: 760px; color: #5c4054; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.portalTopbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 22px; background: rgba(255,255,255,.76); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.portalBrand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logoMark { width: 48px; height: 48px; border-radius: 16px; font-size: 14px; }
.portalBrand strong { display: block; color: var(--navy); }
.portalBrand span { color: var(--muted); font-size: 13px; }
.portalNav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.navButton, .button { border: 0; border-radius: 999px; background: var(--navy); color: white; padding: 11px 17px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px rgba(50, 0, 37,.18); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.navButton.secondary, .button.secondary { background: white; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.portalShell { width: min(1280px, 100%); margin: 0 auto; padding: 28px; }
.panel,
.courseCard,
.unitViewer { border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.76); border-radius: 30px; box-shadow: 0 18px 46px rgba(50, 0, 37,.11); }
.statusPill { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 600; font-size: 13px; }
.notice { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); padding: 13px 14px; color: var(--muted); line-height: 1.45; margin-top: 12px; }
.notice.good { background: #ecfdf5; color: #5f0647; border-color: rgba(95, 6, 71,.16); }
.notice.warn { background: #fff7ed; color: #9a3412; border-color: rgba(154,52,18,.17); }
.notice.bad { background: #fef2f2; color: #991b1b; border-color: rgba(153,27,27,.18); }
.panel { padding: 22px; margin-bottom: 18px; }
.panelHeader { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.formGrid { display: grid; gap: 13px; }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 600; font-size: 14px; }
input, textarea, select { width: 100%; border: 1px solid rgba(50, 0, 37,.18); border-radius: 16px; padding: 13px 14px; background: rgba(255,255,255,.86); color: var(--ink); outline: none; }
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: #900069; box-shadow: 0 0 0 4px rgba(144, 0, 105,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.smallHelp { color: var(--muted); font-size: 13px; line-height: 1.45; }
.structureList { display: grid; gap: 11px; }
.selectRow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.resultBox { white-space: pre-wrap; border: 1px solid var(--line); background: #29001e; color: #fcf8fb; padding: 16px; border-radius: 18px; max-height: 360px; overflow: auto; font-size: 13px; line-height: 1.5; }
.courseGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.courseCard { padding: 22px; display: grid; gap: 14px; }
.courseCard h3 { font-size: 24px; }
.moduleBlock { border-top: 1px solid var(--line); padding-top: 12px; }
.unitList { display: grid; gap: 8px; margin-top: 9px; }
.unitRow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(249, 233, 245,.8); }
.unitRow span { color: var(--muted); font-size: 13px; }
.unitViewer { padding: clamp(22px, 4vw, 38px); margin-top: 18px; }
.contentBlocks { display: grid; gap: 14px; }
.contentBlock { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.contentBlock h4 { margin: 0 0 8px; color: var(--navy); }
.contentBlock p { color: #482d41; line-height: 1.66; white-space: pre-wrap; margin-bottom: 0; }
.resourceGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.resourceCard { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); padding: 14px; }
.resourceCard img, .unitVideo { width: 100%; border-radius: 18px; border: 1px solid var(--line); background: #000; }
.quizBox { margin-top: 18px; padding: 18px; border-radius: 22px; background: var(--lavender); border: 1px solid var(--line); }
.emptyState { padding: 24px; border: 1px dashed rgba(50, 0, 37,.22); border-radius: 22px; background: rgba(255,255,255,.54); color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 920px) {
  .selectRow { grid-template-columns: 1fr; }
  .portalTopbar { position: static; align-items: flex-start; flex-direction: column; }
  .portalShell { padding: 18px; }
}

/* V32 dashboards: Admin creates; Learner views. */
.cleanShell { max-width: 1180px; }
.mainCreateCard { padding: clamp(22px, 4vw, 34px); }
.noStepHeader { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.bigForm label { font-size: 15px; }
.bigForm input, .bigForm textarea { font-size: 16px; }
.twoCols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uploadChoice { display: grid; grid-template-columns: minmax(220px, .5fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.orDivider { display: grid; place-items: center; font-weight: 600; color: var(--muted); }
.optionalBox { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.58); padding: 16px; }
.optionalBox summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.publishButton { width: 100%; min-height: 58px; font-size: 18px; border-radius: 20px; }
.progressCard { margin-top: 18px; border: 1px solid rgba(50, 0, 37,.16); border-radius: 22px; padding: 18px; background: #f9e9f5; color: var(--navy); line-height: 1.55; }
.progressCard.warn { background: #fff7ed; color: #9a3412; }
.progressCard ul { margin-bottom: 0; }
.lockedPanel { opacity: .52; pointer-events: none; }
.compactResult { max-height: 220px; }
.learnerPanel { margin-top: 18px; }
.learnerViewer { background: rgba(255,255,255,.82); }
.learnerCourseCard { transition: transform .15s ease, box-shadow .15s ease; }
.learnerCourseCard:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(50, 0, 37,.14); }
.lessonOpenCard { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--ink); background: rgba(249, 233, 245,.86); box-shadow: none; }
.lessonOpenCard strong { color: var(--navy); }
.lessonOpenCard small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.lessonOpenCard em { font-style: normal; padding: 9px 12px; border-radius: 999px; background: var(--navy); color: white; font-weight: 600; white-space: nowrap; }
.lessonOpenCard:hover { border-color: rgba(50, 0, 37,.3); transform: translateY(-1px); }
.adminOnlyTopbar .logoMark { background: linear-gradient(135deg, #633700, #dba43c); }
.learnerOnlyTopbar .logoMark { background: linear-gradient(135deg, #4e063b, #b8148c); }

@media (max-width: 920px) {
  .twoCols,
.uploadChoice { grid-template-columns: 1fr; }
  .orDivider { padding: 0; }
  .lessonOpenCard { align-items: flex-start; flex-direction: column; }
}

/* V32: one login page, role-based routing. */
.demoLoginCard { text-align: left; border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: rgba(255,255,255,.7); color: var(--ink); box-shadow: none; display: grid; gap: 5px; }
.demoLoginCard strong { color: var(--navy); font-size: 16px; }
.demoLoginCard span { color: #5c4054; font-weight: 600; font-size: 13px; }
.demoLoginCard small { color: var(--muted); }
.demoLoginCard:hover { border-color: rgba(50, 0, 37,.28); transform: translateY(-1px); }
.authPage .mainCreateCard { margin-bottom: 18px; }

/* V32 polish: no page choice, only login -> role dashboard. */
.statusBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.publishedBadge { background: #d1fae5; color: #5f0647; }
.authPage main { opacity: .92; }

.headerActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.progressCard.good {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(236, 253, 245, 0.92));
  color: #14532d;
}

.progressCard.bad {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), rgba(248, 238, 245, 0.92));
  color: #7f1d1d;
}

.progressCard.working {
  border-color: rgba(184, 32, 143, 0.28);
  background: linear-gradient(135deg, rgba(242, 210, 233, 0.95), rgba(248, 229, 243, 0.92));
  color: #5c0043;
}

/* V35: make the publish action visibly active and self-explaining. */
.publishButton {
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.publishButton:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(50, 0, 37,.24);
}
.publishButton:disabled {
  opacity: .72;
  cursor: not-allowed;
  transform: none;
}
.publishHelp {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: -2px;
}

/* V36: clean, understandable and attractive role-based experience. */
.v36Body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 214, 127, 0.48), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(238, 174, 221, 0.42), transparent 30%),
    linear-gradient(135deg, #fffaf3 0%, #faeaf6 48%, #fbe6f5 100%);
}
.v36Shell { max-width: 1240px; }
.v36Topbar { padding: 12px 24px; }
.v36Topbar .portalBrand strong { font-size: 16px; }
.v36AdminGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .42fr);
  gap: 18px;
  align-items: start;
}
.v36CreateCard,
.v36LibraryPanel,
.technicalPanel,
.v36CoursePanel,
.v36ReaderPanel {
  background: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.86);
}
.v36UploadChoice {
  border: 1px solid rgba(50, 0, 37,.1);
  border-radius: 24px;
  background: rgba(249, 233, 245,.52);
  padding: 14px;
}
.v36OptionalBox { background: rgba(255,255,255,.72); }
.v36PublishButton {
  background: linear-gradient(135deg, #320025, #5d0044);
  letter-spacing: .01em;
  min-height: 64px;
  font-size: 20px;
}
.v36PublishButton:before { content: ""; }
.technicalPanel summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.technicalPanel .resultBox { margin-top: 12px; }
.learnerLearningLayout {
  display: grid;
  grid-template-columns: minmax(300px, .45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.v36CoursePanel { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; }
.learnerCourseGrid { grid-template-columns: 1fr; }
.v36LearnerCourseCard {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
}
.v36ModuleBlock { border-top: 1px solid rgba(50, 0, 37,.09); }
.activeLessonCard {
  border-color: rgba(184, 20, 140,.65) !important;
  background: linear-gradient(135deg, rgba(236,253,245,.95), rgba(249, 233, 245,.92)) !important;
  box-shadow: 0 14px 36px rgba(184, 20, 140,.13) !important;
}
.activeLessonCard em { background: #780459; }
.v36ReaderPanel {
  min-height: 520px;
  padding: 0;
  overflow: hidden;
}
.v36ContentBlocks { padding: 22px; }
.v36ContentBlock {
  background: rgba(255,255,255,.9);
  border-radius: 22px;
  border-color: rgba(50, 0, 37,.09);
  box-shadow: 0 12px 30px rgba(50, 0, 37,.055);
}
.v36ContentBlock h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
}
.v36ContentBlock h4 span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-size: 13px;
}
.v36ContentBlock ul { margin-bottom: 0; color: #482d41; line-height: 1.7; }
.v36ResourceGrid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.v36ResourceCard {
  background: rgba(255,255,255,.94);
  display: grid;
  gap: 10px;
}
.pdfFrame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.v36QuizBox {
  margin: 22px;
  background: linear-gradient(135deg, #f6d6ed, #f9e9f5);
}
.v36EmptyState {
  background: rgba(255,255,255,.78);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .v36AdminGrid,
.learnerLearningLayout { grid-template-columns: 1fr; }
  .v36CoursePanel { position: static; max-height: none; }
  .v36Topbar { position: static; }
}
@media (max-width: 680px) {
  .v36Shell { padding: 14px; }
  .v36ContentBlocks { padding: 14px; }
  .v36QuizBox { margin: 14px; width: calc(100% - 28px); }
}

/* V37: clearer learner progress and completion experience. */
.v37CourseCard {
  position: relative;
}
.v37MiniProgress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 4px 0 8px;
}
.v37MiniProgress div {
  height: 10px;
  border-radius: 999px;
  background: rgba(50, 0, 37,.09);
  overflow: hidden;
}
.v37MiniProgress div span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #b8148c, #b8208f);
}
.v37MiniProgress strong {
  color: var(--navy);
  font-size: 12px;
}
.completedLessonCard {
  border-color: rgba(150, 5, 111, .42) !important;
  background: linear-gradient(135deg, rgba(236,253,245,.96), rgba(255,255,255,.92)) !important;
}
.completedLessonCard em {
  background: #96056f !important;
  color: white !important;
}
.inProgressLessonCard {
  border-color: rgba(184, 32, 143, .32) !important;
}
.inProgressLessonCard em {
  background: #b8208f !important;
  color: white !important;
}
.v37ContentBlocks {
  display: grid;
  gap: 16px;
}
.v37KeyPoints ul {
  margin-top: 8px;
}
.v37CompletionPanel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 22px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(50, 0, 37,.1);
  background: linear-gradient(135deg, rgba(249, 233, 245,.96), rgba(255,250,243,.94));
  box-shadow: 0 18px 42px rgba(50, 0, 37,.08);
}
.v37CompletionPanel h3 {
  margin: 4px 0 7px;
  color: var(--navy);
  font-size: 24px;
}
.v37CompletionPanel p {
  color: #5c4054;
  line-height: 1.55;
  margin: 0;
}
.v37CompletionPanel.done {
  border-color: rgba(150, 5, 111,.35);
  background: linear-gradient(135deg, rgba(236,253,245,.96), rgba(253, 240, 250,.92));
}
.v37CompleteButton {
  min-width: 210px;
  min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #780459, #b8148c);
}
.v37CompleteButton:disabled {
  opacity: .72;
  cursor: not-allowed;
}
.v37CompleteTick {
  min-width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #96056f;
  color: white;
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 18px 36px rgba(150, 5, 111,.26);
}
.v37ErrorText {
  width: 100%;
  color: #991b1b !important;
  font-weight: 600;
  margin-top: 10px !important;
}
@media (max-width: 760px) {
  .v37CompletionPanel {
    flex-direction: column;
    align-items: stretch;
  }
  .v37CompleteButton {
    width: 100%;
  }
  .v37CompleteTick {
    align-self: center;
  }
}

/* V38: structured lesson preview and learner notes. */
.v38AdminPreviewBox {
  margin-top: 12px;
}
.v38PreviewLesson {
  border: 1px solid rgba(50, 0, 37,.11);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(249, 233, 245,.84));
  border-radius: 24px;
  padding: 17px;
  box-shadow: 0 14px 32px rgba(50, 0, 37,.07);
}
.v38PreviewLesson h3 {
  font-size: 24px;
  letter-spacing: -.035em;
  margin: 0 0 8px;
}
.v38PreviewLesson p {
  color: #5c4054;
  line-height: 1.52;
}
.v38PreviewBlock {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(50, 0, 37,.08);
}
.v38PreviewBlock strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}
.v38PreviewBlock ul {
  margin: 0;
  padding-left: 18px;
  color: #482d41;
  line-height: 1.55;
}
.v38PreviewBlock p {
  margin: 0;
}
.v38PreviewResource {
  margin-top: 12px;
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(254,226,226,.72);
  color: #991b1b;
  font-weight: 600;
  font-size: 13px;
}
.v38PreviewResource.ready {
  background: rgba(220,252,231,.86);
  color: #5f0647;
}
.v36ContentBlock p {
  white-space: pre-line;
}
.v38NotesPanel {
  margin: 22px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(50, 0, 37,.1);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(249, 233, 245,.78));
  box-shadow: 0 18px 42px rgba(50, 0, 37,.07);
}
.v38NotesHeader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.v38NotesHeader h3 {
  font-size: 24px;
  margin: 2px 0 6px;
}
.v38NotesHeader p {
  color: #5c4054;
  line-height: 1.55;
  margin: 0;
}
.v38NoteStatus {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(50, 0, 37,.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}
.v38NoteStatus.good { background: rgba(220,252,231,.9); color: #5f0647; }
.v38NoteStatus.bad { background: rgba(254,226,226,.9); color: #991b1b; }
.v38NoteStatus.working { background: rgba(242, 210, 233,.9); color: #5c0043; }
.v38NotesPanel textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(50, 0, 37,.13);
  border-radius: 20px;
  padding: 15px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  line-height: 1.55;
  outline: none;
}
.v38NotesPanel textarea:focus {
  border-color: rgba(184, 32, 143,.48);
  box-shadow: 0 0 0 4px rgba(184, 32, 143,.1);
}
.v38NotesActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.v38NotesActions small {
  color: var(--muted);
}
@media (max-width: 760px) {
  .v38NotesHeader {
    flex-direction: column;
  }
  .v38NoteStatus {
    white-space: normal;
  }
}

/* V39 interactive learner knowledge check */
.v39QuizCheck {
  display: grid;
  gap: 16px;
  background: linear-gradient(135deg, rgba(246, 214, 237,.96), rgba(249, 233, 245,.94), rgba(236,253,245,.88));
  box-shadow: 0 18px 42px rgba(50, 0, 37,.08);
}
.v39OptionList {
  display: grid;
}
.v39OptionItem {
  border-radius: 18px;
  border: 1px solid rgba(50, 0, 37,.11);
  background: rgba(255,255,255,.88);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.v39OptionItem:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 32, 143,.32);
  box-shadow: 0 12px 28px rgba(50, 0, 37,.08);
}
.v39OptionItem input {
  margin-top: 3px;
  accent-color: #b8208f;
}
.v39QuizActions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.v39QuizFeedback {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  color: #5c4054;
  font-weight: 600;
  line-height: 1.45;
}
.v39QuizFeedback.good {
  background: rgba(220,252,231,.92);
  color: #5f0647;
}
.v39QuizFeedback.bad {
  background: rgba(254,226,226,.92);
  color: #991b1b;
}
.v39QuizFeedback.working {
  background: rgba(242, 210, 233,.92);
  color: #5c0043;
}
.v39QuizCheck.quizPassed {
  border-color: rgba(22,163,74,.3);
}
.v39PreviewQuiz {
  background: rgba(236,253,245,.9);
}
@media (max-width: 760px) {
  .v39QuizActions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Polished quiz layout - keep radio button and answer text together */
.v39QuizCheck {
  overflow: hidden;
}
.v39OptionList {
  margin-top: 18px;
  gap: 12px;
}
.v39OptionItem {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 68px;
}
.v39OptionItem input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0;
  padding: 0;
  justify-self: center;
  align-self: center;
}
.v39OptionItem span {
  display: block;
  width: auto;
  color: #2a1023;
  font-size: 16px;
  line-height: 1.45;
}
.v39OptionItem span strong {
  display: inline-block;
  min-width: 24px;
  color: var(--navy);
}
.v39OptionItem:has(input[type="radio"]:checked) {
  border-color: rgba(184, 32, 143,.45);
  background: rgba(250, 235, 246,.96);
  box-shadow: 0 14px 32px rgba(50, 0, 37,.1);
}
.v39QuizActions {
  margin-top: 20px;
  justify-content: flex-start;
}
.v39SubmitQuizBtn {
  min-width: 170px;
}
.v39QuizFeedback {
  max-width: 760px;
}
@media (max-width: 760px) {
  .v39OptionItem {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 14px;
  }
  .v39OptionItem span {
    font-size: 15px;
  }
  .v39SubmitQuizBtn {
    width: 100%;
  }
  .v39QuizFeedback {
    max-width: none;
  }
}

/* Admin Content Library and lesson management. */
.draftBadge { background: #ffedd5; color: #9a3412; }
.archivedBadge { background: #e5e7eb; color: #482d41; }
.archivedItem { background: #fcf8fb; opacity: .86; }
.v41ManagePanel {
  margin-top: 18px;
}
.v41ManagerGrid {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(300px, 1.05fr);
  gap: 18px;
  align-items: start;
}
.v41PreviewCard {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(249, 233, 245,.74));
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 14px;
}
.v41PreviewHeader {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.v41PreviewHeader h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 4vw, 42px);
}
.v41PreviewHeader p:not(.eyebrow) {
  margin: 0;
  color: #5c4054;
  line-height: 1.58;
}
.v41EditForm {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  padding: clamp(18px, 3vw, 28px);
}
.v41EditForm textarea {
  min-height: 120px;
}
.v41EditForm #editLessonText {
  min-height: 250px;
}
.v41ReadonlyLine {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v41ReadonlyLine span {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(50, 0, 37,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.v41ActionRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.publishHelp.good { color: #5f0647; }
.publishHelp.bad { color: #991b1b; }
.publishHelp.warn { color: #9a3412; }
.publishHelp.working { color: #5c0043; }
@media (max-width: 920px) {
  .v41ManagerGrid,
.v41ActionRow { grid-template-columns: 1fr; }
}

/* Simple AI lesson builder from PDF or pasted notes. */
.v42AiBuilderCard {
  border: 1px solid rgba(50, 0, 37,.12);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(249, 233, 245,.8));
  padding: 18px;
  box-shadow: 0 14px 34px rgba(50, 0, 37,.07);
}
.v42AiBuilderHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.v42AiBuilderHeader h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.v42GenerateButton {
  white-space: nowrap;
  align-self: center;
}
.v42DraftPreview {
  margin-top: 14px;
  border: 1px solid rgba(95, 6, 71,.16);
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(236,253,245,.94), rgba(255,255,255,.88));
  display: grid;
  gap: 12px;
}
.v42DraftPreview.hidden { display: none; }
.v42DraftTopline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.v42DraftTopline span {
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(95, 6, 71,.12);
  color: #5f0647;
  font-weight: 600;
  font-size: 12px;
}
.v42DraftTopline small {
  color: var(--muted);
  font-weight: 600;
}
.v42OutcomeList,
.v42QuizPreview,
.v42DraftGrid article,
.v42InlineDraftNotice {
  border: 1px solid rgba(50, 0, 37,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  padding: 12px;
}
.v42OutcomeList strong,
.v42QuizPreview strong,
.v42DraftGrid strong,
.v42InlineDraftNotice strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}
.v42OutcomeList ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: #482d41;
}
.v42DraftGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.v42QuizPreview {
  background: rgba(246, 214, 237,.82);
}
.v42QuizPreview small {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(50, 0, 37,.08);
  color: var(--navy);
  font-weight: 600;
}
.v42DraftActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v42InlineDraftNotice {
  margin: 10px 0;
  background: rgba(236,253,245,.82);
  display: grid;
  gap: 4px;
}
.v42InlineDraftNotice span {
  color: #482d41;
  line-height: 1.45;
}
@media (max-width: 920px) {
  .v42AiBuilderHeader,
  .v42DraftGrid {
    grid-template-columns: 1fr;
  }
  .v42GenerateButton {
    width: 100%;
  }
}

/* Visual learning builder */
.v43VisualLearningWrap {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.v43VisualSection {
  background: #fff;
  border: 1px solid rgba(30, 4, 23,0.08);
  box-shadow: 0 16px 40px rgba(30, 4, 23, 0.05);
}
.v43SectionHeader { margin-bottom: 14px; }
.v43SectionHeader h3 { margin: 4px 0 0; }
.v43CardGrid {
  display: grid;
}
.v43InsightCard {
  background: linear-gradient(180deg, #ffffff 0%, #fff8fd 100%);
  border: 1px solid rgba(162, 0, 119,0.12);
}
.v43InsightCard strong { display:block; margin-bottom:8px; }
.v43InsightCard p { margin:0; color:#593e52; }
.v43TableWrap { overflow-x:auto; }
.v43VisualTable {
  width: 100%;
  border-collapse: collapse;
}
.v43VisualTable th,
.v43VisualTable td {
  border: 1px solid rgba(30, 4, 23,0.08);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.v43VisualTable th {
  font-weight: 600;
}
.v43FlowWrap {
  display: grid;
}
.v43FlowStep {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(31, 5, 24,0.08);
  padding: 18px 16px 16px;
  min-height: 96px;
}
.v43FlowStep span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1f0518;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}
.v43FlowStep strong { display:block; line-height:1.4; }
.v43MindMap {
  display: grid;
  gap: 16px;
}
.v43MindCenter {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f0518, #5c0043);
  color: #fff;
  font-weight: 600;
}
.v43MindBranches {
  display: grid;
  gap: 14px;
}
.v43MindBranch {
  border-radius: 18px;
  border: 1px solid rgba(31, 5, 24,0.08);
  background: #fcfdff;
}
.v43MindBranch strong { display:block; margin-bottom: 10px; }
.v43MindBranch ul { margin:0; padding-left: 18px; color:#593e52; }
@media (max-width: 700px) {
  .v43VisualTable { min-width: 0; }
  .v43FlowWrap, .v43MindBranches, .v43CardGrid { grid-template-columns: 1fr; }
}

/* Dynamic visual learning layout */
.v44VisualLearningWrap {
  gap: 20px;
}
.v44VisualTabBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.v44VisualTab {
  appearance: none;
  border: 1px solid rgba(162, 0, 119,0.14);
  background: #fff;
  color: #4c2441;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.v44VisualTab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(80, 0, 59, 0.08);
}
.v44VisualTab.active {
  background: linear-gradient(135deg, #5f0046, #840061);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(132, 0, 97, 0.22);
}
.v44VisualPanel {
  display: none;
}
.v44VisualPanel.active {
  display: block;
}
.v43VisualSection {
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
}
.v43SectionHeader {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v43SectionHeader h3 { font-size: 1.25rem; }
.v43CardGrid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.v43InsightCard {
  position: relative;
  border-radius: 22px;
  padding: 20px 18px 18px;
  box-shadow: 0 16px 34px rgba(81, 38, 69, 0.08);
}
.v43InsightCard::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #840061, #d4069d);
}
.v43InsightCard strong {
  font-size: 1rem;
  color: #2c0221;
}
.v43TableWrap {
  border: 1px solid rgba(30, 4, 23,0.07);
  border-radius: 18px;
  overflow: hidden;
}
.v43VisualTable {
  min-width: 100%;
}
.v43VisualTable th {
  background: linear-gradient(180deg, #f8e5f3 0%, #f8faff 100%);
  color: #38042a;
}
.v43VisualTable tbody tr:nth-child(even) td {
  background: #fbfcff;
}
.v43VisualTable td:first-child {
  font-weight: 600;
  color: #3c1331;
}
.v43FlowWrap {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.v43FlowStep {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 12px 28px rgba(81, 38, 69, 0.08);
}
.v43FlowStep::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #982278;
  font-size: 1.45rem;
  font-weight: 600;
}
.v43FlowStep:last-child::after {
  display: none;
}
.v43MindMap {
  background:
    radial-gradient(circle at center, rgba(155, 0, 113,0.06), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-radius: 20px;
  padding: 8px;
}
.v43MindCenter {
  justify-self: center;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 32px rgba(31, 5, 24, 0.16);
}
.v43MindBranches {
  margin-top: 6px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.v43MindBranch {
  position: relative;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(81, 38, 69, 0.06);
}
.v43MindBranch::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 2px;
  height: 10px;
  background: rgba(132, 0, 97,0.28);
}
.v43MindBranch ul li + li {
  margin-top: 6px;
}
@media (max-width: 900px) {
  .v43MindBranches { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .v43FlowStep::after { display: none; }
  .v44VisualTabBar { gap: 8px; }
  .v44VisualTab { width: 100%; justify-content: center; }
}

/* Simple learner onboarding and study plan */
.v45OnboardingForm {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.v45OnboardingForm label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #2c0622;
}
.v45OnboardingForm textarea,
.v45OnboardingForm input,
.v45OnboardingForm select {
  width: 100%;
  border: 1px solid rgba(30, 4, 23, 0.12);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: #2b1024;
}
.v45OnboardingForm textarea { min-height: 110px; resize: vertical; }
.v45TwoCols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.v45OnboardingActions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .v45TwoCols { grid-template-columns: 1fr; }
}

/* Simple AI tutor panel */
.v46TutorPanel {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,248,255,0.96));
  border: 1px solid rgba(30, 4, 23, 0.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(30, 4, 23, 0.07);
}
.v46TutorMode {
  border: 1px solid rgba(132, 0, 97, 0.16);
  background: #fff;
  color: #3c1331;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.v46TutorMode.active {
  background: linear-gradient(135deg, #3f002e, #840061);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(132, 0, 97, 0.2);
}
.v46TutorPrompt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.v46TutorPrompt textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(30, 4, 23, 0.12);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.5;
  background: #fff;
}
.v46TutorTip {
  border: 0;
  background: #f9e9f5;
  color: #480035;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 600;
  cursor: pointer;
}
.v46TutorMessages {
  display: grid;
  gap: 12px;
}
.v46TutorEmpty {
  border: 1px dashed rgba(132, 0, 97, 0.22);
  border-radius: 18px;
  padding: 18px;
  color: #694d61;
  background: rgba(255,255,255,0.72);
}
.v46TutorMessage {
  border: 1px solid rgba(30, 4, 23, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}
.v46TutorMessageTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.v46TutorMessageTop strong {
  color: #39002a;
}
.v46TutorMessageTop small {
  color: #7b5f73;
}
.v46TutorQuestion {
  margin: 0 0 10px;
  color: #482d41;
  font-weight: 600;
}
.v46TutorAnswer {
  margin: 0;
  color: #3c1331;
  line-height: 1.65;
  white-space: pre-line;
}
@media (max-width: 760px) {
  .v46TutorPrompt {
    grid-template-columns: 1fr;
    display: grid;
  }
  .v46TutorPrompt .button {
    width: 100%;
  }
}

/* Active tutor buttons */
.v46TutorMode {
  min-width: 108px;
}
.v46TutorMode::after {
  content: ' →';
  opacity: 0.72;
}
.v46TutorMode.active::after {
  opacity: 1;
}
.v46TutorPrompt .button {
  white-space: nowrap;
}

/* PDF/resource visibility and tutor reliability */
.v48ResourceSection .smallHelp {
  margin-top: 4px;
}
.v48ResourceCard {
  border: 1px solid rgba(184, 32, 143, 0.13);
}
.v48PdfFrame {
  min-height: 460px;
}
.v48ResourceActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.v48ResourceNote {
  color: #5c4054;
  font-size: 0.92rem;
  font-weight: 600;
}
.v48AdminResourceList {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: rgba(240, 253, 244, 0.8);
}
.v48AdminResourceItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.84);
}
.v48TutorWarning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.92rem;
  font-weight: 600;
}
@media (max-width: 760px) {
  .v48PdfFrame { min-height: 360px; }
  .v48AdminResourceItem { align-items: flex-start; flex-direction: column; }
}

/* V50 Stability and Clarity Group */
.notice.working, .publishHelp.working, .v38NoteStatus.working {
  background: #f9e9f5;
  color: #4a0036;
}
.notice.good, .publishHelp.good, .v38NoteStatus.good {
  background: #ecfdf5;
  color: #5f0647;
}
.notice.warn, .publishHelp.warn, .v38NoteStatus.warn {
  background: #fff7ed;
  color: #9a3412;
}
.notice.bad, .publishHelp.bad, .v38NoteStatus.bad {
  background: #fef2f2;
  color: #991b1b;
}
.v36LibraryPanel,
.v46TutorPanel,
.v48ResourceSection {
  scroll-margin-top: 92px;
}
.v46TutorPanel {
  border-color: rgba(132, 0, 97,0.14);
}
.v46TutorEmpty {
  font-weight: 600;
}
.v48ResourceActions .button,
.v48AdminResourceItem .button {
  text-decoration: none;
}

/* V51 Curriculum Structure Group */
.v51CurriculumFields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.v51LearnerProgrammeCard {
  padding: 22px;
}
.v51LearnerProgrammeHeader {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.v51LearnerProgrammeHeader h3 {
  margin: 4px 0 8px;
}
.v51LearnerProgrammeHeader p {
  margin: 0;
}
.v51LearnerProgrammeStats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.v51LearnerProgrammeStats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(249, 233, 245, 0.9);
  color: #5c0043;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.v51ProgrammeProgress {
  margin: 16px 0 18px;
}
.v51LearnerModulePath {
  display: grid;
  gap: 14px;
}
.v51LearnerModuleBlock {
  border: 1px solid rgba(132, 0, 97, 0.12);
  border-radius: 20px;
  padding: 14px;
  background: #fffbfe;
}
.v51LearnerModuleHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.v51LearnerModuleHeader span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #39002a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}
.v51LearnerModuleHeader strong {
  color: #2d0522;
}
.v51LearnerUnitList {
  display: grid;
  gap: 10px;
}
.v51LearnerUnitCard {
  border-radius: 18px;
}
.v51UnitLabel {
  display: block;
  color: #840061;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
@media (max-width: 900px) {
  .v51CurriculumFields,
.v51LearnerProgrammeHeader {
    grid-template-columns: 1fr;
  }
  .v51LearnerProgrammeStats {
    align-items: flex-start;
  }
}

/* V52 Tutor Quality Group */
.v52TutorPanel {
  border: 1px solid rgba(132, 0, 97, 0.14);
  background: radial-gradient(circle at top left, rgba(241, 210, 233, 0.75), rgba(255,255,255,0.98) 38%, rgba(252, 248, 251, 0.96));
}
.v52TutorOutcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.v52TutorOutcomes span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.86);
  color: #482d41;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid rgba(132, 0, 97,0.1);
}
.v52TutorMode {
  min-width: 0;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  display: grid;
  gap: 6px;
}
.v52TutorMode strong {
  display: block;
  font-size: 1.02rem;
}
.v52TutorMode small {
  display: block;
  color: inherit;
  opacity: 0.78;
  font-weight: 600;
}
.v52TutorMode::after {
  content: '';
}
.v52TutorPromptCard {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(30, 4, 23,0.08);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
}
.v52TutorPromptCard label {
  display: block;
  color: #39002a;
  font-weight: 600;
  margin-bottom: 8px;
}
.v52TutorMessage {
  border-left: 5px solid rgba(132, 0, 97,0.5);
}
.v52TutorMessageTop strong {
  background: #f8e5f3;
  color: #630048;
  padding: 5px 9px;
  border-radius: 999px;
}
.v52TutorGrounding {
  margin-top: 12px;
  color: #5c4054;
  background: #fcf8fb;
  border: 1px solid rgba(30, 4, 23,0.08);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* V53 Topic Magic: make topics practical, visual and memorable */
.v53TopicMagic {
  margin: 22px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 30px;
  border: 1px solid rgba(141, 0, 103, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 125, 0.38), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(222, 137, 199, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(252, 248, 251,0.86));
  box-shadow: 0 22px 60px rgba(50, 0, 37, 0.10);
  position: relative;
  overflow: hidden;
}
.v53TopicMagic:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -110px;
  border-radius: 999px;
  background: rgba(219, 164, 60, 0.18);
}
.v53TopicMagic > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .v53TopicMagic { margin: 14px; }
}

/* V55 Automatic MCQ Generator */
.v54McqBuilderCard {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(141, 0, 103, 0.18);
  background: linear-gradient(135deg, rgba(252, 237, 248,.96), rgba(250, 235, 246,.96));
  box-shadow: 0 18px 45px rgba(48, 21, 41, 0.08);
}
.v54McqHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.v54McqControls {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.v54McqControls label {
  min-width: 120px;
  font-size: .82rem;
  font-weight: 600;
  color: #5c4054;
}
.v54McqControls select {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
}
.v54McqPreview {
  margin-top: 14px;
}
.v54McqTopline,
.v54McqActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(141, 0, 103,.14);
}
.v54McqCards {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}
.v54McqCard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(30, 4, 23,.1);
  background: rgba(255,255,255,.94);
}
.v54McqCardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.v54McqCardTop strong {
  color: var(--navy);
}
.v54McqCard textarea {
  min-height: 72px;
}
.v54OptionGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.v54McqMiniPreview {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fcf8fb;
  border: 1px dashed rgba(184, 32, 143,.28);
}
.v54QuizQuestionList {
  display: grid;
  gap: 16px;
}
.v54QuizQuestion {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(30, 4, 23,.08);
}
.v54QuizQuestionTop {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.v54QuizQuestionTop span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(184, 32, 143,.1);
  color: #7d005b;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.v54QuizResults {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(30, 4, 23,.08);
}
.v54QuizResultGrid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.v54QuizResultItem {
  padding: 10px 12px;
  border-radius: 14px;
  display: grid;
  gap: 4px;
}
.v54QuizResultItem.good {
  background: rgba(220,252,231,.75);
  color: #166534;
}
.v54QuizResultItem.bad {
  background: rgba(254,242,242,.82);
  color: #991b1b;
}
.v54QuizResultItem span {
  font-weight: 600;
}
@media (max-width: 820px) {
  .v54McqHeader { grid-template-columns: 1fr; }
  .v54OptionGrid { grid-template-columns: 1fr; }
}

/* V57/V58 learner experience foundation */
.v57ExperiencePanel {
  margin: 22px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(184, 32, 143, 0.16);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(250, 235, 246,.92));
  box-shadow: 0 24px 70px rgba(30, 4, 23, 0.08);
  display: grid;
  gap: 18px;
}
.v57SmartBlocks { margin-top: 0; }
.v57OutcomeCard { background: linear-gradient(135deg, #fff, #fff8fd); }
.v57TheoryDrawer {
  border: 1px solid rgba(30, 4, 23, 0.1);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  padding: 0;
  overflow: hidden;
}
.v57TheoryDrawer summary {
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.v57TheoryDrawer summary::-webkit-details-marker { display: none; }
.v57TheoryDrawer summary small { color: #7b5f73; font-weight: 600; }
.v57TheoryBody {
  border-top: 1px solid rgba(30, 4, 23, 0.08);
  padding: 18px 20px 22px;
  color: #482d41;
  line-height: 1.75;
  white-space: pre-line;
}
.v57QuizResultItem strong {
  display: block;
  margin: 8px 0;
  color: #1e0417;
  font-size: .94rem;
  line-height: 1.45;
}
.v57QuizResultItem small {
  display: block;
  margin-top: 5px;
  line-height: 1.55;
}
.v54MultiQuiz {
  border: 1px solid rgba(141, 0, 103, 0.18);
  box-shadow: 0 26px 70px rgba(94, 0, 69, 0.10);
}
.v54QuizQuestionTop strong {
  line-height: 1.45;
}
@media (max-width: 760px) {
  .v57TheoryDrawer summary { align-items: flex-start; flex-direction: column; }
}

/* V58 experience-based learner interface */
.v58ExperienceHub,
.v58PracticeStudio,
.v58SelfCheck {
  margin: 22px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 30px;
  border: 1px solid rgba(30, 4, 23, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 58px rgba(50, 0, 37, 0.10);
}
.v58ExperienceHub {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 218, 130, 0.42), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(230, 183, 217, 0.54), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(252, 248, 251,.90));
  overflow: hidden;
}
.v58PracticeStudio {
  background:
    radial-gradient(circle at top right, rgba(255, 228, 220, .50), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,251,235,.88));
}
.v58PracticeGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.v58PracticeCard {
  padding: 18px;
  min-height: 210px;
  border-radius: 24px;
  border: 1px solid rgba(50, 0, 37,.10);
  background: rgba(255,255,255,.80);
  display: grid;
  align-content: start;
  gap: 8px;
}
.v58PracticeCard.primary {
  background: linear-gradient(135deg, rgba(50, 0, 37,.96), rgba(144, 0, 105,.88));
  color: white;
}
.v58PracticeCard span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(50, 0, 37,.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.v58PracticeCard.primary span {
  background: rgba(255,255,255,.16);
  color: white;
}
.v58PracticeCard strong {
  color: var(--navy);
  font-size: 1.08rem;
}
.v58PracticeCard.primary strong {
  color: white;
}
.v58PracticeCard p {
  margin: 0;
  color: #5c4054;
  line-height: 1.62;
}
.v58PracticeCard.primary p {
  color: rgba(255,255,255,.84);
}
.v58PracticeActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.v58SelfCheck {
  background:
    radial-gradient(circle at 0% 0%, rgba(220,252,231,.62), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(251, 238, 248,.90));
}
.v58CheckGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.v58CheckItem {
  text-align: left;
  min-height: 130px;
  padding: 16px;
  border: 1px solid rgba(50, 0, 37,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  color: #482d41;
  font-weight: 600;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v58CheckItem span {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(184, 32, 143,.10);
  color: #7d005b;
  font-weight: 600;
}
.v58CheckItem.done {
  background: #ecfdf5;
  color: #5f0647;
  border-color: rgba(95, 6, 71,.20);
}
.v58CheckItem.done span {
  background: #780459;
  color: white;
}
.v58PracticeActions .button.ghost {
  background: rgba(255,255,255,.72);
}
@media (max-width: 1120px) {
  .v58CheckGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v58PracticeGrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .v58ExperienceHub,
  .v58PracticeStudio,
  .v58SelfCheck {
    margin: 14px;
  }
  .v58CheckGrid {
    grid-template-columns: 1fr;
  }
  .v58PracticeActions .button {
    width: 100%;
  }
}

/* V59 premium learner journey */
.v59ChecklistItem {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  color: white;
  font-weight: 600;
}
.v59ChecklistItem span {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.42);
}
.v59ChecklistItem.done {
  background: rgba(185, 16, 140,.18);
  border-color: rgba(185, 16, 140,.42);
}
.v59ChecklistItem.done span {
  background: #b9108c;
  border-color: #b9108c;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.86);
}
.v59ActionDock {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(50, 0, 37,.10);
}
.v59ActionDock button {
  border: 1px solid rgba(50, 0, 37,.10);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 600;
  font-size: 13px;
}
.v59ActionDock button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.v51LearnerUnitCard {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}
.v51LearnerUnitCard span {
  min-width: 0;
}
.v51LearnerUnitCard em {
  justify-self: start;
  margin-top: 2px;
}
@media (max-width: 820px) {
  .v59ActionDock {
    position: static;
  }
}
.unitViewer.v36ReaderPanel {
  overflow: visible;
}

/* V59.1: PDF/document readability refinement */
.v59ReadableDocument {
  max-height: 560px;
  overflow: auto;
  background: linear-gradient(180deg, #ffffff, #fffbfe);
  font-size: 15px;
  line-height: 1.72;
}
.v59ReadableDocument p {
  margin: 0 0 12px;
  color: #482d41;
  font-size: 15px;
  line-height: 1.72;
  white-space: normal;
  max-width: 82ch;
}
.v59ReadableDocument p:last-child {
  margin-bottom: 0;
}
.v59DocumentFade {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9e9f5;
  color: #7d005b !important;
  font-weight: 600;
}
.v59ResourceHeader strong {
  font-size: 1rem;
  color: var(--navy);
}
.v59PdfResourceCard {
  max-width: 920px;
  width: 100%;
}
.v59PdfPreviewShell {
  overflow: hidden;
  border: 1px solid rgba(30, 4, 23, 0.10);
  border-radius: 18px;
  background: #fcf8fb;
}
.v59PdfPreviewTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 4, 23, 0.08);
  background: #ffffff;
}
.v59PdfPreviewTop strong {
  color: var(--navy);
  font-size: 0.95rem;
}
.v59PdfPreviewTop span {
  color: #7b5f73;
  font-size: 0.82rem;
  font-weight: 600;
}
.v59PdfFrame {
  display: block;
  min-height: 330px;
  height: 42vh;
  max-height: 430px;
  border: 0;
  border-radius: 0;
}
.v36ResourceGrid:has(.v59PdfResourceCard) {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 760px) {
  .v59ReadableDocument {
    max-height: 470px;
    font-size: 14.5px;
  }
  .v59ReadableDocument p {
    font-size: 14.5px;
  }
  .v59PdfFrame {
    min-height: 280px;
    height: 36vh;
  }
}

/* V60: Adaptive Learner Profile */
.v60ProfileEditBtn {
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.v60DiagnosticIntro h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}
.v60DiagnosticIntro p {
  margin: 0;
  color: #5c4054;
  line-height: 1.65;
  max-width: 820px;
}
.v60DiagnosticIntro {
  padding: clamp(20px, 3vw, 34px);
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 95% 10%, rgba(186, 36, 146,.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #faeaf6);
  border: 1px solid rgba(186, 36, 146,.14);
  border-bottom: 0;
}
.v60DiagnosticForm {
  border-radius: 0 0 30px 30px;
  border: 1px solid rgba(186, 36, 146,.14);
  border-top: 0;
  background: rgba(255,255,255,.96);
}
.v60DiagnosticForm .v60Wide {
  grid-column: 1 / -1;
}
.v60DiagnosticForm textarea,
.v60DiagnosticForm input,
.v60DiagnosticForm select {
  font-size: 15px;
}
.v60DiagnosticActions {
  border-top: 1px solid rgba(30, 4, 23,.08);
  padding-top: 14px;
}
.v60UnitNudge {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(186, 36, 146, .08);
  color: #7b005a !important;
  font-weight: 600;
}
.v60TutorPanel {
  border-color: rgba(155, 0, 113,.18);
}

/* V61 Smart Assessment and Feedback Engine */
.v61SubmitQuizBtn {
  box-shadow: 0 12px 24px rgba(186, 36, 146, .18);
}
.v61QuizResults {
  margin-top: 18px;
}
.v61SmartFeedbackPanel {
  margin: 6px 0 22px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 30px;
  border: 1px solid rgba(186, 36, 146, .20);
  background:
    radial-gradient(circle at top right, rgba(236, 191, 224, .78), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(251, 238, 248,.94));
  box-shadow: 0 24px 62px rgba(30, 4, 23, .12);
}
.v61SmartFeedbackPanel.secure {
  border-color: rgba(34, 197, 94, .24);
  background:
    radial-gradient(circle at top right, rgba(187, 247, 208, .72), transparent 34%),
    linear-gradient(135deg, #ffffff, #f0fdf4);
}
.v61SmartFeedbackPanel.partial,
.v61SmartFeedbackPanel.needs_revision,
.v61SmartFeedbackPanel.guided,
.v61SmartFeedbackPanel.restart {
  border-color: rgba(234, 166, 0, .24);
  background:
    radial-gradient(circle at top right, rgba(254, 240, 138, .58), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff7ed);
}
.v61SmartFeedbackHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.v61SmartFeedbackHeader h3 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.03em;
}
.v61SmartFeedbackHeader p {
  color: #5c4054;
  line-height: 1.65;
  margin: 0;
}
.v61ScoreDial {
  padding: 18px;
  border-radius: 26px;
  background: #1e0417;
  color: white;
  text-align: center;
  box-shadow: 0 18px 38px rgba(30, 4, 23, .20);
}
.v61ScoreDial strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.v61ScoreDial span,
.v61ScoreDial small {
  display: block;
  color: rgba(255,255,255,.78);
  font-weight: 600;
  margin-top: 7px;
}
.v61FeedbackGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.v61FeedbackCard {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(30, 4, 23, .08);
  box-shadow: 0 12px 30px rgba(30, 4, 23, .06);
}
.v61FeedbackCard > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  background: rgba(186, 36, 146, .12);
  color: #7b005a;
  font-weight: 600;
  margin-bottom: 10px;
}
.v61FeedbackCard strong {
  display: block;
  color: #1e0417;
  font-size: 17px;
  margin-bottom: 8px;
}
.v61FeedbackCard ul,
.v61FeedbackCard ol {
  margin: 0;
  padding-left: 19px;
  color: #5c4054;
  line-height: 1.58;
}
.v61FeedbackCard li + li {
  margin-top: 8px;
}
.v61FeedbackCard small {
  display: block;
  margin-top: 4px;
  color: #7b5f73;
  font-weight: 600;
}
.v61FeedbackCard.strength > span {
  background: rgba(34, 197, 94, .14);
  color: #15803d;
}
.v61FeedbackCard.weakness > span {
  background: rgba(234, 166, 0, .16);
  color: #92400e;
}
.v61FeedbackCard.route > span {
  background: rgba(155, 0, 113, .14);
  color: #740055;
}
.v61FeedbackActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.v61NextStep {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(30, 4, 23, .06);
  color: #482d41;
  line-height: 1.5;
}
.v61QuestionReview {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(30, 4, 23,.08);
}
.v61QuestionReview > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 18px;
}
@media (max-width: 1100px) {
  .v61FeedbackGrid {
    grid-template-columns: 1fr;
  }
  .v61SmartFeedbackHeader {
    grid-template-columns: 1fr;
  }
  .v61ScoreDial {
    max-width: 240px;
  }
}
@media (max-width: 720px) {
  .v61FeedbackActions .button {
    width: 100%;
  }
  .v61ScoreDial {
    max-width: none;
  }
}

/* V62 - Learner Portfolio and Progress Intelligence */
.v62PortfolioPanel {
  margin-top: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(186, 36, 146, .18), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(168, 0, 123, .14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(252, 248, 251,.92));
  border: 1px solid rgba(30, 4, 23,.08);
}
.v62MetricGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.v62MetricGrid article,
.v62InsightCard,
.v62TimelineCard,
.v62UnitsCard,
.v62EvidenceTriptych article {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(30, 4, 23,.08);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(30, 4, 23,.07);
}
.v62MetricGrid article {
  padding: 16px;
}
.v62MetricGrid span {
  display: block;
  color: #7b5f73;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.v62MetricGrid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #1e0417;
}
.v62MetricGrid small {
  display: block;
  margin-top: 6px;
  color: #7b5f73;
  font-weight: 600;
}
.v62PortfolioGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.v62InsightCard {
  padding: 18px;
}
.v62InsightCard > div {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.v62InsightCard > div span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(186, 36, 146, .12);
  color: #7b005a;
  font-weight: 600;
}
.v62InsightCard strong,
.v62SectionHeader h3,
.v62EvidenceTriptych h3 {
  color: #1e0417;
}
.v62InsightCard ul {
  margin: 0;
  padding-left: 20px;
  color: #5c4054;
  line-height: 1.55;
}
.v62InsightCard li + li {
  margin-top: 8px;
}
.v62InsightCard p,
.v62Muted {
  color: #7b5f73;
  line-height: 1.55;
}
.v62InsightCard.strong > div span {
  background: rgba(34,197,94,.14);
  color: #15803d;
}
.v62InsightCard.weak > div span {
  background: rgba(234, 166, 0,.18);
  color: #92400e;
}
.v62InsightCard.next > div span {
  background: rgba(155, 0, 113,.14);
  color: #740055;
}
.v62EvidenceLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
}
.v62TimelineCard,
.v62UnitsCard {
  padding: 18px;
}
.v62SectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.v62SectionHeader h3,
.v62EvidenceTriptych h3 {
  margin: 2px 0 0;
  letter-spacing: -0.03em;
}
.v62Timeline,
.v62UnitEvidenceList {
  display: grid;
  gap: 10px;
}
.v62TimelineItem,
.v62UnitEvidenceItem {
  width: 100%;
  border: 1px solid rgba(30, 4, 23,.08);
  background: rgba(252, 248, 251,.88);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.v62TimelineItem:hover,
.v62UnitEvidenceItem:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30, 4, 23,.08);
  border-color: rgba(186, 36, 146,.24);
}
.v62TimelineItem > span {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7ddf0;
  font-size: 18px;
}
.v62TimelineItem strong,
.v62UnitEvidenceItem strong,
.v62MiniEvidence strong {
  display: block;
  color: #1e0417;
}
.v62TimelineItem small,
.v62UnitEvidenceItem small,
.v62MiniEvidence span {
  display: block;
  margin-top: 4px;
  color: #7b5f73;
  font-weight: 600;
  line-height: 1.42;
}
.v62UnitEvidenceItem {
  justify-content: space-between;
}
.v62UnitEvidenceItem > span {
  min-width: 58px;
  text-align: center;
  padding: 9px 10px;
  border-radius: 14px;
  background: #f8e5f3;
  color: #740055;
  font-weight: 600;
}
.v62EvidenceTriptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.v62EvidenceTriptych article {
  padding: 18px;
}
.v62MiniEvidence {
  padding: 12px 0;
  border-top: 1px solid rgba(30, 4, 23,.08);
}
.v62MiniEvidence:first-of-type {
  border-top: 0;
}
@media (max-width: 1180px) {
  .v62MetricGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .v62PortfolioGrid,
  .v62EvidenceLayout,
  .v62EvidenceTriptych {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .v62MetricGrid {
    grid-template-columns: 1fr;
  }
  .v62SectionHeader {
    display: block;
  }
  .v62SectionHeader .button {
    margin-top: 10px;
    width: 100%;
  }
}

/* V63 Admin Analytics Dashboard */
.v63AnalyticsPanel {
  overflow: hidden;
  border: 1px solid rgba(30, 4, 23,.08);
  background:
    radial-gradient(circle at top left, rgba(166, 0, 122,.14), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(168, 0, 123,.14), transparent 32%),
    rgba(255,255,255,.96);
}
.v63AnalyticsHeader {
  align-items: center;
}
.v63AnalyticsContent {
  display: grid;
  gap: 18px;
}

/* V64 Course Builder and Module Structure */
.v64LearnerModuleHeader small {
  display: block;
  margin-top: 4px;
  color: #7b5f73;
  line-height: 1.35;
}
.v64LearnerPathwayList { gap: 12px; }
.v64LearnerUnitCard {
  position: relative;
  border-left: 4px solid rgba(184, 20, 140,0.35);
}
.v64LearnerUnitCard.lockedUnitCard {
  opacity: 0.68;
  cursor: not-allowed;
  border-left-color: rgba(171, 141, 163,0.55);
  background: linear-gradient(135deg, rgba(252, 248, 251,0.94), rgba(249, 241, 247,0.94));
}
.v64LearnerUnitCard.lockedUnitCard em {
  background: rgba(123, 95, 115,0.12);
  color: #5c4054;
}

/* V65 Multi-Resource Learning Uploads */
.v65ResourcePickerPreview,
.v65ResourceMiniPreview {
  border: 1px dashed rgba(186, 36, 146, 0.32);
  border-radius: 18px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(186, 36, 146,0.08), rgba(155, 0, 113,0.06));
  color: #482d41;
  line-height: 1.45;
}
.v65PickedResourceList,
.v65ResourceSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.v65PickedResourceList span,
.v65ResourceSummary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.86);
  color: #301529;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 4, 23,0.06);
}
.v65PickedResourceList b {
  color: #760f5a;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v65PickerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tinyButton {
  padding: 7px 10px !important;
  min-height: 0 !important;
  font-size: 0.78rem !important;
}
.v65RemoveFile {
  line-height: 1;
}
.v65RemoveFile:hover {
  background: rgba(239, 68, 68, 0.20);
}
.v65ResourceMiniPreview {
  margin: 10px 0;
  background: linear-gradient(135deg, rgba(184, 20, 140,0.10), rgba(234, 166, 0,0.07));
}
.v65ResourceMiniPreview strong { display: block; color: #1e0417; margin-bottom: 4px; }
.v65ResourceMiniPreview p { margin: 0; color: #5c4054; }
.v65ResourceStudio {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(253, 240, 250,0.74));
  border-color: rgba(184, 20, 140,0.20);
}
.v65ResourceGrid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.v65ResourceCard {
  overflow: hidden;
  border: 1px solid rgba(30, 4, 23,0.08);
  background: rgba(255,255,255,0.94);
}
.v65ResourceHeader {
  display: grid;
  gap: 7px;
}
.v65ResourceBadge {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(30, 4, 23,0.08);
  color: #482d41;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.v65AvatarResourceCard .v65ResourceBadge {
  background: rgba(141, 0, 103,0.12);
  color: #6d0050;
}
.v65ResourceImage {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 16px;
  background: #fcf8fb;
  border: 1px solid rgba(30, 4, 23,0.06);
}
.v65ResourceVideo,
.v65ResourceAudio {
  width: 100%;
  border-radius: 16px;
  background: #1e0417;
}
.v65ResourceAudio {
  padding: 10px;
  background: rgba(30, 4, 23,0.06);
}
.v65FilePreview {
  min-height: 140px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(186, 36, 146,0.12), transparent 32%),
    linear-gradient(135deg, rgba(252, 248, 251,0.98), rgba(255,255,255,0.9));
  border: 1px solid rgba(30, 4, 23,0.08);
}
.v65FilePreview strong {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #1e0417;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.v65FilePreview span {
  color: #5c4054;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .v65ResourceGrid { grid-template-columns: 1fr; }
}

/* V65.2 clean professional admin/learner refinements */
.v652CleanAdmin .portalShell { gap: 22px; }
.v652BuilderGrid { align-items: start; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); }
.v652CreateCard { border: 1px solid rgba(50, 0, 37,.1); box-shadow: 0 24px 60px rgba(50, 0, 37,.08); }
.v652PanelHeader { padding-bottom: 10px; border-bottom: 1px solid rgba(50, 0, 37,.08); }
.v652LessonForm { gap: 18px; }
.v652StepCard { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(50, 0, 37,.1); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,255,.92)); }
.v652StepTitle { display: flex; align-items: center; gap: 12px; }
.v652StepTitle > span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #320025; color: #fff; font-weight: 600; box-shadow: 0 12px 22px rgba(50, 0, 37,.18); }
.v652StepTitle strong { display: block; color: var(--navy); font-size: 17px; }
.v652StepTitle small { display: block; color: var(--muted); margin-top: 2px; font-weight: 600; }
.v652CurriculumFields { grid-template-columns: repeat(3, minmax(0,1fr)); }
.v652UploadChoice { padding: 0; background: transparent; border: 0; box-shadow: none; }
.v652ResourceCard { background: linear-gradient(145deg, rgba(255, 246, 253,.98), rgba(255,255,255,.96)); }
.v652OptionalTools { margin: 0; border: 1px solid rgba(50, 0, 37,.1); border-radius: 24px; background: #fff; }
.v652OptionalTools > summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 18px; }
.v652OptionalTools[open] > summary { border-bottom: 1px solid rgba(50, 0, 37,.08); }
.v652OptionalTools .v42AiBuilderCard, .v652OptionalTools .v54McqBuilderCard { margin: 16px; }
.v652PublishButton { min-height: 58px; font-size: 17px; border-radius: 18px; }
.v652LibraryHeader .headerActions { flex-wrap: wrap; }
.dangerButton { background: #f8eef5 !important; color: #9f1239 !important; border: 1px solid rgba(225,29,72,.25) !important; box-shadow: none !important; }
.dangerButton:hover { background: #f1dfec !important; transform: translateY(-1px); }
.v652LibraryPanel { border-color: rgba(50, 0, 37,.1); }
.v652AnalyticsDetails { overflow: hidden; }
.v652AnalyticsDetails > summary { cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--navy); }
.v652AnalyticsDetails > summary span { color: var(--muted); font-size: 13px; font-weight: 600; }
.v652AnalyticsDetails[open] > summary { border-bottom: 1px solid rgba(50, 0, 37,.08); }
.v65PickedResourceList span { align-items: center; }
.v65RemoveFile { border: 0; border-radius: 999px; background: #fee2e2; color: #9f1239; font-weight: 600; width: 22px; height: 22px; margin-left: 6px; cursor: pointer; }
.v652CleanAdmin .technicalPanel { opacity: .95; }
.v652CompactPath { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 18px; border:1px solid rgba(50, 0, 37,.1); border-radius:22px; background:rgba(255,255,255,.95); }
.v652CompactPath strong { color:var(--navy); }
.v652CompactPath span { color:var(--muted); font-weight: 600; font-size:13px; }
.v652CompactPath button { white-space:nowrap; }

@media (max-width: 1050px) {
  .v652BuilderGrid { grid-template-columns: 1fr; }
  .v652CurriculumFields { grid-template-columns: 1fr; }
}

/* V66 Learning Media Studio */
.v66MediaStudio {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(50, 0, 37, 0.10) !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255, 241, 251,0.96)) !important;
  box-shadow: 0 24px 70px rgba(50, 0, 37,0.08);
}
.v66StudioHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(50, 0, 37,0.08);
  background:
    radial-gradient(circle at top left, rgba(186, 36, 146,0.12), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,255,0.92));
}
.v66StudioHero h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v66StudioHero .smallHelp { max-width: 760px; }
.v66StudioStats {
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 22px;
  text-align: center;
  background: #320025;
  color: #fff;
  box-shadow: 0 18px 38px rgba(50, 0, 37,0.18);
}
.v66StudioStats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}
.v66StudioStats span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 600;
}
.v66StartPanel {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.35fr);
  gap: 18px;
  margin: 22px;
  padding: 18px;
  border: 1px solid rgba(184, 20, 140,0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(253, 240, 250,0.95), rgba(255,255,255,0.98));
}
.v66StartCopy {
  display: grid;
  align-content: start;
  gap: 10px;
}
.v66StartCopy strong {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}
.v66StartChip {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(184, 20, 140,0.13);
  color: #760f5a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  font-weight: 600;
}
.v66StartPreview .v59PdfPreviewShell,
.v66StartPreview .v65FilePreview,
.v66StartPreview .v65ResourceImage,
.v66StartPreview .v65ResourceVideo,
.v66StartPreview .v65ResourceAudio {
  margin: 0;
}
.v66StartPreview .v59PdfFrame { min-height: 330px; }
.v66StartPreview .v65ResourceVideo { max-height: 380px; }
.v66ResourceSummary {
  margin: 0 22px 16px !important;
}
.v66MediaTabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 18px;
}
.v66MediaTabs span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(50, 0, 37,0.08);
  background: rgba(255,255,255,0.88);
  color: #482d41;
  font-weight: 600;
}
.v66MediaTabs b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(50, 0, 37,0.08);
  color: var(--navy);
  font-size: 0.82rem;
}
.v66MediaTabs .emptyResources {
  opacity: 0.48;
}
.v66MediaTabs .hasResources {
  border-color: rgba(186, 36, 146,0.20);
  box-shadow: 0 12px 28px rgba(186, 36, 146,0.07);
}
.v66MediaGroups {
  display: grid;
  gap: 14px;
  padding: 0 22px 24px;
}
.v66MediaGroup {
  border: 1px solid rgba(50, 0, 37,0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  overflow: hidden;
}
.v66MediaGroup > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  color: var(--navy);
  font-weight: 600;
}
.v66MediaGroup > summary::-webkit-details-marker { display: none; }
.v66MediaGroup > summary small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.v66MediaGroup[open] > summary {
  border-bottom: 1px solid rgba(50, 0, 37,0.08);
  background: linear-gradient(135deg, rgba(248,250,255,0.98), rgba(255,255,255,0.95));
}
.v66GroupHelp {
  margin: 14px 18px 0;
}
.v66ResourceGrid {
  padding: 16px 18px 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.v66MediaCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(50, 0, 37,0.06);
}
.v66FeaturedResource {
  border-color: rgba(184, 20, 140,0.22) !important;
}
.v66ResourceHeader strong {
  line-height: 1.3;
  color: var(--navy);
}
.v66TypeBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v66TypeBadge b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #320025;
  color: #fff;
  font-size: 0.68rem;
}
.v66ResourceActions {
  padding-top: 2px;
}
.v66MediaCard .v59PdfFrame { min-height: 320px; }
.v66MediaCard .v65ResourceImage { max-height: 260px; }
.v66MediaCard .v65ResourceVideo { max-height: 300px; }
@media (max-width: 900px) {
  .v66StudioHero { flex-direction: column; align-items: stretch; }
  .v66StudioStats { width: 100%; }
  .v66StartPanel { grid-template-columns: 1fr; margin: 16px; }
  .v66MediaTabs { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 0 16px 16px; }
  .v66ResourceSummary { margin: 0 16px 16px !important; }
  .v66MediaGroups { padding: 0 16px 18px; }
}
@media (max-width: 560px) {
  .v66StudioHero { padding: 18px; }
  .v66StudioHero h4 { font-size: 1.12rem; }
  .v66MediaTabs { grid-template-columns: 1fr; }
}

/* V67 Premium Beauty Enhancement - final visual polish layer */
:root {
  --v67-ink: #260b1f;
  --v67-navy: #2b001f;
  --v67-blue: #b8208f;
  --v67-teal: #b8148c;
  --v67-gold: #d69d28;
  --v67-bg: #f6f8fc;
  --v67-soft: #faeaf6;
  --v67-card: rgba(255,255,255,0.92);
  --v67-border: rgba(30, 4, 23,0.09);
  --v67-shadow: 0 18px 48px rgba(30, 4, 23,0.09);
  --v67-soft-shadow: 0 10px 30px rgba(30, 4, 23,0.06);
}

body.v67Premium {
  color: var(--v67-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(214, 157, 40,0.16), transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(184, 32, 143,0.13), transparent 30%),
    radial-gradient(circle at 60% 98%, rgba(184, 20, 140,0.11), transparent 32%),
    linear-gradient(135deg, #fbfcff 0%, #f6f8fc 48%, #fff8fd 100%) !important;
  letter-spacing: -0.005em;
}

body.v67Premium::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(30, 4, 23,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 4, 23,0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.06));
}

.v67Premium .portalTopbar {
  padding: 12px 24px;
  background: rgba(255,255,255,0.86) !important;
  border-bottom: 1px solid rgba(30, 4, 23,0.08) !important;
  box-shadow: 0 10px 28px rgba(30, 4, 23,0.045);
  backdrop-filter: blur(22px);
}

.v67Premium .portalBrand { gap: 13px; }
.v67Premium .logoMark {
  background: linear-gradient(135deg, #2b001f 0%, #b8208f 56%, #b8148c 100%) !important;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(184, 32, 143,0.18);
}
.v67Premium .portalBrand strong { font-size: 15px; letter-spacing: -0.01em; }
.v67Premium .portalBrand span { font-size: 12.5px; color: #785c70; }

.v67Premium .portalShell,
.v67Premium .cleanShell,
.v67Premium .v36Shell {
  width: min(1360px, 100%);
  padding: clamp(18px, 2.4vw, 32px);
}

.v67Premium h1,
.v67Premium h2,
.v67Premium h3,
.v67Premium h4 {
  color: var(--v67-navy) !important;
  letter-spacing: -0.035em;
}
.v67Premium h1 {
  font-size: clamp(34px, 4.8vw, 58px) !important;
  line-height: 1.02 !important;
  margin: 12px 0 12px !important;
}
.v67Premium h2 {
  font-size: clamp(24px, 3.2vw, 38px) !important;
  line-height: 1.08 !important;
}
.v67Premium h3 { line-height: 1.14; }
.v67Premium .lead {
  max-width: 900px;
  font-size: clamp(16px, 1.65vw, 20px) !important;
  line-height: 1.62;
  color: #5b4054;
}
.v67Premium .eyebrow {
  color: #9a6c00;
  letter-spacing: 0.13em;
  font-size: 11px;
}
.v67Premium .smallHelp,
.v67Premium p { color: #765a6e; }

.v67Premium .panel,
.v67Premium .courseCard,
.v67Premium .unitViewer {
  border: 1px solid var(--v67-border) !important;
  background: rgba(255,255,255,0.88) !important;
  box-shadow: var(--v67-shadow) !important;
  backdrop-filter: blur(16px);
}

.v67Premium .statusPill {
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  background: rgba(255,255,255,0.84) !important;
  color: #3a1330 !important;
  box-shadow: var(--v67-soft-shadow) !important;
}

.v67Premium .button,
.v67Premium .navButton {
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(43, 0, 31,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.v67Premium .button:not(.secondary):not(.ghost):not(.dangerButton),
.v67Premium .navButton:not(.secondary) {
  background: linear-gradient(135deg, #2b001f, #80005e) !important;
}
.v67Premium .button:hover,
.v67Premium .navButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(43, 0, 31,0.16);
}
.v67Premium .button.secondary,
.v67Premium .navButton.secondary,
.v67Premium .button.ghost {
  background: rgba(255,255,255,0.9) !important;
  color: var(--v67-navy) !important;
  border: 1px solid rgba(30, 4, 23,0.10) !important;
  box-shadow: 0 8px 20px rgba(30, 4, 23,0.045) !important;
}
.v67Premium .dangerButton {
  background: #f8eef5 !important;
  color: #9f1239 !important;
  border-color: rgba(225,29,72,0.20) !important;
}

.v67Premium input,
.v67Premium textarea,
.v67Premium select {
  border-radius: 17px;
  border: 1px solid rgba(30, 4, 23,0.11) !important;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.v67Premium textarea { min-height: 112px; }
.v67Premium input:focus,
.v67Premium textarea:focus,
.v67Premium select:focus {
  border-color: rgba(184, 32, 143,0.55) !important;
  box-shadow: 0 0 0 4px rgba(184, 32, 143,0.10) !important;
}
.v67Premium label { color: #34102a; font-weight: 600; }

/* Admin: cleaner lesson builder */
.v67Premium .v652BuilderGrid {
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.62fr);
  gap: 22px;
}
.v67Premium .v652CreateCard,
.v67Premium .v652LibraryPanel {
  border-radius: 30px !important;
}
.v67Premium .v652PanelHeader,
.v67Premium .v652LibraryHeader,
.v67Premium .panelHeader.noStepHeader {
  border-bottom: 1px solid rgba(30, 4, 23,0.07) !important;
}
.v67Premium .v652StepCard {
  position: relative;
  padding: 20px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.92)) !important;
  box-shadow: 0 10px 26px rgba(30, 4, 23,0.045);
}
.v67Premium .v652StepCard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v67-blue), var(--v67-teal));
}
.v67Premium .v652StepTitle > span {
  background: linear-gradient(135deg, #2b001f, #b8208f) !important;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(184, 32, 143,0.16);
}
.v67Premium .v652StepTitle strong { font-size: 18px; letter-spacing: -0.015em; }
.v67Premium .v652StepTitle small { color: #7f6377; }
.v67Premium .v652UploadChoice,
.v67Premium .uploadChoice { gap: 14px; }
.v67Premium .orDivider {
  color: #9e8096;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.v67Premium .v65ResourcePickerPreview,
.v67Premium .emptyState {
  border-radius: 22px;
  border-color: rgba(30, 4, 23,0.11) !important;
  background: linear-gradient(135deg, rgba(252, 248, 251,0.92), rgba(255,255,255,0.82)) !important;
}
.v67Premium .v65PickedResourceList span {
  border: 1px solid rgba(30, 4, 23,0.08);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 7px 18px rgba(30, 4, 23,0.05);
}
.v67Premium .v652PublishButton {
  min-height: 60px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #1e0417, #7d005b, #940d70) !important;
  box-shadow: 0 18px 42px rgba(125, 0, 91,0.22) !important;
}
.v67Premium .v38AdminPreviewBox,
.v67Premium .v652CompactPath {
  border-color: rgba(30, 4, 23,0.08) !important;
  background: rgba(255,255,255,0.88) !important;
  box-shadow: 0 10px 24px rgba(30, 4, 23,0.045);
}

/* Learner: calmer pathway and reader */
.v67Premium .learnerLearningLayout {
  grid-template-columns: minmax(300px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
}
.v67Premium .v36CoursePanel,
.v67Premium .v36ReaderPanel,
.v67Premium .unitViewer {
  border-radius: 30px !important;
}
.v67Premium .v36CoursePanel {
  top: 84px;
  background: rgba(255,255,255,0.86) !important;
}
.v67Premium .v36LearnerCourseCard,
.v67Premium .learnerCourseCard {
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 9px 24px rgba(30, 4, 23,0.055) !important;
}
.v67Premium .lessonOpenCard {
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  border-radius: 18px !important;
  background: rgba(252, 248, 251,0.92) !important;
  box-shadow: none !important;
}
.v67Premium .lessonOpenCard:hover,
.v67Premium .activeLessonCard {
  border-color: rgba(184, 20, 140,0.45) !important;
  background: linear-gradient(135deg, rgba(253, 240, 250,0.96), rgba(250, 235, 246,0.96)) !important;
  box-shadow: 0 12px 28px rgba(184, 20, 140,0.11) !important;
}
.v67Premium .lessonOpenCard em,
.v67Premium .activeLessonCard em {
  background: linear-gradient(135deg, #760f5a, #b8208f) !important;
}
.v67Premium .contentBlocks { gap: 18px; }
.v67Premium .contentBlock,
.v67Premium .v36ContentBlock,
.v67Premium .v43VisualSection,
.v67Premium .v46TutorPanel,
.v67Premium .quizBox,
.v67Premium .v37CompletionPanel,
.v67Premium .v61SmartFeedbackPanel,
.v67Premium .v62PortfolioPanel {
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 12px 32px rgba(30, 4, 23,0.06) !important;
}
.v67Premium .contentBlock p { color: #472c40; line-height: 1.72; }

/* Learner media studio: premium resource presentation */
.v67Premium .v66MediaStudio {
  border-radius: 30px !important;
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255, 244, 252,0.96)) !important;
  box-shadow: 0 22px 58px rgba(30, 4, 23,0.08) !important;
}
.v67Premium .v66StudioHero {
  padding: 24px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 20, 140,0.15), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(214, 157, 40,0.16), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250, 235, 246,0.94)) !important;
}
.v67Premium .v66StudioHero h4 {
  font-size: clamp(21px, 2vw, 30px) !important;
  letter-spacing: -0.035em;
}
.v67Premium .v66StudioStats {
  border-radius: 24px;
  background: linear-gradient(135deg, #2b001f, #b8208f) !important;
  box-shadow: 0 18px 42px rgba(184, 32, 143,0.20);
}
.v67Premium .v66StartPanel {
  margin: 22px;
  border-radius: 28px;
  border: 1px solid rgba(184, 20, 140,0.18) !important;
  background:
    linear-gradient(135deg, rgba(253, 240, 250,0.96), rgba(255,255,255,0.98)) !important;
  box-shadow: 0 14px 34px rgba(184, 20, 140,0.07);
}
.v67Premium .v66StartChip {
  background: rgba(184, 20, 140,0.14) !important;
  color: #760f5a !important;
}
.v67Premium .v66MediaTabs {
  padding: 0 22px 18px;
  gap: 12px;
}
.v67Premium .v66MediaTabs span {
  min-height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  box-shadow: 0 9px 22px rgba(30, 4, 23,0.045);
}
.v67Premium .v66MediaTabs .hasResources b {
  background: linear-gradient(135deg, #2b001f, #940d70) !important;
  color: white !important;
}
.v67Premium .v66MediaGroup {
  border-radius: 24px;
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 10px 28px rgba(30, 4, 23,0.045);
}
.v67Premium .v66MediaGroup > summary {
  padding: 18px 20px;
}
.v67Premium .v66MediaGroup[open] > summary {
  background: linear-gradient(135deg, rgba(252, 248, 251,0.98), rgba(250, 237, 247,0.96)) !important;
}
.v67Premium .v66ResourceGrid { gap: 16px; }
.v67Premium .v66MediaCard,
.v67Premium .v65ResourceCard,
.v67Premium .resourceCard {
  border: 1px solid rgba(30, 4, 23,0.08) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 12px 30px rgba(30, 4, 23,0.06) !important;
}
.v67Premium .v66TypeBadge b,
.v67Premium .v65FilePreview strong {
  background: linear-gradient(135deg, #2b001f, #b8208f) !important;
}
.v67Premium .v65ResourceImage,
.v67Premium .v65ResourceVideo,
.v67Premium .v65ResourceAudio,
.v67Premium .v59PdfFrame,
.v67Premium .v65FilePreview {
  border-radius: 18px !important;
  border: 1px solid rgba(30, 4, 23,0.08) !important;
}
.v67Premium .v65FilePreview {
  background:
    radial-gradient(circle at top left, rgba(184, 32, 143,0.10), transparent 32%),
    linear-gradient(135deg, rgba(252, 248, 251,1), rgba(255,255,255,0.94)) !important;
}

/* Visual learning and portfolio polish */
.v67Premium .v43VisualLearningWrap,
.v67Premium .v44VisualLearningWrap,
.v67Premium .v62PortfolioPanel,
.v67Premium .v63AnalyticsPanel {
  border-radius: 30px !important;
  border-color: rgba(30, 4, 23,0.08) !important;
  box-shadow: 0 18px 42px rgba(30, 4, 23,0.07) !important;
}
.v67Premium .v43InsightCard,
.v67Premium .v43MindBranch,
.v67Premium .v43FlowStep,
.v67Premium .v61FeedbackCard {
  border-color: rgba(30, 4, 23,0.08) !important;
  background: rgba(255,255,255,0.94) !important;
  box-shadow: 0 9px 22px rgba(30, 4, 23,0.045) !important;
}
.v67Premium table,
.v67Premium .v43TableWrap {
  border-radius: 20px;
  overflow: hidden;
}

/* Login polish */

@media (max-width: 1100px) {
  .v67Premium .v652BuilderGrid,
  .v67Premium .learnerLearningLayout {
    grid-template-columns: 1fr;
  }
  .v67Premium .v36CoursePanel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .v67Premium .portalTopbar {
    padding: 12px 16px;
  }
  .v67Premium .v66StartPanel,
  .v67Premium .v66ResourceSummary,
  .v67Premium .v66MediaTabs,
  .v67Premium .v66MediaGroups {
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding-left: 0;
    padding-right: 0;
  }
  .v67Premium .v66MediaTabs { grid-template-columns: 1fr; }
  .v67Premium .v66StartPanel { grid-template-columns: 1fr; }
}

/* V68 Final Stabilisation and Clean Academic Flow
   Purpose: reduce visual noise, make testing easier, and keep advanced evidence/analytics available without disturbing the main journey. */
.v68Final {
  --aiu-ink: #1f0518;
  --aiu-muted: #785c70;
  --aiu-line: rgba(31, 5, 24,0.09);
  --aiu-panel: rgba(255,255,255,0.94);
  --aiu-soft: #fcf8fb;
  --aiu-blue: #b8208f;
  --aiu-teal: #940d70;
  --aiu-gold: #af7e13;
}
.v68Final .portalShell.cleanShell {
  max-width: 1380px;
}
.v68Final .v652BuilderGrid {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.32fr) !important;
  align-items: start;
}
.v68Final .v652StepCard {
  border-radius: 26px !important;
  border-color: rgba(31, 5, 24,0.08) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(252, 248, 251,0.86)) !important;
}
.v68Final .v652StepTitle span {
  box-shadow: none !important;
}
.v68Final .v652LibraryPanel {
  margin-top: 22px;
}
.v68Final .v41ManagePanel {
  border: 1px solid rgba(175, 126, 19,0.18) !important;
  background: linear-gradient(135deg, rgba(255,251,235,0.72), rgba(255,255,255,0.96)) !important;
}
.v68Final .technicalPanel,
.v68Final .v63AnalyticsPanel {
  opacity: 0.94;
}
.v68Final .v63AnalyticsPanel > summary,
.v68Final .technicalPanel > summary {
  cursor: pointer;
  padding: 4px 2px;
}

/* Learner page: keep the main journey calm and put portfolio evidence behind a fold. */
.v68Final .v68PortfolioDetails {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 28px !important;
  background: rgba(255,255,255,0.88) !important;
}
.v68Final .v68PortfolioDetails > summary,
.v68Final .v68PortfolioSummary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  list-style: none;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(253, 240, 250,0.92), rgba(250, 235, 246,0.88));
}
.v68Final .v68PortfolioDetails > summary::-webkit-details-marker,
.v68Final .v68PortfolioSummary::-webkit-details-marker { display: none; }
.v68Final .v68PortfolioSummary strong { color: var(--aiu-ink); font-size: 1rem; }
.v68Final .v68PortfolioSummary span { color: var(--aiu-muted); font-weight: 600; font-size: 0.9rem; }
.v68Final .v68PortfolioBody {
  padding: 20px;
}
.v68Final .v68PortfolioDetails:not([open]) {
  box-shadow: 0 10px 26px rgba(31, 5, 24,0.05) !important;
}
.v68Final .v68PortfolioDetails:not([open]) .v68PortfolioBody { display: none; }
.v68Final .learnerLearningLayout {
  grid-template-columns: minmax(285px, 0.31fr) minmax(0, 1fr) !important;
}
.v68Final .v36CoursePanel .panelHeader p.smallHelp {
  max-width: 48ch;
}
.v68Final .courseGrid.learnerCourseGrid {
  gap: 14px;
}
.v68Final .lessonOpenCard {
  padding: 14px !important;
}
.v68Final .lessonOpenCard p {
  -webkit-line-clamp: 2;
}
.v68Final .v68MediaStudio {
  scroll-margin-top: 100px;
}
.v68Final .v66StudioHero,
.v68Final .v66StartPanel,
.v68Final .v66MediaGroup,
.v68Final .v66MediaCard {
  box-shadow: 0 10px 28px rgba(31, 5, 24,0.055) !important;
}
.v68Final .v66ResourceSummary {
  display: flex;
  flex-wrap: wrap;
}
.v68Final .contentBlock,
.v68Final .v43VisualSection,
.v68Final .quizBox,
.v68Final .v46TutorPanel,
.v68Final .v37CompletionPanel {
  scroll-margin-top: 100px;
}

@media (max-width: 1100px) {
  .v68Final .v652BuilderGrid,
.v68Final .learnerLearningLayout {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 760px) {
  .v68Final .v68PortfolioSummary { align-items: flex-start; flex-direction: column; }
}

/* V68.1 Gentle Colours
   Purpose: keep the stabilised V68 flow, but remove the flat white feeling.
   The design now uses a warm academic background, soft tinted panels, and calm section accents. */
body.v681Gentle {
  --aiu-warm-cream: #fff8ed;
  --aiu-cream: #fffaf2;
  --aiu-soft-blue: #faebf6;
  --aiu-soft-lavender: #f9e4f3;
  --aiu-soft-mint: #effcf7;
  --aiu-soft-gold: #fff4d8;
  --aiu-card-warm: rgba(255, 252, 246, 0.92);
  --aiu-card-blue: rgba(250, 236, 246, 0.90);
  --aiu-card-mint: rgba(253, 240, 250, 0.90);
  --aiu-card-lavender: rgba(251, 233, 246, 0.90);
  --aiu-gentle-line: rgba(84, 20, 67, 0.12);
  --aiu-gentle-shadow: 0 18px 46px rgba(68, 1, 50, 0.10);
  background:
    radial-gradient(circle at 7% 4%, rgba(255, 209, 121, 0.42), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(218, 141, 197, 0.38), transparent 32%),
    radial-gradient(circle at 22% 88%, rgba(212, 106, 184, 0.20), transparent 34%),
    radial-gradient(circle at 86% 86%, rgba(246, 153, 221, 0.24), transparent 34%),
    linear-gradient(135deg, #fff8ed 0%, #faedf7 44%, #fbe9f6 100%) !important;
}

body.v681Gentle::before {
  opacity: 0.45;
}

.v681Gentle .portalTopbar {
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.92), rgba(250, 235, 246, 0.88)) !important;
  border-bottom: 1px solid rgba(84, 20, 67, 0.10) !important;
}

.v681Gentle .panel,
.v681Gentle .courseCard,
.v681Gentle .unitViewer,
.v681Gentle .v36ReaderPanel,
.v681Gentle .v36CoursePanel,
.v681Gentle .v652CreateCard,
.v681Gentle .v652LibraryPanel {
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.94), rgba(250, 236, 246, 0.86)) !important;
  border: 1px solid var(--aiu-gentle-line) !important;
  box-shadow: var(--aiu-gentle-shadow) !important;
}

.v681Gentle .v652StepCard:nth-of-type(1) {
  background: linear-gradient(145deg, rgba(255, 244, 216, 0.96), rgba(255, 252, 246, 0.90)) !important;
}
.v681Gentle .v652StepCard:nth-of-type(2) {
  background: linear-gradient(145deg, rgba(250, 235, 246, 0.96), rgba(255, 252, 246, 0.90)) !important;
}
.v681Gentle .v652StepCard:nth-of-type(3) {
  background: linear-gradient(145deg, rgba(253, 240, 250, 0.96), rgba(255, 252, 246, 0.90)) !important;
}

.v681Gentle .v652StepCard {
  border-color: rgba(84, 20, 67, 0.10) !important;
}

.v681Gentle .v652StepCard::before {
  background: linear-gradient(180deg, #b8208f, #b8148c, #d69d28) !important;
  opacity: 0.90;
}

.v681Gentle .v652StepTitle > span {
  background: linear-gradient(135deg, #53003d, #9b0071, #b8148c) !important;
}

.v681Gentle input,
.v681Gentle textarea,
.v681Gentle select {
  background: rgba(255, 253, 249, 0.96) !important;
  border-color: rgba(84, 20, 67, 0.13) !important;
}

.v681Gentle .button:not(.secondary):not(.ghost):not(.dangerButton),
.v681Gentle .navButton:not(.secondary),
.v681Gentle .v652PublishButton,
.v681Gentle .v37CompleteButton {
  background: linear-gradient(135deg, #39002a, #b8208f, #940d70) !important;
}

.v681Gentle .button.secondary,
.v681Gentle .button.ghost,
.v681Gentle .navButton.secondary {
  background: rgba(255, 250, 242, 0.92) !important;
}

.v681Gentle .v36LearnerCourseCard,
.v681Gentle .learnerCourseCard,
.v681Gentle .lessonOpenCard,
.v681Gentle .v66MediaGroup,
.v681Gentle .v66MediaCard,
.v681Gentle .v65ResourceCard,
.v681Gentle .contentBlock,
.v681Gentle .v36ContentBlock,
.v681Gentle .v43InsightCard,
.v681Gentle .v43MindBranch,
.v681Gentle .v43FlowStep,
.v681Gentle .v61FeedbackCard,
.v681Gentle .v652CompactPath {
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.94), rgba(250, 236, 246, 0.82)) !important;
  border-color: rgba(84, 20, 67, 0.10) !important;
}

.v681Gentle .lessonOpenCard:nth-child(3n+1),
.v681Gentle .v66MediaGroup:nth-child(3n+1),
.v681Gentle .v43InsightCard:nth-child(3n+1) {
  background: linear-gradient(145deg, rgba(250, 235, 246, 0.94), rgba(255, 252, 246, 0.90)) !important;
}
.v681Gentle .lessonOpenCard:nth-child(3n+2),
.v681Gentle .v66MediaGroup:nth-child(3n+2),
.v681Gentle .v43InsightCard:nth-child(3n+2) {
  background: linear-gradient(145deg, rgba(253, 240, 250, 0.94), rgba(255, 252, 246, 0.90)) !important;
}
.v681Gentle .lessonOpenCard:nth-child(3n+3),
.v681Gentle .v66MediaGroup:nth-child(3n+3),
.v681Gentle .v43InsightCard:nth-child(3n+3) {
  background: linear-gradient(145deg, rgba(251, 233, 246, 0.94), rgba(255, 252, 246, 0.90)) !important;
}

.v681Gentle .activeLessonCard,
.v681Gentle .completedLessonCard {
  background: linear-gradient(135deg, rgba(252, 224, 244, 0.98), rgba(250, 235, 246, 0.92)) !important;
  border-color: rgba(184, 20, 140, 0.42) !important;
}

.v681Gentle .v66StudioHero {
  background:
    radial-gradient(circle at 88% 0%, rgba(246, 153, 221, 0.25), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(255, 221, 133, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(250, 235, 246, 0.90)) !important;
}

.v681Gentle .v66StartPanel,
.v681Gentle .v66ResourceSummary,
.v681Gentle .v68PortfolioDetails,
.v681Gentle .v37CompletionPanel,
.v681Gentle .quizBox,
.v681Gentle .v36QuizBox,
.v681Gentle .progressCard,
.v681Gentle .notice {
  background: linear-gradient(135deg, rgba(255, 244, 216, 0.80), rgba(250, 235, 246, 0.88)) !important;
  border-color: rgba(84, 20, 67, 0.11) !important;
}

.v681Gentle .v68PortfolioDetails > summary,
.v681Gentle .v68PortfolioSummary {
  background: linear-gradient(135deg, rgba(253, 240, 250, 0.94), rgba(251, 233, 246, 0.86)) !important;
}

.v681Gentle .v66MediaTabs span,
.v681Gentle .statusPill {
  background: rgba(255, 250, 242, 0.92) !important;
  border-color: rgba(84, 20, 67, 0.10) !important;
}

.v681Gentle .resourceCard img,
.v681Gentle .unitVideo,
.v681Gentle .v65ResourceImage,
.v681Gentle .v65ResourceVideo,
.v681Gentle .v59PdfFrame,
.v681Gentle .pdfFrame {
  background-color: #fffaf2 !important;
}

.v681Gentle .emptyState,
.v681Gentle .v65ResourcePickerPreview,
.v681Gentle .v65FilePreview {
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(251, 233, 246, 0.80)) !important;
}

@media (max-width: 760px) {
  body.v681Gentle {
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 209, 121, 0.28), transparent 34%),
      linear-gradient(135deg, #fff8ed 0%, #faedf7 55%, #fbe9f6 100%) !important;
  }
}

/* V69: Completion, certificate readiness, and official learner progress. */

.v69CompletionPanel {
  align-items: stretch;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(250, 236, 246, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(161, 0, 118, 0.14), transparent 38%);
  border-color: rgba(115, 0, 84, 0.20);
}

.v69CompletionPanel.done {
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 251, 235, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 38%);
  border-color: rgba(22, 163, 74, 0.20);
}

.v69RequirementList {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
}

.v69Requirement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(123, 95, 115, 0.14);
}

.v69Requirement > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  flex: 0 0 auto;
}

.v69Requirement.complete > span {
  background: #dcfce7;
  color: #15803d;
}

.v69Requirement.pending > span {
  background: #fff7ed;
  color: #c2410c;
}

.v69Requirement strong {
  display: block;
  color: #301529;
  margin-bottom: 2px;
}

.v69Requirement small {
  display: block;
  color: #7b5f73;
  line-height: 1.4;
}

.v69CompleteButton:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  background: #ab8da3;
  box-shadow: none;
}

@media (max-width: 720px) {
  .v69CompletionPanel {
    flex-direction: column;
  }
}

/* V72 production readiness and role security polish */
.v70ProductionReady .portalTopbar {
  border-bottom: 1px solid rgba(140, 33, 111, 0.18);
  background: linear-gradient(135deg, rgba(255, 251, 241, 0.96), rgba(250, 235, 246, 0.96));
  backdrop-filter: blur(18px);
}

.v70ReleasePanel {
  border: 1px solid rgba(132, 0, 97, 0.17);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(250, 236, 246, 0.92)),
    radial-gradient(circle at top right, rgba(255, 188, 40, 0.13), transparent 34%);
}

.v70ReadinessGrid {
  display: grid;
  gap: 14px;
}

.v70UserPanel {
  background: linear-gradient(135deg, rgba(252, 237, 248, 0.92), rgba(250, 236, 246, 0.92));
  border-color: rgba(141, 0, 103, 0.16);
}

.v70UserCreateForm {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
  margin-top: 12px;
}

.v70UserList {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.v70ReadOnlyAdmin .v652CreateCard,
.v70ReadOnlyAdmin .v41EditForm {
  opacity: 0.72;
}

.v70ReadOnlyAdmin .v652CreateCard::before {
  content: 'Read-only role: use Super Admin, Institution Admin or Course Builder to publish lessons.';
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.24);
}

/* V72 real AI tutor interaction: automatic learner login creation */
.v71AutoAccountBox {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(166, 0, 122, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(242, 210, 233, 0.82), transparent 38%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(253, 240, 250, 0.92));
  box-shadow: 0 18px 38px rgba(30, 4, 23, 0.06);
}

.v71AutoAccountBox h3 {
  margin: 0.15rem 0 0.35rem;
  color: #39002a;
}

.v71AutoLearnerForm {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1.2fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: end;
}

.v71AutoLearnerForm textarea {
  min-height: 130px;
  resize: vertical;
}

.v71FullWidth {
  grid-column: 1 / -1;
}

.v71AutoLearnerResult {
  margin-top: 1rem;
}

.v71PasswordNotice {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(184, 32, 143, 0.35);
}

.v71PasswordNotice p {
  margin: 0.25rem 0 0.8rem;
  color: #7b5f73;
}

.v71PasswordTable {
  display: grid;
  grid-template-columns: 1fr 1.25fr minmax(130px, 0.8fr);
  gap: 0.45rem 0.75rem;
  align-items: center;
}

.v71PasswordTable > * {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(252, 248, 251, 0.92);
}

.v71PasswordTable code {
  font-weight: 600;
  color: #7c2d12;
  background: #ffedd5;
}

@media (max-width: 980px) {
  .v71AutoLearnerForm,
.v71PasswordTable {
    grid-template-columns: 1fr;
  }
}

/* V72.1: make Super Admin user management easy to find */

.v711UserManagementPanel {
  border: 2px solid rgba(184, 32, 143, 0.22);
  background:
    radial-gradient(circle at top left, rgba(242, 210, 233, 0.92), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(253, 240, 250, 0.94));
  box-shadow: 0 22px 52px rgba(30, 4, 23, 0.09);
}

.v711UserManagementPanel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.35rem 0 1rem;
  color: #39002a;
}

.v711UserManagementPanel > summary::-webkit-details-marker { display: none; }

.v711UserManagementPanel > summary strong {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.v711UserManagementPanel > summary span {
  color: #7b5f73;
  font-size: 0.94rem;
}

/* V72 Real AI Tutor Interaction */
.v72TutorPanel {
  border: 1px solid rgba(132, 0, 97, 0.16);
  background:
    radial-gradient(circle at top left, rgba(241, 210, 233, 0.95), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 251, 0.92));
  box-shadow: 0 22px 60px rgba(48, 21, 41, 0.12);
}
.v72TutorHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.v72TutorHero h3 { margin: 4px 0 8px; font-size: clamp(1.35rem, 2vw, 2rem); }
.v72TutorHero p { color: #5c4054; line-height: 1.65; }
.v72TutorModeGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.v72TutorMode {
  text-align: left;
  border: 1px solid rgba(171, 141, 163, 0.28);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 13px 14px;
  cursor: pointer;
  min-height: 76px;
  transition: transform .18s ease, box-shadow .18s ease, border .18s ease;
}
.v72TutorMode:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 4, 23, 0.09); }
.v72TutorMode.active { border-color: rgba(132, 0, 97, 0.55); background: linear-gradient(135deg, #f8e5f3, #ffffff); }
.v72TutorMode strong { display:block; color: #320025; margin-bottom: 4px; }
.v72TutorMode small { color: #7b5f73; }
.v72TutorPromptCard {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.82), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(234, 166, 0, 0.2);
}
.v72PromptStarters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.v72PromptStarters .v46TutorTip {
  border: 1px solid rgba(155, 0, 113, 0.18);
  background: #fff;
}
.v72TutorMessages .v46TutorMessage {
  border-left: 5px solid #9b0071;
  background: linear-gradient(135deg, #ffffff, #fcf8fb);
}
.v72TutorMessages .v46TutorMessageTop strong { color: #56003f; }
.v72AdminAiCard {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(155, 0, 113, 0.18);
  background: linear-gradient(135deg, rgba(248, 229, 243, 0.82), rgba(236, 253, 245, 0.78));
}
.v72AdminAiHeader h3 { margin: 4px 0 6px; }
.v72AdminAiActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.v72AdminAiActions .button { padding: 10px 14px; }
.v72AdminAiResult {
  border-radius: 20px;
  border: 1px solid rgba(171, 141, 163, 0.3);
  background: rgba(255,255,255,0.9);
  padding: 16px;
  margin-top: 12px;
}
.v72AdminAiResultTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  color: #482d41;
}
.v72AdminAiResultActions { display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
@media (max-width: 760px) {
  .v72TutorHero { grid-template-columns: 1fr; }
  .v72TutorModeGrid { grid-template-columns: 1fr 1fr; }
}

/* V73 Pleasant Frontend Reorganisation: calm navigation, one task at a time. */
.v73PleasantAdmin,
.v73PleasantLearner {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 224, 171, .38), transparent 32%),
    radial-gradient(circle at 96% 8%, rgba(236, 204, 227, .46), transparent 34%),
    linear-gradient(135deg, #fff8ec 0%, #f4f8ff 48%, #fae6f5 100%);
}

.v73Shell {
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.v73SideNav {
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 118px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255, 247, 253, .76));
  box-shadow: 0 18px 48px rgba(50, 0, 37,.10);
  padding: 16px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.v73NavItem {
  border: 1px solid transparent;
  background: transparent;
  color: #593d51;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
  transition: .15s ease;
}
.v73NavItem:hover {
  background: rgba(249, 233, 245,.82);
  color: var(--navy);
}
.v73NavItem.active {
  background: linear-gradient(135deg, #3b002b, #7d005b);
  color: white;
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 12px 28px rgba(50, 0, 37,.17);
}

.v73Workspace {
  min-width: 0;
}
.v73PleasantAdmin .v73WorkspaceSection,
.v73PleasantLearner [data-v73-learner-panel] {
  display: none !important;
}
.v73PleasantAdmin .v73WorkspaceSection.active,
.v73PleasantLearner [data-v73-learner-panel].active {
  display: block !important;
}
.v73PleasantLearner .lead {
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 680px;
}

.v73PleasantAdmin .v36AdminGrid,
.v73PleasantLearner .learnerLearningLayout {
  grid-template-columns: 1fr;
}
.v73PleasantAdmin #builderWorkspace.active {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
}
.v73PleasantAdmin .mainCreateCard,
.v73PleasantAdmin .panel,
.v73PleasantLearner .panel,
.v73PleasantLearner .unitViewer {
  border-color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 42px rgba(50, 0, 37,.09);
}

.v73PleasantAdmin .v652LessonForm {
  gap: 18px;
}
.v73PleasantAdmin .v652StepCard {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,252,245,.92), rgba(250, 236, 246,.75));
  border: 1px solid rgba(50, 0, 37,.09);
}
.v73PleasantAdmin .v652StepTitle span {
  background: linear-gradient(135deg, #3b002b, #9a0071);
}
.v73PleasantAdmin .optionalBox {
  background: rgba(248,250,255,.85);
}
.v73PleasantAdmin .v72AdminAiActions,
.v73PleasantAdmin .headerActions {
  gap: 8px;
}
.v73PleasantAdmin .v70UserCreateForm,
.v73PleasantAdmin .v71AutoLearnerForm {
  border: 1px solid rgba(50, 0, 37,.08);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.7);
}

.v73PleasantLearner .learnerLearningLayout {
  display: block;
}
.v73PleasantLearner #coursesPanel.active,
.v73PleasantLearner #unitViewer.active,
.v73PleasantLearner #portfolioPanel.active {
  margin-bottom: 18px;
}
.v73PleasantLearner #courseGrid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.v73PleasantLearner .lessonOpenCard {
  background: linear-gradient(135deg, #f9fbff, #faebf6);
}

.v73LessonTabs {
  position: sticky;
  top: 78px;
  z-index: 12;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  margin: 14px 0 18px;
  border: 1px solid rgba(50, 0, 37,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(50, 0, 37,.09);
  backdrop-filter: blur(12px);
}
.v73LessonTab {
  border: 1px solid rgba(50, 0, 37,.1);
  background: #fff8fd;
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: none;
}
.v73LessonTab.active {
  background: linear-gradient(135deg, #3b002b, #7d005b);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(50, 0, 37,.17);
}
.v73LessonHidden {
  display: none !important;
}
.v73PleasantLearner .v59ActionDock {
  display: none;
}
.v73PleasantLearner .v72TutorModeGrid,
.v73PleasantLearner .v58PracticeGrid,
.v73PleasantLearner .v66ResourceGrid,
.v73PleasantLearner .v43CardGrid {
  gap: 12px;
}
.v73PleasantLearner .v72TutorPanel,
.v73PleasantLearner .v66MediaStudio,
.v73PleasantLearner .v58PracticeStudio,
.v73PleasantLearner .v69CompletionPanel {
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(50, 0, 37,.08);
}

@media (max-width: 1060px) {
  .v73Shell {
    grid-template-columns: 1fr;
  }
  .v73SideNav {
    position: static;
    min-height: auto;
    display: flex;
    overflow-x: auto;
    align-items: center;
    border-radius: 24px;
  }
  .v73NavItem {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .v73PleasantAdmin #builderWorkspace.active {
    grid-template-columns: 1fr;
  }
  .v73LessonTabs {
    position: static;
  }
}

@media (max-width: 680px) {
  .v73Shell {
    padding: 14px;
    gap: 14px;
  }
  .v73SideNav {
    padding: 10px;
  }
  .v73NavItem,
  .v73LessonTab {
    padding: 9px 11px;
    font-size: 13px;
  }
  .v73PleasantLearner .unitViewer,
.v73PleasantAdmin .panel,
.v73PleasantLearner .panel {
    border-radius: 22px;
    padding: 16px;
  }
}

/* V73.3 user-management reliability fix */
.v733SingleUserBox {
  border: 1px solid rgba(184, 32, 143, 0.14);
  background: linear-gradient(135deg, rgba(250, 235, 246, 0.92), rgba(255, 251, 235, 0.72));
  border-radius: 28px;
  padding: 22px;
  margin: 22px 0;
  box-shadow: 0 20px 45px rgba(30, 4, 23, 0.06);
}
.v733UserActionStatus {
  margin-top: 14px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px dashed rgba(107, 0, 78, 0.18);
  font-weight: 600;
}
.v733UserActionStatus.good { color: #166534; background: rgba(220, 252, 231, 0.7); border-color: rgba(22, 101, 52, 0.22); }
.v733UserActionStatus.bad { color: #991b1b; background: rgba(254, 226, 226, 0.75); border-color: rgba(153, 27, 27, 0.24); }
.v733UserActionStatus.warn { color: #92400e; background: rgba(254, 243, 199, 0.75); border-color: rgba(146, 64, 14, 0.24); }
.v733UserActionStatus.working { color: #5c0043; background: rgba(242, 210, 233, 0.72); border-color: rgba(92, 0, 67, 0.24); }
.v733SingleUserResult { margin-top: 14px; }
.v733SavedAccount {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(171, 141, 163, 0.2);
}
.v733SavedAccount small { color: #7b5f73; }

/* V73.4 polish + security posture panel */
:root {
  --aiu-focus-ring: 0 0 0 4px rgba(127, 0, 93, .18);
}
button,
a,
input,
textarea,
select {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--aiu-focus-ring);
}
.v73WorkspaceSection,
.panel,
details.panel {
  scroll-margin-top: 86px;
}
