/* ============================================================
   뷰티픽(BEAUTYPICK) 모바일 프로토타입 스타일
   - 기준: 기존 모바일 시안(RFP 시안 1·4, face-screen, body-screen)
   - 색상은 :root 변수에서 한 번에 관리해요.
   ============================================================ */

:root {
  --navy: #1e2441;          /* 기본 글자, 선택된 탭 */
  --navy-badge: #1c2340;    /* 로고 배지 바탕 */
  --gray: #8a90a3;          /* 보조 글자 */
  --gray-light: #b4b9c6;
  --line: #f0f1f5;
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --pink: #e43f73;          /* 강조 글자 (29%, 공구 라벨, 하단 메뉴 선택) */
  --pink-dot: #ec5a86;      /* 부위 점 */
  --pink-soft: #fff0f4;     /* 연핑크 배경 */
  --pink-line: #f6cad6;     /* 라벨 테두리, 점선 */
  --chat-from: #ef8ea2;     /* 채팅 배너 */
  --chat-to: #f29cae;
  --radius: 20px;
  --shadow: 0 6px 22px rgba(30, 36, 65, 0.06);
  --nav-h: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* hidden 속성이 다른 display 설정에 덮이지 않게 */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family, "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif);   /* 디자인 편집기: 글꼴 */
  color: var(--navy);
  background: #eef0f4;              /* PC에서 볼 때 화면 바깥 */
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* 앱 틀: 모바일 폭 */
.app {
  max-width: 480px; min-height: 100vh; margin: 0 auto;
  background: var(--bg); position: relative;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
}
.main { padding: 4px 16px 20px; display: flex; flex-direction: column; gap: var(--section-gap, 14px); }   /* 디자인 편집기: 섹션 간격 */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #f3f4f7; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; }
/* 메인 로고: 한글 '뷰티픽' (뷰티=딥 네이비, 픽=브랜드 핑크) · 높이만 지정해 비율 유지 */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
/* (이전 방식) 투명 로고를 네이비 배지 위에 올리는 스타일 - 어두운 배경용으로 남겨 둠 */
.logo-badge {
  display: inline-flex; align-items: center;
  background: var(--navy-badge); border-radius: 10px; padding: 5px 9px;
}
.logo-badge img { height: 24px; width: auto; display: block; }  /* 높이만 지정 → 비율 자동 유지 */
.tagline { font-size: 12.5px; color: #5b6176; margin-top: 7px; letter-spacing: -0.2px; }
.header-icons { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.icon-btn .ico { width: 25px; height: 25px; stroke-width: 1.7; }
.icon-btn:active { background: var(--bg-soft); }

/* ---------- 검색창 ---------- */
.search {
  display: flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 16px 0 18px;
  border: 1px solid #e6e8ee; border-radius: 16px; background: #fff;
}
.search:focus-within { border-color: var(--pink-line); box-shadow: 0 0 0 3px var(--pink-soft); }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15.5px; color: var(--navy); min-width: 0; }
.search input::placeholder { color: #9ba0b0; }
.search button { color: #5b6176; display: grid; place-items: center; }

/* ---------- 배너 ---------- */
.banner { position: relative; border-radius: 24px; overflow: hidden; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative;
  min-height: 160px; padding: 18px 18px 20px;
  background: linear-gradient(120deg, #fdebf0 0%, #fbdbe4 100%);
}
.slide-link { position: absolute; inset: 0; z-index: 2; -webkit-tap-highlight-color: transparent; }   /* 관리자가 링크를 정한 메인 배너: 보이지 않는 누름 영역 */
.slide-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff;
  background: #ee8aa0; padding: 5px 11px; border-radius: 999px;
}
.slide h2 { font-size: 19px; font-weight: 800; line-height: 1.35; margin-top: 11px; letter-spacing: -0.4px; max-width: 64%; white-space: pre-line; }
.slide ul { margin-top: 9px; }
.slide li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #4f5569; margin-top: 5px; }
.check { width: 17px; height: 17px; border-radius: 50%; background: #f9d3dd; display: grid; place-items: center; flex-shrink: 0; }
.check svg { width: 10px; height: 10px; stroke: var(--pink); stroke-width: 3; fill: none; }
.slide-art { position: absolute; right: 8px; top: 50%; transform: translateY(-58%); width: 118px; height: 118px; }
.banner-count {
  position: absolute; right: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(60, 62, 75, 0.45); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
}
.bars { display: flex; gap: 3px; }
.bars i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .25s; }
.bars i.on { width: 16px; background: #fff; }

/* ---------- 바로가기 5개 ---------- */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); padding: 16px 4px 14px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-align: center; letter-spacing: -0.3px; }
.q-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.q-tile svg { width: 34px; height: 34px; }
.q1 { background: #ffe4ea; } .q2 { background: #f6e4f2; } .q3 { background: #fff0e3; }
.q4 { background: #f2e6f9; } .q5 { background: #e8f5e6; }
.quick a:active .q-tile { transform: scale(.94); }
/* 관리자가 고친 바로가기 (2026-11-28 · nav.quick.q-custom): 기본 모양은 위와 같게 · 이름 두 줄까지 · 좁으면 아이콘 칸이 칸 너비에 맞춰 줄어듦 */
.quick.q-custom .q-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-align: center; letter-spacing: -0.3px; min-width: 0; }
.quick.q-custom .q-item:active .q-tile { transform: scale(.94); }
.quick.q-custom span.q-item { cursor: default; }
.quick.q-custom .q-tile { max-width: 100%; flex-shrink: 0; overflow: hidden; }
.quick.q-custom .q-tile.q-noicon { display: none; }
/* 올린 아이콘: 아이콘 칸 전체 기준 (크기 %·맞춤/채우기는 관리자 설정) · 칸 가운데에 칸 크기로 고정 (그림 비율 때문에 칸보다 커지지 않게) */
.quick.q-custom .q-tile { position: relative; }
.quick.q-custom .q-img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: contain; display: block; max-width: none; }
.quick.q-custom .q-label { max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick.q-custom .q-card { padding: 8px 4px; border-radius: 14px; }

/* ---------- 실시간 채팅 배너 ---------- */
.chat-cta {
  display: block; position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--chat-from), var(--chat-to));
  color: #fff; border-radius: 24px; padding: 20px 18px 18px;
  box-shadow: 0 10px 22px rgba(228, 63, 115, 0.18);
}
.chat-cta strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.4px; position: relative; z-index: 1; }
.chat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.chat-row p { font-size: 12.5px; opacity: .95; }
.chat-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  background: #fff; color: #d23a68; font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 999px;
}
.chat-btn .ico { width: 17px; height: 17px; stroke-width: 2; }
.bubble { position: absolute; border-radius: 12px; background: rgba(255,255,255,.35); display: grid; place-items: center; color: #fff; font-size: 13px; letter-spacing: 2px; }
.bubble.b1 { width: 58px; height: 30px; right: 104px; top: 22px; }
.bubble.b2 { width: 74px; height: 42px; right: 18px; top: 10px; background: rgba(255,255,255,.55); }

/* ---------- 공동구매 카드 (보여주기만) ---------- */
.deal { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; }
/* 공구 카드 클릭 반응 (모양·크기·색은 그대로): 카드 전체 손가락 포인터, 누를 때 살짝 눌림 */
.deal { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s, box-shadow .12s; }
.deal * { pointer-events: none; }            /* 이미지·글자·화살표 어디를 눌러도 카드 링크로 */
.deal:active { transform: scale(.985); }
@media (hover: hover) { .deal:hover { box-shadow: 0 8px 24px rgba(30, 36, 65, 0.10); } }
.deal:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.deal-img { width: 74px; height: 74px; border-radius: 16px; background: linear-gradient(135deg, #e3f5ea, #cdeedd); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.deal-info { flex: 1; min-width: 0; }
.deal-label { font-size: 12px; font-weight: 700; color: var(--pink); }
.deal-name { font-size: 16px; font-weight: 700; margin-top: 3px; }
.deal-price { margin-top: 4px; font-size: 16px; font-weight: 800; }
.deal-price b { color: var(--pink); margin-right: 6px; }
/* 공구 카드 여러 개 (2026-11-28): 카드 모양은 그대로 · 2개 이상이면 옆으로 넘김 (밀기·점 누르기 · 15초 자동) */
.deal-wrap { min-width: 0; }
.deal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px -10px; overscroll-behavior-x: contain; }
.deal-track::-webkit-scrollbar { display: none; }
.deal-track > .deal { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.deal-track > .deal + .deal { margin-left: 12px; }
.deal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-desc { display: block; font-size: 12.5px; color: #6b7184; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.deal-dots button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; background: none; border: 0; cursor: pointer; }
.deal-dots button i { width: 6px; height: 6px; border-radius: 99px; background: #d9dbe3; transition: width .2s, background .2s; }
.deal-dots button.on i { width: 16px; background: var(--pink); }
.deal-dots button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; border-radius: 6px; }
.chev { color: #6b7185; }

/* ---------- 부위 탐색 (얼굴/몸) ---------- */
.explore { padding: 26px 16px 18px; text-align: center; }
.explore h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.explore .sub { font-size: 13.5px; color: #6b7185; margin-top: 7px; min-height: 20px; }
.toggle { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; margin-top: 16px; }
.toggle button { width: 92px; height: 40px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #7d8396; transition: background .2s, color .2s; }
.toggle button.on { background: var(--navy); color: #fff; }

/* 일러스트 무대: SVG 안에 원본 이미지 + 점선 + 점, 그 위에 HTML 라벨 */
.stage { position: relative; width: 100%; margin-top: 10px; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }  /* 보여줄 영역(view) 밖은 잘라서 위 버튼을 가리지 않게 */
/* 원본 일러스트 배경이 순백이 아닌 #FDFDFD 라서, 흰 카드 위에서는 옅은 네모 경계가 보여요.
   이미지는 건드리지 않고 탐색 카드 배경을 같은 색으로 맞춰 경계를 없애요 (눈으로는 흰색과 같음) */
.explore.card { background: #fdfdfd; }
#explore, #rank, #timeline { scroll-margin-top: 120px; }   /* 다른 화면에서 #explore 로 이동할 때 고정 헤더에 제목이 가리지 않게 */
.stage .lead { stroke: var(--pink-line); stroke-width: 4; stroke-dasharray: 14 10; fill: none; }
.stage .dot-filled { fill: var(--pink-dot); stroke: #fff; stroke-width: 7; }
.stage .dot-ring { fill: #fff; stroke: #e0386c; stroke-width: 9; }
.stage .hit { fill: transparent; cursor: pointer; }
.stage .pin.active .dot-filled { fill: var(--pink); }
.stage .pin.active .dot-ring { fill: var(--pink-soft); }

.part-label {
  position: absolute; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px 0 5px;
  background: #fff; border: 1.5px solid var(--pink-line); border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--navy); white-space: nowrap;
  box-shadow: 0 2px 8px rgba(228, 63, 115, .08); z-index: 2;
}
.part-label.right { transform: translate(-100%, -50%); }
.num { width: 23px; height: 23px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.part-label:active, .part-label.active { background: var(--pink-soft); border-color: var(--pink-dot); }

.part-etc { position: relative; transform: none; margin: 8px auto 0; height: 40px; padding: 0 18px 0 7px; font-size: 14.5px; display: inline-flex; }
.part-etc .num { width: 26px; height: 26px; }
.explore hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 16px; }
.hint { background: var(--pink-soft); border-radius: 16px; padding: 14px 12px; font-size: 13px; line-height: 1.6; color: #d4466f; }
.hint b { display: block; font-size: 14px; color: var(--pink); }

/* ---------- 섹션 공통 ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 10px; }
.sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.sec-head a { font-size: 13px; color: #5b6176; font-weight: 500; }

/* 지금 핫한 수다방 */
.rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.room { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid #f3f4f7; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; }
.room.pinky { background: var(--pink-soft); border-color: #fde3ea; }
.room .ico { width: 24px; height: 24px; stroke-width: 1.6; }

/* TOP10 · 회복 타임라인 카드 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo a { display: flex; align-items: center; gap: 9px; padding: 15px 10px 15px 13px; border-radius: 18px; }
.duo .w { background: #fff; box-shadow: var(--shadow); border: 1px solid #f3f4f7; }
.duo .p { background: #fde9ef; }
.duo .ico { width: 26px; height: 26px; color: var(--pink); stroke-width: 1.7; }
.duo strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; letter-spacing: -0.3px; }
.duo small { display: block; font-size: 11.5px; color: var(--gray); margin-top: 3px; line-height: 1.35; }
.duo .chev { margin-left: auto; width: 16px; height: 16px; }

/* 실시간 인기 글 */
.hot { padding: 20px 16px 6px; }
.hot h2 { font-size: 18px; font-weight: 800; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 4px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid #e6e8ee; font-size: 13.5px; font-weight: 600; color: #4f5569; background: #fff; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.post a { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.post:last-child a { border-bottom: 0; }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: var(--post-title-size, 15px); font-weight: 700; line-height: 1.45; letter-spacing: -0.3px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--pink); background: var(--pink-soft); padding: 2px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 2px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 12px; color: var(--gray); margin-top: 6px; }
.post-meta span { display: inline-flex; align-items: center; gap: 3px; }
.post-meta .ico { width: 14px; height: 14px; stroke-width: 1.7; }
.thumb { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; position: relative; overflow: hidden; background: linear-gradient(135deg, #f4e4e8, #e5eef0); display: grid; place-items: center; color: #9aa0b0; }
.thumb .ico { width: 20px; height: 20px; }
.thumb em { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(40,44,60,.55); padding: 1px 5px; border-radius: 8px; }
.empty { padding: 36px 0; text-align: center; color: var(--gray); font-size: 14px; }

.notice { font-size: 11.5px; color: #a3a8b6; text-align: center; line-height: 1.6; padding: 6px 0 2px; }

/* ---------- 하단 메뉴 ---------- */
.bottom-nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 40;
  width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: #8a90a3; }
.bottom-nav .ico { width: 26px; height: 26px; stroke-width: 1.6; }
.bottom-nav a.on { color: var(--pink); font-weight: 700; }
.bottom-nav a.on .ico { stroke-width: 2; }

/* ---------- 전체 메뉴 (PC 메인4 구조) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.drawer-panel {
  width: 100%; max-width: 480px; height: 100%; overflow-y: auto;
  background: #fff; transform: translateY(-12px); opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(30px + env(safe-area-inset-bottom, 0px));
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-panel { transform: none; opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; font-weight: 800; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 20px; }
.menu-grid h3 { font-size: 15px; font-weight: 800; color: #d4527a; margin-bottom: 10px; }
.menu-grid li a { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #3c4258; padding: 7px 0; }
.menu-grid .lock { width: 13px; height: 13px; color: var(--gray-light); }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 80;
  background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; transition: all .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 부위별 게시글 목록 페이지 ---------- */
.sub-header { display: flex; align-items: center; gap: 6px; }
.sub-header h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.topic-hero { padding: 18px 18px; display: flex; align-items: center; gap: 12px; }
.topic-hero .num { width: 34px; height: 34px; font-size: 15px; }
.topic-hero strong { font-size: 17px; font-weight: 800; }
.topic-hero p { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.topic-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.topic-chips::-webkit-scrollbar { display: none; }
.topic-chips a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; border: 1.5px solid var(--pink-line); background: #fff; font-size: 13px; font-weight: 600; }
.topic-chips a .num { width: 22px; height: 22px; font-size: 11px; }
.topic-chips a.on { background: var(--pink-soft); border-color: var(--pink-dot); }
.fab {
  position: fixed; z-index: 35; right: max(16px, calc(50% - 240px + 16px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: 14.5px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(228, 63, 115, .3);
}
.fab .ico { width: 18px; height: 18px; stroke-width: 2.2; }

/* ============================================================
   MVP 추가 스타일
   ============================================================ */
.test-bar { display: block; text-align: center; font-size: 11.5px; font-weight: 600; color: #8a5a00; background: #fff6df; padding: 6px 12px calc(6px); }
.drawer-user { font-size: 13.5px; color: #4f5569; padding: 14px 0 0; }
.drawer-user a { color: var(--pink); font-weight: 700; }
.badge.ad { color: #7a5b00; background: #fff1c7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: var(--btn-radius, 14px); font-size: 15px; font-weight: 700; }
.btn.primary { background: var(--pink); color: #fff; }
.btn.primary:disabled { background: #f3b5c7; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { background: var(--bg-soft); color: #4f5569; }
.btn.line { border: 1.5px solid #e3e6ec; background: #fff; color: #3c4258; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--btn-radius-sm, 10px); }

/* 입력 폼 */
.form { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px; }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field .help { font-size: 12px; color: var(--gray); margin-top: 6px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid #e6e8ee; border-radius: 12px; background: #fff;
  font: inherit; font-size: 15px; color: var(--navy); padding: 12px 14px; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--pink-line); box-shadow: 0 0 0 3px var(--pink-soft); }
.textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid #e6e8ee; border-radius: 12px; font-size: 14px; cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--pink); }
.radio-card small { display: block; color: var(--gray); font-size: 12px; margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--pink-dot); background: var(--pink-soft); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(30,36,65,.7); color: #fff; font-size: 13px; line-height: 22px; }
.photo-add { aspect-ratio: 1; border: 1.5px dashed #d6d9e1; border-radius: 12px; display: grid; place-items: center; color: var(--gray); font-size: 12px; cursor: pointer; text-align: center; }
.photo-add .ico { display: block; margin: 0 auto 3px; }
.hosp-pick { position: relative; }
.hosp-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; background: #fff; border: 1px solid #e6e8ee; border-radius: 12px; box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; }
.hosp-results button { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.hosp-results button small { color: var(--gray); margin-left: 6px; }
.chip-sel { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: 13.5px; font-weight: 700; }

/* 안내 문구 (작은 회색) */
.legal { font-size: 11.5px; color: #a0a5b3; line-height: 1.65; }
.legal.box { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.legal b { color: #7d8396; }
.notice-sample { font-size: 12.5px; color: #8a5a00; background: #fff6df; border-radius: 12px; padding: 10px 12px; line-height: 1.55; }

/* 게시판 상단 */
.board-head { padding: 16px; }
.board-head h2 { font-size: 19px; font-weight: 800; }
.board-head p { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 2px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5b6176; cursor: pointer; }
.switch input { accent-color: var(--pink); width: 16px; height: 16px; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #7d8396; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

/* 글 상세 */
.article { padding: 20px 16px; position: relative; overflow: hidden; }
.article h1 { font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.4px; margin-top: 8px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--gray); margin-top: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article .meta b { color: var(--navy); }
.grade { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--navy); padding: 2px 6px; border-radius: 6px; letter-spacing: .3px; }
.grade.BLACK { background: #111; } .grade.EXPERT { background: #6d4cd8; } .grade.ACTIVE { background: #e43f73; } .grade.PICKER { background: #f08aa3; } .grade.NEW { background: #b4b9c6; }
.article .body { font-size: var(--article-size, 15.5px); line-height: 1.75; padding: 18px 0; word-break: break-word; }
.article .photos { display: grid; gap: 8px; }
.article .photos img { width: 100%; border-radius: 14px; display: block; }
.locked-photos { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; background: var(--bg-soft); border-radius: 14px; color: var(--gray); font-size: 13.5px; text-align: center; }
.info-box { display: grid; gap: 6px; background: var(--pink-soft); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin-top: 4px; }
.info-box a { color: var(--pink); font-weight: 700; }
.ad-box { background: #fff6df; color: #7a5b00; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.actions { display: flex; gap: 8px; padding: 14px 0 4px; }
.act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 42px; border-radius: 12px; border: 1.5px solid #e6e8ee; font-size: 13.5px; font-weight: 600; color: #4f5569; }
.act.on { border-color: var(--pink-dot); color: var(--pink); background: var(--pink-soft); }
.act.on .ico { fill: currentColor; }
.act .ico { width: 18px; height: 18px; }
.owner-tools { display: flex; gap: 8px; justify-content: flex-end; font-size: 13px; }
.owner-tools a, .owner-tools button { color: var(--gray); font-size: 13px; padding: 4px 6px; }

/* 워터마크: 회원 식별 코드 반복 표시 (유출 추적 보조 수단, 캡처 차단 아님) */
.watermark { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; opacity: .07; }
.watermark span { position: absolute; font-size: 13px; font-weight: 800; color: var(--navy); transform: rotate(-24deg); white-space: nowrap; user-select: none; }

/* 댓글 */
.comments { padding: 18px 16px; }
.comments h2 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.cmt { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmt.reply { padding-left: 22px; position: relative; }
.cmt.reply::before { content: "ㄴ"; position: absolute; left: 4px; top: 12px; color: var(--gray-light); font-size: 12px; }
.cmt-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray); }
.cmt-head b { color: var(--navy); font-size: 13.5px; }
.cmt-head .mine { font-size: 10.5px; color: var(--pink); background: var(--pink-soft); padding: 1px 6px; border-radius: 6px; }
.cmt-body { font-size: 14.5px; line-height: 1.6; margin-top: 5px; word-break: break-word; }
.cmt-body.gone { color: var(--gray-light); }
.cmt-tools { display: flex; gap: 12px; margin-top: 6px; }
.cmt-tools button { font-size: 12px; color: var(--gray); }
.cmt-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.cmt-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 11px 12px; }
.replying { font-size: 12px; color: var(--pink); margin-top: 10px; display: flex; justify-content: space-between; }

/* 병원 검색 */
.hs-head { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hs-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hs-filters .select { padding: 9px 8px; font-size: 13px; }
.hs-filters .select:disabled { color: var(--gray-light); background: var(--bg-soft); }
.hs-note { font-size: 12px; color: var(--gray); line-height: 1.5; }
.hs-count { font-size: 12.5px; color: var(--gray); margin: 2px 4px; }
.hs-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; min-height: 34px; }
.hs-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hs-sort { width: auto; padding: 7px 10px; font-size: 12.5px; border-radius: 10px; }
.hs-fav { font-size: 12.5px; font-weight: 700; color: var(--gray); border: 1px solid #e6e8ee; border-radius: 10px; padding: 7px 10px; background: #fff; }
.hs-fav[aria-pressed="true"] { color: var(--pink); border-color: var(--pink-line); background: var(--pink-soft); }
.hosp-addr { display: block; font-size: 12px; color: var(--gray-light); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-mark { color: var(--pink); font-size: 13px; }
.hd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fav-btn { font-size: 13px; font-weight: 700; color: var(--pink); border: 1px solid var(--pink-line); border-radius: 999px; padding: 6px 12px; background: #fff; }
.fav-btn[aria-pressed="true"] { background: var(--pink-soft); }
.hd-grid, .hd-member { display: flex; flex-direction: column; gap: 14px; }
.hosp { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hosp:last-child { border-bottom: 0; }
.hosp-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; flex-shrink: 0; }
.hosp-name { font-size: 15px; font-weight: 700; }
.hosp-name mark { background: none; color: var(--pink); }
.hosp-sub { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.dept { display: inline-block; font-size: 11px; font-weight: 700; color: #5b6176; background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; margin-right: 4px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 20px; text-align: center; font-weight: 800; color: var(--gray); }
.rank-row:nth-child(-n+3) .rank-no { color: var(--pink); }
.rank-name { font-size: 16px; font-weight: 800; letter-spacing: 2px; }
.rank-cnt { margin-left: auto; font-weight: 800; font-size: 14px; }

/* 병원 상세 */
.sec-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.sec-label.official { background: #e8f0ff; color: #2f5bd3; }
.sec-label.member { background: var(--pink-soft); color: var(--pink); }
.kv { display: grid; grid-template-columns: 86px 1fr; gap: 10px 8px; font-size: 14px; margin-top: 14px; }
.kv dt { color: var(--gray); }
.kv dd { word-break: break-all; }
.kv dd.none { color: var(--gray-light); }

/* 마이 */
.profile { padding: 20px 16px; display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.profile h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.profile p { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.bar { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #f08aa3, var(--pink)); }
.menu-list a, .menu-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); text-align: left; }
.menu-list li:last-child a, .menu-list li:last-child button { border-bottom: 0; }
.menu-list small { color: var(--gray); }

/* 회복 타임라인 */
.timeline { position: relative; padding: 6px 16px 10px 36px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 2px; background: var(--pink-line); }
.tl-item { position: relative; padding: 10px 0; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--pink-dot); }
.tl-item.empty-stage::before { border-color: #d6d9e1; }
.tl-stage { font-size: 12.5px; font-weight: 800; color: var(--pink); }
.tl-item.empty-stage .tl-stage { color: var(--gray-light); }
.tl-item a { display: block; font-size: 14.5px; font-weight: 600; margin-top: 3px; }
.tl-item p { font-size: 12.5px; color: var(--gray-light); margin-top: 2px; }

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(20,24,40,.45); display: grid; place-items: center; padding: 24px; }
.modal-box { width: 100%; max-width: 340px; background: #fff; border-radius: 20px; padding: 22px 18px 16px; }
.modal-box p { font-size: 15px; line-height: 1.55; text-align: center; }
.modal-actions { display: flex; gap: 8px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.choice-list { display: grid; gap: 6px; margin-top: 14px; }
.choice { padding: 12px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; text-align: left; }

/* 관리자 */
.admin-warn { background: #fff1f1; color: #b42318; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.55; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg-soft); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat small { font-size: 11.5px; color: var(--gray); }
.flag { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flag:last-child { border-bottom: 0; }
.flag div { flex: 1; }
.flag strong { font-size: 14px; }
.flag p { font-size: 12px; color: var(--gray); margin-top: 3px; line-height: 1.5; }
.flag .lockt { font-size: 11px; color: #b42318; font-weight: 700; }
.toggle-sw { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-sw span { position: absolute; inset: 0; background: #d6d9e1; border-radius: 13px; transition: .2s; cursor: pointer; }
.toggle-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle-sw input:checked + span { background: var(--pink); }
.toggle-sw input:checked + span::after { transform: translateX(20px); }
.toggle-sw input:disabled + span { opacity: .45; cursor: not-allowed; }
.report-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.report-item .reasons { font-size: 12px; color: var(--gray); margin: 4px 0 8px; }
.report-item .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.log { font-size: 12px; color: #5b6176; padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* 채팅 안내 */
.chat-rules li { display: flex; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.chat-rules li:last-child { border-bottom: 0; }
.chat-rules b { color: var(--pink); flex-shrink: 0; }
.timer-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.timer-opts span { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); }

/* ============================================================
   익명 채팅 (목록 · 대화)
   ============================================================ */
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-notice { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: #8a4a5c; background: var(--pink-soft); border-radius: 14px; padding: 11px 13px; }
.chat-notice .ico { width: 16px; height: 16px; margin-top: 1px; }
.chat-notice b { color: var(--pink); }
.room-list { display: flex; flex-direction: column; gap: 10px; }
.room-card { display: flex; align-items: center; gap: 13px; padding: 15px 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #f3f4f7; }
.room-ava { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #5b6176; flex-shrink: 0; }
.room-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.room-name { font-size: 15.5px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.room-badge { font-size: 10.5px; font-weight: 700; color: #7d8396; background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; }
.room-badge.timer { color: #b4541a; background: #fff1e6; }
.room-badge.dm { color: #6d4cd8; background: #f0ebff; }
.room-badge.in { color: var(--pink); background: var(--pink-soft); }
.room-last { font-size: 13.5px; color: #4f5569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { font-size: 11.5px; color: var(--gray); }
button.fab { border: 0; cursor: pointer; }

/* 대화 화면 */
.chat-app { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
.chat-head h1 { font-size: 17px; }
.room-sub { font-size: 11.5px; color: var(--gray); margin-top: 1px; }
.room-expire { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8a5a00; background: #fff6df; border-radius: 10px; padding: 6px 10px; margin-top: 8px; }
.room-expire .ico { width: 14px; height: 14px; }
.room-expire b { color: #b4541a; }
.chat-body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 4px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: filter .15s; }
.chat-body #msgs { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; cursor: pointer; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-meta { font-size: 11.5px; color: var(--gray); margin: 0 4px 4px; }
.msg-bubble { background: #fff; border: 1px solid #eceef3; border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; word-break: break-word; display: flex; flex-direction: column; gap: 6px; }
.msg.mine .msg-bubble { background: #c8336a; border-color: #c8336a; color: #fff; border-radius: 18px 18px 6px 18px; }
.msg-bubble img { max-width: 220px; width: 100%; border-radius: 12px; display: block; pointer-events: none; }
.msg-ttl { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: #b4b9c6; margin: 4px 4px 0; }
.msg-ttl .ico { width: 11px; height: 11px; }
.composer {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 45;
  width: 100%; max-width: 480px; display: flex; align-items: center; gap: 6px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line);
}
.composer .icon-btn { cursor: pointer; flex-shrink: 0; }
.ttl-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: 12.5px; font-weight: 700; }
.ttl-chip .ico { width: 14px; height: 14px; }
.composer-input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid #e6e8ee; border-radius: 21px; padding: 0 14px; font: inherit; font-size: 15px; outline: none; }
.composer-input:focus { border-color: var(--pink-line); }
.send-btn { height: 42px; padding: 0 16px; border-radius: 21px; flex-shrink: 0; }

/* 메시지 삭제 시간 선택 (아래에서 올라오는 창) */
.modal.sheet { place-items: end center; padding: 0; }
.sheet-box { width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
.sheet-box h2 { font-size: 18px; font-weight: 800; }
.sheet-box > p { font-size: 13px; color: #6b7185; line-height: 1.55; margin-top: 8px; }
.ttl-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.ttl-opts button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #e6e8ee; font-size: 14.5px; font-weight: 700; color: #4f5569; background: #fff; }
.ttl-opts button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 회원별 워터마크 (화면 전체 고정, 클릭 통과, 낮은 투명도) */
.wm-layer { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 50; pointer-events: none; background-repeat: repeat; opacity: .09; }
/* 캡처 억제: 다른 창으로 전환·PrintScreen 시 대화 흐리게 / 인쇄 시 숨김 */
body.shielded .chat-body, body.shielded .article { filter: blur(14px); }
@media print { .chat-body, .article, .comments { display: none !important; } }

/* ---------- 익챗 (통합 채팅) ---------- */
.ikchat-heart { display: block; width: 100%; height: auto; overflow: visible; }
.ikchat-mini { width: 34px; flex-shrink: 0; margin-right: 2px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 5px; vertical-align: 1px; }
.chat-page .chat-app { padding-bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom, 0px)); }
.composer.with-nav { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }

/* 홈 오른쪽 아래 익챗 하트 버튼 : 하단 메뉴 위에 고정, 화면 크기에 따라 크기·위치 조절 */
.ikchat-fab {
  position: fixed; z-index: 38;
  right: max(14px, calc(50% - 240px + 14px));                 /* PC에서는 앱 화면(480px) 안쪽 오른쪽에 붙어요 */
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
  width: clamp(62px, 17vw, 78px);
  filter: drop-shadow(0 6px 12px rgba(253, 37, 106, .28));      /* 그림자만 (하트 색은 단색) */
  transition: transform .15s;
}
.ikchat-fab:active { transform: scale(.94); }
.ikchat-fab { transition: transform .15s, opacity .2s; }
.ikchat-fab.tucked { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
/* 플로팅 퀵메뉴 관리자 설정 (2026-11-28): 숨김 · PC 에서 보이기 · 올린 이미지 + 아래 작은 문구 */
.ikchat-fab.fab-off { display: none !important; }
.app.wide .ikchat-fab.fab-pc { display: block; }
.ikchat-fab .fab-img { display: block; width: 100%; height: auto; }
.ikchat-fab .fab-label { display: block; width: max-content; max-width: 160%; margin: 4px auto 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; white-space: nowrap; transform: translateX(0); }
.ikchat-fab[aria-disabled="true"] { cursor: default; }
.home-main { padding-bottom: 96px; }                            /* 마지막 콘텐츠가 하트 버튼에 가려지지 않게 */
.chat-btn .ico { fill: none; }

/* 마이페이지 회원 식별 코드 */
.code-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; }
.code-box .code-label { font-size: 12.5px; color: var(--gray); width: 100%; display: flex; justify-content: space-between; align-items: center; }
.code-value { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; color: var(--navy); background: var(--bg-soft); border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.code-box .btn { flex-shrink: 0; }
.code-help { font-size: 12px; color: var(--gray); line-height: 1.6; width: 100%; }
.policy { padding: 14px 16px; font-size: 12.5px; color: #5b6176; line-height: 1.8; }
.policy dt { font-weight: 700; color: var(--navy); }
.policy dd { margin-bottom: 6px; }

@media (max-width: 370px) {
  .tagline { font-size: 11.5px; }
  .slide h2 { font-size: 17px; }
  .q-tile { width: 48px; height: 48px; } .q-tile svg { width: 30px; height: 30px; }
  .quick a, .quick.q-custom .q-item { font-size: 11px; }
  .part-label { font-size: 12.5px; height: 30px; }
  .rooms { gap: 5px; } .room { font-size: 11px; }
}

/* ---------- 회원가입 · 알림 (PC·모바일 공통, 새 화면) ---------- */
.auth-alt { text-align: center; font-size: 13.5px; color: var(--gray); }
.auth-alt a { color: var(--pink); font-weight: 700; margin-left: 4px; }
.agree { gap: 10px; background: var(--bg-soft); border-radius: 14px; padding: 14px; }
.agree-item, .field .agree-item { display: flex; margin-bottom: 0; font-weight: 500; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.agree-item > span { flex: 1; min-width: 0; font-weight: 500; color: var(--navy); }
.agree-item input { margin-top: 3px; accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }
.agree-item small { display: block; font-size: 11.5px; color: var(--gray); }
.form-error { font-size: 13px; color: #c62852; background: #fff0f3; border-radius: 10px; padding: 9px 12px; }
.noti a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); position: relative; }
.noti:last-child a { border-bottom: 0; }
.noti.unread a { background: #fff8fa; margin: 0 -16px; padding-left: 20px; padding-right: 20px; }
.noti-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; flex-shrink: 0; }
.noti-ico .ico { width: 18px; height: 18px; }
.noti-main { flex: 1; min-width: 0; }
.noti-text { display: block; font-size: 14px; }
.noti-body { display: block; font-size: 13px; color: #5b6176; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noti-meta { display: block; font-size: 12px; color: var(--gray-light); margin-top: 3px; }
.noti-new { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex-shrink: 0; margin-top: 6px; }

/* ---------- 마이페이지 닉네임 변경 (PC·모바일 공통) ---------- */
.nick-edit { margin-left: auto; font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--pink); border: 1px solid var(--pink-line); border-radius: 999px; padding: 2px 10px; margin-block: -3px; background: #fff; }   /* 닉네임 줄 높이를 늘리지 않게 (위아래 바깥 여백을 줄여 줄 높이에 영향 없음) */
.nick-panel { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.nick-form label { font-size: 13.5px; font-weight: 700; }
.nick-row { display: flex; gap: 8px; margin-top: 7px; }
.nick-row .input { flex: 1; min-width: 0; }
.nick-row .btn { flex-shrink: 0; }
.nick-quota { font-size: 13px; color: #5b6176; }
.nick-quota b { color: var(--pink); }
.nick-hist li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.nick-hist small { color: var(--gray); }

/* ---------- 관리자 CMS 정보 표시 (병원 상세·검색, PC·모바일 공통) ---------- */
.adm-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: #6a4bb5; background: #f1ecfb; border-radius: 6px; padding: 1px 6px; vertical-align: 1px; }
.adm-orig { display: block; font-size: 11.5px; color: var(--gray); margin-top: 2px; }
.adm-src { font-size: 12px; line-height: 1.6; color: #5b4a86; background: #f6f2fd; border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.sec-label.adm { color: #6a4bb5; background: #f1ecfb; }
.hd-photo { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 16px; margin-top: 12px; border: 1px solid var(--line); }

/* ---------- 관리자 CMS (/admin) ---------- */
.cms-main { gap: 14px; }
.cms-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cms-tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #e6e8ee; background: #fff; font-weight: 700; font-size: 14px; color: #5b6176; }
.cms-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cms-tabs a { margin-left: auto; font-size: 13px; color: #5b6176; }
.cms-card { padding: 18px; }
.cms-card h2 { font-size: 17px; font-weight: 800; }
.cms-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cms-filters .btn { grid-column: 1 / -1; }
.cms-table-wrap { overflow-x: auto; margin-top: 6px; }
.cms-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.cms-table th { text-align: left; font-size: 12px; color: var(--gray); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.cms-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cms-table td small { display: block; color: var(--gray); font-size: 11.5px; margin-top: 2px; }
.cms-src { font-size: 11.5px; color: #5b6176; }
.cms-src.adm { color: #6a4bb5; font-weight: 700; }
.cms-st { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); white-space: nowrap; }
.cms-st.st-admin, .cms-st.st-edited { background: #f1ecfb; color: #6a4bb5; }
.cms-st.st-hidden { background: #fff6df; color: #8a5a00; }
.cms-st.st-inactive { background: #fdecef; color: #c62852; }
.cms-btns { white-space: nowrap; }
.cms-btns button { font-size: 12px; color: var(--pink); font-weight: 700; margin-right: 8px; }
.cms-ref { font-size: 12.5px; line-height: 1.6; background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px; color: #3c4258; }
.cms-form { padding: 14px 0 0; }
.cms-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cms-photo { display: flex; align-items: center; gap: 12px; }
.cms-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.cms-dup { font-size: 13px; background: #fff6df; border-radius: 12px; padding: 12px; }
.cms-dup li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #f3e3b8; }
.cms-dup li small { color: #8a5a00; }
.cms-dup button { font-size: 12px; font-weight: 700; color: var(--pink); white-space: nowrap; }
.cms-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cms-audit li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cms-audit small { color: var(--gray); }
.cms-diff { display: block; margin-top: 4px; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .app.wide.cms .pc-center { max-width: 1160px; }
  .app.wide.cms[data-pc="center"] > .header { max-width: 1160px; }
  .cms-filters { grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr auto; }
  .cms-filters .btn { grid-column: auto; }
}

/* ---------- 접속 인원 표시 (관리자 설정에 따라 나타남, 끄면 화면 변화 없음) ---------- */
.pres-tag { display: inline-block; font-size: 10px; font-weight: 700; color: #8a90a3; background: rgba(138,144,163,.14); border-radius: 5px; padding: 0 5px; margin-left: 3px; vertical-align: 1px; letter-spacing: 0; }
.pc-pres { display: none; }
.chat-cta .pres-line { position: relative; z-index: 1; font-size: 12px; font-weight: 700; color: #fff; margin-top: 8px; opacity: .95; }
.chat-cta .pres-line .pres-tag { color: #fff; background: rgba(255,255,255,.25); }
.pres-foot { text-align: center; font-size: 12px; color: var(--gray); }
@media (min-width: 1024px) {
  .pc-pres { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #eef3ff; color: #3a5bd9; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .pc-pres i { width: 7px; height: 7px; border-radius: 50%; background: #3a5bd9; }
}

/* ---------- 관리자 CMS 틀 (로그인·메뉴·대시보드·접속 인원) ---------- */
.cms-who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cms-who button { font-size: 12px; font-weight: 700; color: var(--pink); border: 1px solid var(--pink-line); border-radius: 999px; padding: 4px 10px; }
.cms-auth { max-width: 440px; width: 100%; margin: 20px auto; }
.cms-secret { display: block; font-size: 16px; letter-spacing: .08em; background: var(--bg-soft); border-radius: 12px; padding: 12px; margin: 10px 0; word-break: break-all; }
.cms-shell { display: flex; flex-direction: column; gap: 14px; }
.cms-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
.cms-nav button { flex-shrink: 0; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #3c4258; text-align: left; white-space: nowrap; }
.cms-nav button small { margin-left: 6px; font-size: 10.5px; color: var(--gray-light); font-weight: 500; }
.cms-nav button.on { background: var(--navy); color: #fff; }
.cms-nav button.on small { color: #c9cde0; }
.cms-body { min-width: 0; }
.cms-sec { display: flex; flex-direction: column; gap: 12px; }
.cms-h { font-size: 20px; font-weight: 800; }
.cms-h3 { font-size: 15px; font-weight: 800; margin-top: 8px; }
.cms-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cms-stat { background: #fff; border: 1px solid #eceef3; border-radius: 16px; padding: 14px; }
.cms-stat small { display: block; font-size: 12px; color: var(--gray); }
.cms-stat b { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; }
.cms-stat em { display: block; font-style: normal; font-size: 11.5px; color: #6a4bb5; margin-top: 2px; }
.cms-notready li { font-size: 13px; color: #5b6176; padding: 4px 0; }
.cms-notready li::before { content: "· "; }
.cms-pres { display: flex; flex-direction: column; gap: 10px; }
.cms-pres-row { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cms-pres-h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.cms-pres-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cms-pres-num { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cms-pres-num .input { width: 140px; text-align: right; }
.cms-pres-pos { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #5b6176; align-items: center; }
.cms-pres-now { font-size: 13px; color: #5b6176; }
.cms-addadm { margin-top: 10px; }
.cms-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cms-roles div { background: #fff; border: 1px solid #eceef3; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.cms-roles small { display: block; color: var(--gray); margin-top: 4px; line-height: 1.5; }
.cms-menuedit li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid #eceef3; border-radius: 12px; margin-bottom: 6px; }
.cms-menuedit li small { margin-left: auto; color: var(--gray); font-size: 11.5px; }
.cms-menuedit button { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); font-size: 11px; }
.cms-drag { cursor: grab; color: var(--gray-light); }
/* 4단계: 배너·광고 · 통계 */
.cms-adtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cms-adtop .seg { overflow-x: auto; max-width: 100%; }
.cms-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: #5b6176; }
.cms-badge.st-active { background: #e3f6ec; color: #1d7a4a; }
.cms-badge.st-paused { background: #fff3dc; color: #9a6400; }
.cms-rowact { white-space: nowrap; }
.cms-rowact .btn { margin: 0 2px 4px 0; }
#adForm { padding: 14px; }
.cms-chartbox { padding: 12px 14px; }
.cms-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-top: 6px; }
.cms-bars i { flex: 1; min-width: 2px; height: var(--h); min-height: 1px; background: #f6cad6; border-radius: 3px 3px 0 0; position: relative; display: flex; align-items: flex-end; }
.cms-bars i b { display: block; width: 100%; height: var(--h); background: var(--pink); border-radius: 3px 3px 0 0; }
#stChart i { background: var(--pink); }

/* 3단계: 디자인 편집기 · 홈 화면 구성 */
.cms-pubbar { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cms-pubstate { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: #5b6176; }
.cms-sched { color: #6a4bb5; display: inline-flex; align-items: center; gap: 6px; }
.cms-pubact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cms-schedin { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.cms-schedin .input { height: 34px; width: auto; min-width: 0; max-width: 210px; }
.cms-editwrap { display: flex; flex-direction: column; gap: 12px; }
.cms-editor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cms-editor fieldset { background: #fff; border: 1px solid #eceef3; border-radius: 16px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cms-editor legend { font-size: 14px; font-weight: 800; padding: 0 4px; }
.cms-editor label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: #3c4258; min-width: 0; }
.cms-editor label.agree-item { flex-direction: row; align-items: center; }
.cms-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.cms-color { display: flex; gap: 6px; align-items: center; }
.cms-color input[type="color"] { width: 40px; height: 36px; padding: 0; border: 1px solid #e3e6ec; border-radius: 8px; background: #fff; flex-shrink: 0; }
.cms-banner { padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; box-shadow: none; }
.cms-banner-h, .cms-secrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cms-banner-h { justify-content: space-between; }
.cms-imgrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cms-imgrow img { max-height: 60px; max-width: 160px; border-radius: 8px; border: 1px solid #eceef3; }
.cms-sections { display: flex; flex-direction: column; gap: 6px; }
.cms-secitem { background: #fff; border: 1px solid #eceef3; border-radius: 12px; padding: 8px 10px; }
.cms-secitem.off { background: var(--bg-soft); }
.cms-secitem.off b { color: var(--gray); text-decoration: line-through; }
.cms-secrow b { flex: 1 1 140px; font-size: 13.5px; }
.cms-secrow .select { width: auto; height: 34px; }
.cms-grip { cursor: grab; color: var(--gray-light); }
.cms-secfields { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e3e6ec; }
.cms-addsec { display: flex; gap: 8px; }
.cms-addsec .select { flex: 1; }
.cms-pins li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; }
.cms-pins .select { width: 100%; }
.cms-preview { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cms-prevbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cms-prevbar small { color: var(--gray); font-size: 11.5px; }
.cms-prevframe { overflow: auto; border-radius: 12px; background: var(--bg-soft); }
.cms-prevframe iframe { display: block; border: 0; background: #fff; margin: 0 auto; width: 390px; max-width: 100%; height: 720px; }
.cms-prevframe[data-dev="pc"] iframe { width: 1280px; max-width: none; height: 800px; zoom: 0.5; }
.cms-versions { padding: 12px 14px; }
.cms-sub { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.cms-versions li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #f1f2f6; font-size: 13px; }
@media (min-width: 1280px) {
  .cms-editwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; }
  .cms-preview { position: sticky; top: 150px; }
}
.cms-todo { font-size: 14px; color: #5b6176; background: #fff; border: 1px dashed #d9dce6; border-radius: 14px; padding: 18px; }
@media (min-width: 1024px) {
  .cms-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
  .cms-nav { flex-direction: column; overflow: visible; position: sticky; top: 84px; }
}

/* ---------- 공지사항 · 이벤트 (관리자 CMS) ---------- */
.notice-tabs { align-self: flex-start; }
.notice-list li a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 14px 16px; border-bottom: 1px solid #f1f2f6; }
.notice-list li:last-child a { border-bottom: 0; }
.notice-list li a b { flex: 1 1 200px; font-size: 15px; font-weight: 700; }
.notice-list li a small { color: var(--gray); font-size: 12px; }
.notice-kind { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: #4f5569; }
.notice-kind.k-event { background: var(--pink-soft); color: var(--pink); }
.notice-view { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.notice-view h2 { font-size: 19px; font-weight: 800; line-height: 1.4; }
.notice-view small { color: var(--gray); font-size: 12.5px; }
.notice-body { font-size: var(--article-size, 15.5px); line-height: 1.75; white-space: pre-line; word-break: break-word; padding: 8px 0 12px; }
.board-notices { margin-bottom: 10px; }
.board-notices li a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f1f2f6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-notices li:last-child a { border-bottom: 0; }
.board-desc { font-size: 12.5px; color: var(--gray); margin-top: 2px; }

/* ---------- 광고 자리 (게시중 광고가 있을 때만 생김) ---------- */
.ad-slot { position: relative; display: block; overflow: hidden; padding: 0; }
.ad-slot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; background: var(--bg-soft); }
.board-page .ad-board_top, .ad-post_bottom { margin-top: 12px; }

/* ---------- 관리자 CMS 디자인·홈 구성 적용 (설정이 없으면 아무 영향 없음) ---------- */
.cfg-off { display: none !important; }
@media (max-width: 1023px) { .cfg-only-pc { display: none !important; } }
@media (min-width: 1024px) { .cfg-only-mobile { display: none !important; } }
.cfg-text { padding: 20px 18px; }
.cfg-text h2 { font-size: 17px; font-weight: 800; }
.cfg-text p { font-size: 14px; line-height: 1.7; color: #3c4258; margin-top: 8px; white-space: pre-line; }
.cfg-image { display: block; overflow: hidden; padding: 0; }
.cfg-image img { display: block; width: 100%; height: auto; }
.cfg-board .cfg-more { display: block; text-align: right; font-size: 13px; color: #5b6176; padding: 8px 0 12px; }
.slide-img { object-fit: contain; }
.site-popup .modal-box h2 { font-size: 17px; font-weight: 800; }
.site-popup .modal-box p { white-space: pre-line; margin-top: 8px; }
.site-popup .modal-box .btn.primary { color: #fff; }
html.cms-previewing body::after { content: "관리자 미리보기 (임시저장본)"; position: fixed; left: 8px; top: 8px; z-index: 999; background: #6a4bb5; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; pointer-events: none; }

/* ============================================================
   PC 웹 레이아웃 (화면 폭 1024px 이상) — 시안: Downloads/메인1~4.png
   - 모든 규칙이 아래 @media 안에 있어서 모바일(1023px 이하) 화면은 위의 기존 스타일 그대로예요.
   - 틀: common.js initPcShell() 이 만드는 .pc-top(상단 바) · .pc-body(.pc-left / main / .pc-right)
   ============================================================ */
.pc-top, .pc-left, .pc-right, .pc-only { display: none; }
.pc-body, .hs-side, .hs-content { display: contents; }   /* 모바일: 감싸는 틀 없이 기존 순서 그대로 */
@media (min-width: 1024px) {
  body:has(.app.wide) { background: #f7f8fb; }
  .app.wide { max-width: none; min-height: 100vh; background: #f7f8fb; padding-bottom: 56px; }
  .app.wide .bottom-nav, .app.wide .ikchat-fab, .app.wide .fab { display: none; }
  .app.wide .test-bar { font-size: 12px; }
  .pc-only { display: block; }
  .toast { bottom: 36px; }

  /* ---------- 상단 바 (시안 1·4) ---------- */
  .pc-top { display: block; position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid #eceef3; }
  .pc-top-in { max-width: 1240px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 18px; }
  .pc-top .logo img { height: 30px; }
  .pc-menu { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
  .pc-menu a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; font-size: 15.5px; font-weight: 700; color: #3c4258; }
  .pc-menu a:hover { background: var(--bg-soft); }
  .pc-menu a.on { color: var(--pink); background: var(--pink-soft); }
  .pc-menu .pc-vr { width: 1px; height: 18px; background: #e3e5ec; margin: 0 8px; }
  .pc-menu .pc-shop { font-size: 14px; font-weight: 600; color: #6b7185; }
  .pc-menu .pc-shop .ico { width: 17px; height: 17px; }
  .pc-search { display: flex; align-items: center; flex: 1; max-width: 360px; margin-left: auto; height: 42px; border: 1px solid #e6e8ee; border-radius: 999px; padding: 0 6px 0 18px; background: #fff; }
  .pc-search:focus-within { border-color: var(--pink-line); box-shadow: 0 0 0 3px var(--pink-soft); }
  .pc-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: none; color: var(--navy); }
  .pc-search button { display: grid; place-items: center; width: 34px; height: 34px; color: #5b6176; }
  .pc-search .ico { width: 21px; height: 21px; }
  .pc-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); }
  .pc-icon:hover { background: var(--bg-soft); }
  .pc-icon .ico { width: 24px; height: 24px; }
  .pc-dot { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
  .pc-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border: 1px solid #e6e8ee; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
  .pc-chip:hover { border-color: var(--pink-line); }
  .pc-ava { width: 30px; height: 30px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
  .pc-chip.pc-login { padding: 0 16px; }
  .pc-chip.pc-join { padding: 0 16px; background: var(--pink); border-color: var(--pink); color: #fff; margin-left: -10px; }

  /* ---------- 공통 틀 ---------- */
  .app.wide > .header { position: static; background: none; backdrop-filter: none; max-width: 1240px; margin: 0 auto; padding: 26px 28px 4px; }
  .app.wide > .header [data-icon="back"], .app.wide > .header [data-icon="close"], .app.wide > .header #menuBtn, .app.wide > .header [data-icon="search"] { display: none; }
  .app.wide > .header h1 { font-size: 24px; }
  .app.wide > .header .tagline { display: none; }
  .app.wide .main { max-width: 1240px; margin: 0 auto; padding: 10px 28px 20px; }
  .pc-body { display: grid; max-width: 1240px; margin: 0 auto; padding: 18px 28px 0; gap: 24px; align-items: start; }
  .app.wide .pc-body > .main { max-width: none; margin: 0; padding: 0 0 20px; min-width: 0; gap: 20px; }   /* 칸을 꽉 채움 (margin:auto 로 줄어들지 않게) */
  .pc-home { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-top: 28px; }
  .pc-side { grid-template-columns: 220px minmax(0, 1fr) 300px; }
  .pc-center { display: block; max-width: 860px; }
  .pc-left, .pc-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
  .pc-left > *, .pc-right > * { flex-shrink: 0; }   /* 창이 낮아도 버튼·카드가 눌리지 않고 칸 안에서 스크롤 */

  /* 왼쪽 게시판 메뉴 */
  .pc-write { gap: 6px; height: 46px; }
  .pc-write .ico { width: 18px; height: 18px; stroke-width: 2.2; }
  .pc-me { padding: 14px 16px; font-size: 14px; }
  .pc-me small { display: block; color: var(--gray); font-size: 12.5px; margin-top: 4px; }
  .pc-me small a { color: var(--pink); font-weight: 600; }
  .pc-cats { padding: 14px 10px 10px; }
  .pc-cats h3 { font-size: 12.5px; font-weight: 800; color: #d4527a; padding: 6px 10px 4px; }
  .pc-cats ul { margin-bottom: 6px; }
  .pc-cats a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: #3c4258; }
  .pc-cats a:hover { background: var(--bg-soft); }
  .pc-cats a.on { background: var(--pink-soft); color: var(--pink); font-weight: 700; }

  /* 오른쪽: 인기글 · 병원 언급 TOP 10 · 휴대폰으로 보기 */
  .pc-rail { padding: 18px 18px 14px; }
  .pc-rail-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .pc-rail h3 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
  .pc-rail-h a { font-size: 12.5px; color: #5b6176; font-weight: 600; }
  .pc-hot li a { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .pc-hot li:last-child a { border-bottom: 0; }
  .pc-hot b { color: var(--pink); width: 14px; flex-shrink: 0; }
  .pc-hot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-hot a:hover span { color: var(--pink); }
  .pc-rank li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .pc-rank li:last-child { border-bottom: 0; }
  .pc-rank b { width: 20px; text-align: center; color: #c06a8a; font-size: 15px; }
  .pc-rank > li > span { flex: 1; min-width: 0; }
  .pc-rank-name { display: block; font-size: 15px; font-weight: 800; letter-spacing: 3px; }
  .pc-rank small { display: block; font-size: 12px; color: var(--gray); margin-top: 2px; }
  .pc-rank em { font-style: normal; font-weight: 800; font-size: 14px; }
  .pc-rail .empty { padding: 18px 0; text-align: center; color: var(--gray); font-size: 13px; }
  .pc-phone p { font-size: 12.5px; color: #5b6176; line-height: 1.6; margin-top: 6px; }
  /* QR 코드 (2026-11-28): 흰 바탕 + 여백(QR 바깥 4칸 + 테두리 안쪽 여백) · 칸 너비에 맞춰 줄어듦(최대 168px · 최소 120px) */
  .pc-qr { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .pc-qr-box { display: block; width: min(168px, 100%); min-width: 120px; aspect-ratio: 1 / 1; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-sizing: border-box; }
  .pc-qr-box svg { display: block; width: 100%; height: 100%; }
  .pc-qr figcaption { font-size: 12.5px; color: #5b6176; line-height: 1.5; text-align: center; word-break: keep-all; }

  /* ---------- 홈 (시안 1~3) ---------- */
  .app.wide[data-pc="home"] > .header { display: none; }
  .home-main > .search { display: none; }
  .home-main { padding-bottom: 20px; }
  .pc-home .banner .slide { min-height: 200px; padding: 30px 56px; }
  .pc-home .slide h2 { font-size: 27px; max-width: 70%; }
  .pc-home .slide li { font-size: 14.5px; }
  .pc-home .slide-art { width: 160px; height: 160px; right: 60px; }
  .pc-home .quick { padding: 22px 10px 20px; }
  .pc-home .quick a, .pc-home .quick.q-custom .q-item { font-size: 14px; gap: 10px; }
  .pc-home .q-tile { width: 64px; height: 64px; }
  .pc-home .q-tile svg { width: 40px; height: 40px; }
  .pc-home .chat-cta { padding: 26px 34px; }
  .pc-home .chat-cta strong { font-size: 23px; }
  .pc-home .deal { padding: 14px 18px; }
  .pc-home .explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; padding: 30px 32px 24px; align-items: start; }
  .pc-home .explore > * { grid-column: 1; }
  .pc-home .explore > hr { display: none; }
  .pc-home .explore > .toggle { justify-self: center; }   /* 얼굴·몸 버튼 묶음만 가운데로 (버튼 디자인은 그대로, 모바일과 같은 크기) */
  .pc-home .explore > .part-sum { grid-column: 2; grid-row: 1 / span 7; text-align: left; border-left: 1px solid var(--line); padding-left: 30px; align-self: stretch; }
  .pc-home .explore > .part-hot-wrap { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
  .part-sum h3 { font-size: 18px; font-weight: 800; }
  .part-sum > p { font-size: 13px; color: var(--gray); margin: 4px 0 8px; }
  .part-sum li a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .part-sum li:last-child a { border-bottom: 0; }
  .part-sum .num { flex-shrink: 0; }
  .part-sum strong { display: block; font-size: 15px; font-weight: 800; }
  .part-sum small { display: block; font-size: 12.5px; color: var(--gray); margin-top: 2px; }
  .part-sum .chev { margin-left: auto; width: 16px; height: 16px; color: var(--gray-light); }
  .part-sum a:hover strong { color: var(--pink); }
  .pc-home .duo a { padding: 20px 22px; }
  .pc-home .duo strong { font-size: 16px; }
  .pc-home .hot { padding: 24px 24px 10px; }

  /* ---------- 게시판 · 후기 · 글 상세 · 마이 ---------- */
  .pc-side .topic-chips, .pc-side .tabs { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .pc-side .hot { padding: 20px 24px 8px; }
  .pc-side .post a:hover .post-title { color: var(--pink); }
  .pc-side .article { padding: 28px 34px; }
  .pc-side .article h1 { font-size: 26px; }
  .pc-side .article .body { font-size: calc(var(--article-size, 15.5px) + 0.5px); line-height: 1.8; }   /* 기본 16px · 디자인 편집기 값 + 0.5px */
  .pc-side .article .photos { grid-template-columns: 1fr 1fr; }
  .pc-side .comments { padding: 24px 34px; }
  .pc-side .profile { padding: 24px 26px; }
  .pc-side .timeline { padding-left: 44px; }

  /* ---------- 가운데 한 줄: 글쓰기 · 로그인 · 회원가입 · 안내 · 관리자 ---------- */
  .pc-center .form { padding: 28px 32px; gap: 20px; }
  .pc-center .textarea { min-height: 320px; }
  .app.wide .pc-center > .auth-main { max-width: 480px; margin: 0 auto; }
  .app.wide[data-pc="center"] > .header { max-width: 860px; }   /* 제목을 가운데 본문과 같은 줄에 맞춤 */
  .app.wide[data-pc="center"]:has(.auth-main) > .header { max-width: 536px; }

  /* ---------- 익챗 (넓은 대화 화면) ---------- */
  .chat-app.wide { padding-bottom: 100px; }
  .chat-app.wide > .header { max-width: 860px; }
  .chat-app.wide .chat-body { max-width: 860px; margin: 0 auto; padding: 12px 28px 16px; }
  .chat-app.wide .msg { max-width: 62%; }
  .chat-app.wide .composer, .chat-app.wide .composer.with-nav { bottom: 0; max-width: 860px; padding: 12px 20px 14px; border: 1px solid #eceef3; border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 20px rgba(30,36,65,.05); }
  .chat-page:has(.chat-app.wide) .wm-layer { max-width: 860px; }

  /* ---------- 전체 메뉴 → PC 메가 메뉴 (시안 4) ---------- */
  .drawer { align-items: flex-start; }
  .drawer.open { background: rgba(20, 24, 40, .28); }
  .drawer-panel { max-width: none; height: auto; max-height: 100vh; padding: 22px max(28px, calc(50% - 592px)) 30px; border-radius: 0 0 22px 22px; }
  .menu-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 20px; padding-top: 22px; }
  .menu-grid li a:hover { color: var(--pink); }

  /* ---------- 병원검색 (왼쪽 검색 조건 · 오른쪽 결과) ---------- */
  .hs-page { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
  .hs-side { display: block; position: sticky; top: 84px; }
  .hs-content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .hs-page .hs-head { padding: 20px; gap: 12px; }
  .hs-page .hs-filters { grid-template-columns: 1fr; gap: 8px; }
  .hs-page .hs-filters .select { padding: 11px 12px; font-size: 14px; }
  .hs-page .hs-count { font-size: 14px; color: var(--navy); font-weight: 700; }
  .hs-page #list .hosp { padding: 16px 22px; gap: 16px; }
  .hs-page #list .hosp:hover { background: #fffafc; }
  .hs-page .hosp-name { font-size: 16px; }
  .hs-page .hosp-addr { white-space: normal; font-size: 13px; color: var(--gray); }
  .hs-page .hosp-sub { font-size: 13.5px; }

  /* ---------- 병원 상세 (왼쪽 공식 정보 · 오른쪽 회원 후기·관련 게시글) ---------- */
  .hd-page .hd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .hd-page .hd-official { position: sticky; top: 84px; }
  .hd-page .hd-member { display: flex; flex-direction: column; gap: 18px; }
}
/* 작은 PC·노트북 (1024~1199px): 상단 바를 줄이고, 게시판 화면의 오른쪽 칸은 접어서 본문을 넓게 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .pc-top-in { gap: 10px; padding: 10px 20px; }
  .pc-menu { margin-left: 4px; }
  .pc-menu a { padding: 7px 9px; font-size: 15px; }
  .pc-menu .pc-vr, .pc-menu .pc-shop { display: none; }       /* 뷰티공구는 전체 메뉴·메인 공구 카드로 이동 */
  .pc-search { min-width: 0; }
  .pc-chip { padding: 0 10px 0 5px; }
  .pc-chip.pc-login, .pc-chip.pc-join { padding: 0 12px; }
  .pc-body, .app.wide .main, .app.wide > .header { padding-left: 20px; padding-right: 20px; }
  .pc-side { grid-template-columns: 210px minmax(0, 1fr); }
  .pc-side > .pc-right { display: none; }
  .pc-home { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .hs-page { grid-template-columns: 290px minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .hs-page { grid-template-columns: 360px minmax(0, 1fr); }
  .pc-side { grid-template-columns: 230px minmax(0, 1fr) 320px; }
}

/* ============================================================
   익챗: 아이폰 Safari 대응 (2026-11-27) — 이 페이지(body.chat-page)에만 적용
   - 화면 확대(핀치 줌)는 막지 않아요 (접근성). viewport 에 maximum-scale·user-scalable=no 를 넣지 않음
   ============================================================ */
html:has(body.chat-page) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* 가로 화면에서 글자 자동 확대 방지 */
.chat-page *, .chat-page *::before, .chat-page *::after { box-sizing: border-box; }
body.chat-page { overflow-x: clip; }                                  /* 가로로 밀리거나 가로 스크롤 생기지 않게 */
.chat-page .chat-app { min-height: 100vh; min-height: 100dvh; }        /* 주소창이 보였다 숨었다 해도 높이 맞춤 */
.chat-page .chat-body { max-width: 100%; overflow-wrap: anywhere; }
.chat-page .msg { min-width: 0; }
.chat-page .msg-ttl { flex-wrap: wrap; }
.chat-page .composer {                                                 /* 노치가 있는 가로 화면에서도 좌우 여백 균형 */
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}
/* 아이폰·아이패드 Safari 에서만: 글자가 16px 보다 작은 입력칸을 누르면 화면이 자동 확대되며 밀리는 현상 방지
   (다른 휴대폰·PC 는 기존 15px 그대로) */
@supports (-webkit-touch-callout: none) {
  .chat-page .composer-input { font-size: 16px; }
}
/* 키보드가 올라오면 입력창을 키보드 바로 위로 (js/ios-viewport.js 가 --kb 높이를 넣어 줌) */
body.chat-page.kb-open .composer,
body.chat-page.kb-open .composer.with-nav { bottom: var(--kb, 0px); padding-bottom: 10px; }
body.chat-page.kb-open .bottom-nav { visibility: hidden; }             /* 키보드 뒤에 가려지는 하단 메뉴는 잠시 숨김 */

/* ============================================================
   아이폰 Safari 공통 대응 (모든 화면) — 디자인은 그대로, 밀림·확대만 방지
   ============================================================ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }      /* 가로 화면 글자 자동 확대 방지 */
*::before, *::after { box-sizing: border-box; }
body { overflow-x: clip; }                                              /* 화면 전체가 좌우로 밀리거나 가로 스크롤 생기지 않게 */
/* 아이폰·아이패드에서만: 16px 보다 작은 '글자 입력칸'을 누르면 자동 확대되며 밀리는 현상 방지.
   버튼·글자·다른 요소는 바꾸지 않고, 입력칸만 16px (다른 휴대폰·PC 는 기존 크기 그대로) */
@supports (-webkit-touch-callout: none) {
  input:is([type="text"], [type="search"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="date"], :not([type])),
  textarea, select, .input, .select, .textarea, .composer-input, .pc-search input, .search input { font-size: 16px !important; }
}
/* 키보드가 올라온 동안: 키보드 뒤에 가려지는 고정 요소는 잠시 숨김 (js/ios-viewport.js) */
body.kb-open .bottom-nav, body.kb-open .fab, body.kb-open .ikchat-fab { visibility: hidden; }

.cms-editor fieldset.cms-off { background: var(--bg-soft); }

/* ---------- 개인정보 자동 가림 안내 ---------- */
.privacy-notice { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(92vw, 420px); background: #fff; color: #3c4258; border: 1.5px solid var(--pink-line); box-shadow: 0 8px 26px rgba(30, 36, 65, 0.16); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; }
.privacy-notice::before { content: "개인정보 보호"; display: block; font-size: 11.5px; font-weight: 800; color: var(--pink); margin-bottom: 2px; }

.photo-hold { font-size: 12.5px; color: #6a4bb5; background: #f3eefc; border-radius: 10px; padding: 8px 10px; margin: 2px 0; }

/* 7단계: 채팅 관리 · 개인정보 보호 · IP 보안 (관리자) */
.cms-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.cms-photo { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.cms-photo img { width: 100%; max-height: 240px; object-fit: contain; background: var(--bg-soft); border-radius: 10px; }
.cms-photo small { color: var(--gray); font-size: 11.5px; }
.cms-pvtest { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cms-pvout { white-space: pre-line; font-size: 13.5px; color: #3c4258; min-height: 1.4em; }
.cms-scfilter, .cms-scblock { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cms-scfilter .input, .cms-scblock .input { flex: 1 1 160px; width: auto; min-width: 0; }
.cms-scfilter .select, .cms-scblock .select { flex: 0 1 auto; width: auto; }
.cms-scblock label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cms-scblock label .input { width: 90px; flex: none; }
.cms-scblock .err { flex-basis: 100%; }
.cms-asklabel { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; margin-top: 10px; }

/* 게시판 관리: 카테고리·목록 설정 상자 (관리자 화면) */
.cms-subbox { margin-top: 8px; padding: 10px; background: var(--bg-soft, #f7f7fb); border-radius: 12px; }

/* ===== 2026-11-27 테스트 모드·관리자 개선 ===== */
/* 메인 배너: 글자색 지정 · 버튼 · 배너 전체 이미지 (PC·모바일 이미지 따로) */
.slide.has-color li, .slide.has-color h2 { color: inherit; }
.slide-btn { position: relative; z-index: 3; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin-top: 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.slide.slide-full { padding: 0; aspect-ratio: 2.5 / 1; min-height: 0; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slide-bg.fit-cover { object-fit: cover; } .slide-bg.fit-contain { object-fit: contain; }
@media (min-width: 1024px) { .pc-home .banner .slide.slide-full { padding: 0; min-height: 0; aspect-ratio: 4.2 / 1; } }
/* 메인 배너 전체 배경 (2026-11-28 · 관리자 디자인 편집기): 배경 이미지·덮개는 문구 뒤 맨 아래 층 · 배너 크기·배치는 그대로 */
.slide-back { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.slide-back img { width: 100%; height: 100%; display: block; }
.slide-back i { position: absolute; inset: 0; }
.slide.has-back > :not(.slide-back):not(.slide-link):not(.slide-art):not(.slide-btn) { position: relative; z-index: 1; }
.slide.has-back > .slide-art { z-index: 1; }
/* 외부 링크 대체 안내 (새 탭이 열리지 않았을 때) */
.ext-fallback { position: fixed; left: 50%; bottom: calc(var(--nav-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); background: #1e2441; color: #fff; border-radius: 14px; padding: 10px 12px 10px 14px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(30,36,65,.25); }
.ext-fallback a { color: #fff; background: var(--pink); border-radius: 999px; padding: 6px 12px; font-weight: 700; white-space: nowrap; }
.ext-fallback button { background: none; border: 0; color: #c9ccd6; font-size: 15px; min-width: 32px; min-height: 32px; cursor: pointer; }
/* 첫 화면 팝업 (여러 개) */
.bp-popup { z-index: 95; padding: 16px; }
.bp-popup.pos-top { place-items: start center; padding-top: 70px; }
.bp-popup.pos-bottom { place-items: end center; padding-bottom: calc(var(--nav-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)); }
.bp-popup.pos-top-left { place-items: start start; padding: 70px 24px; } .bp-popup.pos-top-right { place-items: start end; padding: 70px 24px; }
.bp-popup.pos-bottom-left { place-items: end start; padding: 24px; } .bp-popup.pos-bottom-right { place-items: end end; padding: 24px; }
.bp-popup-box { max-width: calc(100vw - 32px); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(20,24,40,.28); display: flex; flex-direction: column; }
.bp-popup-body { display: block; overflow: auto; color: inherit; }
.bp-popup-body img { display: block; width: 100%; height: 100%; }
.bp-popup-body img.fit { object-fit: contain; height: auto; max-height: inherit; } .bp-popup-body img.fill { object-fit: cover; }
.bp-popup-text { padding: 22px 18px 16px; } .bp-popup-text h2 { font-size: 17px; font-weight: 800; } .bp-popup-text p { white-space: pre-line; margin-top: 8px; font-size: 14px; line-height: 1.55; color: #4f5569; }
.bp-popup-text .btn { margin-top: 14px; color: #fff; }
.bp-popup-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; border-top: 1px solid #eceef3; background: #fff; }
.bp-popup-today { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4f5569; min-height: 44px; cursor: pointer; }
.bp-popup-today input { width: 18px; height: 18px; accent-color: var(--pink); }
.bp-popup-close { min-width: 64px; min-height: 44px; border: 0; background: none; font-size: 14.5px; font-weight: 800; color: var(--navy); cursor: pointer; }
/* 익챗: 등급 번호 · 닉네임 · 시각을 서로 다른 칸으로 (모바일에서도 겹치지 않게) */
.msg-meta { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; flex-wrap: nowrap; }
.msg-lv { flex-shrink: 0; font-weight: 800; font-size: 11px; color: var(--pink); }
.msg-nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.msg-time { flex-shrink: 0; color: #b4b9c6; font-size: 11px; }
.msg-ttl { white-space: nowrap; }
/* 검색 결과 */
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.sr-chips button { border: 1px solid #e6e8ee; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; color: #4f5569; cursor: pointer; }
.sr-chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sr-hit { background: #fff3a8; color: inherit; border-radius: 3px; }
/* 마이페이지 쿠폰 */
.cp-form label { display: block; font-size: 13px; color: #4f5569; margin-top: 8px; } .cp-form .input { margin-top: 4px; }
.cp-form .btn { margin-top: 12px; }
.cp-st { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: #f2f3f6; color: #4f5569; white-space: nowrap; }
.cp-st.cp-issued { background: #e7f6ec; color: #1b7a3d; } .cp-st.cp-approved { background: #fff6df; color: #8a5a00; } .cp-st.cp-rejected, .cp-st.cp-canceled { background: #fdecec; color: #b42318; }
.cp-code { margin-top: 6px; background: #f7f8fb; border-radius: 10px; padding: 8px 10px; font-size: 13px; } .cp-code code { font-weight: 800; letter-spacing: .5px; text-decoration: line-through; color: #8a90a2; }
.cp-code span { font-size: 11px; font-weight: 700; color: #b42318; }
/* 관리자 디자인 편집기: 왼쪽 영역 목록 · 가운데 미리보기 · 오른쪽 수정 칸 */
.cms-visual { display: flex; flex-direction: column; gap: 12px; }
.cms-areas { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.cms-areas-h { font-size: 12px; font-weight: 800; color: #8a90a2; margin: 2px 4px 4px; }
.cms-areas button { text-align: left; border: 1px solid transparent; background: none; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.cms-areas button b { font-size: 13.5px; } .cms-areas button small { font-size: 11.5px; color: #8a90a2; }
.cms-areas button:hover { background: #f7f8fb; } .cms-areas button.on { background: #fff0f4; border: 1.5px dashed var(--pink); }
.cms-panel fieldset[hidden] { display: none !important; }
.cms-panel-h { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px dashed var(--pink); border-radius: 12px; background: #fff7f9; }
.cms-panel-tag { font-size: 11px; font-weight: 800; color: var(--pink); } .cms-panel-h b { font-size: 15px; } .cms-panel-h small { font-size: 12px; color: #6b7185; }
.cms-banner.picked, .cms-banner.picked-pop { outline: 2px dashed var(--pink); outline-offset: 2px; }
/* 보통 노트북(1200~1699px): 영역 목록은 위쪽 한 줄 버튼 · 아래 미리보기 | 수정 칸 / 넓은 화면(1700px~): 왼쪽 목록 · 가운데 미리보기 · 오른쪽 수정 칸 */
@media (min-width: 1200px) {
  .cms-visual { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(330px, 420px); align-items: start; }
  .cms-visual .cms-areas { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .cms-visual .cms-areas button small { display: none; }
  .cms-visual .cms-preview { position: static; }   /* 위쪽 영역 버튼을 가리지 않게 (따라 내려오지 않음) */
}
@media (min-width: 1700px) {
  .cms-visual { grid-template-columns: 210px minmax(420px, 1fr) minmax(330px, 420px); }
  .cms-visual .cms-areas { grid-column: auto; flex-direction: column; flex-wrap: nowrap; position: sticky; top: 150px; }
  .cms-visual .cms-areas button small { display: block; }
  .cms-visual .cms-preview { position: sticky; top: 150px; }
  .cms-visual .cms-panel { max-height: calc(100vh - 170px); overflow: auto; position: sticky; top: 150px; padding-right: 4px; }
}
.cms-imgslot { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #eceef3; border-radius: 12px; background: #fcfcfd; }
.img-guide { display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.5; color: #4f5569; }
.img-guide > b { font-size: 12.5px; color: var(--navy); }
.img-check { padding: 4px 8px; border-radius: 8px; background: #f2f3f6; }
.img-check.ok { background: #e7f6ec; color: #1b5e33; } .img-check.warn { background: #fff6df; color: #7a5200; } .img-check.bad { background: #fdecec; color: #9b1c1c; }
.select.sm { height: 32px; font-size: 12.5px; width: auto; }
.cms-colorpick { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
/* 메인 바로가기 편집 칸 (2026-11-28) */
.cms-qlist { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cms-qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1.5px solid #e6e8ee; border-radius: 12px; padding: 6px 8px; background: #fff; }
.cms-qrow.on { border-color: #e43f73; background: #fff6f8; }
.cms-qrow.off .cms-qpick { opacity: .5; }
.cms-qpick { flex: 1 1 160px; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; cursor: pointer; padding: 2px; }
.cms-qpick b { font-size: 13px; } .cms-qpick small { color: #6b7080; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cms-q-mini { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: #f4f5f8; overflow: hidden; }
.cms-q-mini svg, .cms-q-mini img { width: 24px; height: 24px; object-fit: contain; }
.cms-qbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.cms-qreal-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 10px; border-radius: 12px; background: #fff; border: 1px dashed #e6e8ee; }
.cms-qreal-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cms-qreal-row figcaption { font-size: 11.5px; color: #6b7080; }
/* Open Graph 설정 칸 (2026-11-28): 큰 미리보기 · 공유될 때 보이는 범위(1.91:1) · 카카오톡/PC 공유 카드 */
.og-big { position: relative; border: 1px solid #e6e8ee; border-radius: 12px; background: #f4f5f8; min-height: 120px; display: grid; place-items: center; overflow: hidden; }
.og-big img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; }
.og-big .cms-fav-x { position: absolute; top: 8px; right: 8px; }
.og-crop { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1.91 / 1; border: 2px dashed #e43f73; border-radius: 8px; overflow: hidden; background: #f4f5f8; }
.og-crop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-previews { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.og-previews figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.og-previews figcaption { font-size: 12px; color: #6b7080; }
.og-card { display: block; border: 1px solid #e3e5ea; border-radius: 12px; overflow: hidden; background: #fff; max-width: 100%; }
.og-card.og-kakao { width: 260px; } .og-card.og-pc { width: 420px; border-radius: 8px; }
.og-card .og-img { display: block; aspect-ratio: 1.91 / 1; background: #f1f2f6; }
.og-card .og-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-card .og-noimg { display: grid; place-items: center; padding: 10px; font-size: 11.5px; color: #8a90a2; text-align: center; }
.og-card .og-text { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.og-card .og-text b { font-size: 14px; color: #1e2441; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.og-card .og-text small { font-size: 12.5px; color: #5b6176; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.og-card .og-text em { font-style: normal; font-size: 11.5px; color: #8a90a2; }
.og-card.og-pc .og-text { background: #f2f3f5; } .og-card.og-pc .og-text em { order: -1; text-transform: uppercase; }
.cms-fabreal { display: block; filter: drop-shadow(0 6px 12px rgba(253, 37, 106, .28)); }
.cms-fabreal.off { opacity: .35; filter: grayscale(1); }
.cms-qreal-tile { display: grid; place-items: center; overflow: hidden; flex-shrink: 0; box-sizing: border-box; position: relative; }
.cms-qreal-tile img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }   /* 홈페이지와 같은 방식 */
.cms-qedit { padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: none; border: 1.5px solid #f3b6c4; margin-bottom: 8px; min-width: 0; }
/* 메인 배너 오른쪽 그림: 삭제 확인 · 기기별 상태 (2026-11-28) */
.cms-art-cloud { display: inline-flex; align-items: center; height: 56px; padding: 0 12px; border-radius: 10px; background: linear-gradient(120deg, #fdebf0, #fbdbe4); font-size: 13px; color: #4f5569; }
.cms-art-state { font-size: 12.5px; color: #4f5569; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cms-confirm { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1.5px solid #f3b6c4; background: #fff6f8; border-radius: 12px; font-size: 13px; }
.cms-confirm small { color: #6b7080; }
.cms-confirm span { display: flex; flex-wrap: wrap; gap: 6px; }
/* 메인 배너 전체 배경 편집 칸 (2026-11-28) */
.cms-bgwrap { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed #e6e8ee; padding-top: 10px; }
.cms-bgwrap .cms-sub small { font-weight: 400; color: #6b7080; }
.cms-bgx { border: 1px solid #e6e8ee; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cms-bgx legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
.cms-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.cms-range input[type="range"] { flex: 1 1 140px; min-width: 0; }
.cms-range output { min-width: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cms-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cms-swatches button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #e6e8ee; background: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 13px; cursor: pointer; }
.cms-swatches button i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #d5d8e0; }
.cms-swatches button.on { border-color: var(--navy); background: #f3f4f8; font-weight: 800; }
.cms-chatprev { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; border: 1px solid #eceef3; }
.cms-chatprev .msg { cursor: default; }

/* ---------- 관리자 계정 찾기 · 내 계정 (2026-11-28) ---------- */
.cms-forgot { margin-top: 10px; }
.cms-recover-help { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #eee); }
.cms-recover-help p { font-size: 13px; line-height: 1.55; }
.cms-recover-help .cms-secret { font-size: 13px; letter-spacing: 0; margin: 6px 0 2px; }
.cms-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.cms-account .cms-card { margin: 0; }
.cms-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cms-codes .cms-secret { margin: 0; font-size: 14px; text-align: center; }
.modal-box .help { text-align: left; }

/* ---------- 관리자 디자인 편집기: 파비콘 설정 (2026-11-28) ---------- */
.cms-fav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 10px 0; }
.cms-fav { padding: 12px; margin: 0; }
.cms-fav-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--pink-line); color: var(--pink); background: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cms-fav-x:hover { background: var(--pink-soft); }
.cms-fav-prev { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; min-height: 96px; padding: 10px; border-radius: 12px; background: #f7f8fb; margin: 8px 0; }
.cms-fav-prev figure { margin: 0; display: grid; justify-items: center; gap: 4px; }
.cms-fav-prev figcaption { font-size: 11px; color: #8a90a2; }
.cms-fav-chk { display: block; background: repeating-conic-gradient(#e6e8ee 0% 25%, #fff 0% 50%) 50% / 8px 8px; }   /* 투명 부분이 보이게 */
.cms-fav-chk img { display: block; image-rendering: auto; }
.cms-fav-empty { margin: auto; color: #8a90a2; font-size: 13px; }
.cms-fav-act { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cms-fav-tab { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 10px 10px 0 0; background: #eef0f4; font-size: 13px; flex-wrap: wrap; }
.cms-fav-tabi { width: 16px; height: 16px; display: grid; place-items: center; }
.cms-fav-tabi i { width: 14px; height: 14px; border-radius: 3px; border: 1px dashed #b4b9c6; }
.cms-fav-tab small { color: #8a90a2; margin-left: auto; }
.cms-fav-live { padding: 10px 12px; margin-top: 10px; display: grid; gap: 4px; font-size: 13px; }
.cms-fav-live img { vertical-align: -3px; }
.cms-fav-live small { color: #6b7184; }
