/**
 * PMRTI v5.4 — 학생 검사 화면 전용 스타일 (/pmrti)
 * ---------------------------------------------------------------------------
 * 모든 규칙은 body.pmrti-student-body 로 스코프됩니다.
 * 교사 대시보드(/admin)·마스터(/pb/admin/loginB)·학교등록(sch_input)은
 * pmrti_v5.4.css 만 사용하므로 이 파일의 영향을 받지 않습니다.
 *
 * 로드 순서: bootstrap → pmrti_v5.4.css → pmrti_student.css (이 파일이 마지막)
 *
 * 디자인 원칙
 *   - 단일 강조색(청람 잉크블루). 영역별 색 구분을 쓰지 않고 활자 위계로 구분한다.
 *   - 모서리 반경: 기본 4px, 선택지 버튼만 14px. 그 외 예외 없음.
 *   - 표제는 Jua(둥근 고딕), 본문·UI는 Pretendard. 숫자는 tabular.
 *   - 모션은 상태 전환·피드백에만 쓴다. 무한 반복 애니메이션 없음.
 */

/* ---------------------------------------------------------------------------
 * 1. 디자인 토큰
 * --------------------------------------------------------------------------- */
body.pmrti-student-body {
  --pv-paper: #f3f3f1;
  --pv-surface: #fcfcfb;
  --pv-surface-2: #eaeae6;
  --pv-ink: #15181d;
  --pv-ink-2: #565c64;
  --pv-ink-3: #676d75;
  --pv-rule: #dededa;
  --pv-rule-strong: #c3c3be;
  --pv-accent: #1e4e8c;
  --pv-accent-deep: #14385f;
  --pv-accent-soft: #e6ecf4;
  --pv-accent-line: #b9cbe2;
  --pv-on-accent: #fcfcfb;
  --pv-warn: #8a3617;
  --pv-warn-soft: #f7ece7;

  --pv-r: 4px;
  --pv-r-lg: 14px;
  --pv-scale-1: #8a3617;
  --pv-scale-2: #96522e;
  --pv-scale-3: #35618f;
  --pv-scale-4: #1e4e8c;
  --pv-glow: rgba(30, 78, 140, 0.4);
  --pv-edge: #d3d3ce;
  --pv-shadow: rgba(21, 24, 29, 0.09);
  --pv-shadow-accent: rgba(30, 78, 140, 0.3);
  --pv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pv-t: 180ms;
  /* 타이틀 입체 압출 — 얕은 면부터 깊은 면 순서 */
  --pv-title-3d-1: #b9cbe2;
  --pv-title-3d-2: #1e4e8c;
  --pv-title-3d-3: #14385f;

  /* 문항 전환 시간. JS 의 applyFadeTiming() 이 ?fadems= 로 덮어쓴다 */
  --pv-fade-out: 400ms;
  --pv-fade-in: 400ms;

  --pv-display: 'Jua', 'Pretendard', 'Nanum Gothic', sans-serif;
  --pv-sans: 'Pretendard', 'Pretendard Variable', 'Nanum Gothic', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

@media (prefers-color-scheme: dark) {
  body.pmrti-student-body {
    --pv-paper: #14161a;
    --pv-surface: #1c1f25;
    --pv-surface-2: #242830;
    --pv-ink: #edeef0;
    --pv-ink-2: #a9b0b9;
    --pv-ink-3: #939aa3;
    --pv-rule: #2e333b;
    --pv-rule-strong: #3c424c;
    --pv-accent: #8fb3e2;
    --pv-accent-deep: #b9cfec;
    --pv-accent-soft: #1b2a3d;
    --pv-accent-line: #35506f;
    --pv-on-accent: #0f1620;
    --pv-warn: #e5a184;
    --pv-warn-soft: #2b1e18;
    --pv-scale-1: #e0a184;
    --pv-scale-2: #d9b08f;
    --pv-scale-3: #9fc0e8;
    --pv-scale-4: #8fb3e2;
    --pv-glow: rgba(143, 179, 226, 0.45);
    --pv-edge: #10131a;
    --pv-shadow: rgba(0, 0, 0, 0.45);
    --pv-shadow-accent: rgba(0, 0, 0, 0.5);
    /* 어두운 바탕에서도 압출은 면보다 어두워야 파인 것처럼 보인다 */
    --pv-title-3d-1: #4a6d99;
    --pv-title-3d-2: #2a4666;
    --pv-title-3d-3: #16273a;
  }
}

/* ---------------------------------------------------------------------------
 * 2. 지면
 * --------------------------------------------------------------------------- */
body.pmrti-student-body {
  background: var(--pv-paper);
  color: var(--pv-ink);
  font-family: var(--pv-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 인증 → 안내 → 문항 → 결과 네 화면이 같은 폭을 쓴다 */
body.pmrti-student-body .pmrti-page.container {
  max-width: 1180px;
  padding-top: 0;
  padding-bottom: 40px;
}

body.pmrti-student-body ::selection {
  background: var(--pv-accent);
  color: var(--pv-on-accent);
}

body.pmrti-student-body :focus-visible {
  outline: 2px solid var(--pv-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------------------
 * 3. 상단 표제 — 감싸는 카드 없이 제목 하나만 둔다
 *    학교명은 인증 화면의 auth-school-banner 와 검사자 정보 패널에서 보여준다.
 * --------------------------------------------------------------------------- */
/*
 * 압출 그림자를 겹쳐 입체로 보이게 한다.
 * 오프셋을 em 으로 두어 글자 크기가 줄어도 두께 비율이 유지된다.
 * (px 로 두면 모바일에서 상대적으로 너무 두꺼워진다)
 */
body.pmrti-student-body .pmrti-title-display {
  font-family: var(--pv-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pv-ink);
  margin: 0 0 10px;
  padding-top: 20px;
  text-align: left;
  text-shadow:
    0.022em 0.022em 0 var(--pv-title-3d-1),
    0.044em 0.044em 0 var(--pv-title-3d-1),
    0.066em 0.066em 0 var(--pv-title-3d-2),
    0.088em 0.088em 0 var(--pv-title-3d-2),
    0.11em 0.11em 0 var(--pv-title-3d-3),
    0.13em 0.15em 0.2em var(--pv-shadow);
}

/* 제목이 "처음으로" 버튼 */
body.pmrti-student-body .pmrti-title-home {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease;
}

body.pmrti-student-body .pmrti-title-home:hover {
  transform: translateY(-2px);
}

body.pmrti-student-body .pmrti-title-home:active {
  transform: translateY(0);
}

body.pmrti-student-body .pmrti-title-home:focus-visible {
  outline: 3px solid var(--pv-ink-3);
  outline-offset: 4px;
  border-radius: 6px;
}

body.pmrti-student-body .header-badge {
  font-family: var(--pv-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pv-ink-3);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
}

/* 발행처·버전 정보는 표제에서 내려 하단에 둔다 */
body.pmrti-student-body .pmrti-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--pv-rule);
  font-size: 0.72rem;
  color: var(--pv-ink-3);
  letter-spacing: 0.02em;
}

body.pmrti-student-body .pmrti-foot .header-badge {
  display: inline;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * 3-1. 공통 CSS 의 !important 선언 해소
 *      pmrti_v5.4.css 는 수정하지 않으므로 여기서 같은 강도로 되돌린다.
 * --------------------------------------------------------------------------- */

/* .auth-hint-text { color:#2b3138 !important } */
body.pmrti-student-body .auth-wrap .auth-hint-text {
  color: var(--pv-ink-2) !important;
}

/* .auth-box.border-primary 의 부트스트랩 기본 파랑 테두리 */
body.pmrti-student-body .auth-box.border-primary {
  border-color: var(--pv-rule) !important;
}

/* .prog-fill { background-color: var(--bs-primary) !important } */
body.pmrti-student-body .progress.prog-bar > .progress-bar.prog-fill {
  background-color: var(--pv-accent) !important;
}

body.pmrti-student-body .progress.prog-bar > .progress-bar.pmrti-prog-bar-fill {
  background-color: var(--pv-accent-line) !important;
}

/* ---------------------------------------------------------------------------
 * 4. 공통 폼 컨트롤
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .form-control,
body.pmrti-student-body .form-select {
  background: var(--pv-surface);
  border: 1px solid var(--pv-rule-strong);
  border-radius: var(--pv-r);
  color: var(--pv-ink);
  font-size: 1rem;
  padding: 11px 13px;
  box-shadow: none;
  transition: border-color var(--pv-t) var(--pv-ease),
    box-shadow var(--pv-t) var(--pv-ease);
}

body.pmrti-student-body .form-control::placeholder {
  color: var(--pv-ink-3);
  opacity: 1;
}

body.pmrti-student-body .form-control:focus,
body.pmrti-student-body .form-select:focus {
  border-color: var(--pv-accent);
  box-shadow: 0 0 0 3px var(--pv-accent-soft);
  outline: none;
}

body.pmrti-student-body .form-label {
  color: var(--pv-ink);
  font-size: 0.94rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * 5. 버튼 — 반경 4px 통일, 눌림 피드백
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .btn {
  border-radius: var(--pv-r);
  font-family: var(--pv-sans);
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color var(--pv-t) var(--pv-ease),
    border-color var(--pv-t) var(--pv-ease), color var(--pv-t) var(--pv-ease),
    transform 90ms var(--pv-ease);
}

body.pmrti-student-body .btn:active {
  transform: translateY(1px);
}

body.pmrti-student-body .btn-lg {
  font-size: 1.02rem;
  padding: 14px 22px;
}

body.pmrti-student-body .btn-primary {
  background: var(--pv-accent);
  border-color: var(--pv-accent);
  color: var(--pv-on-accent);
}

body.pmrti-student-body .btn-primary:hover,
body.pmrti-student-body .btn-primary:focus {
  background: var(--pv-accent-deep);
  border-color: var(--pv-accent-deep);
  color: var(--pv-on-accent);
}

body.pmrti-student-body .btn-secondary,
body.pmrti-student-body .btn-outline-secondary {
  background: transparent;
  border-color: var(--pv-rule-strong);
  color: var(--pv-ink-2);
}

body.pmrti-student-body .btn-secondary:hover,
body.pmrti-student-body .btn-outline-secondary:hover {
  background: var(--pv-surface-2);
  border-color: var(--pv-ink-3);
  color: var(--pv-ink);
}

/* 결과 출력 버튼도 동일 강조색 계열로 통일 (초록 배제) */
body.pmrti-student-body .btn-success {
  background: transparent;
  border-color: var(--pv-accent);
  color: var(--pv-accent);
}

body.pmrti-student-body .btn-success:hover,
body.pmrti-student-body .btn-success:focus {
  background: var(--pv-accent-soft);
  border-color: var(--pv-accent);
  color: var(--pv-accent-deep);
}

/* ---------------------------------------------------------------------------
 * 6. 인증 화면
 * --------------------------------------------------------------------------- */
/* 공통 CSS 의 .auth-wrap 은 반경 1rem + 그림자라 4px 통일 규칙과 어긋난다 */
body.pmrti-student-body .auth-wrap {
  max-width: 100%;
  background: var(--pv-surface);
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  box-shadow: none;
  padding: 30px 32px 32px;
}

body.pmrti-student-body .auth-wrap > .btn-primary {
  display: block;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* 인증 입력 | 개인정보 동의 2단. 좁은 화면과 간편 모드에서는 1단으로 접힌다 */
body.pmrti-student-body .auth-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  body.pmrti-student-body .auth-cols:not(.auth-cols-single) {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  body.pmrti-student-body .auth-cols:not(.auth-cols-single) .auth-col:first-child {
    padding-right: 26px;
    border-right: 1px solid var(--pv-rule);
  }
}

body.pmrti-student-body .auth-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 약관 상자가 남는 높이를 흡수하므로 체크박스는 그 바로 아래에 붙는다 */
body.pmrti-student-body .auth-col .auth-consent-row {
  margin-top: 0;
  margin-bottom: 0;
  flex: none;
}

/* 페이지 제목·설명을 걷어냈으므로 두 단의 제목이 이 화면의 최상위 표제가 된다 */
body.pmrti-student-body .auth-section-label {
  font-family: var(--pv-display);
  font-size: 1.06rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--pv-ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pv-ink);
  margin-bottom: 20px;
}

body.pmrti-student-body .auth-section-label .auth-icon {
  display: none;
}

body.pmrti-student-body .auth-school-banner {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pv-accent);
  background: var(--pv-accent-soft);
  border: 0;
  border-left: 2px solid var(--pv-accent);
  border-radius: 0;
  padding: 10px 14px;
}

body.pmrti-student-body .auth-hint-text {
  color: var(--pv-ink-2);
  font-size: 0.88rem !important;
  line-height: 1.65;
}

body.pmrti-student-body .auth-url-warn {
  margin: -4px 0 12px;
  font-size: 0.78rem;
}

body.pmrti-student-body .auth-hint-text strong {
  color: var(--pv-ink);
  font-weight: 700;
}

body.pmrti-student-body .auth-box {
  counter-reset: pv-authfield;
  background: var(--pv-paper);
  border: 1px solid var(--pv-rule) !important;
  border-radius: var(--pv-r);
  padding: 4px 16px;
  margin-bottom: 22px;
}

/*
 * 입력창·선택창·버튼의 높이를 한 값으로 고정한다.
 * 자연 높이가 서로 달라(입력창 padding 11px + line-height 1.5 / 버튼 padding 10px)
 * 같은 줄에 놓였을 때 1~3px 단차가 생기던 것을 없앤다.
 */
body.pmrti-student-body .auth-box .form-control,
body.pmrti-student-body .auth-box .form-select,
body.pmrti-student-body .auth-box .btn {
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

body.pmrti-student-body .auth-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/*
 * 각 입력 줄에 순번을 붙인다. CSS 카운터라 간편 모드에서 대출증·이름·반 줄이
 * 빠져도 번호가 자동으로 다시 매겨진다.
 */
body.pmrti-student-body .auth-field-row {
  counter-increment: pv-authfield;
  display: grid;
  grid-template-columns: 26px 84px 1fr;
  align-items: center;
  gap: 0 12px;
  padding: 13px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  transition: background-color var(--pv-t) var(--pv-ease);
}

body.pmrti-student-body .auth-field-row::before {
  content: counter(pv-authfield, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--pv-rule-strong);
  border-radius: var(--pv-r);
  background: transparent;
  color: var(--pv-ink-3);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--pv-t) var(--pv-ease),
    border-color var(--pv-t) var(--pv-ease), color var(--pv-t) var(--pv-ease);
}

/* 입력이 채워진 줄은 순번에 색이 찬다 (미지원 브라우저는 테두리만 유지) */
body.pmrti-student-body .auth-field-row:has(input:not(:placeholder-shown))::before,
body.pmrti-student-body .auth-field-row:has(select:valid)::before {
  background: var(--pv-accent);
  border-color: var(--pv-accent);
  color: var(--pv-on-accent);
}

body.pmrti-student-body .auth-field-row:focus-within {
  background: var(--pv-accent-soft);
}

body.pmrti-student-body .auth-field-row:focus-within::before {
  border-color: var(--pv-accent);
  color: var(--pv-accent);
}

body.pmrti-student-body .auth-field-row:last-child {
  border-bottom: 0;
}

body.pmrti-student-body .auth-field-row .form-label {
  color: var(--pv-ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/*
 * 라벨은 「학교명<span class=auth-req>*</span>」 형태로 온다.
 * 가로 배치인 이 테마에서는 콜론이 맞으므로 별표를 감추고 콜론을 붙인다.
 */
body.pmrti-student-body .auth-field-row .form-label .auth-req {
  display: none;
}

body.pmrti-student-body .auth-field-row .form-label::after {
  content: ' :';
}

/* 좁은 화면: 순번과 라벨을 윗줄로 올리고 입력은 아래 전폭 */
@media (max-width: 560px) {
  /*
   * 검사 영역 안내 — 좁은 화면에서는 설명을 아래 줄로 내린다.
   * 네 칸(섹션·이름·문항 수·설명)을 유지하면 375px 폭에서 설명 칸에
   * 55px 밖에 남지 않아 한 단어씩 끊긴다. 글씨를 줄여서 될 폭이 아니다.
   */
  body.pmrti-student-body .intro-scope-row {
    grid-template-columns: auto auto 1fr;
    row-gap: 4px;
  }

  body.pmrti-student-body .intro-scope-desc {
    grid-column: 1 / -1;
  }

  body.pmrti-student-body .auth-field-row {
    grid-template-columns: 26px 1fr;
    gap: 8px 12px;
  }
  body.pmrti-student-body .auth-field-row .auth-inline-control {
    grid-column: 1 / -1;
  }
}

/* 학년만 있는 간편 모드와 학년+반 모드를 같은 규칙으로 처리 */
body.pmrti-student-body .auth-grade-class-inputs {
  display: flex;
  gap: 10px;
}

body.pmrti-student-body .auth-grade-class-inputs > * {
  flex: 1 1 0;
  min-width: 0;
}

/* 입력란 자체도 눌러서 학교 검색 창을 연다 */
body.pmrti-student-body .auth-input-readonly {
  background: var(--pv-surface-2);
  color: var(--pv-ink-2);
  cursor: pointer;
}

body.pmrti-student-body .auth-input-readonly:hover {
  background: var(--pv-accent-soft);
  border-color: var(--pv-accent-line);
  color: var(--pv-ink);
}

/* 대출증 확인 버튼을 학교 검색 버튼과 동일하게 입력창에 붙인다 */
body.pmrti-student-body .auth-library-verify-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

body.pmrti-student-body .auth-library-verify-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

body.pmrti-student-body .auth-library-verify-row .btn {
  flex: 0 0 120px;
  width: 120px;
  padding-inline: 16px;
  white-space: nowrap;
}

/*
 * 조회 결과 문구. updateLibraryVerifyHint() 가 textContent 를 비우므로
 * 비어 있을 때는 자리를 차지하지 않고, 결과가 들어올 때만 줄이 늘어난다.
 * 상태 클래스는 JS 가 내보내는 ok / error / pending 세 가지다.
 */
body.pmrti-student-body .auth-library-verify-msg {
  font-size: 0.82rem;
  margin-top: 6px;
  color: var(--pv-ink-3);
}

body.pmrti-student-body .auth-library-verify-msg:empty {
  display: none;
}

body.pmrti-student-body .auth-library-verify-msg:not(:empty) {
  animation: pv-msg-in 180ms var(--pv-ease) both;
}

@keyframes pv-msg-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

body.pmrti-student-body .auth-library-verify-msg.ok {
  color: var(--pv-accent);
  font-weight: 600;
}

body.pmrti-student-body .auth-library-verify-msg.error {
  color: var(--pv-warn);
  font-weight: 600;
}

body.pmrti-student-body .auth-library-verify-msg.pending {
  color: var(--pv-ink-2);
  font-weight: 600;
}

/* 약관 상자를 동의 체크박스 바로 위까지 늘려 왼쪽 단과 높이를 맞춘다 */
body.pmrti-student-body .auth-privacy-block {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

body.pmrti-student-body .auth-privacy-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pv-ink-2);
  margin-bottom: 8px;
}

/* 공통 CSS 의 .auth-privacy-scroll { height: 220px } 고정값을 푼다 */
body.pmrti-student-body .auth-privacy-scroll {
  background: var(--pv-paper);
  height: auto;
  flex: 1 1 auto;
  max-height: none;
  min-height: 220px;
  overflow-y: auto;
  background: var(--pv-surface);
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--pv-ink-2);
}

body.pmrti-student-body .auth-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pv-paper);
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  cursor: pointer;
}

body.pmrti-student-body .auth-consent-row .form-check-input {
  margin: 2px 0 0;
  width: 19px;
  height: 19px;
  border-radius: 2px;
  border-color: var(--pv-rule-strong);
  flex: none;
}

body.pmrti-student-body .auth-consent-row .form-check-input:checked {
  background-color: var(--pv-accent);
  border-color: var(--pv-accent);
}

body.pmrti-student-body .auth-consent-row .form-check-label {
  font-size: 0.9rem;
  color: var(--pv-ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * 7. 검사 안내 화면
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .intro-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* 균등 4타일 대신 비대칭 구성: 문항 수를 크게, 나머지는 규칙선으로 분리 */
body.pmrti-student-body .intro-figure {
  margin-top: 8px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--pv-ink);
  margin-bottom: 0;
}

body.pmrti-student-body .intro-figure-label {
  font-size: 0.74rem;
  color: var(--pv-ink-3);
  margin-bottom: 4px;
}

body.pmrti-student-body .intro-figure-num {
  font-family: var(--pv-display);
  font-size: clamp(3.6rem, 15vw, 5.6rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--pv-ink);
  font-variant-numeric: tabular-nums;
}

body.pmrti-student-body .intro-figure-num span {
  font-size: 0.3em;
  font-weight: 700;
  margin-left: 4px;
  letter-spacing: 0;
}

body.pmrti-student-body .intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 34px;
}

body.pmrti-student-body .intro-meta-item {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--pv-rule);
}

