.teacher-student-results-panel { display: grid; gap: 18px; }
.teacher-results-hero {
  border: 1px solid #c7d2fe;
  border-radius: calc(var(--radius) + 4px);
  padding: 20px;
  background: linear-gradient(135deg, #eef2ff, #f0fdfa);
}
.teacher-results-kicker { margin: 0 0 4px; color: var(--primary-dark); font-size: .8rem; font-weight: 800; }
.teacher-results-hero p:last-child { margin: 8px 0 0; color: var(--text-muted); line-height: 1.9; }
.teacher-results-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.teacher-results-content { display: grid; gap: 16px; }
.teacher-results-empty { padding: 34px 18px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.teacher-results-student-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.teacher-results-student-head h2 { margin: 0; font-size: 1.25rem; }
.teacher-results-student-head p { margin: 5px 0 0; color: var(--text-muted); }
.teacher-results-metrics { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 10px; }
.teacher-results-metric { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: #fff; }
.teacher-results-metric span { display: block; color: var(--text-muted); font-size: .78rem; line-height: 1.65; }
.teacher-results-metric strong { display: block; margin-top: 6px; font-size: 1.35rem; color: var(--text); }
.teacher-results-section { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.teacher-results-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.teacher-results-section-head h3 { margin: 0; font-size: 1rem; }
.teacher-results-section-head span { color: var(--text-muted); font-size: .8rem; }
.teacher-results-section-body { padding: 14px; }
.teacher-results-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.teacher-results-note { max-width: 280px; white-space: normal; color: var(--text-muted); }
.teacher-results-source { border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 800; }
.teacher-results-source.school { color: #3730a3; background: #e0e7ff; }
.teacher-results-source.personal { color: #0f766e; background: #ccfbf1; }
.teacher-results-detail-btn { white-space: nowrap; }
.teacher-result-detail-dialog { width: min(980px, calc(100vw - 32px)); max-width: 980px; max-height: calc(100vh - 36px); overflow: auto; }
#teacher-result-detail-subtitle { display: block; margin-top: 4px; color: var(--text-muted); font-size: .78rem; font-weight: 500; }
.teacher-result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.teacher-result-summary article { padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); text-align: center; }
.teacher-result-summary span { display: block; color: var(--text-muted); font-size: .75rem; }
.teacher-result-summary strong { display: block; margin-top: 5px; font-size: 1.15rem; }
.teacher-question-review { margin-top: 12px; padding: 15px; border: 1px solid var(--border); border-inline-start: 4px solid #94a3b8; border-radius: var(--radius); }
.teacher-question-review.correct { border-inline-start-color: #22c55e; background: #f0fdf4; }
.teacher-question-review.incorrect { border-inline-start-color: #ef4444; background: #fef2f2; }
.teacher-question-review.unanswered { border-inline-start-color: #f59e0b; background: #fffbeb; }
.teacher-question-review-head { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; font-weight: 800; }
.teacher-question-review h4 { margin: 12px 0; line-height: 1.9; }
.teacher-question-options { display: grid; gap: 8px; }
.teacher-question-option { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.teacher-question-option.correct-answer { border-color: #86efac; }
.teacher-question-option.wrong-answer { border-color: #fca5a5; }
.teacher-question-option small { color: var(--text-muted); }
.teacher-question-explanation { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--text-muted); line-height: 1.85; }
@media (max-width: 980px) {
  .teacher-results-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-results-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .teacher-results-picker, .teacher-results-metrics, .teacher-result-summary { grid-template-columns: 1fr; }
  .teacher-question-option { grid-template-columns: 28px 1fr; }
  .teacher-question-option small { grid-column: 2; }
}
