/* Review (canvas board "Review"): card column + Decks / Review settings aside. Loads after practice.css (pr-seg, pr-btn, pr-select). */
.page:has(.rv){padding-top:20px;padding-bottom:40px}
@media (min-width:761px){.page:has(.rv){padding-top:40px;padding-bottom:72px}}
.rv [hidden]{display:none!important}
.rv{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start}
.rv-main{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:14px}
.rv-study{display:flex;flex-direction:column;gap:14px}

.rv-top{display:flex;align-items:center;gap:12px}
.rv-count{font-size:13px;font-weight:600;white-space:nowrap}
.rv-bar{flex:1;height:8px;border-radius:999px;background:var(--line);overflow:hidden}
.rv-bar i{display:block;height:100%;width:0;background:var(--green);transition:width .2s}
.rv-title{font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}

.rv-card{min-height:400px;border-radius:24px;background:var(--card);box-shadow:0 6px 24px rgba(var(--shadow),.10);padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--ink);cursor:pointer;outline:none}
.rv-card:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.rv-blank{cursor:default}
.rv-tag{font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--text-2);text-transform:uppercase}
.rv-face{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.rv-hanzi{font-family:var(--font-zh);font-size:120px;line-height:1.1;color:var(--ink);word-break:break-all}
.rv-front .rv-en{font-size:30px}
.rv-pinyin{font-size:24px;font-weight:500}
.rv-en{font-size:20px;color:var(--ink);max-width:100%}
.rv-hint{margin:0;font-size:15px;color:var(--text-2)}
.rv-audio{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:0;background:var(--soft);color:var(--ink);cursor:pointer}
.rv-front .rv-audio{width:64px;height:64px;background:var(--red);color:var(--on-red)}
.rv-audio:hover{filter:brightness(.95)}

.rv-reveal{height:60px;border:0;border-radius:14px;background:var(--red);color:var(--on-red);font:inherit;font-size:16px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;text-decoration:none}
.rv-reveal:hover{background:var(--red-d);color:var(--on-red)}
.rv-blank .rv-reveal{align-self:stretch;max-width:360px;width:100%;margin:8px auto 0}
.rv-rate{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.rv-btn{min-height:60px;border:0;border-radius:14px;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;padding:6px 4px}
.rv-btn-l{font-size:15px}.rv-btn-n{font-size:12px}
.rv-again{background:var(--red-t);color:var(--red-d)}.rv-hard{background:var(--gold-t);color:var(--gold)}
.rv-good{background:var(--green-t);color:var(--green-d)}.rv-easy{background:var(--blue-t);color:var(--blue)}
.rv-btn:hover{filter:brightness(.97)}
.rv-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.rv-links a{min-height:44px;padding:0 14px;border-radius:10px;background:var(--card);font-size:14px;font-weight:600;display:flex;align-items:center;text-decoration:none;color:var(--red)}
.rv-links a:hover{color:var(--red-d)}
kbd{display:none;font:inherit;font-size:11px;opacity:.8}
@media (hover:hover) and (min-width:761px){.rv-reveal kbd{display:inline;margin-left:8px}}

.rv-empty{margin:0;padding:28px 20px;text-align:center;color:var(--text-2);background:var(--card);border-radius:22px}
#rv-done .stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
#rv-done .stat-card{background:var(--paper)}
.rv-done-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}

/* aside */
.rv-side{flex:1 1 min(300px,100%);min-width:0;display:flex;flex-direction:column;gap:14px}
.rv-panel{background:var(--card);border-radius:22px;padding:24px;display:flex;flex-direction:column;gap:10px}
.rv-panel h2{margin:0;font-size:18px;font-weight:700}
.rv-panel:last-child{gap:12px}
.rv-deck{text-decoration:none;color:inherit;min-height:52px;padding:8px 12px;border-radius:12px;background:var(--paper);display:flex;align-items:center;gap:10px}
.rv-deck[aria-current]{background:var(--sel)}
.rv-deck:hover{color:inherit;filter:brightness(.98)}
.rv-deck-t{flex:1;min-width:0;display:flex;flex-direction:column}
.rv-deck-t b{font-size:14px}
.rv-deck-t span{font-size:12px;color:var(--text-2)}
.rv-due{font-size:13px;font-weight:700;color:var(--red-d)}
.rv-due.is-zero{color:var(--text-2)}
.rv-more{display:flex;flex-direction:column;gap:10px}
.rv-more[open]{display:flex}
.rv-more>*+*{margin-top:10px}
.rv-more summary{min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:600;color:var(--text-2);cursor:pointer;list-style:none}
.rv-more summary::before{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin:0 10px 0 4px;transition:transform .15s}
.rv-more[open] summary::before{transform:rotate(45deg)}
.rv-levels{display:flex;flex-wrap:wrap;gap:6px}
.rv-lv{min-height:44px;padding:0 14px;border-radius:10px;border:1.5px solid var(--line);display:flex;align-items:center;font-size:13px;color:var(--ink);text-decoration:none}
.rv-lv[aria-current]{border-color:var(--red);background:var(--sel)}
.rv-new{height:44px;border:1.5px dashed var(--stroke-out);border-radius:12px;background:transparent;font:inherit;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.rv-new:hover{border-color:var(--ink)}
.rv-new-msg{margin:0;font-size:13px;color:var(--text-2)}
.rv-new-msg:empty{display:none}
.rv-field{display:flex;flex-direction:column;gap:6px}
.rv-field-l{font-size:13px;font-weight:600;color:var(--text-2)}
.rv-check{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:14px;cursor:pointer}
.rv-check input{width:22px;height:22px;accent-color:var(--red);margin:0}
.rv-sel{display:flex;flex-direction:column;gap:6px;font-size:14px}
.rv :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--blue);outline-offset:2px}

@media (max-width:760px){.rv-hanzi{font-size:96px}}
