/* ============================================================
   전문의 피부과 상담 책자 - 공통 컬러 시스템 & 타이포
   딥 그린-그레이 + 웜 아이보리 + 소프트 골드 (저채도 프리미엄)
   ============================================================ */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* ============================================================
     쿨 그레이지 기반 상담실 가격표 컬러 시스템 (노란기 없음)
     배경 #F5F7F8 / 화이트 카드 / 딥차콜 제목 / 차콜그레이 포인트
     ============================================================ */
  --page-bg:      #f5f7f8;   /* 전체 배경 - 쿨 그레이지 */
  --card-bg:      #ffffff;   /* 가격 카드 영역 - 화이트 */
  --title-ink:    #222831;   /* 제목·주요 카테고리 - 딥 차콜 */
  --text-body:    #3f4650;   /* 본문 글자 */
  --text-mid:     #7a828c;   /* 보조 설명 - 쿨 그레이 */
  --text-row:     #3f4650;   /* 표 항목 글자(본문과 동일) */
  --line:         #dde2e6;   /* 구분선/테두리 - 연한 쿨그레이 */
  --row-line:     #dde2e6;   /* 표 행 구분선 */
  --box-border:   #dde2e6;   /* 표 박스 테두리 */
  --divider:      #dde2e6;   /* 세로 구분선/얇은 라인 */
  --accent:       #4b5563;   /* 포인트 - 차콜 그레이 (제한적 사용) */

  /* 하위호환용 별칭(기존 템플릿이 참조하던 변수명 유지) */
  --olive:        #4b5563;   /* → 차콜 그레이 포인트 */
  --olive-deep:   #3b424c;   /* → 차콜 그레이 진한 톤 */
  --price-box-bg: #f5f7f8;   /* 가격 영역 연한 박스 → 쿨 그레이지 */

  /* ---- 관리 UI 용 (쿨 그레이지로 통일) ---- */
  --bg-base:      #eef1f3;
  --card:         #ffffff;
  --card-2:       #eef1f3;
  --ink:          #222831;
  --ink-soft:     #3f4650;
  --ink-faint:    #7a828c;
  --green-deep:   #2b323b;
  --green-line:   #dde2e6;
  --gold:         #4b5563;
  --gold-soft:    #7a828c;
  --shadow:       0 8px 30px rgba(34, 40, 49, 0.08);
  --shadow-soft:  0 2px 12px rgba(34, 40, 49, 0.05);
  --radius:       16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ============================================================
   [뷰어 모드] 고객 상담 화면 - 화면 전체를 꽉 채움, 툴바 없음
   ============================================================ */
body.viewer {
  background: #000;
}

.viewer-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* 페이지 슬라이드 트랙 */
.viewer-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.viewer-page {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background: #fff;
  overflow: hidden;
}

/* 페이지 이미지 : 화면 전체를 꽉 채움 */
.viewer-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 이미지 없는 페이지(관리에서 등록 전) */
.viewer-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f5f7f8 0%, #eef1f3 100%);
  color: var(--ink-faint);
  font-size: 16px; font-weight: 500;
}

/* 좌우 넘김 터치/클릭 영역 (투명) */
.viewer-nav {
  position: fixed;
  top: 0; bottom: 0;
  width: 18%;
  z-index: 10;
  cursor: pointer;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.viewer-nav.left  { left: 0; }
.viewer-nav.right { right: 0; }

/* 하단 페이지 인디케이터 (점) - 아주 은은하게 */
.viewer-dots {
  position: fixed;
  bottom: 16px; left: 0; right: 0;
  display: flex; gap: 7px;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
}
.viewer-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  transition: all .2s ease;
}
.viewer-dots .dot.active {
  background: #fff;
  width: 20px; border-radius: 4px;
}

