/* ═══════════════════════════════════════
   styles/components.css — 답변 영역, 카드, 버튼 등
   ═══════════════════════════════════════ */

.answer-area{margin:10px 0 6px;position:relative;z-index:15}
.answer-inner{background:#fff;border-radius:8px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);border:1px solid rgba(44,36,22,.06)}
.answer-label{display:flex;align-items:center;gap:6px;font-family:var(--font-sans);font-size:16px;font-weight:600;color:var(--accent);margin-bottom:10px}
.answer-icon{width:18px;height:18px;background:var(--accent-warm);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;flex-shrink:0}
.answer-textarea{width:100%;min-height:75px;border:none;border-bottom:1px solid rgba(44,36,22,.1);padding:0;font-family:var(--font-serif);font-size:17px;line-height:25px;color:var(--ink);background:transparent;resize:none;outline:none;transition:border-color .2s;background-image:repeating-linear-gradient(transparent,transparent 24px,rgba(44,36,22,.08) 24px,rgba(44,36,22,.08) 25px);background-size:100% 25px}
.answer-textarea:focus{border-bottom-color:var(--accent-warm)}
.answer-textarea::placeholder{color:#c4b8a0;font-style:italic}
.char-info{font-family:var(--font-sans);font-size:15px;margin-top:4px;display:flex;justify-content:space-between}
.char-ok{color:#5a8a4a}.char-warn{color:var(--accent-warm)}.char-default{color:var(--ink-faint)}
.submit-row{display:flex;justify-content:flex-end;margin-top:10px}
.click-row{display:flex;justify-content:flex-end;margin:-6px 0 10px;min-height:28px}
.click-btn{width:26px;height:26px;border-radius:50%;background:var(--accent-glow);color:var(--accent);border:1.5px solid var(--accent-warm);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s;font-size:14px}
.click-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent)}
.qa-card{background:#fff;border-radius:6px;padding:14px;border:1px solid rgba(0,0,0,.05);margin-bottom:8px;box-shadow:0 1px 3px rgba(0,0,0,.03)}
.qa-q{font-family:var(--font-sans);font-size:13.5px;color:var(--accent);font-weight:500;margin-bottom:4px}
.qa-a{font-size:15.5px;line-height:1.7;word-break:keep-all}
.review-box{border-left:2px solid var(--accent-warm);padding:12px 18px;margin:14px 0;background:var(--accent-glow);font-style:italic;font-size:16px;line-height:1.85;border-radius:0 4px 4px 0}

/* ── 랜딩 페이지 및 키워드 선택 카드 ── */
.landing-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-sans);
}
.landing-title-row {
  text-align: center;
  margin-bottom: 40px;
}
.landing-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.landing-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.landing-desc {
  font-size: 16px;
  color: var(--ink-light);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  word-break: keep-all;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  padding: 10px 0;
}
.landing-card {
  background: #ffffff;
  border: 1.5px solid rgba(196, 164, 74, 0.18);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(44, 36, 22, 0.05);
}
.landing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(196, 164, 74, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.landing-card.active {
  cursor: pointer;
  border-color: rgba(196, 164, 74, 0.3);
}
.landing-card.active:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(184, 146, 46, 0.15), 0 0 10px rgba(184, 146, 46, 0.08);
  background: #fdfbf7;
}
.landing-card.active:hover::before {
  opacity: 1;
}
.landing-card.locked {
  cursor: not-allowed;
  opacity: 0.65;
  background: #f4efe6;
  border-color: rgba(44, 36, 22, 0.05);
}
.landing-card.locked:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(44, 36, 22, 0.05);
}
.card-badge {
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--accent-warm);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.landing-card.locked .card-badge {
  background: rgba(44, 36, 22, 0.12);
  color: #a0927c;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.landing-card.locked .card-title {
  color: #8a7e6e;
}
.card-desc {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 8px;
  word-break: keep-all;
}
.landing-card.locked .card-desc {
  color: #a0927c;
}
.card-status {
  font-size: 13.5px;
  color: var(--accent-warm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.landing-card.locked .card-status {
  color: #a0927c;
}

/* ── 커스텀 알림창(토스트) ── */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 24, 18, 0.95);
  border: 1.5px solid var(--gold);
  color: #f8f3e8;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(196, 164, 74, 0.2);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.toast-container.show {
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   학생 정보 입력 폼 (sf-*)
   ═══════════════════════════════════════ */

/* 전체 화면 오버레이 */
.sf-overlay {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #FAF7F2;
  animation: sfFadeIn 0.5s ease both;
}

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 카드 컨테이너 */
.sf-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid rgba(196, 164, 74, 0.25);
  border-radius: 16px;
  box-shadow:
    0 4px 20px rgba(44, 36, 22, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  position: relative;
}

/* 골드 데코 상단 라인 */
.sf-deco-top {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196,164,74,0.4) 20%,
    var(--gold) 50%,
    rgba(196,164,74,0.4) 80%,
    transparent 100%
  );
}

