/* R589 Student-only UI overlay. Core app styles remain unchanged. */
body[data-portal-role="STUDENT"] #sidebarNav .r589-video-direct {
  display:flex!important;align-items:center!important;min-height:48px!important;width:100%!important;
  gap:12px!important;padding:10px 12px!important;border-radius:11px!important;
}
body[data-portal-role="STUDENT"] #sidebarNav .r589-video-direct.active {background:#103c63!important;color:#fff!important}
/* Center text and icons on student result action buttons. */
body[data-portal-role="STUDENT"] .sr69-result-actions .button,
body[data-portal-role="STUDENT"] .student-detail-actions .button,
body[data-portal-role="STUDENT"] .student-question-response-panel .card-head .button {
 display:flex!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;gap:9px!important;
}
body[data-portal-role="STUDENT"] .sr69-result-actions .button>span{flex:0 1 auto!important}
/* Detailed Analysis: compact responsive hero, legible scores, proper spacing. */
body[data-portal-role="STUDENT"] .student-detail-page-nav{margin:0 0 15px!important}
body[data-portal-role="STUDENT"] .student-result-detail-hero {
 display:grid!important;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(145px,1fr))!important;
 align-items:stretch!important;gap:12px!important;padding:18px!important;
 border:1px solid #28465f!important;border-radius:16px!important;background:#071b2f!important;
 box-shadow:none!important;
}
body[data-portal-role="STUDENT"] .student-result-detail-hero>div:first-child{grid-column:1!important;min-width:0}
body[data-portal-role="STUDENT"] .student-result-detail-hero .eyebrow{color:#67e8f9!important;font-size:11px!important;font-weight:900!important;letter-spacing:.13em!important;margin:0 0 8px!important}
body[data-portal-role="STUDENT"] .student-result-detail-hero h2{font-size:30px!important;line-height:1.2!important;color:#fff!important;margin:0 0 10px!important}
body[data-portal-role="STUDENT"] .student-result-detail-hero p{font-size:14px!important;line-height:1.5!important;color:#cbe8ff!important;margin:0!important}
body[data-portal-role="STUDENT"] .student-result-detail-hero .result-score{display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:100px!important;border:1px solid #2b506d!important;border-radius:13px!important;padding:14px!important;background:#0c2943!important;min-width:0!important}
body[data-portal-role="STUDENT"] .student-result-detail-hero .result-score b{display:block!important;font-size:28px!important;font-weight:900!important;line-height:1.15!important;color:#fff!important;overflow-wrap:anywhere}
body[data-portal-role="STUDENT"] .student-result-detail-hero .result-score span{display:block!important;margin-top:6px!important;font-size:13px!important;font-weight:800!important;color:#a7d9f5!important}
body[data-portal-role="STUDENT"] .student-detail-actions{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;gap:10px!important;margin:12px 0 18px!important}
body[data-portal-role="STUDENT"] .student-detail-actions .button{width:100%!important;min-height:45px!important}
body[data-portal-role="STUDENT"] .r589-subject-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:15px 0 14px!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card{border:1px solid #2e536e!important;border-radius:14px!important;padding:16px!important;background:#071b2f!important;min-width:0!important;margin:12px 0!important}
body[data-portal-role="STUDENT"] .r589-subject-pair .r589-student-detail-card{margin:0!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .section-title{font-size:19px!important;line-height:1.25!important;font-weight:900!important;margin:0 0 14px!important;color:#f7fbff!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-card{display:grid!important;align-content:start!important;gap:3px!important;min-width:0!important;border:1px solid #2d526d!important;border-radius:11px!important;padding:13px!important;background:#0b2943!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-card>span{font-size:12px!important;font-weight:900!important;color:#68d8f9!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-card .student-subject-name{font-size:13px!important;margin:0!important;color:#d7eafd!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-card>b{font-size:23px!important;line-height:1.2!important;color:#fff!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-card>small{font-size:12px!important;line-height:1.4!important;color:#c9deec!important}
body[data-portal-role="STUDENT"] .r589-student-detail-card>.student-rwb-grid{margin:0!important}
body[data-portal-role="STUDENT"] .student-question-response-panel{border-radius:15px!important;overflow:hidden!important}
body[data-portal-role="STUDENT"] .student-question-response-panel>.card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;padding:16px!important}
body[data-portal-role="STUDENT"] .student-question-response-panel>.student-rwb-grid{padding:0 16px 16px!important}
body[data-portal-role="STUDENT"] .student-question-response-panel>div[style*="margin-top"]{padding:0 16px 16px!important}
body[data-portal-role="STUDENT"] .student-question-response-panel .card-head h3{font-size:22px!important}
body[data-portal-role="STUDENT"] .student-rwb-card{min-width:0!important;border-radius:13px!important}
body[data-portal-role="STUDENT"] .student-rwb-counts{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body[data-portal-role="STUDENT"] .student-rwb-counts>div{min-width:0!important}
/* Preserve the Student light theme instead of forcing dark cards. */
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card{background:#fff!important;border-color:#c8d7e6!important;color:#132841!important}
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card .section-title{color:#102b47!important}
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card .subject-card{background:#f7fbff!important;border-color:#c8d7e6!important}
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card .subject-card>span{color:#0d648f!important}
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card .subject-card .student-subject-name,
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card .subject-card>small{color:#536b81!important}
body[data-portal-role="STUDENT"][data-student-theme="light"] .r589-student-detail-card .subject-card>b{color:#11365b!important}
@media(max-width:1140px){
 body[data-portal-role="STUDENT"] .student-result-detail-hero{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body[data-portal-role="STUDENT"] .student-result-detail-hero>div:first-child{grid-column:1/-1!important}
 body[data-portal-role="STUDENT"] .r589-subject-pair{grid-template-columns:1fr!important}
 body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important}
}
@media(max-width:650px){
 body[data-portal-role="STUDENT"] .student-result-detail-hero{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:12px!important;gap:8px!important}
 body[data-portal-role="STUDENT"] .student-result-detail-hero .result-score{min-height:83px!important;padding:11px!important}
 body[data-portal-role="STUDENT"] .student-result-detail-hero .result-score b{font-size:23px!important}
 body[data-portal-role="STUDENT"] .student-result-detail-hero h2{font-size:25px!important}
 body[data-portal-role="STUDENT"] .student-detail-actions{grid-template-columns:1fr!important}
 body[data-portal-role="STUDENT"] .r589-student-detail-card{padding:12px!important}
 body[data-portal-role="STUDENT"] .r589-student-detail-card .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