body.pmrti-student-body .intro-meta-label {
  font-size: 0.74rem;
  color: var(--pv-ink-3);
  margin-bottom: 3px;
}

body.pmrti-student-body .intro-meta-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--pv-ink);
}

body.pmrti-student-body .intro-notice {
  background: var(--pv-surface);
  border: 0;
  border-left: 2px solid var(--pv-accent);
  border-radius: 0;
  padding: 18px 20px;
  margin-bottom: 30px;
}

body.pmrti-student-body .intro-notice p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--pv-ink-2);
  margin: 0 0 7px;
}

body.pmrti-student-body .intro-notice p:last-child {
  margin-bottom: 0;
}

/* 검사 영역 안내: em-dash 나열 대신 3열 정렬 표 */
body.pmrti-student-body .intro-scope {
  margin-bottom: 32px;
}

body.pmrti-student-body .intro-scope-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pv-ink-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pv-rule);
  margin-bottom: 4px;
}

body.pmrti-student-body .intro-scope-no {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pv-ink-3);
  font-variant-numeric: tabular-nums;
}

body.pmrti-student-body .intro-scope-row {
  display: grid;
  grid-template-columns: 4rem 5.6rem 3.4rem 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pv-rule);
}

body.pmrti-student-body .intro-scope-name {
  font-family: var(--pv-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--pv-ink);
}

