/* ── 主动回忆测验 ─────────────────────────────────────────── */

.quiz-entry {
  margin: 18px 0;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quiz-entry h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.quiz-entry p {
  margin: 0 0 12px;
}

.modal-wide {
  max-width: 860px;
}

.quiz-progress {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0 14px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}

.quiz-progress-bar {
  flex: 1 1 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.quiz-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.quiz-section {
  margin-bottom: 26px;
}

.quiz-section h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.quiz-section > p.muted {
  margin: 0 0 14px;
}

.quiz-question {
  margin-bottom: 14px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quiz-question header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.quiz-question header p {
  flex: 1;
  margin: 0;
  line-height: 1.6;
}

.quiz-number {
  font-weight: 600;
  color: var(--muted);
}

.quiz-points {
  white-space: nowrap;
  font-size: 12px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-options.quiz-inline {
  flex-direction: row;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--border-strong);
}

.quiz-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quiz-option.selected {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.quiz-option-key {
  min-width: 18px;
  font-weight: 600;
}

.quiz-blanks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-blanks input,
.quiz-question textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.quiz-question textarea {
  resize: vertical;
}

.quiz-sublabel {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.quiz-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.quiz-actions {
  display: flex;
  gap: 10px;
}

.quiz-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px;
  margin-bottom: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quiz-score strong {
  font-size: 40px;
  line-height: 1.1;
}

.quiz-mastery {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
}

.quiz-mastery.mastered {
  color: var(--mint);
}

.quiz-mastery.forgotten {
  color: var(--danger);
}

.quiz-result-group {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quiz-result-group h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.quiz-result-row {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.quiz-result-row:first-of-type {
  border-top: none;
}

.quiz-result-row p {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .quiz-options.quiz-inline {
    flex-direction: column;
  }
}

.quiz-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
}
