.studentTopbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px max(20px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid rgba(230, 189, 104, 0.45);
  background: rgba(6, 24, 39, 0.97);
  box-shadow: 0 8px 24px rgba(4, 15, 25, 0.22);
  backdrop-filter: blur(12px);
}

.studentTopbar[hidden] {
  display: none;
}

.studentBrand {
  color: #f6df9c;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.studentTopbarActions {
  display: flex;
  gap: 8px;
}

.studentTopbar button,
.studentTopbarActions a {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.studentTopbarActions a:last-child {
  border-color: #e6bd68;
  background: #e6bd68;
  color: #081827;
}

.studentAccessCard {
  grid-template-columns: minmax(260px, 1.15fr) minmax(330px, 0.85fr);
  gap: 22px;
  width: 100%;
}

.registered .studentAccessCard {
  display: grid;
}

.studentAccessIdentity,
.studentInlineProgress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.studentAccessIdentity span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studentInlineProgress > span {
  color: #cde4eb;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.studentInlineTrack {
  flex: 1;
  min-width: 120px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.studentInlineTrack i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e6bd68, #74d6a4);
  transition: width 0.35s ease;
}

.studentInlineProgress > strong {
  min-width: 42px;
  color: #fff;
  text-align: right;
}

.studentDashboard {
  max-width: 1260px;
  margin: 22px auto 0;
  padding: 0 20px;
}

.studentDashboard[hidden] {
  display: none;
}

.studentDashboardInner {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.65fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid #ccdbe5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(16, 42, 67, 0.11);
}

.studentIdentityPanel {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b2235, #174f68);
  color: #fff;
}

.studentIdentityPanel small {
  color: #e6bd68;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.studentIdentityPanel h2 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.12;
}

.studentIdentityPanel p {
  margin: 5px 0 16px;
  color: #c9dce4;
  font-size: 0.82rem;
  word-break: break-word;
}

.dashboardResume {
  width: 100%;
  border: 1px solid #f1d584;
  border-radius: 9px;
  padding: 9px 12px;
  background: #e6bd68;
  color: #081827;
  font-weight: 900;
  cursor: pointer;
}

.dashboardProgress h3 {
  margin: 0 0 4px;
  color: #102a43;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.dashboardProgress > p {
  margin: 0 0 15px;
  color: #607080;
  font-size: 0.86rem;
}

.progressLine {
  display: grid;
  grid-template-columns: 112px minmax(120px, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-size: 0.8rem;
  font-weight: 800;
}

.progressLineTrack {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
}

.progressLineTrack i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #176b7d, #2aa873);
  transition: width 0.35s ease;
}

.diplomaStatus {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid #efd4a2;
  border-radius: 10px;
  background: #fff8e8;
  color: #765516;
  font-size: 0.82rem;
  font-weight: 850;
}

.diplomaStatus.ready {
  border-color: #a9dfc0;
  background: #ecfbf2;
  color: #136b44;
}

.complete {
  display: none !important;
}

.student-mode #visao-geral,
.student-mode #orientacoes,
.student-mode #avaliacao {
  display: none;
}

.lesson-focus .module {
  display: none;
}

.lesson-focus .module.current-module {
  display: block;
}

.lesson-focus .module.current-module .lesson {
  display: none;
}

.lesson-focus .module.current-module .lesson.current-lesson {
  display: block;
}

.lesson-focus .navlink.active {
  background: #102a43;
  color: #fff;
}

.lesson-focus .moduleHead {
  padding: 17px 22px;
}

.lesson-focus .moduleHead p {
  display: none;
}

.pilotIntro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px;
  padding: 12px 15px;
  border: 1px solid #d8e4eb;
  border-radius: 11px;
  background: #f8fbfd;
}

.pilotIntro strong {
  display: block;
  color: #102a43;
}

.pilotIntro span {
  color: #607080;
  font-size: 0.8rem;
}

.lessonRule {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff1c9;
  color: #78550f !important;
  font-weight: 850;
}

.pilotTabs {
  gap: 8px;
  padding-bottom: 3px;
}

