/* Final responsive QA; math/reading/science question banks and scoring unchanged. */
.nafsBackupPanel{padding:22px;margin-top:16px;border-radius:17px;border:1px solid #dce4ef;background:#fff}
.nafsBackupPanel h2{font-size:20px;color:#283659;line-height:1.6;margin:0 0 6px}
.nafsBackupPanel p{font-size:14px;color:#53627c;line-height:1.85;margin:5px 0 12px}
.nafsBackupPanel .actions{display:flex;flex-wrap:wrap;gap:8px}
.nafsBackupPanel .btn{min-height:42px}
.nafsBackupPanel .nafsPrivacyNote{background:#fff8ec;border:1px solid #eddfbd;border-radius:10px;padding:11px;margin-top:12px;color:#73552b}
#qualityBackupStatus.failed{color:#a52c37;font-weight:700}
#resultView h1,#resultView h2,#resultView .resultHero h1{font-size:clamp(19px,3.2vw,29px)!important;line-height:1.7;overflow-wrap:anywhere;word-break:normal}
#resultView .panel,#resultView .resultHero{min-width:0;max-width:100%;overflow-wrap:anywhere}
#resultView .stats,#resultView .statGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;min-width:0}
#resultView .stat,#resultView .statCard{min-width:0;overflow-wrap:anywhere}
#resultView .actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
#portfolioView h1,#portfolioView h2,#reportView h1,#reportView h2{overflow-wrap:anywhere;line-height:1.6}
#reportView .reportPaper{max-width:100%;overflow-wrap:anywhere}
#reportView img,#portfolioView img,#resultView img{max-width:100%;height:auto}
#reportView .tableScroll,#portfolioView .tableScroll,#resultView .tableScroll{max-width:100%;overflow-x:auto}
@media(max-width:600px){
 .nafsBackupPanel{padding:14px;border-radius:13px}
 .nafsBackupPanel .actions{display:grid;grid-template-columns:1fr}
 .nafsBackupPanel .btn{width:100%}
 #resultView .card,#resultView .panel{padding:14px}
 #resultView .stats,#resultView .statGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #resultView .stat,#resultView .statCard{padding:11px 8px}
 #resultView .actions{display:grid;grid-template-columns:1fr;gap:9px}
 #resultView .actions .btn{width:100%;white-space:normal}
 #resultView .resultHero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
 #resultView .donut{margin:auto}
 #portfolioView .actions,#reportView .actions{flex-wrap:wrap;gap:8px}
 #portfolioView .actions .btn,#reportView .actions .btn{white-space:normal;min-height:40px}
}
@media print{
 .nafsBackupPanel,.portal-shell,.pn-mobile{display:none!important}
 .reportPaper,.reportPage,#printSheet,#printDocument{overflow:visible!important;max-width:100%!important}
 .reportPaper table,#printSheet table{page-break-inside:auto}
 .reportPaper tr,#printSheet tr{break-inside:avoid-page;page-break-inside:avoid}
 .reportPaper img,#printSheet img{max-width:100%!important}
}

#resultView .nafsResultCriterion{font-size:clamp(13px,1.8vw,16px);color:#586681;line-height:1.85;margin:0 0 12px;overflow-wrap:anywhere;}
