/* VERAI — 모바일 우선 스타일 (살롱 매니저 style.css 그대로 이식 + 맨 아래 VERAI 추가분) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1d1d29;
  --sub: #6b7280;
  --line: #e5e7eb;
  --brand: #1a1a2e;
  --accent: #4f6ef7;
  --accent-soft: #eef1fe;
  --good: #16a34a;
  --good-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fdf3e3;
  --bad: #dc2626;
  --bad-soft: #fdeaea;
  --radius: 14px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* 상단바 */
.topbar {
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 12px 16px; position: sticky; top: 0; z-index: 50;
}
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.uname { opacity: .9; }
.logout { color: #cfd4ff; text-decoration: none; }
.badge { background: #3d3d55; border-radius: 8px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.badge-admin { background: var(--accent); }

/* 컨테이너/카드 */
.container { max-width: 760px; margin: 0 auto; padding: 14px 12px 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 16px; margin-bottom: 12px; }
.card h3 { font-size: 14px; margin: 12px 0 8px; color: var(--sub); }
.muted { color: var(--sub); font-size: 13px; }
.mt { margin-top: 12px; }

/* 플래시 */
.flash { max-width: 760px; margin: 10px auto 0; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.flash-ok { background: var(--good-soft); color: var(--good); }
.flash-err { background: var(--bad-soft); color: var(--bad); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }

/* 폼 */
label.fl { display: block; font-size: 13px; color: var(--sub); margin: 12px 0 5px; font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=month],
input[type=url], input[type=file], input[type=tel], input[type=email], input:not([type]), select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* 버튼 */
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 12px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--accent); color: #fff; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-good { background: var(--good); }
.btn-bad { background: var(--bad); }
.btn-warn { background: var(--warn); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }

/* 칩 선택 (지점/디자이너/항목) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; text-decoration: none; display: inline-block;
}
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* 수량 스테퍼 */
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.stepper input { width: 80px; text-align: center; font-size: 20px; font-weight: 700; }

/* 테이블 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.tbl th { text-align: left; color: var(--sub); font-size: 12px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .center { text-align: center; }

/* 상태 배지 */
.st { display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-approved { background: var(--good-soft); color: var(--good); }
.st-rejected { background: var(--bad-soft); color: var(--bad); }

/* 랭킹 */
.rank-list { list-style: none; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: none; }
.rank-no { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.rank-no.top1 { background: #ffd700; color: #7a5c00; }
.rank-no.top2 { background: #e3e6ea; color: #555; }
.rank-no.top3 { background: #f0c9a8; color: #7c4a1e; }
.rank-name { font-weight: 700; flex: 1; }
.rank-detail { font-size: 12px; color: var(--sub); }
.rank-pts { font-size: 18px; font-weight: 800; color: var(--accent); }
/* 디자이너 전용 화면 — 랭킹에서 본인 줄 강조 */
.rank-list li.me { background: var(--accent-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; }

/* 통계 카드 그리드 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 8px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--sub); }

/* 필터 바 */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filterbar > * { flex: 1 1 130px; }
.filterbar .btn { flex: 0 0 auto; }

/* 탭 */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 9px 15px; border-radius: 10px; text-decoration: none; color: var(--sub); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--brand); color: #fff; }

/* 하단 네비 */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  flex: 1; text-align: center; padding: 6px 0 5px; text-decoration: none; color: var(--sub);
  font-size: 11px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bottomnav a span { display: block; font-size: 20px; line-height: 1.35; margin-bottom: 1px; }
.bottomnav a.on { color: var(--accent); }
/* 살롱 시티 — 관리 왼쪽, 아이콘을 상자에 담아 크게 (세로 중앙은 위 flex 가 맞춰준다) */
.bottomnav a.navcity { color: #2f7f66; }
.bottomnav a.navcity span {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0 0 2px; border-radius: 11px;
  font-size: 19px; line-height: 1;
  background: linear-gradient(120deg, #25406a, #1e3b32); border: 1px solid #2f4a63;
}
.bottomnav a.navcity.on { color: var(--accent); }

/* 로그인 */
.login-box { max-width: 380px; margin: 8vh auto; }
.login-box .brand-big { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 24px; }

/* 페이지네이션 */
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; }
.pager a { color: var(--accent); text-decoration: none; font-weight: 700; padding: 8px 14px; background: var(--accent-soft); border-radius: 10px; }
.pager .off { color: var(--line); background: transparent; }

/* 미입력 매트릭스 */
.matrix td.done { background: var(--good-soft); color: var(--good); font-weight: 700; text-align: center; }
.matrix td.miss { background: var(--bad-soft); color: var(--bad); text-align: center; }
.matrix td.pend { background: var(--warn-soft); color: var(--warn); text-align: center; }

/* 증빙 썸네일 */
.proofs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.proofs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.proofs a.plink { font-size: 13px; color: var(--accent); word-break: break-all; }

/* 관리자 그리드 */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-grid a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.admin-grid a small { display: block; color: var(--sub); font-weight: 400; font-size: 12px; margin-top: 3px; }

/* 인라인 폼 행 */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 90px; }

@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(6, 1fr); }
  .admin-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 디자이너 화면 (v6.51) ────────────────────────────────── */
.dsg-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.dsg-metric {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 6px; text-align: center;
}
.dsg-metric b { display: block; font-size: 21px; line-height: 1.2; }
.dsg-metric span { display: block; font-size: 10.5px; color: var(--sub); margin-top: 3px; line-height: 1.35; }

.rx { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.rx-why  { font-size: 11px; color: var(--sub); margin-top: 2px; }
.rx-note { font-size: 12px; color: var(--sub); margin-top: 5px; line-height: 1.55; }
.rx-plan { margin-top: 5px; padding-left: 8px; border-left: 2px solid var(--accent); font-size: 12px; line-height: 1.5; }

.reel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.reel h4 { font-size: 14px; margin-bottom: 2px; }
.reel .rl-meta  { font-size: 11px; color: var(--sub); }
.reel .rl-steps { font-size: 12.5px; margin-top: 6px; line-height: 1.55; }
.reel .rl-why   { font-size: 11px; color: var(--sub); margin-top: 5px; line-height: 1.5; }
.reel textarea {
  width: 100%; margin-top: 6px; padding: 8px; font-size: 12px; line-height: 1.5;
  font-family: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc;
}
.btn-copy { margin-top: 9px; }
.btn-copy.done { border-color: var(--good); color: var(--good); }
.soon { text-align: center; color: var(--sub); padding: 22px 10px 16px; font-size: 13px; line-height: 1.6; }

/* ── 월간 탭 (v6.52) ──────────────────────────────────────── */
/* 매출 순위 막대 — 1등을 100%로. 순위표는 비교가 목적이라 밑동을 자르지 않는다
   (성장탭 매출 막대는 반대로 밑동을 자른다 — 거기는 추세가 목적) */
.dsg-bar { height: 6px; border-radius: 4px; background: var(--accent-soft); margin-top: 5px; overflow: hidden; }
.dsg-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dsg-amt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pay { margin-top: 2px; }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pay-row span { color: var(--sub); }
.pay-row b { font-variant-numeric: tabular-nums; }
.pay-row b.neg { color: var(--bad); }
.pay-row.total { border-bottom: none; border-top: 1.5px solid var(--line); margin-top: 4px; padding-top: 11px; }
.pay-row.total span { color: var(--ink); font-weight: 700; font-size: 15px; }
.pay-row.total b { font-size: 19px; font-weight: 800; color: var(--accent); }

.ad-slots { display: flex; gap: 8px; }
.ad-slots .ad-slot { flex: 1; }
.ad-slots .ad-slot button { width: 100%; }

/* ── 체크리스트 탭 (v6.53) ────────────────────────────────── */
/* 하단 탭이 6개 — 라벨이 접히지 않게 조금 좁힌다 */
.bottomnav-6 a { font-size: 10px; letter-spacing: -0.3px; white-space: nowrap; }
.bottomnav-6 a span { font-size: 19px; }

.ck-sum { display: flex; align-items: center; gap: 10px; }
.ck-sum b { font-size: 20px; font-weight: 800; }
.ck-sum span { font-size: 12px; color: var(--sub); }

.ck-group { font-size: 12px; color: var(--sub); font-weight: 700; margin: 14px 0 6px; }
.ck {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; margin-bottom: 7px;
  background: #fff; text-align: left;
}
.ck.on { background: var(--good-soft); border-color: #bfe6cd; }
.ck .ck-box {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 7px; background: #fff;
  font-size: 14px; font-weight: 800; line-height: 1; color: var(--good);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ck.on .ck-box { border-color: var(--good); background: #fff; }
.ck .ck-txt {
  flex: 1; border: none; background: none; padding: 0; text-align: left;
  font-family: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink); cursor: pointer;
}
.ck .ck-txt b { font-weight: 600; display: block; }
.ck.on .ck-txt b { text-decoration: line-through; color: var(--sub); }
.ck .ck-txt i { display: block; font-style: normal; font-size: 11.5px; color: var(--sub); margin-top: 2px; }
/* 개수가 쌓이는 줄 (v6.55) — 체크박스 대신 누적 숫자 + 막대.
   "일주일에 하나만 올리면 되는구나"로 읽히지 않게 체크 표시를 주지 않는다 */
.ck.ck-count { align-items: center; background: var(--accent-soft); border-color: #d7ddfb; }
.ck .ck-num {
  flex: 0 0 auto; min-width: 34px; text-align: center;
  font-size: 20px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums;
}
.ck .ck-cbar { display: block; height: 5px; border-radius: 99px; background: #fff; overflow: hidden; margin-top: 6px; }
.ck .ck-cbar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* 하위 항목 — 부모 아래에 한 칸 들여쓴다 */
.ck.ck-sub { margin-left: 22px; width: calc(100% - 22px); padding: 7px 11px; border-style: dashed; }
.ck.ck-sub .ck-box { flex-basis: 19px; width: 19px; height: 19px; font-size: 12px; }
.ck.ck-sub .ck-txt { font-size: 12.5px; }
/* 관리 → 체크리스트: 한 줄에 한 항목, 펼쳐야 수정 폼이 나온다 (v6.54) */
.ck-adm { border-bottom: 1px solid var(--line); }
.ck-adm > summary { list-style: none; cursor: pointer; padding: 10px 2px; }
.ck-adm > summary::-webkit-details-marker { display: none; }
.ck-adm > summary::before { content: '▸ '; color: var(--sub); }
.ck-adm[open] > summary::before { content: '▾ '; }
.ck-adm .ck-adm-t { font-weight: 600; font-size: 14px; }
.ck-adm .ck-adm-m { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; padding-left: 14px; }
.ck-adm .ck-adm-m b { font-weight: 600; color: var(--accent); }
.ck-adm.off .ck-adm-t { color: var(--sub); text-decoration: line-through; }
.ck-adm-new > summary { color: var(--accent); font-weight: 700; }
.ck-auto { cursor: default; }
.ck-auto .ck-box { cursor: default; }
.ck .ck-tag { flex: 0 0 auto; font-size: 10.5px; color: var(--sub); background: var(--bg); border-radius: 6px; padding: 2px 6px; align-self: center; }

/* 항목별 점수 (v7.05) — 오른쪽 끝에 조용히. 체크하면 초록으로 확정된 느낌을 준다 */
.ck .ck-pt { flex: 0 0 auto; align-self: center; font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ck.on .ck-pt { color: var(--good); background: var(--good-soft); }
.ck-sum .ck-score { flex: 0 0 auto; font-size: 12px; color: var(--sub); white-space: nowrap; }
.ck-sum .ck-score b { font-size: 16px; color: var(--accent); }

/* 리뷰 답글 추천 문구 (v7.05) */
.ck-extra { margin: -4px 0 8px 0; }
.rp-drafts > summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 10px; padding: 7px 11px; }
.rp-drafts > summary::-webkit-details-marker { display: none; }
.rp-drafts > summary::before { content: '▸ '; }
.rp-drafts[open] > summary::before { content: '▾ '; }
.rp-drafts-h { font-size: 11.5px; margin: 8px 2px 6px; }
.rp-draft { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; background: #fff; }
.rp-draft-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rp-draft-top .rp-tone { flex: 1 1 auto; font-size: 11px; font-weight: 700; color: var(--sub); }
.rp-draft p { margin: 0; font-size: 12.5px; line-height: 1.62; white-space: normal; }

/* ── 보고 카드 (단톡방 캡처용 · 디자이너 목표 카드 공용) ─────── */
.repcard { max-width: 400px; margin: 2px auto 0; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(16,20,30,.07); }
.rp-head { color: #fff; padding: 13px 16px 12px; }
.rp-head .rp-t { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.rp-head .rp-p { font-size: 11.5px; opacity: .82; margin-top: 2px; }
.rp-person { padding: 11px 16px; border-top: 1px solid var(--line); }
.rp-person:first-of-type { border-top: 0; }
.rp-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 14px; font-weight: 800; margin-bottom: 7px; }
.rp-fol { font-size: 11px; font-weight: 600; color: var(--sub); }
.rp-fol i { font-style: normal; margin-left: 4px; }
.rp-fol i.up { color: var(--good); }
.rp-fol i.dn { color: var(--bad); }
.rp-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.rp-lb { flex: 0 0 34px; font-size: 11.5px; color: var(--sub); }
.rp-bar { flex: 1; height: 7px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: 99px; }
.rp-val { flex: 0 0 auto; min-width: 74px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-val em { font-style: normal; font-weight: 500; color: var(--sub); }
.rp-val.on { color: var(--good); }
.rp-foot { padding: 9px 16px 11px; font-size: 10.5px; color: var(--sub); background: #fafbfc; border-top: 1px solid var(--line); }
.rp-empty { padding: 18px 16px; font-size: 13px; color: var(--sub); text-align: center; }
.rep-raw { margin-top: 10px; }
.rep-raw summary { font-size: 12px; color: var(--accent); cursor: pointer; list-style: none; }
.rep-raw summary::-webkit-details-marker { display: none; }

/* ── 수집된 네이버 리뷰 카드 (v6.62 · 기록 상세·기록 조회 공용) ── */
.nvcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--bg); }
.nvcard .nv-top { font-size: 13px; }
.nvcard .nv-star { font-size: 15px; font-weight: 800; color: #f04452; margin-top: 6px; }
.nvcard .nv-kws { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nvcard .nv-kws span { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 9px; font-size: 12px; color: var(--ink); }
.nvcard .nv-meta { font-size: 12px; color: var(--sub); margin-top: 8px; }
.nvcard .nv-body { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.nvcard .nv-nobody { margin-top: 10px; font-size: 12.5px; color: var(--sub); }

/* ── 스마트플레이스 연결 안내 (v6.63b) ───────────────────── */
.sp-guide { background: var(--accent-soft); border: 1px solid #d7ddfb; border-radius: 12px; padding: 14px 16px; }
.sp-guide h3 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.sp-steps { margin: 0 0 0 18px; padding: 0; font-size: 13.5px; line-height: 1.6; }
.sp-steps li { margin-bottom: 10px; }
.sp-steps code { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }
.sp-tip { display: block; font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.5; }
.sp-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 2px; }
.sp-tabs i { font-style: normal; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 8px; font-size: 11.5px; color: var(--sub); }
.sp-tabs i.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* 순위 상세내역 (디자이너 주간·월간 탭, 2026-08-05)
   .rank-list li 가 flex 라 상세 줄은 block 으로 되돌려야 표가 안 찌그러진다. */
.rank-list li.rk-detrow { display: block; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.rank-list li.rk-detrow:last-child { border-bottom: none; }
.rk-det > summary { list-style: none; cursor: pointer; padding: 4px 2px; font-size: 12px; color: var(--sub); }
.rk-det > summary::-webkit-details-marker { display: none; }
.rk-det > summary::before { content: '▸ '; }
.rk-det[open] > summary::before { content: '▾ '; }
.tbl-mini { font-size: 12.5px; }
.tbl-mini th, .tbl-mini td { padding: 5px 8px; }

/* 혜택(프로모션) 탭 — 축 카드 (v7.02) */
.pm-axis { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm-axis:last-of-type { border-bottom: none; }
.pm-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.pm-head span { font-weight: 700; font-size: 14px; }
.pm-head b { font-size: 19px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.pm-hit { font-size: 12.5px; margin-top: 7px; }
.pm-next { font-size: 12.5px; color: var(--sub); margin-top: 3px; }
.pm-left { color: var(--accent); }
.pm-tiers { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pm-tier { font-size: 11px; color: var(--sub); background: var(--card); border: 1px solid var(--line);
           border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pm-tier.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pm-tier b { font-weight: 700; }

/* 건의하기 (v7.03) */
.vc-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px;
                    border: 1px solid var(--line); background: var(--card); color: inherit;
                    font: inherit; resize: vertical; }
.vc-anon { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; cursor: pointer; }
.vc-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.vc-item:last-child { border-bottom: none; }
.vc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 5px; }
.vc-body { font-size: 13.5px; line-height: 1.55; white-space: pre-line; }
.vc-reply { margin-top: 8px; padding: 9px 11px; border-radius: 10px;
            background: var(--accent-soft); color: var(--accent); font-size: 13px; line-height: 1.55; }

.pm-slash { color: var(--sub); font-weight: 400; }
.vc-cost { color: var(--warn); }

/* ── 📝 블로그 탭 (v7.11) ───────────────────────────────── */
.bottomnav-7 a { font-size: 9.5px; letter-spacing: -0.5px; white-space: nowrap; }
.bottomnav-7 a span { font-size: 18px; }
.bg-pick, .bg-topic { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; }
.bg-pick { background: var(--accent-soft); border-color: #d7ddfb; }
.bg-pick-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bg-pick-top b, .bg-topic .bg-pick-top b { flex: 1 1 auto; font-weight: 700; font-size: 13.5px; line-height: 1.45; }
.bg-cat { flex: 1 1 auto; font-size: 11px; font-weight: 700; color: var(--accent); }
.bg-pick b { display: block; font-size: 14px; font-weight: 700; line-height: 1.45; }
.bg-pick i, .bg-topic i { display: block; font-style: normal; font-size: 12px; color: var(--sub); margin-top: 4px; line-height: 1.55; }
.bg-step { border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; margin-bottom: 12px; }
.bg-step b { display: block; font-size: 14px; font-weight: 700; }
.bg-step i { display: block; font-style: normal; font-size: 12.5px; color: var(--sub); margin-top: 3px; line-height: 1.6; }
.bg-step q { display: block; quotes: none; font-size: 12.5px; background: var(--bg); border-radius: 8px; padding: 7px 9px; margin-top: 6px; color: var(--ink); }
.bg-rules { margin: 0 0 0 18px; font-size: 12.5px; color: var(--sub); line-height: 1.65; }
.bg-rules li { margin-bottom: 5px; }
.bg-foot { position: relative; }
.bg-foot .btn { position: absolute; top: 8px; right: 8px; }
.bg-foot pre { background: var(--bg); border-radius: 10px; padding: 12px; padding-right: 84px; font-size: 12.5px;
  line-height: 1.7; white-space: pre-wrap; word-break: break-all; font-family: inherit; }
.bg-cat-box { border-bottom: 1px solid var(--line); }
.bg-cat-box > summary { list-style: none; cursor: pointer; padding: 10px 2px; font-weight: 700; font-size: 13.5px; }
.bg-cat-box > summary::-webkit-details-marker { display: none; }
.bg-cat-box > summary::before { content: '▸ '; color: var(--sub); }
.bg-cat-box[open] > summary::before { content: '▾ '; }
.bg-cat-box .bg-topic { margin-bottom: 8px; }

/* ── ✅ 원장용 체크 현황 히트맵 (v7.13) ─────────────── */
.cs-heat td, .cs-heat th { padding: 5px 6px; }
.heat { display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 26px; border-radius: 6px; font-size: 10.5px; font-weight: 700; color: #14532d; }
.heat.h0 { background: #f1f3f6; }
.heat.h1 { background: #d8f0e0; }
.heat.h2 { background: #a9e2bf; }
.heat.h3 { background: #6fcf97; }
.heat.h4 { background: #2fae6a; color: #fff; }
.heat.h-na { background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 3px, #e9ebef 3px, #e9ebef 6px); }

/* ── 🗒 회의 카드 (서버에서 되받아온 규칙 · 2026-08-10) ─────────
   ⚠️ 이 블록은 **다른 세션이 서버에 올린 것**이다. 이 폴더의 style.css 에는 없었고,
      로컬 사본을 그대로 배포했다면 회의 카드가 통째로 깨졌을 것이다(실제로 그렇게 보였다).
      style.css 를 손댈 때는 서버 것을 먼저 받아 비교할 것. */
.mtg { max-width: 400px; margin: 10px auto 0; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; overflow: hidden; }
.mtg > summary { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; cursor: pointer;
  font-size: 13px; background: #fafbfc; list-style: none; }
.mtg > summary::-webkit-details-marker { display: none; }
.mtg > summary::after { content: '▾'; margin-left: auto; color: var(--sub); font-size: 11px; }
.mtg[open] > summary::after { content: '▴'; }
.mtg > summary .muted { font-size: 11px; }
.mtg-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 12px 14px; }
.mtg-item { min-width: 0; }
.mtg-lb { font-size: 11.5px; font-weight: 800; color: var(--sub); margin-bottom: 5px; }
.mtg-tx { font-size: 12.5px; line-height: 1.62; word-break: break-word; }
.mtg-ul { margin: 0; padding-left: 17px; font-size: 12.5px; line-height: 1.62; }
.mtg-ul li { margin: 1px 0; }
.mtg-goal { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.mtg-gl { flex: 0 0 30px; font-size: 11.5px; color: var(--sub); }
.mtg-gv { flex: 0 0 auto; min-width: 92px; text-align: right; font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.mtg-gv em { font-style: normal; font-weight: 500; color: var(--sub); }
.mtg-gv b { margin-left: 2px; }
.mtg-gv.on { color: var(--good); }
.mtg-foot { padding: 8px 14px 10px; font-size: 10.5px; color: var(--sub);
  background: #fafbfc; border-top: 1px solid var(--line); }
@media (min-width: 700px) {
  .mtg { max-width: 640px; }
  .mtg-grid { grid-template-columns: 1fr 1fr; }
}

/* ── VERAI 추가분 ─────────────────────────────── */
/* 지점 색 칩 — 색은 stores.color 에서 --sc 로 넘어온다 (하드코딩 금지) */
.store-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--sc, #888) 12%, #fff); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.store-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc, #888); display: inline-block; }
.store-list { display: flex; flex-wrap: wrap; gap: 8px; }
.role-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge-hq { background: #b45309; }
.badge-owner { background: var(--accent); }
.badge-dsg { background: #0f766e; }
.soon-list { list-style: none; display: grid; gap: 8px; }
.soon-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--sub); font-size: 14px; }
.soon-list li b { color: var(--ink); font-weight: 600; }
.brand-sub { font-size: 12px; font-weight: 500; opacity: .75; margin-left: 6px; }
select.store-select { width: 100%; }
