/*
  아트마케팅랩 디자인 시스템
  - 팔레트: 딥틸 + 슬레이트 잉크 + 크림 종이 배경
  - 타이포: Noto Sans KR (헤드라인 800~900 · 본문 400~600)
  - 모티프: 순위 상승 바 차트, 채널 클러스터
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color tokens - 로고(podo-symbol.svg) 컬러 그대로 사용 */
  --color-primary: #2C3327;       /* 슬레이트 잉크 */
  --color-primary-dark: #1B2117;  /* 히어로/푸터 배경용 진한 브라운 */
  --color-on-primary: #FFFFFF;
  --color-secondary: #6B7360;     /* 웜 타운 - 보조 텍스트 */
  --color-accent: #5F8526;        /* 딥틸 - 주요 CTA */
  --color-accent-dark: #4C6B1D;
  --color-accent-bright: #CFE8A3; /* 밝은 틸 - 장식용 */
  --color-accent-ink: #4C6B1D;    /* 텍스트로 쓸 때 대비 4.5:1+ 확보한 그린 (kicker 등) */
  --color-on-accent: #FFFFFF;
  --color-gold: #D9A441;          /* 골드 - 배지 포인트 */

  --color-bg: #FDFDF6;            /* 로고와 동일한 크림 배경 */
  --color-surface: #FFFFFF;
  --color-fg: #2C3327;
  --color-muted-fg: #6B7360;
  --color-muted-bg: #F2F5E8;
  --color-border: #E3E9D6;
  --color-success: #4C8C3A;
  --color-warning: #C9860B;
  --color-danger: #B3273B;
  --color-ring: #2C3327;

  --shadow-sm: 0 1px 2px rgba(44, 51, 39, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 51, 39, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 51, 39, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.32; letter-spacing: -0.025em; word-break: keep-all; overflow-wrap: break-word; }
p { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-outline:hover { background: var(--color-muted-bg); }
.btn-ghost { background: transparent; color: var(--color-on-primary); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 var(--space-3); font-size: 0.875rem; }
.btn-danger { background: var(--color-danger); color: #fff; border-radius: var(--radius-sm); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 253, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.nav.scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--color-primary); }
.nav-brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-links a { font-weight: 500; color: var(--color-muted-fg); padding: var(--space-2) 0; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-inner { flex-wrap: wrap; row-gap: var(--space-2); padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .nav-brand { font-size: 1.05rem; }
  .nav-brand img { width: 28px; height: 28px; }
  .nav-cta { gap: var(--space-2); }
  .nav-cta .btn { padding: 7px 12px; font-size: 0.8rem; }
  .nav-toggle { display: none; }
  .nav-links {
    order: 3; width: 100%; gap: var(--space-4);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 0; padding-top: var(--space-1);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 0.9rem; padding: 2px 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg);
  color: var(--color-fg);
  padding: var(--space-8) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; height: 260px; }
}
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; color: var(--color-accent-dark); }
.hero p.lead { font-size: 1.15rem; color: var(--color-muted-fg); margin-bottom: var(--space-5); max-width: 52ch; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-visual { position: relative; height: 420px; }
.hero-visual svg { width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section-alt { background: var(--color-surface); }
.section-head { max-width: 760px; margin: 0 auto var(--space-6); text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head .kicker { color: var(--color-accent-ink); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); display: block; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: var(--space-3); }
.section-head p { color: var(--color-muted-fg); font-size: 1.08rem; line-height: 1.75; }

/* ---------- 비대칭 2단 섹션 (텍스트 + 클러스터 다이어그램) ---------- */
.split-head { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-7); align-items: center; }
.split-head-text p { color: var(--color-muted-fg); font-size: 1.05rem; margin: var(--space-3) 0 var(--space-5); max-width: 42ch; }
@media (max-width: 900px) { .split-head { grid-template-columns: 1fr; } .split-head-text { text-align: center; } .split-head-text p { margin-left: auto; margin-right: auto; } }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-6 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-muted-bg);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: background-color 200ms ease, transform 200ms ease;
}
.section-alt .card { background: var(--color-bg); }
.card:hover { background: var(--color-muted-bg); transform: translateY(-2px); }
.card:hover, .card:hover .icon-badge { color: var(--color-primary); }
.card:hover .icon-badge { background: var(--color-accent-bright); }
.card .icon-badge {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  transition: background-color 200ms ease;
}
.card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.card p { color: var(--color-muted-fg); font-size: 0.95rem; }
.card:hover p { color: var(--color-muted-fg); }

/* ---------- Process steps: 넝쿨로 이어지는 타임라인 ---------- */
.vine-timeline { position: relative; padding-top: var(--space-3); }
.vine-timeline .vine-line { position: absolute; left: 0; right: 0; top: 44px; height: 40px; z-index: 0; }
.vine-timeline .vine-line svg { width: 100%; height: 100%; display: block; }
.vine-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); }
.vine-steps.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 960px) { .vine-steps { grid-template-columns: repeat(3, 1fr); } .vine-timeline .vine-line { display: none; } }
@media (max-width: 560px) { .vine-steps, .vine-steps.cols-3 { grid-template-columns: 1fr; } }
.vine-step { text-align: center; }
.vine-step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin: 0 auto var(--space-3);
}
.vine-step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.vine-step p { font-size: 0.83rem; color: var(--color-muted-fg); }

/* ---------- 통계 바 (히어로 하단, 굵은 숫자로 신뢰 전달) ---------- */
.stat-bar {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 760px) { .stat-bar-inner { grid-template-columns: repeat(2, 1fr); } }
.stat-bar-item {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border-left: 1px solid var(--color-border);
}
.stat-bar-item:first-child { border-left: none; }
@media (max-width: 760px) { .stat-bar-item:nth-child(2n+1) { border-left: none; } .stat-bar-item:nth-child(n+3) { border-top: 1px solid var(--color-border); } }
.stat-bar-item .num { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--color-primary); line-height: 1; }
.stat-bar-item .num span { color: var(--color-accent-dark); }
.stat-bar-item .label { margin-top: 8px; font-size: 0.85rem; color: var(--color-muted-fg); font-weight: 600; }

