/* Revision Flashcards and Timer */
[hidden] { display: none !important; }
.rv-strip { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.rv-stat { background: #fff; border: 1px solid var(--pmcq-line, #d7e2e8); border-radius: 12px; padding: .4rem .9rem; display: flex; align-items: baseline; gap: .4rem; }
.rv-stat b { font-size: 1.25rem; color: var(--bs-primary); }
.rv-stat span { font-size: .82rem; color: #64748b; }
.rv-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.rv-tabs button { display: flex; align-items: center; gap: .4rem; border: 2px solid var(--pmcq-line, #d7e2e8); background: #fff; color: var(--bs-primary); border-radius: 12px; padding: .45rem .85rem; font-weight: 700; cursor: pointer; }
.rv-tabs button.on { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.rv-h { font-size: 1.05rem; color: var(--bs-primary); margin: 0 0 .5rem; }

.rv-set { padding: .7rem 1rem; margin-bottom: .8rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.rv-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.rv-deck { padding: .9rem; }
.rv-deckhead { display: flex; gap: .5rem; align-items: center; }
.rv-bar { height: .45rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: .4rem; }
.rv-bar.big { height: .6rem; margin: .5rem 0 1rem; }
.rv-bar i { display: block; height: 100%; background: #16a34a; border-radius: 999px; transition: width .3s; }
.rv-counts { display: flex; gap: .8rem; flex-wrap: wrap; color: #475569; }

.rv-sesbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.rv-timerchip { font-size: .8rem; font-weight: 700; color: #1d4ed8; }
.rv-card { position: relative; min-height: 14rem; padding: 2rem 1.5rem 1.5rem; max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; justify-content: center; cursor: pointer; border-width: 2px; outline: none; }
.rv-card:focus-visible { border-color: var(--bs-primary); }
.rv-tag { position: absolute; left: .9rem; top: .6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.rv-face { font-size: 1.6rem; line-height: 1.4; }
.rv-face.back { font-size: 1.3rem; color: #0b3d5c; font-weight: 600; }
.rv-hint { margin-top: 1rem; color: #94a3b8; font-size: .9rem; }
.rv-rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 760px; margin: 1rem auto 0; }
.rv-rate .btn { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .3rem; }
.rv-rate .btn span { font-size: .78rem; opacity: .85; }
.rv-rate kbd, .btn kbd { font-size: .7rem; padding: .05rem .35rem; background: rgba(15, 23, 42, .08); color: inherit; border-radius: 4px; }
.rv-summary { padding: 1.4rem; max-width: 640px; margin: 0 auto; }
.rv-table th { font-size: .8rem; color: #475569; }
.rv-table td { vertical-align: middle; }

.rv-timer { max-width: 560px; margin: 0 auto; text-align: center; }
.rv-modes { display: inline-flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; justify-content: center; }
.rv-modes button { border: 1px solid var(--pmcq-line, #d7e2e8); background: #fff; color: var(--bs-primary); border-radius: 999px; padding: .3rem 1rem; font-weight: 700; cursor: pointer; }
.rv-modes button.on { background: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }
.rv-ring { position: relative; width: min(320px, 80vw); margin: 0 auto .6rem; }
.rv-ring svg { display: block; width: 100%; height: auto; }
.rv-clock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rv-clock b { font-size: clamp(2.6rem, 11vw, 3.6rem); font-variant-numeric: tabular-nums; color: #0b3d5c; line-height: 1; }
.rv-clock span { color: #64748b; font-weight: 600; margin-top: .3rem; }
.rv-dots { display: flex; gap: .4rem; justify-content: center; margin-bottom: 1rem; }
.rv-dot { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #94a3b8; }
.rv-dot.on { background: #2563eb; border-color: #2563eb; }
.rv-set2 { padding: .9rem; text-align: left; }

@media (max-width: 575px) {
  .rv-face { font-size: 1.3rem; }
  .rv-rate .btn b { font-size: .9rem; }
  .rv-card { padding: 2rem 1rem 1.2rem; min-height: 11rem; }
}
