/* newlab — 미니멀 한국형 디자인 */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "맑은 고딕", sans-serif;
  color: #222; line-height: 1.55;
  /* Anthropic 브랜딩 톤 — 진한 샌드/황톤 */
  background: #efeae0;
  /* 옅은 글로우로 깊이감 추가 (강도 증가) */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(217, 119, 87, 0.04) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(217, 119, 87, 0.03) 0, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: #1f6feb; text-decoration: none; }
a:hover { text-decoration: underline; }

.nl-wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 80px; }
.nl-narrow { max-width: 440px; }
.nl-header { margin-bottom: 24px; }
.nl-header h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.5px; }
.nl-sub { color: #777; margin: 0; font-size: 14px; }
.nl-header-step { display: flex; align-items: center; gap: 12px; }
.nl-header-step h1 { font-size: 22px; }

.nl-card { background: #fff; border: 1px solid #ddd5c0; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(217, 119, 87, 0.04); }
.nl-section-title { font-size: 15px; color: #555; margin: 24px 0 10px; font-weight: 600; }

/* Buttons */
.nl-btn { display: inline-block; padding: 10px 18px; border-radius: 6px; border: 1px solid #ddd; background: #fff; color: #333; font-size: 14px; cursor: pointer; text-align: center; }
.nl-btn:hover { background: #f3f3f3; text-decoration: none; }
.nl-btn-primary { background: #222; color: #fff; border-color: #222; }
.nl-btn-primary:hover { background: #000; color: #fff; }
.nl-btn-ghost { background: transparent; border-color: #ccc; color: #555; }
.nl-btn-warn { background: #fff7e6; border-color: #f0b86b; color: #8a5500; }
.nl-btn-block { display: block; width: 100%; }
.nl-btn-small { padding: 6px 12px; font-size: 12px; }
.nl-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Form */
.nl-form label { display: block; margin-bottom: 14px; font-size: 14px; color: #444; }
.nl-form input[type=text],
.nl-form input[type=email],
.nl-form input[type=password],
.nl-form input[type=tel],
.nl-form textarea {
  display: block; width: 100%; padding: 10px 12px; margin-top: 6px;
  border: 1px solid #d0d0d0; border-radius: 5px; font-size: 14px;
  font-family: inherit; background: #fff;
}
.nl-form textarea { min-height: 80px; resize: vertical; }
.nl-form input:focus, .nl-form textarea:focus { outline: none; border-color: #888; }

.nl-muted { color: #999; font-size: 12px; }
.nl-center { text-align: center; margin-top: 18px; font-size: 13px; }
.nl-breadcrumb { font-size: 13px; margin: 0 0 12px; }

.nl-alert { background: #fff0f0; border: 1px solid #f5b5b5; color: #a02020; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.nl-success { background: #eaf7ea; border: 1px solid #b5e0b5; color: #1d6020; padding: 12px 16px; border-radius: 6px; }
.nl-success-soft { background: #f3f9f3; color: #2d6a2d; padding: 8px 12px; border-radius: 5px; margin-bottom: 14px; font-size: 13px; }

/* Menu (entry) */
.nl-menu { display: grid; gap: 10px; margin-top: 12px; }
.nl-menu-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; color: #222; }
.nl-menu-item:hover { background: #f7f7f7; text-decoration: none; }
.nl-menu-num { width: 28px; height: 28px; line-height: 28px; text-align: center; background: #222; color: #fff; border-radius: 50%; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.nl-menu-title { font-weight: 600; flex: 1; }
.nl-menu-desc { color: #888; font-size: 13px; }

/* Progress */
.nl-progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nl-progress-bar { flex: 1; height: 10px; background: #eee; border-radius: 5px; overflow: hidden; }
.nl-progress-fill { height: 100%; background: #222; transition: width .3s; }
.nl-progress-text { font-size: 13px; color: #555; white-space: nowrap; }
.nl-progress-mini { width: 110px; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; }
.nl-progress-mini-fill { height: 100%; background: #222; }

/* Step list */
.nl-step-list { list-style: none; padding: 0; margin: 0; }
.nl-step-item { margin-bottom: 6px; }
.nl-step-item a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; color: #222; }
.nl-step-item a:hover { background: #f7f7f7; text-decoration: none; }
.nl-step-no { width: 28px; height: 28px; line-height: 28px; text-align: center; background: #f0f0f0; color: #555; border-radius: 50%; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.nl-step-title { flex: 1; }
.nl-step-status { font-size: 12px; color: #777; white-space: nowrap; }

.nl-step-done .nl-step-no { background: #222; color: #fff; }
.nl-step-stuck a { border-color: #f0b86b; background: #fff9ed; }
.nl-step-doing a { border-color: #b0d4f5; }

/* Step page */
.nl-step-badge { background: #222; color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; letter-spacing: 0.5px; }
.nl-step-desc { font-size: 15px; line-height: 1.7; margin-bottom: 16px; color: #333; }
.nl-step-desc code { background: #f3f3f3; padding: 2px 6px; border-radius: 3px; font-size: 13px; font-family: "SF Mono", Consolas, monospace; }
.nl-step-desc b { color: #111; }
.nl-step-nav { display: flex; justify-content: space-between; margin-top: 16px; }

/* Command box (legacy) */
.nl-cmd-box { background: #1e1e1e; color: #f0f0f0; border-radius: 6px; padding: 14px 16px; margin: 14px 0 20px; position: relative; }
.nl-cmd-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.nl-cmd { margin: 0; font-family: "SF Mono", Consolas, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; color: #e0ffd0; }
.nl-cmd-box .nl-btn-small { position: absolute; top: 10px; right: 10px; background: #444; color: #fff; border-color: #555; }
.nl-cmd-box .nl-btn-small:hover { background: #555; }

/* Terminal simulation */
.nl-terminal {
  margin: 14px 0 4px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
}
.nl-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #2a2a2a;
  position: relative;
}
.nl-tdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.nl-tdot-r { background: #ff5f57; }
.nl-tdot-y { background: #febc2e; }
.nl-tdot-g { background: #28c840; }
.nl-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #c0c0c0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: 0.3px;
}
.nl-terminal-copy {
  background: rgba(255,255,255,0.08);
  color: #d8d8d8;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.nl-terminal-copy:hover { background: rgba(255,255,255,0.16); color: #fff; }
.nl-terminal-body {
  padding: 14px 16px 16px;
  font-family: "SF Mono", Menlo, Consolas, "D2Coding", monospace;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
  min-height: 70px;
}
.nl-tline { display: block; }
.nl-tprompt { display: inline-block; margin-right: 8px; opacity: 0.85; user-select: none; }
.nl-tcmd { white-space: pre-wrap; }
.nl-tcursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  vertical-align: text-bottom;
  background: currentColor;
  animation: nl-blink 1s steps(2, start) infinite;
}
@keyframes nl-blink {
  to { visibility: hidden; }
}

/* PowerShell (파란 배경) */
.nl-terminal-powershell .nl-terminal-body {
  background: #012456;
  color: #eeeeee;
}
.nl-terminal-powershell .nl-tprompt { color: #c8d8ff; }
.nl-terminal-powershell .nl-tcmd { color: #ffffff; }

/* Ubuntu / WSL (자주색 헤더 + 검은 바탕) */
.nl-terminal-ubuntu .nl-terminal-body {
  background: #1e1e1e;
  color: #e8e8e8;
}
.nl-terminal-ubuntu .nl-tprompt { color: #87d787; }
.nl-terminal-ubuntu .nl-tcmd { color: #ffffff; }

/* Mobile */
@media (max-width: 600px) {
  .nl-terminal-body { font-size: 12px; padding: 12px 12px 14px; }
  .nl-terminal-title { font-size: 11px; }
}

/* Table */
.nl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nl-table th, .nl-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.nl-table th { background: #fafafa; font-weight: 600; font-size: 13px; color: #555; }
.nl-row-warn { background: #fff9ed; }
.nl-warn-text { color: #b06000; font-weight: 600; }

.nl-tag { display: inline-block; padding: 2px 8px; background: #eee; border-radius: 10px; font-size: 11px; color: #555; margin-left: 4px; }
.nl-tag-ok { background: #e0f0e0; color: #1d6020; }
.nl-tag-warn { background: #fde6c8; color: #8a5500; }
.nl-tag-muted { background: #f0f0f0; color: #888; }

.nl-footer { text-align: center; margin-top: 40px; color: #aaa; font-size: 12px; }

/* Q&A thread */
.nl-qa { background: #fcfcf7; }
.nl-thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px 2px; }
.nl-msg { padding: 10px 14px; border-radius: 10px; max-width: 88%; font-size: 14px; line-height: 1.55; }
.nl-msg-member { background: #f0f0f0; align-self: flex-start; border-bottom-left-radius: 3px; }
.nl-msg-admin { background: #fff8d9; align-self: flex-end; border: 1px solid #f0d068; border-bottom-right-radius: 3px; }
.nl-msg-meta { font-size: 11px; color: #777; margin-bottom: 4px; }
.nl-msg-body { white-space: pre-wrap; word-break: break-word; }
.nl-msg-body code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 3px; font-family: "SF Mono", Consolas, monospace; font-size: 12.5px; }
.nl-step-answered a { border-color: #b5e0b5; background: #f3f9f3; }

/* Kakao quick send */
.nl-kakao-row { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #ddd; }
.nl-btn-kakao { background: #fee500; color: #3c1e1e; border-color: #f0d840; font-weight: 600; }
.nl-btn-kakao:hover { background: #ffe940; }
.nl-btn-remote { background: #2563eb; color: #fff; border-color: #1e4ec5; font-weight: 600; }
.nl-btn-remote:hover { background: #1e4ec5; color: #fff; }

/* Toggle: 완료 상태 버튼 (다시 미완료로 되돌리는 토글) */
.nl-btn-done-toggle {
  background: #1d6020;
  color: #fff;
  border-color: #144a17;
  font-weight: 600;
  position: relative;
}
.nl-btn-done-toggle:hover {
  background: #144a17;
  color: #fff;
  text-decoration: none;
}
.nl-btn-done-toggle::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
}

/* 상태 배지 — 버튼 옆 현재 상태 표시 */
.nl-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: #f0f0f0;
  color: #555;
  margin-left: auto;
}
.nl-status-done     { background: #e0f0e0; color: #1d6020; }
.nl-status-doing    { background: #e3edfb; color: #1f4d8f; }
.nl-status-stuck    { background: #fde6c8; color: #8a5500; }
.nl-status-answered { background: #fff8d9; color: #7a5a00; }

/* Gallery (완료 인증샷) */
.nl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.nl-gallery-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.nl-gallery-item img { width: 100%; height: 140px; object-fit: cover; display: block; background: #f0f0f0; }
.nl-gallery-item:hover img { opacity: 0.9; }
.nl-gallery-meta { padding: 8px 10px; font-size: 13px; flex: 1; }
.nl-form input[type=file] { padding: 8px; background: #f7f7f7; border: 1px dashed #c0c0c0; cursor: pointer; }
@media (max-width: 600px) {
  .nl-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nl-gallery-item img { height: 110px; }
}

/* Mobile */
@media (max-width: 600px) {
  .nl-wrap { padding: 20px 14px 60px; }
  .nl-card { padding: 16px; }
  .nl-table { font-size: 13px; }
  .nl-table th, .nl-table td { padding: 8px; }
  .nl-progress-mini { width: 70px; }
  .nl-btn-row { flex-direction: column; }
  .nl-btn-row .nl-btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
 * ci-*  Claude Code 설치 가이드 — 메인 페이지 전용
 * (기존 nl-* 와 격리, 메인 외 페이지에 영향 없음)
 * ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
 * Claude Code 로고 (인라인 SVG · ✻ 별 모티프)
 * ═══════════════════════════════════════════════════════════ */
.ci-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ci-logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 87, 0.2));
}
.ci-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #d97757;
  letter-spacing: -0.2px;
}
.ci-logo-sm .ci-logo-svg { width: 28px; height: 28px; }
.ci-logo-sm .ci-logo-text { font-size: 13px; }
.ci-logo-lg .ci-logo-svg { width: 64px; height: 64px; }

/* 단계 페이지 우측 상단 워터마크 */
.ci-logo-corner {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

/* 완료 페이지 회전 애니메이션 (subtle) */
.ci-logo-spin {
  animation: ci-spin-slow 14s linear infinite;
  transform-origin: center;
}
@keyframes ci-spin-slow {
  to { transform: rotate(360deg); }
}

/* 푸터 미니 별 */
.ci-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ci-footer-star {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
 * 미니 터미널 일러스트 (Claude Code 실행 화면 모방)
 * ═══════════════════════════════════════════════════════════ */
.ci-mini-term {
  margin: 0 0 18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  background: #1a1a1a;
}
.ci-mini-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #2a2a2a;
}
.ci-mini-term-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ci-mini-term-dot-r { background: #ff5f57; }
.ci-mini-term-dot-y { background: #febc2e; }
.ci-mini-term-dot-g { background: #28c840; }
.ci-mini-term-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #c0c0c0;
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: 0.3px;
}
.ci-mini-term-body {
  padding: 14px 16px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: #e8e8e8;
  background: #1a1a1a;
}
.ci-mini-term-line { display: block; }
.ci-mini-term-prompt {
  color: #87d787;
  margin-right: 8px;
  user-select: none;
}
.ci-mini-term-cmd { color: #ffffff; }
.ci-mini-term-out {
  color: #d8d8d8;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ci-mini-term-star {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.ci-mini-term-user .ci-mini-term-prompt {
  color: #d97757;
}
.ci-mini-term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  vertical-align: text-bottom;
  background: #d97757;
  animation: nl-blink 1s steps(2, start) infinite;
  margin-left: 2px;
}

/* ─── HERO ─── */
.ci-hero {
  text-align: center;
  padding: 36px 16px 28px;
  margin-bottom: 20px;
  /* 크림 베이지 배경에 자연스럽게 녹아드는 흰색 카드 */
  background: linear-gradient(180deg, #fdfcf7 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #ddd5c0;
  box-shadow: 0 1px 3px rgba(217, 119, 87, 0.05);
}
.ci-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #222;
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.ci-hero-title {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
  color: #111;
  font-weight: 700;
}
.ci-hero-accent {
  color: #2563eb;
  position: relative;
  white-space: nowrap;
}
.ci-hero-sub {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 22px;
}
.ci-trust-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #ddd;
}
.ci-trust-item {
  min-width: 110px;
  padding: 10px 14px;
}
.ci-trust-num {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}
.ci-trust-unit {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  margin-left: 2px;
}
.ci-trust-label {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

/* ─── 로그인 후 — 진행 카드 ─── */
.ci-resume-card { padding: 24px; }
.ci-resume-greet { font-size: 16px; margin-bottom: 14px; }
.ci-resume-progress { margin: 14px 0; }
.ci-resume-pct { font-size: 13px; color: #555; margin-top: 6px; }
.ci-resume-msg { font-size: 14px; color: #555; margin: 10px 0 16px; }
.nl-btn-lg { padding: 12px 22px; font-size: 15px; font-weight: 600; }

/* ─── h2 (메인 페이지 섹션 제목) ─── */
.ci-h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: #111;
  letter-spacing: -0.3px;
  font-weight: 700;
}

/* ─── 설명 카드 ─── */
.ci-explain-lead {
  font-size: 14.5px;
  line-height: 1.75;
  background: #fffbe8;
  border-left: 3px solid #f0c850;
  padding: 12px 14px;
  border-radius: 4px;
  margin: 0 0 18px;
  color: #444;
}
.ci-bullets { display: grid; gap: 14px; }
.ci-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ci-bullet-icon {
  width: 38px;
  height: 38px;
  background: #f4f4f4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ci-bullet b { display: block; font-size: 14.5px; color: #111; margin-bottom: 3px; }
.ci-bullet p { margin: 0; font-size: 13px; color: #666; line-height: 1.5; }

/* ─── 준비물 리스트 ─── */
.ci-prep-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}
.ci-prep-list li {
  padding: 9px 12px;
  background: #f7f9f7;
  border-radius: 6px;
  border-left: 3px solid #b5e0b5;
}

/* ─── 로드맵 ─── */
.ci-roadmap-sub { font-size: 13px; color: #777; margin: 0 0 16px; }
.ci-roadmap-grid {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: space-between;
}
.ci-roadmap-phase {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  min-width: 0;
}
.ci-roadmap-phase-num {
  display: inline-block;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 11px;
  color: #777;
  font-weight: 600;
  margin-bottom: 6px;
}
.ci-roadmap-phase-title { font-size: 13px; font-weight: 600; color: #222; margin-bottom: 2px; }
.ci-roadmap-phase-desc { font-size: 11px; color: #888; }
.ci-roadmap-final { background: #f0f7ff; border-color: #b5d4f0; }
.ci-roadmap-final .ci-roadmap-phase-num { background: #2563eb; color: #fff; border-color: #2563eb; }
.ci-roadmap-final .ci-roadmap-phase-title { color: #1a4ec5; }
.ci-roadmap-arrow { color: #ccc; font-size: 14px; flex-shrink: 0; }

/* ─── 안심 포인트 ─── */
.ci-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ci-safety-item {
  padding: 14px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #ececec;
}
.ci-safety-icon { font-size: 22px; margin-bottom: 6px; }
.ci-safety-item b { display: block; font-size: 13.5px; color: #222; margin-bottom: 4px; }
.ci-safety-item p { margin: 0; font-size: 12.5px; color: #666; line-height: 1.55; }

/* ─── 메인 CTA ─── */
.ci-cta-card {
  background: linear-gradient(135deg, #222 0%, #444 100%);
  color: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  margin: 22px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.ci-cta-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.ci-cta-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.ci-cta-btn {
  background: #fff;
  color: #222;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ci-cta-btn:hover {
  background: #f5f5f5;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ci-cta-foot {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}
.ci-cta-foot a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── FAQ (아코디언) ─── */
.ci-faq-item {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.ci-faq-item:last-child { border-bottom: none; }
.ci-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.ci-faq-item summary::-webkit-details-marker { display: none; }
.ci-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  font-weight: 400;
}
.ci-faq-item[open] summary::after { content: '−'; }
.ci-faq-item summary:hover { color: #2563eb; }
.ci-faq-item p {
  margin: 10px 0 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #555;
  padding-left: 4px;
}

/* ─── 메인 페이지 모바일 대응 ─── */
@media (max-width: 600px) {
  .ci-hero { padding: 28px 14px 22px; }
  .ci-hero-title { font-size: 24px; }
  .ci-hero-sub { font-size: 14px; }
  .ci-trust-row { gap: 4px; }
  .ci-trust-item { min-width: 0; padding: 8px 10px; }
  .ci-trust-num { font-size: 18px; }
  .ci-roadmap-grid { flex-wrap: wrap; gap: 8px; }
  .ci-roadmap-phase { min-width: 42%; }
  .ci-roadmap-arrow { display: none; }
  .ci-safety-grid { grid-template-columns: 1fr; }
  .ci-cta-card { padding: 24px 16px; }
  .ci-cta-title { font-size: 18px; }
  .ci-cta-btn { padding: 12px 24px; font-size: 14px; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
 * 관리자 페이지 — 회원 페이지와 동일 톤
 * ═══════════════════════════════════════════════════════════ */

.ci-hero-admin {
  background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%);
  border-color: #e0e6ed;
}
.ci-hero-admin .ci-hero-badge { background: #2563eb; }
.ci-hero-admin .ci-hero-title { text-align: center; }

/* 회원/관리자 상태 라벨 (제목 옆) */
.ci-admin-status {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  vertical-align: middle;
  letter-spacing: 0;
}
.ci-admin-status-ok    { background: #e0f0e0; color: #1d6020; }
.ci-admin-status-doing { background: #e3edfb; color: #1f4d8f; }
.ci-admin-status-warn  { background: #fde6c8; color: #8a5500; }
.ci-admin-status-muted { background: #f0f0f0; color: #777; }

/* 신뢰 지표 — 경고 강조 */
.ci-trust-num-warn { color: #c05500; }

/* 관리자 진행률 바 (회원 상세) */
.ci-admin-progress {
  max-width: 420px;
  margin: 18px auto 0;
}

/* 관리자 섹션 카드들 */
.ci-admin-completions {
  background: #fffbe8;
  border-color: #f0d068;
}
.ci-admin-thread { background: #fcfcf7; }
.ci-admin-celebrate {
  background: linear-gradient(135deg, #fffbe6 0%, #fff5d0 100%);
  border-color: #f0d068;
}
.ci-admin-list-sub {
  font-size: 13px;
  color: #777;
  margin: 0 0 14px;
}

/* 답변 폼 강조 */
.ci-admin-reply textarea {
  min-height: 110px;
  font-size: 14px;
  line-height: 1.6;
}
.ci-admin-reply code {
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
}

/* 현재 열린 단계 행 강조 */
.ci-row-open {
  background: #f0f7ff !important;
  box-shadow: inset 3px 0 0 #2563eb;
}

/* 관리자 페이지 모바일 */
@media (max-width: 600px) {
  .ci-hero-admin .ci-hero-title { font-size: 20px; }
  .ci-admin-status {
    display: block;
    margin: 8px auto 0;
    width: fit-content;
    font-size: 12px;
  }
  .ci-admin-reply textarea { min-height: 90px; }
}

/* ───── 관리자 상세 — 회원이 본 화면 미리보기 토글 ───── */
.ci-step-peek-row {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
.ci-step-peek {
  background: #fafbfc;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  overflow: hidden;
}
.ci-step-peek summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2563eb;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.ci-step-peek summary::-webkit-details-marker { display: none; }
.ci-step-peek summary::before {
  content: '▸';
  display: inline-block;
  font-size: 11px;
  color: #999;
  transition: transform 0.15s;
  margin-right: 2px;
}
.ci-step-peek[open] summary::before { transform: rotate(90deg); }
.ci-step-peek summary:hover { background: #f0f5fb; }
.ci-step-peek-hint {
  font-size: 11px;
  color: #999;
  font-weight: 400;
  margin-left: auto;
}
.ci-step-peek-body {
  padding: 14px 16px 16px;
  border-top: 1px solid #e0e6ed;
  background: #fff;
}
.ci-step-peek-link {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: #f0f5fb;
  border: 1px solid #b5cfe8;
  border-radius: 5px;
  font-size: 12px;
  color: #1f4d8f;
}
.ci-step-peek-link:hover { background: #e3edfb; text-decoration: none; }
.ci-step-peek-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: #444;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.ci-step-peek-content h4 { font-size: 14px; margin: 12px 0 4px; color: #222; }
.ci-step-peek-content code {
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
}
.ci-step-peek-content ul, .ci-step-peek-content ol { padding-left: 22px; }

.ci-step-peek-cmd-label {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.ci-step-peek-cmd {
  margin: 0;
  padding: 12px 14px;
  background: #1e1e1e;
  color: #e0ffd0;
  border-radius: 6px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.ci-step-peek-hint-box {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fffbe6;
  border-left: 3px solid #f0c850;
  border-radius: 4px;
  font-size: 12.5px;
  color: #6a4a00;
}
.ci-step-peek-hint-box code {
  background: rgba(0,0,0,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: "SF Mono", Consolas, monospace;
}

.ci-step-peek-input { background: #f7fbf7; border-color: #c8e0c8; }
.ci-step-peek-input summary { color: #1d6020; }
.ci-step-peek-input summary:hover { background: #ebf5eb; }

.ci-step-peek-userinput {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d0d8d0;
  border-left: 3px solid #4ca84c;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "맑은 고딕", sans-serif;
  color: #222;
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════
 * 가이드 페이지 — 회원/관리자 페이지와 동일 톤
 * ═══════════════════════════════════════════════════════════ */

/* HERO 변형 */
.ci-hero-guide {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
  border-color: #dee5ee;
}
.ci-hero-guide .ci-hero-badge { background: #2563eb; }

.ci-hero-step {
  background: linear-gradient(135deg, #222 0%, #1a3a6e 100%);
  color: #fff;
  border: none;
  padding: 28px 20px 22px;
  text-align: left;
  position: relative;
}
.ci-hero-step .ci-step-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 11px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.ci-step-hero-title {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.5px;
  font-weight: 700;
  line-height: 1.4;
}
.ci-step-hero-progress {
  margin-top: 16px;
  max-width: 360px;
}
.ci-step-hero-progress .nl-progress-bar {
  background: rgba(255,255,255,0.15);
  height: 6px;
}
.ci-step-hero-progress .nl-progress-fill {
  background: #fff;
}

.ci-hero-complete {
  background: linear-gradient(135deg, #fffbe6 0%, #fff5cc 100%);
  border-color: #f0d068;
  text-align: center;
}
.ci-hero-badge-celebrate {
  background: #c08a00 !important;
  font-weight: 600;
}

/* 가이드 목록 진행률 */
.ci-guide-progress {
  max-width: 480px;
  margin: 12px auto 18px;
}
.ci-guide-progress-text {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin-top: 6px;
}

/* CTA — 가이드 목록의 "다음 단계 진행" 카드 */
.ci-cta-guide {
  margin-top: 0;
  background: linear-gradient(135deg, #1a3a6e 0%, #2563eb 100%);
}

/* 신뢰지표 — 새 답변 강조 */
.ci-trust-num-ok { color: #1d8024; }

/* 단계 리스트 — 다음 단계 강조 */
.ci-step-next a {
  border-color: #2563eb !important;
  background: #f0f7ff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}
.ci-step-next .nl-step-no {
  background: #2563eb !important;
  color: #fff !important;
}
.ci-step-next-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  font-weight: 500;
  vertical-align: middle;
}

.ci-guide-steps-sub {
  font-size: 13px;
  color: #777;
  margin: 0 0 14px;
}

/* breadcrumb 구분선 */
.ci-bc-sep { color: #ccc; margin: 0 4px; }

/* 단계 이동 네비 (이전/다음 카드형) */
.ci-step-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.ci-step-nav-item {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  min-height: 70px;
  transition: all 0.15s;
}
.ci-step-nav-item:hover {
  background: #f7f9fc;
  border-color: #b5cfe8;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.ci-step-nav-next, .ci-step-nav-finish { text-align: right; }
.ci-step-nav-finish {
  background: linear-gradient(135deg, #fffbe6 0%, #fff5cc 100%);
  border-color: #f0d068;
}
.ci-step-nav-dir { font-size: 12px; color: #888; margin-bottom: 4px; }
.ci-step-nav-no  { font-size: 11px; color: #2563eb; font-weight: 700; letter-spacing: 0.5px; }
.ci-step-nav-title { font-size: 14px; font-weight: 600; color: #222; margin-top: 2px; line-height: 1.4; }
.ci-step-nav-finish .ci-step-nav-no { color: #c08a00; }

/* 완료 페이지 — 방금 올린 인증샷 */
.ci-complete-just {
  background: #fffbe8;
  border-color: #f0d068;
  text-align: center;
}
.ci-complete-just-banner {
  font-size: 16px;
  font-weight: 700;
  color: #8a5500;
  margin-bottom: 14px;
}
.ci-complete-just-img {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid #f0d068;
  display: block;
  margin: 0 auto;
}
.ci-complete-just-comment {
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  display: inline-block;
}

/* 완료 페이지 — 업로드 카드 */
.ci-complete-upload { background: #fcfcfa; }
.ci-complete-howto {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f0f7ff;
  border-left: 3px solid #2563eb;
  border-radius: 4px;
  line-height: 1.7;
  font-size: 14px;
  color: #333;
}
.ci-complete-howto code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
}

.ci-complete-history {}

/* 가이드 페이지 모바일 */
@media (max-width: 600px) {
  .ci-hero-step { padding: 22px 16px 18px; }
  .ci-step-hero-title { font-size: 20px; }
  .ci-step-nav { grid-template-columns: 1fr; }
  .ci-step-nav-next, .ci-step-nav-finish { text-align: left; }
  .ci-step-next-tag {
    display: inline-block;
    margin: 4px 0 0 0;
    font-size: 10px;
  }
}
