/* MIRAD Academy V2 — student UI parity with the instructor design canon.
   Scoped exclusively to student shell, never modifies teacher, Classic, Aegis
   media player or quiz progression. The old-shell selectors below are a safe
   visual compatibility bridge until native shared React chrome is released. */
[data-theme='mirad-v2'] .mirad-v2-student-shell {
 --mirad-student-surface:#0e1017;
 --mirad-student-surface-raised:#141520;
 --mirad-student-border:#242632;
 --mirad-student-accent:#e03644;
 --mirad-student-muted:#a5a9b5;
 background:#07080f;
 color:#e4e4e7;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page h1,
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page h2,
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page h3 {
 font-family:'Oswald','Inter',system-ui,sans-serif;
 letter-spacing:.01em;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page-header h1 {
 font-family:'Oswald',system-ui,sans-serif;font-weight:800;line-height:1.1;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page :is(button,a) {
 transition:border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page :is(button,a):focus-visible,
[data-theme='mirad-v2'] .mirad-v2-student-shell :is(input,textarea,select):focus-visible {
 outline:2px solid #fda4af;outline-offset:2px;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
:is(section,article,div)[class*="bg-[#0d0f17]"][class*="rounded-2xl"] {
 background-color:#0e1017;border-color:#292a38;box-shadow:0 11px 30px rgba(0,0,0,.18);
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
:is(section,article,div)[class*="bg-[#141824]"][class*="rounded-xl"] {
 background-color:#151722;border-color:#2c2e3d;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
button[class*="bg-rose-600"]:not(:disabled) {
 background:#b62546;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
button[class*="bg-rose-600"]:not(:disabled):hover {
 background:#d33455;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
input[type="search"],
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
input[type="text"] {
 border-color:#303342;background-color:#12131d;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
:where(.mirad-rich-lecture) h2,
[data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page
:where(.mirad-rich-lecture) h3 {letter-spacing:normal}

/* Legacy deployed sidebar: bring it in line with instructor SourceSidebar.
   New shared React sidebar doesn't have this class, so these styles are inert
   after the native release. */
[data-theme='mirad-v2'] .mirad-v2-student-sidebar {
 width:256px!important;background:rgba(10,10,14,.96)!important;
 backdrop-filter:blur(20px);border-right:1px solid #1b1c26!important;
 box-shadow:5px 0 22px rgba(0,0,0,.16);
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar[data-collapsed='true'] {
 width:72px!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar > div:first-child {
 min-height:80px;border-color:#1b1c26!important;
 padding-inline:17px!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar > div:first-child > div:first-child > div:first-child {
 display:block;width:172px;height:34px;font-size:0!important;line-height:0!important;
 background:url('/brand/mirad-academy-wordmark-cropped.png') no-repeat left center/contain;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar > div:first-child > div:first-child > p {
 color:#a1a1aa!important;letter-spacing:.18em;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar nav {
 padding-top:16px!important;padding-inline:12px!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar nav > div + div {margin-top:18px}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar nav button {
 position:relative;border-radius:12px!important;
 font-size:12px!important;font-weight:500!important;
 min-height:42px;padding:10px 12px!important;
 border-color:transparent!important;color:#a1a1aa;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar nav button[aria-current="page"] {
 background:linear-gradient(90deg,#211116,#1b1218,#14141e)!important;
 border:1px solid rgba(244,63,94,.4)!important;
 color:#fda4af!important;
 box-shadow:0 0 18px rgba(224,54,68,.15);
 font-weight:700!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar nav button[aria-current="page"]::before {
 content:'';position:absolute;left:0;top:25%;height:50%;width:3px;
 border-radius:0 4px 4px 0;background:linear-gradient(#f43f5e,#c9a96e);
 box-shadow:0 0 8px rgba(244,63,94,.7);
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar nav button:hover:not([aria-current="page"]) {
 background:#141520!important;color:#f4f4f5!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar > div:last-child {
 background:rgba(8,8,12,.8)!important;border-top:1px solid #1b1c26!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-sidebar > div:last-child > button {
 border:1px solid #222332;background:#12131c!important;border-radius:12px;
 min-height:42px;padding:10px 12px!important;
}
/* Legacy deployed student header: align height, glass and borders. */
[data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type > header {
 position:sticky;top:0;z-index:20;
 min-height:64px!important;background:rgba(10,10,14,.85)!important;
 backdrop-filter:blur(20px);border-bottom:1px solid #1b1c26!important;
 padding-inline:clamp(16px,2.3vw,30px)!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type > header > div:first-child > div:last-child > div:first-child {
 font-size:10px;letter-spacing:.2em;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type > header > div:first-child > div:last-child > div:last-child {
 font-size:13px!important;letter-spacing:.02em;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type > header > button {
 border-color:#272a39!important;background:#141520!important;
 min-height:40px;border-radius:11px;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type > header > button:hover {
 color:white;background:#1a1b28!important;border-color:#b8335b!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type > footer {
 border-color:rgba(48,48,59,.6)!important;
}
@media(max-width:1023px) {
 [data-theme='mirad-v2'] .mirad-v2-student-sidebar {transform:translateX(-102%)!important;}
 [data-theme='mirad-v2'] .mirad-v2-student-sidebar.is-mobile-open {
  transform:translateX(0)!important;width: min(320px,86vw)!important;
 }
 [data-theme='mirad-v2'] .mirad-v2-student-shell > div:last-of-type {
  padding-left:0!important;
 }
}
@media(min-width:1024px) {
 [data-theme='mirad-v2'] .mirad-v2-student-sidebar {
  transform:translateX(0)!important;
 }
}
@media(max-width:640px) {
 [data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-app-shell__main {
  padding:16px 12px 30px;
 }
 [data-theme='mirad-v2'] .mirad-v2-student-shell .mirad-v2-student-page-header h1 {font-size:28px}
}
@media(prefers-reduced-motion:reduce) {
 [data-theme='mirad-v2'] .mirad-v2-student-shell :is(button,a) {transition:none!important}
}

/* Existing (pre-native-release) student page surfaces: unify with dashboard
   instructor palette without changing their content, actions or visibility. */
[data-theme='mirad-v2'] .mirad-v2-student-shell main .font-heading {
 font-family:'Oswald',system-ui,sans-serif!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell main :is(div,article,section)[class*='bg-[#0d0f17]'][class*='rounded-2xl'] {
 background:#0e1017!important;
 border-color:#292c38!important;
 box-shadow:0 10px 32px rgba(0,0,0,.2);
}
[data-theme='mirad-v2'] .mirad-v2-student-shell main :is(div,article,section)[class*='bg-[#141824]'][class*='rounded-xl'] {
 background:#141520!important;
 border-color:#2a2d3b!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell main h1.font-heading {
 letter-spacing:.012em!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell main button[class*='bg-rose-600']:not(:disabled) {
 background:#b62546!important;
}
[data-theme='mirad-v2'] .mirad-v2-student-shell main button[class*='bg-rose-600']:not(:disabled):hover {
 background:#d33455!important;
}
