.quiz-bank-button { margin-top: 10px; width: 100%; }
.quiz-bank-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 36, 59, .28);
}
.quiz-bank-dialog::backdrop { background: rgba(10, 18, 32, .68); }
.quiz-bank-shell { padding: clamp(18px, 4vw, 30px); }
.quiz-bank-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.quiz-bank-head h2 { margin-bottom: 6px; }
.quiz-bank-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.quiz-bank-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e5eaf3; }
.quiz-bank-progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .25s ease; }
.quiz-bank-question {
  min-height: 84px;
  margin: 24px 0 18px;
  font-size: clamp(22px, 4vw, 31px);
  font-weight: 900;
  line-height: 1.45;
}
.quiz-bank-options { display: grid; gap: 10px; }
.quiz-bank-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}
.quiz-bank-option:hover { border-color: var(--blue); }
.quiz-bank-option.is-selected { border-color: var(--blue); background: #eff6ff; }
.quiz-bank-option.is-correct { border-color: #86efac; background: #dcfce7; }
.quiz-bank-option.is-wrong { border-color: #fecdd3; background: #ffe4e6; }
.quiz-bank-letter {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eef2ff;
  font-weight: 900;
}
.quiz-bank-answer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.quiz-bank-feedback {
  min-height: 66px;
  margin-top: 16px;
  padding: 13px;
  border-radius: 8px;
  color: var(--muted);
  background: #f7f8fb;
  line-height: 1.65;
}
.quiz-bank-feedback.good { color: var(--green); background: #ecfdf5; }
.quiz-bank-feedback.bad { color: var(--rose); background: #fff1f2; }
.quiz-bank-actions { display: flex; gap: 10px; margin-top: 16px; }
.quiz-bank-summary { padding: 36px 0 16px; text-align: center; }
.quiz-bank-score { margin: 12px 0; font-size: 46px; font-weight: 900; }
@media (max-width: 560px) {
  .quiz-bank-answer { grid-template-columns: 1fr; }
  .quiz-bank-actions { display: grid; }
}
