/* QAYEM_OWNER_PASSWORD_REQUIRED — Owner: محمد قيم. Follow AGENTS.md. */
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] :is(.stat strong,.header-avatar,.academy-brand){color:var(--ink)}
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] :is(.chapter-index,.stat-icon,.promo-icon,.tag.red-tag,.demo-code){color:#ffa1a9}
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] :is(.btn.primary,.filter-chip.active){background:var(--qayem-action);border-color:#d6475c;color:#fff}
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] :is(.btn.dark,.learning-lesson.active){background:#4b2531;border-color:#86505e;color:#ffe3e6}
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) 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:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] :is(input,select,textarea){background:var(--white);color:var(--ink);border-color:var(--line)}
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] :is(.course-detail-hero,.student-hero){color:#fff8f5}
html:is([data-academy-appearance="dark"],[data-academy-appearance="red"]) body[data-app-mode="student"] .course-detail-hero p{color:#f4d7d7}
html[data-academy-appearance="dark"] body[data-app-mode="student"]{--paper:#111214;--white:#1b1d20;--ink:#f5f5f6;--muted:#b6b8bf;--line:#373a40;--nav:#151619;--qayem-raised:#272a30;--qayem-hover:#30343b;--qayem-action:#c9182b}
html[data-academy-appearance="red"] body[data-app-mode="student"]{--paper:#20070b;--white:#340d14;--ink:#fff4f1;--muted:#e6b2b7;--line:#75313d;--nav:#30080e;--qayem-raised:#4c1521;--qayem-hover:#661e2c;--qayem-action:#df102c}
html[data-academy-appearance="light"] body[data-app-mode="student"]{color-scheme:light;--paper:#fff7f1;--white:#fffdfa;--ink:#24191d;--muted:#78666d;--line:#edd6d2;--red:#c60c20;--red-dark:#a70616;--qayem-action:#c60c20}
html[data-academy-appearance="dark"] body[data-app-mode="student"] #academySidebar{background:linear-gradient(180deg,#24262c,#121316)!important}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar{background:linear-gradient(180deg,#fffaf6,#f2e5df)!important;color:#2a171b}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar :is(.sidebar-top p,.eyebrow,.nav-link,.site-return,.sidebar-copyright){color:#69434b}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar :is(.sidebar-top strong,.nav-link.active){color:#981123}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar .nav-link.active{background:#f9dfe1;border-color:#e4a3aa}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar .nav-link:hover{background:#f5dadd}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar .sidebar-tip{background:#f7e9e5;border-color:#e4c9c4;color:#47272f}
html[data-academy-appearance="light"] body[data-app-mode="student"] #academySidebar .sidebar-tip p{color:#78545c}
html body .student-hero .student-hero-copy p{font-weight:400!important;font-synthesis:none;line-height:1.65}
html body .trainee-signup{padding-block:clamp(40px,5vw,64px)!important;margin-block:0!important;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
html body .trainee-signup h2{margin:0}
html body .trainee-signup p{margin:9px 0 0}
html body .trainee-signup .btn{margin:19px 0 0}
#academySidebar{scrollbar-width:thin;scrollbar-color:#e52235 transparent}
#academySidebar::-webkit-scrollbar{width:7px}
#academySidebar::-webkit-scrollbar-track{background:transparent}
#academySidebar::-webkit-scrollbar-thumb{background:#e52235;border-radius:10px}
#academySidebar::-webkit-scrollbar-thumb:hover{background:#ff4355}
.q-theme-control{position:relative;flex-shrink:0}
.q-theme-button,.q-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:var(--white);color:var(--ink);font:inherit;font-size:13px}
.q-theme-dot{width:12px;height:12px;border:2px solid currentColor;border-radius:50%;background:var(--qayem-action,#c9182b)}
.q-theme-menu{position:absolute;inset-inline-end:0;top:calc(100% + 9px);min-width:142px;padding:6px;border-radius:16px;border:1px solid var(--line);background:var(--white);color:var(--ink);box-shadow:0 15px 35px #0003;z-index:60;display:grid;gap:4px}
.q-theme-menu button{font:inherit;text-align:start;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:9px 12px;border:0;background:transparent;color:inherit;border-radius:10px}
.q-theme-menu button:hover,.q-theme-menu button[aria-checked="true"]{background:var(--qayem-raised,#f4e4e0)}
.q-theme-menu button[aria-checked="true"]::after{content:'✓';color:#e52235}
.q-sidebar-toggle{width:40px;padding:8px;border-radius:12px;flex-shrink:0}
.q-sidebar-toggle svg{width:20px;height:20px}
@media(min-width:721px){
 .academy-shell{transition:grid-template-columns .35s cubic-bezier(.22,1,.36,1)}
 html.q-sidebar-collapsed body[data-app-mode="student"] .academy-shell{grid-template-columns:0 minmax(0,1fr)}
 html.q-sidebar-collapsed body[data-app-mode="student"] #academySidebar{padding-inline:0;opacity:0;visibility:hidden;overflow:hidden;pointer-events:none;min-width:0}
 #academySidebar{transition:opacity .2s,padding .35s;min-width:0}
}
@media(max-width:720px){.q-sidebar-toggle{display:none}.q-theme-button{min-height:34px;padding:6px 9px;font-size:11px}.q-theme-button .q-theme-dot{width:9px;height:9px}.q-theme-menu{min-width:125px}.academy-header .header-actions{gap:7px}}
/* The CTA opens a luminous aperture around its arrow. */
html body .student-hero .q-discover{position:relative;isolation:isolate;overflow:visible;gap:18px;border-radius:18px 40px 40px 18px!important;padding:9px 22px 9px 9px!important;min-height:58px;background:linear-gradient(115deg,#34000b,#9c061d)!important;border:1px solid #ff9ca5!important;color:#fff!important;box-shadow:0 10px 26px #43000b55,inset 0 1px 0 #ffffff25;transform:translateZ(0);animation:q-cta-arrive .75s cubic-bezier(.2,.8,.2,1) both;transition:transform .3s,box-shadow .3s}
.q-discover::before{content:'';position:absolute;inset:-5px;border:1px solid #ff919977;border-radius:23px 45px 45px 23px;transform:rotate(-3deg);z-index:-1;transition:transform .5s,border-color .3s;pointer-events:none}
.q-discover::after{content:'';position:absolute;inset:1px;border-radius:inherit;background:linear-gradient(110deg,transparent 20%,#ffb2bb44 48%,transparent 70%);background-size:260% 100%;animation:q-cta-sheen 5s ease-in-out infinite;pointer-events:none}
.q-discover-label{position:relative;z-index:1}
.q-discover-orbit{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff1ef,#ff788a 36%,#c60a29 70%);box-shadow:0 0 20px #ff2f6180;flex-shrink:0;transition:transform .5s;z-index:1}
.q-discover-orbit::before{content:'';position:absolute;inset:-5px;border:1px solid #ffb9c6;border-radius:50%;transform:rotate(-35deg) scaleY(.48);transition:transform .6s}
.q-discover-orbit svg{color:#44000d;width:19px;height:19px;stroke-width:2}
@media(hover:hover){html body .student-hero .q-discover:hover{transform:translateY(-3px);box-shadow:0 15px 35px #e51d4d55,inset 0 1px 0 #fff4}.q-discover:hover::before{transform:rotate(2deg) scale(1.025);border-color:#ffb4be}.q-discover:hover .q-discover-orbit{transform:rotate(-12deg) scale(1.08)}.q-discover:hover .q-discover-orbit::before{transform:rotate(145deg) scaleY(.48)}}
html body .student-hero .q-discover:active{transform:translateY(1px) scale(.97)}
@keyframes q-cta-arrive{from{opacity:0;transform:translateY(12px) rotate(2deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes q-cta-sheen{0%,40%{background-position:140% 0}75%,100%{background-position:-100% 0}}
.q-page-transition{position:fixed;inset:0;z-index:90;pointer-events:none;overflow:hidden;visibility:hidden}
.q-page-transition i{position:absolute;inset:0;background:linear-gradient(115deg,#65000c,#d30c27 55%,#ff4760);transform:translateX(110%) skewX(-12deg);box-shadow:-30px 0 80px #fd3c5c88}
.q-page-transition i:nth-child(2){background:linear-gradient(115deg,#300008,#b50620);opacity:.85}
.q-page-transition.q-playing{visibility:visible}
.q-page-transition.q-playing i{animation:q-red-wipe .7s cubic-bezier(.7,0,.3,1) both}
.q-page-transition.q-playing i:nth-child(2){animation-delay:.045s}
@keyframes q-red-wipe{0%{transform:translateX(110%) skewX(-12deg)}43%,53%{transform:translateX(0) skewX(0)}100%{transform:translateX(-110%) skewX(-12deg)}}
@media(prefers-reduced-motion:reduce){.academy-shell,#academySidebar,.q-discover,.q-discover::before,.q-discover-orbit,.q-discover-orbit::before{animation:none!important;transition:none!important}.q-discover::after{animation:none!important;background:none}.q-page-transition{display:none!important}}
/* Keep the artwork's 3105 × 749 canvas; scale the copy with that canvas. */
body[data-app-mode="student"] #workspace{container-name:academy-workspace;container-type:inline-size}
@media(min-width:801px){
 html body[data-app-mode="student"] .student-hero{
  position:relative;container-type:inline-size;aspect-ratio:3105/749!important;
  height:auto!important;min-height:0!important;padding:0!important;display:block!important;
  background-image:url('../qayem-cover-brand/motion.svg?v=4')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
 }
 html body .student-hero .student-hero-copy{
  position:absolute;top:50%;right:3.8%;left:auto;bottom:auto;transform:translateY(-50%);
  width:46%;max-width:46%;min-width:0;margin:0!important;padding:0!important;background:transparent;
 }
 html body .student-hero .student-hero-copy h2{font-size:2.65cqw!important;line-height:1.18;margin:.55cqw 0!important;overflow-wrap:normal}
 html body .student-hero .student-hero-copy p{font-size:1.06cqw!important;line-height:1.5;margin:.5cqw 0 .9cqw!important;max-width:none;font-weight:400!important}
 html body .student-hero .student-hero-copy .eyebrow{font-size:.85cqw!important;line-height:1.4;letter-spacing:.12cqw}
 html body .student-hero .student-hero-copy .btn{
  box-sizing:border-box;font-size:1.12cqw!important;line-height:1.4;min-height:0!important;height:3.8cqw;
  padding:.45cqw 1.25cqw!important;margin:.5cqw 0 0!important;gap:1cqw;white-space:nowrap;max-width:100%;
 }
 html body .student-hero .student-hero-copy .q-discover{padding:.45cqw 1.25cqw .45cqw .45cqw!important;border-radius:1.2cqw 2.7cqw 2.7cqw 1.2cqw!important}
 html body .student-hero .q-discover-orbit{width:2.6cqw;height:2.6cqw}
 html body .student-hero .q-discover-orbit svg{width:1.35cqw;height:1.35cqw}
 html body .student-hero .q-discover-orbit::before{inset:-.3cqw}
 html body .student-hero .q-discover::before{inset:-.35cqw;border-radius:1.5cqw 3cqw 3cqw 1.5cqw}
}
@media(prefers-reduced-motion:reduce) and (min-width:801px){html body[data-app-mode="student"] .student-hero{background-image:url('../qayem-cover-brand/cover.webp')!important}}
html body #traineeShowcase.q-has-intro{margin-bottom:0!important;padding-bottom:0!important}
html body .q-course-intro{width:min(100%,1180px);margin:0 auto!important;padding:clamp(24px,3cqw,48px) 0 0!important}
.q-course-intro-frame{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:clamp(16px,2.5cqw,36px);background:#31090f;border:1px solid #b7314444}
.q-course-intro-frame iframe{display:block;width:100%;height:100%;border:0;position:absolute;inset:0}
html body .trainee-signup{box-sizing:border-box;min-height:clamp(300px,27cqw,420px);padding-block:64px!important;margin:0!important;justify-content:center}
html body .trainee-reviews:has(+ .trainee-signup){margin-bottom:0!important}
html body .trainee-signup + .stats-grid{margin-top:0!important}
@media(max-width:540px){html body .trainee-signup{min-height:280px;padding-block:48px!important}}
/* Red appearance sampled from the supplied reference. */
html[data-academy-appearance="red"] body[data-app-mode="student"]{
 --paper:#98070f;--muted:#ffd2d4;
 background:linear-gradient(110deg,#bd0d15 0%,#ac0a13 25%,#98070f 50%,#81050b 75%,#70040a 100%) fixed!important;
}
