.lms-page { min-height: 100vh; background: #f1f5f9; }
.lms-student-page {
  background:
    radial-gradient(circle at 12% 9%, rgba(56, 189, 248, .2), transparent 28rem),
    radial-gradient(circle at 88% 40%, rgba(139, 92, 246, .22), transparent 30rem),
    linear-gradient(135deg, #0b1228 0%, #111f3d 52%, #152345 100%);
  color: #f8fafc;
}
.lms-student-page .lms-heading h1 { color: #f8fafc; }
.lms-student-page .lms-heading p,
.lms-student-page .lms-hint { color: #cbd5e1; }
.lms-student-page .lms-eyebrow { color: #67e8f9; }
.lms-student-page .lms-status { color: #67e8f9; }
.lms-student-page .lms-footer-link { color: #cbd5e1; }
.lms-student-page .lms-footer-link a { color: #67e8f9; }
.lms-page .navbar { position: relative; }
.lms-page .navbar .btn-outline {
  border-color: var(--blue-brand);
  color: var(--blue-dark);
}
.lms-page .navbar .btn-outline:hover {
  border-color: var(--blue-brand);
  background: var(--blue-brand);
  color: #fff;
}
.lms-page .brand-logo { gap: 12px; }
.lms-page .brand-title { font-size: 1.15rem; }
.lms-shell { max-width: 1160px; padding-top: 54px; padding-bottom: 64px; }
.lms-heading { margin-bottom: 28px; }
.lms-heading h1 { margin: 6px 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
.lms-heading p { max-width: 720px; color: var(--text-secondary); }
.lms-eyebrow { color: #0284c7; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.lms-status { min-height: 24px; margin: 0 0 18px; color: #075985; font-weight: 600; }
.lms-status[data-state="error"] { color: #b42318; }
.lms-card { padding: 24px; border: 1px solid var(--border-color); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
.lms-card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.lms-card h3 { margin: 24px 0 12px; font-size: 1.05rem; }
.lms-card > p { margin: 0 0 18px; color: var(--text-secondary); }
.lms-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.lms-card form { display: grid; gap: 10px; }
.lms-card form label { margin-top: 6px; color: #334155; font-size: .9rem; font-weight: 700; }
.lms-card input:not([type="checkbox"]), .lms-card select, .lms-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}
.lms-card textarea { min-height: 100px; resize: vertical; }
.lms-card input:focus, .lms-card select:focus, .lms-card textarea:focus { outline: 3px solid rgba(2, 132, 199, .2); border-color: #0284c7; }
.lms-hint { color: var(--text-secondary); font-size: .82rem; }
.lms-recovery { margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 14px; }
.lms-recovery summary { color: #0369a1; font-weight: 700; cursor: pointer; }
.lms-recovery form { margin-top: 14px; }
.lms-token-panel { max-width: 640px; margin: 0 auto 24px; }
.lms-footer-link { margin-top: 28px; color: var(--text-secondary); font-size: .88rem; text-align: center; }
.lms-footer-link a, .lms-back-link { color: #0369a1; font-weight: 700; }
.lms-course-layout { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lms-course-list { position: sticky; top: 20px; }
.lms-course-list h2 { margin-bottom: 16px; }
.lms-course-button { display: block; width: 100%; margin-top: 9px; padding: 12px; border: 1px solid #dbe5ef; border-radius: 9px; background: #f8fafc; color: #1e293b; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.lms-course-button:hover, .lms-course-button[aria-current="true"] { border-color: #0284c7; background: #eff8ff; }
.lms-progress { display: block; margin-top: 4px; color: var(--text-secondary); font-size: .78rem; font-weight: 500; }
.lms-lesson-panel h2 { margin-top: 8px; }
.lms-lesson-panel > p { color: var(--text-secondary); }
.lms-back-link { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.lms-lesson-layout { display: grid; grid-template-columns: minmax(170px, .32fr) minmax(0, 1fr); gap: 22px; margin-top: 24px; }
.lms-lesson-list { display: grid; align-content: start; gap: 8px; }
.lms-lesson-button { padding: 11px 12px; border: 1px solid #dbe5ef; border-radius: 8px; background: #fff; color: #334155; text-align: left; font: inherit; cursor: pointer; }
.lms-lesson-button:hover, .lms-lesson-button[aria-current="true"] { border-color: #0284c7; background: #eff8ff; color: #075985; }
.lms-lesson-button.is-complete::after { content: " ✓"; color: #15803d; }
.lms-lesson-content h3 { margin: 6px 0 8px; font-size: 1.5rem; }
.lms-lesson-content > p { color: var(--text-secondary); }
.lms-lesson-button:disabled { border-style: dashed; background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.lms-video-frame { margin: 18px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #0f172a; }
.lms-video-frame iframe { width: 100%; height: 100%; border: 0; }
.lms-lesson-body { margin: 18px 0; white-space: pre-wrap; line-height: 1.75; }
.lms-resource-link { margin: 8px 0 18px; }
.lms-completion, .lms-inline-check { display: flex; align-items: center; gap: 10px; color: #334155; font-weight: 700; }
.lms-completion { padding: 14px; border-radius: 8px; background: #f1f5f9; }
.lms-completion input, .lms-inline-check input { width: 18px; height: 18px; accent-color: #0284c7; }
.lms-progress-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; align-items: center; margin: 18px 0; }
.lms-progress-summary label { grid-column: 1 / -1; color: #334155; font-size: .88rem; font-weight: 700; }
.lms-progress-summary progress { width: 100%; height: 12px; accent-color: #0284c7; }
.lms-progress-summary strong { min-width: 48px; color: #075985; text-align: right; }
.lms-certificate-link { margin: 0 0 8px; text-decoration: none; }
.lms-lesson-navigation { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.lms-student-materials { margin: 22px 0; }
.lms-student-materials h4 { margin: 0 0 10px; }
.lms-student-materials ul, .lms-admin-material-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lms-student-materials li, .lms-admin-material-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #dbe5ef; border-radius: 8px; background: #f8fafc; }
.lms-student-materials a { color: #0369a1; font-weight: 700; overflow-wrap: anywhere; }
.lms-student-materials li span { flex: 0 0 auto; color: #64748b; font-size: .8rem; }
.lms-lesson-navigation button:disabled { opacity: .55; cursor: not-allowed; }
.lms-assessment-panel { max-height: 78vh; overflow-y: auto; }
.lms-assessment-panel form { gap: 14px; }
.lms-student-question, .lms-admin-question { min-width: 0; margin: 0; padding: 16px; border: 1px solid #dbe5ef; border-radius: 10px; }
.lms-student-question legend, .lms-admin-question legend { padding: 0 6px; color: #172033; font-weight: 800; }
.lms-student-question label { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; color: #334155; font-weight: 500; line-height: 1.5; }
.lms-student-question input { flex: 0 0 auto; margin-top: 4px; accent-color: #0284c7; }
.lms-admin-question-list { display: grid; gap: 14px; }
.lms-admin-question { display: grid; gap: 8px; }
.lms-admin-materials { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.lms-admin-materials h3 { margin-top: 0; }
.lms-admin-materials form { margin-bottom: 14px; }
.lms-admin-material-list { margin-top: 10px; }
.lms-admin-material-list li { overflow-wrap: anywhere; }
.lms-admin-material-list li .btn { flex: 0 0 auto; }
.lms-status[data-state="success"] { color: #15803d; }
.lms-status[data-state="error"], .lms-hint[data-state="error"] { color: #b42318; }
.lms-empty-state { margin-top: 24px; padding: 22px; border: 1px dashed #94a3b8; border-radius: 12px; color: #475569; text-align: center; }
.lms-demo-banner { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; padding: 16px 18px; border: 1px solid #bae6fd; border-radius: 12px; background: #e0f2fe; color: #075985; }
.lms-demo-banner strong { display: block; margin-bottom: 3px; }
.lms-demo-progress { height: 8px; margin: 12px 0 20px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.lms-demo-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: #0284c7; }
.lms-demo-lesson-list { display: grid; gap: 8px; }
.lms-demo-lesson-list .lms-course-button { margin-top: 0; cursor: default; }
.lms-demo-video { display: grid; place-items: center; gap: 12px; min-height: 260px; margin: 18px 0; padding: 24px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #294b75, #101c32 70%); color: #fff; text-align: center; }
.lms-demo-video-icon { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.12); font-size: 1.65rem; }
.lms-demo-video small { color: #cbd5e1; }
.lms-demo-materials { margin-top: 24px; }
.lms-demo-materials h3 { margin: 0 0 12px; }
.lms-demo-assessment, .lms-demo-certificate, .lms-demo-admin-preview { margin-top: 22px; }
.lms-demo-assessment details { margin-top: 14px; }
.lms-demo-assessment summary { color: #0369a1; font-weight: 700; cursor: pointer; }
.lms-demo-assessment .lms-student-question { margin-top: 12px; }
.lms-demo-admin-preview form { max-width: 580px; margin-top: 16px; }
.lms-demo-material-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.lms-demo-material { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #dbe5ef; border-radius: 10px; background: #f8fafc; }
.lms-demo-filetype { display: grid; place-items: center; min-height: 38px; border-radius: 7px; background: #fee2e2; color: #991b1b; font-size: .72rem; font-weight: 800; }
.lms-demo-material strong, .lms-demo-material small { display: block; }
.lms-demo-material small { margin-top: 3px; color: var(--text-secondary); }
.lms-demo-material em { color: #64748b; font-size: .75rem; font-style: normal; }
.lms-admin-shell { max-width: 1280px; }
.lms-admin-header-actions, .lms-section-heading, .lms-button-row { display: flex; align-items: center; gap: 10px; }
.lms-section-heading { justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.lms-section-heading p { color: var(--text-secondary); font-size: .82rem; }
.lms-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.lms-inline-check { margin: 10px 0; }
.lms-button-row { flex-wrap: wrap; }
.lms-table-wrap { width: 100%; overflow-x: auto; }
.lms-card table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.lms-card th, .lms-card td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; }
.lms-card th { color: #475569; font-size: .76rem; text-transform: uppercase; }
.lms-card td .btn { padding: 6px 9px; font-size: .78rem; }
.lms-page [hidden] { display: none !important; }
.lms-certificate-page .lms-shell { max-width: 1080px; }
.lms-certificate-actions { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }
.lms-certificate { padding: 14px; border: 3px solid #0e7490; background: linear-gradient(135deg, #ecfeff, #fff 38%, #f0f9ff); box-shadow: var(--shadow-md); }
.lms-certificate-inner { min-height: 590px; padding: 44px 54px; border: 1px solid #67e8f9; text-align: center; }
.lms-certificate-brand { margin: 0 0 28px; color: #0e7490; font-size: 1.1rem; font-weight: 900; letter-spacing: .04em; }
.lms-certificate-brand span { display: block; margin-top: 4px; color: #64748b; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lms-certificate .lms-eyebrow { margin-bottom: 4px; }
.lms-certificate h1 { margin: 0 0 24px; color: #0f172a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 4rem); }
.lms-certificate-copy { margin: 12px 0; color: #475569; font-size: 1.05rem; }
.lms-certificate h2 { margin: 14px 0; color: #0e7490; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.lms-certificate h3 { margin: 10px auto; color: #172033; font-size: clamp(1.2rem, 3vw, 1.8rem); }
.lms-certificate-workload, .lms-certificate-date { color: #475569; }
.lms-certificate-footer { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-top: 52px; text-align: left; }
.lms-certificate-signature { min-width: 210px; padding-top: 10px; border-top: 1px solid #64748b; color: #0e7490; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; }
.lms-certificate-signature small { display: block; color: #64748b; font-family: inherit; font-size: .74rem; font-weight: 400; }
.lms-certificate-footer p { margin: 0; color: #64748b; font-size: .72rem; text-align: right; }
.lms-certificate-footer strong { color: #172033; letter-spacing: .08em; }
.lms-certificate-help { color: var(--text-secondary); font-size: .88rem; text-align: center; }

@media (max-width: 850px) {
  .lms-course-layout, .lms-lesson-layout { grid-template-columns: 1fr; }
  .lms-course-list { position: static; }
  .lms-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lms-shell { padding-top: 34px; }
  .lms-auth-grid { grid-template-columns: 1fr; }
  .lms-card { padding: 18px; }
  .lms-page .nav-wrapper { gap: 10px; }
  .lms-page .brand-title { font-size: .95rem; }
  .lms-certificate-inner { min-height: 0; padding: 30px 20px; }
  .lms-certificate-footer { margin-top: 34px; }
  .lms-lesson-navigation { flex-direction: column; }
}