body.pmrti-student-body .intro-scope-count {
  font-size: 0.8rem;
  color: var(--pv-accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.pmrti-student-body .intro-scope-desc {
  font-size: 0.88rem;
  color: var(--pv-ink-2);
  line-height: 1.5;
}

/* 지면이 넓어진 만큼 시작 버튼이 통째로 늘어나지 않게 인증 화면 확인 버튼과 맞춘다 */
body.pmrti-student-body .intro-card > .d-grid {
  max-width: 420px;
  margin-inline: auto;
}

body.pmrti-student-body .intro-autosave {
  text-align: center;
  font-size: 0.8rem;
  color: var(--pv-ink-3);
  margin-top: 14px;
}

/* ---------------------------------------------------------------------------
 * 8. 진행 표시 — 줄무늬 애니메이션 대신 얇은 규칙선
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .prog-wrap {
  margin-bottom: 14px;
}

body.pmrti-student-body .prog-wrap-dual {
  margin-bottom: 10px;
}

body.pmrti-student-body .prog-dual-head,
body.pmrti-student-body .prog-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--pv-ink-2);
  margin-bottom: 6px;
}

body.pmrti-student-body .prog-label-end {
  justify-content: flex-end;
  margin: -2px 0 10px;
}

body.pmrti-student-body .prog-dual-head strong {
  font-weight: 700;
  color: var(--pv-ink);
  letter-spacing: 0.01em;
}

body.pmrti-student-body .prog-dual-head span {
  font-variant-numeric: tabular-nums;
  color: var(--pv-ink-3);
}

body.pmrti-student-body .progress.prog-bar {
  height: 3px;
  background: var(--pv-rule);
  border-radius: 0;
  overflow: hidden;
}

body.pmrti-student-body .progress.prog-bar .progress-bar {
  background: var(--pv-accent);
  border-radius: 0;
  /* 튀지 않고 고르게 차오르도록 --pv-ease 보다 완만한 곡선을 쓴다 */
  transition: width 620ms cubic-bezier(0.25, 0.8, 0.3, 1);
}

body.pmrti-student-body .progress.prog-bar .pmrti-prog-bar-fill {
  background: var(--pv-accent-line);
}

/* 자동저장 표시 — 저장이 살아있음을 알리는 깜빡이는 불빛 */
body.pmrti-student-body .autosave-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pv-accent);
  margin-right: 7px;
  vertical-align: middle;
  animation: pv-autosave-blink 1.8s ease-in-out infinite;
}

