:root {
  --right-ink: #13532e;
  --right-line: #27824d;
  --right-fill: #def4e5;
  --wrong-ink: #8b1628;
  --wrong-line: #bd3047;
  --wrong-fill: #ffe3e7;
}

/* Keep graded answers legible on light and dark surfaces, including disabled choices. */
#main :is([data-answer-result="correct"], .dg-right, .dg-correct, .wordCar.hooked,
          .schoolPractice .answerRight, .options .correct, .duoChoices .correct,
          .contestCorrect, .contestResult.isRight) {
  background: var(--right-fill);
  border-color: var(--right-line);
  color: var(--right-ink);
  opacity: 1;
}
#main :is([data-answer-result="wrong"], .dg-wrong, .dg-revision, .schoolPractice .answerMiss,
          .options .wrong, .duoChoices .wrong, .contestMiss, .contestResult.isMiss) {
  background: var(--wrong-fill);
  border-color: var(--wrong-line);
  color: var(--wrong-ink);
  opacity: 1;
}
#main :is(.contestCorrect,.contestMiss,[data-warmup][data-answer-result]) b { color: inherit; }
#main :is(.contestCorrect,.contestMiss) { outline-color: currentColor; }
#main :is([role="status"],[data-maxy-result],[data-atlas-feedback])[data-answer-result] {
  border-inline-start: .22rem solid currentColor;
  border-radius: .25rem;
  padding: .5rem .7rem;
}
#main .sampleOptions button:focus-visible { outline: 3px solid #586686; outline-offset: 2px; }