/* ---------- 비교표 (직접 운영 vs 아트마케팅랩 패키지) ---------- */
.compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: var(--space-5) var(--space-4); }
.compare-col.them { color: var(--color-muted-fg); }
.compare-col.us {
  background: var(--color-primary);
  color: rgba(255,255,255,0.92);
  position: relative;
}
.compare-col h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: var(--space-4); }
.compare-col.us h4 { color: #fff; }
.compare-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.compare-col li { display: flex; gap: 10px; font-size: 0.92rem; line-height: 1.5; }
.compare-col.them li::before { content: '−'; color: var(--color-danger); font-weight: 800; flex-shrink: 0; }
.compare-col.us li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: var(--color-accent-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.compare-vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 0 0 4px var(--color-surface), var(--shadow-md);
  z-index: 2;
}

/* ---------- 채널 클러스터 다이어그램 ---------- */
.cluster { position: relative; width: 100%; min-height: 460px; margin: 0 auto; max-width: 640px; }
.cluster .cluster-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cluster-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--color-surface); border: 2px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; z-index: 2; padding: var(--space-2);
}
.cluster-center img { width: 40px; height: 40px; margin-bottom: 6px; }
.cluster-center span { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.cluster-node {
  position: absolute; width: 128px; text-align: center; z-index: 2;
  transform: translate(-50%, -50%);
}
.cluster-node .dot {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}
.cluster-node .dot svg { width: 34px; height: 34px; }
.cluster-node:hover .dot { transform: scale(1.1); box-shadow: var(--shadow-md); }
.cluster-node span { font-size: 0.85rem; font-weight: 600; }
@media (max-width: 700px) {
  .cluster { min-height: 0; }
  .cluster .cluster-lines, .cluster-center { display: none; }
  .cluster { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .cluster-node { position: static; transform: none; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.price-card .badge {
  position: absolute; top: -14px; left: var(--space-4);
  background: var(--color-accent); color: var(--color-on-accent);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.price-card .plan-name { font-weight: 700; font-size: 1.1rem; margin-bottom: var(--space-2); }
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-1); }
.price-card .price .list { font-size: 0.95rem; color: var(--color-muted-fg); text-decoration: line-through; font-weight: 500; margin-right: var(--space-2); }
.price-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--color-muted-fg); }
.price-card .support-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--color-accent-bright); color: var(--color-accent-dark);
  border-radius: 12px; padding: 10px 16px; margin-bottom: var(--space-2); align-self: flex-start;
}
.price-card .support-badge strong { font-family: var(--font-display); font-size: 2rem; font-weight: 900; line-height: 1; }
.price-card .support-badge span { font-size: 0.9rem; font-weight: 700; }
.price-card .support-badge.alt { background: var(--color-muted-bg); color: var(--color-primary); border: 1px solid var(--color-border); }
.price-card .support-badge.alt strong { font-size: 1.5rem; }
.price-card.featured .support-badge { background: var(--color-accent); color: #fff; }
.price-card .support-line {
  display: inline-block; margin-bottom: var(--space-3);
  font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--color-accent-dark); background: var(--color-accent-bright);
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.price-card .support-line b { font-size: 1.25rem; font-weight: 900; }
.price-card .note { font-size: 0.85rem; color: var(--color-muted-fg); margin-bottom: var(--space-4); }
.price-card ul { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); flex: 1; }
.price-card li { display: flex; gap: var(--space-2); font-size: 0.92rem; }
.price-card li svg { flex-shrink: 0; color: var(--color-success); margin-top: 2px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
thead th { background: var(--color-muted-bg); text-align: left; padding: var(--space-3); font-weight: 700; white-space: nowrap; }
tbody td { padding: var(--space-3); border-top: 1px solid var(--color-border); }
tbody tr:hover { background: var(--color-muted-bg); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.tag-yes { background: #E7F5EC; color: var(--color-success); }
.tag-no { background: var(--color-muted-bg); color: var(--color-muted-fg); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-2); }
.form-group .req { color: var(--color-danger); }
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-fg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.form-control { min-height: 120px; padding: var(--space-3); resize: vertical; }
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(65,34,16,0.15); outline: none; }
.form-hint { font-size: 0.82rem; color: var(--color-muted-fg); margin-top: var(--space-1); }
.form-error { font-size: 0.82rem; color: var(--color-danger); margin-top: var(--space-1); }
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: var(--space-4); }
.alert-success { background: #E7F5EC; color: #1E7A45; }
.alert-error { background: #FCE9EB; color: #B3273B; }
.alert-info { background: var(--color-muted-bg); color: var(--color-primary); }

/* ---------- Footer ---------- */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.85); padding: var(--space-6) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); } }
.footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-3); }
.footer li { margin-bottom: var(--space-2); font-size: 0.9rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-4); font-size: 0.82rem; color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- App shell (portal / admin) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-4);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.app-sidebar .brand { color: #fff; font-weight: 800; font-size: 1.05rem; padding: var(--space-2) var(--space-2) var(--space-5); display: block; }
.app-sidebar .nav-group { margin-bottom: var(--space-4); }
.app-sidebar .nav-group-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); padding: 0 var(--space-2); margin-bottom: var(--space-2); }
.app-sidebar a { display: block; padding: 10px var(--space-2); border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 2px; }
.app-sidebar a:hover { background: rgba(255,255,255,0.08); }
.app-sidebar a.active { background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }
.app-main { flex: 1; min-width: 0; }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 20;
}
.app-content { padding: var(--space-5); max-width: 1200px; }

@media (max-width: 860px) {
  .app-sidebar { position: fixed; left: -260px; z-index: 50; transition: left 200ms ease; box-shadow: var(--shadow-lg); }
  .app-sidebar.open { left: 0; }
  .app-content { padding: var(--space-4); }
}

/* ---------- Stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.stat-tile .label { font-size: 0.82rem; color: var(--color-muted-fg); margin-bottom: var(--space-2); }
.stat-tile .value { font-size: 1.6rem; font-weight: 800; color: var(--color-primary); }
.stat-tile .delta { font-size: 0.82rem; font-weight: 600; margin-top: var(--space-1); }
.delta-up { color: var(--color-success); }
.delta-down { color: var(--color-danger); }

/* progress bar */
.progress { height: 8px; border-radius: 999px; background: var(--color-muted-bg); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--color-accent); border-radius: 999px; transition: width 300ms ease; }

/* status dots */
.dot-done { color: var(--color-success); }
.dot-pending { color: var(--color-border); }
.dot-na { color: var(--color-muted-fg); }

.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); flex-wrap: wrap; gap: var(--space-2); }
.panel-head h3 { font-size: 1.1rem; }

.toolbar { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-4); }
.toolbar .form-control { min-height: 42px; width: auto; }

.empty-state { text-align: center; padding: var(--space-6) var(--space-4); color: var(--color-muted-fg); }

