/**
 * PMRTI v5.4 — 학생 검사 화면 「말랑」 테마 (/pmrti)
 * ---------------------------------------------------------------------------
 * 기존 「클래식」 테마(pmrti_student.css)는 손대지 않는다.
 * 이 파일은 body 에 pmrti-theme-cute 가 붙었을 때만 동작한다.
 *
 *   /pmrti                 → 말랑 (기본)
 *   /pmrti?theme=classic   → 클래식 (기존 잉크·종이 디자인)
 *
 * 로드 순서: bootstrap → pmrti_v5.4.css → pmrti_student.css → 이 파일
 * 선택자는 body.pmrti-student-body.pmrti-theme-cute (0,3,1) 로 두어
 * 클래식의 (0,2,1) 을 항상 이긴다. 클래식이 !important 를 쓴 네 곳만
 * 같은 강도로 되받는다.
 */

/* ---------------------------------------------------------------------------
 * 0. 테마 전환 스위치 — 테마와 무관하게 항상 평가된다
 * --------------------------------------------------------------------------- */
.cute-decor {
  display: none;
}

body.pmrti-theme-cute .cute-decor {
  display: block;
}

/* 히어로가 자기 제목을 갖고 있으므로 골격의 제목은 첫 화면에서만 감춘다 */
body.pmrti-student-body.pmrti-theme-cute:has(.cute-hero) .pmrti-title-display,
body.pmrti-student-body.pmrti-theme-cute:has(.cute-head) .pmrti-title-display {
  display: none;
}

/* ---------------------------------------------------------------------------
 * 1. 디자인 토큰
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute {
  --cu-ink: #3b3358;
  --cu-ink-2: #564c7c;
  --cu-muted: #6f6790;
  --cu-faint: #79709c; /* 글씨색 4.55:1 — 11.5px 자리에도 쓰여 4.5:1 이 필요하다 */

  /* 라벤더도 흰 글씨를 얹는다 — lo 가 그러데이션 위쪽이라 여기서 대비가 갈린다 */
  --cu-lav: #7a5fbf;    /* 흰 글씨 4.98:1 */
  --cu-lav-lo: #8161d5; /* 흰 글씨 4.56:1 */
  --cu-lav-hi: #6a50aa; /* 흰 글씨 6.29:1 */
  --cu-ring: #8b6fd4;
  --cu-line: #e6e0f5;
  --cu-field: #f8f5fe;
  --cu-tint: #f6f3fd;
  --cu-cream: #fffdfb;

  /*
   * 흰 글씨를 얹는 면이라 명도 대비가 값을 정한다(WCAG 2.1 AA 4.5:1).
   *
   * 큰 단추만 큰 글씨 기준 3:1 로 두는 방법도 있었지만, 그 기준은 18.66px
   * 굵게 이상에만 성립해 알림창(17px)·이어하기(15px) 단추에는 쓸 수 없다.
   * 한 벌로 4.5:1 을 맞추면 글씨 크기와 무관하게 어디서나 충족한다.
   */
  --cu-orange: #c84f1a;    /* 흰 글씨 4.58:1 */
  --cu-orange-lo: #c84f22; /* 흰 글씨 4.57:1 */
  --cu-orange-hi: #ba5a38; /* 글씨색 4.56:1 — 필수 표시 */
  --cu-rose: #c46a8e;
  --cu-rose-line: #f2d8e3;
  --cu-amber-bg: #fff6e6;
  --cu-amber-ink: #b08a5a;

  --cu-r: 15px;
  --cu-r-lg: 20px;
  --cu-r-xl: 28px;
  --cu-tap: 54px;
  --cu-soft: rgba(140, 120, 190, 0.12);
  --cu-cast: rgba(130, 110, 180, 0.18);

  --cu-display: 'Jua', 'Pretendard', 'Nanum Gothic', sans-serif;
}

/* ---------------------------------------------------------------------------
 * 2. 지면 — 크림·라벤더 그러데이션
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute {
  color: var(--cu-ink);
  line-height: 1.62;
  word-break: keep-all;
  min-height: 100vh;
  background:
    radial-gradient(120% 66% at 10% -8%, #fff6ee 0%, rgba(255, 246, 238, 0) 55%),
    radial-gradient(110% 62% at 94% 2%, #ede6ff 0%, rgba(237, 230, 255, 0) 58%),
    linear-gradient(178deg, #f4efff 0%, #f7f1fa 44%, #fdf6f1 100%);
  background-attachment: fixed;
}

body.pmrti-student-body.pmrti-theme-cute .pmrti-page.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

body.pmrti-student-body.pmrti-theme-cute ::selection {
  background: var(--cu-lav);
  color: #fff;
}

body.pmrti-student-body.pmrti-theme-cute :focus-visible {
  outline: 3px solid var(--cu-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------------
 * 3. 떠다니는 장식 종이 — 배경에만 있고 조작을 가로채지 않는다
 * --------------------------------------------------------------------------- */
body.pmrti-theme-cute .cute-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

body.pmrti-theme-cute .cute-decor i {
  position: absolute;
  border-radius: 6px;
  opacity: 0.45;
  background: linear-gradient(160deg, #fff, #efe7ff);
  box-shadow: 0 6px 14px rgba(120, 100, 180, 0.13);
  animation: cu-float 9s ease-in-out infinite;
}

body.pmrti-theme-cute .cute-decor i:nth-child(1) {
  width: 26px;
  height: 20px;
  top: 13%;
  left: 7%;
  transform: rotate(-14deg);
}

body.pmrti-theme-cute .cute-decor i:nth-child(2) {
  width: 18px;
  height: 14px;
  top: 34%;
  right: 8%;
  transform: rotate(18deg);
  animation-delay: -3s;
}

body.pmrti-theme-cute .cute-decor i:nth-child(3) {
  width: 21px;
  height: 16px;
  top: 70%;
  left: 5%;
  transform: rotate(9deg);
  animation-delay: -5s;
}

body.pmrti-theme-cute .cute-decor i:nth-child(4) {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  top: 22%;
  right: 24%;
  background: #fff;
  box-shadow: none;
  opacity: 0.7;
  animation-delay: -2s;
}

@keyframes cu-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-13px) rotate(6deg);
  }
}

/* ---------------------------------------------------------------------------
 * 4. 히어로 — 첫 화면 표제부
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .cute-hero {
  text-align: center;
  padding: 12px 0 4px;
}

body.pmrti-student-body.pmrti-theme-cute .ch-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px var(--cu-soft);
  /* 바닥글의 같은 뱃지(.header-badge)와 서체·굵기를 맞춘다 */
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: #6e6a78;
}

/*
 * 굵은 흰 테두리를 글자 뒤로 깔아 스티커처럼 보이게 한다.
 * paint-order 가 없으면 테두리가 글자 위를 덮어 획이 뭉갠다.
 */
body.pmrti-student-body.pmrti-theme-cute .ch-title {
  margin: 0;
  font-family: var(--cu-display);
  font-weight: 400;
  font-size: clamp(32px, 8.6vw, 58px);
  line-height: 1.36;
  letter-spacing: -0.015em;
  color: var(--cu-lav);
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 7px rgba(122, 95, 191, 0.19));
  text-shadow: none;
}

/* 제목이 "처음으로" 버튼 — 살짝 떠오르는 정도로만 알린다 */
body.pmrti-student-body.pmrti-theme-cute .ch-title-home {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

body.pmrti-student-body.pmrti-theme-cute .ch-title-home:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 10px rgba(122, 95, 191, 0.26));
}

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

body.pmrti-student-body.pmrti-theme-cute .ch-title-home:focus-visible {
  outline: 3px solid var(--cu-ring);
  outline-offset: 4px;
  border-radius: 8px;
}

body.pmrti-student-body.pmrti-theme-cute .ch-sub {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cu-faint);
  line-height: 1.85;
}

body.pmrti-student-body.pmrti-theme-cute .ch-cast {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
}

body.pmrti-student-body.pmrti-theme-cute .ch-cast figure {
  margin: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 7px 15px var(--cu-cast);
  animation: cu-bob 4.4s ease-in-out infinite;
}

body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(2) {
  animation-delay: -0.55s;
}
body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(3) {
  animation-delay: -1.10s;
}
body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(4) {
  animation-delay: -1.65s;
}
body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(5) {
  animation-delay: -2.20s;
}
body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(6) {
  animation-delay: -2.75s;
}
body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(7) {
  animation-delay: -3.30s;
}
body.pmrti-student-body.pmrti-theme-cute .ch-cast figure:nth-child(8) {
  animation-delay: -3.85s;
}

/* 캐릭터가 원 위쪽에 있어 위로 당겨 담는다 */
body.pmrti-student-body.pmrti-theme-cute .ch-cast img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