@keyframes pv-autosave-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--pv-glow);
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 0 4px transparent;
  }
}

/* ---------------------------------------------------------------------------
 * 9. 검사자 정보 — 미들닷 연쇄 대신 여백 구분
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .participant-info-panel {
  background: var(--pv-surface);
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  padding: 18px 18px 14px;
  margin: 0;
}

body.pmrti-student-body .pip-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pv-ink-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pv-rule);
  margin-bottom: 4px;
}

body.pmrti-student-body .pip-list {
  margin: 0;
}

body.pmrti-student-body .pip-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--pv-rule);
}

body.pmrti-student-body .pip-row:last-child {
  border-bottom: 0;
}

body.pmrti-student-body .pip-key {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pv-ink-3);
}

body.pmrti-student-body .pip-val {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pv-ink);
  word-break: keep-all;
}






/* 검사 화면: 왼쪽 검사자 정보 카드 + 본문. 좁은 화면에서는 카드가 문항 위로 */
body.pmrti-student-body .exam-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 900px) {
  body.pmrti-student-body .exam-wrap {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }
  body.pmrti-student-body .exam-side {
    position: sticky;
    top: 20px;
  }
}

body.pmrti-student-body .exam-main {
  min-width: 0;
  overflow-x: clip;
}

/* ---------------------------------------------------------------------------
 * 10. 문항
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .sec-title {
  font-family: var(--pv-display);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--pv-ink);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

/*
 * 영역 안내 배너 — 팝업 대신 영역 제목 아래에 그 영역이 끝날 때까지 유지된다.
 * 독서 방법(1~2번)은 문구가 없어 렌더되지 않는다.
 */