.pilotTabs .tab {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.pilotMemberContent {
  position: relative;
}

.memberLockNotice {
  display: none;
}

.pilotMemberContent.memberLocked .pilotTabs,
.pilotMemberContent.memberLocked .tabpane {
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.24;
  user-select: none;
}

.pilotMemberContent.memberLocked .memberLockNotice {
  position: absolute;
  inset: 78px 0 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: start;
  gap: 9px;
  min-height: 300px;
  padding: 56px 24px;
  border: 1px solid #e2c779;
  border-radius: 13px;
  background: rgba(255, 250, 238, 0.96);
  color: #654a12;
  text-align: center;
}

.memberLockNotice strong {
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.memberLockNotice a {
  border-radius: 999px;
  padding: 8px 14px;
  background: #e6bd68;
  color: #081827;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.slideDeck {
  overflow: hidden;
  border: 1px solid #cbdbe5;
  border-radius: 15px;
  background: #0b2235;
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.12);
}

.slideCanvas {
  position: relative;
  min-height: 350px;
  padding: clamp(26px, 5vw, 54px);
  background:
    radial-gradient(circle at 88% 15%, rgba(47, 154, 178, 0.42), transparent 30%),
    linear-gradient(125deg, #081827, #153f5b);
  color: #fff;
}

.slideCanvas::after {
  content: "DR. ADAM • DIREITO DE TRÂNSITO";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.slideEyebrow {
  color: #f5cd72;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pilotMemberContent .slideCanvas h4 {
  max-width: 700px;
  margin: 8px 0 14px;
  color: #f8fcff;
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.pilotMemberContent .slideCanvas p,
.pilotMemberContent .slideCanvas li {
  max-width: 760px;
  color: #eef7fb;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
}

.slideCanvas ul {
  padding-left: 20px;
}

.slideCanvas li {
  margin: 8px 0;
}

.slideCanvas li::marker {
  color: #9edce7;
}

.slideControls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  background: #fff;
}

.slideControls button {
  border: 1px solid #b8cbd7;
  border-radius: 8px;
  padding: 7px 11px;
  background: #f7fafc;
  color: #102a43;
  font-weight: 850;
  cursor: pointer;
}

.slideControls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.slideDots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slideDots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9d7df;
}

.slideDots i.viewed {
  background: #6dbb93;
}

.slideDots i.active {
  outline: 2px solid #102a43;
  outline-offset: 2px;
}

.quizGate {
  position: relative;
}

.quizGate.locked .quizContent {
  opacity: 1;
}

.quizLock {
  display: none;
}

.quizGate.locked .quizLock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #d9a83e;
  border-left: 5px solid #b42318;
  border-radius: 11px;
  background: #fff8e8;
  color: #60460f;
  text-align: left;
}

.quizLock strong {
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.quizLock span {
  color: #6b572b;
  font-size: 0.9rem;
}

.quizQuestion {
  margin: 15px 0;
  padding: 16px;
  border: 1px solid #d5e0e7;
  border-radius: 12px;
  background: #fbfcfd;
}

.quizQuestion h4 {
  margin: 0 0 10px;
  color: #102a43;
}

.quizQuestion p,
.quizOption span {
  color: #263d51;
  font-size: 0.94rem;
  line-height: 1.5;
}

.quizGate.locked .quizOption {
  cursor: not-allowed;
}

.quizOption {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 7px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.quizOption:hover {
  border-color: #bcd1de;
  background: #fff;
}

.quizQuestion.correct {
  border-color: #8dd0aa;
  background: #f1fbf5;
}

.quizQuestion.wrong {
  border-color: #e7a99f;
  background: #fff6f4;
}

.quizFeedback {
  display: none;
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: #405366;
  font-size: 0.86rem;
}

.quizQuestion.correct .quizFeedback,
.quizQuestion.wrong .quizFeedback {
  display: block;
}

.quizActions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.quizActions button,
.pdfDownload {
  border: 1px solid #102a43;
  border-radius: 9px;
  padding: 9px 15px;
  background: #102a43;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.quizResult {
  font-weight: 900;
}

.pdfCard {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid #d4e0e7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfd, #fff9ea);
}

.pdfIcon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 86px;
  border-radius: 8px;
  background: #b42318;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 9px 20px rgba(180, 35, 24, 0.22);
}

.pdfCard h4 {
  margin: 0 0 4px;
}

.pdfCard p {
  margin: 0;
  color: #607080;
  font-size: 0.86rem;
}

.infographic {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(150deg, #071722, #123d55);
  color: #fff;
}

.infographic h4 {
  margin: 0;
  color: #f3d98f;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  text-align: center;
}

.infoFlow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.infoStep {
  position: relative;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.infoStep:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -9px;
  top: 50%;
  z-index: 2;
  color: #e6bd68;
  font-size: 1.35rem;
  font-weight: 950;
  transform: translateY(-50%);
}

.infoStep b {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.infoStep span {
  display: block;
  margin-top: 4px;
  color: #bfd4dc;
  font-size: 0.72rem;
  line-height: 1.35;
}

.infoFooter {
  color: #bcd2db;
  font-size: 0.78rem;
  text-align: center;
}

/* Aula premium: leitura forte, materiais densos e caderno do aluno */
.pilotMemberContent {
  color: #183247;
  font-size: 1rem;
  line-height: 1.62;
}

.pilotMemberContent p,
.pilotMemberContent li,
.pilotMemberContent label,
.pilotMemberContent textarea,
.pilotMemberContent select {
  color: #263f54;
  font-size: 0.98rem;
}

.accessRuleWarning,
.lessonAccessAlert {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #e3a39d;
  border-left: 5px solid #b42318;
  border-radius: 10px;
  background: #fff3f1;
  color: #8d1c14;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.45;
}

.lessonAccessAlert:empty {
  display: none;
}

.accessPolicy {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #bfd4e0;
  border-radius: 10px;
  background: #f4f9fc;
  color: #24475e;
  font-size: 0.86rem;
  font-weight: 800;
}

.lessonLocked {
  opacity: 0.65;
}

.lessonLocked::after {
  content: " • bloqueada";
  color: #a32920;
  font-size: 0.68rem;
  font-weight: 900;
}

.student-banned .pilotMemberContent,
.student-banned .lessonVideo {
  pointer-events: none;
  opacity: 0.38;
  filter: grayscale(0.35);
}

.student-banned .lessonAccessAlert {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  opacity: 1;
  filter: none;
}

.supportVideo {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 0.75fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #bdd2de;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f9fc, #fffaf0);
}

.supportVideo iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 11px;
  background: #061827;
  box-shadow: 0 10px 24px rgba(7, 29, 46, 0.18);
}

.supportVideo strong {
  display: block;
  margin-bottom: 6px;
  color: #0d3148;
  font-family: Georgia, serif;
  font-size: 1.12rem;
}

.supportVideo p {
  margin: 0;
}

.richInfographic {
  gap: 20px;
  padding: clamp(22px, 4vw, 38px);
}

.pilotMemberContent .richInfographic h4 {
  color: #ffe08d;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.infoTitle p,
.pilotMemberContent .richInfographic p,
.pilotMemberContent .richInfographic span,
.pilotMemberContent .richInfographic li {
  color: #e8f4f8;
}

.infoTitle p {
  margin: 5px auto 0;
  max-width: 780px;
  text-align: center;
}

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

.systemCore {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid #f1ca70;
  border-radius: 12px;
  background: rgba(230, 189, 104, 0.15);
  color: #ffe39b;
  font-size: 1.05rem;
  font-weight: 950;
  text-align: center;
}

.systemBranch {
  padding: 16px;
  border: 1px solid rgba(207, 232, 241, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
}

.systemBranch strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
}

.systemBranch span {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
}

.decisionRail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.decisionRail > div {
  position: relative;
  padding: 13px 9px;
  border-radius: 9px;
  background: #e8f4f8;
  color: #103249 !important;
  font-size: 0.8rem !important;
  font-weight: 900;
  text-align: center;
}

.decisionRail > div:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -8px;
  top: 50%;
  z-index: 2;
  color: #f0c96e;
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.decisionRail b,
.decisionRail span {
  display: block;
}

.decisionRail span {
  margin-top: 4px;
  color: #355269 !important;
  font-size: 0.75rem !important;
}

.infoWarning {
  padding: 14px 16px;
  border-left: 5px solid #f0c96e;
  border-radius: 8px;
  background: rgba(230, 189, 104, 0.13);
  color: #fff4d5;
  font-weight: 850;
}

.knowledgeEssay {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #cadbe5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.08);
}

.knowledgeEssay header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5bd68;
}

.knowledgeEssay header small {
  color: #9a6b0c;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pilotMemberContent .knowledgeEssay h4 {
  margin: 5px 0 8px;
  color: #0a2b42;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.pilotMemberContent .knowledgeEssay h5 {
  margin: 22px 0 7px;
  color: #0d4e64;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.doctrinePrinciples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.doctrinePrinciples > div,
.doctrinePrinciples > span {
  padding: 14px;
  border: 1px solid #cfdee6;
  border-radius: 10px;
  background: #f5f9fb;
}

.doctrinePrinciples strong,
.doctrinePrinciples > span {
  display: block;
  color: #0a4059;
}

.historyTimeline {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding-left: 22px;
  border-left: 3px solid #dfb85f;
}

.historyTimeline article,
.historyTimeline section {
  position: relative;
  padding: 14px 16px;
  border: 1px solid #d4e0e7;
  border-radius: 10px;
  background: #f8fbfd;
}

.historyTimeline article::before,
.historyTimeline section::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 18px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b58727;
  box-shadow: 0 0 0 2px #b58727;
}

.historyTimeline strong,
.historyTimeline b {
  display: block;
  color: #0c4059;
}

.historyTimeline p {
  margin: 4px 0 0;
}

.historyConclusion {
  padding: 15px;
  border-radius: 9px;
  background: #0c334a;
  color: #f5fbfd !important;
}

.writingLab {
  display: grid;
  gap: 18px;
}

.writingPrompt,
.noteComposer,
.studentNotebook {
  padding: 20px;
  border: 1px solid #cbdce5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.07);
}

.writingPrompt {
  border-left: 5px solid #d7a945;
  background: #fffaf0;
}

.writingPrompt h4,
.noteComposer h4,
.notebookHead h3 {
  margin: 0 0 7px;
  color: #0c3048;
  font-family: Georgia, serif;
}

.noteComposer label {
  display: block;
  margin: 11px 0 6px;
  color: #173a51;
  font-weight: 900;
}

.noteComposer select,
.noteComposer textarea {
  width: 100%;
  border: 1px solid #afc6d4;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  font: inherit;
}

.noteComposer textarea {
  min-height: 170px;
  resize: vertical;
}

.noteComposer textarea:focus,
.noteComposer select:focus {
  border-color: #1b6b7b;
  outline: 3px solid rgba(27, 107, 123, 0.14);
}

.noteComposerFooter,
.composerFooter,
.notebookHead,
.noteActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.noteComposerFooter {
  margin-top: 10px;
}

.noteComposer button,
.noteActions button {
  border: 1px solid #173b52;
  border-radius: 8px;
  padding: 8px 12px;
  background: #173b52;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.noteActions button.danger,
.noteActions button.dangerButton {
  border-color: #c2534a;
  background: #fff;
  color: #a2271e;
}

.noteStatus {
  color: #1a6847;
  font-weight: 850;
}

.notebookList {
  display: grid;
  gap: 12px;
  margin-top: 13px;
}

.noteCard {
  padding: 15px;
  border: 1px solid #d4e1e8;
  border-radius: 11px;
  background: #f9fbfc;
}

.noteCard header,
.noteCardHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #466074;
  font-size: 0.78rem;
  font-weight: 850;
}

.noteCard p {
  white-space: pre-wrap;
}

.noteAnalysis span {
  display: block;
  margin-top: 5px;
}

.noteAnalysis {
  margin: 12px 0;
  padding: 12px;
  border-left: 4px solid #24855d;
  border-radius: 7px;
  background: #edf9f2;
  color: #174a35;
}

.noteAnalysis.teacherReview {
  border-color: #d6a84b;
  background: #fff8e8;
  color: #604714;
}

.noteAnalysis strong {
  color: #0d633f;
}

.inlineNotebook {
  margin-top: 2px;
}

@media (max-width: 940px) {
  .studentAccessCard,
  .studentDashboardInner {
    grid-template-columns: 1fr;
  }

  .infoFlow {
    grid-template-columns: 1fr;
  }

  .infoStep:not(:last-child)::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -18px;
    transform: translateX(50%);
  }

  .decisionRail {
    grid-template-columns: 1fr;
  }

  .decisionRail > div:not(:last-child)::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -17px;
    transform: translateX(50%);
  }

  .doctrinePrinciples {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .studentTopbar {
    align-items: flex-start;
  }

  .studentBrand {
    max-width: 110px;
    line-height: 1.15;
  }

  .studentTopbarActions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .studentAccessCard,
  .registered .studentAccessCard {
    display: grid;
    gap: 14px;
  }

  .studentAccessIdentity span:last-child {
    white-space: normal;
  }

  .studentInlineProgress {
    display: grid;
    grid-template-columns: auto 1fr 42px;
  }

  .progressLine {
    grid-template-columns: 94px 1fr 42px;
  }

  .pilotIntro,
  .pdfCard {
    grid-template-columns: 1fr;
  }

  .pdfCard {
    text-align: center;
  }

  .pdfIcon {
    margin: auto;
  }

  .slideCanvas {
    min-height: 410px;
  }

  .slideControls {
    grid-template-columns: 1fr 1fr;
  }

  .slideDots {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .quizActions {
    align-items: stretch;
    flex-direction: column;
  }

  .supportVideo,
  .legalSystemMap {
    grid-template-columns: 1fr;
  }

  .systemCore {
    grid-column: auto;
  }

  .noteComposerFooter,
  .composerFooter,
  .notebookHead,
  .noteActions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studentInlineTrack i,
  .progressLineTrack i {
    transition: none;
  }
}

/* Padrão acadêmico replicável: vídeo, avaliação, pergunta e evidências */
.courseQualityDashboard {
  max-width: 1260px;
  margin: 22px auto 0;
  padding: 22px;
  border: 1px solid #c9dbe5;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(8, 30, 47, 0.1);
  color: #17364b;
}

.qualitySummary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.qualitySummary small,
.academicStandard small,
.lessonVoteCard small,
.lessonQuestionHead small {
  color: #8a5d00;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.qualitySummary h2,
.academicStandard h3,
.lessonVoteCard h3,
.lessonQuestionHead h3 {
  margin: 4px 0;
  color: #0b2b42;
  font-family: Georgia, serif;
}

.qualitySummary p,
.lessonVoteCard p,
.lessonQuestionArea > p,
.academicStandard p,
.academicStandard li {
  color: #29485d;
  font-weight: 550;
  line-height: 1.55;
}

#qualityRate {
  color: #14734d;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.9;
}

.qualityBar {
  height: 16px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7655d;
}

.qualityBar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f9c69, #63ca94);
  transition: width 0.35s ease;
}

.qualityLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: #40596b;
  font-size: 0.82rem;
}

.qualityLegend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qualityLegend b:not(.positiveDot):not(.negativeDot) {
  color: #102a43;
}

.positiveDot,
.negativeDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f9c69;
}

