/* AI-Men · 새신자 학습 코스 (멘토 탭 내 정식 콘텐츠)
   Lives inside .phone.theme-sky — reuses sky tokens (--blue, --gold, accent). */

/* ===== 대화 / 학습 세그먼트 (멘토 탭 상단) ===== */
.mentor-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 2px 0 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--hairline-2);
  border-radius: var(--radius-pill);
}
.ms-seg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .14s, color .14s, box-shadow .14s;
}
.ms-seg.on {
  background: var(--surface);
  color: var(--blue-dark);
  box-shadow: 0 2px 0 var(--hairline-2);
}
.ms-seg .ms-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  white-space: nowrap;
}
.ms-seg.on .ms-badge { background: var(--blue); color: #fff; }

/* 3분할 세그먼트 (대화 / 학습 / 성경) */
.mentor-switch.ms-3 .ms-seg { font-size: 14px; gap: 5px; }

/* ===== 코스 허브 ===== */
.crs-hero {
  position: relative;
  padding: 20px 18px;
  border-radius: var(--radius-card-lg);
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(46,168,240,0.16), rgba(46,168,240,0) 60%),
    linear-gradient(135deg, #1A2A48 0%, #24365C 100%);
  color: #Eaf1fb;
  overflow: hidden;
  margin-bottom: 16px;
}
.crs-hero-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crs-hero-title {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
  text-wrap: balance;
}
.crs-hero-sub {
  font-size: 13px;
  line-height: 1.55;
  color: #B7C4DC;
  text-wrap: pretty;
}
.crs-hero-cross {
  position: absolute;
  right: 16px;
  bottom: -10px;
  font-size: 64px;
  opacity: 0.16;
  filter: grayscale(0.2);
}

/* progress card */
.crs-progress {
  background: var(--surface);
  border: 1.5px solid var(--hairline-2);
  border-radius: var(--radius-card-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.crs-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.crs-progress-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.crs-progress-count { font-size: 13px; font-weight: 800; color: var(--blue-dark); }
.crs-progress-count strong { font-size: 19px; }
.crs-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
  margin-bottom: 14px;
}
.crs-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 120%);
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.crs-resume {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform .1s, box-shadow .1s;
}
.crs-resume:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-dark); }
.crs-resume.done { background: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); }

