/* ============================================================
   venue-panels.css
   매티에르 브랜드 톤, 모바일 우선 (iPhone 16 Pro 393px)
   에메랄드: #0f8854  크림: #faf8f5  골드: #c9a96e  다크: #1a1a1a
   ============================================================ */

:root {
  --vm-emerald:      #0f8854;
  --vm-emerald-dark: #0a6840;
  --vm-emerald-pale: #e8f5ee;
  --vm-cream:        #faf8f5;
  --vm-cream-dark:   #f0ebe3;
  --vm-gold:         #c9a96e;
  --vm-gold-light:   #e0c99e;
  --vm-dark:         #1a1a1a;
  --vm-gray:         #8a7b72;
  --vm-border:       #e5ded6;
  --vtnav-h:         60px;
}

/* ── 1. 하단 탭 바 ─────────────────────────────────── */
#vtnav-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--vtnav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--vm-cream);
  border-top: 1px solid var(--vm-border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.vtnav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--vm-gray);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
  border-top: 2px solid transparent;
}
.vtnav-tab .vtnav-icon { font-size: 20px; line-height: 1; }
.vtnav-tab:active { background: var(--vm-cream-dark); }
.vtnav-tab.active {
  color: var(--vm-emerald);
  border-top-color: var(--vm-emerald);
}
.vtnav-tab.active .vtnav-icon { transform: scale(1.08); }

/* 탭 바가 있을 때 툴바·쉘 하단 여백 */
body.vtnav-visible #shell        { bottom: var(--vtnav-h); }
body.vtnav-visible #toolbar      { /* no change needed */ }

/* ── 2. 모바일 전체화면 패널 오버레이 ────────────────── */
.vt-fullscreen-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: var(--vtnav-h);
  background: var(--vm-cream);
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.vt-fullscreen-overlay.open {
  transform: translateY(0);
}

.vt-overlay-header {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  border-bottom: 1px solid var(--vm-border);
  background: var(--vm-cream);
  flex-shrink: 0;
}
.vt-overlay-title {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--vm-dark);
  letter-spacing: 0.03em;
}
.vt-overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--vm-gray);
  padding: 8px;
  border-radius: 6px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.vt-overlay-close:active { background: var(--vm-cream-dark); }

.vt-overlay-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 3. 패널 공통 스타일 ─────────────────────────────── */