body.pmrti-student-body .section-enter-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--pv-accent-soft);
  border: 1px solid var(--pv-accent-line);
  border-radius: var(--pv-r-lg);
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 0.94rem;
  font-family: var(--pv-display);
  color: var(--pv-accent-deep);
}

body.pmrti-student-body .seb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--pv-accent);
  color: var(--pv-on-accent);
  font-size: 0.82rem;
}

body.pmrti-student-body .seb-text {
  min-width: 0;
  line-height: 1.5;
  word-break: keep-all;
}

body.pmrti-student-body .q-card {
  background: var(--pv-surface);
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  padding: 26px 24px 22px;
  margin-bottom: 16px;
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
 * 10-1. 문항 전환 — 흐려져 사라지고 떠오르며 나타난다
 *   너무 빠르면 깜빡이는 것처럼 보이므로 넉넉히 잡는다.
 *   시간은 --pv-fade-out / --pv-fade-in 토큰 하나로 관리한다.
 * --------------------------------------------------------------------------- */
body.pmrti-student-body #examCard {
  position: relative;
  /* 문항 길이에 따라 카드 높이가 달라진다. 아래 버튼이 툭 튀지 않게 이어 준다 */
  transition: height var(--pv-fade-in) cubic-bezier(0.2, 0.55, 0.3, 1);
}