.negativeDot { background: #c74b42; }

.academicStandard {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 14px 28px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d2e1e8;
  border-radius: 13px;
  background: #f6fafc;
}

.academicStandard ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 22px;
  margin: 0;
  padding-left: 20px;
}

.academicStandard p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #d3e1e8;
  font-size: 0.82rem;
}

.academicValidationNote {
  grid-column: 1 / -1;
  display: block;
  margin-top: -4px;
  color: #607789;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.45;
}

.lessonTopGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.72fr);
  gap: 16px;
  align-items: stretch;
  margin: 16px 0 20px;
}

.lessonTopGrid .lessonVideo {
  height: 100%;
  margin: 0;
}

.lessonTopGrid .videoGateWrap,
.lessonTopGrid video {
  height: 100%;
  min-height: 250px;
}

.lessonTopGrid video { object-fit: cover; }

.lessonVideoPlaceholder {
  overflow: hidden;
  border: 1px solid #294e64;
  border-radius: 13px;
  background: #0b2b42;
}

.videoPlaceholderBody {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background: radial-gradient(circle at 80% 10%, rgba(48, 150, 174, 0.35), transparent 35%), #0a2538;
  color: #f5fbff;
  text-align: center;
}

.videoPlaceholderBody > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #f0cf7c;
  border-radius: 50%;
  color: #f0cf7c;
}

.videoPlaceholderBody p {
  max-width: 480px;
  margin: 0;
  color: #d9eef5;
}

.lessonVoteCard {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid #d3e1e9;
  border-radius: 13px;
  background: linear-gradient(150deg, #ffffff, #f4f9fb);
}

.voteButtons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}

.voteButtons button {
  min-height: 46px;
  border: 1px solid #aac3d1;
  border-radius: 10px;
  background: #fff;
  color: #12344b;
  font-weight: 900;
  cursor: pointer;
}

.voteButtons button:hover,
.voteButtons button.selected {
  border-color: #1d8b60;
  background: #eaf8f1;
  color: #126442;
}

.voteButtons button[data-vote="-1"].selected {
  border-color: #bf554c;
  background: #fff0ee;
  color: #9c3028;
}

.voteButtons button:disabled { cursor: not-allowed; opacity: 0.62; }

.lessonVoteResult {
  display: grid;
  gap: 3px;
  color: #526c7e;
  font-size: 0.78rem;
}

.lessonVoteResult strong { color: #163a51; }

.lessonQuestionArea {
  margin: 24px 0 6px;
  padding: 20px;
  border: 1px solid #bfd5e1;
  border-top: 5px solid #d6a84b;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 48, 69, 0.07);
  color: #18384d;
}

.lessonQuestionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.lessonQuestionHead > span {
  color: #486578;
  font-size: 0.78rem;
  font-weight: 850;
}

.lessonQuestionForm textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #9fb9c8;
  border-radius: 10px;
  padding: 13px;
  background: #fbfdfe;
  color: #102f44;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
}