@keyframes cu-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------------------------------------------------------------------------
 * 5. 카드 — 인증 화면 본체
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .auth-wrap {
  margin: 26px 0 0;
  background: var(--cu-cream);
  border-radius: var(--cu-r-xl);
  padding: 26px 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 3px rgba(140, 120, 190, 0.07),
    0 16px 34px -10px rgba(120, 98, 180, 0.22);
}

body.pmrti-student-body.pmrti-theme-cute .auth-cols {
  gap: 14px;
}

/*
 * 2열 배치에 쓰던 세로 구분선(클래식 pmrti_student.css:343 의
 * .auth-col:first-child{border-right}) 을 걷어낸다. 이 테마는 카드가
 * 이미 한 덩어리라 줄이 필요 없고, 넓은 화면에선 세로로 쌓이므로 겉돈다.
 */
body.pmrti-student-body.pmrti-theme-cute .auth-cols:not(.auth-cols-single) .auth-col:first-child {
  padding-right: 0;
  border-right: 0;
}

body.pmrti-student-body.pmrti-theme-cute .auth-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--cu-ink);
  background: none;
}

body.pmrti-student-body.pmrti-theme-cute .auth-section-label::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cu-lav);
  flex: none;
}

body.pmrti-student-body.pmrti-theme-cute .auth-section-label::after {
  display: none;
}

body.pmrti-student-body.pmrti-theme-cute .auth-wrap .auth-hint-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cu-muted) !important;
}

/*
 * 받을 항목 이름(「학년·성별」 · 「대출증 ID·이름·학년·반·성별」).
 * 클래식은 굵게 두는데, 한 줄 안내에 굵은 덩어리가 있으면 그쪽만 읽히고
 * 정작 뒤의 「입력해 주세요」가 묻힌다. 색만 진하게 두고 굵기는 본문과 같게.
 * strong 태그는 그대로 둔다 — 화면 낭독기에는 항목 이름으로 짚어 줘야 한다.
 */
body.pmrti-student-body.pmrti-theme-cute .auth-hint-text strong {
  font-weight: 400;
  color: var(--cu-ink);
}

/* 상자 자체를 없앴으므로 클래식이 준 아래 마진 22px 도 함께 걷는다 */
body.pmrti-student-body.pmrti-theme-cute .auth-box {
  background: none;
  padding: 0;
  margin-bottom: 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

body.pmrti-student-body.pmrti-theme-cute .auth-box.border-primary {
  border-color: transparent !important;
}

body.pmrti-student-body.pmrti-theme-cute .auth-school-banner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--cu-line);
  background: var(--cu-tint);
  color: var(--cu-lav);
  font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * 6. 폼 컨트롤 — 둥근 모서리, 라벤더 포커스 링
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .form-label {
  font-family: inherit;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--cu-ink-2);
}

/* 라벨을 위에, 입력란을 그 아래에 — 번호 뱃지와 칸 구분선은 걷어낸다 */
body.pmrti-student-body.pmrti-theme-cute .auth-field-row {
  display: block;
  padding: 0;
  margin: 0 0 14px;
  border-bottom: 0;
  counter-increment: none;
}

/* 세로 배치에서는 칸 배경 강조가 라벨 뒤 회색 띠처럼 보인다 */
body.pmrti-student-body.pmrti-theme-cute .auth-field-row:focus-within {
  background: transparent;
}

body.pmrti-student-body.pmrti-theme-cute .auth-field-row::before {
  display: none;
}

body.pmrti-student-body.pmrti-theme-cute .auth-field-row .form-label {
  display: block;
  margin: 0 0 7px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cu-ink-2);
}

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

/* 클래식이 .auth-field-row .form-label .auth-req{display:none} 로 감춘다 */
body.pmrti-student-body.pmrti-theme-cute .auth-field-row .form-label .auth-req,
body.pmrti-student-body.pmrti-theme-cute .auth-req {
  display: inline;
  margin-left: 3px;
  color: var(--cu-orange-hi);
}

/* 학년과 반은 한 줄에 나란히 */
/*
 * 공통 CSS 가 인증 입력칸에 width:100% 를 건다(pmrti_v5.4.css:535).
 * 줄바꿈을 막고 입력칸이 줄어들 수 있게 해야 검색 버튼이 옆에 붙는다.
 * 좁은 화면의 .auth-field-row{flex-wrap:wrap} 도 여기서 무력해진다.
 */
/*
 * 입력칸에 붙는 버튼에 0 4px 0 그림자를 두면 아래로 4px 더 나와
 * 입력칸보다 큰 것처럼 보인다. 여기서는 번지는 그림자만 쓴다.
 */
body.pmrti-student-body.pmrti-theme-cute .input-group > .btn {
  min-height: var(--cu-tap);
  align-self: stretch;
  box-shadow: 0 6px 14px -7px rgba(106, 80, 170, 0.55);
}

body.pmrti-student-body.pmrti-theme-cute .input-group > .btn:active {
  transform: none;
  filter: brightness(0.94);
  box-shadow: 0 3px 8px -6px rgba(106, 80, 170, 0.55);
}

body.pmrti-student-body.pmrti-theme-cute .auth-school-controls.input-group {
  flex-wrap: nowrap;
}

body.pmrti-student-body.pmrti-theme-cute .auth-school-controls > .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

/*
 * 학년과 반은 좁은 화면에서도 한 줄에 둔다 (공통 CSS 는 세로로 쌓는다).
 * grid 로 열을 못박으면 반 입력이 없을 때(간편 모드) 또는 숨겨졌을 때
 * (교직원 선택) 빈 칸이 남는다. flex 는 display:none 자식을 세지 않으므로
 * 두 경우 모두 학년이 저절로 칸을 다 쓴다.
 */