body.pmrti-student-body .q-card.is-fading-in {
  animation: pv-q-in var(--pv-fade-in) cubic-bezier(0.2, 0.55, 0.3, 1) both;
}

/*
 * 사라짐 곡선에 ease-in 을 쓰면 안 된다. 처음이 너무 느려서 600ms 가 지나도
 * 21% 만 사라진다 — 눌러도 한참 아무 일이 없는 것처럼 보인다.
 * 누른 즉시 반응하도록 앞부분이 빠른 곡선을 쓴다.
 */
body.pmrti-student-body .q-card.is-fading-out {
  animation: pv-q-out var(--pv-fade-out) cubic-bezier(0.25, 0.6, 0.3, 1) both;
}

/*
 * 영역 제목·배너도 문항과 같은 타이밍으로 전환한다.
 * 값이 바뀔 때만 클래스가 붙으므로, 같은 제목·같은 배너면 아무 일도 없다.
 * 사라짐 규칙을 나타남 뒤에 두어 둘이 겹쳐도 사라짐이 이기게 한다.
 */
body.pmrti-student-body .sec-title.is-fading-in,
body.pmrti-student-body #examBanner.is-fading-in {
  animation: pv-chrome-in var(--pv-fade-in) cubic-bezier(0.2, 0.55, 0.3, 1) both;
}

body.pmrti-student-body .sec-title.is-fading-out,
body.pmrti-student-body #examBanner.is-fading-out {
  animation: pv-chrome-out var(--pv-fade-out) cubic-bezier(0.25, 0.6, 0.3, 1) both;
}

/* 영역별 전체 문항 모드 — 본문 전체가 한 덩어리로 전환된다 */
body.pmrti-student-body .exam-main.is-fading-in {
  animation: pv-chrome-in var(--pv-fade-in) cubic-bezier(0.2, 0.55, 0.3, 1) both;
}

body.pmrti-student-body .exam-main.is-fading-out {
  animation: pv-chrome-out var(--pv-fade-out) cubic-bezier(0.25, 0.6, 0.3, 1) both;
}

@keyframes pv-chrome-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pv-chrome-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

@keyframes pv-q-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes pv-q-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.pmrti-student-body .q-num {
  display: block;
  font-family: var(--pv-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--pv-accent);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

body.pmrti-student-body .q-text {
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pv-ink);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  word-break: keep-all;
}

/*
 * 선택지 — 4지선다를 한 줄에. 숫자는 배지 없이 숫자만.
 * 아래쪽에 단단한 색 테두리를 깔아 실제로 눌리는 키처럼 보이게 한다.
 */
body.pmrti-student-body .likert,
body.pmrti-student-body .qty-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 6px;
}

body.pmrti-student-body .lk-btn,
body.pmrti-student-body .qty-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 138px;
  padding: 18px 12px 20px;
  text-align: center;
  background: var(--pv-surface);
  border: 1.5px solid var(--pv-rule);
  border-radius: var(--pv-r-lg);
  box-shadow: 0 4px 0 var(--pv-edge), 0 7px 14px var(--pv-shadow);
  color: var(--pv-ink-2);
  font-family: var(--pv-sans);
  cursor: pointer;
  transition: background-color var(--pv-t) var(--pv-ease),
    border-color var(--pv-t) var(--pv-ease), color var(--pv-t) var(--pv-ease),
    box-shadow var(--pv-t) var(--pv-ease), transform var(--pv-t) var(--pv-ease);
}

body.pmrti-student-body .lk-btn:hover,
body.pmrti-student-body .qty-btn:hover {
  border-color: var(--pv-accent-line);
  background: var(--pv-accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--pv-accent-line), 0 12px 20px var(--pv-shadow);
}

/* 누르는 순간 아래로 내려앉고 그림자가 사라진다 */
body.pmrti-student-body .lk-btn:active,
body.pmrti-student-body .qty-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--pv-edge), 0 2px 4px var(--pv-shadow);
}