.badge-role { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--color-muted-bg); color: var(--color-primary); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 성장 그래프 ---------- */
.growth-wrap { display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items:center; }
@media (max-width: 860px){ .growth-wrap{ grid-template-columns:1fr; } }
.growth-chart { display:flex; align-items:flex-end; gap: 4%; height: 320px; padding: var(--space-4) var(--space-3) 0; }
@media (max-width: 560px){
  .growth-chart { height: 240px; gap: 2.5%; padding: var(--space-5) 0 0; }
  .g-num { font-size: 0.72rem; margin-bottom: 4px; }
  .g-yr { font-size: 0.68rem; margin-top: 5px; }
  .g-badge { font-size: 0.62rem; padding: 4px 7px; white-space: normal; width: 84px; line-height: 1.25; }
}
.g-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; position:relative; }
.g-track { position:relative; flex:1 1 auto; width:100%; min-height:0; display:flex; align-items:flex-end; justify-content:center; }
.g-bar { width:100%; max-width:64px; background: var(--color-accent-bright); border-radius: 10px 10px 4px 4px; }
.g-col:nth-child(n+4) .g-bar { background: var(--color-accent); }
.g-turn .g-bar { background: var(--color-gold); }
.g-num { position:absolute; left:50%; transform:translateX(-50%); font-family: var(--font-display); font-weight:900; font-size:1.05rem; margin-bottom:6px; color: var(--color-primary); white-space:nowrap; }
.g-yr { margin-top:8px; font-size:0.8rem; color: var(--color-muted-fg); white-space:nowrap; flex:none; }
.g-badge { position:absolute; left:50%; transform:translateX(-50%); z-index:2; background: var(--color-gold); color:#fff; font-size:0.72rem; font-weight:700; line-height:1.3; padding:6px 10px; border-radius:8px; text-align:center; white-space:nowrap; margin-bottom:40px; }
.g-badge::after { content:""; position:absolute; left:50%; bottom:-5px; transform:translateX(-50%); border:5px solid transparent; border-top-color: var(--color-gold); border-bottom:none; }
@media (max-width: 560px){
  .g-num { font-size: 0.72rem; margin-bottom: 4px; }
  /* 좁은 화면에서는 말풍선을 왼쪽으로 붙여 옆 막대 숫자를 가리지 않게 한다 */
  .g-badge { left:auto; right:0; transform:none; margin-bottom: 26px; }
  .g-badge::after { left:auto; right:20px; transform:none; }
}
.growth-copy p { color: var(--color-fg); line-height:1.75; margin:0 0 var(--space-3); }
.growth-copy strong { color: var(--color-primary); }
/* ---------- 현실/약속 카드 ---------- */
.reality-grid { display:grid; grid-template-columns:repeat(3,1fr); gap: var(--space-4); }
@media (max-width: 760px){ .reality-grid{ grid-template-columns:1fr; } }
.reality-card { background: var(--color-surface); border:1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.reality-card h4 { margin:0 0 var(--space-2); font-family: var(--font-display); font-size:1.1rem; }
.reality-card p { margin:0; color: var(--color-muted-fg); font-size:0.95rem; line-height:1.7; }
.reality-card.promise { border-top: 4px solid var(--color-accent); }

/* ---------- 채널 노드 클릭 · 작업 예시 모달 ---------- */
button.cluster-node { background:none; border:0; padding:0; font:inherit; cursor:pointer; text-align:center; }
button.cluster-node .dot { transition: transform .18s ease, box-shadow .18s ease; }
button.cluster-node:hover .dot, button.cluster-node:focus-visible .dot { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow-md); }
.node-more { display:block; margin-top:2px; font-size:0.7rem; font-style:normal; font-weight:700; color: var(--color-accent-ink); opacity:0; transition:opacity .18s ease; }
button.cluster-node:hover .node-more, button.cluster-node:focus-visible .node-more { opacity:1; }
@media (max-width: 760px){ .node-more{ opacity:1; } }

.ch-modal { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding: var(--space-4); }
.ch-modal[hidden] { display:none; }
.ch-modal-backdrop { position:absolute; inset:0; background: rgba(27,33,23,.55); backdrop-filter: blur(2px); }
.ch-modal-panel { position:relative; background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-6); max-width: 760px; width:100%; max-height: 86vh; overflow-y:auto; box-shadow: var(--shadow-lg); }
.ch-modal-close { position:absolute; top: var(--space-3); right: var(--space-3); width:36px; height:36px; border:0; border-radius:50%; background: var(--color-muted-bg); color: var(--color-fg); font-size:1.4rem; line-height:1; cursor:pointer; }
.ch-modal-panel h3 { margin: var(--space-2) 0 var(--space-2); font-family: var(--font-display); font-size:1.5rem; }
.ch-modal-summary { margin:0 0 var(--space-4); color: var(--color-muted-fg); }
.ch-modal-items { list-style:none; margin:0 0 var(--space-5); padding:0; display:grid; gap: var(--space-2); }
.ch-modal-items li { position:relative; padding-left: 20px; font-size:0.95rem; color: var(--color-fg); }
.ch-modal-items li::before { content:""; position:absolute; left:0; top:8px; width:8px; height:8px; border-radius:50%; background: var(--color-accent); }
.ch-modal-shots { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 640px){ .ch-modal-shots{ grid-template-columns:1fr; } .ch-modal-panel{ padding: var(--space-5); } }
.ch-shot { border:1px solid var(--color-border); border-radius: var(--radius-md); overflow:hidden; background: var(--color-muted-bg); }
.ch-shot img { display:block; width:100%; aspect-ratio: 3/4; object-fit: cover; }
.ch-shot-empty { display:flex; align-items:center; justify-content:center; text-align:center; aspect-ratio: 3/4; padding: var(--space-3);
  border:1px dashed var(--color-border); border-radius: var(--radius-md); color: var(--color-muted-fg); font-size:0.8rem; line-height:1.5;
  background: repeating-linear-gradient(45deg, var(--color-muted-bg) 0 10px, var(--color-surface) 10px 20px); }

/* ---------- 관리자: 채널 이미지 관리 ---------- */
.media-row { padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.media-row:first-child { border-top: 0; }
.media-head { display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.media-list { display:flex; flex-wrap:wrap; gap: var(--space-2); }
.media-thumb { position:relative; width:110px; }
.media-thumb img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius: var(--radius-sm); border:1px solid var(--color-border); display:block; }
.media-thumb .btn { position:absolute; right:4px; bottom:4px; padding:2px 8px; font-size:0.7rem; }
.btn-danger { background: var(--color-danger); color:#fff; }

/* 실적 숫자 기준일자 */
.stat-bar-item { position: relative; }
.stat-asof { position:absolute; right: var(--space-3); bottom: 6px; font-size:0.7rem; color: var(--color-muted-fg); opacity:.75; white-space:nowrap; }
@media (max-width: 760px){ .stat-asof{ position:static; display:block; text-align:center; margin-top:6px; } }
.media-row { border-radius: var(--radius-md); transition: background .15s ease, box-shadow .15s ease; outline:none; }
.media-row.drag-over { background: var(--color-muted-bg); box-shadow: inset 0 0 0 2px var(--color-accent); }
.media-row.selected { box-shadow: inset 0 0 0 2px var(--color-accent-bright); }
.media-row.selected .media-head strong::after { content:" · 붙여넣기 대기중"; font-size:0.72rem; font-weight:600; color: var(--color-accent-ink); }

/* ---------- 서비스 소개 · 상위노출 ---------- */
.seo-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 860px){ .seo-grid{ grid-template-columns:1fr; } }
.seo-card { display:flex; flex-direction:column; gap: var(--space-2); }
.seo-step { font-size:0.7rem; font-weight:800; letter-spacing:0.08em; color: var(--color-accent-ink); }
.seo-card h3 { margin:0; font-family: var(--font-display); font-size:1.15rem; }
.seo-card p { margin:0; color: var(--color-muted-fg); font-size:0.92rem; line-height:1.65; }
.kw-list { display:flex; flex-wrap:wrap; gap:6px; margin-top: var(--space-2); }
.kw { font-size:0.8rem; font-weight:600; padding:4px 10px; border-radius: var(--radius-pill); background: var(--color-muted-bg); color: var(--color-primary); }
.seo-note { font-size:0.78rem !important; color: var(--color-muted-fg); margin-top: var(--space-2) !important; }
.seo-areas { list-style:none; margin: var(--space-2) 0 0; padding:0; display:grid; gap:6px; font-size:0.92rem; }
.seo-areas li { position:relative; padding-left:18px; }
.seo-areas li::before { content:""; position:absolute; left:0; top:8px; width:7px; height:7px; border-radius:50%; background: var(--color-accent); }
.seo-manage { display:grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-5); align-items:center; margin-top: var(--space-6);
  background: var(--color-surface); border:1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
@media (max-width: 860px){ .seo-manage{ grid-template-columns:1fr; } }
.seo-manage h4 { margin:0 0 var(--space-2); font-family: var(--font-display); font-size:1.1rem; }
.seo-manage p { margin:0; color: var(--color-muted-fg); font-size:0.92rem; line-height:1.7; }
.tbl-mini table { width:100%; border-collapse:collapse; font-size:0.9rem; }
.tbl-mini th, .tbl-mini td { padding:8px 10px; border-bottom:1px solid var(--color-border); text-align:left; }
.tbl-mini th { font-size:0.75rem; color: var(--color-muted-fg); font-weight:600; }
.tbl-mini .up { color: var(--color-success); font-weight:700; }

/* ---------- 월간 리포트 샘플 ---------- */
.report-sample { background: var(--color-surface); border:1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-md); max-width: 880px; margin: 0 auto; }
.report-head { display:flex; align-items:flex-end; justify-content:space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom:2px solid var(--color-primary); margin-bottom: var(--space-4); flex-wrap:wrap; }
.report-brand { display:block; font-size:0.75rem; letter-spacing:0.06em; color: var(--color-muted-fg); margin-bottom:2px; }
.report-head strong { font-family: var(--font-display); font-size:1.3rem; }
.report-month { font-size:0.85rem; color: var(--color-muted-fg); }
.report-block { margin-bottom: var(--space-5); }
.report-block:last-child { margin-bottom:0; }
.report-block h4 { margin:0 0 var(--space-2); font-family: var(--font-display); font-size:1rem; }
.report-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.report-table th, .report-table td { padding:8px 10px; border-bottom:1px solid var(--color-border); text-align:left; white-space:nowrap; }
.report-table th { background: var(--color-muted-bg); font-size:0.75rem; font-weight:700; color: var(--color-muted-fg); }
.report-table td.c { text-align:center; }
.report-table .dots b { color: var(--color-accent); letter-spacing:2px; }
.report-table .dots s { text-decoration:none; color: var(--color-border); letter-spacing:2px; }
.report-table b { color: var(--color-accent-ink); }
.report-table .up { color: var(--color-success); font-weight:700; }
.report-table .down { color: var(--color-danger); font-weight:700; }
.report-note { margin: var(--space-2) 0 0; font-size:0.8rem; color: var(--color-muted-fg); }

