/* T30 review panel — all classes namespaced rp-* so this file can be deleted
   without touching the console's stylesheet. Inherits the console's CSS vars. */

.rp-root { margin-top: 6px; }
.rp-loading, .rp-error { padding: 14px; color: var(--faint); font-size: 12.5px; }
.rp-error { color: var(--bad); }
.rp-mut { color: var(--faint); font-size: 11.5px; }

.rp-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.rp-toggle {
  font: inherit; font-size: 11.5px; cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.rp-toggle.rp-on { background: var(--good-soft, #16351f); color: var(--good, #4ade80); border-color: currentColor; }

/* ---- set summary ---- */
.rp-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rp-stat {
  display: flex; flex-direction: column; min-width: 104px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.rp-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.rp-stat-val { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.rp-stat-target { font-size: 10.5px; color: var(--faint); }
.rp-stat.rp-low { border-color: rgba(251, 191, 36, .45); }
.rp-stat.rp-high { border-color: rgba(248, 113, 113, .45); }

.rp-spread { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-spread-bar { display: flex; gap: 2px; }
.rp-sp { width: 12px; height: 16px; border-radius: 2px; background: var(--surface-2); }
.rp-d1 { background: #d1fae5; } .rp-d2 { background: #6ee7b7; }
.rp-d3 { background: #2f7f5b; } .rp-d4 { background: #1a4d38; } .rp-d5 { background: #0f2f22; }

/* ---- question cards ---- */
.rp-cards { display: flex; flex-direction: column; gap: 10px; }
.rp-card {
  padding: 12px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}
.rp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rp-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.rp-emoji { font-size: 15px; }
.rp-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.rp-tag {
  font-family: var(--mono); font-size: 10.5px;
  padding: 1px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.rp-tag-acc { background: rgba(74, 222, 128, .12); color: #4ade80; border-color: rgba(74, 222, 128, .3); }
.rp-tag-trap { background: rgba(167, 139, 250, .12); color: #a78bfa; border-color: rgba(167, 139, 250, .3); }
.rp-tag-warn { background: rgba(251, 191, 36, .12); color: #fbbf24; border-color: rgba(251, 191, 36, .3); }
.rp-tag-bad { background: rgba(248, 113, 113, .12); color: #f87171; border-color: rgba(248, 113, 113, .3); }
.rp-tag-dim { color: var(--faint); opacity: .7; }

.rp-img { display: block; max-height: 120px; margin: 6px 0 10px; border-radius: 6px; background: #fff; padding: 6px; }
.rp-stem { margin: 2px 0 10px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.rp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rp-opt { padding: 7px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; }
.rp-correct { border-color: rgba(74, 222, 128, .5); color: #4ade80; }
.rp-exp { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-2); }

.rp-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.rp-btn {
  font: inherit; font-size: 11.5px; cursor: pointer; text-decoration: none;
  padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.rp-btn:hover { border-color: var(--line-strong); }
.rp-btn-bad { color: #f87171; }

/* Player view: hide everything the player would not see, so the set can be read
   exactly as it will be played. */
.rp-player .rp-meta,
.rp-player .rp-acts,
.rp-player .rp-exp { display: none; }
.rp-player .rp-card { background: transparent; }