/* 집계 카드 */
.vm-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: var(--vm-cream);
  border-bottom: 1px solid var(--vm-border);
}
.vm-stat-card {
  background: white;
  border: 1px solid var(--vm-border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.vm-stat-card .vm-stat-n {
  font-size: 24px;
  font-weight: 700;
  color: var(--vm-dark);
  line-height: 1.1;
}
.vm-stat-card .vm-stat-l {
  font-size: 10px;
  color: var(--vm-gray);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.vm-stat-card.em .vm-stat-n { color: var(--vm-emerald); }
.vm-stat-card.gold .vm-stat-n { color: var(--vm-gold); }

/* 기본 액션 버튼 */
.vm-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--vm-emerald);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vm-btn-primary:active { background: var(--vm-emerald-dark); }

.vm-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  background: none;
  color: var(--vm-gray);
  border: 1px solid var(--vm-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vm-btn-secondary:active { background: var(--vm-cream-dark); }

.vm-btn-danger {
  color: #c00;
  border-color: #fcc;
}
.vm-btn-danger:active { background: #fee8e8; }

/* 필터 칩 */
.vm-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--vm-border);
}
.vm-filter-chip {
  padding: 6px 12px;
  border: 1px solid var(--vm-border);
  border-radius: 20px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: white;
  color: var(--vm-gray);
  transition: 0.15s;
  min-height: 32px;
  -webkit-tap-highlight-color: transparent;
}
.vm-filter-chip.on {
  background: var(--vm-emerald);
  color: white;
  border-color: var(--vm-emerald);
}

/* 리스트 아이템 */
.vm-list { padding: 8px 16px; display: flex; flex-direction: column; gap: 6px; }
.vm-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--vm-border);
  border-radius: 10px;
  min-height: 52px;
}
.vm-list-item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--vm-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* 뱃지 */
.vm-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.vm-badge-groom  { background: #E8EEF8; color: #3355AA; }
.vm-badge-bride  { background: #F8EEF0; color: #AA3355; }
.vm-badge-attend { background: #E8F5EC; color: #2A7A40; }
.vm-badge-pend   { background: #FEF8E8; color: #8A6A10; }
.vm-badge-decl   { background: #F5E8E8; color: #8A2020; }
.vm-badge-table  { background: var(--vm-emerald-pale); color: var(--vm-emerald); }

/* 폼 */
.vm-form {
  margin: 12px 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--vm-border);
  border-radius: 12px;
}
.vm-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--vm-emerald);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.vm-form-row { margin-bottom: 12px; }
.vm-form-lbl {
  display: block;
  font-size: 11px;
  color: var(--vm-gray);
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.vm-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--vm-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--vm-cream);
  color: var(--vm-dark);
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.vm-input:focus { outline: none; border-color: var(--vm-emerald); background: white; }

/* 세그먼트 컨트롤 */
.vm-segs { display: flex; gap: 4px; }
.vm-seg {
  flex: 1;
  min-height: 44px;
  padding: 10px 6px;
  border: 1px solid var(--vm-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: var(--vm-cream);
  color: var(--vm-gray);
  text-align: center;
  transition: 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vm-seg.on {
  background: var(--vm-emerald);
  color: white;
  border-color: var(--vm-emerald);
  font-weight: 600;
}

/* 폼 액션 버튼 행 */
.vm-form-acts { display: flex; gap: 8px; margin-top: 14px; }

/* 테이블 카드 (좌석 배치) */
.vm-table-card {
  margin: 8px 16px;
  background: white;
  border: 1px solid var(--vm-border);
  border-radius: 12px;
  overflow: hidden;
}
.vm-table-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--vm-cream-dark);
  border-bottom: 1px solid var(--vm-border);
}
.vm-table-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--vm-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vm-table-occ {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: white;
  color: var(--vm-gray);
  flex-shrink: 0;
}
.vm-table-occ.full {
  background: var(--vm-emerald);
  color: white;
}

.vm-seat-chips {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
}
.vm-seat-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  background: #E8EEF8;
  color: #334;
}
.vm-seat-chip.bride { background: #F8EEF0; color: #443; }
.vm-seat-chip-side { font-size: 10px; opacity: 0.6; }
.vm-seat-x {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 12px;
  padding: 0 2px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.vm-seat-x:active { color: #c00; }

.vm-assign-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 12px;
  min-height: 40px;
  padding: 10px;
  background: none;
  border: 1.5px dashed var(--vm-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--vm-gray);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vm-assign-btn.open, .vm-assign-btn:active {
  border-color: var(--vm-emerald);
  color: var(--vm-emerald);
  background: var(--vm-emerald-pale);
}

/* 피커 */
.vm-picker {
  padding: 12px 14px;
  background: var(--vm-emerald-pale);
  border-top: 1px solid var(--vm-border);
}
.vm-picker-lbl {
  font-size: 11px;
  color: var(--vm-emerald-dark);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vm-picker-list { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-picker-chip {
  padding: 7px 14px;
  border-radius: 14px;
  font-size: 13px;
  background: white;
  border: 1px solid var(--vm-border);
  cursor: pointer;
  color: var(--vm-dark);
  font-family: 'DM Sans', sans-serif;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.vm-picker-chip:active {
  background: var(--vm-emerald);
  color: white;
  border-color: var(--vm-emerald);
}

/* 미배정 섹션 */
.vm-unas-section {
  padding: 12px 16px 24px;
  border-top: 1px solid var(--vm-border);
  margin-top: 8px;
}
.vm-unas-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--vm-dark);
  margin-bottom: 10px;
}
.vm-unas-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-unas-chip {
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  background: #FEF8E8;
  border: 1px solid #e0d090;
  color: var(--vm-dark);
}

/* 공통 빈 상태 */
.vm-empty {
  text-align: center;
  padding: 32px 24px;
  color: var(--vm-gray);
  font-size: 13px;
  line-height: 1.7;
}
.vm-empty-icon { font-size: 36px; margin-bottom: 8px; }

/* CSV 버튼 행 */
.vm-csv-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--vm-border);
}

/* 섹션 구분선 */
.vm-divider {
  height: 1px;
  background: var(--vm-border);
  margin: 4px 16px;
}

/* 요약 칩 행 */
.vm-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--vm-border);
}
.vm-summary-chip {
  padding: 5px 12px;
  background: white;
  border: 1px solid var(--vm-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--vm-gray);
}
.vm-summary-chip b { color: var(--vm-emerald); }

/* ── 4. 데스크탑 숨김 ─────────────────────────────── */
@media (min-width: 769px) {
  #vtnav-bar { display: none; }
  .vt-fullscreen-overlay { display: none !important; }
}

/* ── 5. 체크박스 / 숫자 입력 ─────────────────────── */
.vm-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.vm-check-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--vm-emerald);
  cursor: pointer;
  flex-shrink: 0;
}
.vm-check-lbl { font-size: 14px; color: var(--vm-dark); }
.vm-num-input {
  width: 72px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--vm-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--vm-cream);
  font-family: 'DM Sans', sans-serif;
  -webkit-appearance: none;
  text-align: center;
}