body.pmrti-student-body .lk-btn.sel,
body.pmrti-student-body .qty-btn.sel {
  background: var(--pv-accent);
  border-color: var(--pv-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--pv-accent-deep), 0 10px 20px var(--pv-shadow-accent);
}

body.pmrti-student-body .lk-btn.sel:active,
body.pmrti-student-body .qty-btn.sel:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--pv-accent-deep), 0 2px 4px var(--pv-shadow-accent);
}

/* 숫자 — 배지 없이 숫자만 크게 */
body.pmrti-student-body .lk-num-icon {
  position: static;
  transform: none;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--pv-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--pv-ink-3);
  transition: color var(--pv-t) var(--pv-ease);
}

body.pmrti-student-body .lk-label {
  display: block;
  white-space: pre-line;
  text-align: center;
  word-break: keep-all;
  font-family: var(--pv-display);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--pv-ink-2);
}

/*
 * 척도 신호는 숫자 색으로만 준다. 부정(러스트) → 긍정(잉크블루).
 * 라벨은 읽기 쉬운 먹색으로 두어 색 인상보다 글이 먼저 읽히게 한다.
 * 공유 CSS 가 nth-child 로 라벨에 원색을 지정하므로 같은 구조로 덮는다.
 */
body.pmrti-student-body .likert .lk-btn:nth-child(1) .lk-num-icon,
body.pmrti-student-body .qty-row .qty-btn:nth-child(1) .lk-num-icon {
  color: var(--pv-scale-1);
}

body.pmrti-student-body .likert .lk-btn:nth-child(2) .lk-num-icon,
body.pmrti-student-body .qty-row .qty-btn:nth-child(2) .lk-num-icon {
  color: var(--pv-scale-2);
}

body.pmrti-student-body .likert .lk-btn:nth-child(3) .lk-num-icon,
body.pmrti-student-body .qty-row .qty-btn:nth-child(3) .lk-num-icon {
  color: var(--pv-scale-3);
}

body.pmrti-student-body .likert .lk-btn:nth-child(4) .lk-num-icon,
body.pmrti-student-body .qty-row .qty-btn:nth-child(4) .lk-num-icon {
  color: var(--pv-scale-4);
}

body.pmrti-student-body .likert .lk-btn:nth-child(1) .lk-label,
body.pmrti-student-body .likert .lk-btn:nth-child(2) .lk-label,
body.pmrti-student-body .likert .lk-btn:nth-child(3) .lk-label,
body.pmrti-student-body .likert .lk-btn:nth-child(4) .lk-label,
body.pmrti-student-body .qty-row .qty-btn:nth-child(1) .lk-label,
body.pmrti-student-body .qty-row .qty-btn:nth-child(2) .lk-label,
body.pmrti-student-body .qty-row .qty-btn:nth-child(3) .lk-label,
body.pmrti-student-body .qty-row .qty-btn:nth-child(4) .lk-label {
  color: var(--pv-ink-2);
}

/* 선택되면 배경이 강조색으로 차므로 숫자·라벨 모두 반전색 */
body.pmrti-student-body .likert .lk-btn.sel .lk-num-icon,
body.pmrti-student-body .likert .lk-btn.sel .lk-label,
body.pmrti-student-body .qty-row .qty-btn.sel .lk-num-icon,
body.pmrti-student-body .qty-row .qty-btn.sel .lk-label {
  color: var(--pv-on-accent);
}

/* 선택 상태는 배경과 그림자로 드러나므로 체크 표시는 쓰지 않는다 */
body.pmrti-student-body .lk-check-icon {
  display: none;
}

@media (max-width: 560px) {
  body.pmrti-student-body .likert,
  body.pmrti-student-body .qty-row {
    gap: 7px;
  }
  body.pmrti-student-body .lk-btn,
  body.pmrti-student-body .qty-btn {
    min-height: 116px;
    padding: 14px 6px 16px;
    border-radius: 11px;
    box-shadow: 0 3px 0 var(--pv-edge), 0 5px 10px var(--pv-shadow);
  }
  body.pmrti-student-body .lk-num-icon {
    font-size: 1.5rem;
  }
  body.pmrti-student-body .lk-label {
    font-size: 0.86rem;
  }
}