/* 골드 데코 하단 라인 */
.sf-deco-bottom {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196,164,74,0.2) 20%,
    rgba(196,164,74,0.4) 50%,
    rgba(196,164,74,0.2) 80%,
    transparent 100%
  );
}

/* 카드 내부 패딩 영역 */
.sf-inner {
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 상단 브랜드 라벨 */
.sf-label-top {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent-warm);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* 메인 타이틀 */
.sf-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #2C2416;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* 서브 설명 */
.sf-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #7A5C3A;
  line-height: 1.65;
  margin-bottom: 28px;
  word-break: keep-all;
}

/* 필드 묶음 */
.sf-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* 개별 필드 그룹 */
.sf-field-group {
  text-align: left;
}

/* 필드 라벨 */
.sf-field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #7A5C3A;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* 텍스트 입력 */
.sf-input {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid #D4C4B0;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #2C2416;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.sf-input::placeholder {
  color: rgba(122, 92, 30, 0.3);
  font-style: italic;
}
.sf-input:focus {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(184, 146, 46, 0.1);
}

/* 학년 버튼 행 */
.sf-grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* 학년 개별 버튼 */
.sf-grade-btn {
  flex: 1 1 calc(25% - 7px);
  min-width: 48px;
  padding: 8px 4px;
  background: #ffffff;
  border: 1.5px solid #D4C4B0;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #7A5C3A;
  cursor: pointer;
  transition: all 0.18s;
}
.sf-grade-btn:hover {
  background: rgba(184, 146, 46, 0.06);
  border-color: var(--accent-warm);
  color: var(--accent);
}
.sf-grade-btn.selected {
  background: var(--accent-warm);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184,146,46,0.2);
  font-weight: 600;
}

/* 에러 메시지 */
.sf-error {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #e07a5f;
  margin-bottom: 10px;
  text-align: center;
}

