/* 공부(CBT) 후기 — 채점 결과 별점 칸 · 공부 첫 화면 맨 아래 칸 · 쓰기 창 (2026-11-23 사용자, 시안 https://claude.ai/artifact/WB8Kp7kVU5fBHfDadsUnZz).
   두 화면이 같이 쓴다 — 공부 첫 화면은 gisa.css 를 싣지 않아서 창 모양도 여기에 따로 둔다. 짝 js: cbt-review.js */

/* 별 — 빈 별은 회색 선, 고른 별은 노랑으로 채움 */
.rv-stars { display: flex; justify-content: center; gap: 6px; }
.rv-star { width: 44px; height: 44px; padding: 5px; border: 0; background: none; cursor: pointer; color: #c9ced6; }
.rv-star svg { width: 34px; height: 34px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.rv-star.is-on { color: #f5a623; }
.rv-star.is-on svg { fill: currentColor; }
.rv-mini { display: inline-flex; gap: 1px; vertical-align: middle; }
.rv-mini svg { width: 13px; height: 13px; fill: #dde1e6; }
.rv-mini svg.is-on { fill: #f5a623; }

/* 채점 결과 칸 */
.rv-box { text-align: center; }
.rv-box[hidden] { display: none; }
.rv-box .rv-q { font-size: 17px; font-weight: 800; color: #1b2430; margin: 2px 0 12px; }
.rv-box .rv-stars { margin-bottom: 10px; }
.rv-msg { font-size: 13.5px; color: #5b6573; line-height: 1.5; margin: 0; }

/* 공부 첫 화면 맨 아래 칸 */
.rv-band { margin: 18px 16px 10px; padding: 14px 0 12px; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; overflow: hidden; }
.rv-band-h { display: flex; align-items: center; gap: 6px; padding: 0 14px 10px; }
.rv-band-h b { font-size: 15px; font-weight: 800; color: #1b2430; }
.rv-band-h .rv-avg { font-size: 15px; font-weight: 800; color: #e8590c; }
.rv-band-h small { font-size: 12.5px; color: #6b7480; margin-left: auto; }
.rv-write { margin-left: 10px; flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: #1b2430; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; cursor: pointer; }
.rv-few .rv-write { margin-left: auto; }
.rv-few .rv-stars { margin: 2px 0 4px; }
.rv-few .rv-star { cursor: pointer; }
.rv-done { padding: 0 14px; font-size: 13.5px; color: #5b6573; margin: 0; }

/* 옆으로 흐르는 띠 — 같은 줄을 두 번 이어 붙이고 반만큼 밀어 끊김 없이 돈다. 손가락을 대면 멈춘다 */
.rv-viewport { overflow: hidden; }
.rv-track { display: flex; gap: 10px; padding-left: 14px; width: max-content; animation: rv-flow var(--rv-dur, 60s) linear infinite; }
.rv-viewport:hover .rv-track, .rv-viewport:focus-within .rv-track, .rv-viewport:active .rv-track { animation-play-state: paused; }
@keyframes rv-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 움직임 줄이기를 켠 사람은 손으로 밀어 본다 */
@media (prefers-reduced-motion: reduce) {
    .rv-viewport { overflow-x: auto; }
    .rv-track { animation: none; }
    .rv-track [aria-hidden="true"] { display: none; }
}
.rv-chip { width: 230px; flex: none; background: #f6f7f9; border-radius: 10px; padding: 10px 12px; box-sizing: border-box; }
.rv-chip p { font-size: 13.5px; color: #27303b; line-height: 1.45; margin: 5px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.rv-chip small { font-size: 12px; color: #6b7480; }

/* 쓰기 창 — 아래에서 올라온다 */
.rv-sheet[hidden] { display: none; }
.rv-sheet { position: fixed; inset: 0; z-index: 1001; }
.rv-dim { position: absolute; inset: 0; background: rgba(15, 20, 28, .45); }
.rv-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 18px 18px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; color: #1b2430; }
.rv-panel h3 { font-size: 17px; font-weight: 800; margin: 0 0 12px; text-align: center; }
.rv-panel textarea { width: 100%; box-sizing: border-box; height: 104px; border: 1px solid #d5dae1; border-radius: 10px; padding: 12px; font: inherit; font-size: 15px; resize: none; margin-top: 12px; }
.rv-panel p.rv-pub { font-size: 12.5px; color: #5b6573; margin: 10px 0 14px; }
.rv-err { font-size: 13px; color: #b42318; margin: 0 0 10px; }
.rv-err[hidden] { display: none; }
.rv-send { width: 100%; height: 50px; border: 0; border-radius: 10px; background: #1b2430; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.rv-send:disabled { opacity: .5; cursor: default; }
.rv-close { display: block; margin: 6px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: none; color: #5b6573; font: inherit; font-size: 14px; cursor: pointer; }
.rv-thanks { text-align: center; font-size: 16px; font-weight: 700; padding: 18px 0 6px; margin: 0; }
/* 내 후기 칸 — 쓴 회원에게 자기 글 (2026-11-23) */
.rv-mine { margin: 4px 14px 2px; padding: 12px 14px; border: 1px solid #e3e6ea; border-radius: 12px; background: #fff; }
.rv-mine[hidden], .rv-write[hidden], .rv-stars[hidden], .rv-panel[hidden], .rv-thx p[hidden] { display: none; }
.rv-mine-h { display: flex; align-items: center; gap: 8px; }
.rv-mine-h b { font-size: 14px; font-weight: 800; color: #1b2430; }
.rv-mine .rv-mini svg { width: 15px; height: 15px; }
.rv-edit { margin-left: auto; min-height: 32px; padding: 0 12px; border: 1px solid #d5dae1; border-radius: 8px; background: #fff; color: #1b2430; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rv-mine-b { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: #333; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
/* 보낸 뒤 감사 화면 */
.rv-thx { text-align: center; }
.rv-thx p { font-size: 15px; line-height: 1.6; color: #333; margin: 0 0 18px; word-break: keep-all; }
body.rv-lock { overflow: hidden; }
/* 준비하는 시험 고르기 — 임시(2026-11-24 사용자 "나중에 없애자"). 두 칸씩, 고른 것은 진한 테두리 */
.rv-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.rv-tracks-q { grid-column: 1 / -1; font-size: 13.5px; font-weight: 700; color: #1b2430; margin: 0 0 2px; }
.rv-tk { min-height: 40px; padding: 0 8px; border: 1px solid #d5dae1; border-radius: 9px; background: #fff; color: #3a4350; font: inherit; font-size: 13.5px; cursor: pointer; word-break: keep-all; }
.rv-tk.is-on { border-color: #1b2430; background: #1b2430; color: #fff; font-weight: 700; }
/* 내 후기 [삭제] — [고치기] 바로 옆 (2026-11-25 사용자) */
.rv-edit.rv-del { margin-left: 6px; color: #b42318; }
.rv-edit:disabled { opacity: .5; cursor: default; }
/* 띠 아래 '후기 전체 보기' */
.rv-more { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; margin: 8px 14px 0; border-top: 1px solid #eef0f3; color: #3a4350; font-size: 14px; font-weight: 700; text-decoration: none; }
/* 후기 전체 화면 /study/reviews — 띠 대신 세로 목록, 글은 자르지 않는다 */
.rv-list { padding-bottom: 4px; }
.rv-list .rv-band-h small { margin-left: 4px; }
.rv-list .rv-write { margin-left: auto; }
.rv-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.rv-row { padding: 12px 14px; border-top: 1px solid #eef0f3; }
.rv-row-h { display: flex; align-items: center; gap: 8px; }
.rv-row-h time { margin-left: auto; font-size: 12px; color: #8a929c; }
.rv-row p { font-size: 14.5px; color: #27303b; line-height: 1.55; margin: 6px 0 4px; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-line; }
.rv-row small { font-size: 12.5px; color: #6b7480; }
.rv-none { padding: 20px 14px; text-align: center; color: #6b7480; font-size: 14px; margin: 0; }