/* 관리 화면 진입 (아주 작고 은은하게, 좌하단 구석) */
/* 하단 우측 구석의 아주 작고 티 안 나는 텍스트 링크 */
.admin-entry {
  position: fixed;
  bottom: 8px; right: 12px;
  z-index: 20;
  font-family: "Pretendard", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(120, 130, 140, 0.28);
  text-decoration: none;
  padding: 4px 6px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: color .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* 평소엔 거의 인지되지 않고, 가까이 가면 살짝만 진해짐 */
.admin-entry:hover,
.admin-entry:focus { color: rgba(90, 100, 110, 0.6); opacity: 1; outline: none; }

/* ============================================================
   [관리 모드] /admin - 편집 화면
   ============================================================ */
body.admin {
  background: var(--bg-base);
  overflow: auto;
}

.admin-header {
  position: sticky;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: var(--green-deep);
  color: #eef1f3;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.admin-header .brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.admin-header .brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.admin-header .spacer { flex: 1; }

.abtn {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #eef1f3;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 9px; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.abtn:hover { background: rgba(255,255,255,0.14); }
.abtn.primary { background: var(--gold); border-color: var(--gold); color: #2b241a; }
.abtn.primary:hover { background: var(--gold-soft); }
.abtn svg { width: 15px; height: 15px; }
.abtn:disabled { opacity: 0.38; cursor: default; }
.abtn:disabled:hover { background: rgba(255,255,255,0.06); }

/* Undo/Redo 아이콘 버튼 */
.header-tools { display: flex; gap: 6px; }
.icon-btn { padding: 8px; }
.icon-btn svg { width: 17px; height: 17px; }

/* 검색 */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  padding: 0 10px;
  height: 38px;
  min-width: 260px;
  max-width: 340px;
}
.header-search .hs-icon { width: 16px; height: 16px; opacity: 0.8; flex: 0 0 auto; }
.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #eef1f3;
  font-family: inherit;
  font-size: 13px;
}
.header-search input::placeholder { color: rgba(238,241,243,0.6); }
.hs-clear {
  border: none; background: transparent;
  color: rgba(238,241,243,0.7);
  font-size: 20px; line-height: 1; cursor: pointer;
  padding: 0 2px; flex: 0 0 auto;
}
.hs-clear:hover { color: #fff; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  max-width: 80vw;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  color: var(--title-ink, #222831);
  border: 1px solid var(--line, #dde2e6);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  z-index: 60;
  padding: 6px;
}
.search-results::-webkit-scrollbar { width: 7px; }
.search-results::-webkit-scrollbar-thumb { background: rgba(75,85,99,0.28); border-radius: 4px; }
.sr-empty {
  padding: 16px 12px;
  color: var(--text-mid, #7a828c);
  font-size: 13px;
  text-align: center;
}
.sr-count {
  padding: 8px 10px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid, #7a828c);
  letter-spacing: 0.02em;
}
.sr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.sr-item:hover { background: rgba(75,85,99,0.08); }
.sr-item .sr-pageno {
  flex: 0 0 auto;
  min-width: 52px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--olive, #4b5563);
  border-radius: 999px;
  padding: 3px 8px;
  text-align: center;
}
.sr-item .sr-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-row, #333);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-item .sr-text mark {
  background: #ffe8a3;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.sr-item .sr-kind {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--text-mid, #7a828c);
}

@media (max-width: 720px) {
  .header-search { min-width: 150px; }
  .search-results { width: 300px; }
}

.admin-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 22px 80px;
}
.admin-hint {
  font-size: 14px; color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--green-line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  line-height: 1.7;
}
.admin-hint b { color: var(--ink); }

/* 페이지 카드 그리드 */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.page-card {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.page-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1180 / 820; /* iPad Air 11 가로 비율 */
  background: var(--card-2);
  overflow: hidden;
  cursor: pointer;
}
.page-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-card .thumb .empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  border: 1.5px dashed var(--green-line);
  color: var(--ink-faint);
}
.page-card .thumb .empty svg { width: 30px; height: 30px; color: var(--gold); }
.page-card .thumb .empty span { font-size: 13px; font-weight: 600; }

.page-card .thumb .badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(34,40,49,0.82);
  color: #f5f7f8;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px;
  backdrop-filter: blur(4px);
}
.page-card .thumb .num {
  position: absolute; top: 10px; right: 10px;
  background: rgba(34,40,49,0.82);
  color: #f5f7f8;
  font-size: 12px; font-weight: 700;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.page-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid var(--green-line);
}
.pbtn {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--green-line);
  background: var(--card-2);
  color: var(--ink);
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 6px; border-radius: 8px; cursor: pointer;
  transition: all .13s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.pbtn:hover { background: #e3e8eb; }
.pbtn svg { width: 13px; height: 13px; }
.pbtn.danger { color: #b5544a; }
.pbtn.danger:hover { background: #f0e4e2; }
.pbtn:disabled { opacity: 0.35; cursor: default; }

/* 새 페이지 추가 카드 */
.add-card {
  border: 1.5px dashed var(--green-line);
  border-radius: var(--radius);
  background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  min-height: 200px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.add-card:hover { background: var(--card); border-color: var(--gold-soft); color: var(--ink); }
.add-card svg { width: 34px; height: 34px; color: var(--gold); }
.add-card span { font-size: 14px; font-weight: 700; }

/* 관리 화면 하단 뷰어 링크 */
.admin-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 22px;
  background: var(--card);
  border-top: 1px solid var(--green-line);
  display: flex; justify-content: center; z-index: 40;
}

/* ============================================================
   가격표 템플릿 (시안 재현) - 뷰어/관리 공용
   .price-page 안에 .price-col 2개 (좌우 2단)
   ============================================================ */
.price-page {
  width: 100%;
  height: 100%;
  background: var(--page-bg);
  display: flex;
  align-items: stretch;
  position: relative;
  font-family: "Pretendard", sans-serif;
  padding: 3%;            /* 배경 여백 → 화이트 카드가 떠 보이도록 */
  gap: 3%;
  box-sizing: border-box;
}

/* 각 가격 컬럼을 화이트 카드로 분리 (쿨 그레이지 배경 위에 정돈) */
.price-col {
  flex: 1 1 50%;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 3.4% 3.2%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;   /* flex 자식 내부 스크롤 허용 */
}

/* 상단 라벨 배지 */
.pc-label {
  align-self: flex-start;
  background: var(--olive);
  color: #fff;
  font-size: clamp(9px, 1.05vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  line-height: 1.1;
  white-space: nowrap;
}

/* 메인 제목 */
.pc-title {
  color: var(--title-ink);
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 0.5em;
}

/* 제목 아래 얇은 구분선 */
.pc-underline {
  height: 1px;
  background: var(--divider);
  margin: 0.6em 0 0.75em;
  flex: 0 0 auto;
}

/* 설명 문구 (줄바꿈 보존) */
.pc-desc {
  color: var(--text-mid);
  font-size: clamp(12px, 1.35vw, 17px);
  line-height: 1.6;
  white-space: pre-wrap;   /* 입력한 줄바꿈 그대로 유지 */
  word-break: keep-all;
  margin-bottom: 1.35em;
}

/* 섹션 소제목 (세로 막대 + 텍스트) */
.pc-section {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: var(--title-ink);
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 18px);
  margin-bottom: 0.75em;
}
.pc-section .bar {
  width: 4px;
  height: 1.05em;
  background: var(--olive);
  border-radius: 2px;
  flex: 0 0 auto;
}

/* 구성 표 박스 : 남은 공간을 채우고 표만 내부 스크롤, 가격은 하단 고정 */
.pc-box {
  border: 1px solid var(--box-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--page-bg);   /* 화이트 카드 안에서 표 영역만 옅은 그레이지로 구분 */
  margin-top: 0;
  flex: 1 1 auto;      /* 남는 세로 공간 채움 */
  min-height: 0;       /* 내부 스크롤이 동작하도록 */
  display: flex;
  flex-direction: column;
}

.pc-rows {
  padding: 0.4em 1.15em;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;    /* 항목이 많아지면 표 영역만 스크롤(화면 변형 없음) */
  -webkit-overflow-scrolling: touch;
}
/* 표 스크롤바 : 은은하게 */
.pc-rows::-webkit-scrollbar { width: 6px; }
.pc-rows::-webkit-scrollbar-thumb { background: rgba(75, 85, 99,0.28); border-radius: 3px; }
.pc-rows::-webkit-scrollbar-track { background: transparent; }
.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.85em 0.15em;
  border-bottom: 1px solid var(--row-line);
}
.pc-row:last-child { border-bottom: none; }
.pc-row .name {
  color: var(--text-row);
  font-size: clamp(12px, 1.35vw, 17px);
  font-weight: 500;
  word-break: keep-all;
}
.pc-row .count {
  color: var(--text-row);
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 가격 영역 : 표 아래 항상 고정 노출. 금액이 가장 먼저 읽히도록 강조.
   라벨 · 숫자 · 원이 하나의 덩어리로 보이도록 baseline 정렬 + 자간/여백 통일 */
.pc-price {
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 1.15em 1.4em 0.75em;   /* 좌우 여백을 넉넉히(딱 붙지 않게) */
  margin-top: 0.2em;
  flex: 0 0 auto;      /* 절대 잘리지 않도록 고정 */
  display: flex;
  align-items: baseline;           /* 라벨·숫자·원 모두 같은 기준선에 정렬 */
  justify-content: space-between;
  gap: 1.2em;
}
.pc-price-label {
  color: var(--text-mid);
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: left;
  flex: 0 0 auto;
  white-space: nowrap;
}
.pc-price-amount {
  display: inline-flex;
  align-items: baseline;           /* 숫자와 원을 같은 기준선에 */
  justify-content: flex-end;
  gap: 0.28em;                      /* 숫자와 '원' 사이 넉넉한 간격 */
  flex: 0 0 auto;
}
.pc-price-value {
  color: var(--title-ink);         /* 딥 차콜 - 가장 선명하게 */
  font-size: clamp(26px, 3.6vw, 44px);   /* 과하지 않게 크기 축소 */
  font-weight: 700;                /* 살짝 얇게 (과한 굵기 완화) */
  letter-spacing: -0.02em;         /* 살짝 조여 넓어 보이던 느낌 완화 */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pc-price-unit {
  color: var(--text-mid);          /* 원은 한 톤 낮춰 숫자를 돋보이게 */
  font-size: clamp(13px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ---- 편집 모드: 편집 가능한 요소 표시 ---- */
.editable [data-edit] {
  cursor: text;
  border-radius: 4px;
  transition: background .12s ease, box-shadow .12s ease;
  outline: none;
}
.editable [data-edit]:hover {
  background: rgba(75, 85, 99,0.08);
  box-shadow: 0 0 0 2px rgba(75, 85, 99,0.15);
}
.editable [data-edit]:focus {
  background: rgba(75, 85, 99,0.10);
  box-shadow: 0 0 0 2px var(--olive);
}

/* 편집 모드: 행 삭제/추가 버튼 */
.editable .pc-row { position: relative; }
.editable .row-del {
  position: absolute;
  right: -6px; top: 50%;
  transform: translate(100%, -50%);
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: #b5544a; color: #fff;
  font-size: 13px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  line-height: 1;
}
.editable .pc-row:hover .row-del { display: flex; }

/* ============================================================
   공통: 노션 스타일 행/항목 드래그 핸들 + 놓임 표시 (모든 편집 페이지 공용)
   행 요소는 position:relative 필요, 왼쪽에 핸들 자리(padding) 확보.
   ============================================================ */
.rd-grip {
  position: absolute;
  left: -0.15em; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
  opacity: 0;
  cursor: grab;
  border-radius: 5px;
  transition: opacity .12s ease, background .12s ease;
  -webkit-user-select: none; user-select: none;
  touch-action: none;
  z-index: 3;
}
.rd-grip svg { width: 15px; height: 15px; display: block; opacity: 0.55; }
.rd-grip:hover { background: rgba(75, 85, 99, 0.10); }
.rd-grip:active { cursor: grabbing; }

/* 드래그 중인 행 반투명 처리 */
.rd-dragging { opacity: 0.4; }

/* 놓임 표시선 (관리 좌측 패널과 동일 톤) */
.editable .rd-drop-before::before,
.editable .rd-drop-after::after {
  content: "";
  position: absolute;
  left: 0.15em; right: 0.15em;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
}
.editable .rd-drop-before::before { top: -1px; }
.editable .rd-drop-after::after { bottom: -1px; }

/* 가격표: 핸들 자리 확보 + 호버 시 핸들 노출 */
.editable .pc-row { padding-left: 1.2em; }
.editable .pc-row:hover .rd-grip { opacity: 1; }
.editable .row-add {
  width: 100%;
  border: 1px dashed var(--olive);
  background: rgba(75, 85, 99,0.05);
  color: var(--olive);
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 8px; border-radius: 8px; cursor: pointer;
  margin-top: 6px;
  flex: 0 0 auto;
}
.editable .row-add:hover { background: rgba(75, 85, 99,0.12); }

/* ============================================================
   관리 화면 v2 : 좌측 페이지 목록 + 우측 편집 무대
   ============================================================ */
.admin-layout {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* 좌측 페이지 목록 */
.admin-side {
  width: 230px;
  flex: 0 0 230px;
  background: var(--card);
  border-right: 1px solid var(--green-line);
  overflow-y: auto;
  padding: 14px;
}
.admin-side h3 {
  font-size: 12px; color: var(--ink-faint); font-weight: 700;
  letter-spacing: .04em; padding-left: 2px;
}
/* 상단: 제목 + 점프 페이징 */
.side-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.side-jump { display: flex; align-items: center; gap: 4px; }
.side-jump input {
  width: 42px; padding: 4px 6px; text-align: center;
  border: 1px solid var(--green-line); border-radius: 6px;
  font-size: 12px; color: var(--ink); background: #fff;
  -moz-appearance: textfield;
}
.side-jump input::-webkit-outer-spin-button,
.side-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.side-jump button {
  padding: 4px 8px; border: 1px solid var(--green-line); border-radius: 6px;
  background: var(--card-2); color: var(--ink-soft); font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.side-jump button:hover { background: #e3e8eb; color: var(--ink); }
.side-hint {
  font-size: 10.5px; color: var(--ink-faint); line-height: 1.4;
  margin: 0 0 10px; padding-left: 2px;
}
.side-hint b { color: var(--ink-soft); }

.side-page {
  position: relative;
  border: 1px solid var(--green-line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: visible;
  cursor: pointer;
  transition: box-shadow .13s ease, border-color .13s ease, opacity .13s ease;
}
.side-page.active { border-color: var(--olive); box-shadow: 0 0 0 2px rgba(75, 85, 99,0.25); }

/* 드래그 상태 */
.side-page.dragging { opacity: 0.45; }
.side-page.drop-before::before,
.side-page.drop-after::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: var(--olive); border-radius: 2px; z-index: 5;
}
.side-page.drop-before::before { top: -6px; }
.side-page.drop-after::after  { bottom: -6px; }

/* 드래그 그립(좌상단) */
.side-grip {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.82);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); cursor: grab;
  opacity: 0; transition: opacity .13s ease;
}
.side-page:hover .side-grip,
.side-page.active .side-grip { opacity: 1; }
.side-grip svg { width: 14px; height: 14px; }
.side-grip:active { cursor: grabbing; }
.side-thumb {
  width: 100%;
  aspect-ratio: 1180 / 820;
  background: var(--card-2);
  overflow: hidden;
  position: relative;
  pointer-events: none;
  border-radius: 9px 9px 0 0;
}
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb .mini {
  position: absolute; inset: 0;
  transform-origin: top left;
}
.side-thumb .side-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 11px; font-weight: 600;
}
.side-meta {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 9px; font-size: 11px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap;   /* 한 줄 고정(3줄로 번지지 않음) */
}
/* 페이지 번호(왼쪽 작은 원형 배지) */
.side-meta .side-pageno {
  flex: 0 0 auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e3e8eb; color: var(--ink-soft);
  border-radius: 10px; font-size: 11px; font-weight: 800;
}
/* 페이지 이름(파란 탭) — 클릭해서 직접 편집 가능한 인풋 */
.side-meta .side-nametab {
  flex: 1 1 auto; min-width: 0;
  background: var(--olive); color: #fff;
  border: 1px solid transparent;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; font-family: inherit;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  /* 한 줄, 넘치면 … */
  cursor: text;
  transition: background 0.12s, border-color 0.12s;
}
.side-meta .side-nametab::placeholder { color: rgba(255,255,255,0.7); }
.side-meta .side-nametab:hover { background: var(--olive-deep, #3b424c); }
.side-meta .side-nametab:focus {
  outline: none;
  background: #fff; color: var(--ink);
  border-color: var(--olive);
}
/* 더보기(⋮) 버튼 */
.side-more {
  flex: 0 0 auto; width: 24px; height: 24px;
  border: none; background: transparent; color: var(--ink-faint);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.side-more:hover { background: #e3e8eb; color: var(--ink); }
.side-more svg { width: 16px; height: 16px; }

/* 더보기 팝업 메뉴 */
.side-more-menu {
  position: absolute; right: 8px; bottom: 8px; z-index: 30;
  background: #fff; border: 1px solid var(--green-line);
  border-radius: 9px; box-shadow: 0 8px 24px rgba(34,40,49,0.16);
  padding: 5px; min-width: 118px;
  display: flex; flex-direction: column; gap: 2px;
}
.side-more-menu[hidden] { display: none; }
.side-more-menu button {
  display: flex; align-items: center; gap: 8px;
  border: none; background: transparent; cursor: pointer;
  padding: 8px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink); text-align: left;
}
.side-more-menu button:hover { background: var(--card-2); }
.side-more-menu button.danger { color: #b5544a; }
.side-more-menu button:disabled { opacity: .35; cursor: default; }
.side-more-menu button svg { width: 15px; height: 15px; }

/* 페이지 추가: 단일 버튼 + 팝오버 메뉴 */
.side-add-wrap { position: relative; margin-top: 4px; }
.side-add-main {
  width: 100%;
  border: 1.5px dashed var(--green-line);
  border-radius: 10px; background: transparent;
  padding: 12px; cursor: pointer; color: var(--ink-soft);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.side-add-main:hover,
.side-add-main.active { background: var(--card); border-color: var(--gold-soft); color: var(--ink); }
.side-add-main svg { width: 15px; height: 15px; color: var(--olive); }

.add-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 40;
  background: #fff; border: 1px solid var(--green-line);
  border-radius: 10px; box-shadow: 0 -8px 28px rgba(34,40,49,0.16);
  padding: 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.add-menu[hidden] { display: none; }
.add-menu-item {
  display: flex; align-items: center; gap: 7px;
  border: none; background: transparent; cursor: pointer;
  padding: 9px 8px; border-radius: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink); text-align: left;
  white-space: nowrap;   /* 항목 이름 한 줄 고정 */
}
.add-menu-item:hover { background: var(--card-2); }
.add-menu-item svg { width: 15px; height: 15px; color: var(--olive); flex: 0 0 auto; }

/* 우측 편집 무대 */
.admin-main {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #eef1f3;
}
.edit-hint {
  align-self: stretch;
  max-width: 1180px;
  margin: 0 auto 16px;
  width: 100%;
  font-size: 13px; color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--green-line);
  border-left: 3px solid var(--olive);
  border-radius: 10px;
  padding: 12px 15px; line-height: 1.65;
}
.edit-hint b { color: var(--ink); }

/* 편집 대상 페이지 (iPad 실제 해상도 1180x820 을 스케일 축소) */
/* 바깥 래퍼: 스케일된 높이만큼 자리를 차지 */
.edit-stage-outer {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.edit-stage {
  width: 1180px;
  height: 820px;
  transform-origin: top left;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;   /* 뷰어와 동일하게 잘림 기준 일치 */
  box-shadow: var(--shadow);
}
.edit-stage .price-page { border-radius: 14px; }

/* 이미지 페이지 편집 영역 */
.edit-image-wrap {
  width: 100%; height: 100%;
  position: relative;
  background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
}
.edit-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.edit-image-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--ink-faint);
}
.edit-image-empty svg { width: 44px; height: 44px; color: var(--olive); }
.edit-image-controls {
  position: absolute; bottom: 16px; right: 16px; display: flex; gap: 8px;
}
.eic-btn {
  border: none; background: rgba(34,40,49,0.9); color: #f5f7f8;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.eic-btn:hover { background: rgba(34,40,49,0.97); }
.eic-btn svg { width: 15px; height: 15px; }

/* ============================================================
   duo 템플릿 (시안 재현) : 좌 "Signature contour" + 우 "6주 프로그램"
   전체 책자와 동일한 공통 컬러 시스템(:root) 사용
   ------------------------------------------------------------
   duo 전용 로컬 변수 (공통 팔레트에서 파생)
   ============================================================ */
.duo-page {
  --duo-card-bg:    #ffffff;   /* 카드 배경 - 화이트 */
  --duo-card-bd:    #dde2e6;   /* 카드 테두리 - 연한 쿨그레이 */
  --duo-footer-bg:  #f5f7f8;   /* 하단 스트립 / 주차 박스 - 쿨 그레이지 */
  --duo-foot-line:  #dde2e6;   /* 카드 상/하단 구분선 */
  --duo-week-bg:    #eef1f3;   /* 주차 라벨 박스 배경 - 쿨 그레이 */
  --duo-muted:      #7a828c;   /* 부가 문구(시간/관리순서) 그레이 */

  width: 100%;
  height: 100%;
  background: var(--page-bg);
  display: flex;
  align-items: stretch;
  position: relative;
  font-family: "Pretendard", sans-serif;
  padding: 3.2% 3.2%;   /* 화면을 시원하게 꽉 쓰도록 여백 축소 */
  gap: 3.4%;
  box-sizing: border-box;
}

.duo-col {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;   /* 내부 스크롤 허용 */
}

/* 카테고리 헤더 (제목 + 오른쪽으로 뻗는 가로선) : 상단 고정 */
.duo-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.05em;
  flex: 0 0 auto;
}
.duo-cat-title {
  color: var(--title-ink);
  font-size: clamp(18px, 2.35vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* 좌측 제목은 세리프(우아한 영문) */
.duo-cat-title.serif {
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-weight: 600;
  letter-spacing: 0;
}
.duo-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);   /* 연한 쿨그레이 라인 */
}

/* ---------------- 좌측: Signature contour ---------------- */
/* 카드/주차가 많아지면 목록만 스크롤(화면 변형 없음), 헤더는 고정 */
.duo-left-list,
.duo-right-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;   /* 스크롤바 겹침 방지 */
}
.duo-left-list::-webkit-scrollbar,
.duo-right-list::-webkit-scrollbar { width: 6px; }
.duo-left-list::-webkit-scrollbar-thumb,
.duo-right-list::-webkit-scrollbar-thumb { background: rgba(75, 85, 99,0.28); border-radius: 3px; }
.duo-left-list::-webkit-scrollbar-track,
.duo-right-list::-webkit-scrollbar-track { background: transparent; }

.duo-left-list {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
/* 좌측은 카드가 내용만큼만 차지하고, 남은 공간은 이미지 그리드가 채움
   (카드가 많아 넘칠 때만 카드 목록이 스크롤) */
.duo-left .duo-left-list { flex: 0 1 auto; }

/* 좌측 하단 이미지 2칸 : 카드와 가로폭 동일, 좌우 반반 */
.duo-img-grid {
  flex: 1 1 auto;          /* 카드 아래 남은 세로 공간을 채움 */
  min-height: 0;
  margin-top: 1.1em;       /* 카드 목록과 동일한 간격 */
  box-sizing: border-box;
  /* 카드 목록(.duo-left-list)에 padding-right:2px 가 있어 카드 실제폭이
     컬럼폭보다 2px 작다. 그리드도 동일 폭이 되도록 오른쪽 2px 를 비운다. */
  width: calc(100% - 2px);
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 좌우 반반 */
  gap: 1.1em;              /* 카드 간격과 동일 */
}
.duo-img-cell {
  position: relative;
  min-height: 8em;
  background: var(--duo-card-bg);
  border: 1px solid var(--duo-card-bd);
  border-radius: 10px;
  overflow: hidden;
  cursor: default;
}
.duo-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.duo-img-empty {
  width: 100%;
  height: 100%;
  min-height: 8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: var(--duo-muted);
}
.duo-img-empty svg { width: 2em; height: 2em; color: var(--olive); opacity: 0.7; }
.duo-img-empty span { font-size: clamp(11px, 1.1vw, 14px); font-weight: 600; }
/* 뷰어에서 빈 칸은 아이콘/문구 없이 은은한 여백만 */
.duo-img-empty.plain { }

/* 편집 모드: 이미지 칸은 클릭 등록 가능 */
.duo-page.editable .duo-img-cell { cursor: pointer; transition: box-shadow .12s ease; }
.duo-page.editable .duo-img-cell:hover { box-shadow: 0 0 0 2px rgba(75, 85, 99,0.3); }
.duo-img-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border: none; border-radius: 50%;
  background: rgba(34,40,49,0.82); color: #fff;
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; z-index: 2;
}
.duo-img-del:hover { background: rgba(34,40,49,0.97); }

.duo-card {
  position: relative;
  background: var(--duo-card-bg);
  border: 1px solid var(--duo-card-bd);
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;   /* 스크롤 시 눌리지 않도록 */
}
.duo-card-top {
  padding: 1.4em 1.5em 1.3em;
  min-height: 3.4em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.duo-card-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  flex-wrap: wrap;
}
.duo-card-name {
  color: var(--title-ink);
  font-size: clamp(17px, 2.05vw, 27px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  word-break: keep-all;
}
/* 시간(시계 아이콘 + 텍스트) */
.duo-dur {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  color: var(--duo-muted);
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 500;
  white-space: nowrap;
}
.duo-clock {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
.duo-dur-text { line-height: 1; }

/* 가격 : 카드 우측 하단 정렬 (숫자 큼 + 원 작음, 하나의 덩어리로 baseline 정렬) */
.duo-card-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;        /* 가격 블록을 카드 우측 하단으로 */
  gap: 0.24em;                      /* 숫자와 '원' 사이 간격 확보 */
  margin-top: 0.85em;
  align-self: flex-end;            /* 부모 flex-column 안에서 우측 정렬 */
  width: 100%;
}
.duo-price-value {
  color: var(--title-ink);
  font-size: clamp(19px, 2.4vw, 31px);
  font-weight: 700;                /* 살짝 얇게 */
  letter-spacing: -0.02em;         /* 살짝 조임 */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.duo-price-unit {
  color: var(--text-mid);          /* 원은 한 톤 낮춰 숫자를 돋보이게 */
  font-size: clamp(12px, 1.35vw, 17px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* 하단 스트립 : 관리순서 | 순서 문구 */
.duo-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15em 0.6em;
  background: var(--duo-footer-bg);
  border-top: 1px solid var(--duo-foot-line);
  padding: 0.85em 1.5em;
  color: var(--duo-muted);
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 500;
  line-height: 1.55;
}
.duo-foot-label { font-weight: 600; white-space: nowrap; }
.duo-foot-sep { color: #c3c9cf; }
.duo-foot-text {
  word-break: keep-all;
  min-width: 0;
}

/* ---------------- 우측: 6주 프로그램 ---------------- */
.duo-right-list {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.duo-week {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1em;
  background: var(--duo-card-bg);
  border: 1px solid var(--duo-card-bd);
  border-radius: 10px;
  padding: 0.9em 1.35em 0.9em 0.9em;
  flex: 0 0 auto;   /* 스크롤 시 눌리지 않도록 */
}
/* 주차 라벨 박스(베이지) */
.duo-week-box {
  flex: 0 0 auto;
  background: var(--duo-week-bg);
  border-radius: 8px;
  padding: 0.85em 0.95em;
  min-width: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duo-week-label {
  color: var(--olive-deep);
  font-size: clamp(13px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
/* 프로그램명 (가운데, 남는 공간 차지) */
.duo-week-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-row);
  font-size: clamp(13px, 1.55vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  word-break: keep-all;
}
/* 소요 시간 (우측) */
.duo-week-dur {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  color: var(--duo-muted);
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 500;
  white-space: nowrap;
}

/* ---- 편집 모드: 카드/주차 삭제·추가 버튼 ---- */
.duo-page.editable .duo-card,
.duo-page.editable .duo-week { }
.duo-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: #b5544a; color: #fff;
  font-size: 14px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  line-height: 1; z-index: 2;
}
.duo-page.editable .duo-card:hover .duo-del,
.duo-page.editable .duo-week:hover .duo-del { display: flex; }

/* 시그니처(duo): 드래그 핸들 — 카드는 overflow:hidden 이므로 안쪽에 배치 */
.duo-page.editable .duo-card:hover .rd-grip,
.duo-page.editable .duo-week:hover .rd-grip { opacity: 1; }
.duo-page.editable .duo-card .rd-grip {
  left: 4px; top: 8px; transform: none;   /* 카드 좌상단 안쪽 */
}
.duo-page.editable .duo-week .rd-grip {
  left: 2px;   /* 주차 행 왼쪽 여백 안쪽 */
}
.duo-page.editable .duo-card-top { padding-left: 1.9em; }   /* 카드 핸들 자리 */
.duo-page.editable .duo-week { padding-left: 1.6em; }        /* 주차 핸들 자리 */
.duo-add-card {
  border: 1px dashed var(--olive);
  background: rgba(75, 85, 99,0.05);
  color: var(--olive);
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 9px; border-radius: 8px; cursor: pointer;
  margin-top: 2px;
  flex: 0 0 auto;
}
.duo-add-card:hover { background: rgba(75, 85, 99,0.12); }

/* 편집 무대 안 duo 페이지도 동일 라운드 */
.edit-stage .duo-page { border-radius: 14px; }


/* ============================================================
   vollia 템플릿 (시안 재현) : "VOLLIA 부스터" + 2x2 카드 + MEMBERSHIP
   전체 책자와 동일한 공통 컬러 시스템(:root) 사용
   ------------------------------------------------------------
   vollia 전용 로컬 변수 (공통 팔레트에서 파생)
   ============================================================ */
.vollia-page {
  --vol-pill-bg:    #eef1f3;   /* 해시태그 알약 배경 - 쿨 그레이 */
  --vol-pill-bd:    #dde2e6;   /* 해시태그 알약 테두리 */
  --vol-card-bd:    #dde2e6;   /* 카드/이미지 테두리 */
  --vol-panel-bg:   #ffffff;   /* 멤버십 패널 배경 - 화이트 카드 */
  --vol-panel-bd:   #dde2e6;   /* 멤버십 패널 테두리 */
  --vol-tier-line:  #dde2e6;   /* 등급 행 구분선 */
  --vol-muted:      #7a828c;   /* 부가 문구 그레이 */

  width: 100%;
  height: 100%;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: "Pretendard", sans-serif;
  padding: 3.4% 3.6%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---------- 상단 헤더 ---------- */
.vollia-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
  flex: 0 0 auto;
  margin-bottom: 2.4%;
}
.vollia-title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.vollia-title {
  color: var(--title-ink);
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: pre-wrap;
  word-break: keep-all;
}
.vollia-title-rule {
  display: block;
  margin-top: 0.5em;
  width: 100%;
  min-width: 3.2em;
  height: 2px;
  background: var(--olive);
  opacity: 0.5;
}
.vollia-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: flex-end;
  align-items: center;
  flex: 0 1 auto;
  padding-top: 0.35em;
}
.vollia-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--vol-pill-bg);
  border: 1px solid var(--vol-pill-bd);
  color: var(--title-ink);
  border-radius: 999px;
  padding: 0.55em 1.15em;
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 600;
  white-space: nowrap;
}
.vollia-tag-text { display: inline-block; }

/* ---------- 본문: 좌(카드) + 우(멤버십) ---------- */
.vollia-body {
  display: flex;
  gap: 3%;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

/* ---------- 좌측 2x2 카드 그리드 ---------- */
.vollia-cards {
  flex: 1 1 58%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.4em 1.8em;
  min-height: 0;
}
.vollia-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.vollia-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f3;
  border: 1px solid var(--vol-card-bd);
  flex: 0 0 auto;
}
.vollia-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vollia-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: var(--vol-muted);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
}
.vollia-img-empty.plain { color: transparent; }
.vollia-img-empty svg { width: 2em; height: 2em; color: var(--olive); opacity: 0.65; }
.vollia-page.editable .vollia-card-img { cursor: pointer; transition: box-shadow .12s ease; }
.vollia-page.editable .vollia-card-img:hover { box-shadow: 0 0 0 2px rgba(75, 85, 99,0.3); }
.vollia-img-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border: none; border-radius: 50%;
  background: rgba(34,40,49,0.72); color: #fff;
  font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vollia-img-del:hover { background: rgba(34,40,49,0.9); }

.vollia-card-title {
  color: var(--title-ink);
  font-size: clamp(15px, 1.55vw, 21px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 0.75em;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: keep-all;
}
.vollia-card-desc {
  color: var(--text-mid);
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 0.35em;
  white-space: pre-wrap;
  word-break: keep-all;
}

/* ---------- 우측 MEMBERSHIP 패널 ---------- */
.vollia-member {
  flex: 1 1 42%;
  min-width: 0;
  background: var(--vol-panel-bg);
  border: 1px solid var(--vol-panel-bd);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(34,40,49,0.06);
  padding: 3.2% 3.4%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.vollia-member-head {
  color: var(--olive);
  font-size: clamp(16px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  padding-left: 0.14em;   /* letter-spacing 시각 보정 */
  margin-top: 1.6em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.vollia-member-divider {
  display: block;
  width: 2.6em;
  height: 2px;
  background: var(--olive);
  opacity: 0.55;
  margin: 0.9em auto 0;
  flex: 0 0 auto;
}
.vollia-tiers {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: 0.4em 0;
  margin-top: 0.8em;
}
.vollia-tier {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 1.15em 0.4em;
  border-bottom: 1px solid var(--vol-tier-line);
}
.vollia-tier:last-of-type { border-bottom: none; }
.vollia-tier-name {
  color: var(--title-ink);
  font-size: clamp(15px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.vollia-tier-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.26em;                      /* 숫자와 '원' 사이 간격 확보 */
  flex: 0 0 auto;
}
.vollia-tier-value {
  color: var(--title-ink);
  font-size: clamp(18px, 2.05vw, 27px);
  font-weight: 700;                /* 살짝 얇게 */
  letter-spacing: -0.02em;         /* 살짝 조임 */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vollia-tier-unit {
  color: var(--text-mid);          /* 원은 한 톤 낮춰 숫자를 돋보이게 */
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}
.vollia-member-note {
  color: var(--vol-muted);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  text-align: center;
  margin-top: 1.2em;
  flex: 0 0 auto;
  white-space: pre-wrap;
  word-break: keep-all;
}

/* ---------- 편집 UI (추가/삭제 버튼) ---------- */
.vollia-page.editable [data-edit] {
  outline: 1px dashed transparent;
  border-radius: 4px;
  transition: outline-color .12s ease, background .12s ease;
  cursor: text;
}
.vollia-page.editable [data-edit]:hover {
  outline-color: rgba(75, 85, 99,0.35);
  background: rgba(75, 85, 99,0.04);
}
.vollia-page.editable [data-edit]:focus {
  outline: 1px solid var(--olive);
  background: #fff;
}
.vollia-del {
  position: absolute;
  top: 6px; right: 4px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: rgba(34,40,49,0.55); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.vollia-page.editable .vollia-tier:hover .vollia-del { display: flex; }

/* 부스터(vollia) 멤버십 등급: 드래그 핸들 자리 확보 + 호버 시 노출 */
.vollia-page.editable .vollia-tier { padding-left: 1.5em; }
.vollia-page.editable .vollia-tier:hover .rd-grip { opacity: 1; }
.vollia-tag-del {
  margin-left: 0.4em;
  width: 16px; height: 16px;
  border: none; border-radius: 50%;
  background: rgba(34,40,49,0.45); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.vollia-page.editable .vollia-tag:hover .vollia-tag-del { display: inline-flex; }
.vollia-tier-add, .vollia-tag-add {
  border: 1px dashed var(--olive);
  background: rgba(75, 85, 99,0.05);
  color: var(--olive);
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  flex: 0 0 auto;
}
.vollia-tier-add { margin-top: 8px; align-self: stretch; }
.vollia-tier-add:hover, .vollia-tag-add:hover { background: rgba(75, 85, 99,0.12); }

/* 편집 무대 안 vollia 페이지도 동일 라운드 */
.edit-stage .vollia-page { border-radius: 14px; }

/* ============================================================
   lift 템플릿 (LIFTING 테이블형 가격표)
   시안 레이아웃/비율/위계 재현 · 색상은 공통 쿨그레이 시스템 사용
   ============================================================ */
.lift-page {
  --lift-pill-bg:   #eef1f3;   /* 해시태그 알약 배경 */
  --lift-pill-bd:   #dde2e6;   /* 해시태그 알약 테두리 */
  --lift-card-bd:   #dde2e6;   /* 표 카드 테두리 */
  --lift-head-line: #b7bdc4;   /* 헤더 하단 진한 구분선 */
  --lift-row-line:  #eceff1;   /* 행 구분선(연함) */
  --lift-muted:     #7a828c;   /* 보조 회색 */

  width: 100%;
  height: 100%;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: "Pretendard", sans-serif;
  padding: 4% 4.2%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---------- 상단 헤더 ---------- */
.lift-header {
  display: flex;
  /* 우상단 태그를 좌측 텍스트 블록의 하단(부제목 줄)에 맞춰 정렬 */
  align-items: flex-end;
  justify-content: space-between;
  gap: 2em;
  flex: 0 0 auto;
  margin-bottom: 3.2%;
}
.lift-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
/* 카테고리(LIFTING) + 짧은 규칙선 */
.lift-cat-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.55em;
}
.lift-cat {
  color: var(--lift-muted);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.lift-cat-rule {
  display: block;
  margin-top: 0.6em;
  width: 2.4em;
  min-width: 2em;
  height: 1px;
  background: var(--lift-muted);
  opacity: 0.55;
}
.lift-title {
  color: var(--title-ink);
  font-size: clamp(28px, 4.0vw, 54px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.02;
  white-space: pre-wrap;
  word-break: keep-all;
}
.lift-subtitle {
  color: var(--text-mid);
  font-size: clamp(12px, 1.35vw, 18px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.5;
  margin-top: 0.7em;
  white-space: pre-wrap;
  word-break: keep-all;
}
/* 해시태그 알약 (우상단 → 부제목 줄 위치) */
.lift-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  justify-content: flex-end;
  align-items: center;
  flex: 0 1 auto;
  /* 부제목 줄과 시각적으로 같은 라인에 오도록 하단 미세 보정(살짝 아래로) */
  margin-bottom: -0.15em;
}
.lift-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--lift-pill-bg);
  border: 1px solid var(--lift-pill-bd);
  color: var(--text-body);
  border-radius: 6px;
  padding: 0.6em 1.1em;
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 500;
  white-space: nowrap;
}
.lift-tag-text { display: inline-block; }

/* ---------- 표 카드 ---------- */
.lift-card {
  position: relative;
  /* 프로그램 개수에 딱 맞게 컴팩트하게: 남은 세로공간을 꽉 채우지 않고
     내용 높이만큼만 차지(하단 빈 공간 최소화). 화면을 넘칠 때만 max-height로 제한 */
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--lift-card-bd);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 2.4% 3%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 열 폭: 프로그램(넓게) | 구성 | 정가 | 혜택가
   ── 고정 열 너비(%)로 헤더와 모든 데이터 행의 열 경계를 완전히 일치시켜
      행마다 열이 어긋나 보이는 문제 제거. 세로 중심선은 align-items:center로 통일 */
.lift-thead,
.lift-tr {
  display: grid;
  /* fr 단위: gap·padding을 제외한 남은 폭을 항상 같은 비율로 분배 → 카드 폭을 넘지 않으면서
     헤더와 모든 데이터 행의 열 경계가 완전히 일치(justify-self:stretch와 함께 어긋남 제거) */
  grid-template-columns: 2.5fr 2.3fr 1.25fr 1.35fr;
  align-items: center;
  column-gap: 1.2em;
}

/* 헤더 행 */
.lift-thead {
  flex: 0 0 auto;
  padding: 0 0.4em 1.15em;
  border-bottom: 1.5px solid var(--lift-head-line);
}
.lift-th {
  color: var(--text-mid);
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* 본문 (내용 높이에 맞게; 화면 넘칠 경우에만 내부 스크롤) */
.lift-tbody {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.lift-tr {
  position: relative;
  padding: 1.15em 0.4em;
  border-bottom: 1px solid var(--lift-row-line);
}
.lift-tr:last-child { border-bottom: none; }

.lift-td {
  min-width: 0;
  white-space: pre-wrap;
  word-break: keep-all;
}

/* 정렬: 각 셀이 '고정된 열 폭' 전체를 차지하고(stretch), 셀 내부에서 정렬.
   이렇게 하면 콘텐츠 길이(가격 자릿수 등)와 무관하게 열 경계가 고정되어
   모든 행의 열이 동일 기준선에 정렬됨(어긋남 제거).
   프로그램=좌 / 구성=가운데 / 정가·혜택가=우 */
.lift-col-name   { justify-self: stretch; text-align: left; }
.lift-col-compose{ justify-self: stretch; text-align: center; }
.lift-col-reg    { justify-self: stretch; text-align: right; }
.lift-col-sale   { justify-self: stretch; text-align: right; }

/* 프로그램명 */
.lift-cell-name {
  color: var(--title-ink);
  font-size: clamp(15px, 1.75vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
/* 구성 */
.lift-cell-compose {
  color: var(--text-mid);
  font-size: clamp(12px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.4;
}

/* 가격(숫자 크게 + 단위 작게, baseline 정렬로 하나의 덩어리)
   ── 셀 전체 폭을 사용하는 flex로 바꿔 우측 정렬 위치를 열 경계에 고정
      (자릿수가 달라도 흔들리지 않음) */
.lift-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  /* 숫자와 '만원' 단위 간격을 모든 행에서 동일하게 통일 */
  gap: 0.22em;
}
.lift-price-value {
  letter-spacing: -0.02em;          /* 살짝 조여 넓어 보이던 느낌 완화 */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lift-price-unit {
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}
/* 혜택가 칸: 우측 끝에서 살짝 떨어뜨리고(오른쪽 여백), 세로로 살짝 아래로 이동 */
.lift-col-sale {
  padding-right: 0.55em;
  position: relative;
  top: 0.12em;
}
/* 정가: 보조 톤 · 보통 굵기 · 조금 작게 */
.lift-price-reg .lift-price-value {
  color: var(--text-mid);
  font-size: clamp(17px, 2.0vw, 27px);
  font-weight: 600;
}
.lift-price-reg .lift-price-unit {
  color: var(--text-mid);
  font-size: clamp(11px, 1.2vw, 15px);
}
/* 혜택가: 강조(진한 잉크 · 굵게 · 크게) */
.lift-price-sale .lift-price-value {
  color: var(--title-ink);
  font-size: clamp(20px, 2.5vw, 33px);
  font-weight: 700;                /* 살짝 얇게 (과한 굵기 완화) */
}
.lift-price-sale .lift-price-unit {
  color: var(--text-body);
  font-size: clamp(12px, 1.3vw, 17px);
  font-weight: 600;
}

/* 항목 추가 버튼 */
.lift-row-add {
  margin-top: 12px;
  align-self: flex-start;
  border: 1px dashed var(--olive);
  background: rgba(75, 85, 99, 0.05);
  color: var(--olive);
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  flex: 0 0 auto;
}
.lift-row-add:hover { background: rgba(75, 85, 99, 0.12); }

/* ---------- 편집 모드 공통 ---------- */
.lift-page.editable [data-edit] {
  outline: 1px dashed transparent;
  border-radius: 4px;
  transition: background .12s ease, outline-color .12s ease;
  cursor: text;
}
.lift-page.editable [data-edit]:hover {
  background: rgba(75, 85, 99, 0.07);
  outline-color: rgba(75, 85, 99, 0.35);
}
.lift-page.editable [data-edit]:focus {
  background: #fff;
  outline: 1.5px solid var(--olive);
}
/* 삭제 버튼(행/태그) */
.lift-del {
  position: absolute;
  top: 50%;
  right: -0.2em;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border: none; border-radius: 50%;
  background: rgba(34,40,49,0.55);
  color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
}
.lift-page.editable .lift-tr:hover .lift-del { display: flex; }

/* 리프팅 표: 드래그 핸들 자리 확보 + 호버 시 노출 */
.lift-page.editable .lift-tr { padding-left: 1.5em; }
.lift-page.editable .lift-tr:hover .rd-grip { opacity: 1; }
.lift-tag-del {
  margin-left: 0.35em;
  width: 16px; height: 16px;
  border: none; border-radius: 50%;
  background: rgba(34,40,49,0.5);
  color: #fff; font-size: 12px; line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
}
.lift-page.editable .lift-tag:hover .lift-tag-del { display: inline-flex; }
.lift-tag-add {
  border: 1px dashed var(--olive);
  background: rgba(75, 85, 99, 0.05);
  color: var(--olive);
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 0.6em 1em; border-radius: 6px; cursor: pointer;
  flex: 0 0 auto;
}
.lift-tag-add:hover { background: rgba(75, 85, 99, 0.12); }

/* 편집 무대 안 lift 페이지도 동일 라운드 */
.edit-stage .lift-page { border-radius: 14px; }

/* ============================================================
   botox 템플릿 (보톡스 시술: 중앙 헤더 + 좌우 2개 시술명/가격 표)
   공통 쿨그레이 색상 시스템 사용.
   ============================================================ */
.botox-page {
  --btx-card-bd:   #dde2e6;   /* 표 카드 테두리 */
  --btx-head-bg:   #eef1f3;   /* 헤더 행 배경(옅은 쿨그레이) */
  --btx-row-line:  #eceff1;   /* 행 구분선(연함) */
  --btx-muted:     #7a828c;   /* 보조 회색(부제/괄호) */

  width: 100%;
  height: 100%;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: "Pretendard", sans-serif;
  padding: 4.4% 5%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---------- 상단 중앙 헤더 ---------- */
.botox-header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* 카드를 위쪽으로 올리기 위해 제목 영역 하단 여백 축소(제목이 커져도 답답하지 않게) */
  margin-bottom: 2.6%;
}
.botox-title {
  color: var(--title-ink);
  /* 가격표 카드 비율에 어울리게 제목 크기 상향 */
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  white-space: pre-wrap;
  word-break: keep-all;
}
.botox-title-rule {
  /* 제목 확대에 맞춰 구분선 폭도 함께 확대, 두께는 얇게 유지 */
  width: clamp(260px, 46%, 580px);
  height: 1px;
  background: var(--line);
  opacity: 0.9;
  /* 제목과 구분선 사이 간격은 좁게 유지해 하나의 제목 영역처럼 */
  margin: 0.46em auto 0;
}
.botox-subtitle {
  /* 서브 문구: 현재 크기 유지(소폭), 진한 색으로 가독성 */
  color: var(--text-row);
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.5;
  margin-top: 0.9em;
  white-space: pre-wrap;
  word-break: keep-all;
}

/* ---------- 좌·우 표 영역 ---------- */
.botox-tables {
  /* 카드를 남은 세로공간 전체로 늘리지 않고, 내용 높이만큼만 차지하도록
     상단 정렬(하단 빈 공간 최소화). 화면 넘칠 때만 카드 내부 스크롤 */
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  gap: 4%;
  /* stretch 유지: 좌·우 두 카드의 상단 위치·높이를 정확히 동일하게 */
  align-items: stretch;
}

/* ---------- 표 카드 ---------- */
.botox-card {
  flex: 1 1 50%;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--btx-card-bd);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(34, 40, 49, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 헤더 행(시술명 | 가격) */
.botox-thead {
  flex: 0 0 auto;
  display: grid;
  /* 데이터 행과 동일한 열 비율(가격 열 고정폭)로 헤더/가격 정렬 일치 */
  grid-template-columns: 1fr minmax(auto, 8.5em);
  align-items: center;
  gap: 0.9em;
  background: var(--btx-head-bg);
  padding: 1.3em 1.9em;
}
.botox-th {
  color: var(--text-mid);
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 600;
  /* 참고 이미지 느낌: 넓은 자간의 헤더 라벨 */
  letter-spacing: 0.22em;
}
/* 데이터 셀 정렬(시술명 좌 / 가격 우) */
.botox-col-name  { text-align: left; }
.botox-col-price { text-align: right; }
/* 헤더 라벨은 각각의 '열' 중앙에 정렬 (카드 전체 기준이 아님) */
.botox-thead .botox-col-name  { text-align: center; }
.botox-thead .botox-col-price { text-align: center; }

/* 본문(데이터 행) */
.botox-tbody {
  /* 내용 높이에 맞게(넘칠 때만 스크롤): 마지막 행 이후 카드 하단 빈 공간 최소화 */
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* 좌·우 안쪽 여백(상 하 좌 우): 시술명은 살짝 왼쪽으로(좌측 여백 축소), 가격 우측 여백은 유지 */
  padding: 0.4em 1.9em 0.4em 1.35em;
  display: flex;
  flex-direction: column;
  /* 모든 행의 높이·간격을 동일하게 (space-around는 불균일 → flex-start) */
  justify-content: flex-start;
}
.botox-tr {
  position: relative;
  display: grid;
  /* 가격 열 너비를 고정폭으로 줄여 가격이 이름에서 너무 멀리 떨어지지 않게 */
  grid-template-columns: 1fr minmax(auto, 8.5em);
  align-items: baseline;
  gap: 0.9em;
  /* 모든 행이 동일한 높이·상하 간격을 갖도록 균일한 세로 여백 (참고 이미지의 넉넉한 간격) */
  padding: 1.55em 0;
  border-bottom: 1px solid var(--btx-row-line);
}
.botox-tr:last-child { border-bottom: none; }

.botox-cell-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4em;
  min-width: 0;
}
.botox-name {
  color: var(--title-ink);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
  word-break: keep-all;
}
.botox-sub {
  color: var(--btx-muted);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: keep-all;
}

.botox-cell-price {
  /* 숫자 + "원" 단위를 우측 정렬로 붙여 표시 */
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.18em;
  white-space: nowrap;
}
.botox-price-value {
  color: var(--title-ink);
  font-size: clamp(15px, 1.75vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.botox-price-unit {
  color: var(--text-mid);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- 편집 상태 ---------- */
.botox-page.editable [data-edit] {
  outline: 1px dashed transparent;
  outline-offset: 2px;
  border-radius: 3px;
  transition: outline-color 0.15s, background 0.15s;
  cursor: text;
}
.botox-page.editable [data-edit]:hover {
  outline-color: rgba(75, 85, 99, 0.35);
  background: rgba(75, 85, 99, 0.05);
}
.botox-page.editable [data-edit]:focus {
  outline: 1px solid var(--accent);
  background: rgba(75, 85, 99, 0.08);
}
/* 빈 괄호 부가설명도 편집 모드에서 클릭 가능하도록 최소 폭 확보 */
.botox-page.editable .botox-sub:empty::before {
  content: "(부가설명)";
  color: var(--btx-muted);
  opacity: 0.5;
}

/* 행 삭제 버튼 */
.botox-del {
  position: absolute;
  right: -1.15em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: none;
  background: rgba(75, 85, 99, 0.14);
  color: var(--title-ink);
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.botox-del:hover { background: rgba(200, 60, 60, 0.85); color: #fff; }
.botox-page.editable .botox-tr:hover .botox-del { display: flex; }

/* 보톡스 표: 드래그 핸들 자리 확보 + 호버 시 노출 */
.botox-page.editable .botox-tr { padding-left: 1.3em; }
.botox-page.editable .botox-tr:hover .rd-grip { opacity: 1; }

/* 행 추가 버튼 */
.botox-row-add {
  margin: 0.6em 0 0.2em;
  padding: 0.5em 1em;
  align-self: center;
  border: 1px dashed var(--btx-card-bd);
  border-radius: 8px;
  background: transparent;
  color: var(--text-mid);
  font-size: clamp(11px, 1.2vw, 14px);
  cursor: pointer;
}
.botox-row-add:hover { background: rgba(75, 85, 99, 0.08); }

/* 편집 무대 안 botox 페이지도 동일 라운드 */
.edit-stage .botox-page { border-radius: 14px; }

@media (max-width: 760px) {
  .admin-layout { flex-direction: column; height: auto; }
  .admin-side { width: 100%; flex: none; border-right: none; border-bottom: 1px solid var(--green-line); display: flex; gap: 10px; overflow-x: auto; }
  .admin-side h3 { display: none; }
  .side-page { min-width: 150px; }
}

/* ============================================================
   공통 미디어 뷰어 라이트박스 (고객 상담 화면)
   - 이미지 확대 / 핀치 줌 / 드래그 pan / 동영상 / GIF / Before-After
   ============================================================ */
.mv-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 22, 28, 0.92);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  touch-action: none;
  overscroll-behavior: contain;
}
.mv-overlay.open { display: flex; }

.mv-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mv-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
  transform-origin: center center;
  will-change: transform;
}
.mv-content.mv-zoomable { cursor: grab; }
.mv-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* 닫기 버튼 — 좌측 상단, 작게 (요청) */
.mv-close {
  position: fixed;
  top: 14px; left: 14px; right: auto;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.42);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .1s ease;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.mv-close:hover { background: rgba(0,0,0,0.62); }
.mv-close:active { transform: scale(0.92); }
/* 좌측 정렬 명시(기존 우측 배치를 덮어씀) */
.mv-close-left { left: 14px; right: auto; }

/* 동영상 */
.mv-video { max-width: 92vw; max-height: 90vh; }
.mv-video-el {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Before / After 비교 슬라이더 */
.mv-compare-wrap { max-width: 92vw; max-height: 90vh; }
.mv-compare {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  line-height: 0;
}
.mv-cmp-after {
  display: block;
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  -webkit-user-drag: none;
}
.mv-cmp-before-holder {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 50%;
  overflow: hidden;
}
.mv-cmp-before {
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  -webkit-user-drag: none;
  /* before 이미지가 after 와 같은 크기로 보이도록 좌측 정렬 */
  display: block;
}
.mv-cmp-handle {
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  width: 3px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-50%);
  pointer-events: none;
}
.mv-cmp-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #222831;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  pointer-events: none;
}
.mv-cmp-label {
  position: absolute;
  top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}
.mv-cmp-label-b { left: 16px; }
.mv-cmp-label-a { right: 16px; }

/* 뷰어에서 확대 가능한 미디어에 커서/살짝 확대 힌트 */
.viewer-page .mv-openable { cursor: zoom-in; }

/* ============================================================
   전후 비교 페이지 (Before / After)
   ============================================================ */
.compare-page {
  width: 100%;
  height: 100%;
  background: var(--page-bg);
  font-family: "Pretendard", sans-serif;
  padding: 3.2%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.compare-head { flex: 0 0 auto; margin-bottom: 1.2em; }
.compare-title {
  color: var(--title-ink);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.25em;
}
.compare-subtitle {
  color: var(--text-mid);
  font-size: clamp(12px, 1.4vw, 18px);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
}
.compare-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
  align-content: start;
  padding-right: 4px;
}
.compare-grid::-webkit-scrollbar { width: 6px; }
.compare-grid::-webkit-scrollbar-thumb { background: rgba(75,85,99,0.28); border-radius: 3px; }
.compare-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-mid);
  padding: 3em 0;
  font-size: clamp(13px, 1.4vw, 17px);
}
.compare-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.compare-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef1f3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-ph {
  color: var(--text-mid);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  text-align: center;
  padding: 1em;
}
.compare-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(34,40,49,0.78);
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}
.compare-caption {
  padding: 0.6em 0.9em;
  color: var(--text-row);
  font-size: clamp(12px, 1.25vw, 15px);
  line-height: 1.4;
  word-break: keep-all;
  white-space: pre-wrap;
}
.compare-page.editable .compare-caption:empty::before {
  content: "설명 입력(선택)";
  color: var(--text-mid);
  opacity: 0.6;
}

/* 전후비교 썸네일 (반반: 좌 Before / 우 After) */
.compare-thumb-inner { position: relative; width: 100%; height: 100%; display: flex; }
.compare-thumb-inner img { width: 50%; height: 100%; object-fit: cover; display: block; }
.compare-thumb-b { border-right: 2px solid rgba(255,255,255,0.9); }
.compare-thumb-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,0.92); color: #222831;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}

/* ---- 편집 컨트롤 ---- */
.compare-controls {
  padding: 0.7em 0.9em 0.9em;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.compare-src { display: flex; flex-direction: column; gap: 0.45em; }
.compare-uprow, .compare-urlrow {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.compare-uprow > span, .compare-urlrow > span {
  font-size: 12px; font-weight: 600; color: var(--text-mid);
}
.compare-file { font-size: 12px; }
.compare-urlinput {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.compare-urlinput:focus { outline: none; border-color: var(--olive); }
.compare-hint { font-size: 11px; color: var(--text-mid); opacity: 0.8; }
.compare-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.compare-btn-ghost { color: var(--olive); border-color: var(--olive); }
.compare-btn-ghost:hover { background: rgba(75,85,99,0.06); }
.compare-btn-del { color: #b5544a; border-color: #e0b7b1; }
.compare-btn-del:hover { background: rgba(181,84,74,0.06); }

.compare-addbar {
  flex: 0 0 auto;
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
  margin-top: 1em;
}
.compare-add {
  border: 1px dashed var(--olive);
  background: rgba(75,85,99,0.05);
  color: var(--olive);
  border-radius: 9px;
  padding: 0.6em 1.1em;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.compare-add:hover { background: rgba(75,85,99,0.1); }

/* R2 파일 직접 업로드 슬롯 */
.compare-r2slot { display: flex; flex-direction: column; gap: 3px; }
.compare-r2row { border-top: 1px dashed var(--line); padding-top: 6px; }
.compare-r2row > span:first-child { color: var(--olive); }

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   맞춤 시술 프로세스 (process) 페이지
   - 상단 중앙 제목 + 좌우 2개 카드 (쿨 그레이 계열, 공통 컬러 시스템)
   - 카드: 딥차콜 헤더바(흰 제목 + 우상단 원형 배지) + 흰 본문(세로 항목)
   - 항목: 원형 썸네일 + 제목 + 2줄 설명, 얇은 구분선
   - 카드당 최대 3개 항목. 항목은 고정 높이(늘이기/균등분할 X),
     항목이 적으면 하단은 빈 여백. 좌우 카드 외곽·상단바 높이는 항상 동일.
   ============================================================ */
:root {
  --proc-bar:      #6f7680;   /* 카드 헤더바 - 연한 쿨그레이(배지와 확실한 대비) */
  --proc-badge:    #2b313a;   /* 원형 배지 - 진한 쿨차콜(흰 글씨가 또렷) */
  --proc-title:    var(--title-ink);   /* 상단/항목 제목 - 딥차콜 */
  --proc-desc:     var(--text-mid);    /* 항목 설명 - 쿨 그레이 */
  --proc-line:     var(--line);        /* 항목 구분선 - 연한 쿨그레이 */
  --proc-thumb-bg: #eef1f3;            /* 썸네일 빈칸 배경 - 쿨 그레이지 */
}

.process-page {
  width: 1180px;
  height: 820px;
  box-sizing: border-box;
  background: var(--page-bg);
  padding: 2.4% 5.2% 3%;   /* 상단 여백 줄여 카드를 위로 */
  display: flex;
  flex-direction: column;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--proc-title);
  overflow: hidden;
}

/* 상단 제목 — 페이지(화면) 기준 정확히 중앙 정렬 */
.process-head {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  margin-bottom: 4.2%;   /* 제목-카드 간격 줄여 카드를 위로 */
}
.process-title {
  margin: 0 auto;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--proc-title);
  line-height: 1.15;
}

/* 카드 영역 (좌우 나란히).
   카드 높이는 각자 "칸수(항목 수)"에 맞춰 자연스럽게 결정 — 억지로 늘리지 않는다.
   좌 2칸은 짧게, 우 3칸은 길게. 카드는 상단에 붙어 위쪽으로 정렬. */
.process-deck {
  flex: 0 0 auto;         /* 내용만큼만(억지로 늘리지 않음) */
  min-height: 0;
  display: flex;
  gap: 3.2%;
  align-items: flex-start;   /* 좌우 카드 각자 칸수만큼 높이(짧은 쪽은 짧게) */
}

/* 카드: 좌우 동일 폭. 높이는 칸수에 맞춰 각자 결정. */
.process-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: visible;   /* 원형 배지가 헤더바 밖으로 살짝 나오도록 */
}

/* 카드 헤더바 - 좌우 완전히 동일한 높이. 높이를 살짝 키워 답답함 완화 */
.process-cardbar {
  position: relative;
  flex: 0 0 auto;
  height: 5.2em;       /* 고정 높이(기존 4.4em보다 키움) → 좌우 배지 세로 위치 동일 */
  background: var(--proc-bar);
  border-radius: 20px 20px 0 0;
  padding: 0 1.9em;
  display: flex;
  align-items: center;   /* 카드 제목 세로 중앙 정렬 */
  box-sizing: border-box;
}
.process-cardtitle {
  color: #fff;
  font-size: clamp(19px, 2.05vw, 27px);   /* 배너 제목 — 원래대로 축소(사용자 지시: 배너 글씨 다시 전처럼). 참조: 카드 안 시술명과 거의 같은 크기 */
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  padding-right: 2.9em;   /* 배지 자리만 최소 확보(과한 빈 공간 제거 → 제목이 배너 폭을 자연스럽게 씀) */
}

/* 우상단 원형 배지 — 참조 이미지(lQVacJgc)와 픽셀 단위로 동일한 걸침 방식.
   카드(.process-card) 기준 절대배치 + 고정 px 크기라, 카드 높이나 항목 수가
   바뀌어도 배지의 크기·위치는 자동으로 변하지 않으며, 좌우(홀수/짝수) 배지가
   헤더바 높이가 동일하므로 크기·위치·겹침 비율·글씨가 항상 완전히 일치한다.
   [참조 스펙]
   · 배지 지름 = 배너 높이(≈83px)의 약 1.2배 = 100px.
   · 배지 세로 중앙이 배너 하단 경계(≈83px)에 거의 일치 → 아래로 약 47% 걸침(배너 위로는 안 나옴).
   · 배너 우측 끝에서 안쪽으로 약 28px(카드 밖으로 안 나감).
   · 글씨 = 배지 지름의 약 15%(≈15px), 줄간격 1.15(타이트), 완전 중앙. */
.process-badge {
  position: absolute;
  top: 33px;              /* 배지 세로 중앙(100/2=50)이 배너 하단(≈83px)에 오게 → 83-50≈33 */
  right: 28px;            /* 배너 우측 안쪽 약 28px(카드 밖으로 안 나감) */
  width: 100px;           /* 배너 높이(≈83px)의 약 1.2배(참조 동일) */
  height: 100px;
  border-radius: 50%;
  background: var(--proc-badge);
  display: flex;
  align-items: center;      /* 텍스트 세로 중앙 */
  justify-content: center;  /* 텍스트 가로 중앙 */
  box-shadow: 0 4px 12px rgba(24, 28, 34, 0.20);  /* 은은한 입체 그림자(참조처럼) */
  z-index: 3;
}
.process-badge-text {
  color: #fff;
  font-size: 22px;          /* 배지 지름(100px)의 약 22%(참조 정밀분석 — 이전 15px는 참조 대비 너무 작았음). 글씨가 원을 시원하게 채움 */
  font-weight: 700;
  line-height: 1.18;        /* 두 줄 타이트하게(참조 1.15~1.2) */
  letter-spacing: 0.01em;
  text-align: center;
  white-space: pre-wrap;    /* 줄바꿈 보존 */
  padding: 0;
}

/* 카드 본문: 항목 목록. 칸수(항목 수)만큼만 높이를 차지 — 카드를 억지로 늘리지 않음.
   → 좌 2칸은 2칸 높이로 짧게, 우 3칸은 그만큼 길게. */
.process-cardbody {
  flex: 0 0 auto;
  overflow: hidden;
  padding: 1.8em 2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 항목 — 고정 높이. 칸수에 맞춰 각 항목 높이/간격 일정 */
.process-item {
  position: relative;
  flex: 0 0 auto;   /* 세로로 늘어나지 않음 */
  display: flex;
  align-items: center;
  gap: 1.7em;
  padding: 1.1em 0;
}
.process-divider {
  flex: 0 0 auto;
  height: 1px;
  background: var(--proc-line);
  margin: 0 0.2em;
}

/* 원형 썸네일 — 클릭해서 사진 등록(편집) / 확대(뷰어).
   빨간색 참조: 동그라미를 더 크게(참조 이미지의 사진 크기 수준). */
.process-thumb {
  flex: 0 0 auto;
  width: 8.2em;
  height: 8.2em;
  border-radius: 50%;
  overflow: hidden;
  background: var(--proc-thumb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.process-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 원형 영역에 맞게 자동 크롭 */
  display: block;
}
.process-thumb-ph {
  color: #a7b0ba;
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  padding: 0 0.4em;
}

/* 항목 텍스트 */
.process-itemtext {
  flex: 1 1 auto;
  min-width: 0;
}
.process-itemtitle {
  font-size: clamp(20px, 2.15vw, 28px);   /* 시술명 확대(사용자 지시: 카드 안 글씨 좀 더 키워). 참조: 배너 제목과 거의 같은 크기(약 1:1) */
  font-weight: 800;
  color: var(--proc-title);
  line-height: 1.3;
  margin-bottom: 0.4em;
}
.process-itemdesc {
  font-size: clamp(16px, 1.72vw, 21px);     /* 설명 문구 확대(시술명의 약 78% — 참조 비율). 카드 안 글씨 키움 */
  font-weight: 500;
  color: var(--proc-desc);
  line-height: 1.62;                        /* 줄간격 확대로 가독성 개선 */
  white-space: pre-wrap;   /* 줄바꿈 보존, 말줄임 없음 */
}

.process-empty {
  margin: auto;
  color: var(--proc-desc);
  font-size: 15px;
}

/* ---------------- 편집 모드 ---------------- */
.process-page.editable [data-edit] {
  outline: 1px dashed transparent;
  border-radius: 4px;
  transition: outline-color 0.15s, background 0.15s;
  cursor: text;
}
.process-page.editable [data-edit]:hover {
  outline-color: rgba(75,85,99,0.45);
  background: rgba(75,85,99,0.05);
}
.process-page.editable [data-edit]:focus {
  outline: 1px solid var(--accent);
  background: rgba(75,85,99,0.07);
}
/* 헤더바/배지 안의 편집 요소는 흰 글씨 대비를 위해 밝은 아웃라인 */
.process-page.editable .process-cardtitle:hover,
.process-page.editable .process-badge-text:hover {
  outline-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}

/* 편집 모드: 썸네일 클릭 → 파일 선택 (VOLLIA 부스터와 동일 방식) */
.process-page.editable .process-thumb { cursor: pointer; }

/* 빈 썸네일: 아이콘 + '이미지 등록' 안내 (VOLLIA 스타일) */
.process-thumb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  width: 100%;
  height: 100%;
  color: #9aa4ae;
  text-align: center;
  padding: 0 0.3em;
  box-sizing: border-box;
}
.process-thumb-empty svg {
  width: 34%;
  height: auto;
  max-width: 26px;
  opacity: 0.9;
}
.process-thumb-empty span {
  font-size: clamp(9px, 0.95vw, 11px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.process-thumb-empty.plain { color: transparent; }   /* 뷰어에서는 안내 숨김 */
.process-page.editable .process-thumb.is-empty {
  border: 1.5px dashed var(--line);
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.process-page.editable .process-thumb.is-empty:hover {
  border-color: var(--accent);
  background: rgba(75,85,99,0.06);
}

/* 등록된 이미지 삭제(×) 버튼 - 썸네일 우상단 (VOLLIA 스타일) */
.process-thumb-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background 0.15s;
}
.process-thumb-del:hover { background: #c33; }

/* 항목 도구(위/아래 이동 + 삭제) — 항목 우측에 세로 배치 */
.process-item-tools {
  position: absolute;
  top: 50%;
  right: -0.2em;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}
.process-item:hover .process-item-tools { opacity: 1; }
.process-item-move,
.process-item-del {
  width: 1.7em;
  height: 1.7em;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
}
.process-item-move:hover { background: var(--page-bg); color: var(--accent); border-color: var(--accent); }
.process-item-move:disabled { opacity: 0.3; cursor: not-allowed; }
.process-item-del { border-radius: 50%; }
.process-item-del:hover { background: rgba(200,60,60,0.12); color: #c33; border-color: #e0b4b4; }

/* 카드 하단 도구(항목 추가 / 카드 삭제) */
.process-cardtools {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 1.5em 1.4em;
  margin-top: auto;   /* 항상 카드 맨 아래 */
}
.process-btn {
  border-radius: 8px;
  padding: 0.5em 1em;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--accent);
  background: rgba(75,85,99,0.06);
  color: var(--accent);
}
.process-btn:hover { background: rgba(75,85,99,0.14); }
.process-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.process-btn-del { border-color: #d8bcbc; color: #b25555; background: rgba(200,80,80,0.05); }
.process-btn-del:hover { background: rgba(200,80,80,0.12); }

/* 카드 추가 바 (편집 모드) */
.process-addbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  margin-top: 1.4%;
}
.process-add-card {
  border: 1px dashed var(--accent);
  background: rgba(75,85,99,0.05);
  color: var(--accent);
  border-radius: 9px;
  padding: 0.6em 1.4em;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.process-add-card:hover { background: rgba(75,85,99,0.12); }

/* 숨김 파일 입력 */
.process-file-hidden { display: none; }