/* 제출 버튼 */
.sf-submit {
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-warm) 0%, #a07828 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(184,146,46,0.25);
  margin-bottom: 14px;
}
.sf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(184,146,46,0.35);
  background: linear-gradient(135deg, #d4a030 0%, var(--accent-warm) 100%);
}
.sf-submit:disabled {
  background: rgba(160, 146, 124, 0.25);
  color: rgba(44, 36, 22, 0.3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 하단 안내 텍스트 */
.sf-notice {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: #a0927c;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 480px) {
  .sf-inner {
    padding: 28px 24px 24px;
  }
  .sf-title {
    font-size: 1.6rem;
  }
  .sf-grade-btn {
    flex: 1 1 calc(33% - 7px);
  }
}


/* ─── 설문 페이지 및 진단 결과용 스타일 ─── */
.survey-overlay {
  min-height: 100dvh;
  width: 100%;
  background: #FAF7F2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #2C2416;
  font-family: var(--font-sans), sans-serif;
  animation: sfFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.survey-wrap {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid rgba(196, 164, 74, 0.22);
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(44, 36, 22, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
}

.survey-header {
  text-align: center;
  margin-bottom: 30px;
}

.survey-brand {
  font-size: 0.75rem;
  color: var(--accent-warm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.survey-title {
  font-family: var(--font-serif), serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2C2416;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.survey-desc {
  font-size: 0.85rem;
  color: #7A5C3A;
  margin: 0;
  opacity: 1;
}

/* 프로그레스바 */
.survey-progress-box {
  margin-bottom: 40px;
  background: rgba(184, 146, 46, 0.03);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(196, 164, 74, 0.12);
}

.survey-prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #7A5C3A;
  margin-bottom: 8px;
  font-weight: 500;
}

.survey-bar-track {
  height: 6px;
  background: rgba(184, 146, 46, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.survey-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a07828 0%, var(--gold) 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(184, 146, 46, 0.25);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 설문 문항 목록 */
.survey-qs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.survey-q-item {
  background: #ffffff;
  border: 1.5px solid #D4C4B0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(44, 36, 22, 0.04);
  transition: all 0.3s ease;
}

.survey-q-item:hover {
  background: #fdfbf7;
  border-color: var(--gold);
}

.survey-q-item.answered {
  background: rgba(184, 146, 46, 0.02);
  border-color: var(--accent-warm);
}

.survey-q-no {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.survey-q-text {
  font-family: var(--font-serif), serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2C2416;
  margin: 0 0 20px;
}

/* 7점 척도 선택 영역 */
.survey-scale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.survey-pole {
  font-size: 0.7rem;
  color: #7A5C3A;
  line-height: 1.4;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.survey-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  max-width: 440px;
  position: relative;
}

.survey-scale::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15px;
  right: 15px;
  height: 1px;
  background: rgba(196, 164, 74, 0.25);
  transform: translateY(-50%);
  z-index: 1;
}

.survey-scale-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
  min-width: 32px;
}

.survey-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #D4C4B0;
  color: #7A5C3A;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.survey-scale-btn:hover .survey-circle {
  border-color: var(--gold);
  color: var(--accent-warm);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(184, 146, 46, 0.15);
}

.survey-scale-btn.on .survey-circle {
  background: var(--accent-warm);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(184, 146, 46, 0.35);
}

.survey-mid-lbl {
  position: absolute;
  top: 34px;
  font-size: 0.65rem;
  color: #a0927c;
  white-space: nowrap;
}

/* 설문 네비게이션 */
.survey-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(196, 164, 74, 0.12);
  padding-top: 30px;
  margin-top: 10px;
}

.survey-nav-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--font-sans), sans-serif;
  letter-spacing: 0.02em;
}

.survey-nav-btn.sec {
  background: #ffffff;
  border: 1.5px solid #D4C4B0;
  color: #7A5C3A;
}

.survey-nav-btn.sec:hover:not(:disabled) {
  background: rgba(184, 146, 46, 0.06);
  color: var(--accent);
  border-color: var(--accent-warm);
}

.survey-nav-btn.sec:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.survey-nav-btn.pri {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #a07828 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(184, 146, 46, 0.25);
}

.survey-nav-btn.pri:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 146, 46, 0.35);
  background: linear-gradient(135deg, #d4a030 0%, var(--accent-warm) 100%);
}

.survey-nav-btn.pri:disabled {
  background: rgba(44, 36, 22, 0.15) !important;
  color: rgba(44, 36, 22, 0.35) !important;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.survey-dots {
  display: flex;
  gap: 8px;
}

.survey-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 146, 46, 0.15);
  transition: all 0.25s ease;
}


.survey-dot.cur {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(196, 164, 74, 0.6);
}

.survey-dot.past {
  background: rgba(196, 164, 74, 0.45);
}

/* 반응형 스타일 */
@media (max-width: 680px) {
  .survey-wrap {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .survey-overlay {
    padding: 12px 8px;
  }
  .survey-q-item {
    padding: 18px 14px;
    border-radius: 10px;
  }
  .survey-scale-row {
    gap: 8px;
  }
  .survey-pole {
    font-size: 0.6rem;
    min-width: 42px;
  }
  .survey-circle {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  .survey-mid-lbl {
    top: 30px;
    font-size: 0.6rem;
  }
  .survey-nav-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/* ── Mandalart Chart Component — Simple Flush Grid ── */
.mandalart-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 30px auto;
  font-family: var(--font-sans);
  border: 1.5px solid #d4cdc4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.mandalart-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* 3px right/bottom border to divide 3x3 blocks */
  border-right: 2px solid #c4bdb5;
  border-bottom: 2px solid #c4bdb5;
}

/* Remove right border for boxes in col 3 (indices 2,5,8) */
.mandalart-box:nth-child(3n) {
  border-right: none;
}
/* Remove bottom border for boxes in last row (indices 7,8,9) */
.mandalart-box:nth-child(n+7) {
  border-bottom: none;
}

.mandalart-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px;
  text-align: center;
  background: #ffffff;
  color: #3a3530;
  line-height: 1.2;
  word-break: keep-all;
  border-right: 1px solid #e8e3df;
  border-bottom: 1px solid #e8e3df;
}

/* Remove right border on cells in col 3 of each box */
.mandalart-cell:nth-child(3n) {
  border-right: none;
}
/* Remove bottom border on cells in last row of each box */
.mandalart-cell:nth-child(n+7) {
  border-bottom: none;
}

.mandalart-cell.cell-hub {
  background: #f5f2ef;
  color: #6b5d4a;
  font-weight: 700;
  font-size: 11px;
}

/* Center block (box 4) hub cells get a distinct grey tint */
.mandalart-cell.cell-hub-center {
  background: #e8e5e2;
  color: #5a5250;
  font-weight: 700;
  font-size: 11px;
}

.mandalart-cell.cell-core {
  background: #3a3530;
  color: #f5f0e8;
  font-weight: 800;
  font-size: 12px;
}

/* Score-based color states (set via inline style in JS) */

/* ── Mandalart Legend ── */
.mandalart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin: 12px auto 28px auto;
  padding: 0 4px;
  box-sizing: border-box;
}

.mandalart-legend-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mandalart-legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.mandalart-legend-color-dot.bad {
  background-color: #f9c0c0;
}

.mandalart-legend-color-dot.good {
  background-color: #3ab06a;
}

.mandalart-legend-label {
  font-size: 11px;
  color: #7a6e66;
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
}

.mandalart-legend-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 80px;
}

