/* Scoped grading controls; no global portal or student-attempt styles. */
.protected-grading { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.protected-grading section { padding:18px; margin:14px 0; border:1px solid #6076a4; border-radius:10px; min-width:0; max-width:100%; }
.protected-grading label { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; margin:6px 12px 6px 0; max-width:100%; font-family:system-ui; font-size:14px; }
.protected-grading input,.protected-grading select,.protected-grading textarea { color:#ececf6; background:#1b1f27; border:1px solid #c7cbd8; border-radius:6px; min-height:40px; padding:8px; max-width:100%; box-sizing:border-box; font:14px system-ui; }
.protected-grading input[type=checkbox] { min-height:20px; width:20px; }
.protected-grading button { min-height:40px; padding:8px 12px; margin:5px 6px 5px 0; color:#ececf6; background:#242a34; border:1px solid #c7cbd8; border-radius:6px; font:14px system-ui; cursor:pointer; max-width:100%; white-space:normal; }
.protected-grading button:disabled { opacity:.55; cursor:default; }
.protected-grading table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; font:13px system-ui; }
.protected-grading td,.protected-grading th { padding:9px; border-bottom:1px solid #6076a4; text-align:left; }
.protected-grading [role=alert] { border:1px solid #edba6b; padding:12px; }
body.light-theme .protected-grading input,body.light-theme .protected-grading select,body.light-theme .protected-grading textarea { color:#242323; background:#faf8f5; }
body.light-theme .protected-grading button { color:#fff; background:#65708b; }
@media(max-width:650px) { .protected-grading section { padding:12px!important; } .protected-grading label { display:flex!important; width:100%; } .protected-grading label input:not([type=checkbox]),.protected-grading label select,.protected-grading label textarea { width:100%; } }
