/* ============================================
   RE;fy 초보자 매뉴얼 — 이미지·화면 중심 (v3.23)
   ============================================ */
.manual-shell {
  max-width: min(920px, 96vw) !important;
  width: 100%;
  max-height: min(92vh, 960px);
  padding: 0 !important;
  text-align: left !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 18px !important;
  border: 1px solid #E0E0E0;
}

.manual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #006241 0%, #004b31 100%);
  color: #fff;
  flex-shrink: 0;
}

.manual-header h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 1.2rem !important;
  font-weight: 800;
}

.manual-role-badge {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.35);
  white-space: nowrap;
}

.manual-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #f4f4f0;
  border-bottom: 1px solid #e0e0e0;
  overflow-x: auto;
  flex-shrink: 0;
}

.manual-tab,
.man-tab {
  flex: 0 0 auto;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #444;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.manual-tab.active,
.man-tab.on,
.man-tab.active {
  background: #006241 !important;
  color: #fff !important;
  border-color: #006241 !important;
}

.manual-scroll {
  overflow-y: auto;
  padding: 18px 18px 20px;
  flex: 1;
  min-height: 0;
  background: #F9F9F6;
}

.manual-footer {
  padding: 12px 16px;
  border-top: 1px solid #e8e8e4;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.manual-footer .btn {
  width: auto !important;
  min-width: 140px;
  min-height: 46px;
  font-weight: 800 !important;
}

/* Hero */
.man-hero {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.man-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f5ef, #d4ebe0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
  border: 1px solid #cfe8dc;
}
.man-hero h4 {
  margin: 0 0 6px;
  color: #006241;
  font-size: 1.2rem;
  font-weight: 800;
}
.man-hero p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Section */
.man-sec,
.man-section {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 16px;
  padding: 16px 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.man-sec-title,
.man-section h4,
.man-section h5 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.man-sec-body p,
.man-section p {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Steps */
.man-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.man-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fafaf8;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
}
.man-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #006241;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.man-step-body strong {
  display: block;
  margin-bottom: 4px;
  color: #222;
  font-size: 0.95rem;
}
.man-step-body span {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Callouts */
.man-tip, .man-warn, .man-ok, .man-callout {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 10px;
}
.man-tip { background: #eef6ff; border-left: 4px solid #3182ce; color: #1e4e8c; }
.man-warn { background: #fff5f5; border-left: 4px solid #e53e3e; color: #9b2c2c; }
.man-ok, .man-callout.ok { background: #e8f5ef; border-left: 4px solid #006241; color: #004b31; }
.man-callout { background: #fff8f0; border-left: 4px solid #C28E61; color: #6b4423; }

/* ===== 큰 흐름 카드 ===== */
.man-flow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 4px;
}
@media (max-width: 700px) {
  .man-flow-cards { grid-template-columns: 1fr; }
}
.man-flow-card {
  background: linear-gradient(180deg, #f3fbf7 0%, #fff 70%);
  border: 2px solid #cfe8dc;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
}
.man-flow-card .n {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #006241;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.man-flow-card .ic { font-size: 1.8rem; margin-bottom: 6px; }
.man-flow-card .t { font-weight: 800; font-size: 0.92rem; color: #006241; margin-bottom: 4px; }
.man-flow-card .d { font-size: 0.78rem; color: #666; line-height: 1.4; }

/* ===== PC 화면 목업 ===== */
.man-desk {
  margin: 12px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  background: #fff;
}
.man-desk-bar {
  background: #2c2c2c;
  color: #ddd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.man-desk-dots span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}
.man-desk-dots span:nth-child(1) { background: #ff5f57; }
.man-desk-dots span:nth-child(2) { background: #febc2e; }
.man-desk-dots span:nth-child(3) { background: #28c840; }
.man-desk-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 200px;
}
@media (max-width: 600px) {
  .man-desk-body { grid-template-columns: 1fr; }
  .man-desk-side { display: none !important; }
}
.man-desk-side {
  background: #f0f4f2;
  border-right: 1px solid #e0e0e0;
  padding: 10px 8px;
  font-size: 0.72rem;
}
.man-desk-side .mi {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 700;
  color: #444;
}
.man-desk-side .mi.on {
  background: #006241;
  color: #fff;
}
.man-desk-main {
  padding: 14px;
  background: #F9F9F6;
}
.man-desk-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #006241;
  margin-bottom: 10px;
}
.man-fake-input {
  background: #fff;
  border: 2px solid #006241;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.man-fake-btn {
  display: inline-block;
  background: #006241;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 8px;
  margin: 4px 4px 0 0;
}
.man-fake-btn.sec {
  background: #fff;
  color: #006241;
  border: 1px solid #006241;
}
.man-fake-btn.orange {
  background: #C28E61;
  border: none;
}
.man-fake-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #006241;
  margin: 10px 0 4px;
}
.man-fake-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e4;
}
.man-fake-table th {
  background: #e8f5ef;
  padding: 8px;
  text-align: left;
  font-weight: 800;
  color: #006241;
}
.man-fake-table td {
  padding: 8px;
  border-top: 1px solid #f0f0f0;
  color: #444;
}
.man-check {
  color: #006241;
  font-weight: 900;
}

/* 사진 패널 */
.man-photo {
  margin: 12px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #111;
  position: relative;
}
.man-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.man-photo .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 20px 14px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

/* 두 칸 비교 */
.man-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
@media (max-width: 600px) {
  .man-split { grid-template-columns: 1fr; }
}
.man-split-card {
  border-radius: 12px;
  padding: 12px;
  border: 2px solid #e0e0e0;
  background: #fff;
}
.man-split-card.good { border-color: #006241; background: #f3fbf7; }
.man-split-card.bad { border-color: #e53e3e; background: #fff8f8; }
.man-split-card h6 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
}
.man-split-card.good h6 { color: #006241; }
.man-split-card.bad h6 { color: #c53030; }
.man-split-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.45;
}

/* 라벨 목업 */
.man-label-big {
  max-width: 280px;
  margin: 12px auto;
  background: #fff;
  border: 2px solid #222;
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.man-label-big .name {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #222;
}
.man-label-big .bars {
  height: 36px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  margin: 8px 0;
}
.man-label-big .bars i {
  display: block;
  background: #111;
  height: 100%;
  border-radius: 1px;
}
.man-label-big .price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #006241;
}
.man-label-big .online {
  font-size: 0.75rem;
  color: #999;
  text-decoration: line-through;
}

/* 손가락 포인터 강조 */
.man-point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  color: #e65100;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 6px 0;
}

/* 갤러리 3단 */
.man-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}
@media (max-width: 700px) {
  .man-gallery { grid-template-columns: 1fr; }
}
.man-gallery-item {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.man-gallery-item .thumb {
  height: 100px;
  background: #e8f5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border-bottom: 1px solid #e8e8e4;
}
.man-gallery-item .txt {
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  text-align: center;
}

/* 기존 호환 */
.man-illust {
  background: #f3fbf7;
  border: 1px dashed #9dcfb8;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
}
.man-illust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.man-illust-box {
  background: #fff;
  border: 2px solid #006241;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #006241;
}
.man-illust-arrow {
  font-size: 1.2rem;
  color: #C28E61;
  font-weight: 900;
}

/* Phone (모바일 참고용 축소) */
.man-phone {
  max-width: 220px;
  margin: 0 auto;
  background: #111;
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.man-phone-notch {
  width: 40%;
  height: 8px;
  background: #222;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 8px;
}
.man-phone-screen {
  background: #1a1a1a;
  border-radius: 14px;
  min-height: 160px;
  padding: 12px;
  color: #fff;
}
