.quiz-mode .classwork-question legend { font-size: 18px; }
.quiz-mode .classwork-option code { font-size: 16px; line-height: 1.75; }
.quiz-question-image { display: block; width: auto; height: auto; max-width: 100%; margin: 16px 0; border: 1px solid var(--line); background: #fff; }
.quiz-completion-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.quiz-completed-score { font-size: 28px; font-weight: 750; color: var(--accent); margin: 0 0 32px; }
.quiz-results { min-width: 980px; }
.quiz-best-summary { font-size: 20px; font-weight: 700; color: var(--accent); }
#bestDialog { width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
#bestDialog p { margin: 0; line-height: 1.65; }
#bestDialog .classwork-review-question > p { margin-top: 12px; }
.quiz-score-link { font-weight: 700; color: var(--accent); text-underline-offset: 3px; }
.quiz-delete-button { color: var(--rose); border-color: #e7b6af; background: #fff5f3; }
.quiz-delete-confirm { background: var(--rose); color: #fff; }
.quiz-delete-context { white-space: pre-line; line-height: 1.8; font-weight: 650; }
#deleteQuizForm p { margin: 0; line-height: 1.7; }
.quiz-departure-rule { padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: #f5f8f8; line-height: 1.7; }
.quiz-departure-rule.is-warning { background: #fff4e5; border-color: #c98318; color: #754600; font-weight: 650; }
.quiz-terminated-description { line-height: 1.9; margin-bottom: 28px; }
