.grade-summary-badge {
  background: #edf6ee;
  border: 2px solid #234d36;
  border-radius: 9px;
  color: #234d36;
  font-weight: 800;
  padding: 8px 11px;
  white-space: nowrap;
}
.grade-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(13, 28, 19, 0.72);
  padding: 20px;
}
.grade-modal.open {
  display: grid;
}
.grade-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 4px solid #234d36;
  border-radius: 16px;
  background: #fff;
  padding: 26px;
}
.grade-close {
  position: absolute;
  right: 14px;
  top: 14px;
}
.grade-review-summary {
  border: 2px solid #8fb29a;
  border-radius: 12px;
  background: #edf6ee;
  padding: 18px;
  margin-top: 14px;
}
.grade-review-summary.needs-work {
  border-color: #b44a3c;
  background: #fff4f2;
}
.grade-score {
  color: #234d36;
  font-size: 1.35rem;
}
.grade-issue-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.grade-issue-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid #c7d5ca;
  border-radius: 10px;
  padding: 12px;
}
.attempt-confirmation[hidden] {
  display: none;
}
.attempt-confirmation {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 28px;
}
.attempt-confirmation-panel {
  width: min(760px, 100%);
  text-align: center;
  border: 4px solid #234d36;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 12px 34px #0002;
}
.attempt-confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.attempt-confirmation-actions button {
  min-height: 64px;
  background: #234d36;
  color: #fff;
  border: 3px solid #173425;
}
.prompt.ai-needs-revision {
  border: 5px solid #b42318;
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.16);
}
.ai-revision-note {
  margin-top: 10px;
  border-radius: 8px;
  background: #fff0ee;
  color: #751b13;
  font-weight: 800;
  padding: 10px;
}
.grade-error-code {
  color: #6b2720;
  font-size: 0.8rem;
  word-break: break-word;
}
@media (max-width: 760px) {
  .attempt-confirmation-actions {
    grid-template-columns: 1fr;
  }
  .grade-issue-list li {
    align-items: stretch;
    flex-direction: column;
  }
}

