#review-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.review {
  text-align: left;
  padding: 8px 6px 6px;
}

#review-view .review-nav {
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  padding-top: clamp(12px, 3vw, 24px);
}

.review-nav {
  margin-top: 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(4px, 2vw, 10px);
  width: 100%;
}

.review-nav-start {
  justify-self: start;
  min-width: 0;
}

.review-nav-end {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.review-nav-progress {
  margin: 0;
  justify-self: center;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .review-nav-progress {
    white-space: normal;
    line-height: 1.25;
    max-width: min(42vw, 140px);
  }
}

.review-answer-btn:hover {
  background: #fff;
  border-color: var(--border);
}

.review-answer-btn.user-choice,
.review-answer-btn.user-choice:hover {
  background: #fce7ef;
  border-color: #fb7185;
}

.review-answer-btn.correct-choice,
.review-answer-btn.correct-choice:hover {
  background: #e7f8ed;
  border-color: #86efac;
}

.review-answer-btn.user-choice.correct-choice,
.review-answer-btn.user-choice.correct-choice:hover {
  background: #e6f7ea;
  border-color: #4ade80;
}