/* ---------- 표 안의 채널 셀 (아이콘 + 아랫줄 이름) ---------- */
.ch-cell { display:flex; flex-direction:column; align-items:center; gap:4px; }
.ch-cell em { font-style:normal; font-size:0.78rem; font-weight:700; color: var(--color-primary); white-space:nowrap; }
table th, table td { padding: 10px 8px; }
#scope-standard table th:first-child, #scope-premium table th:first-child,
#scope-standard table td:first-child, #scope-premium table td:first-child { width: 74px; text-align:center; }
#scope-standard table th:nth-child(2), #scope-standard table th:nth-child(3), #scope-standard table th:nth-child(4),
#scope-premium table th:nth-child(2), #scope-premium table th:nth-child(3), #scope-premium table th:nth-child(4),
#scope-standard table td:nth-child(2), #scope-standard table td:nth-child(3), #scope-standard table td:nth-child(4),
#scope-premium table td:nth-child(2), #scope-premium table td:nth-child(3), #scope-premium table td:nth-child(4) {
  width: 48px; text-align:center; padding-left:2px; padding-right:2px;
}
#scope-standard table td:nth-child(5), #scope-premium table td:nth-child(5) { font-size:0.85rem; line-height:1.45; }
#scope-standard table th:nth-child(6), #scope-premium table th:nth-child(6),
#scope-standard table td:nth-child(6), #scope-premium table td:nth-child(6) { width:64px; text-align:center; white-space:nowrap; }
#scope-standard table th:last-child, #scope-premium table th:last-child,
#scope-standard table td:last-child, #scope-premium table td:last-child { width:96px; white-space:nowrap; }
@media (max-width: 700px){
  #scope-standard table td:nth-child(5), #scope-premium table td:nth-child(5) { font-size:0.78rem; }
  table th, table td { padding: 8px 4px; font-size:0.82rem; }
}

/* ---------- 소재 카드 (클릭 가능) ---------- */
button.card.mat-card { text-align:left; border:1px solid var(--color-border); cursor:pointer; font:inherit; width:100%; }
.mat-head { display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin-bottom: var(--space-3); }
.mat-ch { font-size:0.8rem; font-weight:700; color: var(--color-muted-fg); }
button.card.mat-card:hover { border-color: var(--color-accent); }

/* ---------- 모달 이미지 비율 ---------- */
.ch-modal-shots.ratio-h { grid-template-columns: repeat(2, 1fr); }
.ch-shot.h img, .ch-shot-empty.h { aspect-ratio: 16/9; }
.ch-shot.v img, .ch-shot-empty.v { aspect-ratio: 3/4; }

/* 프로세스: 원장님 담당 단계 강조 */
.vine-step { position: relative; }
.vine-step.yours { background: var(--color-accent-bright); border-radius: var(--radius-md); padding: var(--space-3); }
.vine-step .step-tag { display:inline-block; margin-top:6px; font-size:0.68rem; font-weight:800; padding:2px 8px; border-radius:999px; background: var(--color-accent); color:#fff; }
.vine-step .step-only { display:inline-block; margin-top:8px !important; font-size:0.86rem !important; font-weight:800;
  color: var(--color-accent-dark) !important; background:#fff; border-radius: var(--radius-pill); padding:5px 12px; box-shadow: var(--shadow-sm); }
.media-thumb.h { width: 180px; }
.media-thumb.h img { aspect-ratio: 16/9; }
.media-thumb.v img { aspect-ratio: 3/4; }

/* 소재 카드 3유형 */
.mat-types { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.mat-types li { display:flex; align-items:center; gap:10px; font-size:0.95rem; font-weight:600; color: var(--color-primary); }
.mat-no { flex-shrink:0; width:22px; height:22px; border-radius:50%; background: var(--color-accent-bright); color: var(--color-accent-dark); font-size:0.72rem; font-weight:800; display:flex; align-items:center; justify-content:center; }

/* 제공내용 폭 제한 — 월기준·산출물이 한 화면에 */
#scope-standard table td:nth-child(5), #scope-premium table td:nth-child(5) { max-width: 300px; white-space: normal; }
#scope-standard table, #scope-premium table, #scope-seo table { table-layout: fixed; width: 100%; }
#scope-seo table td:first-child { width: 90px; text-align:center; }
#scope-seo table td:nth-child(2) { white-space: normal; }
#scope-seo table th:nth-child(3), #scope-seo table td:nth-child(3) { width: 70px; text-align:center; }
#scope-seo table th:last-child, #scope-seo table td:last-child { width: 200px; white-space: normal; }

/* 상위노출 섹션 넘침 방지 */
.seo-manage > div { min-width: 0; }
.tbl-mini { overflow-x: auto; }
.seo-card { min-width: 0; }
.kw { word-break: keep-all; }

/* 표 폭 최종 조정 — 산출물까지 한 화면에 */
#scope-standard table td:nth-child(5), #scope-premium table td:nth-child(5) { max-width: none; }
#scope-standard table col, #scope-premium table col { }
#scope-standard table th:nth-child(5), #scope-premium table th:nth-child(5),
#scope-standard table td:nth-child(5), #scope-premium table td:nth-child(5) { width: auto; font-size:0.84rem; }
#scope-standard table th:nth-child(6), #scope-premium table th:nth-child(6),
#scope-standard table td:nth-child(6), #scope-premium table td:nth-child(6) { width: 58px; }
#scope-standard table th:last-child, #scope-premium table th:last-child,
#scope-standard table td:last-child, #scope-premium table td:last-child { width: 88px; white-space: normal; font-size:0.84rem; }

/* 상위노출 순위표: 변화 열까지 보이게 */
.seo-manage { grid-template-columns: 1fr 1.25fr; }
.tbl-mini table { table-layout: fixed; }
.tbl-mini th:first-child, .tbl-mini td:first-child { width: 44%; }
.tbl-mini th:not(:first-child), .tbl-mini td:not(:first-child) { width: 18.6%; text-align: center; }
.tbl-mini th, .tbl-mini td { padding: 8px 6px; font-size: 0.85rem; }
.tbl-mini table { width: 100%; min-width: 0; }
.tbl-mini th, .tbl-mini td { white-space: nowrap; }
.tbl-mini th:first-child, .tbl-mini td:first-child { width: 46%; white-space: normal; }
.tbl-mini th:not(:first-child), .tbl-mini td:not(:first-child) { width: 18%; }

/* ---------- 히어로 이미지 자리 ---------- */
.hero-shot { width:100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display:block; }
.hero-shot-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center;
  aspect-ratio: 4/3; border:2px dashed var(--color-border); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--color-muted-bg) 0 12px, var(--color-surface) 12px 24px);
  padding: var(--space-4);
}
.hero-shot-empty strong { font-family: var(--font-display); font-size:1.05rem; color: var(--color-primary); }
.hero-shot-empty span { font-size:0.82rem; color: var(--color-muted-fg); line-height:1.6; }