/* ── 6. 아이콘 버튼 ─────────────────────────────── */
.vm-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--vm-gray);
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.vm-icon-btn:active { background: var(--vm-cream-dark); }
.vm-icon-btn.danger:active { background: #fee8e8; color: #c00; }

/* ═══════════════════════════════════════════════════════════════
   계약·예산 탭 — 타이포·레이아웃 정리
   [2026-08-25 재인님 지시] "여기 이 탭쪽에도 폰트 등 트렌디하게"

   원칙 두 가지
     1. index.html 의 마크업과 문구는 한 글자도 건드리지 않는다.
        화면 문구가 68개 언어 번역의 키라서, 문구를 고치면 번역이 깨진다.
     2. 그래서 전부 여기 CSS 로만 덮는다. 인라인 style 을 이겨야 하므로
        이 블록에 한해 !important 를 쓴다.
   ═══════════════════════════════════════════════════════════════ */

#contract-page {
  --cp-radius: 16px;
  --cp-hair: rgba(36, 31, 27, 0.08);
  --cp-num: 'Pretendard Variable', Pretendard, -apple-system,
            BlinkMacSystemFont, 'DM Sans', sans-serif;
}

/* ── 숫자는 전부 고정폭으로. 금액이 바뀔 때 자릿수가 흔들리지 않는다 ── */
#contract-page input[type="number"],
#contract-page .cp-num,
#cp-panel-budget td,
#cp-panel-budget .cp-sum-value {
  font-family: var(--cp-num) !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: 'tnum' 1, 'cv01' 1 !important;
}

/* ── 상단 탭: 밑줄 → 알약. 파괴적 동작은 같은 층위에서 내린다 ── */
#contract-page .cp-tab-bar {
  gap: 4px !important;
  border-bottom: 1px solid var(--cp-hair) !important;
  padding-bottom: 0 !important;
}
#contract-page .cp-tab-btn {
  padding: 9px 16px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 10px 10px 0 0 !important;
  transition: color .18s ease, border-color .18s ease, background .18s ease !important;
}
#contract-page .cp-tab-btn:hover { background: rgba(36, 31, 27, 0.035) !important; }
#contract-page .cp-tab-btn.active {
  border-bottom-color: currentColor !important;
  background: transparent !important;
}

/* 로그아웃·계정 삭제 같은 보조 동작은 작고 조용하게.
   삭제가 1차 화면에서 빨간 글씨로 눈에 띄면 안 된다. */
#contract-page .cp-tab-bar .cp-btn-ghost {
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  color: var(--warm-gray) !important;
  border-color: var(--cp-hair) !important;
  background: transparent !important;
  font-weight: 500 !important;
}
#contract-page .cp-tab-bar .cp-btn-ghost:hover {
  color: var(--charcoal) !important;
  background: rgba(36, 31, 27, 0.04) !important;
}

/* ── 카드 ── */
#contract-page .cp-card {
  border-radius: var(--cp-radius) !important;
  padding: 22px 20px !important;
  border: 1px solid var(--cp-hair) !important;
  box-shadow: 0 1px 2px rgba(36, 31, 27, 0.04),
              0 12px 28px -18px rgba(36, 31, 27, 0.35) !important;
}

