/* 학부모 학습보고서 — 모바일 전용 화면.
 *
 * [모바일 전용] 폭을 420px 로 묶고 가운데에 세운다. PC 로 열어도 폰과 같은 화면이
 * 나온다 — 학부모는 대부분 카톡 링크를 폰에서 누르고, 두 벌을 만들면 둘 다 어설퍼진다.
 *
 * [디자인] 예전 GAS 보고서의 결(다크 브라운 바탕 + 오렌지 포인트 + 흰 카드)을 이어받되,
 * Swiper·Chart.js 같은 외부 라이브러리는 안 쓴다. 카드 넘김은 CSS scroll-snap 으로,
 * 추이 그래프는 인라인 SVG 로 그린다 — 학부모 폰에서 CDN 세 개를 기다릴 이유가 없다.
 */
:root {
  --deep-brown: #1A0F0A;
  --main-orange: #FF8C00;
  --card-bg: #FFFFFF;
  --text-gray: #666666;
  --gray-line: #EEEEEE;
  --ok: #16A34A;
  --warn: #F59E0B;
  --bad: #DC2626;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; margin: 0; }
body {
  background: var(--deep-brown);
  color: #333;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow: hidden;
}

/* 폰 폭으로 묶는 무대. PC 에서는 가운데에 폰 하나가 서 있는 모양이 된다. */
.rp-stage {
  width: 100%; max-width: 420px; height: 100dvh;
  margin: 0 auto; position: relative; overflow: hidden;
  background: var(--deep-brown);
}
@media (min-width: 460px) {
  .rp-stage { box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
}

/* ── 로그인 ── */
.rp-login {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 32px; transition: opacity .35s, visibility .35s;
}
.rp-login[hidden] { display: none; }
.rp-logo { text-align: center; margin-bottom: 36px; }
.rp-logo-jh { font-size: 68px; font-weight: 900; color: var(--main-orange); line-height: 1; letter-spacing: -2px; }
.rp-logo-sub { font-size: 13px; color: #fff; letter-spacing: 6px; display: block; margin-top: 6px; }
.rp-login-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.rp-login-desc { color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.6; margin-bottom: 22px; text-align: center; }
.rp-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.rp-input {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  padding: 15px 16px; border-radius: 14px; color: #fff; outline: none;
  font-size: 16px; font-family: inherit; text-align: center; letter-spacing: 2px;
}
.rp-input::placeholder { color: rgba(255, 255, 255, .35); letter-spacing: 0; }
.rp-input:focus { border-color: var(--main-orange); }
.rp-submit {
  background: var(--main-orange); color: #fff; border: 0; padding: 15px;
  border-radius: 14px; font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.rp-submit:disabled { opacity: .55; cursor: default; }
.rp-err { color: #ff9c9c; font-size: 12.5px; text-align: center; min-height: 18px; line-height: 1.5; }

/* ── 헤더 ── */
.rp-head {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); background: var(--deep-brown);
}
.rp-head[hidden] { display: none; }
.rp-brand { color: var(--main-orange); font-weight: 900; font-size: 15px; letter-spacing: 2px; }
.rp-brand span { color: #fff; font-weight: 300; }
.rp-who { color: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rp-who b { color: var(--main-orange); }
/* 헤더 — 무엇을 보고 있는 문서인지 못 박는다. */
.rp-head-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rp-head-t { color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 5px; }
.rp-head-t b { color: var(--main-orange); font-weight: 800; font-size: 14px; }
.rp-head-t span { color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 600; }
.rp-past {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: 11.5px; font-weight: 700; font-family: inherit;
  padding: 6px 10px; border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.rp-past[hidden] { display: none; }

/* 지난 보고서 시트 */
.rp-sheet { position: absolute; inset: 0; z-index: 40; }
.rp-sheet[hidden] { display: none; }
.rp-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.rp-sheet-box {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
.rp-sheet-h { font-size: 15px; font-weight: 800; color: var(--deep-brown); margin-bottom: 12px; }
.rp-sheet-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.rp-sheet-i {
  width: 100%; text-align: left; border: 1px solid #E9ECEF; background: #fff;
  border-radius: 12px; padding: 13px 14px; font-size: 13.5px; font-weight: 700;
  color: var(--deep-brown); font-family: inherit; cursor: pointer;
}
.rp-sheet-i.on { border-color: var(--main-orange); background: #FFFBF5; color: var(--main-orange); }
.rp-sheet-x {
  width: 100%; margin-top: 12px; border: 0; background: #F1F3F5; color: #555;
  border-radius: 12px; padding: 13px; font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
}

/* ── 카드 무대 ── */
.rp-app { position: absolute; inset: 52px 0 0; display: flex; flex-direction: column; }
.rp-app[hidden] { display: none; }
.rp-track {
  flex: 1; min-height: 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.rp-track::-webkit-scrollbar { display: none; }
.rp-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center; padding: 12px 16px 8px;
}
.rp-card {
  position: relative;
  width: 100%; height: 100%; max-height: 100%;
  background: var(--card-bg); border-radius: 26px; padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.rp-label {
  font-size: 10px; font-weight: 800; color: var(--main-orange);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px;
}
.rp-title { font-size: 19px; font-weight: 800; color: var(--deep-brown); margin: 0 0 14px; word-break: keep-all; }

/* 점(현재 카드) */
.rp-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 14px; }
.rp-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: .25s; }
.rp-dot.on { background: var(--main-orange); width: 18px; border-radius: 3px; }

/* ── 카드 안 요소들 ── */
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* 지표 칸. 예전에는 회색 바탕에 아래쪽만 굵은 선이라 촌스럽고, 강조된 칸은
   주황 밑줄이라 산만했다(2026-08-22 지적). 흰 바탕에 얇은 테두리로 정리하고,
   강조는 테두리와 값 색으로만 한다. */
.rp-box {
  background: #fff; padding: 11px 13px; border-radius: 14px;
  border: 1px solid #E9ECEF; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.rp-box.hi { border-color: #FFD9A8; background: #FFFCF7; }
.rp-box.hi .rp-box-v { color: var(--main-orange); }
.rp-box-ghost { visibility: hidden; }
.rp-box-l { font-size: 10px; color: var(--text-gray); display: block; margin-bottom: 3px; font-weight: 600; }
.rp-box-v { font-size: 17px; font-weight: 800; color: var(--deep-brown); display: flex; align-items: baseline; gap: 4px; }
.rp-box-v em { font-style: normal; font-size: 11px; font-weight: 700; color: #999; }

.rp-sec { border-top: 1px solid var(--gray-line); margin-top: 16px; padding-top: 14px; }
.rp-sec-h { font-size: 12.5px; font-weight: 800; color: var(--deep-brown); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.rp-sec-h span { font-weight: 700; color: #999; font-size: 11px; }

/* 출결 칩 목록 */
.rp-attlist { display: flex; flex-direction: column; gap: 5px; }
.rp-attrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 10px; background: #F8F9FA; border-radius: 9px; }
.rp-attrow b { font-weight: 700; color: var(--deep-brown); min-width: 46px; }
.rp-attrow .rp-reason { color: #888; font-size: 11.5px; margin-left: auto; text-align: right; }
.rp-chip { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.rp-chip.present { background: #DCF1E3; color: #1a7f3c; }
.rp-chip.late    { background: #FDEAC2; color: #8a5d00; }
.rp-chip.early   { background: #FCDCC2; color: #a3541a; }
.rp-chip.absent  { background: #FAC9C9; color: #a32020; }
.rp-chip.pass    { background: #DCF1E3; color: #1a7f3c; }
.rp-chip.fail    { background: #FAC9C9; color: #a32020; }
.rp-chip.none    { background: #ECEFF3; color: #6b7280; }

/* 성적 */
.rp-score { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.rp-score-big { font-size: 40px; font-weight: 900; color: var(--deep-brown); line-height: 1; }
.rp-score-big em { font-style: normal; font-size: 15px; font-weight: 700; color: #999; }
.rp-vs { font-size: 11.5px; color: var(--text-gray); font-weight: 700; padding-bottom: 4px; }
.rp-delta { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.rp-delta.up { background: #FFE4E4; color: #D32F2F; }
.rp-delta.down { background: #E3E8FF; color: #1976D2; }
.rp-delta.same { background: #EEE; color: #777; }

.rp-chart { width: 100%; height: auto; margin: 4px 0 2px; }
.rp-chart-x { display: flex; justify-content: space-between; font-size: 9.5px; color: #aaa; font-weight: 600; padding: 0 2px; }

/* 진행 막대 */
.rp-prog { margin-bottom: 9px; }
.rp-prog-h { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 4px; color: #555; font-weight: 600; }
.rp-prog-h b { color: var(--deep-brown); font-weight: 800; }
.rp-bar { background: #EEE; height: 6px; border-radius: 3px; overflow: hidden; }
.rp-bar > i { display: block; height: 100%; background: var(--main-orange); border-radius: 3px; }

/* 별점(태도) */
.rp-stars { display: inline-flex; align-items: center; gap: 2px; }
.rp-stars i { font-style: normal; font-size: 14px; color: #E0E0E0; line-height: 1; }
.rp-stars i.on { color: var(--main-orange); }

/* 코멘트 */
.rp-quote {
  background: #FFFBF5; border-left: 3px solid var(--main-orange);
  border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 13px; line-height: 1.7;
  color: #444; white-space: pre-wrap; word-break: keep-all;
}
.rp-by { font-size: 11px; color: #999; font-weight: 700; margin-top: 6px; text-align: right; }

.rp-empty { text-align: center; color: #aaa; font-size: 12.5px; padding: 28px 10px; line-height: 1.7; }
.rp-foot { font-size: 10.5px; color: #bbb; text-align: center; margin-top: 18px; line-height: 1.6; }

/* ── 학원 생활 종합 점수 고리 ── */
.rp-ring { display: flex; align-items: center; gap: 14px; }
.rp-ring-t { display: flex; flex-direction: column; gap: 4px; }
.rp-ring-t b { font-size: 15px; font-weight: 800; }
.rp-ring-t span { font-size: 11px; color: #999; line-height: 1.55; }

/* ── 시험 종류 뱃지 ── */
.rp-kind { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; margin-left: 2px; }
.rp-kind.school { background: #1A0F0A; color: #fff; }
.rp-kind.acad { background: #FFE9CC; color: #a3541a; }
.rp-vs { font-size: 12px; color: var(--text-gray); font-weight: 600; margin: -6px 0 4px; }
.rp-vs b { color: var(--deep-brown); font-weight: 800; }
.rp-vs span { color: #aaa; font-size: 10.5px; }
.rp-examname { font-size: 11px; color: #aaa; margin: 2px 0 0; font-weight: 600; }

/* ── 진도 목록 ── */
.rp-prog-list { margin: 0; padding-left: 16px; font-size: 12.5px; color: #555; line-height: 1.8; }
.rp-prog-list li { word-break: keep-all; }

/* ── 추이 범례 ── */
.rp-legend { font-size: 10px; color: #aaa; font-weight: 600; margin: 6px 0 0; display: flex; align-items: center; gap: 4px; }
.rp-legend i { display: inline-block; width: 8px; height: 8px; border: 2px solid #1A0F0A; background: #fff; }
.rp-legend i.ci { border-color: var(--main-orange); border-radius: 50%; }

/* ── 개근 배지 · 점수 추이 · 3개월 막대 ── */
.rp-perfect {
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px;
  background: #DCF1E3; color: #1a7f3c; vertical-align: middle; margin-left: 4px;
}
.rp-ring { display: flex; align-items: center; gap: 12px; }
.rp-ring-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rp-ring-t b { font-size: 16px; font-weight: 800; }
.rp-ring-t > span { font-size: 10.5px; color: #999; line-height: 1.55; }
.rp-trail { display: flex; align-items: center; gap: 3px; margin-top: 2px; flex-wrap: wrap; }
.rp-trail-i { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.rp-trail-i b { font-size: 12px; font-weight: 800; color: #bbb; }
.rp-trail-i em { font-style: normal; font-size: 8.5px; color: #ccc; font-weight: 700; }
.rp-trail-i.on b { color: var(--deep-brown); }
.rp-trail-i.on em { color: #999; }
.rp-trail-ar { color: #ddd; font-size: 11px; margin: 0 1px; }
.rp-bars { width: 100%; height: 128px; }
.rp-sub2 { font-size: 10px; color: #aaa; font-weight: 700; margin-left: 4px; }
.rp-nocount { font-size: 12.5px; color: #888; background: #F8F9FA; border-radius: 10px; padding: 12px 14px; line-height: 1.6; }

/* ── 전월 대비 화살표 ── */
.rp-arw { font-size: 10px; font-weight: 800; margin-left: 4px; }
.rp-arw.up { color: #16A34A; }
.rp-arw.down { color: #DC2626; }

/* ── 학습 성과 3개월 막대 ── */
.rp-mrow { margin-bottom: 12px; }
.rp-mrow-h { font-size: 11.5px; font-weight: 800; color: var(--deep-brown); margin-bottom: 6px; }
.rp-mbars { display: flex; gap: 8px; align-items: flex-end; }
.rp-mbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rp-mbar-v { font-size: 11.5px; font-weight: 800; color: #bbb; }
.rp-mbar-v em { font-style: normal; font-size: 9px; font-weight: 700; margin-left: 1px; }
.rp-mbar.on .rp-mbar-v { color: var(--deep-brown); }
.rp-mbar-t { width: 100%; height: 42px; background: #F3F4F6; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.rp-mbar-t > i { display: block; width: 100%; background: #FFD3A0; border-radius: 6px; }
.rp-mbar.on .rp-mbar-t > i { background: var(--main-orange); }
.rp-mbar-m { font-size: 9.5px; font-weight: 700; color: #aaa; }

/* ── 매일국어 판정 분포 ── */
.rp-judge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.rp-judge-i { border-radius: 10px; padding: 8px 4px; text-align: center; }
.rp-judge-i b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.rp-judge-i span { font-size: 10px; font-weight: 700; }
.rp-judge-i.j1 { background: #DCF1E3; color: #1a7f3c; }
.rp-judge-i.j2 { background: #E3EEFF; color: #1a5fa8; }
.rp-judge-i.j3 { background: #FDEAC2; color: #8a5d00; }
.rp-judge-i.j4 { background: #FAC9C9; color: #a32020; }
.rp-judge-i.off { background: #F3F4F6; color: #bbb; }

/* ── 한 줄 추이 ── */
.rp-mini { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 10px 0 2px; }
.rp-mini-l { font-size: 10.5px; font-weight: 700; color: #aaa; margin-right: 2px; }
.rp-mini-i { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.rp-mini-i b { font-size: 11.5px; font-weight: 800; color: #bbb; }
.rp-mini-i em { font-style: normal; font-size: 8.5px; color: #ccc; font-weight: 700; }
.rp-mini-i.on b { color: var(--deep-brown); }
.rp-mini-i.on em { color: #999; }
.rp-mini-ar { color: #ddd; font-size: 11px; }

/* ── IDEA 과목별 묶음 ── */
.rp-idea { margin-top: 12px; }
.rp-idea-g { margin-bottom: 10px; }
.rp-idea-h { font-size: 11.5px; font-weight: 800; color: var(--main-orange); margin-bottom: 5px; }
.rp-idea-h span { color: #aaa; font-weight: 700; font-size: 10.5px; }
.rp-idea .rp-attrow { margin-bottom: 4px; }

/* ── 지표 칸 보조 문구(반 평균) ── */
.rp-box-s { display: block; font-size: 9.5px; color: #b0b6bd; font-weight: 700; margin-top: 3px; }
.rp-ring-parts { display: inline-block; color: #777; font-weight: 800; margin: 2px 0; }
.rp-ring-t i { font-style: normal; color: #bbb; font-size: 9.5px; }

/* ── 학습 성과 선 그래프 ── */
.rp-mchart { margin-bottom: 14px; }
.rp-mchart-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.rp-mchart-h b { font-size: 11.5px; font-weight: 800; color: var(--deep-brown); }
.rp-mchart-h span { font-size: 15px; font-weight: 800; color: var(--deep-brown); }
.rp-mchart-h span em { font-style: normal; font-size: 10px; font-weight: 700; color: #999; margin-left: 1px; }
.rp-mline { width: 100%; height: auto; }

/* ── SLT 학습 상태 평가 ── */
.rp-eval { border: 1px solid #E9ECEF; border-radius: 14px; padding: 12px 14px; background: #fff; }
.rp-eval-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rp-eval-g {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900;
}
.rp-eval-t { display: flex; flex-direction: column; gap: 1px; }
.rp-eval-t b { font-size: 13px; font-weight: 800; color: var(--deep-brown); }
.rp-eval-t span { font-size: 11px; color: #999; font-weight: 700; }
.rp-eval-i { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.rp-eval-l { font-size: 11px; color: var(--text-gray); font-weight: 700; width: 62px; flex-shrink: 0; }
.rp-eval-bar { flex: 1; height: 6px; background: #EEE; border-radius: 3px; overflow: hidden; }
.rp-eval-bar > i { display: block; height: 100%; background: var(--main-orange); border-radius: 3px; }
.rp-eval-i > b { font-size: 11.5px; font-weight: 800; color: var(--deep-brown); width: 42px; text-align: right; }
.rp-eval-b { font-size: 10px; font-weight: 800; width: 18px; height: 17px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center; }
/* [범위를 좁힌다] 예전에는 .gA 처럼 클래스 하나로 두어, 같은 이름을 쓰는 종합 평가
   막대·점수판까지 이 배경색을 뒤집어썼다. 등급 배지에만 걸리게 한다(2026-08-23). */
.rp-eval-b.gA, .rp-eval-g.gA { background: rgba(139, 92, 246, .12); color: #8b5cf6; }
.rp-eval-b.gB, .rp-eval-g.gB { background: rgba(16, 185, 129, .12); color: #16A34A; }
.rp-eval-b.gC, .rp-eval-g.gC { background: rgba(234, 179, 8, .14); color: #a37c00; }
.rp-eval-b.gD, .rp-eval-g.gD { background: rgba(249, 115, 22, .12); color: #ea580c; }
.rp-eval-b.gF, .rp-eval-g.gF { background: rgba(239, 68, 68, .12); color: #DC2626; }
.rp-judge-i b em { font-style: normal; font-size: 10px; font-weight: 700; }

/* ── 과목 카드: 태도·과제 3개월 ── */
.rp-ht { margin-top: 10px; padding: 10px 12px; background: #F8F9FA; border-radius: 12px; }
.rp-ht-r { display: flex; align-items: center; gap: 3px; margin: 3px 0; }
.rp-ht-r b { font-size: 10.5px; font-weight: 800; color: #999; width: 28px; flex-shrink: 0; }
.rp-ht-c { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; flex: 1; }
.rp-ht-c em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #c3c8ce; }
.rp-ht-c i { font-style: normal; font-size: 8.5px; font-weight: 700; color: #ccd1d6; }
.rp-ht-c.on em { color: var(--deep-brown); }
.rp-ht-c.on i { color: #999; }
.rp-ht-ar { color: #dde1e5; font-size: 11px; flex-shrink: 0; }

/* ── SLT 영역 구분 ── */
.rp-slt-b { margin-bottom: 20px; }
.rp-slt-b:last-child { margin-bottom: 0; }
.rp-slt-b .rp-sec-h span { font-weight: 700; color: var(--main-orange); font-size: 11px; }
.rp-eval-n { font-size: 10px; color: #b0b6bd; font-weight: 700; text-align: right; margin: -3px 26px 0 0; }

/* ── SLT 영역별 3개월 막대 ── */
.rp-sltt { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.rp-sltt-l { font-size: 10.5px; font-weight: 800; color: #999; width: 34px; flex-shrink: 0; padding-bottom: 16px; }
.rp-sltt-b { flex: 1; display: flex; gap: 8px; align-items: flex-end; }
.rp-sltt-c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rp-sltt-v { font-size: 11.5px; font-weight: 800; color: #c3c8ce; }
.rp-sltt-v em { font-style: normal; font-size: 9px; font-weight: 700; margin-left: 1px; }
.rp-sltt-c.on .rp-sltt-v { color: var(--deep-brown); }
.rp-sltt-t { width: 100%; height: 38px; background: #F3F4F6; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.rp-sltt-t > i { display: block; width: 100%; background: #FFD3A0; border-radius: 6px; }
.rp-sltt-c.on .rp-sltt-t > i { background: var(--main-orange); }
.rp-sltt-m { font-size: 9.5px; font-weight: 700; color: #b9bec5; }
/* 자료가 없는 달 — 시험 대비 달과 같은 점선으로 자리만 지킨다 */
.rp-sltt-c.miss .rp-sltt-t > i { border-color: #DDE1E6; }

/* 총평은 지표 격자 밖에 선다(가리개가 덮지 않도록) */
.rp-cmt { margin-top: 8px; }
.rp-cmt:empty { display: none; }

/* 관리자 목록 — 마지막으로 열어 본 학생 */
.rp-adminrow.seen {
  border-color: var(--main-orange);
  background: rgba(255, 140, 0, .10);
}
.rp-adminrow.seen > b::after {
  content: "방금 봄"; margin-left: 6px; font-size: 9.5px; font-weight: 800;
  color: var(--main-orange); vertical-align: 1px;
}

/* ── SLT 영역 코멘트 · 안내 ── */
.rp-slt-c { margin-top: 12px; font-size: 12.5px; }
.rp-notice {
  background: #EEF2FF; border-left: 3px solid #6366F1; border-radius: 0 10px 10px 0;
  padding: 12px 14px; font-size: 12.5px; line-height: 1.7; color: #4338CA;
  margin-bottom: 16px; word-break: keep-all;
}

/* ── SLT 막대를 눌러 달 고르기 ── */
.rp-sltt-c {
  border: 0; background: none; font-family: inherit; cursor: pointer; padding: 0;
  border-radius: 8px; transition: background .15s;
}
.rp-sltt-c:hover { background: rgba(255, 140, 0, .06); }
.rp-slt-sub { display: inline-flex; align-items: center; gap: 6px; }
.rp-slt-past {
  font-size: 10px; font-weight: 800; color: #6366F1;
  background: #EEF2FF; padding: 2px 7px; border-radius: 20px;
}

/* ═══ 옛 GAS 판의 카드 짜임 ═══════════════════════════════════════════
   카드마다 맨 위에 최근 3개월 막대, 그 아래 2열 지표 격자, 맨 아래 코멘트.
   클래스 이름도 옛 판 그대로 두어 원본과 대조하기 쉽게 했다. */

.card-label {
  font-size: 10px; font-weight: 800; color: var(--main-orange);
  text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 4px;
}
.card-title {
  font-size: 20px; font-weight: 800; color: var(--deep-brown);
  margin: 0 0 15px; word-break: keep-all;
  display: flex; align-items: center; gap: 8px;
}
.help-q {
  width: 18px; height: 18px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, .15); background: #fff; color: var(--main-orange);
  font-weight: 900; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 월 막대 — 고른 달은 주황, 나머지는 회색, 자료가 없는 달은 점선 테두리만 */
.chart-area { position: relative; margin-bottom: 6px; }
.mchart { display: flex; gap: 10px; align-items: flex-end; height: 140px; }
.mbar {
  flex: 1; border: 0; background: none; font-family: inherit; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%;
}
.mchart.flat .mbar { cursor: default; }
.mbar-v { font-size: 11px; font-weight: 800; color: #b9bec5; min-height: 14px; }
.mbar.on .mbar-v { color: var(--deep-brown); font-size: 13px; }
.mbar-t { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.mbar-t > i { display: block; width: 100%; background: #EEE; border-radius: 6px; transition: background .16s; }
.mbar.on .mbar-t > i { background: var(--main-orange); }
.mbar.empty .mbar-t > i { background: none; border: 2px dashed #CCC; border-radius: 6px; }
.mbar.empty.on .mbar-t > i { border-color: var(--main-orange); }
.mbar-m { font-size: 11px; font-weight: 700; color: #999; }
.mbar.on .mbar-m { color: var(--deep-brown); font-weight: 800; }
.chart-hint { font-size: 10px; color: #b9bec5; text-align: center; margin: 0 0 12px; }

.exam-label {
  display: inline-block; background: var(--main-orange); color: #fff;
  padding: 3px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; margin-bottom: 8px;
}
.exam-label[hidden] { display: none; }

/* 2열 지표 격자 */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  /* 빈 달을 눌렀을 때 덮개가 이 격자만 덮는다 — 기준점이 필요하다 */
  position: relative; }
.span2 { grid-column: span 2; }
/* [회색 채움 대신 흰 바탕 + 연한 테두리] 카드가 순백이라 배경만 빼면 묶음이
   사라진다. 경계를 테두리와 아주 옅은 그림자로 대신 세운다. 옛 판의 2px 아랫선은
   회색 채움과 겹쳐 박스를 무겁게 만들던 것이라 걷어냈다(2026-08-23). */
.data-box {
  background: #fff; padding: 12px; border-radius: 12px;
  border: 1px solid #EDEFF2; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.data-box.highlight {
  background: #FFFBF5; border-color: rgba(255, 140, 0, .45);
  box-shadow: 0 1px 2px rgba(255, 140, 0, .08);
  display: flex; justify-content: space-between; align-items: center;
}
.d-lbl { font-size: 10px; color: #888; display: block; margin-bottom: 4px; }
.d-val { font-size: 16px; font-weight: 800; color: var(--deep-brown); display: flex; align-items: center; gap: 6px; }
.d-val.big { font-size: 22px; }
.d-sub { font-size: 10px; color: #888; font-weight: 400; margin-top: 2px; }
.grade-circle {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 140, 0, .1);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: var(--main-orange);
}

/* [증감 색은 옛 판 그대로다] 오름이 빨강, 내림이 파랑 — 국내 표기 관례다. */
.comp-badge { font-size: 11px; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.comp-badge.up { background: #FFE0E0; color: #D32F2F; }
.comp-badge.down { background: #E0E0FF; color: #1976D2; }

.star-wrap { display: flex; align-items: center; }
.star-outer { position: relative; display: inline-block; font-size: 13px; color: #D8DCE1; }
.star-outer::before { content: "★★★★★"; }
.star-inner { position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden; width: 0; color: var(--main-orange); }
.star-inner::before { content: "★★★★★"; }
.star-text { font-size: 10px; color: #999; margin-left: 4px; }

/* [긴 글은 채우지 않는다] 총평과 진도는 여섯 문장짜리 문단이라 박스로 꽉 채우면
   읽기 부담이 크다. 흰 바탕에 왼쪽 세로선만 세워 강사 코멘트와 결을 맞춘다. */
.score-desc {
  background: #fff; padding: 10px 12px 10px 14px; text-align: left;
  border-left: 4px solid var(--main-orange); border-radius: 4px;
}
.score-desc.prog { border-left-color: rgba(255, 140, 0, .45); }
.score-desc-title { font-size: 10px; color: #888; display: block; margin-bottom: 6px; }
.score-desc.prog .score-desc-title { color: var(--main-orange); font-weight: 800; }
.score-desc-text { font-size: 12px; color: #555; line-height: 1.6; word-break: keep-all; white-space: pre-line; }
.score-desc.prog .score-desc-text { color: var(--deep-brown); font-weight: 600; font-size: 13px; }

.opinion-box {
  background: #FFF9F2; border-left: 4px solid var(--main-orange); padding: 12px;
  border-radius: 4px; font-size: 12px; line-height: 1.5; margin-top: 12px;
  color: #444; word-break: keep-all; white-space: pre-line;
}
.opinion-box:empty { display: none; }
.opinion-box hr { border: 0; border-top: 1px solid #F0E3D2; margin: 8px 0; }
.op-by { display: block; margin-top: 6px; font-size: 11px; color: #999; font-weight: 700; }
.op-none { color: #b9bec5; }

/* 월별 출석률 — 옛 판의 회색 박스 */
.att-box { margin-top: 20px; padding: 15px; background: #F9F9F9; border-radius: 16px; }
.att-box-h { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.att-box-h span { font-size: 12px; font-weight: 700; color: var(--deep-brown); }
.att-box-h b { font-size: 12px; color: var(--main-orange); font-weight: 800; }
.att-box .mchart { height: 110px; }
.att-box .mbar-t > i { background: var(--main-orange); border-radius: 4px; }

.att-detail { background: #F7F8FA; padding: 12px; border-radius: 12px; }
.att-detail-h { font-size: 11px; font-weight: 800; color: var(--deep-brown); margin-bottom: 6px; }
.att-detail-h span { color: var(--main-orange); }

.footer-desc {
  font-size: 10px; color: #999; margin-top: 15px; line-height: 1.4;
  border-top: 1px solid #EEE; padding-top: 10px;
}

/* ── 종합 평가 안내 말풍선 ────────────────────────────────────────────
   [시트가 아니라 말풍선이다] 아래 내용을 밀어내며 펼쳐지면 눌렀다 닫을 때마다
   카드가 출렁인다. 카드를 기준으로 띄워 위에 겹치게 한다(2026-08-23 요청). */
.rp-tip {
  position: absolute; z-index: 60;
  top: 62px; left: 16px; right: 16px;
  background: var(--deep-brown); color: #fff;
  border-radius: 16px; padding: 16px 16px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  animation: tipIn .16s ease-out;
}
.rp-tip[hidden] { display: none; }
.rp-tip::after {
  content: ""; position: absolute; top: -7px; left: 34px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--deep-brown);
}
@keyframes tipIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.rp-tip-h { font-size: 12px; font-weight: 800; color: var(--main-orange); margin-bottom: 6px; }
.rp-tip p { font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); margin: 0 0 10px; word-break: keep-all; }
.rp-tip-n { font-size: 10.5px !important; color: rgba(255, 255, 255, .6) !important; margin: 8px 0 0 !important; }

/* 배점표 — 두 줄짜리 격자 */
.rp-tip-w { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.rp-tip-w li {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 6px 9px;
}
.rp-tip-w b { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.rp-tip-w span { font-size: 11px; font-weight: 900; color: var(--main-orange); }

/* 점수대 목록 */
.rp-tip-g { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-tip-g li {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .75); word-break: keep-all;
}
.rp-tip-g li b { color: #fff; font-weight: 800; flex-shrink: 0; }
.rp-tip-g .tg {
  flex-shrink: 0; width: 30px; text-align: center; padding: 2px 0; border-radius: 6px;
  font-size: 10px; font-weight: 900; background: rgba(255, 140, 0, .22); color: var(--main-orange);
}
.rp-tip-x {
  width: 100%; margin-top: 12px; padding: 8px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .12); color: #fff; font-family: inherit;
  font-size: 11.5px; font-weight: 800; cursor: pointer;
}

/* ── 출결 상세 (출석률 그래프 아래, 한 줄) ── */
.att-detail { margin-top: 8px; }
.att-sum { font-size: 10.5px; font-weight: 700; color: #999; }
.att-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.att-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: #F3F4F6; color: #888;
}
.att-chip i { font-style: normal; font-weight: 800; }
.att-chip.absent { background: #FFEAEA; color: #D32F2F; }
.att-chip.late { background: #FFF4E0; color: #B26A00; }
.att-chip.early { background: #EAF0FF; color: #1976D2; }

/* ── 미수강 덮개 (옛 판 그대로) ─────────────────────────────────────
   카드를 흐리게 덮되 확인을 누르면 걷힌다. 미수강이어도 성취도평가나 학교
   지필평가 점수가 들어오는 경우가 있어, 가리기만 하고 지우지는 않는다. */
.unregistered-mask {
  position: absolute; inset: 0; z-index: 100; border-radius: inherit;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.unregistered-content {
  background: rgba(255, 255, 255, .95); border: 1px solid rgba(0, 0, 0, .1);
  padding: 24px; border-radius: 20px; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  width: 80%; max-width: 260px;
}
.unregistered-icon { width: 36px; height: 36px; color: var(--main-orange); margin-bottom: 10px; }
.unregistered-title { font-size: 16px; font-weight: 900; color: var(--deep-brown); margin-bottom: 8px; }
.unregistered-desc { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 16px; }
.unregistered-btn {
  width: 100%; padding: 12px 20px; border: 0; border-radius: 12px;
  background: var(--deep-brown); color: #fff; font-family: inherit;
  font-weight: 700; font-size: 13px; cursor: pointer; transition: background .2s;
}
.unregistered-btn:active { background: #000; }

/* ── 영역 안내 말풍선(매일국어 · IDEA) ─────────────────────────────
   종합 평가 안내와 같은 모양이되, 카드 맨 위가 아니라 누른 제목 바로 아래에
   붙는다. 부모 요소(.rp-slt-b)가 기준이 되도록 자리를 잡아 준다. */
.rp-slt-b { position: relative; }
.rp-tip-sec { top: 34px; left: 0; right: 0; }
.rp-tip-sec::after { left: 92px; }

/* 항목 설명은 이름과 뜻이 짝을 이루므로 한 줄에 하나씩 세운다 */
.rp-tip-w.vert { grid-template-columns: 1fr; }
.rp-tip-w.vert li { flex-direction: column; align-items: flex-start; gap: 2px; }
.rp-tip-w.vert span { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .7); }

/* 제목 줄에 물음표가 끼어도 부제가 밀리지 않게 */
.rp-sec-h { display: flex; align-items: center; gap: 6px; }
.rp-sec-h .rp-slt-sub { margin-left: auto; }

/* 현재 레벨 — 말풍선 맨 위에서 눈에 먼저 들어오게 */
.rp-tip-cur {
  background: rgba(255, 140, 0, .16); border: 1px solid rgba(255, 140, 0, .35);
  border-radius: 12px; padding: 10px 12px;
}
.rp-tip-cur b { font-size: 17px; font-weight: 900; color: var(--main-orange); }
.rp-tip-cur span {
  margin-left: 7px; font-size: 11px; font-weight: 800;
  color: #fff; background: rgba(255, 255, 255, .16); border-radius: 6px; padding: 2px 7px;
}
.rp-tip-cur p {
  margin: 7px 0 0 !important; font-size: 11px !important; line-height: 1.55;
  color: rgba(255, 255, 255, .82) !important;
}

/* 레벨 지도 — 열다섯 칸을 세 줄로 */
.rp-tip-lv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rp-tip-lv li {
  display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px;
  background: rgba(255, 255, 255, .07); font-size: 10.5px; font-weight: 600;
  color: rgba(255, 255, 255, .72); white-space: nowrap;
}
.rp-tip-lv li b {
  min-width: 15px; text-align: center; font-size: 10.5px; font-weight: 900;
  color: rgba(255, 255, 255, .5);
}
.rp-tip-lv li.on { background: var(--main-orange); color: #fff; font-weight: 800; }
.rp-tip-lv li.on b { color: #fff; }

.rp-tip-w.vert em { font-style: normal; color: var(--main-orange); font-weight: 800; }
.rp-tip-n b { color: #fff; font-weight: 800; }

/* ── 나가기 · 관리자 · 카드 넘기기 ─────────────────────────────────── */
.rp-out {
  flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1);
  color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.rp-out:active { background: rgba(255, 255, 255, .2); }

.rp-adminlink {
  margin-top: 14px; border: 0; background: none; color: rgba(255, 255, 255, .45);
  font-family: inherit; font-size: 11.5px; text-decoration: underline; cursor: pointer;
}

.rp-adminlist { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.rp-adminrow {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline;
  width: 100%; text-align: left; border: 0; background: #F7F8FA; border-radius: 10px;
  padding: 10px 12px; font-family: inherit; cursor: pointer;
}
.rp-adminrow:active { background: #EEF0F3; }
.rp-adminrow b { font-size: 14px; font-weight: 800; color: var(--deep-brown); }
.rp-adminrow span { font-size: 11px; color: #98a0a8; }
.rp-adminrow i { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; color: var(--main-orange); font-weight: 700; }

/* 카드 넘기기 — 화면이 좁으면 밀어서 넘기면 되므로 숨긴다 */
.rp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--deep-brown);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  font-size: 22px; line-height: 1; font-family: inherit;
  display: none; align-items: center; justify-content: center;
  transition: opacity .16s;
}
.rp-nav.prev { left: -8px; }
.rp-nav.next { right: -8px; }
.rp-nav.off { opacity: .25; pointer-events: none; }
.rp-nav[hidden] { display: none !important; }
@media (min-width: 520px) and (pointer: fine) { .rp-nav { display: flex; } }

/* SLT 한쪽만 미수강일 때 그 자리에 남기는 한 줄 */
.rp-slt-off {
  margin-top: 14px; padding: 14px 12px; border-radius: 12px;
  background: #F7F8FA; border: 1px dashed #DDE1E6;
  font-size: 12px; color: #98a0a8; text-align: center;
}
/* 걷을 수 없는 덮개 — 확인 단추가 없다 */
.unregistered-mask.fixed { cursor: default; }

/* 시험 대비 달 — 막대는 비우고, 아래는 안내로 대신한다 */
.rp-sltt-c.prep .rp-sltt-t > i { background: none !important; border: 2px dashed #CCD2D8; }
.rp-sltt-c.prep .rp-sltt-v { color: #b9bec5; }
.rp-prep {
  margin-top: 12px; padding: 16px 14px; border-radius: 14px;
  background: rgba(255, 140, 0, .08); border: 1px solid rgba(255, 140, 0, .28);
}
.rp-prep b { display: block; font-size: 13px; font-weight: 800; color: var(--main-orange); margin-bottom: 7px; }
.rp-prep p { margin: 0; font-size: 12px; line-height: 1.6; color: #666; word-break: keep-all; }
.rp-prep-x { margin-top: 8px !important; font-weight: 700; color: var(--deep-brown) !important; }

/* ── 관리자 도구 · 수정 상자 ───────────────────────────────────────── */
.rp-head-r { display: flex; gap: 6px; flex-shrink: 0; }
.rp-out[hidden] { display: none; }

.rp-edit {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(26, 15, 10, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rp-edit[hidden] { display: none; }
.rp-edit-in {
  background: #fff; border-radius: 20px; padding: 20px;
  width: 100%; max-width: 380px; max-height: 88%; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.rp-edit-in h3 { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--deep-brown); }
.rp-edit-in label {
  display: block; margin: 12px 0 5px; font-size: 11.5px; font-weight: 800; color: #98a0a8;
}
.rp-edit-in textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #E3E6EA; border-radius: 10px;
  padding: 9px 10px; font-family: inherit; font-size: 12.5px; line-height: 1.6;
  color: var(--deep-brown); resize: vertical;
}
.rp-edit-b { display: flex; gap: 8px; margin-top: 16px; }
.rp-edit-x, .rp-edit-s {
  flex: 1; padding: 11px; border: 0; border-radius: 12px;
  font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.rp-edit-x { background: #F1F3F5; color: #666; }
.rp-edit-s { background: var(--main-orange); color: #fff; }
.rp-edit-e { margin-top: 8px; font-size: 11.5px; color: #DC2626; text-align: center; }

/* 수정 창의 달 고르기 */
.rp-edit-m { display: flex; gap: 6px; margin-bottom: 8px; }
.rp-edit-m button {
  flex: 1; padding: 7px 0; border-radius: 9px; border: 1px solid #E3E6EA;
  background: #fff; font-size: 12px; font-weight: 700; color: #8a9099; cursor: pointer;
}
.rp-edit-m button.on {
  border-color: var(--main-orange); background: rgba(255, 140, 0, .12); color: var(--deep-brown);
}
.rp-edit-n { margin: 0 0 12px; font-size: 11px; color: #8a9099; line-height: 1.5; }
#edNoticeWrap[hidden] { display: none; }

/* 출석률 그래프도 고를 수 있다 */
.mchart.flat .mbar { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.att-hint { margin-top: 6px !important; }

/* 막대 아래 사유 라벨 · 첫 보고서 안내 */
/* [사유 라벨이 막대 높이를 흔들지 않게] 라벨이 붙은 칸만 아래가 길어져 막대들이
   서로 어긋나 보였다(2026-08-24). 자리를 늘 잡아 두고 글자만 넣고 뺀다. */
.mbar-n {
  font-size: 9px; font-weight: 800; color: var(--main-orange);
  background: rgba(255, 140, 0, .12); border-radius: 5px; padding: 1px 5px;
  line-height: 1.35;
}
.mchart:has(.mbar-n) .mbar::after {
  content: ""; display: block; height: 0;
}
.mchart:has(.mbar-n) .mbar:not(:has(.mbar-n))::after { height: 16px; }
.rp-firstnote {
  margin-bottom: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 140, 0, .1); border: 1px solid rgba(255, 140, 0, .3);
  font-size: 11.5px; line-height: 1.55; color: #b45309; word-break: keep-all;
}

/* 관리자 학생 검색 — 흰 카드 위에 놓이므로 로그인 화면용 .rp-input 을 쓸 수 없다
   (그쪽은 흰 글씨라 아무것도 안 보인다). */
.rp-search {
  width: 100%; box-sizing: border-box; margin-bottom: 10px;
  background: #F7F8FA; border: 1px solid #E3E6EA; border-radius: 12px;
  padding: 11px 13px; font-family: inherit; font-size: 14px;
  color: var(--deep-brown); outline: none;
}
.rp-search::placeholder { color: #b9bec5; }
.rp-search:focus { border-color: var(--main-orange); background: #fff; }
.rp-edit-r {
  margin-top: 6px; border: 0; border-radius: 8px; padding: 6px 12px;
  background: var(--deep-brown); color: #fff; font-family: inherit;
  font-size: 11.5px; font-weight: 800; cursor: pointer;
}

/* ── 열람 준비 중 화면 막기 ──────────────────────────────────────────── */
.rp-block {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(24, 18, 12, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.rp-block[hidden] { display: none; }
.rp-block-b {
  background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28); min-width: 220px;
}
.rp-block-b p { margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--deep-brown); }
.rp-spin {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  border: 3px solid rgba(255, 140, 0, .22); border-top-color: var(--main-orange);
  animation: rp-spin .8s linear infinite;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }
