    /* 스플래시 오버레이 */
    #splash {
      position: fixed;
      inset: 0;
      background: #f8f9fa;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.4s ease;
    }
    #splash.hidden {
      opacity: 0;
      pointer-events: none;
    }
    .splash-card {
      background: white;
      border: 1px solid #E4E4E7;
      border-radius: 16px;
      padding: 40px 36px;
      width: 100%;
      max-width: 400px;
      text-align: center;
      box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    }
    .splash-logo {
      width: 72px;
      height: 72px;
      margin: 0 auto 20px;
      display: block;
    }
    .splash-title {
      font-size: 26px;
      font-weight: 700;
      color: #111;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
    }
    .splash-desc {
      font-size: 14px;
      color: #6B7280;
      margin-bottom: 32px;
    }
    .splash-btn {
      width: 100%;
      padding: 14px;
      background: #2C5F2D;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.15s;
    }
    .splash-btn:hover {
      background: #3D7A3E;
    }

    /* 환영 배너 */
    .welcome-banner {
      background: linear-gradient(135deg, #2C5F2D 0%, #3D7A3E 50%, #97BC62 100%);
      border-radius: 12px;
      padding: 20px 32px;
      color: white;
      margin-top: 32px;
      margin-bottom: 24px;
    }
    .welcome-label {
      font-size: 14px;
      font-weight: 500;
      opacity: 0.85;
      margin: 0;
    }
    .welcome-title {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 4px 0 0;
    }
    .welcome-desc {
      font-size: 14px;
      opacity: 0.8;
      margin: 6px 0 0;
    }

    /* 홈 프로그램 카드 */
    .home-program-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 32px;
    }
    @media (max-width: 600px) {
      .home-program-grid { grid-template-columns: 1fr; }
    }
    .home-program-card {
      background: white;
      border: 1px solid #E4E4E7;
      border-radius: 14px;
      overflow: hidden;
      transition: box-shadow 0.2s;
    }
    .home-program-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
    .home-program-poster {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
    }
    .home-program-info { padding: 16px; }
    .home-program-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .home-program-title { font-size: 16px; font-weight: 700; color: #111; }
    .home-program-badge {
      font-size: 11px;
      font-weight: 600;
      background: #f0f9e8;
      color: #2C5F2D;
      border: 1px solid #97BC62;
      border-radius: 20px;
      padding: 2px 10px;
    }
    .home-program-desc { font-size: 13px; color: #6B7280; margin-bottom: 14px; }
    .home-program-btn {
      display: inline-block;
      padding: 8px 16px;
      background: #2C5F2D;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.15s;
    }
    .home-program-btn:hover { background: #3D7A3E; }

    /* 메인 카드 */
    .main-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 32px;
    }
    .action-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: white;
      border: 1px solid #E4E4E7;
      border-radius: 12px;
      cursor: pointer;
      text-align: left;
      font-family: inherit;
      transition: border-color 0.15s, box-shadow 0.15s;
      width: 100%;
    }
    .action-card:hover {
      border-color: #3D7A3E;
      box-shadow: 0 2px 8px rgba(44,95,45,0.1);
    }
    .action-card-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: #F4F4F5;
      border-radius: 8px;
      flex-shrink: 0;
      color: #6B7280;
      transition: color 0.15s;
    }
    .action-card:hover .action-card-icon {
      color: #2C5F2D;
    }
    .action-card-text {
      flex: 1;
    }
    .action-card-title {
      font-size: 16px;
      font-weight: 600;
      color: #111;
      margin-bottom: 4px;
    }
    .action-card-desc {
      font-size: 13px;
      color: #6B7280;
    }
    .action-card-arrow {
      font-size: 18px;
      color: #9CA3AF;
      flex-shrink: 0;
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateX(-50%) translateY(10px); }
      to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* 섹션 뒤로가기 */
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      color: #6B7280;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      margin-bottom: 20px;
      font-family: inherit;
    }
    .back-btn:hover { color: #111; }

    .tab-content {
      display: none;
    }

    /* 모바일에서만 보이는 줄바꿈 */
    .mobile-only { display: none; }
    @media (max-width: 640px) {
      .mobile-only { display: inline; }
    }

    /* 이름 + 전화번호 행 */
    .name-phone-row {
      display: flex;
      gap: 12px;
    }
    .name-phone-row > div {
      flex: 1;
    }

    /* ===== 모바일 반응형 ===== */
    @media (max-width: 640px) {
      /* 스플래시 */
      .splash-card {
        margin: 16px;
        padding: 32px 24px;
      }
      .splash-logo {
        width: 60px;
        height: 60px;
      }
      .splash-title {
        font-size: 22px;
      }

      /* 환영 배너 */
      .welcome-banner {
        padding: 16px 20px;
        margin-top: 16px;
      }
      .welcome-title {
        font-size: 20px;
      }

      /* 메인 카드: 2열 → 1열 */
      .main-cards {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .action-card {
        padding: 16px;
      }

      /* 이름 + 전화번호 가로 → 세로 */
      .name-phone-row {
        flex-direction: column;
      }

      /* 객관식 원형 버튼 모바일 */
      .choice-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 15px !important;
      }

      /* 답안 행 정렬 (모바일 전용) */
      .answer-table-header,
      .answer-row {
        justify-content: flex-start;
        padding-left: 16px;
      }

      /* 결과 카드 */
      .result-card {
        padding: 16px;
      }
    }
    /* 하단 제출 박스 */
    .submit-box {
      margin-top: 24px;
      border: 1px solid #E4E4E7;
      border-radius: 12px;
      padding: 16px 20px;
      background: white;
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .submit-box-info {
      flex: 1;
      font-size: 14px;
      color: #374151;
      line-height: 1.6;
    }
    .submit-box-info strong {
      font-size: 15px;
      font-weight: 700;
      color: #111;
    }
    .submit-box-right {
      flex: 1;
    }
    .submit-btn {
      width: auto !important;
      flex-shrink: 0;
      margin: 0 !important;
      padding: 10px 16px !important;
      font-size: 14px;
      display: flex !important;
      align-items: center;
      align-self: center;
      white-space: nowrap;
    }

    @media (max-width: 640px) {
      /* 박스1(시험지 정보+제출)은 모바일에서도 가로 유지 */
      .submit-box-top {
        flex-direction: row;
        align-items: center;
      }
      /* 하단 제출 박스 왼쪽 정렬 */
      .submit-box-bottom {
        justify-content: flex-start;
      }
      /* 박스2(이름+전화번호)만 세로 */
      .submit-box:not(.submit-box-top):not(.submit-box-bottom) {
        flex-direction: column;
      }
      .submit-box-info {
        width: 100%;
      }
    }

    /* 진행도 바 */
    .answer-progress {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      font-size: 13px;
      color: #6B7280;
    }
    .answer-progress-bar {
      flex: 1;
      height: 6px;
      background: #E4E4E7;
      border-radius: 99px;
      overflow: hidden;
    }
    .answer-progress-fill {
      height: 100%;
      background: #2C5F2D;
      border-radius: 99px;
      transition: width 0.2s;
    }

    /* 응시 기록 안내 (신규 응시 시 답안 폼 최상단) */
    .attend-notice {
      margin-top: 20px;
      padding: 14px 16px;
      background: #F7FAF7;
      border: 1px solid #DDE7DD;
      border-radius: 12px;
    }
    .attend-notice-title {
      font-size: 14px;
      font-weight: 700;
      color: #2C5F2D;
      margin-bottom: 6px;
    }
    .attend-notice-text {
      font-size: 13px;
      line-height: 1.7;
      color: #4B5563;
      margin: 0 0 12px;
    }
    .attend-notice-pledge {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #111;
      cursor: pointer;
    }
    .attend-notice-pledge input {
      width: 17px;
      height: 17px;
      flex-shrink: 0;
      accent-color: #2C5F2D;
      cursor: pointer;
      margin: 0;
    }
    /* 서약 체크 전 제출 버튼 비활성 (.submit-btn:disabled 가 .btn-primary 보다 우선순위가 높아 !important 불필요) */
    .submit-btn:disabled {
      background: #D1D5DB;
      border-color: #D1D5DB;
      color: #6B7280;
      cursor: default;
    }

    @media (max-width: 640px) {
      .attend-notice { padding: 12px 14px; }
      .attend-notice-text { font-size: 12.5px; }
      .attend-notice-pledge { align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
    }

    /* 답안 테이블 */
    .answer-table {
      width: 100%;
      border-collapse: collapse;
    }
    .answer-table-header {
      display: flex;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #E4E4E7;
      font-size: 13px;
      font-weight: 600;
      color: #6B7280;
      margin-bottom: 4px;
    }
    .answer-table-header .col-num { width: 40px; }
    .answer-table-header .col-ans { flex: 1; }

    .answer-row {
      display: flex;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #F3F4F6;
    }
    .answer-row-num {
      width: 40px;
      font-size: 14px;
      font-weight: 600;
      color: #374151;
      flex-shrink: 0;
    }
    .answer-row-input {
      flex: 1;
    }

    /* 원형 객관식 버튼 */
    .choice-options {
      display: flex;
      gap: 8px;
    }
    .choice-btn {
      width: 38px !important;
      height: 38px !important;
      border-radius: 50% !important;
      border: 1.5px solid #D1D5DB !important;
      background: white !important;
      color: #374151 !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      cursor: pointer;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
      transition: all 0.15s;
      flex-shrink: 0;
      box-sizing: border-box !important;
    }
    .choice-btn:hover {
      border-color: #3D7A3E !important;
      color: #3D7A3E !important;
      background: white !important;
    }
    .choice-btn.selected {
      background: #2C5F2D !important;
      border-color: #2C5F2D !important;
      color: white !important;
    }

    /* 단답형 인풋 */
    .answer-input {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #E4E4E7;
      border-radius: 8px;
      font-size: 14px;
      background: #FAFAF5;
      font-family: inherit;
    }
    .answer-input:focus {
      outline: none;
      border-color: #3D7A3E;
    }
    .choice-options {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .choice-btn {
      padding: 10px 20px;
      border: 2px solid #ddd;
      background: white;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 500;
      transition: all 0.2s;
    }
    .choice-btn:hover {
      background: #f0f0f0;
    }
    .choice-btn.selected {
      border-color: #3D7A3E;
      background: #3D7A3E;
      color: white;
    }
    .answer-input {
      width: 100%;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 16px;
    }
    .result-card {
      border: 3px solid #4CAF50;
      border-radius: 12px;
      padding: 24px;
      background: #f1f8f4;
      text-align: center;
      margin: 20px 0;
    }
    .result-score {
      font-size: 48px;
      font-weight: bold;
      color: #4CAF50;
      margin: 16px 0;
    }
    .result-details {
      margin-top: 20px;
      text-align: left;
    }
    .detail-item {
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      margin-bottom: 8px;
      background: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .detail-item.correct {
      border-left: 4px solid #4CAF50;
    }
    .detail-item.wrong {
      border-left: 4px solid #F44336;
    }

/* ==================== 심화를달리자 ==================== */
.simdal-code-error { color: #e53e3e; font-size: 13px; margin-top: 8px; }

.simdal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.simdal-bar-name { font-size: 15px; font-weight: 700; color: #1a202c; }
.simdal-bar-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
}
.simdal-bar-btn:hover { border-color: #cbd5e0; color: #1a202c; }

.simdal-week-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.simdal-week-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.15s;
}
.simdal-week-btn:hover:not(:disabled) { border-color: #2C5F2D; color: #2C5F2D; }
.simdal-week-btn.is-active {
  background: #2C5F2D;
  border-color: #2C5F2D;
  color: #fff;
}
.simdal-week-btn.is-locked {
  color: #cbd5e0;
  background: #f7fafc;
  cursor: not-allowed;
}

.simdal-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
  padding: 48px 20px;
  background: #fff;
  border-radius: 12px;
}

.simdal-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.simdal-viewer-title { font-size: 14px; font-weight: 700; color: #1a202c; }
.simdal-fs-btn {
  background: #2C5F2D;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.simdal-fs-btn:hover { background: #234a24; }

.simdal-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;          /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.10);
}
.simdal-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.simdal-frame:fullscreen { padding-top: 0; border-radius: 0; }
.simdal-frame:-webkit-full-screen { padding-top: 0; border-radius: 0; }

@media (max-width: 640px) {
  .simdal-week-btn { padding: 7px 13px; font-size: 12px; }

}

.simdal-frame-hint {
  margin: 0 0 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: #2d3748;
  line-height: 1.6;
  background: #eef4ee;
  border-left: 3px solid #2C5F2D;
  border-radius: 6px;
}
.simdal-frame-hint b { color: #2C5F2D; font-weight: 700; }

@media (max-width: 640px) {
  .simdal-frame-hint { font-size: 13px; padding: 10px 12px; }
}

/* ===== CBT 주간테스트 (문항을 한 문제씩) ===== */
.cbt-notice-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #374151;
}
.cbt-exam {
  margin-top: 16px;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px 16px;
}
.cbt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cbt-paper-code {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.cbt-topbar .cbt-paper-code { margin-left: auto; }
.cbt-progress {
  font-size: 13px;
  color: #4B5563;
  font-weight: 600;
}
.cbt-timer {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #2C5F2D;
  background: #F0F7F0;
  border-radius: 8px;
  padding: 4px 12px;
}
.cbt-timer.cbt-timer-warn {
  color: #C2410C;
  background: #FFF4E5;
}
.cbt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.cbt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid #E4E4E7;
  background: #F9FAFB;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  margin: 0;
  width: auto;
}
button.cbt-chip { cursor: pointer; }
/* CBT 1회차: 아직 답을 안 낸 문항 번호는 눌러서 갈 수 있다는 게 보이게 (답 낸 문항은 초록 span) */
#cbtNav button.cbt-chip:not(.cbt-chip-skip):not(.cbt-chip-current) { background: #fff; color: #374151; border-color: #D1D5DB; }
.cbt-chip-done { background: #E8F3E8; border-color: #B7D5B8; color: #2C5F2D; }
.cbt-chip-skip { background: #FFF4E5; border-color: #F5C98B; color: #B45309; }
.cbt-chip-current { border: 2px solid #2C5F2D; color: #111; background: #fff; }
.cbt-chip-big { min-width: 56px; height: 40px; font-size: 14px; }
.cbt-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cbt-question {
  flex: 1 1 auto;
  min-width: 0;
}
.cbt-image-wrap {
  position: relative;
  min-height: 160px;
  border: 1px solid #F0F0F2;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.cbt-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.cbt-image-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.cbt-answer {
  flex: 0 0 260px;
  position: sticky;
  top: 12px;
}
.cbt-qnum {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.cbt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.cbt-choices .choice-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cbt-short {
  width: 100%;
  font-size: 16px !important;
}
.cbt-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.cbt-btn {
  flex: 1;
  margin: 0;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  width: auto;
}
.cbt-btn-submit { background: #2C5F2D; color: #fff; }
.cbt-btn-skip { background: #fff; color: #374151; border-color: #D1D5DB; }
.cbt-btn:disabled {
  background: #F3F4F6;
  color: #B0B4BA;
  border-color: #E5E7EB;
  cursor: default;
}
.cbt-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #6B7280;
  line-height: 1.6;
}
.cbt-finish-inline {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  font-size: 14px;
}
.cbt-review {
  padding: 20px 4px 4px;
  text-align: center;
}
.cbt-review-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.cbt-review-text { font-size: 14px; color: #374151; margin: 0 0 12px; }
.cbt-review-note { font-size: 12.5px; color: #9CA3AF; margin: 12px 0 0; }
.cbt-review-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cbt-finish-btn {
  width: auto !important;
  margin: 18px auto 0 !important;
  padding: 12px 28px !important;
  display: inline-block;
}
.cbt-retry-submit { text-align: center; }
.cbt-message {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #DDE7DD;
  background: #F7FAF7;
}
.cbt-message-warn { border-color: #F5C98B; background: #FFF8EE; }
.cbt-message-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 6px; }
.cbt-message p { margin: 0; font-size: 14px; color: #4B5563; line-height: 1.6; }
.cbt-message p.cbt-pending-note { margin-top: 6px; font-size: 13px; color: #6B7280; }
.cbt-pending-wait { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #2C5F2D; }
.cbt-pending-dot { width: 8px; height: 8px; border-radius: 50%; background: #48BB78; animation: cbtPendingPulse 1.4s ease-in-out infinite; }
@keyframes cbtPendingPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.cbt-note-upload { display: flex; gap: 16px; align-items: center; margin: 12px 0; padding: 12px; background: #fff; border: 1px solid #DDE7DD; border-radius: 10px; }
.cbt-note-qr { flex: 0 0 auto; width: 170px; min-height: 170px; display: flex; align-items: center; justify-content: center; }
.cbt-note-qr svg { width: 170px; height: 170px; display: block; }
.cbt-note-help { flex: 1; min-width: 0; }
.cbt-message .cbt-note-help p { margin: 0 0 8px; }
.cbt-note-pin { letter-spacing: .12em; font-size: 16px; color: #111; }
.cbt-note-self { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #2C5F2D; }
.cbt-note-count { margin: 4px 0 10px; font-size: 14px; font-weight: 700; color: #B45309; }
.cbt-note-count.ok { color: #2C5F2D; }
@media (max-width: 600px) {
  .cbt-note-upload { flex-direction: column; align-items: stretch; text-align: center; }
  .cbt-note-qr { margin: 0 auto; }
}
.cbt-complete {
  margin-top: 16px;
  padding: 20px;
  background: #d4edda;
  border-radius: 12px;
  border: 2px solid #48BB78;
  text-align: center;
}
.cbt-complete h3 { color: #155724; margin-bottom: 8px; }
.cbt-complete-note { font-size: 13.5px; color: #24572F; margin: 0 0 6px; line-height: 1.6; }
.cbt-complete-timer {
  font-size: 15px;
  font-weight: 700;
  color: #155724;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
  min-height: 1em;
}
@media (max-width: 760px) {
  .cbt-body { flex-direction: column; }
  .cbt-answer { flex: 1 1 auto; width: 100%; position: static; }
  .cbt-exam { padding: 12px; }
  .cbt-timer { font-size: 19px; }
}
.cbt-image-wrap img.cbt-img-stale { opacity: 0.25; transition: opacity 0.15s; }

/* CBT 스펙 시험지 화면 해설 */
.cbt-solution-view { margin-top: 16px; text-align: left; }
.cbt-solution-card { background: #fff; border: 1px solid #E4E4E7; border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.cbt-solution-card.wrong { border-color: #F59E0B; }
.cbt-solution-label { font-size: 13px; font-weight: 600; color: #6B7280; margin-bottom: 6px; }
.cbt-solution-card.wrong .cbt-solution-label { color: #B45309; }
.cbt-solution-card img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cbt-solution-empty { color: #047857; font-weight: 600; }
.cbt-solution-rest { margin-top: 8px; }
.cbt-solution-rest summary { cursor: pointer; font-weight: 600; color: #374151; padding: 8px 0; }

/* ===== 추가문제 연습 (student-practice.js) ===== */
.prac-chip-first { background: #D1FAE5; border-color: #6EE7B7; color: #047857; }
.prac-chip-later { background: #E8F3E8; border-color: #B7D5B8; color: #2C5F2D; }
.prac-chip-revealed { background: #FEE2E2; border-color: #FCA5A5; color: #B91C1C; }
.prac-status { margin: 12px 0 0; font-size: 13.5px; color: #4B5563; }
.prac-ok { color: #047857; font-weight: 700; }
.prac-revealed { color: #B45309; font-weight: 600; }
.prac-feedback { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.prac-feedback-ok { background: #ECFDF5; color: #047857; }
.prac-feedback-bad { background: #FEF2F2; color: #B91C1C; }
.prac-solution-btn { width: 100%; margin-top: 8px; }
.prac-summary { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.prac-summary-title { font-size: 16px; font-weight: 700; color: #166534; margin-bottom: 8px; }
.prac-summary-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.prac-stat { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.prac-stat-first { background: #D1FAE5; color: #047857; }
.prac-stat-later { background: #E8F3E8; color: #2C5F2D; }
.prac-stat-revealed { background: #FEE2E2; color: #B91C1C; }
.prac-summary-note { margin: 8px 0 0; font-size: 12.5px; color: #4B5563; }

    /* ===== 과제 제출 (유형을달리자, §16) ===== */
    .hw-select {
      width: 100%; padding: 10px 12px; margin-bottom: 12px;
      border: 1px solid #E4E4E7; border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: #111;
    }
    .hw-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 15px; color: #111; }
    .hw-text-btn { background: none; border: none; color: #2C5F2D; font-size: 14px; font-weight: 600; padding: 4px 6px; margin: 0; cursor: pointer; }
    .hw-text-btn:hover { transform: none; box-shadow: none; text-decoration: underline; }
    .hw-assign-card { margin: 0 0 10px; }
    .hw-assign-status { flex-shrink: 0; text-align: right; }
    .hw-empty { color: #9CA3AF; text-align: center; padding: 32px 0; }
    .hw-past { color: #DC2626; }
    .hw-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
    .hw-chip.ok { background: #DCFCE7; color: #166534; }
    .hw-chip.late { background: #FEF3C7; color: #92400E; }
    .hw-chip.none { background: #F3F4F6; color: #6B7280; }
    .hw-upload-head .hw-head-who { font-size: 13px; color: #6B7280; }
    .hw-upload-head .hw-head-title { margin: 4px 0 6px; font-size: 20px; }
    .hw-upload-head .hw-head-due { font-size: 14px; color: #374151; }
    .hw-upload-head .hw-head-due.hw-past { color: #DC2626; }
    .hw-upload-head .hw-head-msg { margin: 10px 0 0; font-size: 14px; color: #374151; }
    .hw-upload-head .hw-head-late { margin: 8px 0 0; padding: 8px 12px; background: #FEF3C7; color: #92400E; border-radius: 8px; font-size: 13px; }
    .hw-qr { display: flex; gap: 20px; align-items: center; }
    .hw-qr-code svg { width: 180px; height: 180px; display: block; }
    .hw-qr-text b { font-size: 16px; color: #111; }
    .hw-qr-text p { margin: 6px 0 0; font-size: 14px; color: #4B5563; line-height: 1.6; }
    .hw-qr-status { color: #166534 !important; font-weight: 600; }
    .hw-pick-row { display: flex; gap: 10px; }
    .hw-pick-btn {
      flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
      padding: 14px 12px; border: 1.5px dashed #3D7A3E; border-radius: 10px; background: #F6FAF6;
      color: #2C5F2D; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
    }
    .hw-pick-btn:hover { background: #EDF5ED; }
    .hw-hint { margin: 10px 0 0; font-size: 13px; color: #6B7280; line-height: 1.6; }
    .hw-file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
    .hw-file { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #E4E4E7; border-radius: 10px; background: #fff; }
    .hw-file.bad { border-color: #FECACA; background: #FEF2F2; }
    .hw-file-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; background: #F4F4F5; display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; }
    .hw-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .hw-file-info { flex: 1; min-width: 0; }
    .hw-file-name { font-size: 14px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hw-file-sub { font-size: 12px; color: #6B7280; }
    .hw-file.bad .hw-file-sub { color: #DC2626; }
    .hw-file-del { background: none; border: none; color: #9CA3AF; font-size: 18px; padding: 6px 10px; margin: 0; cursor: pointer; }
    .hw-file-del:hover { color: #DC2626; transform: none; box-shadow: none; }
    .hw-msg { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
    .hw-msg.ok { color: #166534; font-weight: 600; }
    .hw-msg.err { color: #DC2626; }
    @media (max-width: 768px) {
      .hw-qr { flex-direction: column; text-align: center; }
      .hw-pick-row { flex-direction: column; }
    }