/* ── 총 예산 입력 줄 ── */
#cp-panel-budget input#cp-total-budget {
  width: 148px !important;
  padding: 10px 12px !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  border-radius: 12px !important;
  border: 1px solid var(--cp-hair) !important;
  background: rgba(36, 31, 27, 0.025) !important;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease !important;
}
#cp-panel-budget input#cp-total-budget:focus {
  outline: none !important;
  background: #fff !important;
  border-color: var(--rose-gold, #C9A961) !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.16) !important;
}

/* ── 요약 4칸: 흩어진 숫자 → 격자 한 판 ── */
#cp-panel-budget > .cp-card > div[style*="gap:24px"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 18px 0 14px !important;
  padding: 16px 4px !important;
  border-top: 1px solid var(--cp-hair) !important;
  border-bottom: 1px solid var(--cp-hair) !important;
}
#cp-panel-budget > .cp-card > div[style*="gap:24px"] > div {
  padding: 2px 10px !important;
  border-left: 1px solid var(--cp-hair) !important;
}
#cp-panel-budget > .cp-card > div[style*="gap:24px"] > div:first-child {
  border-left: none !important;
}
/* 큰 숫자 */
#cp-panel-budget > .cp-card > div[style*="gap:24px"] > div > div:first-child {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums !important;
}
/* 아래 라벨 */
#cp-panel-budget > .cp-card > div[style*="gap:24px"] > div > div:last-child {
  margin-top: 6px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.35 !important;
  opacity: .78 !important;
}

@media (max-width: 560px) {
  #cp-panel-budget > .cp-card > div[style*="gap:24px"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 18px !important;
  }
  #cp-panel-budget > .cp-card > div[style*="gap:24px"] > div:nth-child(3) {
    border-left: none !important;
  }
  #cp-panel-budget > .cp-card > div[style*="gap:24px"] > div:first-child { font-size: 24px !important; }
}

/* ── 안내 배너: 본문보다 커 보이던 것을 낮춘다 ── */
#cp-budget-hint {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  letter-spacing: -0.005em !important;
  background: rgba(15, 136, 84, 0.045) !important;
  border-color: rgba(15, 136, 84, 0.16) !important;
}
#cp-budget-hint b, #cp-budget-hint strong {
  font-weight: 650 !important;
  font-size: 13.5px !important;
}

/* ── 표: 가로로 잘리던 '실제 지출' 칸을 살린다 ── */
#cp-panel-budget table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
#cp-panel-budget thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: rgba(250, 249, 246, 0.96) !important;
  backdrop-filter: saturate(1.4) blur(6px) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(6px) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--warm-gray) !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid var(--cp-hair) !important;
}
#cp-panel-budget .cp-budget-row td { padding: 12px 8px !important; }
#cp-panel-budget .cp-budget-row td:first-child {
  font-size: 14.5px !important;
  font-weight: 550 !important;
  letter-spacing: -0.012em !important;
}
#cp-panel-budget .cp-budget-row:hover { background: rgba(36, 31, 27, 0.022) !important; }

/* 표 안 금액 입력칸 */
#cp-panel-budget .cp-budget-row input[type="number"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 130px !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: rgba(36, 31, 27, 0.035) !important;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease !important;
}
#cp-panel-budget .cp-budget-row input[type="number"]:hover {
  background: rgba(36, 31, 27, 0.06) !important;
}
#cp-panel-budget .cp-budget-row input[type="number"]:focus {
  outline: none !important;
  background: #fff !important;
  border-color: var(--rose-gold, #C9A961) !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15) !important;
}

/* '만원' 단위 라벨 — 칸마다 반복돼 시선을 뺏던 것을 죽인다 */
#cp-panel-budget .cp-budget-row td > div:not([class]) {
  font-size: 10.5px !important;
  opacity: .55 !important;
  margin-top: 3px !important;
  letter-spacing: 0 !important;
}

/* ── 진행 막대 ── */
#cp-panel-budget .budget-demo-bar,
#cp-panel-budget div[style*="height:8px"],
#cp-panel-budget div[style*="height:10px"] {
  border-radius: 999px !important;
  overflow: hidden !important;
}
#cp-panel-budget .budget-demo-bar i {
  border-radius: 999px !important;
  transition: width .5s cubic-bezier(.22, 1, .36, 1) !important;
}