.mandalart-legend-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #f9c0c0 0%,
    #ffffff 35%,
    #ffffff 55%,
    #c8f0a0 72%,
    #3ab06a 100%
  );
  border: 1px solid #d8d2cc;
}

.mandalart-legend-center-label {
  font-size: 9px;
  color: #a09288;
  font-family: var(--font-sans);
  position: absolute;
  top: 10px;
  background: transparent;
  padding: 0 4px;
  white-space: nowrap;
}
/* no extra classes needed — all coloring is done inline */

@media(max-width: 600px) {
  .mandalart-container {
    max-width: 100%;
  }
  .mandalart-cell {
    font-size: 9px;
  }
  .mandalart-cell.cell-hub {
    font-size: 8.5px;
  }
  .mandalart-cell.cell-core {
    font-size: 9px;
  }
}

/* ── AI 대화 추천 섹션 (Chat Recommendation Section) ── */
.chat-section-container {
  width: 100%;
  max-width: 1080px;
  margin: 50px auto 0 auto;
  padding: 45px 35px;
  background: #fcfaf6; /* 연한 베이지/아이보리 톤으로 배경 분리 */
  border-radius: 20px;
  border: 1px solid rgba(196, 164, 74, 0.16);
  box-shadow: inset 0 2px 8px rgba(44, 36, 22, 0.02), 0 4px 20px rgba(44, 36, 22, 0.03);
  box-sizing: border-box;
}

.chat-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.chat-section-badge {
  font-size: 11px;
  font-family: var(--font-sans);
  background: #d14949; /* 보완 추천의 붉은 톤 매칭 */
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(209, 73, 73, 0.15);
}

.chat-section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.chat-section-desc {
  font-size: 14.5px;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  word-break: keep-all;
}

/* 개별 카드 디자인 강화 */
.landing-card.diagnosed-active {
  background: #ffffff;
  border: 1.5px solid rgba(196, 164, 74, 0.22);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* 하단 버튼 배치를 일정하게 */
  padding: 28px 24px;
  min-height: 240px; /* 고정 최소 높이로 통일감 부여 */
}

/* 대화하기 버튼 리뉴얼 (Cognitive Button Style) */
.card-action-btn {
  width: 100%;
  margin-top: 18px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #d14949 0%, #a82e2e 100%) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(209, 73, 73, 0.2);
}

.landing-card.diagnosed-active:hover .card-action-btn {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e05e5e 0%, #d14949 100%) !important;
  box-shadow: 0 6px 18px rgba(209, 73, 73, 0.35);
}

/* 마이크로 애니메이션: 호버 시 화살표 모양 변화 */
.card-action-btn svg {
  transition: transform 0.2s ease;
}

.landing-card.diagnosed-active:hover .card-action-btn svg {
  transform: translateX(3px);
}


