/* Revise tab (#revise) — reuses .side-page, .sp-hero, .stat-grid/.pf-stat and .seg from shell/styles */
.rv-hero .mascot {
  flex-shrink: 0;
}
.rv-setup {
  display: grid;
  gap: 14px;
}
.rv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rv-row > b {
  font-weight: 900;
  color: var(--ink);
}
.rv-go {
  width: 100%;
}
/* due / mastered / accuracy under the hero */
.rv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rv-st {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}
.rv-st b {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}
.rv-st span {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-faint);
}
.rv-st.due b {
  color: var(--amber-ink);
}
.rv-st.clear b {
  color: var(--teal-ink);
}
/* "Replace your saved round?" */
.rv-ask {
  display: grid;
  gap: 10px;
  padding: 30px 22px 6px;
  text-align: center;
}
.rv-ask h2 {
  margin: 0;
  padding: 0 34px; /* clear of the close button */
}
.rv-ask p {
  margin: 0 0 6px;
  color: var(--text-dim);
  font-weight: 700;
}
.rv-empty {
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px;
}
.rv-empty .btn {
  white-space: normal;
  max-width: 100%;
  text-align: center;
}
.rv-empty b {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.rv-list {
  display: grid;
  gap: 8px;
}
.rv-sess {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.rv-sess-t {
  min-width: 0;
}
.rv-sess-t small {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.rv-sess-t b {
  display: block;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-sess-n {
  text-align: right;
  display: grid;
  gap: 2px;
}
.rv-sess-n small {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-faint);
}
.rv-due {
  font-weight: 900;
  color: var(--amber-ink);
  font-size: 13.5px;
}
.rv-ok {
  font-weight: 900;
  color: var(--teal-ink);
  font-size: 13.5px;
}
.pl-tag.blue {
  background: var(--blue-dim);
  color: var(--blue-ink);
}

@media (max-width: 640px) {
  .rv-sess {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.rv-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.rv-resume b {
  display: block;
  font-size: 17px;
}
summary.rv-sess {
  list-style: none;
  cursor: pointer;
  background: var(--panel);
}
summary.rv-sess::-webkit-details-marker {
  display: none;
}
summary.rv-sess::after {
  content: "›";
  font-size: 22px;
  font-weight: 900;
  color: var(--text-faint);
  grid-column: 3;
  transition: transform var(--dur-2) var(--ease-out);
}
details.rv-round[open] > summary.rv-sess::after {
  transform: rotate(90deg);
}
.rv-round {
  display: block;
}
.rv-round-body {
  padding: 4px 6px 12px;
}
.rv-rq-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.rv-rq {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--panel);
}
.rv-rq.miss {
  border-color: var(--rose-edge, var(--rose));
}
.rv-rq-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rv-rq-n {
  font-weight: 900;
  color: var(--text-faint);
}
.rv-rq-tag {
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rv-rq.ok .rv-rq-tag {
  color: var(--teal-ink, var(--teal));
}
.rv-rq.miss .rv-rq-tag {
  color: var(--rose-ink, var(--rose));
}
.rv-rq-q {
  font-weight: 800;
  color: var(--ink);
}
.rv-rq-fig:not(:empty) {
  margin: 8px 0;
}
.rv-rq-fig svg {
  max-width: 100%;
  height: auto;
}
.rv-rq-a {
  margin-top: 8px;
  font-weight: 700;
}
.rv-rq-w {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 14px;
}
.rv-review {
  padding: 8px 0 0;
}
.rv-review-go {
  display: flex;
  justify-content: center;
}
.rv-loading {
  display: grid;
  gap: 4px;
  text-align: center;
  padding: 28px 18px;
}

@media (max-width: 480px) {
  .rv-hero {
    gap: 10px;
    padding: 16px;
  }
  .rv-hero .mascot {
    flex: none;
    width: 92px;
    height: auto;
  }
  .rv-hero .mascot svg {
    width: 100%;
    height: auto;
  }
  .rv-hero h1 {
    font-size: 28px;
  }
  .rv-hero p {
    font-size: 14px;
  }
}