/* ============================================================
   [2026-08-27] 예산 탭 · 에디토리얼 v2
   "고급 웨딩 매거진의 한 페이지처럼" — 표가 아니라 지면.
   렌더 마크업은 그대로 두고 CSS 로만 이긴다 (인라인 스타일 → !important).
   ============================================================ */

/* 종이 — 카드가 흰 상자가 아니라 반 톤 밝은 지면 */
#cp-panel-budget .cp-card {
  background: #fbf8f3 !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(60,50,40,.05), 0 12px 32px rgba(60,50,40,.05) !important;
  padding: 26px 20px 22px !important;
}

/* 탭 — 필 대신 잉크와 밑줄 하나 */
.cp-tab-btn {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 2px !important;
  margin-right: 18px !important;
  font-size: 15px !important;
  color: #8b8378 !important;
  letter-spacing: 0 !important;
}
.cp-tab-btn.active {
  color: #2b2622 !important;
  font-weight: 600 !important;
  box-shadow: inset 0 -2px 0 var(--burgundy) !important;
}

/* 고스트 버튼 — 조용한 윤곽 */
#cp-panel-budget .cp-btn-ghost,
#cp-region-chip {
  background: transparent !important;
  border: 1px solid rgba(60,50,40,.16) !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  font-size: 12.5px !important;
  color: #6f675d !important;
  box-shadow: none !important;
}
#cp-panel-budget .cp-btn-ghost:active { transform: scale(.98); }

/* 총 예산 — 지면의 헤드라인 숫자 */
#cp-panel-budget input#cp-total-budget {
  border: none !important;
  border-bottom: 1.5px solid rgba(60,50,40,.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  width: 172px !important;
  padding: 2px 4px 6px !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  color: #2b2622 !important;
  font-family: inherit !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
}
#cp-panel-budget input#cp-total-budget:focus {
  outline: none !important;
  border-bottom-color: var(--burgundy) !important;
}

/* 요약 네 칸 — 무지개를 걷고 잉크 + 포인트 하나 */
#cp-panel-budget div[style*="font-size:20px"] {
  font-size: 24px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  color: #2b2622 !important;
  line-height: 1.15;
}
#cp-panel-budget div[style*="font-size:20px"][style*="--burgundy"] {
  color: var(--burgundy) !important;   /* 총 예산 한 곳만 색 */
}
#cp-panel-budget div[style*="font-size:20px"][style*="#2ecc71"] {
  color: #5a7d63 !important;           /* 원색 초록 → 세이지 */
}
#cp-panel-budget div[style*="font-size:11px"][style*="--warm-gray"] {
  font-size: 11px !important;
  color: #a29a8e !important;
  margin-top: 3px;
}

/* 지역 배너 — 색 상자 대신 같은 종이 위의 조용한 메모 */
#cp-region-shift,
#cp-panel-budget [id^="cp-hint"],
#cp-panel-budget div[style*="#fdf6ec"],
#cp-panel-budget div[style*="#eef7f1"] {
  background: rgba(60,50,40,.035) !important;
  border: none !important;
  border-left: 2px solid rgba(122,62,72,.35) !important;
  border-radius: 0 12px 12px 0 !important;
}

/* 표를 지면으로 — 선을 걷어낸다 */
#cp-panel-budget table {
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
}
#cp-panel-budget table th {
  background: none !important;
  border: none !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #a29a8e !important;
  padding: 2px 8px 6px !important;
  letter-spacing: 0 !important;
}
tr.cp-budget-row { border-bottom: none !important; }
tr.cp-budget-row td {
  border: none !important;
  padding: 7px 8px !important;
}

/* 항목 이름 — 본문 활자 */
tr.cp-budget-row td:first-child input {
  font-size: 14.5px !important;
  color: #2b2622 !important;
  font-family: inherit !important;
}

/* 금액 입력 — 상자 테두리 대신 옅은 면, 숫자는 오른쪽 정렬 */
tr.cp-budget-row input[type="number"] {
  border: none !important;
  background: rgba(60,50,40,.045) !important;
  border-radius: 10px !important;
  width: 96px !important;
  padding: 9px 10px !important;
  font-size: 14px !important;
  text-align: right;
  font-family: inherit !important;
  font-variant-numeric: tabular-nums;
  color: #2b2622 !important;
  transition: background .15s, box-shadow .15s;
}
tr.cp-budget-row input[type="number"]:focus {
  outline: none !important;
  background: #fff !important;
  box-shadow: 0 0 0 1.5px rgba(122,62,72,.35);
}