body.pmrti-student-body.pmrti-theme-cute .auth-grade-class-inputs {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

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

body.pmrti-student-body.pmrti-theme-cute .auth-grade-class-inputs > .form-select {
  flex: 1.35 1 0;
}

body.pmrti-student-body.pmrti-theme-cute .form-control,
body.pmrti-student-body.pmrti-theme-cute .form-select {
  min-height: var(--cu-tap);
  padding: 0 15px;
  font-size: 16px;
  color: var(--cu-ink);
  background-color: var(--cu-field);
  border: 2px solid var(--cu-line);
  border-radius: var(--cu-r);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/*
 * 위 규칙의 padding 이 부트스트랩이 화살표용으로 잡아 둔 오른쪽 여백을
 * 지운다. 테마 색 화살표를 직접 그리고 그만큼 여백을 되돌려 준다.
 */
body.pmrti-student-body.pmrti-theme-cute .form-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' fill='none' stroke='%237a5fbf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}

body.pmrti-student-body.pmrti-theme-cute textarea.form-control {
  padding: 12px 15px;
}

body.pmrti-student-body.pmrti-theme-cute .form-control::placeholder {
  color: #9b94b6;
}

body.pmrti-student-body.pmrti-theme-cute .form-control:focus,
body.pmrti-student-body.pmrti-theme-cute .form-select:focus {
  border-color: var(--cu-ring);
  box-shadow: 0 0 0 4px rgba(139, 111, 212, 0.2);
}

body.pmrti-student-body.pmrti-theme-cute .auth-input-readonly {
  cursor: pointer;
}

/* input-group 안에서 둥근 모서리가 붙는 쪽만 펴진다 */
body.pmrti-student-body.pmrti-theme-cute .input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

body.pmrti-student-body.pmrti-theme-cute .input-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ---------------------------------------------------------------------------
 * 7. 버튼 — 아래쪽 단단한 그림자로 눌리는 두께를 만든다
 * --------------------------------------------------------------------------- */
/* 버튼 글씨는 모두 Jua. 확인·다음처럼 큰 버튼은 아래에서 크기만 키운다 */
body.pmrti-student-body.pmrti-theme-cute .btn {
  border: 0;
  border-radius: var(--cu-r);
  font-family: var(--cu-display);
  font-weight: 400;
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.12s;
}

body.pmrti-student-body.pmrti-theme-cute .btn:active {
  transform: none;
}

body.pmrti-student-body.pmrti-theme-cute .btn-primary,
body.pmrti-student-body.pmrti-theme-cute .btn-outline-secondary,
body.pmrti-student-body.pmrti-theme-cute .btn-secondary {
  min-height: var(--cu-tap);
  font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, var(--cu-lav-lo), var(--cu-lav));
  box-shadow: 0 8px 18px -9px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .btn-primary:hover,
body.pmrti-student-body.pmrti-theme-cute .btn-outline-secondary:hover,
body.pmrti-student-body.pmrti-theme-cute .btn-secondary:hover {
  color: #fff;
  background: linear-gradient(180deg, #8260d8, #7f66c5);
}

body.pmrti-student-body.pmrti-theme-cute .btn-primary:active,
body.pmrti-student-body.pmrti-theme-cute .btn-outline-secondary:active,
body.pmrti-student-body.pmrti-theme-cute .btn-secondary:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(106, 80, 170, 0.6);
}

/* 화면을 넘기는 주 버튼만 주황으로 두어 시선을 모은다 */
/*
 * 화면을 넘기는 주 버튼만 주황. 두께를 세우지 않고 번지는 그림자만 쓴다.
 * 클래식은 max-width 420px 로 가운데 세우지만(pmrti_student.css:321),
 * 이 테마는 입력칸과 같은 폭으로 맞춘다.
 */
body.pmrti-student-body.pmrti-theme-cute .auth-wrap > .btn-primary,
body.pmrti-student-body.pmrti-theme-cute .intro-card .btn-primary,
body.pmrti-student-body.pmrti-theme-cute .nav .btn-primary {
  max-width: none;
  min-height: 60px;
  font-size: 19px;
  border-radius: var(--cu-r-lg);
  background: linear-gradient(180deg, var(--cu-orange), var(--cu-orange-lo));
  box-shadow: 0 10px 22px -12px rgba(201, 108, 75, 0.85);
}

body.pmrti-student-body.pmrti-theme-cute .auth-wrap > .btn-primary:hover,
body.pmrti-student-body.pmrti-theme-cute .intro-card .btn-primary:hover,
body.pmrti-student-body.pmrti-theme-cute .nav .btn-primary:hover {
  /* 올림 상태도 4.5:1 을 지킨다 — 점검 도구는 :hover 를 보지 않지만 기준은 같다 */
  background: linear-gradient(180deg, #c94f16, #c94e20);
}

body.pmrti-student-body.pmrti-theme-cute .auth-wrap > .btn-primary:active,
body.pmrti-student-body.pmrti-theme-cute .intro-card .btn-primary:active,
body.pmrti-student-body.pmrti-theme-cute .nav .btn-primary:active {
  filter: brightness(0.94);
  box-shadow: 0 5px 12px -10px rgba(201, 108, 75, 0.85);
}

/* 나란히 놓이므로 높이와 글씨를 맞춘다 (.nav .btn-primary 와 특이도가 같아 뒤에 둔다) */
body.pmrti-student-body.pmrti-theme-cute .nav > .btn.btn-lg {
  min-height: 58px;
  font-size: 18px;
}

/*
 * 이전 · 안내 화면으로 — 라벤더로 채운다.
 * 전에는 흰 바탕 + 외곽선으로 연하게 뒀는데, 알림창의 「계속하기」와 어휘가 갈렸다.
 * 라벤더 채움 vs 주황 채움으로 두 버튼의 무게를 구분한다 (색이 역할을 말한다).
 */
body.pmrti-student-body.pmrti-theme-cute .nav .btn-secondary {
  min-height: 54px;
  font-size: 15px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, var(--cu-lav-lo), var(--cu-lav));
  box-shadow: 0 8px 18px -9px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .nav .btn-secondary:hover {
  color: #fff;
  background: linear-gradient(180deg, #8260d8, #7f66c5);
}

body.pmrti-student-body.pmrti-theme-cute .nav .btn-secondary:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(106, 80, 170, 0.6);
}

/* ---------------------------------------------------------------------------
 * 8. 개인정보 수집 동의
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .auth-privacy-block {
  padding: 18px 16px;
  border-radius: var(--cu-r-lg);
  background: var(--cu-tint);
  border: 1px solid var(--cu-line);
}

/* 클래식은 min-height 220px · max-height none 이라 내용만큼 늘어난다.
   여기서는 높이를 묶고 넘치면 스크롤한다 */
body.pmrti-student-body.pmrti-theme-cute .auth-privacy-scroll {
  min-height: 0;
  max-height: 195px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--cu-ink-2);
}

body.pmrti-student-body.pmrti-theme-cute .auth-privacy-scroll::-webkit-scrollbar {
  width: 6px;
}

body.pmrti-student-body.pmrti-theme-cute .auth-privacy-scroll::-webkit-scrollbar-thumb {
  background: #cfc6ea;
  border-radius: 99px;
}

body.pmrti-student-body.pmrti-theme-cute .auth-privacy-scroll strong {
  color: var(--cu-lav);
  font-weight: 700;
}

body.pmrti-student-body.pmrti-theme-cute .auth-privacy-scroll p {
  color: var(--cu-muted);
}

body.pmrti-student-body.pmrti-theme-cute .form-check-input {
  width: 27px;
  height: 27px;
  margin-top: 0;
  border: 2px solid #d7cef0;
  border-radius: 9px;
  background-color: #fff;
  transition: 0.13s;
}

body.pmrti-student-body.pmrti-theme-cute .form-check-input:checked {
  background-color: var(--cu-lav);
  border-color: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(139, 111, 212, 0.2);
}

/* 클래식의 회색 종이색(--pv-paper) 이 남아 겉돈다. 위 안내 상자와 맞춘다 */
body.pmrti-student-body.pmrti-theme-cute .auth-consent-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--cu-tap);
  margin: 14px 0 0;
  padding: 10px 16px;
  background: var(--cu-tint);
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r-lg);
  cursor: pointer;
}

body.pmrti-student-body.pmrti-theme-cute .form-check-label {
  font-size: 14px;
  color: var(--cu-ink);
}

/* ---------------------------------------------------------------------------
 * 7-1. 안내 화면 — 가로 머리글 + 카드
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .cute-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 10px 0 20px;
}

body.pmrti-student-body.pmrti-theme-cute .cute-head .ch-title {
  font-size: clamp(24px, 4.6vw, 38px);
  -webkit-text-stroke: 8px #fff;
}

body.pmrti-student-body.pmrti-theme-cute .cute-head .ch-cast {
  grid-template-columns: repeat(4, 58px);
  margin: 0;
  gap: 10px;
}

body.pmrti-student-body.pmrti-theme-cute .cute-head .ch-cast figure {
  width: 58px;
  height: 58px;
  border-width: 4px;
}

/* 문항 화면에서는 머리글이 시선을 뺏지 않게 조금 낮춘다 (머리글이 앞이므로 :has) */
body.pmrti-student-body.pmrti-theme-cute .cute-head:has(~ .exam-wrap) {
  padding-bottom: 14px;
}

/*
 * 좁아지면 제목과 얼굴을 세로로 쌓고 가운데로 모은다.
 * flex-wrap 에만 맡기면 줄바꿈 뒤 space-between 이 왼쪽으로 붙여 버린다.
 */
@media (max-width: 760px) {
  body.pmrti-student-body.pmrti-theme-cute .cute-head {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 8px 0 18px;
  }
}

body.pmrti-student-body.pmrti-theme-cute .intro-card {
  padding: 28px 26px 24px;
}

body.pmrti-student-body.pmrti-theme-cute .intro-figure {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--cu-line);
}

/* 클래식은 0.74rem 캡션이라 이 톤에서는 너무 작다 */
/* 「총 문항 수」·「소요 시간」·「검사 영역 안내」 — 같은 결의 안내 라벨 */
body.pmrti-student-body.pmrti-theme-cute .intro-figure-label,
body.pmrti-student-body.pmrti-theme-cute .intro-meta-label,
body.pmrti-student-body.pmrti-theme-cute .intro-scope-title {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--cu-muted);
}

