/* AB Inc. Academy interface themes. Slide images and third-party video content are not modified. */
:root{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f6f5fa;--panel:#fff;--panel2:#f3eff9;--hair:#dcd5e8;--line:#dcd5e8;--ink:#251b38;--text:#251b38;--muted:#625c70;--green:#08765c;--purple:#7033b4;--pink:#bc2078}
html[data-theme="light"] body{background:#f6f5fa!important;color:#251b38!important}
html[data-theme="light"] .sidebar{background:#ffffff;color:#251b38;border-color:#dfd7e9}
html[data-theme="light"] .topbar,html[data-theme="light"] header{background:rgba(255,255,255,.97)!important;color:#251b38;border-color:#ded6e8}
html[data-theme="light"] .brand strong,html[data-theme="light"] .topbar .path b{color:#241934}
html[data-theme="light"] .topbar .path,html[data-theme="light"] .chapter-btn,html[data-theme="light"] .slide-link{color:#514764}
html[data-theme="light"] .chapter-btn:hover,html[data-theme="light"] .slide-link:hover{background:#eee6f5;color:#2a1b3b}
html[data-theme="light"] .slide-link.active{background:#e6d4f3;color:#36144c;box-shadow:inset 3px 0 #8f40c5}
html[data-theme="light"] .slide-number,html[data-theme="light"] .chapter-btn .count{color:#685c7b}
html[data-theme="light"] .card,html[data-theme="light"] .resource-card,html[data-theme="light"] .video-card,html[data-theme="light"] .assessment-shell,html[data-theme="light"] .course,html[data-theme="light"] section:not(.hero),html[data-theme="light"] .panel{background:#ffffff;color:#251b38;border-color:#ded5e8;box-shadow:0 8px 25px #1e10200c}
html[data-theme="light"] .card-head,html[data-theme="light"] .card-controls,html[data-theme="light"] .sidebar-foot{border-color:#ded6e8}
html[data-theme="light"] .slide-frame{background:#eae7ef}
html[data-theme="light"] .slide-frame img{box-shadow:0 9px 25px #26152d25}
html[data-theme="light"] .video-library{background:radial-gradient(circle at 85% 5%,#f5e6fa,#f9f7fd 65%)}
html[data-theme="light"] .video-library h3,html[data-theme="light"] .video-choice .choice-title{color:#2b1b3d}
html[data-theme="light"] .video-library .library-instruction{color:#635872}
html[data-theme="light"] .video-choice{background:#f6f1fa;color:#251b38;border-color:#d5c0e6}
html[data-theme="light"] .video-choice:hover{background:#ebe0f5;border-color:#b277d4}
html[data-theme="light"] .video-choice .choice-index,html[data-theme="light"] .video-choice .choice-action{color:#77349d}
html[data-theme="light"] .video-toolbar,html[data-theme="light"] .video-help{background:#f3edf8;color:#40324e;border-color:#d8cae5}
html[data-theme="light"] .video-toolbar .now-playing{color:#342442}
html[data-theme="light"] .video-toolbar button{background:#fff;color:#432656;border-color:#bc9ccc}
html[data-theme="light"] .video-help a{color:#79309f}
html[data-theme="light"] .video-card-header,html[data-theme="light"] .video-card-footer{background:#fff}
html[data-theme="light"] .video-card-title{color:#281935}
html[data-theme="light"] .video-card-meta{color:#625073}
html[data-theme="light"] .video-player{background:#f0e9f7}
html[data-theme="light"] .viewer-switch,html[data-theme="light"] .ghost{background:#f5f1fa;border-color:#cdbcd9;color:#392347}
html[data-theme="light"] .viewer-switch[aria-pressed="true"]{background:linear-gradient(110deg,#7335a9,#af2879);color:#fff;border-color:#9c55c3}
html[data-theme="light"] .resource{background:#f6f1fa;border-color:#ded2e8;color:#4a295e}
html[data-theme="light"] .resource:hover{background:#ebe0f3}
html[data-theme="light"] .assessment-shell,html[data-theme="light"] .final-callout{background:#fff;color:#281935;border-color:#d2b5df}
html[data-theme="light"] .assessment-badge,html[data-theme="light"] .quiz-option,html[data-theme="light"] .answer-option{background:#f6f1fa;color:#352343;border-color:#d9c7e5}
html[data-theme="light"] .progress-rail{background:#ded5e7}
html[data-theme="light"] .status{color:#52615c}
html[data-theme="light"] .control-group .counter,html[data-theme="light"] .viewer-footnote{color:#60546d}
html[data-theme="light"] .metric{background:#fff;border-color:#ddd4e8;color:#251b38}
html[data-theme="light"] .course{background:#fff;border-color:#ddd4e8}
html[data-theme="light"] .course p,html[data-theme="light"] .section-head p,html[data-theme="light"] .sub{color:#655a72}
html[data-theme="light"] .course .meta{color:#62566e;border-color:#e3dce9}
html[data-theme="light"] .course .cover{background:radial-gradient(ellipse at 80% 10%,#edd6f2,#eadff3 55%,#e4dcef)}
html[data-theme="light"] .course .cover span{color:#47215e}
html[data-theme="light"] .note{background:#f3edf8;border-color:#d5c5e0;color:#54465f}
html[data-theme="light"] .note b{color:#382146}
html[data-theme="light"] .disabled{background:#eae4ef;color:#655a72}
html[data-theme="light"] .offline{color:#573877;border-color:#c9b0d7}
html[data-theme="light"] footer{color:#6c5c78}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{background:#fff;color:#241b30;border:1px solid #c8b8d9}
html[data-theme="light"] input::placeholder{color:#786b81}
html[data-theme="light"] button:not(.btn-main):not(.open):not(.theme-toggle):not(.viewer-switch):not(.ghost):not(.video-choice):not(.video-load){color:inherit}
html[data-theme="light"] .login-panel,html[data-theme="light"] form:has(>label) {color:#251b38}
html[data-theme="light"] .muted,html[data-theme="light"] label{color:#62566e}
html[data-theme="light"] table th{color:#62556e}html[data-theme="light"] td,html[data-theme="light"] th{border-color:#e2d9e8}
html[data-theme="light"] .video-frame-shell,html[data-theme="light"] .video-starter,html[data-theme="light"] .unified-video-wrap{background:#151019}
/* Keep slides, YouTube iframes, and enlarged slide presentation visually identical to originals. */
html[data-theme="light"] .lightbox{background:rgba(0,0,0,.93)}
.theme-toggle{position:fixed;right:22px;bottom:22px;z-index:1000;display:flex;align-items:center;gap:9px;padding:12px 17px;border:1px solid #aa80c7;border-radius:999px;background:#30203e;color:#fff;font:700 13px 'Segoe UI',Arial,sans-serif;box-shadow:0 7px 25px #0004;cursor:pointer}
.theme-toggle:hover{filter:brightness(1.1)}.theme-toggle:focus-visible{outline:3px solid #cb7df7;outline-offset:3px}
html[data-theme="light"] .theme-toggle{background:#fff;color:#51226e;border-color:#c6a5d8;box-shadow:0 5px 18px #48305b20}
@media(max-width:600px){.theme-toggle{bottom:14px;right:14px;padding:10px 13px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none!important}}

/* V13.4: accessible navigation controls in light mode */
html[data-theme="light"] .check-nav {
  background:#f3eafa;
  color:#39234f;
  border:1px solid #b98bd0;
  font-weight:700;
}
html[data-theme="light"] .check-nav:hover,
html[data-theme="light"] .check-nav:focus-visible {
  background:#e9d8f5;
  color:#2b1640;
  border-color:#8e4aa9;
}
html[data-theme="light"] .check-nav.done {
  background:#e6f6ef;
  color:#12604c;
  border-color:#64ab90;
}
html[data-theme="light"] .check-nav.quiz-disabled {
  color:#514462;
  background:#efedf4;
  border-color:#cec3d8;
}
html[data-theme="light"] .sidebar .mini-result,
html[data-theme="light"] #progressLabel,
html[data-theme="light"] .sidebar-assessments p {
  color:#514561!important;
}
html[data-theme="light"] .quiz-option:has(input:checked),
html[data-theme="light"] .answer-option:has(input:checked) {
  background:#e6d5f3;
  color:#271337;
  border-color:#8842b1;
}
html[data-theme="light"] .quiz-result {
  color:#30213e;
  background:#f3eef9;
  border-color:#cdb6de;
}
html[data-theme="light"] .quiz-result p,
html[data-theme="light"] .review-row,
html[data-theme="light"] .review-row .source,
html[data-theme="light"] .quiz-helper,
html[data-theme="light"] .assessment-progress {
  color:#4f415d;
}
html[data-theme="light"] .quiz-result.passed {
  background:#e6f5ed;
  border-color:#66a98a;
  color:#16533f;
}
html[data-theme="light"] .quiz-result.failed {
  background:#fff0f0;
  border-color:#cc888c;
  color:#7b2632;
}
html[data-theme="light"] .resource-card .note {color:#554762}

/* AB Inc. Academy V13.7: consistent light-mode readability */
html[data-theme="light"] .sidebar .check-nav,
html[data-theme="light"] .sidebar button.check-nav,
html[data-theme="light"] .check-nav {
  background:#eee5f5!important;
  color:#402450!important;
  border:1px solid #c3a5d8!important;
  opacity:1!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-weight:700!important;
  cursor:pointer;
}
html[data-theme="light"] .sidebar .check-nav:hover,
html[data-theme="light"] .sidebar .check-nav:focus-visible {
  background:#e0caed!important;
  color:#291339!important;
  border-color:#9d60bd!important;
}
html[data-theme="light"] .sidebar .check-nav.done {
  background:#e4f3eb!important;
  color:#165b44!important;
  border-color:#91c5ad!important;
}
html[data-theme="light"] .sidebar .check-nav:disabled {
  background:#f0edf4!important;
  color:#5c5069!important;
  opacity:1!important;
}
/* Course/catalog layouts are transparent containers, not white content cards. */
html[data-theme="light"] body section.personal-dashboard,
html[data-theme="light"] body section.grid,
html[data-theme="light"] body section.hero,
html[data-theme="light"] body .personal-dashboard,
html[data-theme="light"] body .grid {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#291d38;
}
html[data-theme="light"] .personal-dashboard h2,
html[data-theme="light"] .section-head h2 {color:#251831}
html[data-theme="light"] .course,
html[data-theme="light"] .learning-stat,
html[data-theme="light"] .learning-panel,
html[data-theme="light"] .activity-item {
  background:#fff!important;
  border:1px solid #ded4e9!important;
  box-shadow:0 4px 16px rgba(50,22,70,.045)!important;
}
/* Administrator actions: separate primary Create from reversible Disable/Enable. */
html[data-theme="light"] body.academy-admin .admin-create-action {
 background:#7642a1!important;color:#fff!important;border:1px solid #7642a1!important;
 font-weight:700;border-radius:8px;padding:10px 16px;
}
html[data-theme="light"] body.academy-admin .admin-create-action:hover,
html[data-theme="light"] body.academy-admin .admin-create-action:focus-visible {background:#5b2d82!important;color:#fff!important}
html[data-theme="light"] body.academy-admin .admin-disable-action {
 background:#f5e9eb!important;color:#8b314a!important;border:1px solid #d8a5b2!important;
 font-weight:700;border-radius:8px;padding:9px 14px;
}
html[data-theme="light"] body.academy-admin .admin-disable-action:hover,
html[data-theme="light"] body.academy-admin .admin-disable-action:focus-visible {background:#ead0d7!important;color:#682039!important}
html[data-theme="light"] body.academy-admin .admin-enable-action {
 background:#e6f3ed!important;color:#16634d!important;border:1px solid #9ecbb8!important;
 font-weight:700;border-radius:8px;padding:9px 14px;
}
html[data-theme="light"] body.academy-admin .admin-enable-action:hover {background:#cfeadd!important;color:#104b39!important}

/* V13.11: do not paint the My Courses section as a white full-width card */
html[data-theme="light"] body section.learning-path,
html[data-theme="light"] body section.learning-path .path-heading{background:transparent!important;border:0!important;box-shadow:none!important;color:#291c38}
html[data-theme="light"] body section.learning-path{padding:0!important}
html[data-theme="light"] .path-course,html[data-theme="light"] .path-next,html[data-theme="light"] .future-path{background:#fff!important;border:1px solid #ded2e7!important;border-radius:15px!important}