/* 단위 — 숫자 옆에서 반 발짝 물러난 캡션 */
tr.cp-budget-row td span,
#cp-panel-budget .cp-card > div:first-child > span:last-of-type {
  font-size: 10.5px !important;
  color: #a29a8e !important;
}

/* 진행 줄 문구 */
#cp-panel-budget [style*="계약 완료"], #cp-build-line { letter-spacing: 0; }

/* 행 사이 헤어라인은 아주 옅게 하나만 (간격이 주 구분자) */
tr.cp-budget-row + tr.cp-budget-row td { border-top: 1px solid rgba(60,50,40,.05) !important; }


/* ============================================================
   [2026-08-27] 예산 탭 · 에디토리얼 v3 — 화이트 지면 & 타이포
   지시: 아이보리 걷어내고 화이트. 헤드라인 = Noto Serif KR(명조),
   본문·표·입력 = Pretendard. 버건디 포인트는 유지.
   v2 뒤에 두어 같은 특이도에서 나중 규칙으로 이긴다.
   ============================================================ */

/* 판 전체: 아이보리 → 뉴트럴 화이트 */
#contract-page { background: #fafafa !important; }
#cp-panel-budget .cp-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.055) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 10px 30px rgba(0,0,0,.04) !important;
}

/* 본문 활자 = Pretendard */
#contract-page,
#contract-page input,
#contract-page button,
#contract-page select,
#contract-page textarea {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif !important;
}

/* 헤드라인 세리프 = 탭 · 총예산 라벨 · 총예산 숫자 · 요약 숫자 */
.cp-tab-btn,
#cp-panel-budget input#cp-total-budget,
#cp-panel-budget .cp-card > div:first-child > span:first-of-type,
#cp-panel-budget div[style*="font-size:20px"] {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif !important;
}
.cp-tab-btn { color: #9a9a9a !important; font-weight: 600 !important; }
.cp-tab-btn.active { color: #191919 !important; }
#cp-panel-budget .cp-card > div:first-child > span:first-of-type {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #191919 !important;
}
#cp-panel-budget input#cp-total-budget {
  color: #191919 !important;
  font-weight: 700 !important;
  border-bottom-color: rgba(0,0,0,.2) !important;
}
#cp-panel-budget div[style*="font-size:20px"] {
  color: #191919 !important;
  font-weight: 600 !important;
}

/* 잉크·회지: 웜 브라운 → 뉴트럴 */
tr.cp-budget-row td:first-child input { color: #191919 !important; }
tr.cp-budget-row input[type="number"] {
  color: #191919 !important;
  background: rgba(0,0,0,.035) !important;
}
tr.cp-budget-row + tr.cp-budget-row td { border-top-color: rgba(0,0,0,.05) !important; }
#cp-panel-budget table th { color: #9a9a9a !important; }
tr.cp-budget-row td span,
#cp-panel-budget .cp-card > div:first-child > span:last-of-type { color: #9a9a9a !important; }
#cp-panel-budget div[style*="font-size:11px"][style*="--warm-gray"] { color: #9a9a9a !important; }

/* 고스트 버튼·지역 칩 */
#cp-panel-budget .cp-btn-ghost,
#cp-region-chip {
  border-color: rgba(0,0,0,.14) !important;
  color: #6b6b6b !important;
}

/* 안내 배너: 연두 상자 → 화이트 지면 위 조용한 메모 (버건디 룰 유지) */
#cp-budget-hint,
#cp-region-shift,
#cp-panel-budget [id^="cp-hint"],
#cp-panel-budget div[style*="#fdf6ec"],
#cp-panel-budget div[style*="#eef7f1"] {
  background: rgba(0,0,0,.028) !important;
  border: none !important;
  border-left: 2px solid rgba(92,26,46,.35) !important;
  border-radius: 0 12px 12px 0 !important;
}
#cp-budget-hint svg { stroke: #6b6b6b !important; }
#cp-budget-hint > div { color: #444 !important; }

/* v3 보강: 표 머리 띠 제거 (tr 인라인 ivory-dark) */
#cp-panel-budget table thead tr { background: none !important; }
