.result-back { display: none; }
.result-score-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.result-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.result-score > strong { color: #173547; font-size: 42px; line-height: 1.15; }
.result-score > span { color: #536277; font-size: 16px; }
.result-score-note { color: #536277; }
.result-outcome { padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.result-outcome.passed { background: #e4f4e9; color: #165a32; }
.result-outcome.not-passed { background: #fff0e8; color: #903512; }
.result-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.result-stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 10px; border: 1px solid #d3deea; }
.result-stat dt { font-size: 14px; overflow-wrap: anywhere; }
.result-stat dd { margin: 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-stat-correct { background: #edf7f1; color: #165a32; }
.result-stat-wrong { background: #fff1f1; color: #922b37; }
.result-stat-open { background: #fff7e8; color: #815313; }
.result-question-picker { margin-top: 14px; border-top: 1px solid #d3deea; }
.result-question-picker > summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.result-start-review { margin-top: 14px; min-height: 46px; }
.result-question-heading { margin-bottom: 6px; }
.result-review-selection { margin-top: 0; }
.result-summary h1:focus, .result-question-heading:focus { outline: none; }
.result-empty { padding: 12px; background: #edf2f8; border-radius: 8px; }

@media (max-width: 760px), (max-width: 1366px) and (pointer: coarse) {
  .exam-results:not(.exam-reviewing) :is(.result-review, .exam-nav) { display: none; }
  .exam-results:not(.exam-reviewing) .exam-main.has-exam-navigation { padding-bottom: 24px; }
  .exam-reviewing .result-overview { display: none; }
  .exam-reviewing .result-back { display: block; min-height: 44px; padding: 6px 10px; margin-right: auto; }
  .exam-reviewing .exam-progress { display: none; }
  .exam-results .result-overview { gap: 12px; }
  .exam-results:not(.exam-reviewing) .result-overview { display: grid; }
  .exam-results .result-overview > .panel { margin: 0; padding: 16px; border-radius: 12px; min-width: 0; }
  .exam-results .result-summary h1 { margin: 0; font-size: 23px; line-height: 1.25; }
  .exam-results .result-exam-title { margin: 6px 0 14px; font-size: 14px; }
  .exam-results .result-score-note { margin: 8px 0; font-size: 14px; }
  .exam-results .result-stats { margin-top: 12px; }
  .exam-results .result-stat dt { font-size: 13px; }
  .exam-results .result-questions h2, .exam-results .result-next-steps h2 { margin: 0 0 12px; font-size: 19px; }
  .exam-results .overview-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .exam-results .overview-filters > button { min-width: 0; min-height: 48px; padding: 8px 4px; font-size: 13px; line-height: 1.3; white-space: normal; }
  .exam-results .result-start-review { width: 100%; }
  .exam-results .question-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 7px; }
  .exam-results .question-grid button { min-width: 0; min-height: 46px; padding: 6px 3px; }
  .exam-results .result-next-steps .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .exam-results .result-next-steps .row > a { justify-content: center; min-height: 44px; }
  .exam-results .result-question-heading { margin: 2px 0 5px; font-size: 19px; }
  .exam-results .result-review-selection { margin-bottom: 12px; font-size: 14px; }
  .exam-results .feedback { margin: 14px 0 0; padding: 16px; border: 1px solid #d3deea; border-radius: 12px; background: #fff; }
  .exam-results .feedback > strong { display: block; padding-bottom: 10px; border-bottom: 1px solid #d3deea; }
  .exam-results .feedback p { line-height: 1.6; overflow-wrap: anywhere; }
  .exam-results .feedback h3 { font-size: 18px; margin-bottom: 6px; }
  .exam-results .feedback a { overflow-wrap: anywhere; }
  .exam-results .feedback details > summary { min-height: 44px; padding: 12px 0; }
}
@media (min-width: 900px) and (max-width: 1366px) and (pointer: coarse) {
  .exam-results:not(.exam-reviewing) .result-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .exam-results .result-next-steps { grid-column: 1 / -1; }
  .exam-results .result-next-steps .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