/* 클래식은 이 제목에 회색 밑줄과 아래 패딩을 준다. 「총 문항 수」에는 없으므로 걷는다 */
body.pmrti-student-body.pmrti-theme-cute .intro-scope-title {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

body.pmrti-student-body.pmrti-theme-cute .intro-figure-num {
  font-family: var(--cu-display);
  color: var(--cu-lav);
}

/* 클래식이 이 줄 아래에 34px 을 준다 — 안내문 상자가 바로 붙게 걷는다 */
body.pmrti-student-body.pmrti-theme-cute .intro-meta {
  margin-bottom: 0;
}

body.pmrti-student-body.pmrti-theme-cute .intro-meta-item {
  border-bottom: 1px solid var(--cu-line);
}

body.pmrti-student-body.pmrti-theme-cute .intro-meta-val {
  font-weight: 400;
  font-family: var(--cu-display);
  font-size: 1.18rem;
  color: var(--cu-ink);
}

/*
 * 안내문 상자 — 1~4 선택지 버튼과 같은 규격.
 * 테두리 2px --cu-line, 반경 --cu-r, 배경 --cu-field, 같은 번짐 그림자.
 * 반경이 균일해졌으므로 drop-shadow 대신 box-shadow 로 되돌린다.
 */
body.pmrti-student-body.pmrti-theme-cute .intro-notice {
  position: relative;
  /* 클래식은 아래 마진 30px 을 준다 — 위아래를 같게 맞춘다 */
  margin: 20px 0;
  padding: 17px 24px 15px;
  background: var(--cu-field);
  border: 2px solid var(--cu-line);
  border-radius: var(--cu-r);
  box-shadow: 0 6px 14px -10px rgba(106, 80, 170, 0.5);
  filter: none;
}


/*
 * 검사 안내문 4줄 — 손글씨(오뮤 다예체).
 * 손글씨체는 프리텐다드보다 작게 보여 크기를 올려 둔다.
 * 서체를 바꾸면 이 값도 다시 잡아야 한다 — 글자 덩치가 서체마다 다르다.
 */
body.pmrti-student-body.pmrti-theme-cute .intro-notice p {
  position: relative;
  padding-left: 1.15em; /* 동그라미 자리. 줄이 넘칠 때 글자 아래로 들여쓰기가 맞는다 */
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.66;
  letter-spacing: 0.005em;
  margin-bottom: 8px;
  color: var(--cu-ink-2);
}

/*
 * 줄머리 동그라미. ● 같은 글자를 쓰지 않고 CSS 로 그린다 —
 * 손글씨 서체에 그 글리프가 없으면 대체 글꼴로 떨어져 모양이 튄다.
 * top 은 첫 줄 글자의 가운데(줄상자 1.66em 의 절반쯤)에서 반지름을 뺀 값이다.
 */
body.pmrti-student-body.pmrti-theme-cute .intro-notice p::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: calc(0.83em - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cu-lav-lo);
}

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

body.pmrti-student-body.pmrti-theme-cute .intro-scope-row {
  border-bottom: 1px solid var(--cu-line);
}

/* 글씨를 키운 만큼 고정 열도 넓힌다. 클래식(4/5.6/3.4rem) 이면 「15문항」이 잘린다 */
body.pmrti-student-body.pmrti-theme-cute .intro-scope-row {
  grid-template-columns: 4.4rem 6.2rem 4.4rem minmax(0, 1fr);
}

/* 클래식은 0.78rem 캡션이라 이 톤에서는 작다 */
body.pmrti-student-body.pmrti-theme-cute .intro-scope-no {
  font-size: 0.95rem;
  color: var(--cu-muted);
}

/* 문항 화면의 영역 제목(.sec-title)과 같은 이름이 나오는 자리라 서체를 맞춘다 */
body.pmrti-student-body.pmrti-theme-cute .intro-scope-name {
  font-family: var(--cu-display);
  font-weight: 400;
  font-size: 1.16rem;
  color: var(--cu-ink);
}

body.pmrti-student-body.pmrti-theme-cute .intro-scope-count {
  font-size: 0.98rem;
  color: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .intro-scope-desc {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cu-muted);
}

/*
 * 「처음으로」 왼쪽, 「검사 시작하기」 오른쪽. 마크업 순서는 시작하기가 먼저라
 * order 로 자리를 바꾼다 (클래식은 세로로 쌓인 그대로 둔다).
 */
body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid > .btn-outline-secondary {
  order: 1;
}

body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid > .btn-primary {
  order: 2;
}

/* 나란히 두었으니 높이와 글씨 크기를 맞춘다 */
body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid > .btn {
  min-height: 58px;
  font-size: 18px;
}

/* 좁은 화면에서는 세로로 쌓고, 주 버튼을 위로 올린다 */
@media (max-width: 560px) {
  body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid {
    grid-template-columns: 1fr;
  }

  body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid > .btn-primary {
    order: 1;
  }

  body.pmrti-student-body.pmrti-theme-cute .intro-card .d-grid > .btn-outline-secondary {
    order: 2;
  }
}

/* 「처음으로」는 되돌아가는 길이라 연하게 */
/* 처음으로 — 라벤더 채움. 「이전」·「계속하기」와 같은 어휘 */
body.pmrti-student-body.pmrti-theme-cute .intro-card .btn-outline-secondary {
  min-height: 52px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, var(--cu-lav-lo), var(--cu-lav));
  box-shadow: 0 8px 18px -9px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .intro-card .btn-outline-secondary:hover {
  color: #fff;
  background: linear-gradient(180deg, #8260d8, #7f66c5);
}

body.pmrti-student-body.pmrti-theme-cute .intro-card .btn-outline-secondary:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .intro-autosave {
  color: var(--cu-muted);
}

/* ---------------------------------------------------------------------------
 * 8-1. 학교 검색 모달
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .modal-content {
  background: var(--cu-cream);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--cu-r-xl);
  box-shadow: 0 2px 3px rgba(140, 120, 190, 0.07),
    0 24px 48px -16px rgba(120, 98, 180, 0.35);
}

body.pmrti-student-body.pmrti-theme-cute .modal-header {
  border-bottom: 1px solid var(--cu-line);
  padding: 18px 22px 15px;
}

body.pmrti-student-body.pmrti-theme-cute .modal-title {
  font-family: var(--cu-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--cu-ink);
}

/* 입력칸과 검색 버튼을 한 덩어리로 붙인다 (공통 CSS 는 8px 띄운다) */
body.pmrti-student-body.pmrti-theme-cute .school-search-bar {
  gap: 0;
  align-items: stretch;
}

body.pmrti-student-body.pmrti-theme-cute .school-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--cu-tap);
  padding: 0 15px;
  font-size: 16px;
  color: var(--cu-ink);
  background: var(--cu-field);
  border: 2px solid var(--cu-line);
  border-radius: var(--cu-r) 0 0 var(--cu-r);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.pmrti-student-body.pmrti-theme-cute .school-search-input:focus {
  border-color: var(--cu-ring);
  box-shadow: 0 0 0 4px rgba(139, 111, 212, 0.2);
  outline: none;
}

body.pmrti-student-body.pmrti-theme-cute .school-search-bar .btn {
  min-height: var(--cu-tap);
  border-radius: 0 var(--cu-r) var(--cu-r) 0;
  box-shadow: 0 6px 14px -7px rgba(106, 80, 170, 0.55);
}

body.pmrti-student-body.pmrti-theme-cute .school-search-bar .btn:active {
  transform: none;
  filter: brightness(0.94);
}

body.pmrti-student-body.pmrti-theme-cute .school-search-hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cu-muted);
}

body.pmrti-student-body.pmrti-theme-cute .school-search-results {
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r-lg);
  background: var(--cu-tint);
  padding: 8px;
}

body.pmrti-student-body.pmrti-theme-cute .school-search-item {
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r);
  background: #fff;
  color: var(--cu-ink);
  font-size: 13.5px;
}

body.pmrti-student-body.pmrti-theme-cute .school-search-item:hover {
  background: #fff;
  border-color: #cfc2ee;
  box-shadow: 0 6px 14px -8px rgba(106, 80, 170, 0.45);
}

body.pmrti-student-body.pmrti-theme-cute .school-search-item:hover::before {
  background: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .school-search-item .school-name-main {
  color: var(--cu-ink);
}

body.pmrti-student-body.pmrti-theme-cute .school-search-item .school-addr-inline,
body.pmrti-student-body.pmrti-theme-cute .school-search-item .school-addr-empty,
body.pmrti-student-body.pmrti-theme-cute .school-search-empty {
  color: var(--cu-muted);
}

/* ---------------------------------------------------------------------------
 * 8-2. 결과 화면
 * --------------------------------------------------------------------------- */
/*
 * 클래식은 카드들을 테두리 하나로 묶고 gap:0 으로 붙여 목록처럼 보여 준다.
 * 이 테마는 낱장 카드가 어울리므로 바깥 테두리를 걷고 사이를 벌린다.
 * 간격을 주지 않으면 카드마다 생긴 테두리가 서로 붙어 겹쳐 보인다.
 */
body.pmrti-student-body.pmrti-theme-cute .result-top-row {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  border: 0;
  background: none;
  overflow: visible;
  /*
   * 늘이지 않는다. 옆 카드는 가이드까지 담아 포스터보다 훨씬 길어지는데,
   * 거기 맞춰 이미지를 채우면 1.7배까지 확대되며 좌우가 잘린다.
   * 카드가 이미지 크기에 딱 맞고, 옆 카드는 제 높이대로 둔다.
   */
  align-items: start;
  margin-bottom: 22px;
}

body.pmrti-student-body.pmrti-theme-cute .r-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* 독서 관리도 다른 넷과 같은 반 칸으로 (클래식은 한 줄 전체) */
body.pmrti-student-body.pmrti-theme-cute .r-card.full {
  grid-column: auto;
}

/*
 * 두 줄로 담는다. 뱃지와 결과를 한 줄에 좌우로 놓고, 설명은 그 아래.
 * 셋을 각각 한 줄씩 쓰면 카드가 세 줄이 되어 위아래 여백만 늘어난다.
 */
body.pmrti-student-body.pmrti-theme-cute
  .r-card:not(.result-combo-card):not(.r-card-ai),
body.pmrti-student-body.pmrti-theme-cute .stu-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  border-top: 0;
  padding: 15px 20px 17px;
}