.lessonQuestionForm textarea:focus {
  outline: 3px solid rgba(24, 112, 133, 0.18);
  border-color: #187085;
}

.questionFormFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.questionFormFooter > div { display: flex; gap: 8px; }

.questionFormFooter button,
.notebookRefresh {
  min-height: 42px;
  border: 1px solid #12384f;
  border-radius: 9px;
  padding: 9px 13px;
  background: #12384f;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.questionFormFooter .cancelQuestionEdit,
.notebookRefresh {
  background: #fff;
  color: #12384f;
}

.lessonQuestionStatus { color: #3d5e72; font-size: 0.8rem; font-weight: 750; }
.lessonQuestionStatus.error { color: #a32920; }
.lessonQuestionList { display: grid; gap: 10px; margin-top: 16px; }
.reviewPending { margin: 10px 0; padding: 9px 11px; border-radius: 8px; background: #fff7df; color: #765515; font-size: 0.82rem; font-weight: 850; }
.compactNote { background: #f7fbfd; }

.pilotMemberContent .supportVideoCopy h4,
.pilotMemberContent .knowledgeEssay h4,
.pilotMemberContent .historyTimeline b,
.pilotMemberContent .writingPrompt h4 { color: #0b2b42; }

.pilotMemberContent .supportVideoCopy p,
.pilotMemberContent .knowledgeEssay p,
.pilotMemberContent .historyTimeline p,
.pilotMemberContent .writingPrompt p,
.pilotMemberContent .writingPrompt li { color: #244459; font-weight: 550; }

@media (max-width: 940px) {
  .lessonTopGrid,
  .academicStandard { grid-template-columns: 1fr; }
  .academicStandard p { grid-column: auto; }
  .academicValidationNote { grid-column: auto; }
}

@media (max-width: 680px) {
  .courseQualityDashboard { margin: 16px 12px 0; padding: 17px; }
  .qualitySummary,
  .lessonQuestionHead,
  .questionFormFooter { align-items: stretch; flex-direction: column; }
  .qualitySummary { display: flex; }
  .academicStandard ul { grid-template-columns: 1fr; }
  .questionFormFooter > div { display: grid; grid-template-columns: 1fr; }
  .lessonTopGrid .videoGateWrap,
  .lessonTopGrid video,
  .videoPlaceholderBody { min-height: 210px; }
}