/* ---------- 채널 타일 (크게, 클릭) ---------- */
.ch-tiles { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); max-width: 940px; margin: 0 auto; }
@media (max-width: 760px){ .ch-tiles { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }
.ch-tile {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: var(--space-2);
  background: var(--color-surface); border:1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-3); cursor:pointer; font:inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ch-tile:hover, .ch-tile:focus-visible { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.ch-tile-icon { display:block; line-height:0; }
.ch-tile-name { font-family: var(--font-display); font-weight:800; font-size:1.15rem; color: var(--color-primary); }
.ch-tile-hint { font-size:0.74rem; color: var(--color-muted-fg); }
.ch-tile:hover .ch-tile-hint { color: var(--color-accent-dark); font-weight:700; }
@media (max-width: 760px){ .ch-tile { padding: var(--space-4) var(--space-2); } .ch-tile-name { font-size:1rem; } }

/* ---------- 모바일 표: 제공 내용 숨김 ---------- */
@media (max-width: 760px){
  /* (모바일 카드 모드에서 다시 켬 — 아래 규칙 참고) */
}
/* 모바일 네비 경계선 확실히 */
@media (max-width: 760px){ .nav { border-bottom: 1px solid var(--color-border); } }

/* 모바일에서 표가 화면을 넘지 않게 */
@media (max-width: 760px){
  #scope-standard table, #scope-premium table, #scope-seo table,
  .report-table, .tbl-mini table { min-width: 0; }
  #scope-standard table th:first-child, #scope-premium table th:first-child,
  #scope-standard table td:first-child, #scope-premium table td:first-child { width: 62px; }
  #scope-standard table th:nth-child(2), #scope-standard table th:nth-child(3), #scope-standard table th:nth-child(4),
  #scope-premium table th:nth-child(2), #scope-premium table th:nth-child(3), #scope-premium table th:nth-child(4),
  #scope-standard table td:nth-child(2), #scope-standard table td:nth-child(3), #scope-standard table td:nth-child(4),
  #scope-premium table td:nth-child(2), #scope-premium table td:nth-child(3), #scope-premium table td:nth-child(4) { width: 40px; }
  thead th { padding: 8px 4px; font-size: 0.76rem; }
  tbody td { padding: 8px 4px; }
  .report-table th, .report-table td { white-space: normal; }
}

/* 스티키 메뉴: 뒤 내용이 비치지 않도록 불투명 처리 */
.nav { background: var(--color-bg); backdrop-filter: none; z-index: 60; }
.nav.scrolled { box-shadow: 0 2px 10px rgba(44, 51, 39, 0.08); border-color: var(--color-border); }
@media (max-width: 980px){
  .nav { background: var(--color-bg); }
  .nav-links { background: var(--color-bg); }
}
/* 앵커 이동 시 메뉴에 가리지 않게 */
section[id], div[id] { scroll-margin-top: 96px; }
@media (max-width: 760px){ section[id], div[id] { scroll-margin-top: 118px; } }

/* 모바일 메뉴 줄: 좌우 여백 없이 화면 끝까지, 아래 한 줄만 */
@media (max-width: 980px){
  .nav { border-bottom: 0; }
  .nav-inner { padding-bottom: 0; }
  .nav-links {
    width: calc(100% + var(--space-4) * 2);
    margin-left: calc(var(--space-4) * -1);
    margin-right: calc(var(--space-4) * -1);
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
  }
  .nav.scrolled { box-shadow: 0 2px 8px rgba(44, 51, 39, 0.07); }
}

/* 엑셀 업로드 */
.drop-zone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center;
  padding: var(--space-7) var(--space-4); border:2px dashed var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-muted-bg); cursor:pointer; transition: border-color .15s ease, background .15s ease; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--color-accent); background: var(--color-accent-bright); }
.drop-zone strong { font-family: var(--font-display); font-size:1.05rem; }
.drop-zone span { font-size:0.85rem; color: var(--color-muted-fg); }
.import-msgs { margin: var(--space-3) 0 0; padding-left: 18px; font-size:0.88rem; color: var(--color-warning); }
.import-msgs li { margin-bottom:4px; }

/* 표에서 바로 수정 */
td.editable { cursor: text; position: relative; }
td.editable:hover { background: var(--color-accent-bright); border-radius: 4px; }
td.editable:hover::after { content: "✎"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: var(--color-accent-dark); }
.pair b { font-weight: 700; cursor: text; padding: 1px 4px; border-radius: 4px; }
.pair b:hover { background: var(--color-accent-bright); }

/* 채널 타일: 정사각 비율 */
.ch-tile { aspect-ratio: 1 / 1; padding: var(--space-3); }
.ch-tile-hint { font-size: 0.72rem; }
@media (max-width: 760px){ .ch-tile { aspect-ratio: 1 / 1; padding: var(--space-2); } }

@media (max-width: 760px){
  /* 월간 리포트 표도 화면에 맞춰 */
  .report-table { min-width: 0; font-size: 0.78rem; }
  .report-table th, .report-table td { padding: 7px 4px; white-space: normal; word-break: keep-all; }
  .report-sample { padding: var(--space-3); }
  .report-head strong { font-size: 1.05rem; }
}

/* ---------- 개인정보 동의 박스 (상담 신청) ---------- */
.consent-box {
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.consent-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.consent-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-accent); }
.consent-detail { font-size: 0.8rem; line-height: 1.6; color: var(--color-muted-fg); margin: var(--space-2) 0 0; padding-left: 28px; }
.consent-detail a { color: var(--color-accent-ink); text-decoration: underline; }

