/* ===== 위저드 ===== */
.wizard-body { background: var(--bg); }
.wizard { max-width: 760px; margin: 0 auto; padding: 120px 24px 120px; }

.nav-save { font-size: 13px; color: var(--ink-dim); }
.nav-save.flash { color: var(--accent); }

.wizard-head-row { display: flex; align-items: center; gap: 20px; }
.wizard-ring { width: 84px; height: 84px; flex: none; }
@media (max-width: 600px) { .wizard-ring { width: 64px; height: 64px; } }

.bp-line {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.6;
  min-height: 0;
}
.bp-line:empty { display: none; }
.bp-line span { color: var(--ink-dim); font-weight: 400; }

.wizard-head h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800; letter-spacing: -0.03em;
}
.wizard-head p { color: var(--ink-dim); margin-top: 8px; font-size: 14.5px; }

.progress-track {
  height: 6px; border-radius: 99px;
  background: rgba(27,25,22,0.1);
  margin-top: 24px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 스테퍼 */
.stepper {
  list-style: none;
  display: flex; gap: 8px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
.stepper li {
  font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}
.stepper li:hover { border-color: rgba(217,72,43,0.4); }
.stepper li.active { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.stepper li.done { color: var(--ink); border-color: rgba(217,72,43,0.45); }
.stepper li.done::before { content: ""; color: var(--accent); }

/* 스텝 본문 */
.step-body { min-height: 380px; }
.step-title { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.step-goal {
  margin: 14px 0 34px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(217,72,43,0.05);
  border-radius: 0 12px 12px 0;
  font-size: 15px; line-height: 1.7;
}

.field { margin-bottom: 30px; }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 10px; line-height: 1.6; }
.field textarea, .field input[type="text"] {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit; font-size: 15px;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.2s;
}
.field textarea { min-height: 96px; }
.field textarea:focus, .field input:focus {
  outline: none;
  border-color: rgba(217,72,43,0.55);
}
.field .example {
  margin-top: 8px; font-size: 13px; color: var(--ink-dim);
  font-family: ui-monospace, Consolas, monospace;
}
.field .example b { color: rgba(255,216,77,0.8); font-weight: 700; }

/* 선택지 */
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices button {
  font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink-dim);
  cursor: pointer; transition: all 0.2s;
}
.choices button:hover { border-color: rgba(217,72,43,0.4); color: var(--ink); }
.choices button.picked { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* 잠긴 스텝 */
.stepper li.locked { opacity: 0.3; cursor: not-allowed; position: relative; }
.stepper li.locked:hover { border-color: var(--line); }
.stepper li.locked::before { content: ''; margin-right: 0; color: var(--ink-dim); }

/* AI 추천 버튼 */
.ai-btn {
  margin-top: 10px;
  font: inherit; font-size: 15px; font-weight: 800;
  padding: 13px 24px;
  border-radius: 99px;
  border: none;
  background: var(--accent); color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(217,72,43,0.2);
}
.ai-btn:hover { transform: translateY(-1px); }
.ai-btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.ai-status { color: var(--accent); font-size: 14px; }

/* 추천(자동 채움) 목록 */
.suggest-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.suggest-list button {
  text-align: left;
  font: inherit; font-size: 14px; line-height: 1.55;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  white-space: pre-line;
}
.suggest-list button:hover { border-color: rgba(217,72,43,0.4); }
.suggest-list button.picked {
  border-color: var(--accent);
  background: rgba(217,72,43,0.07);
  color: var(--accent);
}
.field input[data-edit], .field textarea[data-edit] {
  width: 100%;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit; font-size: 14px;
  padding: 11px 14px;
  opacity: 0.85;
}
.field textarea[data-edit] { min-height: 52px; }
.field input[data-edit]:focus, .field textarea[data-edit]:focus {
  outline: none;
  border-style: solid;
  border-color: rgba(217,72,43,0.55);
  opacity: 1;
}

/* 강의형 (5·6단계) */
.lesson { font-size: 15.5px; line-height: 1.85; }
.lesson h3 { font-size: 19px; font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.02em; }
.lesson h3:first-child { margin-top: 0; }
.lesson p { margin-bottom: 14px; }
.lesson strong { color: var(--accent); }
.lesson .num {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.lesson blockquote {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 18px;
  color: var(--ink-dim);
  margin: 18px 0;
  font-size: 14.5px;
}

.checklist { list-style: none; margin: 16px 0 8px; }
.checklist li { margin-bottom: 10px; }
.checklist label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14.5px; font-weight: 600;
  transition: all 0.2s;
}
.checklist label:hover { border-color: rgba(217,72,43,0.4); }
.checklist input { margin-top: 3px; accent-color: var(--accent); }
.checklist input:checked + span { color: var(--ink-dim); text-decoration: line-through; }

/* 도구 링크 카드 */
.tool-card {
  display: block;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px dashed rgba(217,72,43,0.5);
  border-radius: 14px;
  background: rgba(217,72,43,0.05);
  font-size: 14.5px; line-height: 1.7;
}
.tool-card b { color: var(--accent); }

/* 다시 뽑기 */
.regen-btn {
  margin-top: 8px;
  font: inherit; font-size: 13px; font-weight: 700;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 7px 14px; border-radius: 99px;
  cursor: pointer; transition: all 0.2s;
}
.regen-btn:hover { color: var(--accent); border-color: rgba(217,72,43,0.5); }

/* ===== 최종 리포트 ===== */
.report {
  border: 1px solid rgba(217,72,43,0.3);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 36px 34px;
}
.report-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.report-logo {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--accent);
}
.report-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.report-ledger {
  margin-top: 10px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px; color: var(--ink-dim);
}
.report-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.report-sec { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.report-sec h4 { font-size: 13px; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.04em; }
.report-sec p { font-size: 13.5px; line-height: 1.65; margin-bottom: 8px; }
.report-sec p span {
  display: inline-block; min-width: 58px;
  color: var(--ink-dim); font-size: 12px;
}
.report-loop {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px dashed rgba(217,72,43,0.5);
  border-radius: 12px;
  font-size: 13.5px; text-align: center;
  color: var(--ink-dim);
}
.report-loop b { color: var(--accent); }
.report-pending {
  padding: 28px; text-align: center;
  color: var(--ink-dim); font-size: 14.5px;
  border: 1px dashed var(--line); border-radius: 12px;
}

/* ===== 색 명식 리딩 ===== */
.reading { margin-top: 6px; }
.reading-open {
  font-size: clamp(19px, 3vw, 24px); font-weight: 800; line-height: 1.5;
  color: var(--ink); letter-spacing: -0.02em; text-wrap: balance;
  padding: 4px 0 6px;
}
.reading-para { font-size: 15px; line-height: 1.8; color: var(--ink); }
.reading-tension {
  margin-top: 24px; padding: 20px 22px;
  background: var(--accent-soft, rgba(217,72,43,0.08));
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
}
.reading-tension p { font-size: 16px; line-height: 1.8; color: var(--ink); font-weight: 600; }
.type-block { text-align: center; }
.type-block .reading-lab { text-align: left; }
.type-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 4px; }
.type-line { font-size: 14.5px; color: var(--ink-dim); line-height: 1.7; margin-top: 8px; }
.type-map { display: block; width: 220px; height: 220px; margin: 18px auto 0; }
.tm-lab { font-family: ui-monospace, Consolas, monospace; font-size: 11px; fill: var(--ink-dim); }
.reading-lab {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px; letter-spacing: 0.14em; color: var(--accent); font-weight: 700;
  margin-bottom: 10px;
}
.reading-color { text-align: center; margin: 30px 0 24px; }
.reading-kw {
  font-size: clamp(28px, 6vw, 40px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--accent); line-height: 1.2;
}
.reading-sub { margin-top: 12px; font-size: 14px; color: var(--ink-dim); font-weight: 700; }
.reading-block { margin-top: 24px; }
.reading-list { list-style: none; padding: 0; margin: 0; }
.reading-list li {
  position: relative; padding: 9px 0 9px 18px;
  font-size: 15px; line-height: 1.7; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.reading-list li::before { content: ''; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); }
.reading-first {
  font-size: 15.5px; line-height: 1.85; color: var(--ink);
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; white-space: pre-line;
}
.reading-gate {
  margin-top: 30px; padding: 24px;
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 14px; background: #fff;
}
.reading-gate h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.reading-gate p { margin-top: 8px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.reading-mail { display: flex; gap: 8px; margin-top: 16px; }
.reading-mail input {
  flex: 1; min-width: 0; border: 1px solid var(--line2, rgba(27,25,22,0.26));
  border-radius: 99px; padding: 13px 18px; font: inherit; font-size: 15px; font-weight: 600; outline: none;
}
.reading-mail input:focus { border-color: var(--accent); }
@media (max-width: 520px) { .reading-mail { flex-direction: column; } }

/* 리딩 → 2단계 넘어가기 */
.reading-next { margin-top: 20px; text-align: center; }
.reading-next p { font-size: 14px; color: var(--ink-dim); line-height: 1.7; margin-bottom: 14px; }
.reading-next .btn { display: block; width: 100%; }
/* 2단계: 추천 스타일 한 줄 */
.s2-style { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 700; font-size: 13.5px; }
.s2-gate { margin-top: 4px; margin-bottom: 26px; }
.gate-privacy { margin-top: 12px; font-size: 12px; color: var(--ink-dim); line-height: 1.6; }
.s2-more { display: block; width: 100%; text-align: center; margin-top: 4px; }
.s2-joined { border-top-color: var(--ink); }
/* AI 폴백 안내 */
.fallback-note {
  display: block; margin: 10px 0; padding: 9px 13px;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-dim);
  background: rgba(217,72,43,0.06); border-radius: 8px;
}

/* ===== SNS 공유 카드 (html2canvas 캡처용, 화면 밖) ===== */
.share-card {
  position: fixed; left: -9999px; top: 0;
  width: 540px; height: 675px;
  background: #faf9f6; color: #1b1916;
  padding: 54px 48px; box-sizing: border-box;
  display: flex; flex-direction: column;
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
}
.share-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.share-card .sc-brand { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.share-card .sc-lab { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; letter-spacing: 0.16em; color: #d9482b; font-weight: 700; }
.share-card .sc-mid { margin-top: 56px; }
.share-card .sc-kw { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; color: #d9482b; line-height: 1.1; margin-top: 14px; }
.share-card .sc-sub { font-size: 17px; color: #6f6a61; font-weight: 700; margin-top: 18px; }
.share-card .sc-line { margin-top: 38px; font-size: 22px; font-weight: 700; line-height: 1.55; letter-spacing: -0.01em; }
.share-card .sc-design { margin-top: auto; font-size: 16px; color: #1b1916; line-height: 1.6; }
.share-card .sc-design .sc-lab { margin-bottom: 8px; }
.share-card .sc-foot {
  margin-top: 30px; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(27,25,22,0.14); padding-top: 20px;
  font-family: ui-monospace, Consolas, monospace;
}
.share-card .sc-tag { font-weight: 800; color: #d9482b; font-size: 17px; }
.share-card .sc-url { color: #6f6a61; font-size: 13px; }
.report-ai h3 { font-size: 17px; font-weight: 800; margin: 26px 0 12px; letter-spacing: -0.01em; }
.report-badge {
  font-size: 11px; font-weight: 700;
  color: #ffffff; background: var(--accent);
  padding: 3px 10px; border-radius: 99px;
  vertical-align: 2px; margin-left: 8px;
}
.report-days { list-style: none; columns: 2; gap: 24px; }
.report-days li {
  font-size: 13.5px; line-height: 1.6;
  padding: 7px 0; border-bottom: 1px dashed rgba(27,25,22,0.08);
  break-inside: avoid;
}
.report-days li b { color: var(--accent); font-family: ui-monospace, Consolas, monospace; margin-right: 8px; }
.report-post {
  white-space: pre-wrap;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  font-size: 14.5px; line-height: 1.9;
}
.report-post-sm { font-size: 13.5px; line-height: 1.7; }
.report-foot {
  margin-top: 26px; text-align: center;
  font-size: 11.5px; color: var(--ink-dim); opacity: 0.7;
  font-family: ui-monospace, Consolas, monospace;
}
@media (max-width: 640px) {
  .report { padding: 24px 18px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-days { columns: 1; }
}

/* ===== 자료 본문 미리보기 ===== */
.mat-doc {
  border: 1px solid rgba(217,72,43,0.3);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 30px 28px;
  max-height: 460px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.85;
}
.mat-doc h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.mat-doc h4 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; color: var(--accent); }
.mat-doc h5 { font-size: 15px; font-weight: 700; margin: 16px 0 6px; }
.mat-doc p { margin-bottom: 8px; }
.mat-doc ul { margin: 6px 0 10px 18px; }
.mat-doc li { margin-bottom: 6px; }
.mat-doc li.chk { list-style: none; margin-left: -18px; }
.mat-doc li.chk::before { content: '☐ '; color: var(--accent); }
.mat-doc .md-gap { height: 8px; }

/* ===== 인쇄(PDF 저장) — .print-target 요소만, 밝은 지면으로 ===== */
@media print {
  body * { visibility: hidden; }
  .print-target, .print-target * { visibility: visible; }
  .print-target {
    position: absolute; left: 0; top: 0; width: 100%;
    background: #fff !important; color: #171512 !important;
    border: none !important; border-top: 4px solid #c23a20 !important;
    border-radius: 0;
    padding: 24px;
    max-height: none !important;
    overflow: visible !important;
  }
  .print-target .report-logo, .print-target .report-sec h4, .print-target .report-days li b,
  .print-target .report-loop b, .print-target h4, .print-target li.chk::before { color: #b53a22 !important; }
  /* 자료(전자책) 인쇄: 표지 느낌 강화 */
  .print-target.mat-doc h3 {
    font-size: 34px; line-height: 1.25; letter-spacing: -0.02em;
    padding-bottom: 16px; margin-bottom: 20px;
    border-bottom: 3px solid #c23a20;
  }
  .print-target.mat-doc h4 { font-size: 18px; margin-top: 30px; margin-bottom: 10px; }
  .print-target.mat-doc p, .print-target.mat-doc li { font-size: 13px; line-height: 1.9; }
  .print-target.mat-doc .md-gap { height: 12px; }
  @page { margin: 18mm 16mm; }
  .print-target .report-ledger, .print-target .report-sec p span, .print-target .report-loop,
  .print-target .report-foot { color: #6b675f !important; }
  .print-target .report-sec, .print-target .report-loop, .print-target .report-post { border-color: #e8e2d8 !important; background: #fff !important; }
  .print-target .report-post { border-left: 3px solid #c23a20 !important; }
  .print-target .report-badge { background: #c23a20 !important; color: #fff !important; }
  .print-target .report-days li { border-bottom-color: #eee !important; }
}
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13.5px; line-height: 1.8;
  max-height: 480px; overflow-y: auto;
}
.summary-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* 푸터 버튼 */
.wizard-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.btn-ghost {
  font: inherit; font-size: 15px; font-weight: 700;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 14px 26px; border-radius: 99px;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(27,25,22,0.35); }
.btn-ghost:disabled { opacity: 0.3; cursor: default; }
.wizard-foot .btn { cursor: pointer; border: none; font: inherit; font-weight: 800; font-size: 16px; }

@media (max-width: 600px) {
  .wizard { padding-top: 100px; }
  .stepper li { font-size: 12px; padding: 7px 11px; }
}

/* ===== 키워드 워크숍 ===== */
.kw-sec { margin-top: 22px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kw-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.kw-chip:hover { border-color: var(--accent); }
.kw-slang { color: var(--accent); border-color: rgba(217,72,43,0.3); }
.kw-combos { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.kw-combo {
  text-align: left; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 14px 16px; background: #fff; cursor: pointer; font: inherit;
  transition: box-shadow .2s, transform .2s;
}
.kw-combo:hover { box-shadow: 0 8px 22px rgba(217,72,43,0.1); transform: translateY(-1px); }
.kw-combo b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.kw-combo span { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-dim); line-height: 1.5; }