/* ---------------------------------------------------------------------------
 * 11. 하단 내비게이션
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--pv-rule);
}

body.pmrti-student-body .nav .btn {
  width: 100%;
}

body.pmrti-student-body .single-next-auto-hint,
body.pmrti-student-body .warn-msg {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--pv-ink-3);
  text-align: center;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

body.pmrti-student-body .warn-msg:not(.single-next-auto-hint) {
  color: var(--pv-warn);
  background: var(--pv-warn-soft);
  border-radius: var(--pv-r);
  padding: 10px 14px;
  font-weight: 600;
  margin-top: 12px;
}

/* ---------------------------------------------------------------------------
 * 12. 결과 화면 — 5색 배지 대신 활자 위계
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .result-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 34px;
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  overflow: hidden;
  background: var(--pv-surface);
}

body.pmrti-student-body .result-character-card {
  background: var(--pv-accent-soft);
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.pmrti-student-body .result-character-img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

body.pmrti-student-body .r-card.result-combo-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 28px 24px;
  margin: 0;
}

body.pmrti-student-body .result-combo-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pv-ink-3);
  margin-bottom: 8px;
}

body.pmrti-student-body .result-combo-value {
  font-family: var(--pv-display);
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pv-ink);
  margin-bottom: 10px;
  word-break: keep-all;
}

body.pmrti-student-body .result-combo-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--pv-ink-2);
}

body.pmrti-student-body .result-combo-guide {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--pv-rule);
}

body.pmrti-student-body .result-combo-guide-heading {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pv-ink-3);
  margin-bottom: 14px;
}

body.pmrti-student-body .guide-section {
  margin-bottom: 16px;
}

body.pmrti-student-body .guide-section:last-child {
  margin-bottom: 0;
}

body.pmrti-student-body .guide-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--pv-ink);
  margin-bottom: 8px;
}

body.pmrti-student-body .guide-tag {
  display: inline-block;
  background: var(--pv-accent-soft);
  color: var(--pv-accent-deep);
  border: 1px solid var(--pv-accent-line);
  border-radius: var(--pv-r);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
}

body.pmrti-student-body .guide-item {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--pv-ink-2);
  padding-left: 13px;
  position: relative;
  margin-bottom: 5px;
}

body.pmrti-student-body .guide-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--pv-accent);
}

@media (min-width: 640px) {
  body.pmrti-student-body .result-top-row {
    grid-template-columns: 220px 1fr;
  }
  body.pmrti-student-body .result-character-img {
    max-height: none;
  }
}

/* 5개 영역 결과 — 색이 아니라 규칙선으로 구분 */
body.pmrti-student-body .r-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

body.pmrti-student-body .r-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--pv-rule);
  border-radius: 0;
  box-shadow: none;
  padding: 18px 0;
  margin: 0;
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  align-items: baseline;
  gap: 4px 16px;
}

body.pmrti-student-body .r-card.full {
  margin-bottom: 0 !important;
}

body.pmrti-student-body .rc-label {
  grid-row: 1 / 3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pv-ink-3);
  padding-top: 3px;
}

body.pmrti-student-body .rc-type {
  font-family: var(--pv-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--pv-ink);
  margin: 0 0 4px;
}

body.pmrti-student-body .rc-desc {
  font-size: 0.89rem;
  line-height: 1.65;
  color: var(--pv-ink-2);
  grid-column: 2;
}

/* 독서량 */
body.pmrti-student-body .qty-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--pv-rule);
  border: 1px solid var(--pv-rule);
  border-radius: var(--pv-r);
  overflow: hidden;
  margin: 30px 0 0;
}

body.pmrti-student-body .stu-card {
  background: var(--pv-surface);
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 16px;
  margin: 0;
}

body.pmrti-student-body .stu-card-label {
  font-size: 0.76rem;
  color: var(--pv-ink-3);
  font-weight: 600;
  margin-bottom: 6px;
}

body.pmrti-student-body .stu-card-val {
  font-family: var(--pv-display);
  font-size: 1.24rem;
  font-weight: 400;
  color: var(--pv-ink);
  margin-bottom: 4px;
}

body.pmrti-student-body .stu-card-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--pv-ink-2);
}

body.pmrti-student-body .student-result-nav {
  border-top: 1px solid var(--pv-rule);
}

/* ---------------------------------------------------------------------------
 * 13. 모달 — 학생 페이지에서만
 * --------------------------------------------------------------------------- */
body.pmrti-student-body .modal-content {
  background: var(--pv-surface);
  border: 1px solid var(--pv-rule-strong);
  border-radius: var(--pv-r);
  color: var(--pv-ink);
}

body.pmrti-student-body .modal-header {
  border-bottom: 1px solid var(--pv-rule);
  padding: 18px 22px;
}

body.pmrti-student-body .modal-title {
  font-family: var(--pv-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--pv-ink);
}

body.pmrti-student-body .modal-body {
  padding: 22px;
}

/* 공유 CSS 의 #guidModal / .school-search-modal 패딩 선언 해소 */
body.pmrti-student-body #guidModal .modal-header {
  padding: 18px 22px !important;
}

body.pmrti-student-body #guidModal .modal-body {
  padding: 22px !important;
}

body.pmrti-student-body .school-search-modal .modal-body.school-search-body {
  padding: 22px !important;
}

body.pmrti-student-body .school-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

body.pmrti-student-body .school-search-input {
  flex: 1;
  background: var(--pv-paper);
  border: 1px solid var(--pv-rule-strong);
  border-radius: var(--pv-r);
  padding: 11px 13px;
  color: var(--pv-ink);
  font-size: 1rem;
}

body.pmrti-student-body .school-search-input:focus {
  border-color: var(--pv-accent);
  box-shadow: 0 0 0 3px var(--pv-accent-soft);
  outline: none;
}

body.pmrti-student-body .school-search-hint {
  font-size: 0.82rem;
  color: var(--pv-ink-3);
  margin-bottom: 14px;
}





/* ---------------------------------------------------------------------------
 * 15. 접근성 — 모션 축소 설정 존중
 * --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.pmrti-student-body *,
  body.pmrti-student-body *::before,
  body.pmrti-student-body *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
 * 16. 인쇄 — 결과지를 그대로 출력할 때
 * --------------------------------------------------------------------------- */
@media print {
  body.pmrti-student-body {
    background: #fff;
    color: #000;
  }
  body.pmrti-student-body .nav,
  body.pmrti-student-body .header-badge {
    display: none;
  }
}
