/* Integration boundaries only. The approved design rules live unchanged in the scoped stylesheet. */
body:has(#studentPortal.active){margin:0;background:#091424}
body #studentPortal.portal-page.active{display:block!important;padding:0!important;margin:0!important;min-height:100dvh;width:100%!important}
body #studentPortal>.portal-sidebar,body #studentPortal>.portal-main,body #studentPortal>.portal-mobile-identity-bar{display:none!important}
#studentPortal #approvedStudentShell{display:block;isolation:isolate;min-height:100dvh;background:var(--bg);color:var(--ink);font:16px/1.6 'DM Sans',system-ui,sans-serif}
#studentPortal #approvedStudentShell .ambient{z-index:-1}
#studentPortal #approvedStudentShell .connected-legacy-view{display:block!important;padding:0!important;margin:0!important;background:transparent;max-width:none!important;height:auto!important;min-height:0!important;overflow:visible!important}
#studentPortal #approvedStudentShell .connected-legacy-view .portal-heading{margin-bottom:25px}
#studentPortal #approvedStudentShell .connected-legacy-view :is(h1,h2,h3,h4,strong){color:var(--ink)}
#studentPortal #approvedStudentShell .connected-legacy-view p{color:var(--muted)}
#studentPortal #approvedStudentShell .connected-legacy-view .portal-card{background:linear-gradient(135deg,#ffffff09,transparent 60%),var(--panel);color:var(--ink);border-color:var(--edge)}
#studentPortal #approvedStudentShell .connected-legacy-view .shell-section-links{display:none}
#studentPortal #approvedStudentShell .connected-legacy-view :is(.flashcard-layout,.baseline-grid,.payment-grid){gap:20px}
#studentPortal #approvedStudentShell .connected-legacy-view .flashcard{background:var(--panel);color:var(--ink)}
#studentPortal #approvedStudentShell .connected-legacy-view .flashcard-back{white-space:pre-wrap}
#studentPortal #approvedStudentShell .connected-legacy-view .nclex-exhibits{color:#14263a;background:#f4f8fb}
#studentPortal #approvedStudentShell .connected-legacy-view .nclex-exhibits :is(h2,h3,h4,strong,p){color:#14263a}
#studentPortal #approvedStudentShell .mobile-bottom{margin:0}
/* Original NGN controls retain their handlers; use the approved surfaces and readable labels. */
#studentPortal #approvedStudentShell [data-exam-questions] .exam-question{background:var(--panel)!important;color:var(--ink)!important;border:1px solid var(--edge)!important;border-radius:16px;padding:24px;min-width:0}
#studentPortal #approvedStudentShell [data-exam-questions] legend{color:var(--ink)!important;background:transparent!important;font:600 19px/1.6 Manrope,system-ui,sans-serif;float:none;width:100%;padding:0;margin-bottom:20px;position:static}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-item-instruction,.nclex-order-guidance,.nclex-selection-guidance,.nclex-matrix-guidance){color:var(--muted)!important}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-order-list li,.nclex-options label,.nclex-bow-bank,.nclex-bow-target){background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--edge);border-radius:12px}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-order-text,.nclex-options span,.nclex-options b){color:var(--ink)!important}
#studentPortal #approvedStudentShell [data-exam-questions] button{background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:10px;min-height:44px;min-width:44px}
#studentPortal #approvedStudentShell [data-exam-questions] .assessment-question-palette{display:flex!important;flex-wrap:wrap!important;gap:8px!important;grid-template-columns:none!important}
#studentPortal #approvedStudentShell [data-exam-questions] .assessment-question-palette button{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;padding:0!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font:500 14px/1 'DM Sans',system-ui,sans-serif!important}
#studentPortal #approvedStudentShell [data-exam-questions] .assessment-question-palette button.is-current{background:var(--mint);color:var(--bg)}
#studentPortal #approvedStudentShell [data-exam-questions] .assessment-question-palette button.is-answered{border-color:var(--mint)}
#studentPortal #approvedStudentShell [data-exam-questions] .assessment-question-progress{color:var(--muted)}
#studentPortal #approvedStudentShell [data-exam-questions] .assessment-question-progress em{background:var(--surface);color:var(--ink);border-color:var(--edge)}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-order-rank{background:var(--mint);color:var(--bg)}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-exhibits{background:var(--surface);color:var(--ink)}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-exhibits :is(h2,h3,h4,strong,p){color:var(--ink)}
#studentPortal #approvedStudentShell [data-exam-questions] input{accent-color:var(--mint)}
@media(max-width:650px){#studentPortal #approvedStudentShell [data-exam-questions] .exam-question{padding:16px}#studentPortal #approvedStudentShell [data-exam-questions] legend{font-size:17px}}

#studentPortal #approvedStudentShell [hidden]{display:none!important}

#studentPortal #approvedStudentShell[hidden]{display:none!important}
#studentPortal #approvedStudentShell .connected-legacy-view .runner-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
#studentPortal #approvedStudentShell .connected-legacy-view .runner-actions{display:flex;align-items:center;flex:0 0 auto;gap:10px;flex-wrap:wrap}
#studentPortal #approvedStudentShell .connected-legacy-view .runner-actions button{width:auto!important;min-width:144px;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;padding:10px 15px;flex-shrink:0}
#studentPortal #approvedStudentShell .connected-legacy-view .runner-actions strong{background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:12px;padding:10px 15px;font-variant-numeric:tabular-nums}
#studentPortal #approvedStudentShell [data-exam-questions] .exam-question legend{float:left;margin:0 0 20px}
#studentPortal #approvedStudentShell [data-exam-questions] .exam-question legend+*{clear:both}
#studentPortal #approvedStudentShell .connected-legacy-view .exam-runner-card{border-top:1px solid var(--edge)}
#studentPortal #approvedStudentShell .connected-legacy-view .exam-runner-card::before{display:none}
/* Video header uses the same transparent glass surface as its player dialog. */
#videoLessonDialog > .gamma-slide-header{background:transparent;border-bottom:1px solid rgba(186,222,246,.22);padding:0 0 18px;margin-bottom:18px}
#videoLessonDialog > .gamma-slide-header :is(h2,span){color:#eaf4ff}
#videoLessonDialog > .gamma-slide-header span{color:#b8d3e4}
#videoLessonDialog > .gamma-slide-header button{background:rgba(170,211,235,.12);border:1px solid rgba(186,222,246,.3);color:#eaf4ff;min-height:42px}
#videoLessonDialog > .gamma-slide-header button:hover{background:rgba(114,227,203,.2);color:#fff;border-color:rgba(114,227,203,.55)}
/* Assessment confirmation matches the portal glass theme; original actions are retained. */
#assessmentExitDialog{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:28px;border:1px solid rgba(186,222,246,.26);border-radius:24px;color:#edf6ff;background:linear-gradient(135deg,rgba(36,66,86,.9),rgba(16,35,55,.95));box-shadow:0 24px 80px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.1);-webkit-backdrop-filter:blur(32px) saturate(150%);backdrop-filter:blur(32px) saturate(150%)}
#assessmentExitDialog::backdrop{background:rgba(3,12,22,.58);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
#assessmentExitDialog>span{color:#82e5d0;font:700 11px/1.5 'DM Sans',system-ui,sans-serif;letter-spacing:.16em}
#assessmentExitDialog h2{margin:12px 0 16px;color:#edf6ff;font:700 clamp(23px,3vw,28px)/1.3 Manrope,system-ui,sans-serif;letter-spacing:-.025em}
#assessmentExitDialog p{color:#bdd0df;font:400 15px/1.7 'DM Sans',system-ui,sans-serif}
#assessmentExitDialog .assessment-exit-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}
#assessmentExitDialog .assessment-exit-actions button{min-height:46px;border-radius:12px;padding:12px 18px;color:#edf6ff;background:rgba(170,211,235,.1);border:1px solid rgba(186,222,246,.3);font:600 14px/1.4 'DM Sans',system-ui,sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
#assessmentExitDialog .assessment-exit-actions [data-assessment-resume]{color:#073b36;background:linear-gradient(135deg,#a0f1e2,#70d9c9);border-color:rgba(219,255,249,.56)}
#assessmentExitDialog .assessment-exit-actions button:hover:not(:disabled){border-color:rgba(114,227,203,.65);filter:brightness(1.06)}
#assessmentExitDialog .assessment-exit-actions button:focus-visible{outline:3px solid #82e5d0;outline-offset:3px}
#assessmentExitDialog .assessment-exit-actions button:disabled{opacity:.6;cursor:wait}
#assessmentExitDialog .assessment-submit-status{margin-top:16px;color:#c6e3f5;font-size:14px;line-height:1.6}
#assessmentExitDialog .assessment-submit-status[data-tone="error"]{color:#ffb7bb}
#assessmentExitDialog .assessment-submit-status[data-tone="retry"]{color:#f3cb81}
@media(max-width:520px){#assessmentExitDialog{padding:24px;border-radius:20px}#assessmentExitDialog .assessment-exit-actions{display:grid;grid-template-columns:1fr}#assessmentExitDialog .assessment-exit-actions button{width:100%}}

/* Public glass backdrop while device verification protects the student shell. */
body:has(#portalSecurityDialog[open]){background:#091b2b}
body:has(#portalSecurityDialog[open]) #landingPage{visibility:hidden!important}
body:has(#portalSecurityDialog[open])::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 85% 5%,rgba(0,178,185,.35),transparent 58%),radial-gradient(ellipse at 8% 75%,rgba(43,101,181,.35),transparent 56%),linear-gradient(135deg,#091b2b,#15283c 60%,#282e51);z-index:0}
body:has(#portalSecurityDialog[open])::after{content:"BeeRN\A STUDENT PORTAL";white-space:pre;position:fixed;top:32px;left:36px;pointer-events:none;color:#eaf4ff;font:700 26px/1.55 Manrope,system-ui,sans-serif;letter-spacing:.12em;z-index:0}
#portalSecurityDialog{background:linear-gradient(135deg,rgba(38,75,94,.96),rgba(14,35,53,.97));color:#edf6ff;border:1px solid rgba(185,230,243,.3);border-radius:26px;box-shadow:0 24px 80px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}
#portalSecurityDialog::backdrop{background:rgba(3,12,24,.3);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
#portalSecurityDialog h2,#portalSecurityDialog h3,#portalSecurityDialog strong,#portalSecurityDialog .portal-security-consent{color:#edf6ff}
#portalSecurityDialog p,#portalSecurityDialog small{color:#bdd0df}
#portalSecurityDialog .eyebrow{color:#7ce5d1}
#portalSecurityDialog .portal-security-points>div,#portalSecurityDialog .portal-security-consent{background:rgba(175,214,237,.07);border-color:rgba(185,230,243,.22);border-radius:15px}
#portalSecurityDialog button{background:rgba(175,214,237,.1);color:#edf6ff;border:1px solid rgba(185,230,243,.3)}
#portalSecurityDialog #portalSecurityVerify{background:linear-gradient(135deg,#a0f1e2,#70d9c9);color:#073b36;border-color:#b4f4e8}
#portalSecurityDialog [data-legal]{background:transparent;border:0;color:#8cebdd;text-decoration:underline}
#portalSecurityDialog button:focus-visible,#portalSecurityDialog input:focus-visible{outline:3px solid #82e5d0;outline-offset:3px}
#portalSecurityDialog input{accent-color:#71dcc8}
@media(max-width:600px){body:has(#portalSecurityDialog[open])::after{top:14px;left:18px;font-size:16px}#portalSecurityDialog{max-height:85dvh;overflow:auto}}

#portalSecurityDialog .portal-security-points span{color:#bdd0df}
#portalSecurityDialog .portal-security-dialog-header>span{color:#7ce5d1}

/* Explicit light-theme foregrounds override inherited legacy white headings. */
#studentPortal #approvedStudentShell.light :is(h1,h2,h3,h4,h5,h6,legend,strong,b,summary,th,td,label){color:var(--ink)}
#studentPortal #approvedStudentShell.light :is(.topic-card,.resource,.glass,.flashcard,.bank-card,.metric-row,.stat-value,.dialog-header,.profile-overview){color:var(--ink)}
#studentPortal #approvedStudentShell.light :is(.muted,.stat-label,.card-foot,.bank-label,.metric-row>span,footer){color:#405b70}
#studentPortal #approvedStudentShell.light :is(input,select,textarea){color:#153049;background:rgba(255,255,255,.72);border-color:rgba(21,48,73,.3)}
#studentPortal #approvedStudentShell.light input::placeholder,#studentPortal #approvedStudentShell.light textarea::placeholder{color:#526b80;opacity:1}
#studentPortal #approvedStudentShell.light :is(.btn,.icon-button,.sidebar-toggle){color:#153049}
#studentPortal #approvedStudentShell.light .btn.primary{color:#073b36}
#studentPortal #approvedStudentShell.light :is(.topic-no,.nav-item.active,.btn.ghost){color:#08675e}
#studentPortal #approvedStudentShell.light .badge{color:#08675e}
#studentPortal #approvedStudentShell.light .badge.neutral{color:#405b70}
#studentPortal #approvedStudentShell.light :is(.field small,.toggle-row small){color:#405b70}

#studentPortal #approvedStudentShell.light .btn.primary{background:linear-gradient(135deg,#137b70,#09665e);color:#fff;border-color:#0b6c62}
/* Fit the student shell to the device; keep browser pinch zoom available. */
body:has(#studentPortal.active){-webkit-text-size-adjust:100%;text-size-adjust:100%}
#studentPortal #approvedStudentShell .mobile-bottom{display:none!important}
#studentPortal #approvedStudentShell{padding-bottom:0!important;max-width:100%;min-width:0}
#studentPortal #approvedStudentShell :is(.main-shell,main,.app-shell,.glass,.page-heading,.search-wrap,.grid-2,.grid-3,.grid-4){min-width:0;max-width:100%}
#studentPortal #approvedStudentShell :is(h1,h2,h3,h4,p,.btn,.card-foot){overflow-wrap:anywhere}
@media(max-width:720px){
 html:has(#studentPortal.active),body:has(#studentPortal.active){width:100%;max-width:100%;overflow-x:clip!important;touch-action:pan-y pinch-zoom}
 #studentPortal #approvedStudentShell{width:100%;font-size:16px;touch-action:pan-y pinch-zoom}
 #studentPortal #approvedStudentShell :is(input,select,textarea){font-size:16px!important}
 #studentPortal #approvedStudentShell .topbar{width:100%;padding:10px 12px;gap:8px}
 #studentPortal #approvedStudentShell .search-wrap{flex:1 1 0;min-width:0!important;width:auto}
 #studentPortal #approvedStudentShell .search-wrap input{width:100%;min-width:0;padding:10px}
 #studentPortal #approvedStudentShell .top-actions{flex:0 0 auto;gap:4px}
 #studentPortal #approvedStudentShell .icon-button{width:40px;height:40px;min-width:40px}
 #studentPortal #approvedStudentShell main{padding:20px 14px 28px}
 #studentPortal #approvedStudentShell .button-row{flex-wrap:wrap;min-width:0}
 #studentPortal #approvedStudentShell .btn{max-width:100%;white-space:normal}
 #studentPortal #approvedStudentShell .connected-legacy-view .runner-actions{min-width:0;flex:1 1 100%}
 #studentPortal #approvedStudentShell .connected-legacy-view .runner-actions button{min-width:0;white-space:normal!important}
 #studentPortal #approvedStudentShell [data-exam-questions] :is(select,input){max-width:100%;min-width:0}
 #studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-exhibits,.nclex-matrix){overflow-x:auto;touch-action:pan-x pan-y pinch-zoom}
 #studentPortal #approvedStudentShell footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
 #studentPortal #approvedStudentShell dialog{width:calc(100% - 24px);max-width:calc(100vw - 24px);max-height:85dvh;overflow:auto}
}
@media(max-width:650px){
 #studentPortal #approvedStudentShell .app-shell{display:block;width:100%}
 #studentPortal #approvedStudentShell #sidebar{width:min(280px,calc(100vw - 48px));max-width:calc(100vw - 48px);left:0;transform:translateX(-110%);height:100dvh;padding:24px 16px max(20px,env(safe-area-inset-bottom));overflow-y:auto}
 #studentPortal #approvedStudentShell.menu-open #sidebar{transform:translateX(0)}
 #studentPortal #approvedStudentShell .brand{font-size:26px}
 #studentPortal #approvedStudentShell .top-actions .profile-chip{display:none}
}
/* Compact phone layout: no desktop intrinsic-width tracks or oversized chrome. */
@media(max-width:650px){
 html:has(#studentPortal.active){-webkit-text-size-adjust:100%;text-size-adjust:100%;width:100%;max-width:100%}
 body:has(#studentPortal.active){margin:0!important;padding:0!important;min-width:0!important;width:100%!important;max-width:100%!important}
 body #studentPortal.portal-page.active{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
 #studentPortal #approvedStudentShell{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;font-size:14px;line-height:1.5}
 #studentPortal #approvedStudentShell :is(.app-shell,.main-shell,main){box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important}
 #studentPortal #approvedStudentShell .topbar{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;box-sizing:border-box;max-width:100%;padding:8px 10px;gap:6px}
 #studentPortal #approvedStudentShell .topbar .search-wrap{width:100%;max-width:100%;min-width:0!important}
 #studentPortal #approvedStudentShell .topbar .search-wrap input{box-sizing:border-box;width:100%;max-width:100%;min-width:0!important;font-size:16px!important;line-height:1.3;padding:9px 8px}
 #studentPortal #approvedStudentShell .topbar .top-actions{display:flex;min-width:0;gap:4px}
 #studentPortal #approvedStudentShell main{padding:18px 12px 24px!important}
 #studentPortal #approvedStudentShell .page-heading h1,#studentPortal #approvedStudentShell .connected-legacy-view h1{font-size:24px;line-height:1.3;letter-spacing:-.5px}
 #studentPortal #approvedStudentShell h2{font-size:18px;line-height:1.4}
 #studentPortal #approvedStudentShell h3{font-size:16px}
 #studentPortal #approvedStudentShell .glass{padding:16px;border-radius:18px}
 #studentPortal #approvedStudentShell :is(.grid-2,.grid-3,.grid-4,.form-grid,.hero-grid,.home-actions,.study-layout,.assessment-layout){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px;width:100%;min-width:0}
 #studentPortal #approvedStudentShell :is(.grid-2,.grid-3,.grid-4,.home-actions)>*{min-width:0;max-width:100%;box-sizing:border-box}
 #studentPortal #approvedStudentShell .btn{font-size:14px;min-height:44px;padding:10px 14px}
 #studentPortal #approvedStudentShell [data-exam-questions] legend{font-size:16px!important;line-height:1.5!important}
 #studentPortal #approvedStudentShell #sidebar{width:min(270px,calc(100vw - 48px))!important;box-sizing:border-box!important}
 #studentPortal #approvedStudentShell .mobile-bottom{display:none!important}
}
@media(max-width:360px){#studentPortal #approvedStudentShell .topbar [aria-label="Open Live Class"]{display:none}}
/* Account form intrinsic sizing and top-layer verification dialog on phones. */
@media(max-width:650px){
 #studentPortal #approvedStudentShell .profile-overview{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;min-width:0}
 #studentPortal #approvedStudentShell .profile-overview>.avatar{flex:0 0 56px;width:56px;height:56px;font-size:20px}
 #studentPortal #approvedStudentShell .profile-overview>div{flex:1 1 160px;min-width:0;max-width:100%;overflow-wrap:anywhere}
 #studentPortal #approvedStudentShell .field{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);min-width:0!important;max-width:100%;width:100%;overflow-wrap:anywhere}
 #studentPortal #approvedStudentShell .field :is(input,select,textarea){box-sizing:border-box!important;display:block;width:100%!important;min-width:0!important;max-width:100%!important;margin:0}
 #studentPortal #approvedStudentShell .metric-row{min-width:0;flex-wrap:wrap;gap:6px}
 #studentPortal #approvedStudentShell .metric-row>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
 #portalSecurityDialog{box-sizing:border-box!important;position:fixed;inset:0!important;margin:auto!important;width:calc(100% - 24px)!important;min-width:0!important;max-width:calc(100vw - 24px)!important;height:fit-content;max-height:calc(100dvh - 32px)!important;padding:18px!important;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;font-size:14px;line-height:1.5}
 #portalSecurityDialog *,#portalSecurityDialog *::before,#portalSecurityDialog *::after{box-sizing:border-box;min-width:0;max-width:100%}
 #portalSecurityDialog .portal-security-dialog-header h2{font-size:26px;line-height:1.2;letter-spacing:-.5px}
 #portalSecurityDialog>p{font-size:13px;line-height:1.5;margin:14px 0;color:#c2d6e5}
 #portalSecurityDialog .portal-security-points{grid-template-columns:minmax(0,1fr);gap:8px}
 #portalSecurityDialog .portal-security-points>div{padding:12px;gap:5px}
 #portalSecurityDialog .portal-security-points span{font-size:13px;line-height:1.5}
 #portalSecurityDialog .portal-security-consent{margin-top:14px;padding:12px;gap:10px;font-size:13px}
 #portalSecurityDialog .portal-security-consent input{appearance:auto;-webkit-appearance:checkbox;flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px;padding:0}
 #portalSecurityDialog .portal-security-consent span{flex:1;min-width:0;overflow-wrap:anywhere}
 #portalSecurityDialog .portal-security-dialog-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}
 #portalSecurityDialog .portal-security-dialog-actions button{width:100%;min-height:44px;padding:12px;font-size:14px}
 #portalSecurityDialog #portalSecurityStatus{color:#c2d6e5!important;font-size:13px;line-height:1.5}
 body:has(#portalSecurityDialog[open]) #loginPage{visibility:hidden!important}
}
/* Prevent iOS login-field focus zoom carrying into the single-page portal. */
@media(max-width:720px){
 #loginPage :is(input,select,textarea),#portalSecurityDialog :is(input:not([type=checkbox]),select,textarea){font-size:16px!important}
 #loginPage :is(.login-layout,.login-card,.login-panel,.login-form,form){min-width:0;max-width:100%;box-sizing:border-box}
 #loginPage input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
}
/* NGN clinical records and answer controls follow the selected glass theme. */
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-item-shell{background:transparent;border:0;box-shadow:none;min-width:0;gap:16px}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-clinical-record{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;max-width:100%;min-width:0;padding:0!important;margin:0;border:1px solid var(--edge)!important;border-radius:16px;background:var(--panel);color:var(--ink);box-shadow:none;overflow:hidden}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-case-record-header,.nclex-case-question-header){background:var(--surface);color:var(--ink);border-color:var(--edge);border-radius:12px;min-width:0;min-height:0;margin:0 0 16px;padding:12px;gap:10px;flex-wrap:wrap}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-case-record-header strong,.nclex-case-question-header strong){color:var(--ink)}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-case-record-header span,.nclex-case-question-header span){color:var(--mint)}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-case-record-header small,.nclex-record-panel p,.nclex-highlight-guidance){color:var(--muted)}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-record-panel,.nclex-highlight-record,.nclex-matrix,.nclex-cloze,.nclex-bow-bank,.nclex-bow-target){background:var(--panel);color:var(--ink);border:1px solid var(--edge);border-radius:12px;min-width:0;box-shadow:none}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-record-panel{padding:16px;line-height:1.65}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-record-tabs{background:var(--surface);border-color:var(--edge)}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-record-tabs button{color:var(--muted);background:transparent;white-space:normal}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-record-tabs button.is-active{color:var(--ink);background:var(--panel);border-bottom:3px solid var(--mint)}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-highlight-record{padding:12px;gap:10px}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-highlight-record button{color:var(--ink);background:var(--surface);border:1px solid var(--edge);border-radius:10px;padding:12px;text-align:left;font-size:16px;line-height:1.5;min-height:44px}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-highlight-record button.is-selected{background:rgba(72,190,166,.22);color:var(--ink);border-color:var(--mint);box-shadow:inset 3px 0 var(--mint)}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-highlight-record button.is-correct-answer{background:rgba(50,170,100,.22);color:var(--ink);border-color:#51ba80}
#studentPortal #approvedStudentShell [data-exam-questions] .nclex-highlight-record button.is-incorrect-answer{background:rgba(210,95,80,.2);color:var(--ink);border-color:var(--red)}
#studentPortal #approvedStudentShell [data-exam-questions] :is(.nclex-matrix th,.nclex-matrix td,.nclex-record-table th,.nclex-record-table td){color:var(--ink);background:var(--surface);border-color:var(--edge)}
#studentPortal #approvedStudentShell [data-exam-questions] :is(select,.nclex-inline-select){color:var(--ink);background:var(--surface);border:1px solid var(--edge);border-radius:8px}
@media(max-width:650px){#studentPortal #approvedStudentShell [data-exam-questions] .nclex-item-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important}#studentPortal #approvedStudentShell [data-exam-questions] .nclex-clinical-record{display:block!important;visibility:visible!important}#studentPortal #approvedStudentShell [data-exam-questions] .nclex-record-panel{font-size:15px}}


/* Keep glass surfaces without a separate backdrop filter on every card/control. */
#studentPortal #approvedStudentShell :is(
    .glass, .flashcard, .enrollment, .btn, .icon-button, .filter,
    input, select, textarea, .tile-icon, .chat-message, .answer,
    .case-record, .slide, .video-demo
) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
#studentPortal #approvedStudentShell:not(.reduce-glass) :is(#sidebar, .topbar) {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
#studentPortal #approvedStudentShell .ambient {
    contain: strict;
}
#studentPortal #approvedStudentShell .topic-card {
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
#studentPortal #approvedStudentShell .topic-card:hover:not(:disabled) {
    transform: none;
}


/* Keep sticky navigation out of the backdrop compositing path. */
#studentPortal #approvedStudentShell:not(.reduce-glass) :is(#sidebar, .topbar) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
#studentPortal #approvedStudentShell #sidebar .nav-item { transition: none; }
#studentPortal #approvedStudentShell #sidebar .nav-item:hover { transform: none; }
@media (min-width: 651px) {
    #studentPortal #approvedStudentShell #navigation { overscroll-behavior-y: auto; }
}
html:has(#studentPortal.active) { scroll-behavior: auto; }