/* ---------- 약관 · 방침 문서 ---------- */
.legal-doc { font-size: 0.95rem; line-height: 1.85; color: var(--color-fg); }
.legal-doc h3 {
  font-size: 1.02rem; margin: var(--space-5) 0 var(--space-2);
  padding-top: var(--space-3); border-top: 1px solid var(--color-border);
}
.legal-doc h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-doc p { margin: 0 0 var(--space-2); }
.legal-doc ul { margin: 0 0 var(--space-2); padding-left: 1.1em; list-style: disc; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc strong { color: var(--color-primary); }
@media (max-width: 560px) { .consent-detail { padding-left: 0; } }

/* ---------- 카카오톡 채널 버튼 ---------- */
.btn-kakao { background: #FEE500; color: #3C1E1E; border: 1px solid #F2D900; font-weight: 700; }
.btn-kakao:hover { background: #F7DC00; color: #3C1E1E; }

/* 푸터 관리자 로그인 — 눈에 덜 띄게 */
.footer-admin { opacity: 0.45; font-size: 0.85em; }
.footer-admin:hover { opacity: 0.9; }

/* ---------- 카카오톡 상담 플로팅 버튼 ---------- */
.kakao-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: #FEE500; color: #3C1E1E;
  font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em;
  padding: 13px 20px 13px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kakao-fab:hover { color: #3C1E1E; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
.kakao-fab svg { flex-shrink: 0; }
@media (max-width: 560px) {
  .kakao-fab { right: 14px; bottom: 14px; padding: 12px 18px 12px 14px; font-size: 0.9rem; }
}
@media print { .kakao-fab { display: none; } }

/* ---------- 채널 타일: 항상 3열(위 3 · 아래 3), 아이콘 축소 ---------- */
.ch-tiles { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
@media (max-width: 760px) { .ch-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.ch-tile-icon svg { width: clamp(34px, 8vw, 72px); height: clamp(34px, 8vw, 72px); }
.ch-tile { gap: 6px; }
.ch-tile-name { font-size: clamp(0.82rem, 2.6vw, 1.05rem); }
.ch-tile-hint { font-size: clamp(0.6rem, 1.9vw, 0.72rem); }
@media (max-width: 560px) { .ch-tile-hint { display: none; } }

/* ---------- 모달 사진 크게 · 세로 스크롤 ---------- */
.ch-modal-panel { max-width: 880px; }
.ch-modal-shots { grid-template-columns: repeat(2, 1fr); }
.ch-modal-shots.ratio-h { grid-template-columns: 1fr; }
@media (max-width: 640px) { .ch-modal-shots, .ch-modal-shots.ratio-h { grid-template-columns: 1fr; } }

/* ---------- 채널 타일: 가운데 정렬 · 아이콘 확대 · 클릭 유도 ---------- */
.ch-tiles { margin-left: auto; margin-right: auto; }
.ch-tile-icon svg { width: clamp(50px, 12.5vw, 100px); height: clamp(50px, 12.5vw, 100px); }
.ch-cue {
  display: block; text-align: center;
  margin: var(--space-4) 0 0; font-size: 0.95rem; font-weight: 700;
  color: var(--color-accent-dark);
}
.ch-cue svg { display: inline-block; vertical-align: -4px; margin-left: 4px; }
.ch-cue strong { color: var(--color-accent-dark); }
.ch-cue svg { animation: chCueBob 1.6s ease-in-out infinite; }
@keyframes chCueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .ch-cue svg { animation: none; } }
@media (max-width: 560px) { .ch-cue { font-size: 0.85rem; } }

/* ---------- 모달 사진: 원본 비율 유지 (강제 크롭·확대 금지) ---------- */
.ch-shot { display: block; }
.ch-shot img,
.ch-shot.h img,
.ch-shot.v img {
  aspect-ratio: auto;      /* 3/4 · 16/9 강제 크롭 해제 */
  object-fit: contain;
  /* width:auto = 원본보다 크게 늘리지 않음 (작은 이미지가 뭉개지는 것 방지) */
  width: auto; height: auto;
  max-width: 100%; max-height: 68vh;
  margin: 0 auto;
  background: var(--color-muted-bg);
}
.ch-modal-shots { align-items: start; }

/* ---------- VS 배지: 모바일에서 두 카드 경계에 정확히 놓기 ---------- */
/* PC는 좌우 2단이라 정중앙(50%)이 경계지만, 모바일은 위아래로 쌓이면서
   두 카드 높이가 달라 50%가 아래 카드 제목 위로 올라온다. */
@media (max-width: 700px) {
  .compare-vs {
    position: relative;
    left: auto; top: auto;
    transform: none;
    justify-self: center;
    margin: -23px 0;           /* 배지 높이의 절반씩 — 경계에 걸치게 */
  }
  .compare-col.us { padding-top: calc(var(--space-5) + 16px); }
}
/* PC: 배지가 가운데 선에 얹히므로 양쪽 안쪽 여백을 배지 반지름만큼 확보 */
@media (min-width: 701px) {
  .compare-col.them { padding-right: 52px; }
  .compare-col.us { padding-left: 52px; }
}

/* ---------- 기준일자: 마지막 칸 안이 아니라 4개 숫자 전체 아래로 ---------- */
.stat-asof {
  position: static;
  display: block;
  text-align: center;
  margin: var(--space-3) auto 0;
  font-size: 0.8rem;
  color: var(--color-muted-fg);
  opacity: 0.8;
  white-space: normal;
}
@media (max-width: 760px) { .stat-asof { margin-top: var(--space-3); } }
.stat-bar { padding-bottom: var(--space-4); }

/* ================= 페이지 이미지 자리 ================= */

/* 메인 · 우리 이야기 사진 */
.story-shot { margin: 0 0 var(--space-4); }
.story-shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  background: var(--color-muted-bg);
}

/* 증빙 캡처 묶음 (상위노출 · 리포트) */
.proof-strip { margin: var(--space-6) 0 0; }
.proof-lead {
  text-align: center; font-weight: 700; color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: start; }
.proof-grid.one { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-shot {
  display: block; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-muted-bg);
  transition: border-color .15s ease, transform .15s ease;
}
.proof-shot:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.proof-shot img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 60vh; margin: 0 auto;
}
.proof-strip figcaption {
  margin-top: var(--space-3); text-align: center;
  font-size: 0.85rem; color: var(--color-muted-fg);
}

/* 서비스 소개 · 콘텐츠 소재 썸네일 */
button.card.mat-card:has(.mat-shot) { overflow: hidden; }
.mat-shot {
  display: block; margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4);
  overflow: hidden; background: var(--color-muted-bg);
}
.mat-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }

/* 운영 프로세스 · 작업 화면 */
.work-card { display: flex; flex-direction: column; }
.card.work-card:has(.work-shot) { overflow: hidden; }
.work-shot {
  display: block; margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4);
  overflow: hidden; background: var(--color-muted-bg);
}
.work-shot img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* 상담 신청 · 담당자 사진 */
.person-shot { margin: var(--space-5) 0 0; text-align: center; }
.person-shot img {
  display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
}
.person-shot figcaption {
  margin-top: var(--space-2); font-size: 0.85rem; color: var(--color-muted-fg); font-weight: 600;
}

/* ---------- 상품 안내: 2축 구조 ---------- */
.plan-group { margin-bottom: var(--space-7); }
.plan-group:last-of-type { margin-bottom: 0; }
.plan-group[hidden] { display: none; }
.plan-group-head {
  display: flex; align-items: flex-start; gap: var(--space-3);
  max-width: 760px; margin: 0 auto var(--space-4);
}
.plan-group-no {
  flex-shrink: 0;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  line-height: 1; letter-spacing: 0.02em;
  color: var(--color-on-accent); background: var(--color-accent);
  border-radius: 10px; padding: 9px 11px;
}
.plan-group-head h3 {
  font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 4px;
  color: var(--color-primary);
}
.plan-group-head p { margin: 0; color: var(--color-muted-fg); font-size: 0.95rem; }
.pricing-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 900px) { .pricing-grid.two { grid-template-columns: 1fr; } }
.plan-group-note {
  max-width: 760px; margin: var(--space-4) auto 0;
  background: var(--color-muted-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 0.85rem; color: var(--color-muted-fg); text-align: center;
}

/* ================= 2026-09-01 개편 ================= */

/* 상품 묶음 이름 (01 채널관리 / 02 플레이스 상위노출) */
.plan-group-name {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.2;
  color: var(--color-primary);
}
.plan-group-head h3 {
  font-size: 1.02rem; font-weight: 600; line-height: 1.55;
  color: var(--color-accent-dark); letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.plan-group-head p { font-size: 0.92rem; }
.plan-group-no {
  align-self: flex-start; margin-top: 6px;
  font-size: 0.95rem; padding: 7px 10px;
}

/* 홈 · 작업의 결과 화살표 */
.vine-step { position: relative; }
.flow-arrow {
  position: absolute; top: 18px; right: -14px;
  color: var(--color-accent); opacity: 0.55; line-height: 0;
}
@media (max-width: 560px) {
  .flow-arrow { top: auto; right: auto; left: 50%; bottom: -22px; transform: translateX(-50%) rotate(90deg); }
  .vine-steps { row-gap: var(--space-6); }
}

/* 운영 프로세스 · 원장님 단계: 음영 대신 손메모 */
.vine-step.yours { background: none; padding: 0; }
.vine-step .step-memo { display: block; margin: 10px auto 0; width: 46px; color: var(--color-accent); }
.vine-step .step-only {
  display: block; margin-top: 4px !important;
  font-size: 0.82rem !important; font-weight: 800; line-height: 1.45;
  color: var(--color-accent-dark) !important;
  background: none; box-shadow: none; padding: 0; border-radius: 0;
}

/* 사진은 텍스트 아래, 작게 · 클릭하면 원본 */
.work-shot, .mat-shot {
  display: block; position: relative; margin: var(--space-3) 0 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-muted-bg);
}
.work-shot img, .mat-shot img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center;
}
.work-zoom, .mat-zoom {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: -0.01em;
  background: rgba(27,33,23,0.72); color: #fff;
  padding: 3px 9px; border-radius: var(--radius-pill);
}
button.card.mat-card:has(.mat-shot), .card.work-card:has(.work-shot) { overflow: visible; }