/*
 * 종합 유형 카드는 마크업이 <div class="r-card result-combo-card"> 라
 * 위 격자에 함께 걸린다. 안에는 「종합 유형」 묶음과 「맞춤 가이드」 묶음이
 * 세로로 들어가야 하는데 격자가 둘을 좌우 칸으로 갈라 놓는다. 빼 둔다.
 */
body.pmrti-student-body.pmrti-theme-cute .result-combo-card {
  display: block;
  border-top: 0;
  padding: 24px 22px 22px;
}

/* ---------------------------------------------------------------------------
 * AI 독서 지도
 *   버튼 칸은 격자의 마지막 빈 자리를 채운다 (독서 관리 옆)
 *   결과 판은 격자 아래 전체 폭
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .r-card.r-card-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* 다른 칸과 같은 세로 여백 + 좌우로 버튼이 테두리에 붙지 않을 만큼 */
  padding: 18px 22px 18px;
  border-top: 0;
  border-style: dashed;
  background: var(--cu-tint);
  text-align: center;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-btn {
  min-height: 46px;
  width: 100%;
  font-size: 15px;
  white-space: nowrap;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-btn-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cu-muted);
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-panel {
  margin-top: 14px;
  padding: 20px 22px 18px;
  border-radius: var(--cu-r-xl);
  border: 1px solid var(--cu-line);
  background: var(--cu-tint);
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cu-line);
  color: var(--cu-lav);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-label::before {
  content: '\f0eb'; /* lightbulb */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.95em;
  line-height: 1;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-status {
  font-size: 12.5px;
  color: var(--cu-muted);
}

/*
 * 본문은 pmrtiAiGuideHtml() 이 소제목(.ai-h)·항목(.ai-li)·단락(.ai-p) 으로
 * 갈라 놓는다. pre-wrap 은 쓰지 않는다 — 줄바꿈이 이중으로 들어간다.
 */
body.pmrti-student-body.pmrti-theme-cute .result-ai-content {
  margin: 12px 0 0;
  padding: 16px 18px;
  border-radius: var(--cu-r-lg);
  background: #fff;
  border: 1px solid var(--cu-line);
  font-size: 14px;
  line-height: 1.85;
  color: var(--cu-ink-2);
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-content .ai-h {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--cu-lav);
  margin: 18px 0 8px;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-content .ai-h:first-child {
  margin-top: 0;
}

/* 점 기호는 ::before 로 두어 두 줄로 넘어갈 때 글이 점 아래로 흐르지 않는다 */
body.pmrti-student-body.pmrti-theme-cute .result-ai-content .ai-li {
  position: relative;
  padding-left: 15px;
  margin: 0 0 5px;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-content .ai-li::before {
  content: '·';
  position: absolute;
  left: 3px;
  color: var(--cu-lav);
  font-weight: 700;
}

body.pmrti-student-body.pmrti-theme-cute .result-ai-content .ai-p {
  margin: 0 0 8px;
}

/* 생성 중에는 끝에 깜빡이는 막대를 붙여 아직 쓰고 있음을 알린다 */
body.pmrti-student-body.pmrti-theme-cute .result-ai-content.streaming::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--cu-lav);
  animation: cu-caret 900ms steps(2, start) infinite;
}

@keyframes cu-caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}



body.pmrti-student-body.pmrti-theme-cute .rc-label,
body.pmrti-student-body.pmrti-theme-cute .stu-card-label {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

body.pmrti-student-body.pmrti-theme-cute .rc-type,
body.pmrti-student-body.pmrti-theme-cute .stu-card-val {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  font-size: 1.18rem;
  margin-bottom: 0;
}

body.pmrti-student-body.pmrti-theme-cute .rc-desc,
body.pmrti-student-body.pmrti-theme-cute .stu-card-desc {
  grid-column: 1 / -1;
  grid-row: 2;
}

body.pmrti-student-body.pmrti-theme-cute .r-card,
body.pmrti-student-body.pmrti-theme-cute .result-combo-card,
body.pmrti-student-body.pmrti-theme-cute .stu-card {
  background: var(--cu-cream);
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r-xl);
  box-shadow: 0 2px 3px rgba(140, 120, 190, 0.07),
    0 16px 34px -12px rgba(120, 98, 180, 0.2);
}

/*
 * 작은 제목들을 「추천 도서 장르」 태그와 같은 알약 뱃지로 통일한다.
 * 전부 같은 회색 캡션이면 무엇이 무엇인지 구분되지 않아 아이콘을 함께 붙인다.
 * 아이콘은 Font Awesome 6 Free Solid (900) 글리프를 ::before 로 넣는다.
 */
body.pmrti-student-body.pmrti-theme-cute .rc-label,
body.pmrti-student-body.pmrti-theme-cute .stu-card-label,
body.pmrti-student-body.pmrti-theme-cute .result-combo-label,
body.pmrti-student-body.pmrti-theme-cute .result-combo-guide-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--cu-tint);
  border: 1px solid var(--cu-line);
  color: var(--cu-lav);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 10px;
  height: auto;
  /*
   * line-height 를 반드시 못 박는다. 안 두면 .stu-card-label 만
   * 공용 CSS 의 1.1 을 받고 나머지는 본문 줄간(1.6)을 물려받아,
   * 학기 중·방학 중 알약만 다른 다섯 개보다 낮고 글자 위치도 어긋난다.
   */
  line-height: 1;
  padding: 7px 13px;
}

body.pmrti-student-body.pmrti-theme-cute .rc-label::before,
body.pmrti-student-body.pmrti-theme-cute .stu-card-label::before,
body.pmrti-student-body.pmrti-theme-cute .result-combo-label::before,
body.pmrti-student-body.pmrti-theme-cute .result-combo-guide-heading::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.95em;
  line-height: 1;
  flex: none;
  /* FA 글리프는 기준선 아래로 조금 처져 글자보다 낮게 보인다 */
  transform: translateY(-0.06em);
}

/* 종합 유형 · 가이드 */
body.pmrti-student-body.pmrti-theme-cute .result-combo-label::before {
  content: '\f005'; /* star */
}

body.pmrti-student-body.pmrti-theme-cute .result-combo-guide-heading::before {
  content: '\f0eb'; /* lightbulb */
}

/*
 * 아이콘은 클래스로 붙인다. 예전에는 nth-child 로 순서에 기댔는데
 * 칸 배치를 바꾸면 아이콘이 밀려 엉뚱한 항목에 붙는다.
 */
body.pmrti-student-body.pmrti-theme-cute .rc-ico-book::before {
  content: '\f518'; /* book-open */
}

body.pmrti-student-body.pmrti-theme-cute .rc-ico-heart::before {
  content: '\f004'; /* heart */
}

body.pmrti-student-body.pmrti-theme-cute .rc-ico-gauge::before {
  content: '\f625'; /* gauge-high */
}

body.pmrti-student-body.pmrti-theme-cute .rc-ico-search::before {
  content: '\f002'; /* magnifying-glass */
}

body.pmrti-student-body.pmrti-theme-cute .rc-ico-clip::before {
  content: '\f46c'; /* clipboard-check */
}

body.pmrti-student-body.pmrti-theme-cute .rc-ico-cap::before {
  content: '\f19d'; /* graduation-cap */
}

body.pmrti-student-body.pmrti-theme-cute .rc-ico-sun::before {
  content: '\f185'; /* sun */
}

body.pmrti-student-body.pmrti-theme-cute .rc-type,
body.pmrti-student-body.pmrti-theme-cute .result-combo-value,
body.pmrti-student-body.pmrti-theme-cute .stu-card-val {
  font-family: var(--cu-display);
  font-weight: 400;
  color: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .rc-desc,
body.pmrti-student-body.pmrti-theme-cute .stu-card-desc,
body.pmrti-student-body.pmrti-theme-cute .result-combo-desc {
  color: var(--cu-ink-2);
}

/* 유형 카드 그림 — 새 그림(assets_new/card)은 520×932 세로 포스터다 */
body.pmrti-student-body.pmrti-theme-cute .result-character-card {
  display: block;
  /* 공통 CSS 가 min-height 320px 를 걸어 둔다(pmrti_v5.4.css:1183).
     이미지보다 크면 아래가 비므로 푼다 */
  min-height: 0;
  background: var(--cu-tint);
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r-xl);
  overflow: hidden;
  padding: 0;
}

