/* QAYEM_OWNER_PASSWORD_REQUIRED — Owner: محمد قيم. Follow AGENTS.md. */
.academy-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:.45rem;min-height:39px;padding:.35rem .75rem;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:var(--white);cursor:pointer;font:inherit;font-size:.82rem}
.academy-theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.academy-theme-toggle:focus-visible{outline:2px solid var(--red);outline-offset:3px}
@media(max-width:540px){.academy-theme-toggle{width:36px;min-height:36px;padding:0}.academy-theme-toggle span{display:none}}
html[data-academy-appearance="dark"] body[data-app-mode="student"]{
  color-scheme:dark;
  --paper:#170f12;--white:#23171b;--ink:#fff4ee;--muted:#c7adb4;--line:#573640;
  --red:#fa8c96;--red-dark:#ae2538;--nav:#190e12;--green:#86e0b6;
  --qayem-raised:#2c1c22;--qayem-hover:#352129;--qayem-action:#b9233a;
  color:var(--ink);background:var(--paper)
}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.academy-header,.empty-state,.stat,.activation-promo,.course-card,.chapter,.learning-list,.resource-link,.filter-chip,.mode-button,.editor-dialog,.admin-site-link){
  background:var(--white);color:var(--ink);border-color:var(--line)
}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.panel,.quick-card,.course-card,.chapter,.continue-card){border-color:var(--line);box-shadow:0 5px 20px #0002}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.stat strong,.header-avatar,.academy-brand){color:var(--ink)}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.lesson-row,.stat-icon,.promo-icon,.chapter-index,.header-avatar,.progress-track,.tag){background:var(--qayem-raised);border-color:var(--line)}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.page-breadcrumb,.course-meta>small,.course-facts,.tag,.price small,.learning-list summary small,.sidebar-top p){color:var(--muted)}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.chapter-index,.stat-icon,.promo-icon,.tag.red-tag,.demo-code){color:#ffa1a9}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.mode-button:hover,.btn:hover,.resource-link:hover,.lesson-row:hover,.academy-theme-toggle:hover){background:var(--qayem-hover);color:var(--ink);border-color:#935362}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.btn.primary,.filter-chip.active){background:var(--qayem-action);border-color:#d6475c;color:#fff}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.btn.dark,.learning-lesson.active){background:#4b2531;border-color:#86505e;color:#ffe3e6}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.tag.green,.complete-btn.completed,.learning-lesson.done .status-circle){background:#19372d;border-color:#3c715e;color:var(--green)}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(input,select,textarea){background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-academy-appearance="dark"] body[data-app-mode="student"] :is(.course-detail-hero,.student-hero){color:#fff8f5}
html[data-academy-appearance="dark"] body[data-app-mode="student"] .course-detail-hero p{color:#f4d7d7}
