.grade-stack{display:grid;gap:20px}.grade-actions,.grade-between{display:flex;align-items:center;gap:12px}.grade-between{justify-content:space-between}.grade-summary{display:grid;grid-template-columns:repeat(3,1fr) 1.25fr;gap:24px;align-items:center}.grade-summary strong{font-size:30px;line-height:1.5}.grade-summary>div>span{font-size:13px;color:var(--muted,#617086)}.grade-focus{background:#FFF6E7;color:#886122;padding:14px 18px;border-radius:8px}.grade-focus strong{font-size:25px;margin-right:8px}.grade-tabs{display:flex;gap:28px;border-bottom:1px solid #E7EBF0;align-items:center}.grade-tabs .tab{background:none;border:0;cursor:pointer;font:inherit;padding:14px 0;color:#617086}.grade-tabs .tab.active{color:#245CE8;font-weight:700;border-bottom:3px solid #245CE8}.grade-tabs>span{margin-left:auto}.grade-filter{margin:20px 0;flex-wrap:wrap}.grade-filter input{min-width:240px}.grade-filter>span{margin-left:auto}.grade-table-scroll{overflow:auto}.grade-table-scroll .table{min-width:840px}.grade-table-scroll td{vertical-align:middle}.grade-table-scroll td:nth-child(2){max-width:350px}.grade-table-scroll .table th{white-space:nowrap}.grade-pending{text-align:center;padding:52px 24px}.grade-pending h2{margin-bottom:12px}.grade-pending p{margin:12px 0}.grade-process{display:flex;justify-content:center;gap:30px;margin:32px 0;color:#617086;flex-wrap:wrap}.grade-process span{padding:12px 18px;background:#F1F3F7;border-radius:6px}.grade-process .grade-done{background:#EAF0FF;color:#245CE8}.grade-result{display:grid;grid-template-columns:190px 1fr 300px;gap:30px;align-items:center}.grade-large-score{font-size:62px;letter-spacing:-.04em;font-weight:700;color:#245CE8;line-height:1.25;margin-top:10px}.grade-large-score span{font-size:16px;font-weight:400;color:#617086;letter-spacing:0;margin-left:8px}.grade-result-copy{border-left:1px solid #E7EBF0;padding-left:30px}.grade-result-copy h2{margin:12px 0 8px}.grade-result-meta p{display:flex;justify-content:space-between;gap:16px;font-size:13px;margin:9px 0}.grade-result-meta p>span:first-child{color:#617086;white-space:nowrap}.grade-result-meta strong{font-weight:600}.grade-report-layout{display:grid;grid-template-columns:360px 1fr;gap:20px;align-items:start}.grade-dimension{padding:15px 0;border-bottom:1px solid #EFF2F6}.grade-dimension>div:first-child{display:flex;justify-content:space-between;gap:16px;margin-bottom:10px}.grade-dimension>div:first-child>span{max-width:240px;overflow-wrap:anywhere}.grade-dimension strong{white-space:nowrap}.grade-dimension small{font-size:12px;font-weight:400}.grade-dimension p{margin-top:6px}.grade-feedback{border-bottom:1px solid #E7EBF0;padding:15px 0}.grade-feedback summary{display:flex;gap:20px;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}.grade-feedback summary>span:first-child{display:grid;gap:6px}.grade-feedback summary small{font-size:12px;color:#617086}.grade-expand{font-size:12px;color:#245CE8;white-space:nowrap}.grade-feedback-body{padding-top:20px;display:grid;gap:16px}.grade-feedback-body h3{font-size:13px;margin-bottom:9px}.grade-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grade-feedback-body pre,.grade-answer{font-family:inherit;font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;background:#F6F8FB;padding:14px 16px;border-radius:6px;margin:0}.grade-feedback-body .btn{justify-self:start}.grade-review-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.grade-question-strip{padding-top:18px;padding-bottom:18px}.grade-question-tabs{display:flex;gap:8px;margin-top:14px;overflow:auto;padding-bottom:4px}.grade-question-tabs button{background:#F2F5F9;color:#536178;border:1px solid transparent;border-radius:6px;padding:9px 13px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.grade-question-tabs button.active{color:#245CE8;background:#EAF0FF;border-color:#A9BFF8}.grade-workbench{display:grid;grid-template-columns:1.05fr 1.1fr 1fr;gap:18px;align-items:start}.grade-workbench>.panel{min-width:0;padding:22px}.grade-workbench .panel-head{align-items:flex-start;gap:8px;margin-bottom:18px}.grade-workbench h2{font-size:17px;white-space:nowrap}.grade-workbench h3{font-size:14px;line-height:1.8}.grade-subheading{margin-top:23px;margin-bottom:10px}.grade-options{padding-left:20px;font-size:13px;line-height:1.9;margin-top:12px}.grade-evidence-row{padding:12px 0;border-bottom:1px solid #E7EBF0;font-size:13px;line-height:1.8}.grade-evidence-row p{margin:6px 0 0}.grade-evidence-row>p{color:#617086}.grade-provenance{margin-top:20px}.grade-scheme{padding:12px 14px;background:#F7F9FC;border-radius:6px;margin-bottom:10px;font-size:12px;line-height:1.8}.grade-scheme p{margin:6px 0 0;overflow-wrap:anywhere}.grade-scheme .badge{margin-left:8px}.grade-scheme.matched{background:#EEF3FF;color:#294D9C}.grade-engine-note{margin-top:20px;font-size:12px}.grade-label{display:grid;gap:8px;margin:16px 0 12px;font-size:13px;font-weight:600}.grade-label .field{width:100%;resize:vertical;font-weight:400;min-height:42px;line-height:1.7}.grade-label>span{font-weight:400}.grade-score-input{max-width:145px;font-size:28px!important;font-weight:700!important;color:#245CE8}.grade-publish{display:flex;align-items:center;justify-content:space-between;gap:20px}.grade-publish>div>strong{font-size:30px;margin-left:16px}.grade-publish p{margin-top:6px}.grade-history-json{max-width:500px;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;padding:12px;background:#F7F9FC;border-radius:6px}.grade-workbench textarea:disabled,.grade-workbench input:disabled{background:#F6F8FB;color:#536178;opacity:1}.grade-question-tabs button:focus-visible,.grade-feedback summary:focus-visible{outline:3px solid #9AB6F5;outline-offset:3px}.grade-options li{overflow-wrap:anywhere}
@media(max-width:1200px){.grade-result{grid-template-columns:160px 1fr}.grade-result-meta{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:0 28px}.grade-workbench{grid-template-columns:1fr 1fr}.grade-workbench>.panel:last-child{grid-column:1/-1}.grade-report-layout{grid-template-columns:290px 1fr}.grade-review-top{align-items:flex-start;flex-direction:column}.grade-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.grade-result,.grade-report-layout,.grade-workbench,.grade-answer-grid{grid-template-columns:1fr}.grade-result-copy{padding-left:0;border:0}.grade-result-meta{grid-column:auto;grid-template-columns:1fr}.grade-workbench>.panel:last-child{grid-column:auto}.grade-publish,.grade-question-strip>.grade-between{align-items:stretch;flex-direction:column}.grade-summary{gap:16px}.grade-summary strong{font-size:25px}.grade-actions{flex-wrap:wrap}.grade-tabs{gap:20px}.grade-tabs>span{display:none}.grade-filter input{min-width:0;width:100%}.grade-filter>span{margin-left:0}.grade-large-score{font-size:52px}.grade-publish>.grade-actions{justify-content:flex-start}.grade-dimension>div:first-child>span{max-width:75%}}

/* Final review readability pass: one question row, expandable notes, visible actions. */
.grade-review-layout{padding-bottom:112px;gap:16px}
.grade-review-layout .grade-review-top{padding:18px 22px}
.grade-review-layout .grade-question-strip{padding:15px 22px;max-width:100%;overflow:hidden}
.grade-question-tabs{flex-wrap:nowrap;min-width:0;max-width:100%;white-space:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#C8D3E5 transparent;margin-top:11px}
.grade-question-tabs button{flex:0 0 auto}
.grade-review-layout .grade-workbench>.panel{padding:20px}
.grade-review-layout .grade-workbench .panel-head{margin-bottom:14px}
.grade-review-layout .grade-label{margin:12px 0 10px;gap:6px}
.grade-review-layout textarea.field{min-height:64px;resize:vertical}
.grade-review-layout .grade-label .grade-score-input{min-height:52px;padding:5px 12px}
.grade-review-layout .grade-subheading{margin-top:18px;margin-bottom:8px}
.grade-review-layout .grade-evidence-row{padding:10px 0}
.grade-review-layout .grade-publish{position:sticky;bottom:12px;align-self:start;z-index:6;border:1px solid #DCE2EB;padding:14px 20px;background:#fff}
.grade-review-layout :is(input,textarea,select,button,summary){scroll-margin-bottom:150px}
@media(max-width:760px){.grade-review-layout{padding-bottom:20px}.grade-review-layout .grade-publish{position:static}.grade-review-layout :is(input,textarea,select,button,summary){scroll-margin-bottom:32px}}

.grade-answer-grid.grade-answer-grid-single{grid-template-columns:minmax(0,1fr)}