/* 서비스 소개 · 표 제목 */
.scope-title {
  margin-bottom: var(--space-3);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 900; letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.scope-line { color: var(--color-primary); }
.scope-tier {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--color-accent-dark); background: var(--color-accent-bright);
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.scope-note {
  margin-top: var(--space-3); font-size: 0.85rem; line-height: 1.7;
  color: var(--color-muted-fg);
}
.scope-note strong { color: var(--color-primary); }
.seo-card.seo-scope { border-style: dashed; }

/* 모바일 표: 항목명을 값 앞에 붙여 카드처럼 (음영 없음) */
@media (max-width: 760px) {
  #scope-standard table, #scope-premium table, #scope-seo table,
  #scope-standard thead, #scope-premium thead, #scope-seo thead,
  #scope-standard tbody, #scope-premium tbody, #scope-seo tbody,
  #scope-standard tr, #scope-premium tr, #scope-seo tr,
  #scope-standard td, #scope-premium td, #scope-seo td { display: block; width: auto; }
  #scope-standard thead, #scope-premium thead, #scope-seo thead { display: none; }
  #scope-standard tbody tr, #scope-premium tbody tr, #scope-seo tbody tr {
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: var(--space-3); margin-bottom: var(--space-3); background: var(--color-surface);
  }
  #scope-standard tbody td, #scope-premium tbody td, #scope-seo tbody td {
    border: none !important; padding: 4px 0 !important;
    display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: baseline;
    text-align: left; white-space: normal; word-break: keep-all; font-size: 0.88rem;
  }
  #scope-standard tbody td:first-child, #scope-premium tbody td:first-child,
  #scope-seo tbody td:first-child { display: block; }
  /* 데스크톱용 고정 폭 해제 */
  #scope-standard table td, #scope-premium table td, #scope-seo table td,
  #scope-standard table th, #scope-premium table th, #scope-seo table th { width: auto !important; }
  #scope-standard table, #scope-premium table, #scope-seo table { table-layout: auto; min-width: 0; }
  #scope-seo table th:last-child, #scope-seo table td:last-child { display: block !important; }
  /* 값은 왼쪽 정렬 · O 표시가 늘어나지 않게 */
  #scope-standard tbody td > *, #scope-premium tbody td > *, #scope-seo tbody td > * {
    justify-self: start; text-align: left;
  }
  #scope-standard tbody td, #scope-premium tbody td, #scope-seo tbody td { text-align: left !important; }
  #scope-standard tbody td .ch-cell, #scope-premium tbody td .ch-cell,
  #scope-seo tbody td .ch-cell { justify-content: flex-start; }
  #scope-standard tbody td::before, #scope-premium tbody td::before, #scope-seo tbody td::before {
    content: attr(data-label);
    flex: 0 0 54px; font-size: 0.74rem; font-weight: 700; color: var(--color-muted-fg);
  }
  #scope-standard tbody td > *, #scope-premium tbody td > *, #scope-seo tbody td > * { min-width: 0; }
  #scope-standard tbody td, #scope-premium tbody td, #scope-seo tbody td { line-height: 1.6; }
  /* 채널 이름은 아이콘 옆에 한 줄로 */
  #scope-standard tbody td:first-child .ch-cell, #scope-premium tbody td:first-child .ch-cell,
  #scope-seo tbody td:first-child .ch-cell {
    display: flex; flex-direction: row; align-items: center; gap: 8px;
  }
  #scope-standard tbody td:first-child em, #scope-premium tbody td:first-child em,
  #scope-seo tbody td:first-child em { font-size: 1rem; font-weight: 800; }
  #scope-standard tbody td:first-child, #scope-premium tbody td:first-child, #scope-seo tbody td:first-child {
    padding-bottom: 8px !important; margin-bottom: 6px;
    border-bottom: 1px solid var(--color-border) !important;
  }
  #scope-standard tbody td:first-child::before, #scope-premium tbody td:first-child::before,
  #scope-seo tbody td:first-child::before { display: none; }
  #scope-standard tbody tr:hover, #scope-premium tbody tr:hover, #scope-seo tbody tr:hover { background: var(--color-surface); }
  td.col-desc { display: flex; }
}

/* 상위노출 · 플레이스 한정 안내 (카드와 같은 위계로 두지 않음) */
.seo-scope-note {
  max-width: 760px; margin: var(--space-4) auto 0;
  background: var(--color-muted-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 14px 18px;
  font-size: 0.88rem; line-height: 1.7; color: var(--color-muted-fg); text-align: center;
}
.seo-scope-note strong { color: var(--color-primary); }

/* 순위 표 헤더 겹침 방지 */
.tbl-mini th, .tbl-mini td { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.tbl-mini th:first-child, .tbl-mini td:first-child { white-space: normal; word-break: keep-all; }
@media (max-width: 560px) {
  .tbl-mini th, .tbl-mini td { font-size: 0.8rem; padding-left: 6px; padding-right: 6px; }
}
.price-card .price-note { font-size: 0.85rem; font-weight: 600; color: var(--color-muted-fg); margin-bottom: var(--space-3); }
/* 상위노출 카드는 2개(관리형·보장형) — 가운데로 모아 배치 */
.seo-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .seo-grid { grid-template-columns: 1fr; } }

/* ---------- 순위 관리 블록: 가로로 펴기 ---------- */
.seo-manage.stacked { display: block; }
.seo-manage.stacked .seo-manage-text { max-width: 900px; margin: 0 auto var(--space-4); text-align: center; }
.seo-manage.stacked h4 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); margin-bottom: var(--space-2); }
.seo-manage.stacked p { font-size: 0.98rem; }
.seo-manage.stacked .tbl-mini { max-width: 900px; margin: 0 auto; }
.seo-manage.stacked .tbl-mini table { table-layout: auto; width: 100%; }
.seo-manage.stacked .tbl-mini th, .seo-manage.stacked .tbl-mini td { padding: 11px 14px; }

/* ---------- 서비스 소개 표: 산출물·월기준 칸 넓히기 (PC) ---------- */
@media (min-width: 761px) {
  #scope-standard table td:nth-child(6), #scope-premium table td:nth-child(6),
  #scope-standard table th:nth-child(6), #scope-premium table th:nth-child(6) { width: 78px !important; }
  #scope-standard table td:last-child, #scope-premium table td:last-child,
  #scope-standard table th:last-child, #scope-premium table th:last-child {
    width: 132px !important; white-space: normal !important;
  }
}

/* ---------- 모바일 표: 항목명을 값 위에 (인라인 태그가 있어도 안 깨지게) ---------- */
@media (max-width: 760px) {
  #scope-standard tbody td, #scope-premium tbody td, #scope-seo tbody td {
    display: block !important; padding: 6px 0 !important;
    text-align: left !important; white-space: normal; word-break: keep-all;
    font-size: 0.9rem; line-height: 1.65;
  }
  #scope-standard tbody td::before, #scope-premium tbody td::before, #scope-seo tbody td::before {
    display: block; margin-bottom: 1px;
    font-size: 0.72rem; font-weight: 700; color: var(--color-muted-fg); letter-spacing: 0.02em;
  }
  #scope-standard tbody td > *, #scope-premium tbody td > *, #scope-seo tbody td > * { text-align: left; }
}

/* ---------- 서비스 소개: 두 상품 갈래 ---------- */
.line-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .line-split { grid-template-columns: 1fr; } }
.line-card {
  display: block; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.line-card:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.line-no {
  display: inline-block; margin-bottom: var(--space-2);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--color-on-accent); background: var(--color-accent);
  padding: 4px 10px; border-radius: 8px;
}
.line-card strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 900; letter-spacing: -0.03em;
  color: var(--color-primary); margin-bottom: var(--space-2);
}
.line-card p { margin: 0 0 var(--space-3); color: var(--color-muted-fg); font-size: 0.95rem; line-height: 1.7; }
.line-more { font-size: 0.88rem; font-weight: 700; color: var(--color-accent-dark); }
.line-more::after { content: " →"; }