/* stage group */
.crs-stage { margin-bottom: 24px; }
.crs-stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.crs-stage-no {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.crs-stage-name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.crs-stage-meta { font-size: 11.5px; color: var(--text-3); font-weight: 600; margin-left: auto; }

.crs-sessions { display: flex; flex-direction: column; gap: 8px; }
.crs-session {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 15px;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, border-color .12s;
}
.crs-session:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--hairline-2); border-color: var(--hairline-2); }
.crs-session:active { transform: translateY(1px); box-shadow: none; }
.crs-session.done { border-color: var(--accent-soft); background: linear-gradient(0deg, var(--accent-soft) -40%, var(--surface) 70%); }
.crs-sn {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.crs-session.done .crs-sn { background: var(--accent); color: #fff; }
.crs-sbody { flex: 1; min-width: 0; }
.crs-stitle {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 3px;
}
.crs-stags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crs-stag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.crs-stag.story { color: #C68A18; }
.crs-schev { flex: 0 0 auto; color: var(--text-3); }

/* ===== 세션 상세 ===== */
.crs-detail-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.crs-chip {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.crs-chip.crs-chip-stage { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--hairline-2); }
.crs-detail-title {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 22px;
  text-wrap: balance;
}

.crs-sec { margin-bottom: 22px; }
.crs-sec-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--blue-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.crs-sec-label .crs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* story card */
.crs-story {
  border-radius: var(--radius-card-lg);
  border: 1.5px solid #F0DFB6;
  background: linear-gradient(160deg, #FFFBF0 0%, #FFF6E0 100%);
  padding: 16px;
}
.crs-story-title {
  font-size: 16px;
  font-weight: 900;
  color: #7A551A;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.crs-story-body { font-size: 14.5px; line-height: 1.7; color: #5C4A2C; text-wrap: pretty; }
.crs-story-mentor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #F0DFB6;
}
.crs-story-mentor .csm-meta { flex: 1; min-width: 0; }
.csm-name { font-size: 13px; font-weight: 800; color: #7A551A; }
.csm-role { font-size: 11.5px; color: #A98A52; margin-top: 1px; }
.csm-go {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 13px;
  border: none; border-radius: 999px;
  background: #C68A18; color: #fff;
  font-family: inherit; font-size: 12.5px; font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.csm-go:active { transform: translateY(1px); }

/* concept */
.crs-lead { font-size: 14px; line-height: 1.65; color: var(--text-2); margin-bottom: 12px; text-wrap: pretty; }
.crs-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.crs-points li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.crs-points li::before {
  content: '';
  flex: 0 0 auto;
  width: 7px; height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.crs-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

/* verse */
.crs-verse {
  border-radius: var(--radius-card-lg);
  background: #14202F;
  color: #E6EEF8;
  padding: 18px 18px 16px;
  position: relative;
}
.crs-verse-mark { font-size: 30px; line-height: 0.6; color: var(--gold); font-weight: 900; }
.crs-verse-text { font-size: 16px; line-height: 1.65; font-weight: 600; margin: 8px 0 10px; text-wrap: pretty; }
.crs-verse-ref { font-size: 12.5px; font-weight: 800; color: var(--gold); letter-spacing: 0.2px; }

/* analogy */
.crs-analogy {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--hairline);
}
.crs-analogy .ca-emoji { font-size: 22px; flex: 0 0 auto; }
.crs-analogy .ca-text { font-size: 14px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

/* quiz */
.crs-quiz {
  border: 1.5px solid var(--hairline-2);
  border-radius: var(--radius-card-lg);
  padding: 16px;
  background: var(--surface);
}
.crs-quiz-q { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.45; margin-bottom: 12px; letter-spacing: -0.3px; }
.crs-opts { display: flex; flex-direction: column; gap: 8px; }
.crs-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid var(--hairline-2);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.crs-opt:hover { border-color: var(--blue); }
.crs-opt .co-mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--hairline-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.crs-opt.correct { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.crs-opt.correct .co-mark { border-color: var(--accent-dark); background: var(--accent); color: #fff; }
.crs-opt.wrong { border-color: #E68A7E; background: #FCE9E6; color: #7A2E22; }
.crs-opt.wrong .co-mark { border-color: #C75A4A; background: #E07A6C; color: #fff; }
.crs-opt.dim { opacity: 0.55; }
.crs-opt:disabled { cursor: default; }
.crs-quiz-explain {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  text-wrap: pretty;
}

/* note questions (기도/감사) */
.crs-notes { display: flex; flex-direction: column; gap: 10px; }
.crs-note {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--hairline);
}
.crs-note.prayer { background: linear-gradient(0deg, #EAF3FC -20%, var(--surface) 80%); }
.crs-note.thanks { background: linear-gradient(0deg, #FBF1DA -20%, var(--surface) 80%); }
.crs-note-label {
  font-size: 12px; font-weight: 800; letter-spacing: -0.2px;
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.crs-note.prayer .crs-note-label { color: var(--blue-dark); }
.crs-note.thanks .crs-note-label { color: #B07A12; }
.crs-note-q { font-size: 14px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.crs-note-go {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 14px;
  border: 1.5px solid var(--hairline-2); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 800;
  cursor: pointer;
}
.crs-note-go:active { transform: translateY(1px); }

/* mission */
.crs-mission {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-card-lg);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
.crs-mission .cm-emoji { font-size: 24px; flex: 0 0 auto; }
.crs-mission .cm-body { flex: 1; }
.crs-mission .cm-label { font-size: 12px; font-weight: 800; color: var(--accent-dark); margin-bottom: 4px; letter-spacing: 0.2px; }
.crs-mission .cm-text { font-size: 14.5px; line-height: 1.55; color: var(--accent-ink); font-weight: 600; text-wrap: pretty; }

/* complete + nav */
.crs-complete {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-dark);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, box-shadow .1s;
  margin: 8px 0 4px;
}
.crs-complete:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.crs-complete.is-done { background: var(--surface); color: var(--accent-dark); border: 1.5px solid var(--accent); box-shadow: 0 4px 0 var(--accent-soft); }
.crs-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.crs-nav button {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px;
  border: 1.5px solid var(--hairline-2);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  cursor: pointer;
}
.crs-nav button:disabled { opacity: 0.4; cursor: default; }
.crs-nav button:not(:disabled):active { transform: translateY(1px); }

/* completion celebration row */
.crs-done-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: var(--radius-card-lg);
  background: linear-gradient(135deg, var(--gold-soft) 0%, #FFE9B0 100%);
  border: 1.5px solid var(--gold);
  margin-bottom: 22px;
}
.crs-done-banner .cdb-emoji { font-size: 28px; }
.crs-done-banner .cdb-title { font-size: 15px; font-weight: 900; color: #7A551A; }
.crs-done-banner .cdb-sub { font-size: 12.5px; color: #A07A2E; margin-top: 2px; }

/* ===== 노트 작성 모달 (세션 위에 떠 있는 바텀시트) ===== */
.note-modal-scrim {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  background: rgba(10, 16, 34, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: noteScrimIn .2s ease both;
}
@keyframes noteScrimIn { from { opacity: 0; } to { opacity: 1; } }

.note-modal-sheet {
  position: relative;
  width: 100%;
  height: 93%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(8, 12, 28, 0.35);
  animation: noteSheetUp .28s cubic-bezier(.22,.9,.28,1) both;
}
@keyframes noteSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* 드래그 핸들(시트 느낌) */
.note-modal-sheet::before {
  content: '';
  flex: 0 0 auto;
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--hairline-2);
}
/* 시트 안 앱바·콘텐츠가 시트 높이에 맞게 흐르도록 */
.note-modal-sheet > .appbar { flex: 0 0 auto; }
.note-modal-sheet > .content { flex: 1 1 auto; min-height: 0; }

/* 코스에서 연 노트 작성 상단 안내(질문 리마인드) */
.compose-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--blue-soft);
  border: 1.5px solid var(--hairline-2);
}
.compose-hint .ch-icon { font-size: 16px; flex: 0 0 auto; line-height: 1.4; }
.compose-hint .ch-text { font-size: 13.5px; line-height: 1.55; color: var(--blue-dark); font-weight: 600; text-wrap: pretty; }
