/* Annotation behavior is shared; each theme keeps its own report presentation. */
.report-grid {
  --report-rule: #d8cffa;
  --report-mark: #eee8ff;
  --report-active: #d8caff;
  --report-accent: #8058e7;
  --report-label-ink: #5d3da4;
  --report-label-fill: #f0eaff;
}
html[data-theme] .report-grid > .report-answer-pane {
  padding: 24px 28px;
  min-width: 0;
  overflow: auto;
  background: #fff;
  color: #1b2b45;
}
html[data-theme] .report-grid > .report-comments-pane,
html[data-theme] .report-canvas > .report-comments-pane {
  padding: 24px 20px;
  min-width: 0;
  display: block;
  --color-ink: #1b2b45;
  --color-ink-2: #33445e;
  --color-muted: #52627b;
  --color-surface: #fff;
  --color-paper: #fff;
  --color-paper-2: #f3f5fb;
  --color-rule: #d8deed;
  --color-accent: #7652df;
  --color-error: #a83d3d;
  --color-error-soft: #fff1ef;
  overflow: auto;
  background: #fff;
  color: #1b2b45;
}
.report-prompt { margin: 0 0 24px; border-bottom: 1px solid var(--report-rule); padding-bottom: 14px; }
.report-prompt summary { cursor: pointer; width: fit-content; font-size: 14px; font-weight: 600; padding: 5px 0; }
.report-prompt .markdown-prompt { margin-top: 16px; }
.report-answer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.report-answer-heading h3 { margin: 0; font-size: 17px; }
.report-answer-heading > span { color: #60738e; font-size: 12px; }
.report-source { border: 1px solid var(--report-rule); border-radius: 8px; overflow: auto; padding: 12px 0; background: #fff; color: #16253d; }
.report-source-line { display: flex; min-height: 24px; width: max-content; min-width: 100%; box-sizing: border-box; }
.report-line-number { box-sizing: border-box; flex: 0 0 48px; width: 48px; min-height: 24px; padding: 0 10px 0 4px; text-align: right; color: #62758e; font: 13px/24px Menlo, Consolas, monospace; user-select: none; }
button.report-line-number { appearance: none; border: 0; border-right: 2px solid var(--report-accent); border-radius: 0; background: transparent; cursor: pointer; }
.report-line-content { display: block; min-width: 0; padding: 0 16px 0 12px; white-space: pre; tab-size: 4; font: 14px/24px Menlo, Consolas, monospace; }
.report-text .report-source-line { width: 100%; }
.report-text .report-line-content { white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; font-family: inherit; font-size: 16px; line-height: 1.8; }
.report-text .report-line-number { line-height: 28.8px; }
.report-text-mark { background: var(--report-mark); color: inherit; cursor: pointer; border-bottom: 1px solid var(--report-accent); border-radius: 2px; }
.report-text-mark.annotation-active { background: var(--report-active); }
.report-comments-title { font-size: 18px; margin: 0 0 16px; }
.report-comment { background: #fff; border: 1px solid var(--report-rule); border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; cursor: pointer; scroll-margin: 16px; }
.report-comment.annotation-active { border-color: var(--report-accent); box-shadow: 0 0 0 1px var(--report-accent); }
.report-comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 8px; }
.report-comment-meta > span:first-child { font-weight: 700; }
.report-comment-meta > span:last-child { color: var(--report-label-ink); background: var(--report-label-fill); padding: 2px 6px; border-radius: 4px; }
.report-comment h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.5; }
.report-comment p { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-comment p + p { margin-top: 8px; }
.report-comment:focus-visible, .report-line-number:focus-visible, .report-text-mark:focus-visible, .report-prompt summary:focus-visible { outline: 2px solid var(--report-accent); outline-offset: 3px; }
html[data-theme] .report-code .syntax-keyword { color: #1010ff; }
html[data-theme] .report-code .syntax-string { color: #bd0000; }
html[data-theme] .report-code .syntax-comment { color: #168320; }
html[data-theme] .report-code .syntax-type { color: #0750c9; }
html[data-theme] .report-code .syntax-number { color: #8b24a8; }
@media (max-width: 760px) {
  html[data-theme] .report-grid { display: flex; flex-direction: column; overflow: visible; }
  html[data-theme] .report-grid > .report-overview { width: 100%; box-sizing: border-box; }
  html[data-theme] .report-grid > .report-answer-pane,
  html[data-theme] .report-grid > .report-comments-pane { overflow: visible; padding: 20px 16px; flex: none; }
  html[data-theme] .report-grid > .workspace-splitter { display: none; }
  .report-grid > .report-connector { display: none; }
  .report-line-content { font-size: 13px; }
  .report-line-number { flex-basis: 38px; width: 38px; }
  .report-comment { margin-bottom: 12px; }
}
.report-grid { position: relative; }
.report-connector { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.report-connector i { position: absolute; display: block; background: var(--report-accent); }
@media (forced-colors: active) { .report-connector i { background: Highlight; } }
.report-insertion-mark { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: text-bottom; cursor: pointer; }
.report-insertion-mark::after { content: ""; position: absolute; left: 0; top: 0; width: 2ch; height: 1em; border: 1px dashed var(--report-accent); border-radius: 3px; background: transparent; pointer-events: auto; box-sizing: border-box; }
.report-insertion-mark.annotation-active::after { background: transparent; box-shadow: 0 1px 0 var(--report-accent); }
.report-insertion-mark:focus-visible { outline: 0; }
.report-insertion-mark:focus-visible::after { outline: 2px solid var(--report-accent); outline-offset: 2px; }
.report-comment-problem { font-weight: 600; }
.report-check-state { font-size: 14px; margin: 0 0 18px; line-height: 1.5; }
.report-check-state span { display: block; font-size: 12px; margin-top: 4px; opacity: .85; }
.report-comparison { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; align-items: center; margin-top: 12px; }
.report-comparison code { display: block; min-width: 0; overflow: auto; white-space: pre; padding: 8px; border-radius: 5px; border: 1px solid var(--report-rule); font: 12px/1.6 Menlo, Consolas, monospace; }
.report-comparison-before { background: #f5f6fa; color: #263548; }
.report-comparison-after { background: #f5f6fa; color: #263548; }
.report-comparison-arrow { color: var(--report-accent); font-size: 16px; }
.report-unlocated { font-size: 14px; border-top: 1px solid var(--report-rule); padding-top: 14px; }
.report-unlocated > span { font-size: 12px; }
.report-unlocated p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
@media (max-width: 420px) { .report-comparison { grid-template-columns: minmax(0,1fr); gap: 4px; } .report-comparison-arrow { text-align: center; } }
@media (forced-colors: active) { .report-text-mark, .report-insertion-mark::after { outline: 1px solid Highlight; } .report-text-mark.annotation-active { outline: 2px solid Highlight; } }

.report-preview-original { border-bottom: 1px dashed var(--report-accent); }
.report-preview-change { background: #d9efdf; color: #245739; border-radius: 2px; }
.report-preview-empty { display: inline-block; min-width: 1ch; height: 1em; vertical-align: text-bottom; border: 1px dashed var(--report-accent); border-radius: 2px; box-sizing: border-box; }

/* 224px question directory + a flexible reading sheet with 24px inner gutters. */
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
  background: #f5f6f8;
  font-family: Arial, "PingFang SC", sans-serif;
}
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) > .race-answer-header { grid-column: 1 / -1; grid-row: 1; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) > .question-rail {
  grid-column: 1; grid-row: 2; display: block;
  width: auto; height: auto; min-height: 0;
  padding: 24px 12px; overflow-y: auto;
  border: 0; background: transparent;
}
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav {
  display: flex; flex-direction: column; gap: 4px; height: auto; padding: 0; overflow: visible;
}
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button {
  display: flex; flex: none; align-items: flex-start; gap: 10px;
  width: 100%; min-height: 44px; padding: 10px 12px;
  clip-path: none; border: 0; border-radius: 6px;
  background: transparent !important; color: #454a55; text-align: left;
  transform: none; transition: background 120ms;
}
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button::before,
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-state { display: none; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button.active { background: #e9efff !important; color: #153dc7; box-shadow: inset 3px 0 #043bff; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button:hover:not(.active) { background: #eceef2 !important; transform: none; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: -2px; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-number,
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-copy strong {
  max-width: none; font: 500 14px/22px Arial, "PingFang SC", sans-serif; font-size: 14px !important;
}
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-number { color: #687080; font-variant-numeric: tabular-nums; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button.active .question-nav-copy strong { font-weight: 600; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-copy { display: block; min-width: 0; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-copy strong { display: block; white-space: normal; overflow-wrap: anywhere; }
html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .workpaper-stepper { display: none; }
html[data-theme="blue"] .race-answer-page .blue-report-grid {
  --report-rule: #e4e7ec; --report-mark: #e8efff; --report-active: #dbe6ff;
  --report-accent: var(--theme-accent);
  grid-column: 2; grid-row: 2; display: block;
  align-self: start; justify-self: start;
  width: calc(100% - 16px); max-width: 1160px;
  min-width: 0; min-height: 0; height: calc(100% - 32px); max-height: calc(100% - 32px);
  margin: 16px 16px 16px 0; padding: 0;
  overflow: auto; border: 1px solid #e7e9ee; border-radius: 12px;
  background: #fff; box-shadow: none;
}
html[data-theme="blue"] .blue-report-grid .report-text .report-line-content { max-width: 72ch; }
html[data-theme="blue"] .blue-report-grid > .report-overview {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 16px; width: auto; min-height: 52px;
  margin: 0 24px; padding: 8px 0;
  border: 0; border-bottom: 1px solid #eceef2;
  border-radius: 0; background: #fff; color: #171c26;
}
html[data-theme="blue"] .blue-report-grid .report-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-width: 0; }
html[data-theme="blue"] .blue-report-grid > .report-overview h2 { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; color: #454a55; white-space: nowrap; }
.report-result-count { font-size: 14px; color: #626976; font-variant-numeric: tabular-nums; }
.report-result-count strong { color: var(--theme-accent); font-weight: 600; }
.report-result-pending, .report-result-error { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #626976; }
.report-result-pending .loader { width: 14px; height: 14px; border-width: 2px; }
.report-result-error { flex-wrap: wrap; color: #a52b36; }
.report-result-error .button { min-height: 30px; padding: 4px 8px; font-size: 13px; }
html[data-theme="blue"] .blue-report-grid .report-canvas-toolbar { position: relative; display: flex; flex: none; align-items: center; margin: 0; }
html[data-theme="blue"] .report-canvas-toolbar .report-prompt { position: relative; margin: 0; padding: 0; border: 0; }
html[data-theme="blue"] .report-canvas-toolbar .report-prompt summary {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border: 1px solid #dfe3e9; border-radius: 5px;
  background: #fff; color: #303744; font-size: 13px; font-weight: 500;
  line-height: 20px; list-style: none; white-space: nowrap;
}
html[data-theme="blue"] .report-canvas-toolbar .report-prompt summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
html[data-theme="blue"] .report-canvas-toolbar .report-prompt summary::-webkit-details-marker { display: none; }
html[data-theme="blue"] .report-canvas-toolbar .report-prompt[open] summary { color: var(--theme-accent); border-color: var(--theme-accent); }
html[data-theme="blue"] .report-canvas-toolbar .report-prompt .markdown-prompt { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(640px, calc(100vw - 48px)); max-height: min(60dvh, 560px); box-sizing: border-box; margin: 0; padding: 24px; overflow: auto; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; box-shadow: 0 10px 32px #17213a1a; color: #17213a; font-size: 16px; }
html[data-theme="blue"] .report-canvas { display: block; min-width: 0; background: #fff; }
html[data-theme="blue"] .report-canvas > .report-answer-pane { display: block; min-width: 0; padding: 20px 24px; overflow: visible; border: 0; background: #fff; color: #171c26; animation: none; }
html[data-theme="blue"] .report-question-heading { margin: 0 0 16px; }
html[data-theme="blue"] .race-answer-page .report-question-heading #question-title { margin: 0; font: 600 22px/1.45 Arial, "PingFang SC", sans-serif; letter-spacing: -.01em; color: #171c26; }
html[data-theme="blue"] .report-canvas .report-answer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 14px; border: 1px solid #e7e9ee; border-bottom: 0; border-radius: 6px 6px 0 0; background: #f8f9fb; }
html[data-theme="blue"] .report-canvas .report-answer-heading h3 { margin: 0; font-size: 13px; font-weight: 500; color: #555f6e; }
html[data-theme="blue"] .report-canvas .report-answer-tools { display: flex; align-items: center; gap: 8px; }
html[data-theme="blue"] .report-canvas .report-copy-button { padding: 2px 4px; border: 0; border-radius: 3px; background: transparent; color: #555f6e; font: 13px/20px Arial, "PingFang SC", sans-serif; cursor: pointer; }
html[data-theme="blue"] .report-canvas .report-copy-button:hover { color: var(--theme-accent); }
html[data-theme="blue"] .report-canvas .report-copy-button:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 2px; }
html[data-theme="blue"] .report-canvas .report-source { width: 100%; min-width: 0; box-sizing: border-box; padding: 14px 0; overflow-x: auto; border: 1px solid #e7e9ee; border-radius: 0 0 6px 6px; background: #fff; }
html[data-theme="blue"] .report-canvas .report-source-line { min-height: 26px; }
html[data-theme="blue"] .report-canvas .report-line-content { padding: 0 20px 0 14px; font: 16px/26px Menlo, Consolas, monospace; color: #212936; }
html[data-theme="blue"] .report-canvas .report-line-number { position: relative; flex-basis: 48px; width: 48px; min-height: 26px; padding: 0 12px 0 0; color: #687080; font: 12px/26px Menlo, Consolas, monospace; }
html[data-theme="blue"] .report-canvas button.report-line-number { border: 0; background: transparent; }
html[data-theme="blue"] .report-canvas button.report-line-number::before,
html[data-theme="blue"] .report-canvas button.report-line-number::after { display: none; }
html[data-theme="blue"] .report-canvas .report-text-mark { border: 0; border-radius: 2px; background: #e8efff; box-shadow: none; }
html[data-theme="blue"] .report-canvas .report-text-mark.annotation-active { background: #dbe6ff; box-shadow: 0 1px 0 var(--theme-accent); }
html[data-theme="blue"] .report-canvas .report-insertion-mark::after { left: -3px; width: 2px; border: 0; border-left: 2px solid var(--theme-accent); border-radius: 0; background: transparent; }
html[data-theme="blue"] .report-canvas .report-text .report-line-content { font-family: Arial, "PingFang SC", sans-serif; font-size: 16px; line-height: 1.8; }
html[data-theme="blue"] .report-canvas .report-code .syntax-keyword { color: #284ab3; }
html[data-theme="blue"] .report-canvas .report-code .syntax-type { color: #284ab3; }
html[data-theme="blue"] .report-canvas .report-code .syntax-string { color: #a1333f; }
html[data-theme="blue"] .report-canvas .report-code .syntax-number { color: #7c3f91; }
.report-canvas .report-inline-annotation {
  position: sticky; left: 62px;
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  align-items: start; gap: 8px 12px;
  box-sizing: border-box; width: max-content; max-width: calc(100% - 82px);
  margin: 4px 20px 8px 62px; padding: 2px 8px;
  border: 0; border-left: 2px solid var(--theme-accent); border-radius: 0;
  background: transparent; box-shadow: none; scroll-margin: 16px;
}
.report-canvas .report-inline-annotation.annotation-active { border-left-color: var(--theme-accent); background: #f2f5ff; box-shadow: none; }
.report-canvas .report-inline-annotation .report-comment-meta { margin: 0; padding: 0; border: 0; background: transparent; }
.report-canvas .report-inline-annotation .report-comment-meta { grid-column: 1; grid-row: 1; }
.report-canvas .report-inline-annotation .report-comment-problem { grid-column: 2; grid-row: 1; }
.report-canvas .report-inline-annotation .report-comment-suggestion { grid-column: 2; }
.report-canvas .report-inline-annotation .report-comment-meta > span,
.report-canvas .report-inline-annotation .report-comment-meta > span:last-child { display: block; padding: 1px 8px; border-radius: 4px; background: #edf1f8; color: #4b5b72; font-size: 12px; font-weight: 400; line-height: 22px; white-space: nowrap; }
.report-canvas .report-inline-annotation .report-comment-problem,
.report-canvas .report-inline-annotation .report-comment-suggestion { max-width: 40rem; margin: 0; color: #303744; font-size: 14px; font-weight: 400; line-height: 24px; }
.report-preview-label { color: #59677b; font: 12px/20px Arial, "PingFang SC", sans-serif; }
.report-canvas .report-inline-annotation .report-comparison { display: grid; grid-column: 2; gap: 2px; width: 100%; max-width: 40rem; margin: 0; padding: 4px 8px; overflow: hidden; border: 0; border-radius: 4px; background: #f0f4fa; }
.report-canvas .report-inline-annotation .report-comparison code { min-width: 0; max-width: 100%; padding: 0; overflow-x: auto; border: 0; border-radius: 0; background: transparent; color: #303744; font: 13px/22px Menlo, Consolas, monospace; }
html[data-theme="blue"] .report-canvas > .report-comments-pane { display: block; min-width: 0; padding: 0 24px 24px; overflow: visible; border: 0; background: #fff; color: #303744; }
.report-standard {color: #526176; font-size: 12px; white-space: nowrap;}
.report-canvas .report-check-state {margin: 0 0 12px; font-size: 13px; color: #526176;}
.report-canvas .report-check-state span {margin-left: 12px;}
.report-canvas .report-check-state { margin: 0; color: #626976; font-size: 14px; }
.report-canvas .report-unlocated { margin: 12px 0 0; padding: 12px 14px; border: 0; border-left: 2px solid #b8525b; background: #fbf6f7; }
.report-canvas > .report-comments-pane:empty { display: none; }
@media (max-width: 1100px) {
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) { grid-template-columns: 190px minmax(0, 1fr); }
  .report-canvas .report-inline-annotation { grid-template-columns: 48px minmax(0, 1fr); }
  .report-canvas .report-inline-annotation .report-comparison { grid-column: 2; width: max-content; max-width: 100%; }
}
@media (max-width: 760px) {
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; overflow: hidden; }
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) > .question-rail { width: 100%; height: auto; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; }
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav { flex-direction: row; gap: 4px; width: max-content; }
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-button { flex: 0 0 auto; width: min(260px, calc(100vw - 24px)); min-width: 0; max-width: calc(100vw - 24px); min-height: 44px; padding: 10px 12px; }
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid) .question-nav-copy strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-theme="blue"] .race-answer-page .blue-report-grid { flex: 1; width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; border: 0; border-radius: 0; overflow: auto; }
  html[data-theme="blue"] .blue-report-grid > .report-overview { margin: 0 16px; min-height: 60px; }
  html[data-theme="blue"] .blue-report-grid .report-summary { gap: 4px 12px; }
  html[data-theme="blue"] .report-canvas > .report-answer-pane { padding: 20px 16px; }
  html[data-theme="blue"] .report-question-heading { margin-bottom: 20px; }
  html[data-theme="blue"] .race-answer-page .report-question-heading #question-title { font-size: 20px; }
  html[data-theme="blue"] .report-canvas .report-line-content { font-size: 14px; padding-left: 8px; }
  html[data-theme="blue"] .report-canvas .report-line-number { flex-basis: 32px; width: 32px; padding-right: 8px; }
  .report-canvas .report-inline-annotation { left: 40px; width: calc(100% - 52px); max-width: calc(100% - 52px); margin-left: 40px; margin-right: 12px; padding: 8px; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .report-canvas .report-inline-annotation .report-comment-meta { display: block; }
  .report-canvas .report-inline-annotation .report-comparison { grid-column: 1; max-width: 100%; }
  .report-canvas .report-inline-annotation .report-comment-problem,
  .report-canvas .report-inline-annotation .report-comment-suggestion { grid-column: 1; grid-row: auto; }
  html[data-theme="blue"] .report-canvas > .report-comments-pane { padding: 0 16px 20px; }
  html[data-theme="blue"] .report-canvas-toolbar .report-prompt summary { min-height: 44px; }
}

.mentor-feedback { box-sizing: border-box; min-width: 0; padding: 12px 14px; border: 1px solid #dae4f8; border-left: 3px solid var(--theme-accent, #1746ed); border-radius: 6px; background: #f6f8ff; color: #24314a; }
html[data-theme] .report-grid > .report-overview:has(.mentor-feedback-summary) { flex-wrap: wrap; }
.mentor-feedback-summary { order: 2; flex: 1 0 100%; }
.mentor-feedback-question { margin-top: 18px; }
.mentor-feedback-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.mentor-feedback-heading h3 { margin: 0; color: #172440; font-size: 14px; font-weight: 680; }
.mentor-feedback-heading span { color: #526382; font-size: 12px; }
.mentor-feedback p,
.report-overview .mentor-feedback p { margin: 5px 0 0; color: #24314a; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Historical repeated style notes stay inspectable without stretching the initial report. */
.report-repeated-annotations { position: sticky; left: 62px; max-width: calc(100% - 82px); margin: 0 20px 10px 62px; min-width: 0; }
.report-repeated-annotations > summary { width: fit-content; cursor: pointer; color: #34538b; font-size: .8125rem; padding: 6px 8px; }
.report-repeated-annotations > summary:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 2px; }
.report-canvas .report-repeated-annotations .report-inline-annotation { margin-left: 0; max-width: 100%; }
@media (max-width: 700px) {
  .report-repeated-annotations { left: 40px; max-width: calc(100% - 52px); margin-left: 40px; margin-right: 12px; }
}

.report-canvas .report-inline-annotation .report-comment-suggestion { border-left: 1px solid #d5ddea; padding-left: 12px; }

@media(max-width:760px){
  html[data-theme="blue"] .race-answer-page:has(.blue-report-grid)>:is(.attempt-banner,.question-rail){flex-shrink:0}
  html[data-theme="purple"] .race-answer-page:has(.report-grid){height:100dvh;min-height:0;display:flex;flex-direction:column}
  html[data-theme="purple"] .race-answer-page:has(.report-grid)>:is(.attempt-banner,.question-rail){flex-shrink:0}
  html[data-theme="purple"] .race-answer-page .report-grid{flex:1;min-height:0;height:auto;overflow:auto;scrollbar-gutter:stable}
}

html[data-theme="purple"] .workpaper-app .report-grid{padding-top:0}

/* The progress overlay leaves the report's reading geometry in place. */
@property --grading-ring-value {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.report-progress-page { position: relative; }

.grading-progress-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(24px, 8dvh, 88px) clamp(20px, 4vw, 72px) 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgb(232 237 247 / 88%);
}

@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .grading-progress-overlay {
    background: rgb(237 242 251 / 62%);
    -webkit-backdrop-filter: blur(6px) saturate(.78);
    backdrop-filter: blur(6px) saturate(.78);
  }
}

.grading-progress-card {
  box-sizing: border-box;
  width: min(100%, 368px);
  min-width: 0;
  padding: 24px;
  border: 1px solid rgb(206 216 233 / 92%);
  border-radius: 16px;
  outline: none;
  background: rgb(255 255 255 / 98%);
  color: #17233b;
  box-shadow: 0 24px 64px rgb(25 42 75 / 15%), 0 3px 12px rgb(25 42 75 / 6%);
  font-family: Arial, "PingFang SC", sans-serif;
}

.grading-progress-card:focus-visible { outline: 3px solid var(--theme-accent); outline-offset: 4px; }

.grading-progress-head {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 136px;
}

.grading-progress-heading { min-width: 0; }
.grading-progress-card h2 {
  min-height: 54px;
  margin: 0 0 4px;
  color: #17233b;
  font-size: 20px;
  font-weight: 650;
  line-height: 27px;
  letter-spacing: -.02em;
}

.grading-progress-card p { margin: 0; }
.grading-progress-estimate { color: #65728a; font-size: 12px; line-height: 18px; }
.grading-progress-note { min-height: 18px; margin-top: 7px !important; color: var(--theme-accent); font-size: 12px; line-height: 18px; }
.grading-progress-note[hidden] { display: block; visibility: hidden; }

.grading-progress-ring {
  --ring-accent: var(--theme-accent);
  --ring-track: #e8edf5;
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  max-width: 100%;
  aspect-ratio: 1;
}

.grading-progress-ring::before,
.grading-progress-ring::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.grading-progress-ring::before {
  background: conic-gradient(var(--ring-accent) calc(var(--grading-ring-value) * 1%), var(--ring-track) 0);
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}

.grading-progress-ring::after {
  background: radial-gradient(circle at 50% 4px, var(--ring-accent) 0 3px, transparent 3.5px);
  transform: rotate(calc(var(--grading-ring-value) * 3.6deg));
}

.grading-progress-value {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.grading-progress-number {
  display: flex;
  align-items: baseline;
  color: #111c31;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}

.grading-progress-number strong { font: inherit; }
.grading-progress-number small { margin-left: 4px; font-size: 16px; font-weight: 600; letter-spacing: 0; }

.grading-progress-steps {
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 18px;
  padding: 4px 0;
  border-top: 1px solid #e7ebf2;
  border-bottom: 1px solid #e7ebf2;
  list-style: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.grading-progress-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 2px;
}

.grading-progress-steps li + li { border-top: 1px solid #f0f2f7; }
.grading-step-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 1.5px solid #d5dce8;
  border-radius: 50%;
  background: #f7f9fc;
  color: #fff;
}
.grading-step-mark svg { opacity: 0; stroke-width: 2.5; }
.grading-step-name { min-width: 0; color: #56627a; line-height: 20px; }
.grading-step-detail { color: #65728a; font-size: 12px; line-height: 18px; white-space: nowrap; }
.grading-progress-steps [data-state="active"] .grading-step-mark { border-color: var(--theme-accent); background: #fff; }
.grading-progress-steps [data-state="active"] .grading-step-mark::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-accent);
  content: "";
}
.grading-progress-steps [data-state="active"] .grading-step-name { color: var(--theme-accent); font-weight: 600; }
.grading-progress-steps [data-state="active"] .grading-step-detail { color: var(--theme-accent); }
.grading-progress-steps [data-state="done"] .grading-step-mark { border-color: var(--theme-accent); background: var(--theme-accent); }
.grading-progress-steps [data-state="done"] .grading-step-mark svg { opacity: 1; }
.grading-progress-steps [data-state="done"] .grading-step-name { color: #26344e; }
.grading-progress-steps [data-state="done"] .grading-step-detail { color: var(--theme-accent); }

.grading-progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.grading-progress-foot > span { color: #65728a; font-size: 12px; line-height: 18px; text-align: right; }
.grading-progress-card .grading-progress-back {
  flex: none;
  min-height: 40px;
  margin-left: -8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  clip-path: none;
  background: transparent;
  color: #536078;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.grading-progress-card .grading-progress-back:hover { background: #f2f5fa; color: var(--theme-accent); }
.grading-progress-card .grading-progress-back:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 2px; }
.grading-progress-ready .grading-progress-status { color: var(--theme-accent); }
.grading-progress-ready .grading-progress-card { border-color: color-mix(in srgb, var(--theme-accent) 38%, #dce3ef); }
.grading-progress-exit { opacity: 0; pointer-events: none; }
.grading-progress-exit .grading-progress-card { opacity: 0; transform: translateY(-8px) scale(.99); }

.grading-cta { position: relative; overflow: hidden; }
.grading-cta-meter {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgb(255 255 255 / 20%);
  pointer-events: none;
}
.grading-cta-meter > i {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}
.grading-cta-meter.complete > i { background: #b9d6ff; }
.grading-cta-note { color: #536078; font-size: 12px; line-height: 18px; }
.grading-cta-note.failed { color: #a13b49; }
html[data-theme="blue"] .sprint-action:has(.grading-cta-note) { display: grid; justify-items: end; gap: 8px; padding-top: 20px; }
html[data-theme="purple"] .purple-stage-body > .grading-cta-note { display: block; margin: 12px 4px -8px; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  .grading-progress-card { animation: grading-progress-enter 380ms cubic-bezier(.2, .75, .25, 1); }
  .grading-progress-ring { transition: --grading-ring-value 120ms linear; }
  .grading-progress-overlay { transition: opacity 300ms ease-in; }
  .grading-progress-card { transition: opacity 280ms ease-in, transform 300ms ease-in, border-color 180ms ease-out; }
  .grading-progress-ready .grading-progress-ring { animation: grading-ring-ready 380ms cubic-bezier(.2, .8, .3, 1); }
  @keyframes grading-progress-enter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes grading-ring-ready {
    0% { transform: scale(.96); }
    65% { transform: scale(1.025); }
    100% { transform: scale(1); }
  }
}

@media (forced-colors: active) {
  .grading-progress-ring { forced-color-adjust: none; --ring-accent: Highlight; --ring-track: Canvas; }
  .grading-step-mark { forced-color-adjust: none; }
  .grading-progress-steps [data-state="done"] .grading-step-mark { background: Highlight; color: HighlightText; }
}

@media (max-width: 760px) {
  .grading-progress-overlay { justify-content: center; padding: clamp(16px, 5dvh, 48px) 12px 20px; }
  .grading-progress-card { width: min(100%, 360px); }
}

@media (max-width: 360px) {
  .grading-progress-card { padding: 18px; }
  .grading-progress-head { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; min-height: 112px; }
  .grading-progress-ring { width: 108px; }
  .grading-progress-number { font-size: 32px; }
  .grading-progress-card h2 { min-height: 48px; font-size: 18px; line-height: 24px; }
  .grading-progress-foot { gap: 6px; }
  .grading-progress-foot > span { max-width: 92px; }
}

@media (max-height: 560px) {
  .grading-progress-overlay { padding-top: 12px; }
  .grading-progress-card { padding-block: 16px; }
  .grading-progress-steps { margin-block: 12px; }
}