/* 원래 비율 그대로. 카드가 이미지에 맞으므로 빈칸도 잘림도 없다 */
body.pmrti-student-body.pmrti-theme-cute .result-character-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  border: 0;
}

body.pmrti-student-body.pmrti-theme-cute .guide-label {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cu-muted);
}

body.pmrti-student-body.pmrti-theme-cute .guide-tag {
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--cu-tint) !important;
  color: var(--cu-lav) !important;
  border: 1px solid var(--cu-line);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
}

body.pmrti-student-body.pmrti-theme-cute .guide-item {
  color: var(--cu-ink-2);
}

/* 클래식이 border:0 !important 로 지워 두므로 같은 강도로 되돌린다 */
body.pmrti-student-body.pmrti-theme-cute .stu-card {
  border: 1px solid var(--cu-line) !important;
  padding: 18px 20px 20px;
}

/* 다시 검사 · 인쇄 버튼 */
body.pmrti-student-body.pmrti-theme-cute .student-result-nav > .btn {
  min-height: 58px;
  font-size: 18px;
  border-radius: var(--cu-r-lg);
}

body.pmrti-student-body.pmrti-theme-cute .btn-print-result,
body.pmrti-student-body.pmrti-theme-cute .btn-success {
  color: #fff;
  background: linear-gradient(180deg, #3f8260, #478165);
  box-shadow: 0 8px 18px -9px rgba(60, 130, 100, 0.65);
}

body.pmrti-student-body.pmrti-theme-cute .btn-print-result:hover,
body.pmrti-student-body.pmrti-theme-cute .btn-success:hover {
  color: #fff;
  background: linear-gradient(180deg, #3c835e, #488165);
}

/* 가이드 모달 — 학교 검색 모달과 같은 결 */
body.pmrti-student-body.pmrti-theme-cute .reason-guide-img {
  border-radius: var(--cu-r-lg);
  border: 1px solid var(--cu-line);
}

body.pmrti-student-body.pmrti-theme-cute .guide-modal-desc {
  color: var(--cu-ink-2);
}

/*
 * 좁은 화면 — 한 줄씩 쌓는다.
 * 미디어쿼리는 특이도를 더하지 않으므로 반드시 기본 규칙보다 뒤에 두어야 한다.
 */
@media (max-width: 700px) {
  body.pmrti-student-body.pmrti-theme-cute .result-top-row {
    grid-template-columns: 1fr;
  }

  body.pmrti-student-body.pmrti-theme-cute .result-character-card {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  body.pmrti-student-body.pmrti-theme-cute .r-grid {
    grid-template-columns: 1fr;
  }

  /*
   * 한 칸으로 쌓이면 DOM 순서가 그대로 보인다. AI 블록은 카드 여덟 개 중
   * 일곱째라, 두 칸일 때는 「방학 중 독서량」과 나란히 놓여 균형이 맞지만
   * 한 칸에서는 끝에서 두 번째가 되어 두 독서량 카드 사이에 끼어 버린다.
   * 여기서만 맨 뒤로 보낸다 — 여덟 카드를 다 본 뒤 누르는 자리가 맞다.
   */
  body.pmrti-student-body.pmrti-theme-cute .r-grid > .r-card-ai {
    order: 1;
  }
}

/* ---------------------------------------------------------------------------
 * 9. 나머지 화면 — 첫 화면과 같은 톤만 맞춘다 (구조는 클래식 그대로)
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .pmrti-title-display {
  font-family: var(--cu-display);
  color: var(--cu-lav);
  text-shadow: none;
  -webkit-text-stroke: 7px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 6px rgba(122, 95, 191, 0.17));
}

body.pmrti-student-body.pmrti-theme-cute .card,
body.pmrti-student-body.pmrti-theme-cute .q-card,
body.pmrti-student-body.pmrti-theme-cute .participant-info-panel,
body.pmrti-student-body.pmrti-theme-cute .intro-card {
  background: var(--cu-cream);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--cu-r-xl);
  box-shadow: 0 2px 3px rgba(140, 120, 190, 0.07),
    0 16px 34px -10px rgba(120, 98, 180, 0.22);
}

/*
 * 「모든 문항에 응답해주세요」 뒤에 데려온 문항.
 * 스크롤만 하면 어느 칸 때문에 옮겨졌는지 모른다. 테두리를 잠깐 두른다.
 *
 * outline 을 쓰는 이유 — 카드가 자기 box-shadow 를 쓰므로 그것을 건드리지 않는다.
 * 다만 offset 은 안쪽(음수)이어야 한다. 문항 목록을 감싸는 .exam-main 이
 * overflow-x: clip 이라 카드 밖으로 나간 테두리는 좌우가 잘려 나간다.
 */
body.pmrti-student-body.pmrti-theme-cute .q-card.q-card-seek {
  outline: 2px solid var(--cu-rose);
  outline-offset: -3px;
  animation: cu-seek-fade 1.4s ease-out forwards;
}

@keyframes cu-seek-fade {
  0%,
  55% {
    outline-color: var(--cu-rose);
  }
  100% {
    outline-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pmrti-student-body.pmrti-theme-cute .q-card.q-card-seek {
    animation: none;
  }
}

/* 검사자 정보 제목도 영역 제목과 같은 크기·색으로 (클래식은 0.74rem 회색 캡션) */
body.pmrti-student-body.pmrti-theme-cute .pip-title {
  font-family: var(--cu-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cu-lav);
  border-bottom: 1px solid var(--cu-line);
}

body.pmrti-student-body.pmrti-theme-cute .sec-title,
body.pmrti-student-body.pmrti-theme-cute .q-num {
  font-family: var(--cu-display);
  font-weight: 400;
  color: var(--cu-lav);
}

/*
 * 클래식은 flex + justify-content:center 라 숫자와 라벨이 한 묶음으로
 * 가운데 정렬된다. 라벨이 두 줄이면 묶음이 커져 숫자가 위로 밀린다.
 * 격자로 두 칸을 나눠 숫자는 윗칸 고정, 라벨은 남은 칸 안에서 가운데 둔다.
 */
body.pmrti-student-body.pmrti-theme-cute .lk-btn,
body.pmrti-student-body.pmrti-theme-cute .qty-btn {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: center;
  /* 두 줄짜리 라벨이 들어가는 자연 높이에 맞춘다 (클래식은 138px) */
  min-height: 112px;
  padding: 14px 10px 16px;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 700;
  border: 2px solid var(--cu-line);
  border-radius: var(--cu-r);
  background: var(--cu-field);
  color: var(--cu-ink-2);
  box-shadow: 0 6px 14px -10px rgba(106, 80, 170, 0.5);
}

body.pmrti-student-body.pmrti-theme-cute .lk-num-icon {
  grid-row: 1;
}

body.pmrti-student-body.pmrti-theme-cute .lk-label {
  grid-row: 2;
  align-self: center;
  font-family: var(--font-ui);
  font-weight: 700;
}

body.pmrti-student-body.pmrti-theme-cute .lk-btn:hover,
body.pmrti-student-body.pmrti-theme-cute .qty-btn:hover {
  border-color: #d3c7f0;
  background: #fff;
}

body.pmrti-student-body.pmrti-theme-cute .lk-btn.sel,
body.pmrti-student-body.pmrti-theme-cute .qty-btn.sel {
  color: #fff;
  border-color: var(--cu-lav);
  background: linear-gradient(180deg, var(--cu-lav-lo), var(--cu-lav));
  box-shadow: 0 8px 18px -9px rgba(106, 80, 170, 0.5);
}

body.pmrti-student-body.pmrti-theme-cute .lk-btn:active,
body.pmrti-student-body.pmrti-theme-cute .qty-btn:active {
  filter: brightness(0.97);
  box-shadow: 0 3px 8px -8px rgba(106, 80, 170, 0.5);
}

/*
 * 막대 위 머리줄 — 이름과 값이 한 줄이라 서체를 갈라 놓지 않는다.
 * 아래 「자동저장」 줄도 같이 묶는다. 문항 하나씩 보는 모드(.prog-meta)와
 * 안내 화면(.intro-autosave)에 같은 글자가 또 나오므로 셋을 함께 맞춘다.
 */
body.pmrti-student-body.pmrti-theme-cute .prog-dual-head,
body.pmrti-student-body.pmrti-theme-cute .prog-label,
body.pmrti-student-body.pmrti-theme-cute .prog-meta,
body.pmrti-student-body.pmrti-theme-cute .intro-autosave {
  font-family: var(--font-ui);
}

body.pmrti-student-body.pmrti-theme-cute .progress.prog-bar {
  background: #ece6fa;
  border-radius: 999px;
}

body.pmrti-student-body.pmrti-theme-cute .progress.prog-bar > .progress-bar.prog-fill {
  background-color: var(--cu-lav) !important;
}

body.pmrti-student-body.pmrti-theme-cute
  .progress.prog-bar
  > .progress-bar.pmrti-prog-bar-fill {
  background-color: #bfa9ec !important;
}

body.pmrti-student-body.pmrti-theme-cute .section-enter-banner {
  border-radius: var(--cu-r-lg);
  border: 1px solid var(--cu-line);
  background: var(--cu-tint);
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--cu-ink-2);
}

body.pmrti-student-body.pmrti-theme-cute .pmrti-foot .header-badge {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* 문항 아래 안내 한 줄 — 진행 표시·배너와 같은 서체로 둔다 */
body.pmrti-student-body.pmrti-theme-cute .single-next-auto-hint {
  font-family: var(--font-ui);
}

/*
 * 아직 안 채운 문항이 있을 때 뜨는 알림 — 눌러서 닫지 않고 스스로 사라진다.
 * 사라지면서 그 문항으로 화면이 올라간다 (pmrtiWarnUnanswered).
 *
 * .cu-dlg 와 같은 얼굴이지만 더 작고 버튼이 없다. 테두리·아이콘을 로즈로 두는
 * 이유 — 뒤이어 문항 카드에 두르는 테두리(.q-card-seek)와 같은 색이라
 * 알림과 그 다음 움직임이 한 동작으로 읽힌다.
 *
 * pointer-events 를 끈다. 스스로 사라지는 동안 뒤 화면을 못 누르면
 * 답을 고르려던 손이 막힌다.
 */
body.pmrti-student-body.pmrti-theme-cute .cu-flash-back {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74, 58, 112, 0.22);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.pmrti-student-body.pmrti-theme-cute .cu-flash-back.on {
  opacity: 1;
}

body.pmrti-student-body.pmrti-theme-cute .cu-flash {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 380px;
  padding: 18px 26px 18px 22px;
  border-radius: var(--cu-r-xl);
  background: #fff;
  border: 3px solid var(--cu-rose-line);
  box-shadow: 0 22px 44px -24px rgba(90, 70, 150, 0.38);
  transform: translateY(8px);
  transition: transform 0.22s ease;
}

body.pmrti-student-body.pmrti-theme-cute .cu-flash-back.on .cu-flash {
  transform: translateY(0);
}

body.pmrti-student-body.pmrti-theme-cute .cu-flash-ico {
  flex: none;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--cu-rose);
}

body.pmrti-student-body.pmrti-theme-cute .cu-flash-ico::before {
  content: '\f06a'; /* circle-exclamation */
}

body.pmrti-student-body.pmrti-theme-cute .cu-flash-text {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--cu-ink-2);
}

@media (prefers-reduced-motion: reduce) {
  body.pmrti-student-body.pmrti-theme-cute .cu-flash-back,
  body.pmrti-student-body.pmrti-theme-cute .cu-flash {
    transition: none;
  }

  body.pmrti-student-body.pmrti-theme-cute .cu-flash {
    transform: none;
  }
}

body.pmrti-student-body.pmrti-theme-cute .pmrti-foot {
  justify-content: center;
  gap: 4px 14px;
  border-top: 0;
  color: var(--cu-faint);
  text-align: center;
}

/* ---------------------------------------------------------------------------
 * 10. 넓은 화면 — 히어로를 왼쪽에 두고 카드를 옆에 세운다
 * --------------------------------------------------------------------------- */
@media (min-width: 980px) {
  body.pmrti-student-body.pmrti-theme-cute .cute-hero {
    text-align: left;
    padding: 24px 0 0;
  }

  body.pmrti-student-body.pmrti-theme-cute .ch-badge {
    margin: 0 0 20px;
  }

  body.pmrti-student-body.pmrti-theme-cute .ch-title {
    -webkit-text-stroke: 12px #fff;
  }

  body.pmrti-student-body.pmrti-theme-cute .ch-sub {
    font-size: 12.5px;
  }

  body.pmrti-student-body.pmrti-theme-cute .ch-cast {
    grid-template-columns: repeat(4, 88px);
    justify-content: start;
    gap: 14px;
    margin-top: 30px;
  }

  body.pmrti-student-body.pmrti-theme-cute .ch-cast figure {
    width: 88px;
    height: 88px;
    border-width: 5px;
  }

  body.pmrti-student-body.pmrti-theme-cute .cute-auth-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
    gap: 48px;
  }

  /*
   * 카드가 길어지면 가운데 정렬로는 표제부가 한참 아래로 밀린다.
   * 위에서 기준을 잡고, 스크롤해도 그 자리에 머무르게 한다.
   */
  body.pmrti-student-body.pmrti-theme-cute .cute-hero {
    position: sticky;
    top: 28px;
  }

  /*
   * 카드 윗변을 배지 윗변에 맞춘다. 표제부는 padding-top 24px 로 시작하는데
   * 카드는 0 이라 카드만 위로 튀어나와 보였다.
   * 표제부 padding 을 고치면 이 값도 같이 맞춰야 한다.
   */
  body.pmrti-student-body.pmrti-theme-cute .cute-auth-layout .auth-wrap {
    margin: 24px 0 0;
    padding: 32px 30px 30px;
  }

  /* 카드가 이미 한 기둥이므로 안쪽은 세로로 쌓는다 */
  body.pmrti-student-body.pmrti-theme-cute .cute-auth-layout .auth-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------------------------------------------------------------------------
 * 11. 알림창 — SweetAlert2 대체
 *
 * SweetAlert2 는 흰 카드·파란 버튼·자체 폰트라 이 테마 위에 뜨면 남의 창 같다.
 * JS 쪽 cuteDialog() 가 그리는 마크업에 맞춰 직접 꾸민다.
 * 이름을 .cu-dlg-* 로 따로 둔 이유는, 페이지 안의 카드 규칙을 물려받지 않게
 * 하려는 것이다. body 직속으로 붙으므로 .auth-wrap 안쪽 규칙이 닿지 않는다.
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-back {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74, 58, 112, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-back.on {
  opacity: 1;
}

/* 알림창이 떠 있는 동안 뒤 화면이 스크롤되지 않게 */
body.pmrti-student-body.pmrti-theme-cute.cu-dlg-lock {
  overflow: hidden;
}

/*
 * 흰 카드 + 두꺼운 라벤더 테두리.
 * 예전에는 0 3px 0 로 밑단을 깔아 입체처럼 보였는데 옛스러웠다.
 * 그림자는 떠 있다는 것만 알리는 한 겹으로 줄이고, 등장도 튀어 오르지 않게 한다.
 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg {
  width: 100%;
  max-width: 380px;
  padding: 28px 26px 24px;
  border-radius: var(--cu-r-xl);
  background: #fff;
  border: 3px solid var(--cu-lav-lo);
  box-shadow: 0 22px 44px -24px rgba(90, 70, 150, 0.38);
  text-align: center;
  transform: translateY(10px);
  transition:
    transform 0.2s ease,
    opacity 0.18s ease;
  opacity: 0;
  outline: none;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-back.on .cu-dlg {
  transform: translateY(0);
  opacity: 1;
}

/* ── 아이콘 원 ── */
/* 글리프만. 동그라미로 싸면 뱃지처럼 보여 카드 안에서 겉돈다 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico {
  display: block;
  margin: 0 auto 14px;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico::before {
  /* 글리프가 기준선 아래로 조금 처져 원 가운데보다 낮게 보인다 */
  transform: translateY(-0.03em);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-info {
  color: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-info::before {
  content: '\f05a'; /* circle-info */
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-question {
  color: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-question::before {
  content: '\f059'; /* circle-question */
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-success {
  color: #4e9e80;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-success::before {
  content: '\f00c'; /* check */
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-warning {
  color: #d2914e;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-warning::before {
  content: '\f12a'; /* exclamation */
  font-size: 34px;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-error {
  color: var(--cu-rose);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico-error::before {
  content: '\f00d'; /* xmark */
}

/* ── 글 ── */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-title {
  margin: 0 0 10px;
  font-family: var(--cu-display);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--cu-ink);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.66;
  color: var(--cu-muted);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-text code {
  background: transparent;
  color: inherit;
}

/* 제목 없이 본문만 있는 알림은 본문이 곧 제목 역할이라 조금 진하게 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico + .cu-dlg-text {
  font-size: 1.06rem;
  color: var(--cu-ink-2);
}

/* ── 입력칸 ── */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-input {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  min-height: var(--cu-tap);
  padding: 0 18px;
  border-radius: var(--cu-r);
  border: 2px solid var(--cu-line);
  background: var(--cu-field);
  color: var(--cu-ink);
  font-family: inherit;
  font-size: 1.06rem;
  text-align: center;
  letter-spacing: 0.14em;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-input::placeholder {
  color: var(--cu-faint);
  letter-spacing: 0;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-input:focus {
  border-color: var(--cu-ring);
  box-shadow: 0 0 0 4px rgba(139, 111, 212, 0.16);
}

/* ── 버튼 ── */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/*
 * 문항 화면의 「이전 / 다음」과 같은 어휘를 쓴다.
 * 눌리는 느낌도 같아야 한다 — 그 버튼들은 translateY 로 내려가지 않고
 * 밝기를 낮추고 그림자를 줄인다 (.btn:active { transform: none }).
 * 크기는 둘을 똑같이 맞춘다. 나란히 놓인 한 쌍이라 다르면 어색하다.
 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--cu-tap);
  padding: 0 18px;
  border: 0;
  border-radius: var(--cu-r-lg);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    filter 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-btn:focus-visible {
  outline: 3px solid var(--cu-ring);
  outline-offset: 3px;
}

/* 확인·처음으로 — 「다음」과 같은 주황 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-yes {
  color: #fff;
  background: linear-gradient(180deg, var(--cu-orange), var(--cu-orange-lo));
  box-shadow: 0 10px 22px -12px rgba(201, 108, 75, 0.85);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-yes:hover {
  color: #fff;
  background: linear-gradient(180deg, #c94f16, #c94e20);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-yes:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(201, 108, 75, 0.85);
}

/* 취소·계속하기 — 「이전」과 같은 라벤더 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-no {
  background: linear-gradient(180deg, var(--cu-lav-lo), var(--cu-lav));
  box-shadow: 0 8px 18px -9px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-no:hover {
  color: #fff;
  background: linear-gradient(180deg, #8260d8, #7f66c5);
}

body.pmrti-student-body.pmrti-theme-cute .cu-dlg-no:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(106, 80, 170, 0.6);
}

/* 버튼이 하나뿐이면 굳이 절반만 차지할 이유가 없다 */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-actions:not(:has(.cu-dlg-no)) .cu-dlg-yes {
  flex: 1 1 100%;
}

@media (max-width: 480px) {
  /*
   * 검사 영역 안내 — 이 테마가 칸 폭을 따로 정의하므로(4.4/6.2/4.4rem)
   * 좁은 화면 규칙도 같은 명시도로 여기에 둔다. 클래식 쪽 560px 규칙만
   * 두면 클래스 수가 적어 명시도에서 밀린다.
   */
  body.pmrti-student-body.pmrti-theme-cute .intro-scope-row {
    grid-template-columns: auto auto 1fr;
    row-gap: 4px;
  }

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

  body.pmrti-student-body.pmrti-theme-cute .cu-dlg {
    padding: 26px 20px 20px;
    border-radius: var(--cu-r-lg);
  }

  body.pmrti-student-body.pmrti-theme-cute .cu-dlg-ico {
    font-size: 36px;
    margin-bottom: 12px;
  }

  body.pmrti-student-body.pmrti-theme-cute .cu-dlg-title {
    font-size: 1.2rem;
  }
}

/* 움직임을 줄여 달라고 한 브라우저에서는 튀어 오르지 않는다 */
@media (prefers-reduced-motion: reduce) {
  body.pmrti-student-body.pmrti-theme-cute .cu-dlg-back,
  body.pmrti-student-body.pmrti-theme-cute .cu-dlg {
    transition: none;
  }

  body.pmrti-student-body.pmrti-theme-cute .cu-dlg {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
 * 12. 이어하기 배너
 *
 * 클래식은 teal 배경 + 부트스트랩 빨강 「무시」였다. 이 테마 위에 얹히면
 * 색이 셋(민트·라벤더·빨강)이나 되어 눈이 어디로 갈지 모른다.
 * 크림 카드로 눕히고, 이어서 하기만 주황으로 세운다.
 * .btn-danger 는 이 테마에 정의가 없어 부트스트랩 빨강이 그대로 나오므로
 * 여기서 함께 눌러 준다.
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .resume-banner {
  background: var(--cu-cream);
  border: 2px solid var(--cu-line);
  border-radius: var(--cu-r-xl);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 14px 30px -20px rgba(90, 70, 150, 0.4);
  align-items: center;
  gap: 16px;
}

body.pmrti-student-body.pmrti-theme-cute .resume-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cu-ink);
}

/* 「이전에 진행 중이던」 — 시각을 가리키는 신호 */
body.pmrti-student-body.pmrti-theme-cute .resume-banner-text::before {
  content: '\f017'; /* clock */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.92em;
  line-height: 1;
  flex: none;
  color: var(--cu-lav);
  transform: translateY(-0.04em);
}

body.pmrti-student-body.pmrti-theme-cute .resume-banner-sub {
  margin-top: 6px;
  padding-left: 1.75rem; /* 아이콘 폭 + gap — 제목 글자와 왼쪽을 맞춘다 */
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cu-muted);
  opacity: 1;
}

body.pmrti-student-body.pmrti-theme-cute .resume-btns {
  gap: 10px;
  flex: none;
}

/* 배너 안이므로 화면 전환 버튼(54~60px)보다 낮게 */
body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn {
  min-height: 46px;
  padding: 0 20px;
  /* 15px — 제목용 서체를 쓰는 하한(18px) 아래라 본문 서체로 둔다 */
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  border-radius: var(--cu-r);
  /* 누를 때 그림자가 줄어드는 느낌 — 문항 화면 버튼과 같게 */
  transition:
    filter 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

/* 이어서 하기 — 「다음」과 같은 주황 */
body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--cu-orange), var(--cu-orange-lo));
  box-shadow: 0 10px 22px -12px rgba(201, 108, 75, 0.85);
}

body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #c94f16, #c94e20);
}

body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn-primary:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(201, 108, 75, 0.85);
}

/* 무시 — 「이전」과 같은 라벤더. 빨강은 되돌릴 수 없는 삭제에만 쓴다 */
body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn-danger {
  color: #fff;
  background: linear-gradient(180deg, var(--cu-lav-lo), var(--cu-lav));
  box-shadow: 0 8px 18px -9px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn-danger:hover {
  color: #fff;
  background: linear-gradient(180deg, #8260d8, #7f66c5);
}

body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn-danger:active {
  filter: brightness(0.94);
  box-shadow: 0 4px 10px -8px rgba(106, 80, 170, 0.6);
}

body.pmrti-student-body.pmrti-theme-cute .resume-btns .btn:focus-visible {
  outline: 3px solid var(--cu-ring);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  body.pmrti-student-body.pmrti-theme-cute .resume-banner {
    padding: 16px 18px;
    border-radius: var(--cu-r-lg);
  }

  body.pmrti-student-body.pmrti-theme-cute .resume-banner-text {
    font-size: 1.02rem;
  }

  body.pmrti-student-body.pmrti-theme-cute .resume-banner-sub {
    padding-left: 0; /* 좁은 화면에서는 줄바꿈이 잦아 들여쓰기가 어색하다 */
    font-size: 0.9rem;
  }

  /* 공용 CSS 가 width:100% + flex:1 을 주므로 폭 지정은 하지 않는다 */
  body.pmrti-student-body.pmrti-theme-cute .resume-btns {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------------------
 * 13. 이어하기 알림창 안쪽
 *
 * 배너 대신 알림창으로 묻는다 (pmrtiAskResume). 배너는 화면 위에 붙어 있어
 * 지나치기 쉬웠다. 클래식 테마는 그대로 배너를 쓴다.
 * --------------------------------------------------------------------------- */
body.pmrti-student-body.pmrti-theme-cute .cu-resume-who {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--cu-ink);
}

body.pmrti-student-body.pmrti-theme-cute .cu-resume-prog {
  margin-top: 10px;
  padding: 9px 16px;
  display: inline-block;
  border-radius: 999px;
  background: var(--cu-tint);
  border: 1px solid var(--cu-line);
  font-size: 0.98rem;
  line-height: 1;
  color: var(--cu-lav);
}

body.pmrti-student-body.pmrti-theme-cute .cu-resume-prog strong {
  font-family: var(--cu-display);
  font-weight: 400;
  font-size: 1.24rem;
  color: var(--cu-lav-hi);
}

body.pmrti-student-body.pmrti-theme-cute .cu-resume-at {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--cu-faint);
}

/* 이 창은 제목이 문장이라 본문을 진하게 키우지 않는다 (기본 규칙 되돌리기) */
body.pmrti-student-body.pmrti-theme-cute .cu-dlg-title + .cu-dlg-text {
  font-size: 1rem;
  color: var(--cu-muted);
}
