/* Review rounds: the list (#/rounds) and the work screen (#/round/:rid). Tokens only. */
.rr { max-width: 1200px; margin: 0 auto; }
.rr-head { display: grid; gap: 12px; margin-bottom: 24px; }
.rr-lead { max-width: 62ch; color: var(--ink-60); margin: 0; }
.rr-steps { counter-reset: rr; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; max-width: 900px; }
.rr-steps li { counter-increment: rr; display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: min-content 1fr; gap: 2px 10px; font-size: 14px; line-height: 1.4; }
.rr-steps li::before { content: counter(rr); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--accent); font-size: 13px; font-weight: 500; }
.rr-steps strong { font-weight: 500; }
.rr-steps span { color: var(--ink-60); }
.rr-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rr-card { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; }
.rr-card:hover { border-color: var(--ink-40); }
.rr-card p { margin: 0; color: var(--ink-60); }
.rr-card-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.rr-card-title { font-weight: 500; }

.rr-progress { display: flex; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.rr-progress-done { background: var(--accent); }
.rr-progress-unsure { background: var(--warn); }

/* Create form */
.rr-form { margin-bottom: 24px; }
.rr-form h2 { margin-top: 0; }
.rr-form .seg { margin-bottom: 8px; }
.rr-src { margin-bottom: 6px; }
.rr-answers-edit { display: grid; gap: 10px; margin-bottom: 10px; }
.rr-answer-edit { display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.rr-answer-edit-main, .rr-answer-edit-apply, .rr-apply-extra { display: grid; gap: 6px; }
@media (max-width: 720px) { .rr-answer-edit { grid-template-columns: 1fr; } }

/* Work screen */
.rr-work-head { display: grid; gap: 8px; margin-bottom: 12px; }
.rr-head-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rr-head-row h1 { margin: 0; }
.rr-note { margin: 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rr-brief { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.rr-brief summary { cursor: pointer; font-weight: 500; }
.rr-brief p, .rr-brief ul { max-width: 75ch; font-size: 14px; }
.rr-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.rr-one { display: grid; gap: 24px; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); align-items: start; }
.rr-figure { margin: 0; display: grid; gap: 6px; }
.rr-image { width: 100%; max-height: 72vh; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
div.rr-image { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.rr-panel { display: grid; gap: 12px; }
.rr-question { margin: 0; }
.rr-answers { display: grid; gap: 8px; }
.rr-answer { width: 100%; justify-content: flex-start; align-items: flex-start; text-align: left; padding: 14px 16px; gap: 12px; font-size: 16px; line-height: 1.3; min-height: 56px; }
.rr-answer[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rr-answer[aria-pressed="true"] .rr-answer-help, .rr-answer[aria-pressed="true"] .rr-answer-effect { color: inherit; opacity: 0.8; }
.rr-answer.is-unsure { border-style: dashed; }
.rr-key { font: 500 12px/1 var(--mono); min-width: 22px; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-60); flex: none; }
.rr-answer[aria-pressed="true"] .rr-key { color: inherit; border-color: currentColor; }
.rr-answer-text { display: grid; gap: 4px; }
.rr-answer-help { font-size: 13px; color: var(--ink-60); }
.rr-answer-effect { font-size: 11px; color: var(--muted); }
.rr-note-wrap summary { cursor: pointer; font-size: 14px; color: var(--ink-60); }
.rr-note-wrap textarea { margin-top: 8px; }
.rr-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.rr-facts dt { color: var(--muted); }
.rr-facts dd { margin: 0; }
.rr-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }

.rr-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.rr-tile { position: relative; display: grid; gap: 4px; padding: 6px; align-content: start; justify-items: start; }
.rr-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.rr-tile-id { font-size: 11px; color: var(--muted); }
.rr-tile .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rr-admin { margin-top: 32px; }
.rr-admin-panel h2 { margin-top: 0; }
.rr-history ul { padding-left: 18px; }
.rr-dry ul { padding-left: 18px; }

/* Phone: the frame on top, answers in thumb reach, Previous / Next pinned to the bottom. */
@media (max-width: 720px) {
  .rr-one { grid-template-columns: 1fr; gap: 12px; }
  .rr-image { max-height: 42vh; }
  .rr-brief p, .rr-brief ul { font-size: 13px; }
  .rr-answer { min-height: 52px; padding: 12px 14px; }
  .rr-key { display: none; }
  .rr-answer-effect { display: none; }
  .rr-nav { position: sticky; bottom: var(--tabbar-h, 0px); background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 12px; }
  .rr-nav button { min-height: 48px; min-width: 96px; justify-content: center; }
  .rr-tools .seg { width: 100%; overflow-x: auto; }
}
@media (max-width: 720px) { .rr-steps { grid-template-columns: minmax(0, 1fr); } }
