.math-panel{background:#fff;border:1px solid #c9dde5;border-radius:20px;padding:22px;margin:18px 0;color:#243b4b;text-align:right;line-height:1.85;overflow-wrap:anywhere}.math-panel h2,.math-analysis h2{font-size:23px;font-weight:900;margin:0 0 10px;color:#133e56}.math-panel h3,.math-analysis h3{font-size:19px;font-weight:900;margin:0 0 9px}.math-panel h4{font-weight:800;margin:12px 0 4px}.math-muted{font-size:14px;color:#526b7b;margin:7px 0}.math-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:13px 0}.math-row label{font-size:14px;font-weight:bold}.math-row input,.math-row select{background:#fff;border:1px solid #9bb6c6;border-radius:10px;padding:11px 13px;font:inherit;min-width:0;max-width:100%;color:#213d50}.math-row select{flex:1 1 180px}.math-row input{flex:1 1 180px}.math-button{border:1px solid #075985;border-radius:10px;background:#075985;color:#fff;padding:10px 16px;font:inherit;font-size:14px;font-weight:800;line-height:1.7;text-decoration:none;cursor:pointer;display:inline-block;min-height:45px;text-align:center}.math-button.secondary{background:#eef6fa;color:#075985;border-color:#b5d1df}.math-button:focus-visible,.math-row select:focus,.math-row input:focus{outline:3px solid #d99b21;outline-offset:2px}.math-storage-status{font-size:13px;color:#735317;margin:12px 0;line-height:1.8}.math-caveat{border:1px solid #ead8a9;background:#fff9e9;border-radius:12px;padding:14px;font-size:14px;line-height:1.9;margin:15px 0}.math-summary{font-size:16px;line-height:1.9;font-weight:700;color:#075985;background:#eff8fd;padding:14px;border-radius:12px}.math-skill{background:#fff;border:1px solid #ccdfe8;border-radius:15px;padding:18px;margin:14px 0;line-height:1.9}.math-skill p{font-size:15px}.math-skill .math-muted{font-size:13px}.math-tag{display:inline-block;padding:3px 10px;border-radius:8px;font-size:12px;font-weight:800;background:#edf1f5;color:#425466}.math-tag.good{background:#e2f4eb;color:#116145}.math-tag.review{background:#ffebde;color:#8a3c17}.math-tag.practice{background:#fff1c4;color:#6e5112}.math-question-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.math-question-links .math-button{min-width:44px;padding:7px}.math-attempt{border:1px solid #c8dde8;border-radius:14px;padding:16px;margin:12px 0;background:white;line-height:1.9}.math-attempt summary{font-size:15px;font-weight:800;cursor:pointer;color:#144a66}.math-attempt>.math-analysis{margin-top:22px}.math-best-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:15px 0}.math-best{background:#e9f5f2;border:1px solid #b4d5ca;border-radius:12px;padding:12px;font-size:14px;font-weight:bold}#math-result-analysis:empty{display:none}#math-dashboard{margin:18px 0}#results-card{overflow:visible}#results-card #math-result-analysis{text-align:right}@media(max-width:480px){.math-panel{padding:15px;border-radius:15px}.math-analysis h2,.math-panel h2{font-size:20px}.math-skill{padding:14px}.math-row .math-button{flex-grow:1}#results-card{padding:18px!important}.math-attempt{padding:13px}.math-best-grid{grid-template-columns:1fr}}

.math-review-list{margin-top:13px}.math-review-list summary{color:#075985;cursor:pointer;font-size:14px;font-weight:800;padding:7px 0}

@font-face{font-family:MathNaskh;src:url(NotoNaskhArabic-Regular.ttf) format("truetype");font-weight:400 500;font-display:swap}@font-face{font-family:MathNaskh;src:url(NotoNaskhArabic-Bold.ttf) format("truetype");font-weight:600 900;font-display:swap}body,button,input,select,textarea{font-family:MathNaskh,Tahoma,serif!important}#q-text{font-size:26px!important;line-height:1.95!important;font-weight:700!important}.option-card{font-size:26px!important;line-height:1.85!important}.option-card>span:last-child{font-size:26px!important;font-weight:600!important}.option-card bdi{font-family:MathNaskh,Tahoma,serif}.math-panel{font-size:18px}.math-muted,.math-skill p{font-size:17px}.math-caveat{font-size:16px}#feedback-text,#reference-answer{font-size:22px;line-height:1.95}bdi{unicode-bidi:isolate}#q-text bdi{white-space:normal}
.math-waw{display:inline-block;margin-inline:.3em;font-weight:700}

.math-ltr{direction:ltr!important;unicode-bidi:isolate!important}.math-sign{display:inline-block;min-width:1.5em;text-align:center;font:700 30px Arial!important}.math-prompt{display:block;direction:ltr!important;unicode-bidi:isolate!important;text-align:center;font:700 30px/1.7 Arial!important;letter-spacing:1px;background:#edf7ff;border:1px solid #c0d8ef;border-radius:12px;padding:14px 5px;margin:14px 0 5px;white-space:nowrap}.math-reading-note{font-size:14px;font-weight:400;display:block;text-align:center;color:#536d80}.math-expression{display:inline-block}.option-card .math-expression{font-size:24px}.math-waw{margin-inline:.3em}@media(max-width:350px){.math-prompt{font-size:26px!important}}

.math-comparison,.math-quantity{display:inline-flex;direction:ltr!important;unicode-bidi:isolate!important;align-items:center;gap:.23em}.math-comparison{flex-wrap:wrap;justify-content:center;max-width:100%}.math-comparison .math-sign{min-width:1em}.math-quantity{white-space:nowrap;font-size:24px}

.math-ltr{white-space:nowrap}.math-sign{font-family:Arial,sans-serif!important;font-weight:700!important}#mcq-options .math-sign{display:inline-block;text-align:center;font-size:32px;line-height:1.2;min-width:2em}