/* ---------- 상품 안내: 제공 범위 비교표 ---------- */
.scope-compare { max-width: 900px; margin: var(--space-5) auto 0; }
.scope-compare h4 {
  font-size: 1.05rem; font-weight: 800; color: var(--color-primary);
  margin-bottom: var(--space-3); text-align: center;
}
.scope-compare table { min-width: 0; }
.scope-compare th, .scope-compare td { padding: 12px 10px; }
.scope-compare th:nth-child(4), .scope-compare th:nth-child(5),
.scope-compare td:nth-child(4), .scope-compare td:nth-child(5) { text-align: center; white-space: nowrap; width: 92px; }
.scope-compare .ch-cell { flex-direction: row; }
.scope-compare .ch-cell em { font-size: 0.95rem; }
@media (max-width: 760px) {
  .scope-compare table, .scope-compare thead, .scope-compare tbody,
  .scope-compare tr, .scope-compare td { display: block; width: auto; }
  .scope-compare thead { display: none; }
  .scope-compare tbody tr {
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: var(--space-3); margin-bottom: var(--space-3); background: var(--color-surface);
  }
  .scope-compare tbody td {
    border: none !important; padding: 5px 0 !important;
    text-align: left !important; white-space: normal; word-break: keep-all;
    width: auto !important; font-size: 0.9rem;
  }
  .scope-compare tbody td::before {
    content: attr(data-label); display: block;
    font-size: 0.72rem; font-weight: 700; color: var(--color-muted-fg);
  }
  .scope-compare tbody td:first-child {
    padding-bottom: 8px !important; margin-bottom: 6px;
    border-bottom: 1px solid var(--color-border) !important;
  }
  .scope-compare tbody td:first-child::before { display: none; }
  .scope-compare tbody td:first-child em { font-size: 1.05rem; font-weight: 800; }
  .scope-compare tbody tr:hover { background: var(--color-surface); }
}

/* ---------- 서비스 소개: 관리 채널 6개 로고 줄 ---------- */
.ch-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3);
  max-width: 720px; margin: 0 auto var(--space-6);
}
.ch-strip-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--color-primary);
  text-align: center; word-break: keep-all;
}
.ch-strip-item svg { display: block; }
@media (max-width: 560px) {
  .ch-strip { grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-2); max-width: 340px; }
  .ch-strip-item { font-size: 0.74rem; gap: 6px; }
  .ch-strip-item svg { width: 38px; height: 38px; }
}

/* ---------- 모바일 비교표: 두 값을 나란히 ---------- */
@media (max-width: 760px) {
  /* 채널별 비교 (채널 · 하는 일 · 산출물 · 스탠다드 · 프리미엄) */
  #scope-compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); }
  #scope-compare tbody td:nth-child(1),
  #scope-compare tbody td:nth-child(2),
  #scope-compare tbody td:nth-child(3) { grid-column: 1 / -1; }
  #scope-compare tbody td:nth-child(4),
  #scope-compare tbody td:nth-child(5) {
    margin-top: var(--space-2);
    background: var(--color-muted-bg); border-radius: var(--radius-md);
    padding: 9px 11px !important; text-align: center !important;
  }
  #scope-compare tbody td:nth-child(4)::before,
  #scope-compare tbody td:nth-child(5)::before { text-align: center; margin-bottom: 3px; }
  #scope-compare tbody td:nth-child(5) { background: var(--color-accent-bright); }
  #scope-compare tbody td:nth-child(5)::before { color: var(--color-accent-dark); }

  /* 관리형 vs 보장형 (항목 · 관리형 · 보장형) */
  .compare-2 tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); padding-bottom: var(--space-2); }
  .compare-2 tbody td:nth-child(1) {
    grid-column: 1 / -1; font-weight: 800; font-size: 0.98rem !important; color: var(--color-primary);
  }
  .compare-2 tbody td:nth-child(2),
  .compare-2 tbody td:nth-child(3) {
    margin-top: 0; background: var(--color-muted-bg); border-radius: var(--radius-md);
    padding: 10px 12px !important; text-align: left !important; font-size: 0.86rem !important;
  }
  .compare-2 tbody td:nth-child(3) { background: var(--color-accent-bright); }
  .compare-2 tbody td:nth-child(3)::before { color: var(--color-accent-dark); }

  /* 상품 카드가 휑해 보이지 않게 여백 조정 */
  .price-card { padding: var(--space-4); }
  .plan-group { margin-bottom: var(--space-6); }
  .pricing-grid, .pricing-grid.two { gap: var(--space-3); }
  .price-card ul { gap: 10px; margin-bottom: var(--space-4); }
  .price-card .note { margin-bottom: var(--space-3); }
  .scope-compare { margin-top: var(--space-4); }
  .scope-compare h4 { font-size: 1rem; margin-bottom: var(--space-2); }
}

/* 관리자 · 채널별 제공 범위 체크 */
.scope-checks { white-space: nowrap; }
.scope-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
  font-size: 0.86rem;
  cursor: pointer;
}
.scope-check input { width: 15px; height: 15px; margin: 0; cursor: pointer; }

/* 상담 신청 접수 완료 화면 */
.lead-done { text-align: center; padding: var(--space-5) var(--space-4); }
.lead-done-mark {
  width: 58px; height: 58px; margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #E7F1D8; color: #4E7020;
}
.lead-done h3 { margin: 0 0 10px; font-size: 1.35rem; }
.lead-done p { margin: 0 0 8px; color: var(--ink-soft, #5B6152); line-height: 1.65; }
.lead-done-note { font-size: 0.9rem; opacity: 0.85; }
.lead-done .btn { margin-top: var(--space-3); }

/* ── 관리자 · 홈페이지 설정 : 왼쪽 분류 트리 ───────────────── */
.settings-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.settings-nav { position: sticky; top: 84px; }
.settings-nav ul { list-style: none; margin: 0; padding: 0; }
.settings-nav li { margin: 0; }
.settings-nav a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 0.92rem; color: #4A5142; text-decoration: none; line-height: 1.35;
  border-left: 3px solid transparent;
}
.settings-nav a:hover { background: rgba(95, 133, 38, 0.08); }
.settings-nav a.active { background: rgba(95, 133, 38, 0.13); color: #3F5A1A; font-weight: 700; border-left-color: #5F8526; }
.settings-nav-toggle { display: none; }
.settings-body { min-width: 0; }

.settings-save {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: var(--space-3); padding: 12px 14px;
  background: rgba(253, 253, 246, 0.96); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,0.08); border-radius: 10px 10px 0 0;
}
.settings-save-note { font-size: 0.85rem; color: #6B7263; }

@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; gap: var(--space-2); }
  .settings-nav { position: sticky; top: 0; z-index: 21; background: var(--paper, #FDFDF6); padding: 8px 0; }
  .settings-nav-toggle {
    display: block; width: 100%; text-align: left;
    padding: 11px 14px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(0,0,0,0.14); background: #fff;
    font-size: 0.95rem; font-weight: 700; color: #3F5A1A;
  }
  .settings-nav ul { display: none; margin-top: 6px; padding: 6px; background: #fff; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; }
  .settings-nav.open ul { display: block; }
}

.settings-help { margin-bottom: var(--space-3); }
.settings-help > summary {
  cursor: pointer; display: inline-block;
  font-size: 0.88rem; color: #5F7A32; font-weight: 600;
  padding: 6px 0;
}
.settings-help > summary:hover { text-decoration: underline; }
.settings-help .form-hint { margin-top: 4px; }

.settings-save.unsaved { border-top-color: #C98A2E; box-shadow: 0 -2px 0 rgba(201,138,46,0.35); }
.settings-save.unsaved .settings-save-note { color: #A76F1C; font-weight: 600; }

/* 관리자 · 상담 신청 내역 도구 막대 */
.lead-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.lead-check-all { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; cursor: pointer; }
.lead-check-all input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
#table-body input.pick { width: 16px; height: 16px; cursor: pointer; }
#table-body textarea[data-field="admin_memo"] { min-height: 48px; font-size: 0.88rem; }
.btn-danger[disabled] { opacity: 0.45; cursor: not-allowed; }
